onboarding: install-prompt steers HEAL_WORKDIR to one host's literal home path, so the healer dies on every other pool host #352

Closed
opened 2026-11-18 14:41:49 +00:00 by ben · 4 comments
Owner

What happened

Two consumers committed a HEAL_WORKDIR that names one host's home directory, and the healer then failed on every other host in the swarm pool.

Repo HEAL_WORKDIR as committed Effect
Matou/policy-generators /home/dev/swarm/Matou/policy-generators hourly watchdog red on 9 of 16 runs on 2026-11-18
Matou/coa /home/dev/swarm/Matou/coa watchdog red from 2026-08-28; healer.yml pinned to matou-workstation on 2026-08-29 as a workaround (coa GOTCHAS 2)

Only matou-workstation runs its runner as user dev. On elitebook-03 and bens-mac-04 the runner is user swarm with home /home/swarm, and /home/dev does not exist.

Evidence

  • Host split, policy-generators, 2026-11-18. Each watchdog task id was matched against the three runner journals. All 7 green runs ran on matou-workstation. All 9 red runs ran on elitebook-03 (6) or bens-mac-04 (3). Each red run lasted about 10 seconds.
  • The error, reproduced on elitebook-03 as the runner's user. Running the first 99 lines of heal.sh with the committed default stops at mkdir -p "$HEALER_STATE" (heal.sh:99):
    mkdir: cannot create directory '/home/dev': Permission denied, exit 1.
    The same lines with HEAL_WORKDIR=$HOME/swarm/Matou/policy-generators exit 0.
  • After the fix. policy-generators ea09bfd set the default to $HOME/swarm/Matou/policy-generators. The next dispatched watchdog (run 381, task 311124) ran on elitebook-03 and was green.
  • Not from the original job logs. The runners keep no job output on disk, so the error line comes from the reproduction, not from a failed run's own log.

The second, quiet half

swarm.yml and triage.yml call $HOME/swarm/<repo>/.sandcastle/heal.sh when a run of theirs fails. That script reads the same HEAL_WORKDIR. So on the two non-workstation hosts a failed swarm or triage run got no healing, and the only sign was the "the healer errored" ping. Pinning healer.yml to one host, as coa did, hides the red watchdog but leaves this half broken.

Where the path comes from

The generator is right. onboard_gen_identity (onboarding/onboard-lib.sh:161) writes $HOME/swarm/<slug>, and has since 6faed76 (2026-08-19). Five consumers still carry that form (idss, dev-factory, matou-app, matou-website, pregnancy-navigator).

The absolute path is put there by hand, following the instructions:

  • onboarding/install-prompt.md (the identity step) describes HEAL_WORKDIR as "where the healer's own checkout of this repo lives on RUNNER_HOST", says "the generated default may not be where it actually is", and tells the installer to check it against the <workdir> collected for that one machine and "edit the file if they disagree". An installer who collected /home/dev/swarm/<slug> for matou-workstation reads $HOME/swarm/<slug> as a disagreement and writes the literal path.
  • The generated file's own header says "edit HEAL_WORKDIR below if this checkout doesn't live at the default path".

Both treat HEAL_WORKDIR as a fact about one host. It is read on every host: the healer.yml template is runs-on: swarm, and the failure hooks run wherever the failed run ran.

Proposed change

  1. install-prompt.md: say that HEAL_WORKDIR is evaluated on every pool host, that $HOME/swarm/<slug> is the same place as the collected <workdir> on each of them, and that a literal home path must not be written. The check becomes "does $HOME/swarm/<slug> exist on every machine chosen", not "does the string match one machine's path".
  2. The generated header comment in onboard_gen_identity: the same warning in one line.
  3. A mechanical check: refuse, or warn loudly on, a HEAL_WORKDIR default that starts with a literal /home/. Candidates: onboard-host enrol (it already refuses a cold store) and the harness drift check. enrol could also test that the evaluated path exists on the host being enrolled.
  4. A dev-factory GOTCHAS row for the symptom: watchdog red on some pool hosts and green on others, each failure about 10 seconds.

