remove-archive: the archive untick reviews as a plain Deploy, never remove-and-deploy #1281

Closed
opened 2026-09-07 00:20:22 +00:00 by matou-build-agent · 1 comment

Drive 20260906T234910Z (private path, target brands, commit a436c883). Legs 1–8 green, red at leg 9 of 9.

Not the known frontier. artifacts/legs.json carries no skip reasons at all and artifacts/verdict.json records "skip": 0 — the own-VPS pairing carrier issue is not implicated here; founding-prefix and operator-session both went green. This is a distinct, new red.

No live box was available. No live-box section was appended to this task, so nothing was asked of the droplet directly; everything below comes from the harvested run directory alone. That is fine for this fault — it is an app-seam classification, not a machine-state question — and the machine-state evidence that was harvested is clean (see "Layer").

The failure

artifacts/verdict.json:

{"verdict": "red", "firstRedLeg": "remove-archive", "legs": {"total": 9, "green": 8, "red": 1, "skip": 0}}

artifacts/legs.json, the red row (the identical string is artifacts/journey.json's fault):

{"leg": "remove-archive", "status": "red", "ms": 500,
 "error": "review-impact's confirm read data-status=\"plain-deploy\" — the impact classifier did not recognise the untick as a removal (expected remove-and-deploy)"}

The throw site, from the run's own error-context.md (artifacts/provision-brands.live-…-remove-/error-context.md, confirmRemoveDeploy, fixture line 243–256):

  const confirm = impactSection.locator('[data-status]');
  const status = await confirm.getAttribute('data-status');
  if (status !== 'remove-and-deploy') {
>   throw new Error(

What the screen actually rendered

artifacts/provision-brands.live-…-remove-/test-failed-1.png is the P4-S3 surface at the moment of the throw:

Review impact — gateway
REMOVES   Community archive
LOAD      ~0 GB of gateway's 3 GB in steady state
                                   [ BACK ]  [ Deploy ]

Two things follow from that image, and they point in opposite directions:

  1. The untick landed and the diff saw it. REMOVES Community archive is rendered. The re-entry fix from a436c883 (openGatewayChange clicking the tab it was already on) held — this is not a repeat of sig 363b2c05fde1.
  2. The classifier deliberately called it non-destructive. There is no ⚠ LOSES row, and the confirm is the ordinary teal Deploy, not a destructive confirm. plain-deploy is a considered verdict, not a missed diff.

Suspected layer — product, and it needs a ruling

Not infra: logs/guest-failed-units.log reads 0 loaded units listed., and logs/guest-control-plane.log:145 records service health probe … service=archive node=gateway verdict=healthy. The box was fine; nothing about the machine produced this.

The substantive question is whether tearing down the Community archive on a one-droplet community should carry ADR 0060's destructive friction. Today it does not, because destructiveness is inferred from a dataset registry that the archive is not in. The run directory corroborates the input side of that: state/clan-config/.idss/inventory.json carries a machines key only — gateway plus its founding-crown-jewels vars — and no dataset placement whatsoever, so there is nothing for a placement-derived LOSES trigger to match on.

This run's healer reached the same conclusion and refused rather than land it (logs/healer-claude.out), citing internal/catalogue/catalogue.go scoping live-dataset services to {"files": true} per ADR 0210, internal/provision/impact.go computing Destructive = Erases != nil || len(Loses) > 0 || sel.Removing — all three false — and sel.Removing being set only on the Fleet mount's whole-device remove route, not a change-picker untick. Those source citations I could not verify: reads outside this run directory were refused, so I confirm the rendered outcome and the empty inventory, not the specific lines.

The two routings are mutually exclusive and product-visible:

  • (a) Widen the live-dataset set so each brand service homes its own dataset. All seven brand-reach services then gain a ⚠ LOSES row and a destructive confirm on removal — changes what a community sees.
  • (b) Rule that a service untick legitimately is a plain Deploy, and the drive's expectation is what is wrong.

A second, independent defect — the check could never have passed

Visible in error-context.md without any repo access: confirmRemoveDeploy reads the data-status attribute and compares it against remove-and-deploy, while its own docstring three lines above says "(ReviewImpactScreen.vue's action ids)". The observed value plain-deploy is a confirm-style value, consistent with data-status carrying destructive-confirm|plain-deploy and remove-and-deploy living on data-action. If so, this assertion throws against a correctly classified destructive removal too, and its message falsely blames the classifier either way. It named the right fault here by coincidence.

This one is mechanical — but fixing it does not turn the leg green, and which value it must read is precisely what routing (a) vs (b) decides. It belongs in the same commit as the ruling.

What plugging it needs

A human ruling on (a) vs (b) first — that is the blocker. Then one commit: the classifier change (or the fixture inversion), plus the attribute fix, asserting the [data-status][data-action] pair rather than one attribute against the other's vocabulary, and quoting both in the failure message.

Absent from this run directory

  • No logs/droplet-journal.txt. The journal harvested is logs/guest-journal.log, alongside per-unit logs (guest-kanidm.log, guest-omeka-container.log, guest-caddy.log, …).
  • No impact-classification record in any log. logs/guest-control-plane.log has no impact/destructive/dataset lines — the classification happens app-side and is never logged. The trace and test-failed-1.png are the only record of it.
  • logs/state-logs.log is an error: no state logs directory at …/state/logs. logs/helper.log is 0 bytes. logs/qemu.log records the process already gone at harvest time.

drive 20260906T234910Z red at remove-archive: review-impact's confirm read data-status="plain-deploy" — the impact classifier did not recognise the untick as a removal (expected remove-and-deploy)
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260906T234910Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

Drive `20260906T234910Z` (private path, target `brands`, commit `a436c883`). Legs 1–8 green, red at leg 9 of 9. **Not the known frontier.** `artifacts/legs.json` carries **no skip reasons at all** and `artifacts/verdict.json` records `"skip": 0` — the own-VPS pairing carrier issue is not implicated here; `founding-prefix` and `operator-session` both went green. This is a distinct, new red. **No live box was available.** No live-box section was appended to this task, so nothing was asked of the droplet directly; everything below comes from the harvested run directory alone. That is fine for this fault — it is an app-seam classification, not a machine-state question — and the machine-state evidence that *was* harvested is clean (see "Layer"). ## The failure `artifacts/verdict.json`: ```json {"verdict": "red", "firstRedLeg": "remove-archive", "legs": {"total": 9, "green": 8, "red": 1, "skip": 0}} ``` `artifacts/legs.json`, the red row (the identical string is `artifacts/journey.json`'s `fault`): ```json {"leg": "remove-archive", "status": "red", "ms": 500, "error": "review-impact's confirm read data-status=\"plain-deploy\" — the impact classifier did not recognise the untick as a removal (expected remove-and-deploy)"} ``` The throw site, from the run's own `error-context.md` (`artifacts/provision-brands.live-…-remove-/error-context.md`, `confirmRemoveDeploy`, fixture line 243–256): ```ts const confirm = impactSection.locator('[data-status]'); const status = await confirm.getAttribute('data-status'); if (status !== 'remove-and-deploy') { > throw new Error( ``` ## What the screen actually rendered `artifacts/provision-brands.live-…-remove-/test-failed-1.png` is the P4-S3 surface at the moment of the throw: ``` Review impact — gateway REMOVES Community archive LOAD ~0 GB of gateway's 3 GB in steady state [ BACK ] [ Deploy ] ``` Two things follow from that image, and they point in opposite directions: 1. **The untick landed and the diff saw it.** `REMOVES Community archive` is rendered. The re-entry fix from a436c883 (`openGatewayChange` clicking the tab it was already on) held — this is not a repeat of sig `363b2c05fde1`. 2. **The classifier deliberately called it non-destructive.** There is no ⚠ LOSES row, and the confirm is the ordinary teal `Deploy`, not a destructive confirm. `plain-deploy` is a considered verdict, not a missed diff. ## Suspected layer — product, and it needs a ruling Not infra: `logs/guest-failed-units.log` reads `0 loaded units listed.`, and `logs/guest-control-plane.log:145` records `service health probe … service=archive node=gateway verdict=healthy`. The box was fine; nothing about the machine produced this. The substantive question is **whether tearing down the Community archive on a one-droplet community should carry ADR 0060's destructive friction.** Today it does not, because destructiveness is inferred from a dataset registry that the archive is not in. The run directory corroborates the input side of that: `state/clan-config/.idss/inventory.json` carries a `machines` key only — gateway plus its `founding-crown-jewels` vars — and **no dataset placement whatsoever**, so there is nothing for a placement-derived LOSES trigger to match on. This run's healer reached the same conclusion and refused rather than land it (`logs/healer-claude.out`), citing `internal/catalogue/catalogue.go` scoping live-dataset services to `{"files": true}` per ADR 0210, `internal/provision/impact.go` computing `Destructive = Erases != nil || len(Loses) > 0 || sel.Removing` — all three false — and `sel.Removing` being set only on the Fleet mount's whole-device remove route, not a change-picker untick. **Those source citations I could not verify:** reads outside this run directory were refused, so I confirm the rendered outcome and the empty inventory, not the specific lines. The two routings are mutually exclusive and product-visible: - **(a)** Widen the live-dataset set so each brand service homes its own dataset. All seven brand-reach services then gain a ⚠ LOSES row and a destructive confirm on removal — changes what a community sees. - **(b)** Rule that a service untick legitimately *is* a plain Deploy, and the drive's expectation is what is wrong. ## A second, independent defect — the check could never have passed Visible in `error-context.md` without any repo access: `confirmRemoveDeploy` reads the **`data-status`** attribute and compares it against **`remove-and-deploy`**, while its own docstring three lines above says "(ReviewImpactScreen.vue's *action ids*)". The observed value `plain-deploy` is a confirm-style value, consistent with `data-status` carrying `destructive-confirm|plain-deploy` and `remove-and-deploy` living on `data-action`. If so, this assertion throws against a *correctly* classified destructive removal too, and its message falsely blames the classifier either way. It named the right fault here by coincidence. This one is mechanical — but fixing it does not turn the leg green, and *which* value it must read is precisely what routing (a) vs (b) decides. It belongs in the same commit as the ruling. ## What plugging it needs A human ruling on (a) vs (b) first — that is the blocker. Then one commit: the classifier change (or the fixture inversion), plus the attribute fix, asserting the `[data-status][data-action]` pair rather than one attribute against the other's vocabulary, and quoting both in the failure message. ## Absent from this run directory - **No `logs/droplet-journal.txt`.** The journal harvested is `logs/guest-journal.log`, alongside per-unit logs (`guest-kanidm.log`, `guest-omeka-container.log`, `guest-caddy.log`, …). - **No impact-classification record in any log.** `logs/guest-control-plane.log` has no impact/destructive/dataset lines — the classification happens app-side and is never logged. The trace and `test-failed-1.png` are the only record of it. - `logs/state-logs.log` is an error: `no state logs directory at …/state/logs`. `logs/helper.log` is 0 bytes. `logs/qemu.log` records the process already gone at harvest time. drive `20260906T234910Z` red at `remove-archive`: `review-impact's confirm read data-status="plain-deploy" — the impact classifier did not recognise the untick as a removal (expected remove-and-deploy)` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T234910Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 363b2c05fde1 -->
Owner

RULED (b) + FIXED (ruled by agent under ADR 0174 — veto anytime)

Commit d192cc9b on main. (b): the classifier is right; the drive's expectation was the defect.

Why (b) is not an open question: the classification the fixture demanded would contradict two standing rulings. ADR 0210 deliberately scopes live-dataset services to {files}, and impact.go reserves ADR 0060's destructive friction for a real loss moment — ERASES, a last-copy LOSES, or the whole-device removal intent (#1113). None of the seven brand ports homes a dataset, and a service untick deletes no on-disk state (the podman state dirs survive; a re-tick finds the data again) — there is no loss moment, so the deliberate confirm would be false friction, and ADR 0060's teeth dull exactly as fast as false warnings train operators to click through them. (a) — homing a dataset per brand service — is a real future ruling someone may want (e.g. when a service's data actually becomes irrecoverable on removal), but it must arrive as its own ADR-0210 amendment, not as a side effect of making a drive green.

Both defects fixed in one commit (as the report asked):

  • confirmRemoveDeploy(page, svc) now asserts the pair — data-status="plain-deploy" + data-action="deploy" (the deviceProvision.ts precedent) — never one attribute against the other's vocabulary, and quotes both attributes in the failure message.
  • It additionally requires the data-field="removes" row naming the service, so a plain Deploy can never also mean a silently-dropped untick — the honest-REMOVES evidence this run's screenshot showed is now load-bearing.
  • If a future change homes a dataset on a brand port, the fixture reds loudly saying exactly that: re-rule the fixture together with that change, never alone.

Credit where due: the report's second-defect catch (attribute vs vocabulary) was exactly right — the assertion named the right fault here by coincidence and would have red a correct destructive review too.

Proof: vue-tsc clean; fixtures vitest 342/342. Closing — #1277 unblocks; remove-archive is the sole unproven leg of cycle 1.

## RULED (b) + FIXED (ruled by agent under ADR 0174 — veto anytime) Commit `d192cc9b` on `main`. **(b): the classifier is right; the drive's expectation was the defect.** **Why (b) is not an open question:** the classification the fixture demanded would contradict two standing rulings. ADR 0210 deliberately scopes live-dataset services to `{files}`, and `impact.go` reserves ADR 0060's destructive friction for a real loss moment — ERASES, a last-copy LOSES, or the whole-device removal intent (#1113). None of the seven brand ports homes a dataset, and a service untick deletes no on-disk state (the podman state dirs survive; a re-tick finds the data again) — there is no loss moment, so the deliberate confirm would be **false friction**, and ADR 0060's teeth dull exactly as fast as false warnings train operators to click through them. (a) — homing a dataset per brand service — is a real future ruling someone may want (e.g. when a service's data actually becomes irrecoverable on removal), but it must arrive as its own ADR-0210 amendment, not as a side effect of making a drive green. **Both defects fixed in one commit** (as the report asked): - `confirmRemoveDeploy(page, svc)` now asserts the **pair** — `data-status="plain-deploy"` + `data-action="deploy"` (the deviceProvision.ts precedent) — never one attribute against the other's vocabulary, and quotes **both** attributes in the failure message. - It additionally requires the `data-field="removes"` row **naming the service**, so a plain Deploy can never also mean a silently-dropped untick — the honest-REMOVES evidence this run's screenshot showed is now load-bearing. - If a future change homes a dataset on a brand port, the fixture reds loudly saying exactly that: re-rule the fixture together with that change, never alone. **Credit where due:** the report's second-defect catch (attribute vs vocabulary) was exactly right — the assertion named the right fault here by coincidence and would have red a correct destructive review too. Proof: `vue-tsc` clean; fixtures vitest 342/342. Closing — #1277 unblocks; `remove-archive` is the sole unproven leg of cycle 1.
ben closed this issue 2026-09-07 00:42:10 +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#1281
No description provided.