place-files: the bench refuses a service that fits — it judges taps against a fabricated 4 GB gateway until gatewayOffer lands #1556

Closed
opened 2026-09-16 23:59:43 +00:00 by matou-build-agent · 1 comment

The failure

drive-rented-services 20260916T232928Z, leg place-files (artifacts/legs.json, artifacts/verdict.json → firstRedLeg: place-files, commit 0bc96e1d):

"whakapapa" did not land on the gateway after a tap — the bench refused it (no room?)

The tap itself succeeded — the trace records Click locator('[data-field="bench"] [data-service="whakapapa"]') completing cleanly (pw:api@144, 12040→12097 ms), then the landing assertion at app/tests/e2e/fixtures/wizard.ts:310 timing out 30 s later. So tapPool() ran and refused.

The evidence says there was room

The error-context a11y snapshot of the gateway card at failure time:

  • placed: Files & documents 768 MB, Community archive 768 MB, Document archive 768 MB, Community front door 640 MB → 2944 MB
  • the meter: 2.9 GB of 6.4 GB usable (8 GB machine · $60/month) — ceiling 6554 MB
  • still on the bench: Genealogy 1.6 GB (whakapapa, 1600 MB), Data collections 512 MB, Surveys 192 MB

2944 + 1600 = 4544 MB, comfortably inside 6554. The bench refused a service that fits.

The defect

The refusal was measured against a ceiling that no longer existed by the time the card was read.

  • app/src/components/founding/FoundingDevicePlacement.vue:306 — const gatewayMb = ref(0).
  • app/src/components/founding/devicePlacement.ts:159 — seedDevices stands a fabricated 4096 MB in for a rented gateway whose size is still 0: memMb: accessKind === 'rented' ? gatewayMemMb || 4096 : gatewayMemMb.
  • app/src/components/founding/FoundingDevicePlacement.vue:472-489 — onMounted awaits serviceCatalogue() first (that is what renders the bench pills and makes them tappable), and only then awaits gatewayOffer() before correcting the gateway's memMb.

So between the catalogue read landing and the offer round-trip returning, the bench is fully interactive with a 4096 MB gateway → ceilingMb = 3277 MB. In that window: files → 1408, archive → 2176, document-archive → 2944 (all ≤ 3277, all landed); whakapapa → 4544 > 3277, refused. The offer then arrived, memMb became 8192, and the card re-rendered as 2.9 GB of 6.4 GB usable (8 GB machine) — which is exactly the state the failure snapshot captured, 30 s after the refusal.

This is the refusal fits() explicitly forbids itself (devicePlacement.ts:224-227): "a fabricated ceiling would refuse a service the machine may run perfectly well."

Suspected layer

The app's founding bench (renderer), not the seam and not the harness. The walk already has the answer: FoundingJourney.vue:81 passes :gateway-mem-mb="draft?.access?.gatewayMemMb" — the size recorded at S4a — but the local gatewayMb ref ignored it until the offer replied.

The fix (committed)

const gatewayMb = ref(props.gatewayMemMb ?? 0) — the bench measures against the machine the operator bought from its first paint. The offer still fills the size in for a walk that carried none, and the 4096 MB stand-in survives for that unknown case.

Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)

Two-way door. The change is one line of initialisation (ref(0) → ref(props.gatewayMemMb ?? 0)) in FoundingDevicePlacement.vue plus its comment; a later commit reverts it by restoring ref(0), with no migration, no persisted state and no seam contract touched. It is proven here by a new unit test in app/tests/unit/foundingDevicePlacement.test.ts that holds gatewayOffer() open, taps the four services the drive taps, and asserts all four land — red before the fix with whakapapa was refused by a bench that did not yet know its gateway, green after. It is a mechanical repair, not a design decision: the ordered gateway size was ALREADY the number this screen meant to measure against (the walk passes it in at FoundingJourney.vue:81, and fits() documents that a fabricated ceiling must never refuse a service), so nothing about what a community sees, what a deploy does, or what the bench proves changes — a missing readiness gate is closed so the code does what it already meant. No default, message, route, secret or security posture moves; the 4 GB stand-in for a genuinely unknown size is untouched. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.

