engine-adapters: smoke-backups — family-3 proven on the clan-lab #177
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-3 proof: confirm Identity's policy → a real scheduled run snapshots, seals, replicates cross-node and verifies; force a target failure and watch coverage drop through monitoring; run a real in-place restore end to end (pre-restore snapshot, quiesce/resume, verify); read the target back with nothing but the keys and age. Executes spec #20's standing smoke clause.
Acceptance criteria
Blocked by
Task manifest
Family 3 (the backup engine, ADR 0104) proven on a real 3-node clan-lab (kanidm 1.10.3, golden pin clan-core
db4db726) on 2026-07-29. Commitae0152f.The production
*backupengine.Enginecomposed into the real*backup.Orchestrator(the exact #170 composition) driven end to end against real kanidm over the remote-SSH transport theengine_integration_test.gocannot exercise. All four legs PASS:database verify); coverage counts both verified copies.virsh destroyed; coverage drops 2→1 and a coverage-gap fault names node2 for monitoring (ADR 0081).systemctl stop kanidm) → replace (kanidm database restore) → resume → verify; kanidm active again after.backup.ReadInventory+backup.Open) recovers the 609,813-byte kanidm export byte-for-byte (319 directory entries; operators/members/kaitiaki present), opaque without the keys;backup.RebuildFromNothingcloses ADR 0104's rebuild bar.The gate did its job — two load-bearing bugs the fakes masked, both FIXED:
backupengine.SSHLaunchersent verb argv unquoted, so the remote shell re-parsed metacharacters — Identity'ssed 's|^db_path.*|...|'shattered and a run read verification-failed though the snapshot was perfect (invisible to the localhost launcher). Now shell-quotes each argv element (conn.go), locked byconn_ssh_test.go.database backupgzip'd whilerestore/verifyread plain JSON (real exit 1 on gzip) — verify-sample of the raw artifact failed. The snapshot verb now decompresses to a plain-JSON artifact (identity.go); the contract-test double is made faithful inbackupengine_test.go.One naming/impl discrepancy for post-hoc review: ADR 0104 names the sealing tool
age, but the shipped one-encryption-story is AES-GCM (backup.Seal/Open, ADR 0082 §4) — the rebuild bar is real and proven either way.Evidence + full verdict JSON:
docs/spike-findings/smoke-backups-177.md. Binary + CI seam test:control-plane/cmd/smoke-backups/. Lab config:spikes/smoke-backups/. Re-run:scripts/smoke-backups.sh [<lab-name>]. Lab destroyed after the run. Honesty limits (clan-lab): functional verdicts only; the cross-node/offsite byte surfaces are SSH-reached directories (the honest stand-in for the mesh/S3 stores the compose #181 wires).admin@archive.<apex>— under the private path's.idss.internalapex (ADR 0149) Omeka's installer rejects the TLD, aborts the first-boot install half-done, and no admin user ever exists #1274admin@archive.<apex>— under the private path's.idss.internalapex (ADR 0149) Omeka's installer rejects the TLD, aborts the first-boot install half-done, and no admin user ever exists #1274grampsweb-adminswallows its own failure with|| true, sowhakapapa-brand403s on every token POST and reds the switch at exit 4 #1311module:enablewent "ready" three seconds before Omeka's installer created the admin user, so the key mint died onUser not foundand starved archive-brand #1320