node-engine: back up a data module before its apply only when its move changed; a needless backup's hold ends (design 47 H2 H-A-771, H-A-772; issue 1984) #260

Merged
mesh-tools merged 3 commits from fix/47-H2-771-unchanged-no-backup into main 2026-11-26 03:34:36 +00:00
Member

On ace at 03:40:55 the node-engine 0.1.402 backed up lidarr (a 5.6 GB database) before applying a composition whose one difference is env.MESH_FINGERPRINT (judged unchanged); the backup ran past its 10 minutes, lidarr was held, the operator was asked "The backup of lidarr failed on ace", nfs-server and zfs waited behind it, and the agent's loop stood still for 10 minutes. H-A-710 says that value alone recreates nothing and asks nothing.

  • H-A-771: apply backs up a data module that ran before only when the judge finds its move changed (any judgement but unchanged).
  • H-A-772 (1): the judgement compares the composition to what the machine applied (this engine's last apply, else the applied store at the start), never to a held have; the operator's again backs up whatever the judgement.
  • H-A-772 (2): at the engine's start, a failed backup's hold of an unchanged move ends, said once, and the module is applied with no backup; the assigner's existing staleAsk takes the ask back.
  • H-A-772 (3): only a failed backup's hold ends there (a revert's hold carries a wait and stays); a failed again keeps its hold; an interrupted backup of an unchanged move is said to apply with no backup.

Quick fix: the operator skips each needless backup ask. Thorough fix chosen: every data module of every node meets it once H2's node-engine runs. Issue 1984 note 57 holds what exists today and the acceptance criteria.

Tests: rows in internal/agent/agent_test.go (no new test function), each failing without its condition; gofmt, go vet (both tags), go test ./... (40 packages), integration of internal/agent and its importers, and make check pass.

Reviewed-by: mesh-code-reviewer ac580f91@shanks at eb08f9c787

On ace at 03:40:55 the node-engine 0.1.402 backed up lidarr (a 5.6 GB database) before applying a composition whose one difference is env.MESH_FINGERPRINT (judged unchanged); the backup ran past its 10 minutes, lidarr was held, the operator was asked "The backup of lidarr failed on ace", nfs-server and zfs waited behind it, and the agent's loop stood still for 10 minutes. H-A-710 says that value alone recreates nothing and asks nothing. - H-A-771: `apply` backs up a data module that ran before only when the judge finds its move changed (any judgement but `unchanged`). - H-A-772 (1): the judgement compares the composition to what the machine applied (this engine's last apply, else the applied store at the start), never to a held have; the operator's `again` backs up whatever the judgement. - H-A-772 (2): at the engine's start, a failed backup's hold of an unchanged move ends, said once, and the module is applied with no backup; the assigner's existing staleAsk takes the ask back. - H-A-772 (3): only a failed backup's hold ends there (a revert's hold carries a wait and stays); a failed `again` keeps its hold; an interrupted backup of an unchanged move is said to apply with no backup. Quick fix: the operator skips each needless backup ask. Thorough fix chosen: every data module of every node meets it once H2's node-engine runs. Issue 1984 note 57 holds what exists today and the acceptance criteria. Tests: rows in internal/agent/agent_test.go (no new test function), each failing without its condition; gofmt, go vet (both tags), go test ./... (40 packages), integration of internal/agent and its importers, and make check pass. Reviewed-by: mesh-code-reviewer ac580f91@shanks at eb08f9c787bac552656f4da629f4377409940938
mesh-tools added 3 commits 2026-11-26 03:34:31 +00:00
On ace at 03:40:55 the node-engine backed up lidarr (5.6 GB) for a move whose one difference was
env.MESH_FINGERPRINT, judged unchanged; the backup ran past its 10 minutes, lidarr was held, the operator
was asked, and the agent's loop stood still for 10 minutes. A move judged unchanged changes nothing of
the module, so it needs no backup.

- The apply backs a data module up only when the judge finds the move changed (any judgement but
  unchanged), or when the want carries the operator's answer again.
