engine-adapters: smoke-clan — family-1 proven on the clan-lab #175

Closed
opened 2026-07-29 05:10:09 +00:00 by ben · 4 comments
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-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

  • Given the clan-lab fleet, When the smoke script runs, Then every leg above passes with structured verdicts attached to this ticket
  • Given the forced failures, When classified, Then each matches the S13/Q2.2 taxonomy with an operator-legible message

Blocked by

  • engine-adapters:clan-adapter-enroll
  • engine-adapters:clan-adapter-config-vars-supply

Task manifest

task: engine-adapters:smoke-clan
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 (specs #11/#13/#17)
depends_on: [engine-adapters:clan-adapter-enroll, engine-adapters:clan-adapter-config-vars-supply]
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-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 - [ ] Given the clan-lab fleet, When the smoke script runs, Then every leg above passes with structured verdicts attached to this ticket - [ ] Given the forced failures, When classified, Then each matches the S13/Q2.2 taxonomy with an operator-legible message ## Blocked by - engine-adapters:clan-adapter-enroll - engine-adapters:clan-adapter-config-vars-supply ## Task manifest ```yaml task: engine-adapters:smoke-clan 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 (specs #11/#13/#17) depends_on: [engine-adapters:clan-adapter-enroll, engine-adapters:clan-adapter-config-vars-supply] out_of_scope: [performance / resource-floor numbers (honesty limits: measure only what the substrate can honestly show)] needs_human_decision: [] ```
Author
Owner

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-core db4db726, 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 (thread bsi7wh8d4pdnbce59odnextj1r) 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.go Deploy/Rollback, via flakeRef). Run live on the lab, this re-fetches the clan-core input from git.clan.lol on the node and times out over the lab's NAT:

error: unable to download 'https://git.clan.lol/api/v1/repos/clan/clan-core/archive/db4db726....tar.gz': Timeout was reached (28) Connection timed out after 5000 milliseconds
failed with error: Detected potential issue when fetching flake inputs on remote.
1 hosts failed with an error.

So Adapter.Deploy / Adapter.Rollback(RollbackRevision) in their exact production form are unusable on the NAT lab substrate — exactly the honesty limit docs/spike-findings/smoke-fleet-182.md recorded ("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 what smoke-idp/smoke-fleet proved. (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, Supply and Enroll all read+write the OurCloud-structured inventory.json (inventory.go): machines.<n>.name, .role, .vars, and deploy.**target_host** (snake_case, issue #126). Clan's native inventory.json uses deploy.**targetHost** (camelCase) and has no name/role/vars keys. inventory.go:43-44 says 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:

BEFORE: { "machines": { "node1": { "deploy": { "targetHost": "root@10.100.0.11" } } } }
AFTER:  { "machines": { "node1": { "name": "", "deploy": {} } } }   # targetHost DESTROYED, empty name injected

So Enroll.configure (→ writeNodeConfig → writeInventory), Config.*, Vars.Generate (reads m.Vars) and Supply.Seed (reads m.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.md currently 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

  • A) Build a small OurCloud-inventory → clan-native rendering shim (snake→camel 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 / a clan-adapter-inventory-render slice?
  • B) Prove the substrate-honest legs now driving the real adapter (Readiness/eval-gate, the full failure taxonomy via real clan.Classify over 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).
  • C) Your steer on where the rendering layer lives / any other shape.

Lab destroyed after diagnosis (evidence captured above). Re-arm with ready-for-agent once ruled.