Checks

  • An offline test in onboarding/tests/ proves the new check refuses /home/dev/swarm/Acme/widget and passes $HOME/swarm/Acme/widget.
  • onboard-lib-test.sh fixtures are re-proven, or updated with the header wording change explained.

Out of scope

  • Both consumers are already fixed in place: policy-generators ea09bfd, coa 3f8bc22.
  • coa's healer.yml is still pinned to matou-workstation. Lifting that pin is coa's call once a dispatch proves the pool green there.

Found by an interactive session in Matou/policy-generators on 2026-11-18 (its GOTCHAS 9).

## What happened Two consumers committed a `HEAL_WORKDIR` that names one host's home directory, and the healer then failed on every other host in the `swarm` pool. | Repo | `HEAL_WORKDIR` as committed | Effect | |---|---|---| | `Matou/policy-generators` | `/home/dev/swarm/Matou/policy-generators` | hourly `watchdog` red on 9 of 16 runs on 2026-11-18 | | `Matou/coa` | `/home/dev/swarm/Matou/coa` | `watchdog` red from 2026-08-28; `healer.yml` pinned to `matou-workstation` on 2026-08-29 as a workaround (coa GOTCHAS 2) | Only `matou-workstation` runs its runner as user `dev`. On `elitebook-03` and `bens-mac-04` the runner is user `swarm` with home `/home/swarm`, and `/home/dev` does not exist. ## Evidence - **Host split, policy-generators, 2026-11-18.** Each `watchdog` task id was matched against the three runner journals. All 7 green runs ran on `matou-workstation`. All 9 red runs ran on `elitebook-03` (6) or `bens-mac-04` (3). Each red run lasted about 10 seconds. - **The error, reproduced on `elitebook-03` as the runner's user.** Running the first 99 lines of `heal.sh` with the committed default stops at `mkdir -p "$HEALER_STATE"` (`heal.sh:99`): `mkdir: cannot create directory '/home/dev': Permission denied`, exit 1. The same lines with `HEAL_WORKDIR=$HOME/swarm/Matou/policy-generators` exit 0. - **After the fix.** policy-generators `ea09bfd` set the default to `$HOME/swarm/Matou/policy-generators`. The next dispatched `watchdog` (run 381, task 311124) ran on `elitebook-03` and was green. - **Not from the original job logs.** The runners keep no job output on disk, so the error line comes from the reproduction, not from a failed run's own log. ## The second, quiet half `swarm.yml` and `triage.yml` call `$HOME/swarm/<repo>/.sandcastle/heal.sh` when a run of theirs fails. That script reads the same `HEAL_WORKDIR`. So on the two non-workstation hosts a failed swarm or triage run got no healing, and the only sign was the "the healer errored" ping. Pinning `healer.yml` to one host, as coa did, hides the red watchdog but leaves this half broken. ## Where the path comes from The generator is right. `onboard_gen_identity` (`onboarding/onboard-lib.sh:161`) writes `$HOME/swarm/<slug>`, and has since `6faed76` (2026-08-19). Five consumers still carry that form (`idss`, `dev-factory`, `matou-app`, `matou-website`, `pregnancy-navigator`). The absolute path is put there by hand, following the instructions: - `onboarding/install-prompt.md` (the `identity` step) describes `HEAL_WORKDIR` as "where the healer's own checkout of this repo lives on `RUNNER_HOST`", says "the generated default may not be where it actually is", and tells the installer to check it against the `<workdir>` collected for that one machine and "edit the file if they disagree". An installer who collected `/home/dev/swarm/<slug>` for `matou-workstation` reads `$HOME/swarm/<slug>` as a disagreement and writes the literal path. - The generated file's own header says "edit HEAL_WORKDIR below if this checkout doesn't live at the default path". Both treat `HEAL_WORKDIR` as a fact about one host. It is read on every host: the `healer.yml` template is `runs-on: swarm`, and the failure hooks run wherever the failed run ran. ## Proposed change 1. **`install-prompt.md`:** say that `HEAL_WORKDIR` is evaluated on every pool host, that `$HOME/swarm/<slug>` is the same place as the collected `<workdir>` on each of them, and that a literal home path must not be written. The check becomes "does `$HOME/swarm/<slug>` exist on every machine chosen", not "does the string match one machine's path". 2. **The generated header comment** in `onboard_gen_identity`: the same warning in one line. 3. **A mechanical check:** refuse, or warn loudly on, a `HEAL_WORKDIR` default that starts with a literal `/home/`. Candidates: `onboard-host enrol` (it already refuses a cold store) and the harness drift check. `enrol` could also test that the evaluated path exists on the host being enrolled. 4. **A dev-factory GOTCHAS row** for the symptom: watchdog red on some pool hosts and green on others, each failure about 10 seconds. ## Checks - An offline test in `onboarding/tests/` proves the new check refuses `/home/dev/swarm/Acme/widget` and passes `$HOME/swarm/Acme/widget`. - `onboard-lib-test.sh` fixtures are re-proven, or updated with the header wording change explained. ## Out of scope - Both consumers are already fixed in place: policy-generators `ea09bfd`, coa `3f8bc22`. - coa's `healer.yml` is still pinned to `matou-workstation`. Lifting that pin is coa's call once a dispatch proves the pool green there. Found by an interactive session in `Matou/policy-generators` on 2026-11-18 (its GOTCHAS 9).

