mesh-knowledge: a record keeps every progressive insight; knowledge_restore gives back what propose dropped (issue 466) #757

Merged
mesh-tools merged 7 commits from fix/466-insights-kept into main 2026-11-25 16:30:12 +00:00
Member

Issue 466 (the knowledge base drops a record's earlier progressive insights). A small fix by hq playbook 08.

Why: Propose built a version over an accepted record from the proposal alone and accept appended only the new insight, so every earlier insight, and the fields propose does not take (reconstructed, amended, touches, the imported fields, source, aliases), were dropped (live: ADR 0367 lost its insight of 2026-10-14; ADR 0290 lost reconstructed at version 8).

Builds the lead answers L-466-1 to L-466-5 (issue 466 note 18) and notes 19 (acceptance criteria 466/AC1 to AC7) and 20:

  • 466-a: a version over an accepted record keeps the served version's insights and fields; accept takes them from the version served at acceptance.
  • 466-b: the 32nd per-record rule insight-links: an insight may not add or drop a supersedes or changes link.
  • 466-c: the module tool knowledge_restore (acts; kind, number, dry-run): restores what a version made by propose dropped, by the knowledge base, taken by its own check; a record waiting for review is skipped and named.

Quick fix: carry the insights alone over in Propose. Thorough fix (chosen): every field propose does not take, the rule that keeps an insight's links, and a tool that restores what was lost, since the same path dropped ADR 0290's field too (fix-a-bug-met-twice).

Tests: mesh-knowledge 144 unit / 2 integration (budget 500/50), over the memory, ledger and postgres stores; the integration test runs against an embedded bus. Live after the delivery: knowledge_restore (dry run first) then knowledge-base.get of ADR 0367 and ADR 0290 (466/AC6).

Reviewed-by: mesh-code-reviewer@shanks at 141cddf7c9 (three rounds; approved in round 3)

Issue 466 (the knowledge base drops a record's earlier progressive insights). A small fix by hq playbook 08. Why: Propose built a version over an accepted record from the proposal alone and accept appended only the new insight, so every earlier insight, and the fields propose does not take (reconstructed, amended, touches, the imported fields, source, aliases), were dropped (live: ADR 0367 lost its insight of 2026-10-14; ADR 0290 lost reconstructed at version 8). Builds the lead answers L-466-1 to L-466-5 (issue 466 note 18) and notes 19 (acceptance criteria 466/AC1 to AC7) and 20: - 466-a: a version over an accepted record keeps the served version's insights and fields; accept takes them from the version served at acceptance. - 466-b: the 32nd per-record rule insight-links: an insight may not add or drop a supersedes or changes link. - 466-c: the module tool knowledge_restore (acts; kind, number, dry-run): restores what a version made by propose dropped, by the knowledge base, taken by its own check; a record waiting for review is skipped and named. Quick fix: carry the insights alone over in Propose. Thorough fix (chosen): every field propose does not take, the rule that keeps an insight's links, and a tool that restores what was lost, since the same path dropped ADR 0290's field too (fix-a-bug-met-twice). Tests: mesh-knowledge 144 unit / 2 integration (budget 500/50), over the memory, ledger and postgres stores; the integration test runs against an embedded bus. Live after the delivery: knowledge_restore (dry run first) then knowledge-base.get of ADR 0367 and ADR 0290 (466/AC6). Reviewed-by: mesh-code-reviewer@shanks at 141cddf7c9eb54d301c93db5c26a84f2f3201999 (three rounds; approved in round 3)
mesh-tools added 7 commits 2026-11-25 16:26:44 +00:00
Builds: design 55 §2, §2.2, §7; lead answers L-466-1, L-466-2 (issue 466 note 18); 466/AC1, AC2, AC3
Builds: design 55 §4, §5; lead answer L-466-3 (issue 466 note 18); 466/AC4
Builds: design 55 §1.1, §10; lead answers L-466-4, L-466-5 (issue 466 note 18); 466/AC5, AC7
Builds: design 55 §2, §2.2, §7; lead answers L-466-1, L-466-2 (issue 466 note 18), note 20 items (c), (d); 466/AC1, AC3
Builds: design 55 §4, §5; lead answer L-466-3 (issue 466 note 18); 466/AC4
Builds: design 55 §1.1, §10; lead answers L-466-4, L-466-5 (issue 466 note 18), note 20 items (a), (b); 466/AC5, AC7
Builds: design 55 §1.1; lead answer L-466-4 (issue 466 note 18); 466/AC5
mesh-tools merged commit 3f9f976fac into main 2026-11-25 16:30:12 +00:00
mesh-tools deleted branch fix/466-insights-kept 2026-11-25 16:30:13 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_165_c5e87963",
"sequence": 87015,
"bytes": 1263,
"of-bytes": 65536,
"record": {
"milestone": "main.165",
"branch": "main",
"source": 165,
"call": "60aa0b91907decab",
"heads": {
"novox/mesh-catalog@757": "3f9f976facf82324d4768681a51c7bb624004330"
},
"opened": "2026-11-25T16:30:13.667910564Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-catalog@757"
],
"commits": [
"3f9f976facf82324d4768681a51c7bb624004330"
],
"source": "165",
"call": "60aa0b91907decab",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-25T16:30:13.568Z"
},
"ended": {
"at": "2026-11-25T16:41:58.726844055Z",
"why": "every present node runs its entries"
},
"movers": 13,
"merge-called": "2026-11-25T16:30:13.568Z",
"phases": {
"build": {
"end": "2026-11-25T16:36:53.064929572Z",
"start": "2026-11-25T16:34:36.208118119Z"
},
"composition": {
"end": "2026-11-25T16:39:35.8881635Z",
"start": "2026-11-25T16:38:53.186297411Z"
},
"ended": "2026-11-25T16:39:35.8881635Z",
"integration": {
"end": "2026-11-25T16:39:15.043090034Z",
"start": "2026-11-25T16:34:36.208118119Z"
},
"lint": {
"end": "2026-11-25T16:38:59.270128755Z",
"start": "2026-11-25T16:34:36.208118119Z"
},
"placed": "2026-11-25T16:34:36.208118119Z",
"taken": "2026-11-25T16:34:36.074471536Z",
"unit": {
"end": "2026-11-25T16:39:30.309046657Z",
"start": "2026-11-25T16:34:36.208118119Z"
},
"validate": {
"end": "2026-11-25T16:38:53.186297411Z",
"start": "2026-11-25T16:34:36.208118119Z"
}
}
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_165_c5e87963", "sequence": 87015, "bytes": 1263, "of-bytes": 65536, "record": { "milestone": "main.165", "branch": "main", "source": 165, "call": "60aa0b91907decab", "heads": { "novox/mesh-catalog@757": "3f9f976facf82324d4768681a51c7bb624004330" }, "opened": "2026-11-25T16:30:13.667910564Z", "form": 3, "trace": { "pulls": [ "novox/mesh-catalog@757" ], "commits": [ "3f9f976facf82324d4768681a51c7bb624004330" ], "source": "165", "call": "60aa0b91907decab", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-25T16:30:13.568Z" }, "ended": { "at": "2026-11-25T16:41:58.726844055Z", "why": "every present node runs its entries" }, "movers": 13, "merge-called": "2026-11-25T16:30:13.568Z", "phases": { "build": { "end": "2026-11-25T16:36:53.064929572Z", "start": "2026-11-25T16:34:36.208118119Z" }, "composition": { "end": "2026-11-25T16:39:35.8881635Z", "start": "2026-11-25T16:38:53.186297411Z" }, "ended": "2026-11-25T16:39:35.8881635Z", "integration": { "end": "2026-11-25T16:39:15.043090034Z", "start": "2026-11-25T16:34:36.208118119Z" }, "lint": { "end": "2026-11-25T16:38:59.270128755Z", "start": "2026-11-25T16:34:36.208118119Z" }, "placed": "2026-11-25T16:34:36.208118119Z", "taken": "2026-11-25T16:34:36.074471536Z", "unit": { "end": "2026-11-25T16:39:30.309046657Z", "start": "2026-11-25T16:34:36.208118119Z" }, "validate": { "end": "2026-11-25T16:38:53.186297411Z", "start": "2026-11-25T16:34:36.208118119Z" } } } } ] } <!-- mesh-act:view.record/main_165_c5e87963.novox/mesh-catalog#757@1795624918775948408.caad4848 -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-catalog#757