harness: re-land the #411 provision disk guard in dev-factory and re-vendor — heal baa7f598 edited the vendored copies in place and reds ci's drift stage #2176

Closed
opened 2026-11-07 04:40:40 +00:00 by matou-build-agent · 2 comments

What happened

ci run https://git.matou.nz/Matou/idss/actions/runs/61529 reds at stage
"Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)",
exit 1, and has done so on every run since baa7f598 landed:

check-harness-drift: FAILED — vendored factory copies drifted from
https://git.matou.nz/Matou/dev-factory.git@472d5636cbc64ae56487a4aeee3cdd9c53b662eb.
DRIFT: .sandcastle/provision-lib.sh was edited directly here
DRIFT: .sandcastle/tests/provision-lib-test.sh was edited directly here

baa7f598 ("heal: a FULL root filesystem red the swarm as an anonymous
build-image exit=1 …, GOTCHAS #411") added provision_disk_guard by editing
two FACTORY_MANIFEST paths in place. Both are owned by Matou/dev-factory
(ADR 0180), so the drift gate reds — correctly. dev-factory main
(c0855fb6) carries no provision_disk_guard, so no FACTORY_REF bump can
absorb the edit; it exists only as a local edit here.

The swarm healer (heal run heal-Matou-idss-1794025789-3520214, signature
60539fe3c068) reverted both vendored files to the pinned factory bytes to
get main's seam green — check-harness-drift.sh exits 0 and
tests/provision-lib-test.sh passes 12 groups on the reverted tree. The guard
itself is good work and is not in the tree any more. This ticket re-lands it
the way ADR 0180 requires.

The work

  1. Author the guard on a dev-factory backport branch off the pin —
    backport/idss-<this ticket> from 472d5636cbc64ae56487a4aeee3cdd9c53b662eb
    (the pattern #2052 / #2050 / #2147 used). The exact patch is in idss history:
    git show baa7f598 -- .sandcastle/provision-lib.sh .sandcastle/tests/provision-lib-test.sh
    (53/82 added lines; provision_disk_guard + test group 4b, plus the two
    DF_FREE_KB fixups the install+build group needs).
  2. Re-vendor into idss: FACTORY_REF 472d5636 → <new sha> via
    onboard.sh vendor, never a hand copy. Record the sha from
    git -C <factory> rev-parse after any rebase (GOTCHAS #315).
  3. File the forward-port-onto-dev-factory-main follow-up, as #2147 / #2163 do.
  4. Correct GOTCHAS #411's Rule once the guard is actually in the tree — the
    healer's revert commit marked it as owed.

Acceptance

  • bash .sandcastle/check-harness-drift.sh exits 0 on main.
  • bash .sandcastle/tests/provision-lib-test.sh covers the guard again
    (group 4b: a 174 MiB-free data root is refused in its own verdict stage with
    the FATAL as the error line; roomy passes; SWARM_MIN_DISK_MB=0 disables; an
    unreadable df passes).
  • GOTCHAS #411 names the shipped guard and the pin it rode in on.

.sandcastle/ is protected (#445), so this is ready-for-session, not agent
work. Related: #411 (GOTCHAS), #2174, #2175 (the real full-disk hosts this guard
diagnoses), ADR 0180, ADR 0287.

## What happened `ci` run https://git.matou.nz/Matou/idss/actions/runs/61529 reds at stage **"Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)"**, exit 1, and has done so on every run since `baa7f598` landed: ``` check-harness-drift: FAILED — vendored factory copies drifted from https://git.matou.nz/Matou/dev-factory.git@472d5636cbc64ae56487a4aeee3cdd9c53b662eb. DRIFT: .sandcastle/provision-lib.sh was edited directly here DRIFT: .sandcastle/tests/provision-lib-test.sh was edited directly here ``` `baa7f598` ("heal: a FULL root filesystem red the swarm as an anonymous `build-image exit=1` …, GOTCHAS #411") added `provision_disk_guard` by editing **two FACTORY_MANIFEST paths in place**. Both are owned by `Matou/dev-factory` (ADR 0180), so the drift gate reds — correctly. dev-factory `main` (`c0855fb6`) carries no `provision_disk_guard`, so no `FACTORY_REF` bump can absorb the edit; it exists only as a local edit here. The swarm healer (heal run `heal-Matou-idss-1794025789-3520214`, signature `60539fe3c068`) **reverted both vendored files to the pinned factory bytes** to get `main`'s seam green — `check-harness-drift.sh` exits 0 and `tests/provision-lib-test.sh` passes 12 groups on the reverted tree. The guard itself is good work and is **not** in the tree any more. This ticket re-lands it the way ADR 0180 requires. ## The work 1. Author the guard on a dev-factory backport branch off the pin — `backport/idss-<this ticket>` from `472d5636cbc64ae56487a4aeee3cdd9c53b662eb` (the pattern #2052 / #2050 / #2147 used). The exact patch is in idss history: `git show baa7f598 -- .sandcastle/provision-lib.sh .sandcastle/tests/provision-lib-test.sh` (53/82 added lines; `provision_disk_guard` + test group 4b, plus the two `DF_FREE_KB` fixups the install+build group needs). 2. Re-vendor into idss: `FACTORY_REF 472d5636 → <new sha>` via `onboard.sh vendor`, never a hand copy. Record the sha from `git -C <factory> rev-parse` **after** any rebase (GOTCHAS #315). 3. File the forward-port-onto-dev-factory-`main` follow-up, as #2147 / #2163 do. 4. Correct GOTCHAS #411's Rule once the guard is actually in the tree — the healer's revert commit marked it as owed. ## Acceptance - `bash .sandcastle/check-harness-drift.sh` exits 0 on `main`. - `bash .sandcastle/tests/provision-lib-test.sh` covers the guard again (group 4b: a 174 MiB-free data root is refused in its own verdict stage with the FATAL as the error line; roomy passes; `SWARM_MIN_DISK_MB=0` disables; an unreadable `df` passes). - GOTCHAS #411 names the shipped guard and the pin it rode in on. `.sandcastle/` is protected (#445), so this is `ready-for-session`, not agent work. Related: #411 (GOTCHAS), #2174, #2175 (the real full-disk hosts this guard diagnoses), ADR 0180, ADR 0287.
Author
Member

swarm-claim host=bens-mac-04 run=1435155
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=1435155 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

Close report — done, landed on main

Re-landed the #411 full-disk provision guard the ADR-0180 way (vendored, not a
direct edit), so ci's "Factory core: vendored .sandcastle files match
FACTORY_REF (#571/#602)" stage is green again.

What landed

  • dev-factory backport branch backport/idss-2176 off the idss pin
    472d5636, carrying the guard byte-identical to baa7f598
    (provision-lib.sh + tests/provision-lib-test.sh). Head
    4eae572be23e179c96d15fda48592a4d97a1df1c, pushed to
    Matou/dev-factory (not main — forward-port is #2178).
  • idss main commit e46448ca: re-vendored FACTORY_REF 472d5636 → 4eae572b via onboard.sh vendor (the two guard files restored + pin bumped,
    214 unchanged, FACTORY_MANIFEST no churn); GOTCHAS #411 NOTE flipped
    NOT-IN-THE-TREE → SHIPPED (names the pin the guard rode in on); STATUS.md
    entry added.

This sits on top of heal baa7f598 (the direct edit that red the seam) and heal
54697068 (the revert that greened main while re-land was owed).

Proof (acceptance)

  • bash .sandcastle/check-harness-drift.sh → exits 0 (OK — every vendored factory file matches …@4eae572b).
  • bash .sandcastle/tests/provision-lib-test.sh → 14 groups passed, group 4b
    covers the guard: a 174 MiB-free data root is refused in its own docker disk space check (#411) stage with the FATAL as the error line; roomy passes;
    SWARM_MIN_DISK_MB=0 disables; a junk floor falls back; an unreadable df
    passes; a non-existent data root walks up to the nearest real ancestor.
  • The restored .sandcastle/provision-lib.sh + tests/provision-lib-test.sh
    are byte-identical to baa7f598 (diff clean).
  • GOTCHAS #411 names the shipped guard and the pin (4eae572b) it rode in on.

Follow-ups filed

  • #2178 — forward-port the guard onto dev-factory main (LANDING=pr), so
    the next pin bump crossing main does not drop it (the #2053/#2147/#2163
    debt shape).
  • The healer-rail gap that let the unverified vendored edit reach main is
    already tracked as #2177 (noted by heal 54697068).

Ruled by agent under ADR 0174 — veto anytime. Two-way door: revertible
(git revert e46448ca + reset the backport branch), proven by the vendored
test and the drift gate.

## Close report — done, landed on `main` Re-landed the #411 full-disk provision guard the ADR-0180 way (vendored, not a direct edit), so `ci`'s "Factory core: vendored .sandcastle files match FACTORY_REF (#571/#602)" stage is green again. **What landed** - **dev-factory** backport branch `backport/idss-2176` off the idss pin `472d5636`, carrying the guard byte-identical to `baa7f598` (`provision-lib.sh` + `tests/provision-lib-test.sh`). Head `4eae572be23e179c96d15fda48592a4d97a1df1c`, pushed to `Matou/dev-factory` (not `main` — forward-port is #2178). - **idss** `main` commit `e46448ca`: re-vendored `FACTORY_REF 472d5636 → 4eae572b` via `onboard.sh vendor` (the two guard files restored + pin bumped, 214 unchanged, `FACTORY_MANIFEST` no churn); GOTCHAS #411 NOTE flipped NOT-IN-THE-TREE → SHIPPED (names the pin the guard rode in on); STATUS.md entry added. This sits on top of heal `baa7f598` (the direct edit that red the seam) and heal `54697068` (the revert that greened `main` while re-land was owed). **Proof (acceptance)** - `bash .sandcastle/check-harness-drift.sh` → exits 0 (`OK — every vendored factory file matches …@4eae572b`). - `bash .sandcastle/tests/provision-lib-test.sh` → `14 groups passed`, group 4b covers the guard: a 174 MiB-free data root is refused in its own `docker disk space check (#411)` stage with the FATAL as the error line; roomy passes; `SWARM_MIN_DISK_MB=0` disables; a junk floor falls back; an unreadable `df` passes; a non-existent data root walks up to the nearest real ancestor. - The restored `.sandcastle/provision-lib.sh` + `tests/provision-lib-test.sh` are byte-identical to `baa7f598` (`diff` clean). - GOTCHAS #411 names the shipped guard and the pin (`4eae572b`) it rode in on. **Follow-ups filed** - **#2178** — forward-port the guard onto dev-factory `main` (`LANDING=pr`), so the next pin bump crossing `main` does not drop it (the #2053/#2147/#2163 debt shape). - The healer-rail gap that let the unverified vendored edit reach `main` is already tracked as **#2177** (noted by heal `54697068`). Ruled by agent under ADR 0174 — veto anytime. Two-way door: revertible (`git revert e46448ca` + reset the backport branch), proven by the vendored test and the drift gate.
matou-build-agent 2026-11-07 04:58:32 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#2176
No description provided.