- The judgement compares the composition to what the machine applied (this engine's last apply, else
  the applied store's composition read at the start), never to a have, which in issue 1585's shape
  names a held composition not yet applied; with neither, the move is changed.
- A module held for a failed backup of a move judged unchanged has its hold ended at the engine's
  start, said in the journal, and is applied with no backup; the assigner takes its ask back as stale
  once the have runs.

Builds: design 47 H2 H-A-771, H-A-772 (1), (2)
Review round 1 found that an interrupted backup of a move judged unchanged still said "it is backed up
again" while the apply takes none, and that the start's hold end also matched a revert's hold, which
carries a wait.

- The interrupted backup's line says the move is judged unchanged and applied with no backup when the
  judge finds it unchanged and the want carries no again; its comment says the same.
- The hold end at the start takes only a failed backup's hold (no wait): a revert's hold waits for the
  operator's answer, whatever the judgement. A hold after a failed again stays, as before.

Builds: design 47 H2 H-A-772 (3)
Review round 2 found two cases of H-A-772 (3) without a row: an interrupted backup whose want carries
again, and a failed again backup of an unchanged move.

- An interrupted backup, the want carrying again, the move unchanged: it says it is backed up again,
  takes one backup and is applied.
- The want carrying again on an unchanged move whose backup fails: it is held, nothing is applied
  until the later answer, and nothing says the hold ends.

Builds: design 47 H2 H-A-772 (1), (3)
mesh-tools merged commit 97ad0015d6 into main 2026-11-26 03:34:36 +00:00
mesh-tools deleted branch fix/47-H2-771-unchanged-no-backup 2026-11-26 03:34:36 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_171_df6c4f05",
"sequence": 91392,
"bytes": 1256,
"of-bytes": 65536,
"record": {
"milestone": "main.171",
"branch": "main",
"source": 171,
"call": "1db286769f19e8e5",
"heads": {
"novox/mesh-host@260": "97ad0015d6cbcfd015593601dd088885be0f0a85"
},
"opened": "2026-11-26T03:34:36.684512Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-host@260"
],
"commits": [
"97ad0015d6cbcfd015593601dd088885be0f0a85"
],
"source": "171",
"call": "1db286769f19e8e5",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-26T03:34:36.605Z"
},
"ended": {
"at": "2026-11-26T03:42:23.872183747Z",
"why": "every present node runs its entries"
},
"movers": 1,
"merge-called": "2026-11-26T03:34:36.605Z",
"phases": {
"build": {
"end": "2026-11-26T03:35:36.82567265Z",
"start": "2026-11-26T03:35:03.023484682Z"
},
"composition": {
"end": "2026-11-26T03:36:45.422546432Z",
"start": "2026-11-26T03:35:45.351021037Z"
},
"ended": "2026-11-26T03:36:45.422546432Z",
"integration": {
"end": "2026-11-26T03:36:11.631388046Z",
"start": "2026-11-26T03:35:03.023484682Z"
},
"lint": {
"end": "2026-11-26T03:36:19.197126944Z",
"start": "2026-11-26T03:35:03.023484682Z"
},
"placed": "2026-11-26T03:35:03.023484682Z",
"taken": "2026-11-26T03:35:02.694856522Z",
"unit": {
"end": "2026-11-26T03:36:14.063836016Z",
"start": "2026-11-26T03:35:03.023484682Z"
},
"validate": {
"end": "2026-11-26T03:35:45.351021037Z",
"start": "2026-11-26T03:35:03.023484682Z"
}
}
},
"movers-per-outcome": {
"bypassed": 1,
"passed": 1,
"waiting": 1
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_171_df6c4f05", "sequence": 91392, "bytes": 1256, "of-bytes": 65536, "record": { "milestone": "main.171", "branch": "main", "source": 171, "call": "1db286769f19e8e5", "heads": { "novox/mesh-host@260": "97ad0015d6cbcfd015593601dd088885be0f0a85" }, "opened": "2026-11-26T03:34:36.684512Z", "form": 3, "trace": { "pulls": [ "novox/mesh-host@260" ], "commits": [ "97ad0015d6cbcfd015593601dd088885be0f0a85" ], "source": "171", "call": "1db286769f19e8e5", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-26T03:34:36.605Z" }, "ended": { "at": "2026-11-26T03:42:23.872183747Z", "why": "every present node runs its entries" }, "movers": 1, "merge-called": "2026-11-26T03:34:36.605Z", "phases": { "build": { "end": "2026-11-26T03:35:36.82567265Z", "start": "2026-11-26T03:35:03.023484682Z" }, "composition": { "end": "2026-11-26T03:36:45.422546432Z", "start": "2026-11-26T03:35:45.351021037Z" }, "ended": "2026-11-26T03:36:45.422546432Z", "integration": { "end": "2026-11-26T03:36:11.631388046Z", "start": "2026-11-26T03:35:03.023484682Z" }, "lint": { "end": "2026-11-26T03:36:19.197126944Z", "start": "2026-11-26T03:35:03.023484682Z" }, "placed": "2026-11-26T03:35:03.023484682Z", "taken": "2026-11-26T03:35:02.694856522Z", "unit": { "end": "2026-11-26T03:36:14.063836016Z", "start": "2026-11-26T03:35:03.023484682Z" }, "validate": { "end": "2026-11-26T03:35:45.351021037Z", "start": "2026-11-26T03:35:03.023484682Z" } } }, "movers-per-outcome": { "bypassed": 1, "passed": 1, "waiting": 1 } } ] } <!-- mesh-act:view.record/main_171_df6c4f05.novox/mesh-host#260@1795664543881676999.3761fc85 -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-host#260