## 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-core `db4db726`, 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 (thread `bsi7wh8d4pdnbce59odnextj1r`) 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.go` `Deploy`/`Rollback`, via `flakeRef`). Run live on the lab, this re-fetches the `clan-core` input from `git.clan.lol` **on the node** and times out over the lab's NAT: ``` error: unable to download 'https://git.clan.lol/api/v1/repos/clan/clan-core/archive/db4db726....tar.gz': Timeout was reached (28) Connection timed out after 5000 milliseconds failed with error: Detected potential issue when fetching flake inputs on remote. 1 hosts failed with an error. ``` So `Adapter.Deploy` / `Adapter.Rollback(RollbackRevision)` in their exact production form are **unusable on the NAT lab substrate** — exactly the honesty limit `docs/spike-findings/smoke-fleet-182.md` recorded ("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 what `smoke-idp`/`smoke-fleet` proved. (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`, `Supply` and `Enroll` all read+write the **OurCloud-structured** `inventory.json` (`inventory.go`): `machines.<n>.name`, `.role`, `.vars`, and `deploy.**target_host**` (snake_case, issue #126). Clan's **native** `inventory.json` uses `deploy.**targetHost**` (camelCase) and has no `name`/`role`/`vars` keys. `inventory.go:43-44` says 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`: ``` BEFORE: { "machines": { "node1": { "deploy": { "targetHost": "root@10.100.0.11" } } } } AFTER: { "machines": { "node1": { "name": "", "deploy": {} } } } # targetHost DESTROYED, empty name injected ``` So `Enroll.configure` (→ `writeNodeConfig` → `writeInventory`), `Config.*`, `Vars.Generate` (reads `m.Vars`) and `Supply.Seed` (reads `m.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.md` currently 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 - **A)** Build a small OurCloud-inventory → clan-native **rendering shim** (snake→camel `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 / a `clan-adapter-inventory-render` slice? - **B)** Prove the substrate-honest legs now driving the real adapter (Readiness/eval-gate, the full failure taxonomy via real `clan.Classify` over 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). - **C)** Your steer on where the rendering layer lives / any other shape. Lab destroyed after diagnosis (evidence captured above). Re-arm with `ready-for-agent` once ruled.
Author
Owner

Human ruling (Ben, 2026-07-30): B + C2.

  • This ticket: prove the substrate-honest legs now — Readiness/eval-gate, the full failure taxonomy via real clan.Classify over real clan errors, working-tree deploy + idempotent redeploy — and document both gaps as honesty limits (the smoke-fleet pattern).
  • The rendering layer is a PRODUCTION concern, not smoke scaffolding (C2): split out as #185 (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.
  • A smoke-side shim (option A) is rejected: it would mask the exact production defect this smoke caught.

The ask-human thread is answered with the same ruling.

## Human ruling (Ben, 2026-07-30): **B + C2**. - **This ticket:** prove the substrate-honest legs now — Readiness/eval-gate, the full failure taxonomy via real `clan.Classify` over real clan errors, working-tree deploy + idempotent redeploy — and document both gaps as honesty limits (the smoke-fleet pattern). - **The rendering layer is a PRODUCTION concern, not smoke scaffolding** (C2): split out as **#185** (`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. - A smoke-side shim (option A) is rejected: it would mask the exact production defect this smoke caught. The ask-human thread is answered with the same ruling.
Author
Owner

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-native inventory.json schema collision; the "smoke-reconciled" rendering layer does not exist in the tree). Corroborated empirically — loadInventory→writeInventory round-trip destroys clan's deploy.targetHost and injects an empty name. 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:

nix flake archive --to ssh-ng://root@10.100.0.11 'git+file://<dir>?rev=<rev>'   # exit 0
clan machines update node1 --flake 'git+file://<dir>?rev=<rev>' --host-key-check none   # exit 0