This was generated by AI during triage.

Triage verification

Claims checked against main and they hold up:

  • Generator is correct. onboard_gen_identity writes : "${HEAL_WORKDIR:=$HOME/swarm/$slug}" — a per-host-evaluated default, exactly as the report states.
  • The framing that misleads the installer is real. The generated identity header says "edit HEAL_WORKDIR below if this checkout doesn't live at the default path", and install-prompt.md describes HEAL_WORKDIR as "where the healer's own checkout of this repo lives on RUNNER_HOST" — both treat a value read on every pool host as a fact about one machine.
  • No guard exists yet. No refusal/warning on a literal /home/... HEAL_WORKDIR exists in onboard-host enrol, the drift check, or anywhere else.

Diagnosis confirmed: the absolute path is hand-written by an installer following instructions that invite it. Fix is prose + a mechanical check + a GOTCHAS row + an offline test.

Ruled by agent under ADR 0174 — veto anytime

Proposal item 3 leaves two open choices (refuse vs. warn; which command hosts the check). Ruling:

  • Refuse, don't just warn. A HEAL_WORKDIR default whose value begins with a literal /home/ (rather than $HOME/) must hard-fail loudly (non-zero exit, named reason), matching how onboard-host enrol already refuses a cold store.
  • Guard at both enrol time and drift time. Primary refusal in onboard-host enrol (catches a bad path before the host is enrolled); the harness drift check (check-harness-drift.sh) also flags a committed literal /home/... HEAL_WORKDIR, so a path already committed in a consumer surfaces on every drift run, not only at first enrol. Factoring (shared helper vs. two call sites) is the implementing agent's call.

Why this is a two-way door: refuse-vs-warn and placement are both revertible by a later commit, and the behaviour is provable by the new offline test (onboarding/tests/) plus the re-proven onboard-lib-test.sh fixtures. None of the one-way-door triggers apply (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend).


Agent Brief

Category: bug
Summary: Onboarding steers installers to write a literal single-host home path into HEAL_WORKDIR, so the healer and the swarm/triage failure hooks die on every pool host that isn't the one the installer measured.

Current behavior:
HEAL_WORKDIR is evaluated on every pool host — the healer.yml template is runs-on: swarm, and swarm.yml/triage.yml call $HOME/swarm/<repo>/.sandcastle/heal.sh on whichever host their failed run landed on. The generator correctly defaults it to $HOME/swarm/<slug> (a per-host expansion). But two installer-facing texts frame it as a fact about one machine:

  • the generated identity-file header comment ("edit HEAL_WORKDIR below if this checkout doesn't live at the default path"), and
  • install-prompt.md's identity step ("where the healer's own checkout lives on RUNNER_HOST"; "the generated default may not be where it actually is"; "edit the file if they disagree").
    An installer who collected /home/dev/swarm/<slug> for one host reads $HOME/swarm/<slug> as a disagreement and overwrites it with the literal path. On any host whose runner user home isn't /home/dev, heal.sh then fails at mkdir -p "$HEALER_STATE" with Permission denied. There is no mechanical guard against this.

