drive (brand-reach): the remove-<slug> legs prove only the S5 card + review diff, never the guest — they green a removal that never left the box #1351

Closed
opened 2026-09-09 06:15:05 +00:00 by matou-build-agent · 3 comments

Split out of #1348. The removal that OOM-killed the guest was reported GREEN by checks that cannot see the box: expectServiceGone (brandreach.ts) proves only the S5 card vanished, confirmRemoveDeploy only that the review diff carried a REMOVES row. Neither reaches the guest, so the #1348 accretion (every removed service still running) was invisible to the drive — the removal path (#1114 class) is reported green by a check that cannot see the failure.

Strengthen the remove-<slug> leg to prove the removal reached the GUEST: e.g. the removed slug's door stops serving (its <slug>.<apex> no longer answers 200 through the front door), or a guest-side resource/unit read shows its units stopped. This is the check that would have caught #1348 directly (and will catch a regression of the #1348 fix). Note: runs on matou-workstation; the #1348 session had no door to the drive host to validate a new assertion live.

Split out of #1348. The removal that OOM-killed the guest was reported GREEN by checks that cannot see the box: `expectServiceGone` (`brandreach.ts`) proves only the S5 card vanished, `confirmRemoveDeploy` only that the review diff carried a REMOVES row. Neither reaches the guest, so the #1348 accretion (every removed service still running) was invisible to the drive — the removal path (#1114 class) is reported green by a check that cannot see the failure. Strengthen the `remove-<slug>` leg to prove the removal reached the GUEST: e.g. the removed slug's door stops serving (its `<slug>.<apex>` no longer answers 200 through the front door), or a guest-side resource/unit read shows its units stopped. This is the check that would have caught #1348 directly (and will catch a regression of the #1348 fix). Note: runs on matou-workstation; the #1348 session had no door to the drive host to validate a new assertion live.
Author
Member

This was generated by AI during triage.

Agent Brief

Category: bug
Summary: The brand-reach drive's remove-<slug> legs prove only the S5 card vanished and the review diff carried a REMOVES row — neither reaches the guest, so they green a removal that never actually left the box (#1114 class).

Current behavior:
In the brand-reach e2e drive (brandreach.ts fixture), the removal legs assert only UI/plane-facing state:

  • expectServiceGone proves only that the S5 card vanished.
  • confirmRemoveDeploy proves only that the review diff carried a REMOVES row.

Neither assertion reaches the guest. So when #1348's accretion left every "removed" service still running (and eventually OOM-killed the plane mid-deploy), the drive reported the removals GREEN — the failure was invisible to the check.

Desired behavior:
Each remove-<slug> leg gains an assertion that proves the removal reached the GUEST, so a service that is de-selected in the UI but still running on the box turns the leg RED. Acceptable proofs (either is sufficient):

  • Front-door: the removed slug's door stops serving — <slug>.<apex> no longer answers 200 through the front door after removal.
  • Guest-side: a guest-side resource/unit read shows the removed slug's units stopped / its module gone.

This is the assertion that would have caught #1348 directly, and it guards against a regression of the #1348 (and #1349) removal fixes.

Key interfaces:

  • The remove-<slug> leg in the brand-reach drive fixture (brandreach.ts) — add a guest-reaching assertion alongside expectServiceGone / confirmRemoveDeploy; do not weaken the existing card/diff checks.
  • Whatever helper the drive already uses to probe the front door (a <slug>.<apex> GET) or read guest-side unit/resource state — reuse it rather than introducing a new transport.