drive 20260916T232928Z red at place-files (sig 77330f9dab6a) — self-fixed on the fast lane, commit e407882fd391936be929734b2d3e775e86313d3f; checks: CI=true pnpm --filter app exec vitest run tests/unit/foundingDevicePlacement.test.ts — red first (1 failed, 5 passed: 'whakapapa was refused by a bench that did not yet know its gateway'), then 6 passed after the fix. Package tests: CI=true pnpm --filter app exec vitest run — 140 files, 1679 tests, all passed. Typecheck: CI=true pnpm --filter app exec vue-tsc --noEmit -p tsconfig.json — exit 0.. evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260916T232928Z on matou-workstation.

## The failure `drive-rented-services` 20260916T232928Z, leg `place-files` (`artifacts/legs.json`, `artifacts/verdict.json` → `firstRedLeg: place-files`, commit `0bc96e1d`): > "whakapapa" did not land on the gateway after a tap — the bench refused it (no room?) The tap itself succeeded — the trace records `Click locator('[data-field="bench"] [data-service="whakapapa"]')` completing cleanly (`pw:api@144`, 12040→12097 ms), then the landing assertion at `app/tests/e2e/fixtures/wizard.ts:310` timing out 30 s later. So `tapPool()` ran and **refused**. ## The evidence says there was room The error-context a11y snapshot of the gateway card at failure time: - placed: Files & documents 768 MB, Community archive 768 MB, Document archive 768 MB, Community front door 640 MB → **2944 MB** - the meter: `2.9 GB of 6.4 GB usable (8 GB machine · $60/month)` — ceiling **6554 MB** - still on the bench: Genealogy 1.6 GB (`whakapapa`, 1600 MB), Data collections 512 MB, Surveys 192 MB 2944 + 1600 = **4544 MB**, comfortably inside 6554. The bench refused a service that fits. ## The defect The refusal was measured against a ceiling that no longer existed by the time the card was read. - `app/src/components/founding/FoundingDevicePlacement.vue:306` — `const gatewayMb = ref(0)`. - `app/src/components/founding/devicePlacement.ts:159` — `seedDevices` stands a **fabricated 4096 MB** in for a rented gateway whose size is still 0: `memMb: accessKind === 'rented' ? gatewayMemMb || 4096 : gatewayMemMb`. - `app/src/components/founding/FoundingDevicePlacement.vue:472-489` — `onMounted` awaits `serviceCatalogue()` **first** (that is what renders the bench pills and makes them tappable), and only then awaits `gatewayOffer()` before correcting the gateway's `memMb`. So between the catalogue read landing and the offer round-trip returning, the bench is fully interactive with a 4096 MB gateway → `ceilingMb` = 3277 MB. In that window: files → 1408, archive → 2176, document-archive → 2944 (all ≤ 3277, all landed); whakapapa → 4544 > 3277, **refused**. The offer then arrived, `memMb` became 8192, and the card re-rendered as `2.9 GB of 6.4 GB usable (8 GB machine)` — which is exactly the state the failure snapshot captured, 30 s after the refusal. This is the refusal `fits()` explicitly forbids itself (`devicePlacement.ts:224-227`): *"a fabricated ceiling would refuse a service the machine may run perfectly well."* ## Suspected layer The app's founding bench (renderer), not the seam and not the harness. The walk already has the answer: `FoundingJourney.vue:81` passes `:gateway-mem-mb="draft?.access?.gatewayMemMb"` — the size recorded at S4a — but the local `gatewayMb` ref ignored it until the offer replied. ## The fix (committed) `const gatewayMb = ref(props.gatewayMemMb ?? 0)` — the bench measures against the machine the operator bought from its first paint. The offer still fills the size in for a walk that carried none, and the 4096 MB stand-in survives for that unknown case. ## Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime) Two-way door. The change is one line of initialisation (`ref(0)` → `ref(props.gatewayMemMb ?? 0)`) in `FoundingDevicePlacement.vue` plus its comment; a later commit reverts it by restoring `ref(0)`, with no migration, no persisted state and no seam contract touched. It is proven here by a new unit test in `app/tests/unit/foundingDevicePlacement.test.ts` that holds `gatewayOffer()` open, taps the four services the drive taps, and asserts all four land — red before the fix with `whakapapa was refused by a bench that did not yet know its gateway`, green after. It is a mechanical repair, not a design decision: the ordered gateway size was ALREADY the number this screen meant to measure against (the walk passes it in at `FoundingJourney.vue:81`, and `fits()` documents that a fabricated ceiling must never refuse a service), so nothing about what a community sees, what a deploy does, or what the bench proves changes — a missing readiness gate is closed so the code does what it already meant. No default, message, route, secret or security posture moves; the 4 GB stand-in for a genuinely unknown size is untouched. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes. drive `20260916T232928Z` red at `place-files` (sig 77330f9dab6a) — self-fixed on the fast lane, commit `e407882fd391936be929734b2d3e775e86313d3f`; checks: CI=true pnpm --filter app exec vitest run tests/unit/foundingDevicePlacement.test.ts — red first (1 failed, 5 passed: 'whakapapa was refused by a bench that did not yet know its gateway'), then 6 passed after the fix. Package tests: CI=true pnpm --filter app exec vitest run — 140 files, 1679 tests, all passed. Typecheck: CI=true pnpm --filter app exec vue-tsc --noEmit -p tsconfig.json — exit 0.. evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260916T232928Z` on matou-workstation. <!-- rehearsal-sig: 77330f9dab6a -->
Author
Member