Desired behavior:

  • The two texts explain that HEAL_WORKDIR is evaluated on every chosen pool host, that $HOME/swarm/<slug> is the same place as the collected <workdir> on each of them, and that a literal home path must never be written. The installer's check becomes "does $HOME/swarm/<slug> exist on every machine chosen", not "does the string match one machine's path".
  • A mechanical check refuses a HEAL_WORKDIR default beginning with a literal /home/ (see the ADR 0174 ruling above), loud and non-zero, at both enrol time and drift time.
  • A GOTCHAS hazard records the symptom so the next occurrence is recognised fast.

Key interfaces / behavioural contracts:

  • onboard_gen_identity's emitted identity file: the HEAL_WORKDIR default line stays $HOME/swarm/<slug>; only the header comment's wording changes (one line warning the value is evaluated on every host, never a literal home path).
  • install-prompt.md identity step and its verification table row: reworded per "Desired behavior".
  • The new guard: a predicate that accepts $HOME/swarm/Acme/widget (and any $HOME/... form) and rejects a value beginning with a literal /home/. Reachable from onboard-host enrol and from check-harness-drift.sh; both fail loud and non-zero on rejection.
  • GOTCHAS: a new body file under docs/gotchas/ keyed by this ticket number (GOTCHAS #352) + one index row in docs/GOTCHAS.md, both in the fix commit.

Acceptance criteria:

  • A new offline test in onboarding/tests/ proves the guard refuses /home/dev/swarm/Acme/widget and passes $HOME/swarm/Acme/widget.
  • onboard-host enrol and check-harness-drift.sh both reject a literal-/home/ HEAL_WORKDIR loud and non-zero.
  • The generated identity header comment and install-prompt.md no longer frame HEAL_WORKDIR as a single-host fact; they state it is evaluated on every pool host and a literal home path must not be written.
  • onboard-lib-test.sh cutover-proof fixtures are re-proven byte-identical, or updated with the header wording change explained (per CLAUDE.md blast-radius rule).
  • A docs/gotchas/<id>-slug.md body + a docs/GOTCHAS.md index row land in the same commit (symptom: watchdog red on some pool hosts, green on others, each failure ~10s).
  • The offline suite passes: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done
  • Journal entry (docs/journal/YYYY-MM-DD-352.md) + the affected STATUS.md surface row updated in the same commit (CLAUDE.md project-state rule).

Out of scope:

  • The two consumers are already fixed in place (policy-generators ea09bfd, coa 3f8bc22) — don't touch consumer repos (pull-only topology, ADR 0001).
  • Lifting coa's healer.yml pin to matou-workstation — that's coa's call once a dispatch proves its pool green.
  • Changing the $HOME/swarm/<slug> default itself — it is correct.
> *This was generated by AI during triage.* ## Triage verification Claims checked against `main` and they hold up: - **Generator is correct.** `onboard_gen_identity` writes `: "${HEAL_WORKDIR:=$HOME/swarm/$slug}"` — a per-host-evaluated default, exactly as the report states. - **The framing that misleads the installer is real.** The generated identity header says *"edit HEAL_WORKDIR below if this checkout doesn't live at the default path"*, and `install-prompt.md` describes `HEAL_WORKDIR` as *"where the healer's own checkout of this repo lives on `RUNNER_HOST`"* — both treat a value read on every pool host as a fact about one machine. - **No guard exists yet.** No refusal/warning on a literal `/home/...` `HEAL_WORKDIR` exists in `onboard-host enrol`, the drift check, or anywhere else. Diagnosis confirmed: the absolute path is hand-written by an installer following instructions that invite it. Fix is prose + a mechanical check + a GOTCHAS row + an offline test. ## Ruled by agent under ADR 0174 — veto anytime Proposal item 3 leaves two open choices (refuse vs. warn; which command hosts the check). Ruling: - **Refuse, don't just warn.** A `HEAL_WORKDIR` default whose value begins with a literal `/home/` (rather than `$HOME/`) must **hard-fail loudly** (non-zero exit, named reason), matching how `onboard-host enrol` already refuses a cold store. - **Guard at both enrol time and drift time.** Primary refusal in `onboard-host enrol` (catches a bad path before the host is enrolled); the harness drift check (`check-harness-drift.sh`) also flags a committed literal `/home/...` `HEAL_WORKDIR`, so a path already committed in a consumer surfaces on every drift run, not only at first enrol. Factoring (shared helper vs. two call sites) is the implementing agent's call. **Why this is a two-way door:** refuse-vs-warn and placement are both revertible by a later commit, and the behaviour is provable by the new offline test (`onboarding/tests/`) plus the re-proven `onboard-lib-test.sh` fixtures. None of the one-way-door triggers apply (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). --- ## Agent Brief **Category:** bug **Summary:** Onboarding steers installers to write a literal single-host home path into `HEAL_WORKDIR`, so the healer and the swarm/triage failure hooks die on every pool host that isn't the one the installer measured. **Current behavior:** `HEAL_WORKDIR` is evaluated on **every** pool host — the `healer.yml` template is `runs-on: swarm`, and `swarm.yml`/`triage.yml` call `$HOME/swarm/<repo>/.sandcastle/heal.sh` on whichever host their failed run landed on. The generator correctly defaults it to `$HOME/swarm/<slug>` (a per-host expansion). But two installer-facing texts frame it as a fact about one machine: - the generated identity-file header comment ("edit HEAL_WORKDIR below if this checkout doesn't live at the default path"), and - `install-prompt.md`'s `identity` step ("where the healer's own checkout lives on `RUNNER_HOST`"; "the generated default may not be where it actually is"; "edit the file if they disagree"). An installer who collected `/home/dev/swarm/<slug>` for one host reads `$HOME/swarm/<slug>` as a disagreement and overwrites it with the literal path. On any host whose runner user home isn't `/home/dev`, `heal.sh` then fails at `mkdir -p "$HEALER_STATE"` with `Permission denied`. There is no mechanical guard against this. **Desired behavior:** - The two texts explain that `HEAL_WORKDIR` is evaluated on every chosen pool host, that `$HOME/swarm/<slug>` **is** the same place as the collected `<workdir>` on each of them, and that a literal home path must never be written. The installer's check becomes "does `$HOME/swarm/<slug>` exist on every machine chosen", not "does the string match one machine's path". - A mechanical check **refuses** a `HEAL_WORKDIR` default beginning with a literal `/home/` (see the ADR 0174 ruling above), loud and non-zero, at both enrol time and drift time. - A GOTCHAS hazard records the symptom so the next occurrence is recognised fast. **Key interfaces / behavioural contracts:** - `onboard_gen_identity`'s emitted identity file: the `HEAL_WORKDIR` default line stays `$HOME/swarm/<slug>`; only the header comment's wording changes (one line warning the value is evaluated on every host, never a literal home path). - `install-prompt.md` `identity` step and its verification table row: reworded per "Desired behavior". - The new guard: a predicate that accepts `$HOME/swarm/Acme/widget` (and any `$HOME/...` form) and rejects a value beginning with a literal `/home/`. Reachable from `onboard-host enrol` and from `check-harness-drift.sh`; both fail loud and non-zero on rejection. - GOTCHAS: a new body file under `docs/gotchas/` keyed by this ticket number (**GOTCHAS #352**) + one index row in `docs/GOTCHAS.md`, both in the fix commit. **Acceptance criteria:** - [ ] A new offline test in `onboarding/tests/` proves the guard **refuses** `/home/dev/swarm/Acme/widget` and **passes** `$HOME/swarm/Acme/widget`. - [ ] `onboard-host enrol` and `check-harness-drift.sh` both reject a literal-`/home/` `HEAL_WORKDIR` loud and non-zero. - [ ] The generated identity header comment and `install-prompt.md` no longer frame `HEAL_WORKDIR` as a single-host fact; they state it is evaluated on every pool host and a literal home path must not be written. - [ ] `onboard-lib-test.sh` cutover-proof fixtures are re-proven byte-identical, or updated with the header wording change explained (per CLAUDE.md blast-radius rule). - [ ] A `docs/gotchas/<id>-slug.md` body + a `docs/GOTCHAS.md` index row land in the same commit (symptom: watchdog red on some pool hosts, green on others, each failure ~10s). - [ ] The offline suite passes: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` - [ ] Journal entry (`docs/journal/YYYY-MM-DD-352.md`) + the affected `STATUS.md` surface row updated in the same commit (CLAUDE.md project-state rule). **Out of scope:** - The two consumers are already fixed in place (policy-generators `ea09bfd`, coa `3f8bc22`) — don't touch consumer repos (pull-only topology, ADR 0001). - Lifting coa's `healer.yml` pin to `matou-workstation` — that's coa's call once a dispatch proves its pool green. - Changing the `$HOME/swarm/<slug>` default itself — it is correct.

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

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

⏩ independent reviewer for #352 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #352 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>

close-report for #352 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261118-151037-fa1423 (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 352,
  "status": "success",
  "commits": [
    "f4aa04ffd26c90eca0e4eb6672b99842c64ab11e"
  ],
  "changed_files": [
    "STATUS.md",
    "check-harness-drift.sh",
    "docs/GOTCHAS.md",
    "docs/gotchas/352-heal-workdir-literal-home-dies-on-other-pool-hosts.md",
    "docs/journal/2026-11-18-352.md",
    "identity-lib.sh",
    "onboarding/install-prompt.md",
    "onboarding/onboard-host-lib.sh",
    "onboarding/onboard-lib.sh",
    "onboarding/tests/onboard-host-lib-test.sh",
    "onboarding/tests/onboard-lib-test.sh",
    "tests/check-harness-drift-test.sh",
    "tests/identity-lib-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/identity-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-host-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/check-harness-drift-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/docs-budget-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/install-prompt-contract-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A new offline test in onboarding/tests/ proves the guard refuses /home/dev/swarm/Acme/widget and passes $HOME/swarm/Acme/widget": "onboarding/tests/onboard-host-lib-test.sh — onboard_host_check_heal_workdir tests: a $HOME/ default passes, a literal /home/dev/swarm/Acme/beta FAILS naming the repo and value; the predicate itself (refuses /home/dev/swarm/Acme/widget, passes $HOME/swarm/Acme/widget) is also covered in tests/identity-lib-test.sh group 12/13",
    "onboard-host enrol and check-harness-drift.sh both reject a literal-/home/ HEAL_WORKDIR loud and non-zero": "onboard-host-lib.sh onboard_host_check_heal_workdir wired into onboard_host_preflight (enrol refuses, rc 1); check-harness-drift.sh calls identity_check_heal_workdir as a HARD drift failure (exit 1). Covered by onboard-host-lib-test.sh preflight test and check-harness-drift-test.sh T13",
    "The generated identity header comment and install-prompt.md no longer frame HEAL_WORKDIR as a single-host fact; they state it is evaluated on every pool host and a literal home path must not be written": "onboard-lib.sh onboard_gen_identity header reworded (grep-asserted in onboard-lib-test.sh: EVERY pool host + #352); install-prompt.md identity step + Proof reworded (install-prompt-contract-test.sh PASS)",
    "onboard-lib-test.sh cutover-proof fixtures are re-proven byte-identical, or updated with the header wording change explained": "onboard-lib-test.sh uses grep-based assertions on the generated identity file (no whole-file golden fixture); existing greps (HEAL_WORKDIR:=$HOME/..., FORGEJO_API, REPO_SLUG) unchanged and still pass; a new assertion covers the reworded #352 header line",
    "A docs/gotchas/<id>-slug.md body + a docs/GOTCHAS.md index row land in the same commit (symptom: watchdog red on some pool hosts, green on others, each failure ~10s)": "docs/gotchas/352-heal-workdir-literal-home-dies-on-other-pool-hosts.md body + one #352 index row in docs/GOTCHAS.md, both in commit f4aa04f; docs-budget-test.sh green",
    "The offline suite passes": "All suite tests green except the pre-existing, unrelated tests/provision-lib-test.sh (df -Pk /var/lib docker data root; fails on a clean origin/main tree too, not in this slice)",
    "Journal entry + the affected STATUS.md surface row updated in the same commit": "docs/journal/2026-11-18-352.md added; STATUS.md gains a #352 'Blocked on Ben' rollout row, both in commit f4aa04f"
  },
  "summary": "HEAL_WORKDIR is now guarded as a per-host value: a committed literal /home/... default is hard-refused at onboard-host enrol and at drift time, and the install-prompt/generated header no longer frame it as a single-host fact.",
  "blockers": []
}
**close-report** for #352 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261118-151037-fa1423` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 352, "status": "success", "commits": [ "f4aa04ffd26c90eca0e4eb6672b99842c64ab11e" ], "changed_files": [ "STATUS.md", "check-harness-drift.sh", "docs/GOTCHAS.md", "docs/gotchas/352-heal-workdir-literal-home-dies-on-other-pool-hosts.md", "docs/journal/2026-11-18-352.md", "identity-lib.sh", "onboarding/install-prompt.md", "onboarding/onboard-host-lib.sh", "onboarding/onboard-lib.sh", "onboarding/tests/onboard-host-lib-test.sh", "onboarding/tests/onboard-lib-test.sh", "tests/check-harness-drift-test.sh", "tests/identity-lib-test.sh" ], "tests": [ { "command": "bash tests/identity-lib-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-host-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/check-harness-drift-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/docs-budget-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/install-prompt-contract-test.sh", "exit_code": 0 } ], "criteria": { "A new offline test in onboarding/tests/ proves the guard refuses /home/dev/swarm/Acme/widget and passes $HOME/swarm/Acme/widget": "onboarding/tests/onboard-host-lib-test.sh — onboard_host_check_heal_workdir tests: a $HOME/ default passes, a literal /home/dev/swarm/Acme/beta FAILS naming the repo and value; the predicate itself (refuses /home/dev/swarm/Acme/widget, passes $HOME/swarm/Acme/widget) is also covered in tests/identity-lib-test.sh group 12/13", "onboard-host enrol and check-harness-drift.sh both reject a literal-/home/ HEAL_WORKDIR loud and non-zero": "onboard-host-lib.sh onboard_host_check_heal_workdir wired into onboard_host_preflight (enrol refuses, rc 1); check-harness-drift.sh calls identity_check_heal_workdir as a HARD drift failure (exit 1). Covered by onboard-host-lib-test.sh preflight test and check-harness-drift-test.sh T13", "The generated identity header comment and install-prompt.md no longer frame HEAL_WORKDIR as a single-host fact; they state it is evaluated on every pool host and a literal home path must not be written": "onboard-lib.sh onboard_gen_identity header reworded (grep-asserted in onboard-lib-test.sh: EVERY pool host + #352); install-prompt.md identity step + Proof reworded (install-prompt-contract-test.sh PASS)", "onboard-lib-test.sh cutover-proof fixtures are re-proven byte-identical, or updated with the header wording change explained": "onboard-lib-test.sh uses grep-based assertions on the generated identity file (no whole-file golden fixture); existing greps (HEAL_WORKDIR:=$HOME/..., FORGEJO_API, REPO_SLUG) unchanged and still pass; a new assertion covers the reworded #352 header line", "A docs/gotchas/<id>-slug.md body + a docs/GOTCHAS.md index row land in the same commit (symptom: watchdog red on some pool hosts, green on others, each failure ~10s)": "docs/gotchas/352-heal-workdir-literal-home-dies-on-other-pool-hosts.md body + one #352 index row in docs/GOTCHAS.md, both in commit f4aa04f; docs-budget-test.sh green", "The offline suite passes": "All suite tests green except the pre-existing, unrelated tests/provision-lib-test.sh (df -Pk /var/lib docker data root; fails on a clean origin/main tree too, not in this slice)", "Journal entry + the affected STATUS.md surface row updated in the same commit": "docs/journal/2026-11-18-352.md added; STATUS.md gains a #352 'Blocked on Ben' rollout row, both in commit f4aa04f" }, "summary": "HEAL_WORKDIR is now guarded as a per-host value: a committed literal /home/... default is hard-refused at onboard-host enrol and at drift time, and the install-prompt/generated header no longer frame it as a single-host fact.", "blockers": [] } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#352
No description provided.