Acceptance criteria:

  • After a remove-<slug> leg, the drive asserts the removed slug is gone from the GUEST (front-door <slug>.<apex> no longer answers 200, or a guest-side unit/module read shows it stopped/absent).
  • The new assertion turns the leg RED for a removal that vanishes the card/diff but leaves the service running on the box (the #1348 failure shape).
  • The existing S5-card and review-diff checks still run; the new assertion is additive.
  • The strengthened leg passes on a correct removal (post-#1349 fix).

Out of scope:

  • The provision-layer DetachService removal fixes themselves (#1349) — this ticket only strengthens the DRIVE's assertion so it can see them.
  • Interrupted-run persistence (#1350).
  • Any non-removal leg of the brand-reach drive.

Note (drive host): the drive runs on matou-workstation; the #1348 session had no door to the drive host to validate a new assertion live. The assertion is written as ordinary fixture code and is exercised when the rehearsal rail next drives brand-reach on that host — no interactive host standing is needed to author it.

> *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** The brand-reach drive's `remove-<slug>` legs prove only the S5 card vanished and the review diff carried a REMOVES row — neither reaches the guest, so they green a removal that never actually left the box (#1114 class). **Current behavior:** In the brand-reach e2e drive (`brandreach.ts` fixture), the removal legs assert only UI/plane-facing state: - `expectServiceGone` proves only that the S5 card vanished. - `confirmRemoveDeploy` proves only that the review diff carried a REMOVES row. Neither assertion reaches the guest. So when #1348's accretion left every "removed" service still running (and eventually OOM-killed the plane mid-deploy), the drive reported the removals GREEN — the failure was invisible to the check. **Desired behavior:** Each `remove-<slug>` leg gains an assertion that proves the removal reached the GUEST, so a service that is de-selected in the UI but still running on the box turns the leg RED. Acceptable proofs (either is sufficient): - **Front-door:** the removed slug's door stops serving — `<slug>.<apex>` no longer answers 200 through the front door after removal. - **Guest-side:** a guest-side resource/unit read shows the removed slug's units stopped / its module gone. This is the assertion that would have caught #1348 directly, and it guards against a regression of the #1348 (and #1349) removal fixes. **Key interfaces:** - The `remove-<slug>` leg in the brand-reach drive fixture (`brandreach.ts`) — add a guest-reaching assertion alongside `expectServiceGone` / `confirmRemoveDeploy`; do not weaken the existing card/diff checks. - Whatever helper the drive already uses to probe the front door (a `<slug>.<apex>` GET) or read guest-side unit/resource state — reuse it rather than introducing a new transport. **Acceptance criteria:** - [ ] After a `remove-<slug>` leg, the drive asserts the removed slug is gone from the GUEST (front-door `<slug>.<apex>` no longer answers 200, or a guest-side unit/module read shows it stopped/absent). - [ ] The new assertion turns the leg RED for a removal that vanishes the card/diff but leaves the service running on the box (the #1348 failure shape). - [ ] The existing S5-card and review-diff checks still run; the new assertion is additive. - [ ] The strengthened leg passes on a correct removal (post-#1349 fix). **Out of scope:** - The provision-layer DetachService removal fixes themselves (#1349) — this ticket only strengthens the DRIVE's assertion so it can see them. - Interrupted-run persistence (#1350). - Any non-removal leg of the brand-reach drive. **Note (drive host):** the drive runs on `matou-workstation`; the #1348 session had no door to the drive host to validate a new assertion live. The assertion is written as ordinary fixture code and is exercised when the rehearsal rail next drives brand-reach on that host — no interactive host standing is needed to author it.
Author
Member

swarm-claim host=matou-dev-server-01 run=20435
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=20435 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1351 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1351,
  "status": "success",
  "commits": [
    "c4d0f1e762077dcd2604f2c4db1c771757086bb6"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/brandreach.ts",
    "app/tests/e2e/fixtures/brandreach.test.ts",
    "app/tests/e2e/provision-brands.live.spec.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/brandreach.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "After a remove-<slug> leg, the drive asserts the removed slug is gone from the GUEST (guest-side unit read shows it absent)": "expectServiceGoneFromGuest(live, svc) in brandreach.ts reads the removed slug's  systemd oneshot on the guest via  over guestExec (evidence.ts SSH transport); wired into provision-brands.live.spec.ts remove-<slug> leg",
    "The new assertion turns the leg RED for a removal that vanishes the card/diff but leaves the service running (the #1348 shape)": "loadStateShowsGone returns false for //empty — the #1348 module-on-disk shape stays  and throws; proven by brandreach.test.ts 'rules the unit GONE only on systemd LoadState=not-found'",
    "The existing S5-card and review-diff checks still run; the new assertion is additive": "expectServiceGoneFromGuest is called AFTER expectServiceGone in the leg (unselect+confirmRemoveDeploy+expectServiceGone unchanged); proven by brandreach.test.ts 'is wired ... ALONGSIDE expectServiceGone, not in its place'",
    "The strengthened leg passes on a correct removal (post-#1349 fix)": "a correct removal drops the  module so  reads LoadState=not-found → loadStateShowsGone true → no throw; brandUnitName maps all seven slugs to the go-render unit names (brandreach.test.ts), live confirmation rides the next brand-reach drive on matou-workstation per the ticket's drive-host note"
  },
  "summary": "The brand-reach remove-<slug> leg now proves the removal reached the guest by reading the removed slug's  systemd unit LoadState, catching the #1348 accretion the card/diff checks could not see.",
  "blockers": []
}
**close-report** for #1351 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1351, "status": "success", "commits": [ "c4d0f1e762077dcd2604f2c4db1c771757086bb6" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/brandreach.ts", "app/tests/e2e/fixtures/brandreach.test.ts", "app/tests/e2e/provision-brands.live.spec.ts" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/brandreach.test.ts", "exit_code": 0 } ], "criteria": { "After a remove-<slug> leg, the drive asserts the removed slug is gone from the GUEST (guest-side unit read shows it absent)": "expectServiceGoneFromGuest(live, svc) in brandreach.ts reads the removed slug's systemd oneshot on the guest via over guestExec (evidence.ts SSH transport); wired into provision-brands.live.spec.ts remove-<slug> leg", "The new assertion turns the leg RED for a removal that vanishes the card/diff but leaves the service running (the #1348 shape)": "loadStateShowsGone returns false for //empty — the #1348 module-on-disk shape stays and throws; proven by brandreach.test.ts 'rules the unit GONE only on systemd LoadState=not-found'", "The existing S5-card and review-diff checks still run; the new assertion is additive": "expectServiceGoneFromGuest is called AFTER expectServiceGone in the leg (unselect+confirmRemoveDeploy+expectServiceGone unchanged); proven by brandreach.test.ts 'is wired ... ALONGSIDE expectServiceGone, not in its place'", "The strengthened leg passes on a correct removal (post-#1349 fix)": "a correct removal drops the module so reads LoadState=not-found → loadStateShowsGone true → no throw; brandUnitName maps all seven slugs to the go-render unit names (brandreach.test.ts), live confirmation rides the next brand-reach drive on matou-workstation per the ticket's drive-host note" }, "summary": "The brand-reach remove-<slug> leg now proves the removal reached the guest by reading the removed slug's systemd unit LoadState, catching the #1348 accretion the card/diff checks could not see.", "blockers": [] } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1351
No description provided.