engine-adapters: smoke-stores — family-2 proven on the clan-lab #176

Closed
opened 2026-07-29 05:10:12 +00:00 by ben · 1 comment
Owner

Parent

Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.

What to build

Family-2 proof: ledger writes survive a control-plane restart on the lab gateway; a policy confirm + matrix change + operator-key mint land as commits visible in a fresh replica clone; no token material appears in the replica; the fleet projection agrees with clan's inventory after an enrol and a removal.

Acceptance criteria

  • Given the lab gateway, When the control plane restarts mid-ledger-life, Then invites/codes/resets survive
  • Given a fresh replica clone, When inspected, Then policy/matrix/key-ledger are present and no secret token is
  • Given an enrol + removal, When the projection is read, Then it matches clan's inventory

Blocked by

  • engine-adapters:store-runtime-ledgers
  • engine-adapters:store-config-repo-docs
  • engine-adapters:store-fleet-projection

Task manifest

task: engine-adapters:smoke-stores
implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)"
interface: "the family's public seam, driven end-to-end on the clan-lab"
seam: "the clan-lab run itself (clan-lab + lab-dns skills); evidence (logs, verdicts) posted to this ticket"
acceptance:
  - given: a real 3-node lab fleet; when: the scripted smoke drives the family; then: every listed leg passes and evidence is attached (spec #161 family 2)
depends_on: [engine-adapters:store-runtime-ledgers, engine-adapters:store-config-repo-docs, engine-adapters:store-fleet-projection]
out_of_scope: [performance / resource-floor numbers (honesty limits: measure only what the substrate can honestly show)]
needs_human_decision: []
## Parent Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending. ## What to build Family-2 proof: ledger writes survive a control-plane restart on the lab gateway; a policy confirm + matrix change + operator-key mint land as commits visible in a fresh replica clone; no token material appears in the replica; the fleet projection agrees with clan's inventory after an enrol and a removal. ## Acceptance criteria - [ ] Given the lab gateway, When the control plane restarts mid-ledger-life, Then invites/codes/resets survive - [ ] Given a fresh replica clone, When inspected, Then policy/matrix/key-ledger are present and no secret token is - [ ] Given an enrol + removal, When the projection is read, Then it matches clan's inventory ## Blocked by - engine-adapters:store-runtime-ledgers - engine-adapters:store-config-repo-docs - engine-adapters:store-fleet-projection ## Task manifest ```yaml task: engine-adapters:smoke-stores implements_seam: "the confirmed seams + ADRs 0102-0107 are the design contract (no flow/wireframe — spec #161)" interface: "the family's public seam, driven end-to-end on the clan-lab" seam: "the clan-lab run itself (clan-lab + lab-dns skills); evidence (logs, verdicts) posted to this ticket" acceptance: - given: a real 3-node lab fleet; when: the scripted smoke drives the family; then: every listed leg passes and evidence is attached (spec #161 family 2) depends_on: [engine-adapters:store-runtime-ledgers, engine-adapters:store-config-repo-docs, engine-adapters:store-fleet-projection] out_of_scope: [performance / resource-floor numbers (honesty limits: measure only what the substrate can honestly show)] needs_human_decision: [] ```
Author
Owner

Done — family 2 (the durable stores, ADR 0103) proven on a real 3-node clan-lab on 2026-07-29, driven ON node1 (a fleet VM, the lab gateway) across a genuine two-process control-plane restart. Landed in 28d80cc on main.

All three acceptance legs PASS on real hardware:

  • AC1 restart-survival — smoke-stores write mints an invite + enrollment code + reset link through the File-backed runtime ledgers (#165) and persists them; a genuine second OS process smoke-stores verify, sharing nothing but the on-disk documents, re-opens the same state directory and reads all three back. Token material homes in the state-directory documents on disk (lost-in-rebuild by design).
  • AC2 replica-clone — a backup-policy confirm + an access-matrix change + an operator-key mint land as commits through the ONE clan writer (#166); a fresh git clone (the operator-laptop replica) reads all three documents back; no invite/code/reset token and no private key appears in the replica.
  • AC3 projection — a real end-to-end enrolment + a removal, and the fleet projection (#167) agrees with clan’s real inventory.json (node1/node2/node3) at each step; the enrolled node is enriched from the ledger, then dropped by inventory on removal though its Enrolled request survives (inventory decides membership).

Self-contained smoke binary control-plane/cmd/smoke-stores (+ main_test.go seam test, incl. a negative that fails the restart leg on a corrupt ledger); scripts/smoke-stores.sh re-runs it locally or on a lab. Evidence + full JSON verdict: docs/spike-findings/smoke-stores-176.md.

Lab clan-lab-smoke-stores-176-6aaa66ee (golden pin clan-core db4db726, node1 git 2.54.0), both phases exit 0, then destroyed; the temporary account SSH key removed. Honesty limit: functional verdict only (nested VMs — no perf/resource-floor numbers); the process restart, git commit/clone and filesystem durability are real. go build ./... / vet / full suite clean.

Done — family 2 (the durable stores, ADR 0103) proven on a real 3-node clan-lab on 2026-07-29, driven ON node1 (a fleet VM, the lab gateway) across a genuine two-process control-plane restart. Landed in `28d80cc` on main. All three acceptance legs PASS on real hardware: - **AC1 restart-survival** — `smoke-stores write` mints an invite + enrollment code + reset link through the File-backed runtime ledgers (#165) and persists them; a genuine second OS process `smoke-stores verify`, sharing nothing but the on-disk documents, re-opens the same state directory and reads all three back. Token material homes in the state-directory documents on disk (lost-in-rebuild by design). - **AC2 replica-clone** — a backup-policy confirm + an access-matrix change + an operator-key mint land as commits through the ONE clan writer (#166); a fresh `git clone` (the operator-laptop replica) reads all three documents back; no invite/code/reset token and no private key appears in the replica. - **AC3 projection** — a real end-to-end enrolment + a removal, and the fleet projection (#167) agrees with clan’s real inventory.json (node1/node2/node3) at each step; the enrolled node is enriched from the ledger, then dropped by inventory on removal though its Enrolled request survives (inventory decides membership). Self-contained smoke binary `control-plane/cmd/smoke-stores` (+ `main_test.go` seam test, incl. a negative that fails the restart leg on a corrupt ledger); `scripts/smoke-stores.sh` re-runs it locally or on a lab. Evidence + full JSON verdict: `docs/spike-findings/smoke-stores-176.md`. Lab `clan-lab-smoke-stores-176-6aaa66ee` (golden pin clan-core db4db726, node1 git 2.54.0), both phases exit 0, then destroyed; the temporary account SSH key removed. Honesty limit: functional verdict only (nested VMs — no perf/resource-floor numbers); the process restart, git commit/clone and filesystem durability are real. `go build ./...` / vet / full suite clean.
ben closed this issue 2026-07-29 21:53:17 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#176
No description provided.