Without the seed the same deploy times out fetching clan-core on the node; with it, the production Adapter.Deploy reconciles. This is exactly the S13 Q9 composition (Supply.Seed is Deploy'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 localhost fallback.

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 via Adapter.Deploy/Rollback) and the write-side verbs at the clan seam (the exact commands varsFace/supplyFace issue, since gap 2 blocks the adapter's inventory read):

  • classify — full S13/Q2.2 taxonomy from REAL clan/nix exit codes: config_eval (real "failed assertions"), connectivity classified BEFORE secrets (real "no route to host"), missing_var (real "Couldn't find var"). PASS through the production Classify.
  • vars — clan vars generate seals, and a --regenerate --generator smoke-a rotation churns only smoke-a's ciphertext; smoke-b byte-for-byte unchanged (S13 Q3). PASS.
  • supply — nix flake archive seeds a cache-starved node's closures over SSH. PASS.
  • deploy — Seed→Deploy→idempotent redeploy PASS (see #1); rollback-to-revision is the same 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>, which clan.Classify's missing_var token set does NOT match → it falls through to FailUnknown (operator gets no "run vars generate" remedy). One-line fix in internal/clan/errors.go, add to the missing_var case:

strings.Contains(both, "couldn't find var") || strings.Contains(both, "could not find var") ||

(+ a TestClassify_Taxonomy regression 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.

## 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-native `inventory.json` schema collision; the "smoke-reconciled" rendering layer does not exist in the tree). Corroborated empirically — `loadInventory`→`writeInventory` round-trip destroys clan's `deploy.targetHost` and injects an empty `name`. 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: ``` nix flake archive --to ssh-ng://root@10.100.0.11 'git+file://<dir>?rev=<rev>' # exit 0 clan machines update node1 --flake 'git+file://<dir>?rev=<rev>' --host-key-check none # exit 0 ``` Without the seed the same deploy times out fetching `clan-core` on the node; **with** it, the production `Adapter.Deploy` reconciles. This is exactly the S13 Q9 composition (`Supply.Seed` is `Deploy`'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 localhost` fallback. **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 via `Adapter.Deploy`/`Rollback`) and the write-side verbs at the clan seam (the exact commands `varsFace`/`supplyFace` issue, since gap 2 blocks the adapter's inventory read): - **classify** — full S13/Q2.2 taxonomy from REAL clan/nix exit codes: `config_eval` (real "failed assertions"), `connectivity` classified BEFORE secrets (real "no route to host"), `missing_var` (real "Couldn't find var"). PASS through the production `Classify`. - **vars** — `clan vars generate` seals, and a `--regenerate --generator smoke-a` rotation churns **only** smoke-a's ciphertext; smoke-b byte-for-byte unchanged (S13 Q3). PASS. - **supply** — `nix flake archive` seeds a cache-starved node's closures over SSH. PASS. - **deploy** — Seed→Deploy→idempotent redeploy PASS (see #1); rollback-to-revision is the same `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>`, which `clan.Classify`'s missing_var token set does NOT match → it falls through to `FailUnknown` (operator gets no "run vars generate" remedy). One-line fix in `internal/clan/errors.go`, add to the missing_var case: ```go strings.Contains(both, "couldn't find var") || strings.Contains(both, "could not find var") || ``` (+ a `TestClassify_Taxonomy` regression 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`.
Author
Owner

Done — family 1 PROVEN by its own smoke (Ben drove the lab run live, 2026-07-30). Landed on main as 1344f52 (harness + findings) on top of 4394d55 (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; harness control-plane/cmd/smoke-clan + scripts/smoke-clan.sh. Final verdicts (structured, per the manifest's AC):

[
  {
    "leg": "vars",
    "status": "PASS",
    "detail": "answered seal fed as stdin data (vars set + scoped auto-accept generate), Get revealed the derived value, prompting rotation re-sealed off the fresh answer churning only itself, valueless non-prompting rotation churned only itself (S13 Q3; #186 fix live at pin db4db726)"
  },
  {
    "leg": "eval-classified",
    "status": "PASS",
    "detail": "forced eval failure classified config_eval; legible detail: error: flake 'git+file:///root/lab/clan?rev=ec4af05b379da9a3a083775e4b4aadc978ec03fa' does not provide attribute 'packag"
  },
  {
    "leg": "missing-var-classified",
    "status": "PASS",
    "detail": "typed missing_var refusal in 0s naming the secret: secret \"smoke175-locked\" prompts for an answer that was not supplied"
  },
  {
    "leg": "connectivity-classified",
    "status": "PASS",
    "detail": "unreachable target classified connectivity: could not reach the node"
  },
  {
    "leg": "deploy-redeploy-rollback",
    "status": "PASS",
    "detail": "deploy A read back off node2; redeploy converged to the SAME closure (hxjlrw6fj0gx222rwvmn9qhc7jaz6zh6-nixos-system-node2-26.11.20260612.173d0ad); deploy B switched; rollback to revision 5e650849 returned the EXACT earlier closure. Working-tree form with --build-host localhost (substrate-honest; the adapter's own update flags are seam-tested)"
  },
  {
    "leg": "seed",
    "status": "PASS",
    "detail": "closures seeded over ssh-ng: 1 store paths missing before, 0 after (idempotent nix copy)"
  },
  {
    "leg": "enroll-join",
    "status": "PASS",
    "detail": "node3 re-joined through the adapter: configure committed the target, the eval gate passed, and the VMMode verify (one `machines update` over the established connection) landed Done — the device is a clan member"
  },
  {
    "leg": "enroll-install",
    "status": "SUBSTRATE-LIMIT",
    "detail": "takeover stopped at install: the operation failed (unknown) — nested-VM substrate; the full-install takeover is proven on REAL hardware by spike Q2.2 (CONFIRMED, docs/spike-findings/q22-fresh-host-takeover.md); this run still proves the adapter drives the phased install and classifies the stop legibly\nCLI detail: [node3] curl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\n[node3] setsid: failed to execute /root/kexec/kexec/run: No such file or directory\n[node3] curl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\n[node3] setsid: failed to execute /root/kexec/kexec/run: No such file or directory\ncurl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\nsetsid: failed to execute /root/kexec/kexec/run: No such file or directory\ncurl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\nsetsid: failed to execute /root/kexec/kexec/run: No such file or directory"
  }
]

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-name vars get masked list), #189 (stderr fused into revealed secrets), #190 (fictional nix 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).

Done — **family 1 PROVEN by its own smoke** (Ben drove the lab run live, 2026-07-30). Landed on `main` as `1344f52` (harness + findings) on top of `4394d55` (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; harness `control-plane/cmd/smoke-clan` + `scripts/smoke-clan.sh`. Final verdicts (structured, per the manifest's AC): ```json [ { "leg": "vars", "status": "PASS", "detail": "answered seal fed as stdin data (vars set + scoped auto-accept generate), Get revealed the derived value, prompting rotation re-sealed off the fresh answer churning only itself, valueless non-prompting rotation churned only itself (S13 Q3; #186 fix live at pin db4db726)" }, { "leg": "eval-classified", "status": "PASS", "detail": "forced eval failure classified config_eval; legible detail: error: flake 'git+file:///root/lab/clan?rev=ec4af05b379da9a3a083775e4b4aadc978ec03fa' does not provide attribute 'packag" }, { "leg": "missing-var-classified", "status": "PASS", "detail": "typed missing_var refusal in 0s naming the secret: secret \"smoke175-locked\" prompts for an answer that was not supplied" }, { "leg": "connectivity-classified", "status": "PASS", "detail": "unreachable target classified connectivity: could not reach the node" }, { "leg": "deploy-redeploy-rollback", "status": "PASS", "detail": "deploy A read back off node2; redeploy converged to the SAME closure (hxjlrw6fj0gx222rwvmn9qhc7jaz6zh6-nixos-system-node2-26.11.20260612.173d0ad); deploy B switched; rollback to revision 5e650849 returned the EXACT earlier closure. Working-tree form with --build-host localhost (substrate-honest; the adapter's own update flags are seam-tested)" }, { "leg": "seed", "status": "PASS", "detail": "closures seeded over ssh-ng: 1 store paths missing before, 0 after (idempotent nix copy)" }, { "leg": "enroll-join", "status": "PASS", "detail": "node3 re-joined through the adapter: configure committed the target, the eval gate passed, and the VMMode verify (one `machines update` over the established connection) landed Done — the device is a clan member" }, { "leg": "enroll-install", "status": "SUBSTRATE-LIMIT", "detail": "takeover stopped at install: the operation failed (unknown) — nested-VM substrate; the full-install takeover is proven on REAL hardware by spike Q2.2 (CONFIRMED, docs/spike-findings/q22-fresh-host-takeover.md); this run still proves the adapter drives the phased install and classifies the stop legibly\nCLI detail: [node3] curl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\n[node3] setsid: failed to execute /root/kexec/kexec/run: No such file or directory\n[node3] curl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\n[node3] setsid: failed to execute /root/kexec/kexec/run: No such file or directory\ncurl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\nsetsid: failed to execute /root/kexec/kexec/run: No such file or directory\ncurl: (28) Failed to connect to github.com port 443 after 136069 ms: Could not connect to server\nsetsid: failed to execute /root/kexec/kexec/run: No such file or directory" } ] ``` **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-name `vars get` masked list), #189 (stderr fused into revealed secrets), #190 (fictional `nix 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`).
ben closed this issue 2026-07-30 17:45:06 +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#175
No description provided.