approve — healer refused (product-behaviour surface) #1204

Closed
opened 2026-09-03 22:05:20 +00:00 by matou-build-agent · 2 comments

The healer diagnosed this red and proposed a fix, but a refusal rule fired so no commit landed — the rails reverted it.

Healer refused: product-behaviour surface

What the healer found: vm.Manager.guestRun was the one ssh call site with no -o LogLevel=ERROR and pins UserKnownHostsFile=/dev/null, so ssh's 'Warning: Permanently added …' known-hosts line led every combined-output read and guestWT0's json.Unmarshal of the whole output never decoded the guest's status — the join spun the full 3m ceiling reporting 'no wt0 address yet' (GOTCHAS #41, JSON form); pinned LogLevel=ERROR, made parseGuestWT0 cut the document from the first '{' and report whether it decoded, and split 'did not decode as JSON' from 'no wt0 address yet' so the give-up sentence names the real fault; two regression pins added, GOTCHAS #41 amended.

The healer may never weaken what a check proves, exceed the line cap, or change a product-behaviour surface (#1144). Route this to a swarm worker or a design ruling as the label suggests.

ticket-on-refusal under the healer-first regime (#1144)

drive 20260903T211817Z red at approve: the device did not reach connected — the Approve verb landed but the join failed: "clan-lab-rehearsal-c258a00d couldn’t finish joining — join: guest mesh join: vm: the guest's wt0 never came up
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T211817Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

The healer diagnosed this red and proposed a fix, but a refusal rule fired so **no commit landed** — the rails reverted it. **Healer refused: product-behaviour surface** **What the healer found:** vm.Manager.guestRun was the one ssh call site with no -o LogLevel=ERROR and pins UserKnownHostsFile=/dev/null, so ssh's 'Warning: Permanently added …' known-hosts line led every combined-output read and guestWT0's json.Unmarshal of the whole output never decoded the guest's status — the join spun the full 3m ceiling reporting 'no wt0 address yet' (GOTCHAS #41, JSON form); pinned LogLevel=ERROR, made parseGuestWT0 cut the document from the first '{' and report whether it decoded, and split 'did not decode as JSON' from 'no wt0 address yet' so the give-up sentence names the real fault; two regression pins added, GOTCHAS #41 amended. The healer may never weaken what a check proves, exceed the line cap, or change a product-behaviour surface (#1144). Route this to a swarm worker or a design ruling as the label suggests. _ticket-on-refusal under the healer-first regime (#1144)_ drive `20260903T211817Z` red at `approve`: `the device did not reach connected — the Approve verb landed but the join failed: "clan-lab-rehearsal-c258a00d couldn’t finish joining — join: guest mesh join: vm: the guest's wt0 never came up ` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T211817Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: c1ac37bc5a0d -->
Owner

Claimed by session under ADR 0174 — veto anytime. Landing this now; the healer's diagnosis is CONFIRMED by wire evidence from the gateway journal (harvested this drive, logs/gateway-journal.txt):

  • 21:53:23 — the guest peer LG9bq… redeemed the setup key and registered (the two no peer auth method WARNs are the daemon's pre-up boot attempts)
  • 21:53:24 — gateway synced 2 ACL rules, ICE connected, WireGuard handshake completed (first wg handshake detected within: 0.02sec)
  • the tunnel held until 21:56:34 — the teardown, ten seconds after the agent gave up

So the guest joined the mesh and held a live wt0 for the entire 3-minute poll; the ONLY fault was the read-back: guestRun merges stderr (CombinedOutput) and pins UserKnownHostsFile=/dev/null without LogLevel=ERROR, so ssh's Warning: Permanently added '127.0.0.1'… led every status read and json.Unmarshal never decoded — swallowed to "" = "no wt0 address yet", by construction, on every poll. up survived the same transport because it only checks exit code.

Fix (the healer's reverted shape, re-cut by hand): LogLevel=ERROR pinned, parseGuestWT0 cuts the document from the first { and reports whether it decoded, the give-up error splits did-not-decode from no-address-yet and carries the guest's last raw words. Follow-up in the same push: the journey's afterAll will stop destroying the member droplet on a red path (it deleted this drive's box 22s before the executor's evidence harvest — the executor already does harvest-then-destroy; TTL reaps if it crashes).

**Claimed by session under ADR 0174 — veto anytime.** Landing this now; the healer's diagnosis is CONFIRMED by wire evidence from the gateway journal (harvested this drive, `logs/gateway-journal.txt`): - 21:53:23 — the guest peer `LG9bq…` redeemed the setup key and registered (the two `no peer auth method` WARNs are the daemon's pre-`up` boot attempts) - 21:53:24 — gateway synced 2 ACL rules, ICE connected, **WireGuard handshake completed** (`first wg handshake detected within: 0.02sec`) - the tunnel held until 21:56:34 — the teardown, ten seconds after the agent gave up So the guest joined the mesh and held a live wt0 for the entire 3-minute poll; the ONLY fault was the read-back: `guestRun` merges stderr (CombinedOutput) and pins `UserKnownHostsFile=/dev/null` without `LogLevel=ERROR`, so ssh's `Warning: Permanently added '127.0.0.1'…` led every status read and `json.Unmarshal` never decoded — swallowed to `""` = "no wt0 address yet", by construction, on every poll. `up` survived the same transport because it only checks exit code. Fix (the healer's reverted shape, re-cut by hand): LogLevel=ERROR pinned, parseGuestWT0 cuts the document from the first `{` and reports whether it decoded, the give-up error splits *did-not-decode* from *no-address-yet* and carries the guest's last raw words. Follow-up in the same push: the journey's `afterAll` will stop destroying the member droplet on a red path (it deleted this drive's box 22s before the executor's evidence harvest — the executor already does harvest-then-destroy; TTL reaps if it crashes).
Owner

Landed as c7c50611 — three walls, each with a regression pin:

  1. guestRun pins -o LogLevel=ERROR (the transport must not talk over the guest's answer);
  2. parseGuestWT0 cuts the document from the first { and reports whether it decoded;
  3. the give-up error splits did not decode as JSON (carrying the guest's raw words, bounded to 240 chars) from no wt0 address yet — different faults, and the words are the evidence the next diagnosis gets.

Plus the evidence hole: the device journey's afterAll no longer destroys the member droplet on a red run — the executor's harvest-then-destroy owns red boxes, clan-lab TTL is the failsafe (GOTCHAS #48). GOTCHAS #41 gains the JSON form.

The wire evidence says the mesh join itself already WORKS (handshake at :24, tunnel held 3+ minutes) — so the vm-axis re-drive should carry approve past this and into the untraveled deploy-services/route legs. Advances #1153.

Landed as `c7c50611` — three walls, each with a regression pin: 1. `guestRun` pins `-o LogLevel=ERROR` (the transport must not talk over the guest's answer); 2. `parseGuestWT0` cuts the document from the first `{` and reports whether it decoded; 3. the give-up error splits *did not decode as JSON* (carrying the guest's raw words, bounded to 240 chars) from *no wt0 address yet* — different faults, and the words are the evidence the next diagnosis gets. Plus the evidence hole: the device journey's `afterAll` no longer destroys the member droplet on a red run — the executor's harvest-then-destroy owns red boxes, clan-lab TTL is the failsafe (GOTCHAS #48). GOTCHAS #41 gains the JSON form. The wire evidence says the mesh join itself already WORKS (handshake at :24, tunnel held 3+ minutes) — so the vm-axis re-drive should carry `approve` past this and into the untraveled deploy-services/route legs. Advances #1153.
ben closed this issue 2026-09-03 22:28:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1204
No description provided.