claude-code: the node side never writes a lease over a login the manager was not handed, and only a newer lineage over a handed one #712

Merged
mesh-tools merged 2 commits from fix/licence-file-the-cli-accepts into main 2026-11-20 13:24:15 +00:00
Member

Small fix (hq playbook 08) beside design 47 milestone H1, met live on the operator's desktop on 2026-11-20: five logins were overwritten by the binding's older grant because Apply took any refresh token in the credentials file as a login already handed and forced the write (on every start, binding change and file change, before the licence manager's adoption read it).

Two commits: a7459c6e keeps a login the manager was not handed (state login-handed, the fingerprint only); a8a0cfeb replaces a handed login only by a grant of a newer lineage (its refresh token's expiry later than the login's), else keeps it, reason login kept on both paths, in the journal and the report.

Builds: ADR 0206, ADR 0209; design 39 §3, §6; design 14; lead answer H-A-138 (hq branch design/47-H1-answers-59, 175ed320; not on hq's main because hq's pull requests are refused by the gate, H-A-131).

Tests: the module's unit tests (209 functions, budget 500) and go vet -tags integration pass in a copy with the mesh packages placed from main; the new cases fail without the change. Tested next on the operator's test bed (g14) per the plan in the save point, then hand-placed on the desktop whose tool runner stays stopped until then.

Reviewed-by: lead-47@shanks at a8a0cfeb8f

Small fix (hq playbook 08) beside design 47 milestone H1, met live on the operator's desktop on 2026-11-20: five logins were overwritten by the binding's older grant because Apply took any refresh token in the credentials file as a login already handed and forced the write (on every start, binding change and file change, before the licence manager's adoption read it). Two commits: a7459c6e keeps a login the manager was not handed (state `login-handed`, the fingerprint only); a8a0cfeb replaces a handed login only by a grant of a newer lineage (its refresh token's expiry later than the login's), else keeps it, reason `login kept` on both paths, in the journal and the report. Builds: ADR 0206, ADR 0209; design 39 §3, §6; design 14; lead answer H-A-138 (hq branch design/47-H1-answers-59, 175ed320; not on hq's main because hq's pull requests are refused by the gate, H-A-131). Tests: the module's unit tests (209 functions, budget 500) and `go vet -tags integration` pass in a copy with the mesh packages placed from main; the new cases fail without the change. Tested next on the operator's test bed (g14) per the plan in the save point, then hand-placed on the desktop whose tool runner stays stopped until then. Reviewed-by: lead-47@shanks at a8a0cfeb8f8a35c0afc8475061929406fb049892
mesh-tools added 2 commits 2026-11-20 13:24:05 +00:00
A login made on a node (while the tool runner was stopped, or before the
manager asked claude_code_grant for it) was overwritten by the next apply
of the binding's older grant: Apply took any refresh token in the file as
one already handed, and forced the write. The person's login was lost and
the session asked for a login again.

The node side now keeps the fingerprint of the login claude_code_grant last
sealed (state login-handed, never the token). Apply leaves a file whose
login is not that one untouched (applied false, reason login-not-adopted);
its report makes it the manager's candidate, and the successor the manager
hands back replaces it, as before without a refresh token.

Builds: ADR 0206, ADR 0209; design 39 §6 (the latest login wins, a login
moves its node); design 14 (a node never holds a refresh token).
One reason, login kept, on both paths, with a journal line; the not-handed
return skips the binding's generation on purpose.

Builds: ADR 0206, ADR 0209, design 39 §3 §6, design 14, H-A-138 (hq design/47-H1-answers-59 175ed320)
mesh-tools merged commit 1b706ca0b1 into main 2026-11-20 13:24:15 +00:00
mesh-tools deleted branch fix/licence-file-the-cli-accepts 2026-11-20 13:24:15 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_5_b94a6b0f",
"sequence": 15855,
"bytes": 4538,
"of-bytes": 262144,
"record": {
"milestone": "main.5",
"branch": "main",
"source": 5,
"call": "45655f7c82ab83c2",
"heads": {
"novox/mesh-catalog@712": "1b706ca0b193d19454d8b401615c0cf7a7f0584e"
},
"opened": "2026-11-20T13:24:16.063147705Z",
"form": 1,
"trace": {
"pulls": [
"novox/mesh-catalog@712"
],
"commits": [
"1b706ca0b193d19454d8b401615c0cf7a7f0584e"
],
"source": "5",
"call": "45655f7c82ab83c2",
"by": "lead-47@shanks",
"account": "g14.node-tools",
"at": "2026-11-20T13:24:16.052Z"
},
"entries": {
"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|": {
"key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|",
"module": "claude-code",
"fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b"
}
},
"outcomes": {
"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in": {
"key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in",
"module": "claude-code",
"fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b",
"step": "take-in",
"outcome": "taken-in",
"at": "2026-11-20T13:26:03.403975558Z"
}
},
"acts": {
"note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c": {
"id": "note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c",
"act": "note",
"repository": "novox/mesh-catalog",
"number": 712,
"head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e",
"outcome": "performed",
"at": "2026-11-20T13:26:03.61635085Z",
"owed": {
"act": "note",
"commit": "1b706ca0b193d19454d8b401615c0cf7a7f0584e",
"head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e",
"id": "note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c",
"line": "2026-11-20T13:26:03Z record record/main_5_b94a6b0f: claude-code take-in taken-in (the take-in step's event)",
"number": 712,
"repository": "novox/mesh-catalog",
"said": "2026-11-20T13:26:03.431400527Z"
}
},
"view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856": {
"id": "view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856",
"act": "view",
"repository": "novox/mesh-catalog",
"number": 712,
"head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e",
"outcome": "performed",
"at": "2026-11-20T13:26:04.054431628Z",
"owed": {
"act": "view",
"head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e",
"id": "view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856",
"number": 712,
"repository": "novox/mesh-catalog",
"said": "2026-11-20T13:26:03.442249398Z",
"text": "{\n "records": [\n {\n "instance": "record/main_5_b94a6b0f",\n "sequence": 15751,\n "bytes": 1115,\n "of-bytes": 262144,\n "waits": "its difference is not known yet",\n "record": {\n "milestone": "main.5",\n "branch": "main",\n "source": 5,\n "call": "45655f7c82ab83c2",\n "heads": {\n "novox/mesh-catalog@712": "1b706ca0b193d19454d8b401615c0cf7a7f0584e"\n },\n "opened": "2026-11-20T13:24:16.063147705Z",\n "form": 1,\n "trace": {\n "pulls": [\n "novox/mesh-catalog@712"\n ],\n "commits": [\n "1b706ca0b193d19454d8b401615c0cf7a7f0584e"\n ],\n "source": "5",\n "call": "45655f7c82ab83c2",\n "by": "lead-47@shanks",\n "account": "g14.node-tools",\n "at": "2026-11-20T13:24:16.052Z"\n },\n "entries": {\n "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|": {\n "key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|",\n "module": "claude-code",\n "fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b"\n }\n },\n "outcomes": {\n "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in": {\n "key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in",\n "module": "claude-code",\n "fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b",\n "step": "take-in",\n "outcome": "taken-in",\n "at": "2026-11-20T13:26:03.403975558Z"\n }\n }\n }\n }\n ]\n}"
}
}
},
"ended": {
"at": "2026-11-20T14:58:04.129923322Z",
"why": "failed: every mover is moved by the newer main.6"
}
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_5_b94a6b0f", "sequence": 15855, "bytes": 4538, "of-bytes": 262144, "record": { "milestone": "main.5", "branch": "main", "source": 5, "call": "45655f7c82ab83c2", "heads": { "novox/mesh-catalog@712": "1b706ca0b193d19454d8b401615c0cf7a7f0584e" }, "opened": "2026-11-20T13:24:16.063147705Z", "form": 1, "trace": { "pulls": [ "novox/mesh-catalog@712" ], "commits": [ "1b706ca0b193d19454d8b401615c0cf7a7f0584e" ], "source": "5", "call": "45655f7c82ab83c2", "by": "lead-47@shanks", "account": "g14.node-tools", "at": "2026-11-20T13:24:16.052Z" }, "entries": { "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|": { "key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|", "module": "claude-code", "fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b" } }, "outcomes": { "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in": { "key": "claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in", "module": "claude-code", "fingerprint": "src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b", "step": "take-in", "outcome": "taken-in", "at": "2026-11-20T13:26:03.403975558Z" } }, "acts": { "note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c": { "id": "note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c", "act": "note", "repository": "novox/mesh-catalog", "number": 712, "head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e", "outcome": "performed", "at": "2026-11-20T13:26:03.61635085Z", "owed": { "act": "note", "commit": "1b706ca0b193d19454d8b401615c0cf7a7f0584e", "head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e", "id": "note.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.14c795c", "line": "2026-11-20T13:26:03Z record record/main_5_b94a6b0f: claude-code take-in taken-in (the take-in step's event)", "number": 712, "repository": "novox/mesh-catalog", "said": "2026-11-20T13:26:03.431400527Z" } }, "view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856": { "id": "view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856", "act": "view", "repository": "novox/mesh-catalog", "number": 712, "head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e", "outcome": "performed", "at": "2026-11-20T13:26:04.054431628Z", "owed": { "act": "view", "head": "1b706ca0b193d19454d8b401615c0cf7a7f0584e", "id": "view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795181163431324917.554b9856", "number": 712, "repository": "novox/mesh-catalog", "said": "2026-11-20T13:26:03.442249398Z", "text": "{\n \"records\": [\n {\n \"instance\": \"record/main_5_b94a6b0f\",\n \"sequence\": 15751,\n \"bytes\": 1115,\n \"of-bytes\": 262144,\n \"waits\": \"its difference is not known yet\",\n \"record\": {\n \"milestone\": \"main.5\",\n \"branch\": \"main\",\n \"source\": 5,\n \"call\": \"45655f7c82ab83c2\",\n \"heads\": {\n \"novox/mesh-catalog@712\": \"1b706ca0b193d19454d8b401615c0cf7a7f0584e\"\n },\n \"opened\": \"2026-11-20T13:24:16.063147705Z\",\n \"form\": 1,\n \"trace\": {\n \"pulls\": [\n \"novox/mesh-catalog@712\"\n ],\n \"commits\": [\n \"1b706ca0b193d19454d8b401615c0cf7a7f0584e\"\n ],\n \"source\": \"5\",\n \"call\": \"45655f7c82ab83c2\",\n \"by\": \"lead-47@shanks\",\n \"account\": \"g14.node-tools\",\n \"at\": \"2026-11-20T13:24:16.052Z\"\n },\n \"entries\": {\n \"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|\": {\n \"key\": \"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b|\",\n \"module\": \"claude-code\",\n \"fingerprint\": \"src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b\"\n }\n },\n \"outcomes\": {\n \"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in\": {\n \"key\": \"claude-code|src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b||take-in\",\n \"module\": \"claude-code\",\n \"fingerprint\": \"src2:6f5b92cf6fab4f1bf3f2b1149b6f6c1f3ae7cd9e3b0753af7629c5be2887f20b\",\n \"step\": \"take-in\",\n \"outcome\": \"taken-in\",\n \"at\": \"2026-11-20T13:26:03.403975558Z\"\n }\n }\n }\n }\n ]\n}" } } }, "ended": { "at": "2026-11-20T14:58:04.129923322Z", "why": "failed: every mover is moved by the newer main.6" } } } ] } <!-- mesh-act:view.record/main_5_b94a6b0f.novox/mesh-catalog#712@1795186684136257803.99c4057 -->
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#712