close-report for #1556 — status success

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

envelope
{
  "issue": 1556,
  "status": "success",
  "commits": [
    "e407882fd391936be929734b2d3e775e86313d3f"
  ],
  "changed_files": [
    "app/src/components/founding/FoundingDevicePlacement.vue",
    "app/tests/unit/foundingDevicePlacement.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm --filter app exec vitest run tests/unit/foundingDevicePlacement.test.ts — red first (1 failed, 5 passed: 'whakapapa was refused by a bench that did not yet know its gateway'), then 6 passed after the fix. Package tests: CI=true pnpm --filter app exec vitest run — 140 files, 1679 tests, all passed. Typecheck: CI=true pnpm --filter app exec vue-tsc --noEmit -p tsconfig.json — exit 0.",
      "exit_code": 0
    }
  ],
  "criteria": {
    "the red leg is now green": "healed on the fast lane, commit e407882fd391936be929734b2d3e775e86313d3f"
  },
  "summary": "The founding bench was tappable before `gatewayOffer()` landed, so taps were judged against `seedDevices`'s fabricated 4096 MB gateway (3277 MB ceiling) and Genealogy's 1600 MB was refused off an 8 GB machine that had 3.5 GB free; seeded `gatewayMb` from the `gatewayMemMb` prop the walk already recorded at S4a.",
  "blockers": []
}
**close-report** for #1556 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1556, "status": "success", "commits": [ "e407882fd391936be929734b2d3e775e86313d3f" ], "changed_files": [ "app/src/components/founding/FoundingDevicePlacement.vue", "app/tests/unit/foundingDevicePlacement.test.ts" ], "tests": [ { "command": "CI=true pnpm --filter app exec vitest run tests/unit/foundingDevicePlacement.test.ts — red first (1 failed, 5 passed: 'whakapapa was refused by a bench that did not yet know its gateway'), then 6 passed after the fix. Package tests: CI=true pnpm --filter app exec vitest run — 140 files, 1679 tests, all passed. Typecheck: CI=true pnpm --filter app exec vue-tsc --noEmit -p tsconfig.json — exit 0.", "exit_code": 0 } ], "criteria": { "the red leg is now green": "healed on the fast lane, commit e407882fd391936be929734b2d3e775e86313d3f" }, "summary": "The founding bench was tappable before `gatewayOffer()` landed, so taps were judged against `seedDevices`'s fabricated 4096 MB gateway (3277 MB ceiling) and Genealogy's 1600 MB was refused off an 8 GB machine that had 3.5 GB free; seeded `gatewayMb` from the `gatewayMemMb` prop the walk already recorded at S4a.", "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#1556
No description provided.