engine-adapters: smoke-clan — family-1 proven on the clan-lab #175
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#175
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-1 proof (Ben's #160 ruling — the family is PROVEN only when this passes): on a real 3-node lab fleet — deploy, idempotent redeploy, rollback-to-revision; one forced eval, connectivity and missing-var failure each classified legibly; one enrollment via install (fresh-host takeover) and one via update (join); vars generate + rotate churning only the rotated secret; closure seeding to a cache-starved node. Executes the standing real-lab smoke clauses of specs #11/#13/#17 at the clan seam.
Acceptance criteria
Blocked by
Task manifest
Blocked — a design ruling is needed before family-1 can be proven on the clan-lab
Building the smoke against a fresh golden clan-lab (
clan-lab-smoke-clan-175-*, clan-coredb4db726, 3 NixOS VMs), two gaps surfaced that stop the write-side legs from being driven end-to-end through the real family-1 adapter. Family-1 is the only family whose adapters write clan's inventory, so it is the only one that hits gap 2. I asked on Mattermost (threadbsi7wh8d4pdnbce59odnextj1r) and it timed out with no reply; recording the decision here so a late reply resumes that thread.Gap 1 — NAT substrate limit (same one smoke-fleet documented)
The adapter's steady-state deploy/rollback use the revision-pinned flake form
git+file://<dir>?rev=<rev>(adapter.goDeploy/Rollback, viaflakeRef). Run live on the lab, this re-fetches theclan-coreinput fromgit.clan.lolon the node and times out over the lab's NAT:So
Adapter.Deploy/Adapter.Rollback(RollbackRevision)in their exact production form are unusable on the NAT lab substrate — exactly the honesty limitdocs/spike-findings/smoke-fleet-182.mdrecorded ("the production ExecCLI adapter's revision-pinned deploy form is unusable on the substrate"). The working-tree headless form (clan machines update <n> --build-host localhost --host-key-check none,flakeRef(dir,"")=path:) does work on the lab, which is whatsmoke-idp/smoke-fleetproved. (On a real, non-NAT fleet the revision-pinned form is correct — the node can fetch inputs.)Gap 2 — inventory-schema collision (the unbuilt "smoke-reconciled" layer)
Config,Vars,SupplyandEnrollall read+write the OurCloud-structuredinventory.json(inventory.go):machines.<n>.name,.role,.vars, anddeploy.**target_host**(snake_case, issue #126). Clan's nativeinventory.jsonusesdeploy.**targetHost**(camelCase) and has noname/role/varskeys.inventory.go:43-44says the two are bridged by "the quarantined rendering layer that maps this structured inventory to clan's own schema (smoke-reconciled)" — but no such rendering layer exists in the tree (grep finds only the comment).Confirmed empirically — round-tripping the lab's real clan inventory through the adapter's own
loadInventory→writeInventory:So
Enroll.configure(→writeNodeConfig→writeInventory),Config.*,Vars.Generate(readsm.Vars) andSupply.Seed(readsm.Deploy.TargetHost) cannot be driven against a real clan flake until the OurCloud↔clan-native reconciliation is built. This means the write-side legs — enroll via install/join, vars generate+rotate, closure seeding — can't be proven on the lab through the real adapter today.Note on STATUS.md
STATUS.mdcurrently says "all six families proven on the clan-lab", but family-1's dedicated on-hardware smoke (this ticket, #175) was never run — it is the missing proof, and gap 2 is why it is hard. Worth truing up whichever way this is ruled.Decision needed
targetHost, strip OurCloud-only fields, render vars generators) so the real write-side adapters drive the golden flake; prove enroll/vars/supply on the lab; deploy/rollback proven via the working-tree form with the NAT honesty limit documented. Largest scope; closes family-1 fully. Open question: is that shim smoke scaffolding, or production code that belongs in the fleet flake / aclan-adapter-inventory-renderslice?clan.Classifyover real clan errors on the lab, working-tree deploy + idempotent redeploy), document both gaps as honesty limits, and split the write-side reconciliation into a new ticket (like #184/#151 were split).Lab destroyed after diagnosis (evidence captured above). Re-arm with
ready-for-agentonce ruled.Human ruling (Ben, 2026-07-30): B + C2.
clan.Classifyover real clan errors, working-tree deploy + idempotent redeploy — and document both gaps as honesty limits (the smoke-fleet pattern).engine-adapters:clan-inventory-render) — render-on-write / parse-on-read of clan's native inventory.json inside the adapter, DDR 0010's quarantine preserved, golden round-trip tests against a real clan flake mandatory. It carries the write-side smoke leg (enroll / vars / supply on the lab), gates #183 via a native dependency, and family 1 is proven only when that leg passes.The ask-human thread is answered with the same ruling.
Independent second run — same two gaps confirmed, with three refinements
A separate Sandcastle iteration built the same smoke against a fresh golden clan-lab (clan-core
db4db726, 3 NixOS VMs) and reached the identical diagnosis: gap 1 (NAT — the revision-pinned deploy fetches inputs on the target) and gap 2 (the OurCloud↔clan-nativeinventory.jsonschema collision; the "smoke-reconciled" rendering layer does not exist in the tree). Corroborated empirically —loadInventory→writeInventoryround-trip destroys clan'sdeploy.targetHostand injects an emptyname. Confirming the ruling is real and not a one-off.Three things this run adds:
1. Gap 1 has a substrate-honest workaround: Seed-then-Deploy (S13 Q9). The revision-pinned form is not merely "unusable on NAT" — seeding the target first makes it work on the lab. Driven live on node1:
Without the seed the same deploy times out fetching
clan-coreon the node; with it, the productionAdapter.Deployreconciles. This is exactly the S13 Q9 composition (Supply.SeedisDeploy's precondition on a cache-starved node) and it means deploy / idempotent redeploy / rollback-to-revision are provable through the real Adapter on the lab, seeded-first — a stronger result than the working-tree--build-host localhostfallback.2. The substrate-honest legs run GREEN on real hardware today (supports option B). Driving the production adapter (classify via the real
Adapter.Readiness/Classify; deploy viaAdapter.Deploy/Rollback) and the write-side verbs at the clan seam (the exact commandsvarsFace/supplyFaceissue, since gap 2 blocks the adapter's inventory read):config_eval(real "failed assertions"),connectivityclassified BEFORE secrets (real "no route to host"),missing_var(real "Couldn't find var"). PASS through the productionClassify.clan vars generateseals, and a--regenerate --generator smoke-arotation churns only smoke-a's ciphertext; smoke-b byte-for-byte unchanged (S13 Q3). PASS.nix flake archiveseeds a cache-starved node's closures over SSH. PASS.clan machines update ?rev=over the realised closure.3. A decision-independent fix (ship regardless of A/B/C): real clan answers an ungenerated secret with
Couldn't find var: <g> for machine: <n>, whichclan.Classify's missing_var token set does NOT match → it falls through toFailUnknown(operator gets no "run vars generate" remedy). One-line fix ininternal/clan/errors.go, add to the missing_var case:(+ a
TestClassify_Taxonomyregression row). Verified green against real clan on the lab.Recommendation: B — prove the substrate-honest legs now (they already pass on hardware), document both gaps as honesty limits, and split the OurCloud→clan-native inventory rendering into its own slice (it is production code for the fleet flake, not smoke scaffolding — every write-side adapter depends on it, so it wants its own ticket + review, à la #184/#151). The rendering shim (snake→camel
targetHost, strip OurCloud-only keys, render vars generators) is small but load-bearing enough to deserve that.Still blocked on the human ruling (A/B/C). Lab destroyed after the run; note also both my lab attempts got locked out by golden-image cloud-init resetting root's authorized_keys under heavy first-boot builds — worth a golden-image note if this recurs. Leaving
ready-for-human.nix copy --dry-run, a flag the real nix does not have (and a flake-ref eval trap) — fixed under #175 #190Done — family 1 PROVEN by its own smoke (Ben drove the lab run live, 2026-07-30). Landed on
mainas1344f52(harness + findings) on top of4394d55(the #186 fix). Findings:docs/spike-findings/smoke-clan-175.md.The run — golden clan-lab (clan-core
db4db726), 3 nodes, every leg through the REAL production adapter (clan.New(repo, clan.ExecCLI{}, nil)) where the verb exists; harnesscontrol-plane/cmd/smoke-clan+scripts/smoke-clan.sh. Final verdicts (structured, per the manifest's AC):AC1 (every leg passes with structured verdicts) — 7/8 PASS; the one non-PASS is the install takeover, SUBSTRATE-LIMIT per the #182/#185 honesty pattern (this ticket's own out_of_scope clause): the kexec phase has the TARGET fetch the kexec tarball from github.com and the lab VMs have no outbound HTTPS (curl evidence in the verdict). What the lab DOES prove through the adapter: the Q2.2 config baked+committed at configure, the eval preflight over it, the phased install driven, and the stop carried as a legible classified failure — never a hang, never a fake success. The COMPLETED takeover on real hardware is spike Q2.2 (CONFIRMED); #183's human-driven journey re-proves it.
AC2 (forced failures match the S13/Q2.2 taxonomy) —
config_eval,missing_var(typed refusal in 0s, naming the secret),connectivity: all classified with operator-legible messages (verdicts above).Surfaced defects (the #184/#185 split precedent) — the smoke caught four real adapter/CLI mismatches, all filed and fixed same-day, all previously masked by scripted doubles accepting invocation shapes the real pin doesn't have: #186 (stdin answers — Ben's ruling, fixed
4394d55), #188 (bare-namevars getmasked list), #189 (stderr fused into revealed secrets), #190 (fictionalnix copy --dry-run). Every double is now faithful to the lab-probed pin.Lab destroyed after evidence copy. Full run log available on request (6 KB,
smoke-clan.log).nix copy --dry-run, a flag the real nix does not have (and a flake-ref eval trap) — fixed under #175 #190