run-swarm/heal: stamp the executing host on verdicts + evidence, and say "ran on another pool host" instead of leaving evidence empty (from matou-app#377) #135

Closed
opened 2026-09-09 23:56:53 +00:00 by ben · 4 comments
Owner

Origin: matou-app#377, attempted as matou-app PR #378 (commit e970da97), which harness-drift rejects because heal.sh and run-swarm.sh are vendored factory files (FACTORY_MANIFEST). The fix has to land here, then matou-app bumps FACTORY_REF and re-vendors.

Problem

swarm is a 2-host runner pool (matou-workstation + elitebook-03). When the failing leg ran on the other host, every host-local evidence file (~/swarm/logs/..., the on-failure verdict) comes back empty and the healer files an undiagnosable ticket (matou-app#358 was one).

What PR #378 did (use as the reference patch — git fetch https://git.matou.nz/Matou/matou-app refs/pull/378/head and git diff origin/main...FETCH_HEAD -- .sandcastle/heal.sh .sandcastle/run-swarm.sh .sandcastle/tests/)

  • run-swarm.sh: resolve the executing host (SWARM_HOST else hostname) and runner (RUNNER_NAME else the .runner file, else unknown) once, then stamp host= / runner= onto the on-failure verdict file (prepended before stage=, so heal-lib's parser is untouched), the host runlog row (appended after runlog_line's pinned format), and a swarm.db host event on the run row.
  • heal.sh gather_evidence: always write healer-host: <hostname> into the bundle; when there is no fresh worker log AND no fresh verdict locally, write an explicit no local evidence for run <n> in <window>: the failing leg ran on another swarm pool host line into worker-logs.txt / run-verdict.txt (+ no-local-evidence.txt) instead of leaving them empty, so the diagnosis agent surfaces it in the filed ticket.
  • Tests: tests/heal-test.sh (+46) and tests/run-swarm-stages-test.sh (+9) cover both.
  • The consumer-owned half (.forgejo/workflows/swarm.yml forwarding runner.name as RUNNER_NAME and echoing host=/runner= at the top of the swarm and healer jobs) stays in matou-app and can land once the factory bump ships.

Acceptance

  • A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B says so explicitly instead of shipping empty files.
  • Existing heal-lib / runlog-lib parsers and their unit tests unchanged.
Origin: [matou-app#377](https://git.matou.nz/Matou/matou-app/issues/377), attempted as [matou-app PR #378](https://git.matou.nz/Matou/matou-app/pulls/378) (commit `e970da97`), which `harness-drift` rejects because `heal.sh` and `run-swarm.sh` are vendored factory files (FACTORY_MANIFEST). The fix has to land here, then matou-app bumps `FACTORY_REF` and re-vendors. ## Problem `swarm` is a 2-host runner pool (matou-workstation + elitebook-03). When the failing leg ran on the *other* host, every host-local evidence file (`~/swarm/logs/...`, the on-failure verdict) comes back empty and the healer files an undiagnosable ticket (matou-app#358 was one). ## What PR #378 did (use as the reference patch — `git fetch https://git.matou.nz/Matou/matou-app refs/pull/378/head` and `git diff origin/main...FETCH_HEAD -- .sandcastle/heal.sh .sandcastle/run-swarm.sh .sandcastle/tests/`) - `run-swarm.sh`: resolve the executing host (`SWARM_HOST` else `hostname`) and runner (`RUNNER_NAME` else the `.runner` file, else `unknown`) once, then stamp `host=` / `runner=` onto the on-failure verdict file (prepended before `stage=`, so heal-lib's parser is untouched), the host runlog row (appended after `runlog_line`'s pinned format), and a swarm.db `host` event on the run row. - `heal.sh` `gather_evidence`: always write `healer-host: <hostname>` into the bundle; when there is no fresh worker log AND no fresh verdict locally, write an explicit `no local evidence for run <n> in <window>: the failing leg ran on another swarm pool host` line into `worker-logs.txt` / `run-verdict.txt` (+ `no-local-evidence.txt`) instead of leaving them empty, so the diagnosis agent surfaces it in the filed ticket. - Tests: `tests/heal-test.sh` (+46) and `tests/run-swarm-stages-test.sh` (+9) cover both. - The consumer-owned half (`.forgejo/workflows/swarm.yml` forwarding `runner.name` as `RUNNER_NAME` and echoing `host=/runner=` at the top of the swarm and healer jobs) stays in matou-app and can land once the factory bump ships. ## Acceptance - A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B says so explicitly instead of shipping empty files. - Existing heal-lib / runlog-lib parsers and their unit tests unchanged.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: category bug, state ready-for-agent.

Why this is a two-way door: the change touches only root-level harness files (run-swarm.sh, heal.sh, tests/heal-test.sh, tests/run-swarm-stages-test.sh) — none of which are protected paths (SWARM_POLICY_PROTECTED_PATHS is .sandcastle .forgejo) and none are prompt skeletons, so it is not ready-for-session work. It is revertible by a later commit and provable by the two named offline unit tests. It is not on the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). The consumer-owned half (.forgejo/workflows/swarm.yml) stays in matou-app by design and is out of scope here.

Verified against the code: run-swarm.sh currently does no host/runner stamping, and heal.sh's gather_evidence writes neither a healer-host: bundle line nor a "ran on another swarm pool host" fallback — so the reported empty-evidence gap is real and unimplemented. Redundancy check searched by concept (SWARM_HOST/RUNNER_NAME/hostname/healer-host/no local evidence) across both files; no prior rejection in .out-of-scope/.


Agent Brief

Category: bug
Summary: When the failing leg ran on the other swarm pool host, the healer files an undiagnosable ticket with empty evidence — stamp the executing host onto verdicts + run evidence, and say so explicitly instead of shipping empty files.

Current behavior:
swarm is a multi-host runner pool. When a run's failing leg executed on host B but the healer runs on host A, every host-local evidence source (worker logs under .sandcastle/logs/, the on-failure verdict artifact) comes back empty. The healer then files a ticket with no signature material, so the incident is undiagnosable (see matou-app#358). Nothing on the verdict or in the evidence bundle records which host actually ran the leg.

Desired behavior:

  • The on-failure verdict, the host runlog row, and the swarm.db run row all carry the executing host and runner identity, resolved once per run.
  • The healer's evidence bundle always records the healer's own host.
  • When the healer finds no fresh worker log and no fresh local verdict for the run window, it writes an explicit line — that the failing leg ran on another swarm pool host and no local evidence exists for this run — into the evidence the diagnosis agent reads, instead of leaving those files empty. The resulting ticket then surfaces the cross-host cause rather than reading as a blank failure.

Reference patch: matou-app PR #378 (commit e970da97) implemented exactly this against the vendored copies and was rejected only by harness-drift because these are FACTORY_MANIFEST files. Port it here.
git fetch https://git.matou.nz/Matou/matou-app refs/pull/378/head && git diff origin/main...FETCH_HEAD -- .sandcastle/heal.sh .sandcastle/run-swarm.sh .sandcastle/tests/
(The factory sources are heal.sh / run-swarm.sh / tests/ at the repo root; the PR's .sandcastle/ paths are the vendored mirror of the same files.)

Key interfaces / behavioral contracts:

  • run-swarm.sh — resolve host (SWARM_HOST else hostname) and runner (RUNNER_NAME else the .runner file, else unknown) once, then stamp host= / runner= onto: the on-failure verdict file (prepended before stage= so heal-lib's verdict parser is untouched), the host runlog row (appended after runlog_line's pinned format so runlog-lib's parser is untouched), and a swarm.db host event on the run row.
  • heal.sh gather_evidence — always write healer-host: <hostname> into the bundle; when there is no fresh worker log AND no fresh local verdict, write the explicit "no local evidence for run in : the failing leg ran on another swarm pool host" line into worker-logs.txt / run-verdict.txt (plus a no-local-evidence.txt) instead of leaving them empty.
  • Existing heal-lib / runlog-lib parsers and their pinned formats must remain byte-compatible — the new fields go where the parsers already ignore them.

Acceptance criteria:

  • A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files.
  • The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner.
  • The healer bundle always includes the healer's own host.
  • Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass.
  • tests/heal-test.sh and tests/run-swarm-stages-test.sh cover both the cross-host-empty case and the stamping, and the full offline suite is green (for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done).
  • STATUS.md is updated in the same commit (this changes harness evidence behavior).

Out of scope:

  • The consumer-owned half in matou-app: .forgejo/workflows/swarm.yml forwarding runner.name as RUNNER_NAME and echoing host=/runner= in the swarm and healer jobs. That lands in matou-app after this factory change ships and matou-app bumps its FACTORY_REF and re-vendors.
  • Bumping/re-vendoring the running .sandcastle/ self-copy (a human does that with onboard.sh vendor, GOTCHAS 4).
  • Changing heal-lib / runlog-lib pinned parse formats.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** category `bug`, state `ready-for-agent`. **Why this is a two-way door:** the change touches only root-level harness files (`run-swarm.sh`, `heal.sh`, `tests/heal-test.sh`, `tests/run-swarm-stages-test.sh`) — none of which are protected paths (`SWARM_POLICY_PROTECTED_PATHS` is `.sandcastle .forgejo`) and none are prompt skeletons, so it is not `ready-for-session` work. It is revertible by a later commit and provable by the two named offline unit tests. It is not on the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). The consumer-owned half (`.forgejo/workflows/swarm.yml`) stays in matou-app by design and is out of scope here. **Verified against the code:** `run-swarm.sh` currently does no host/runner stamping, and `heal.sh`'s `gather_evidence` writes neither a `healer-host:` bundle line nor a "ran on another swarm pool host" fallback — so the reported empty-evidence gap is real and unimplemented. Redundancy check searched by concept (`SWARM_HOST`/`RUNNER_NAME`/`hostname`/`healer-host`/`no local evidence`) across both files; no prior rejection in `.out-of-scope/`. --- ## Agent Brief **Category:** bug **Summary:** When the failing leg ran on the *other* swarm pool host, the healer files an undiagnosable ticket with empty evidence — stamp the executing host onto verdicts + run evidence, and say so explicitly instead of shipping empty files. **Current behavior:** `swarm` is a multi-host runner pool. When a run's failing leg executed on host B but the healer runs on host A, every host-local evidence source (worker logs under `.sandcastle/logs/`, the on-failure verdict artifact) comes back empty. The healer then files a ticket with no signature material, so the incident is undiagnosable (see matou-app#358). Nothing on the verdict or in the evidence bundle records which host actually ran the leg. **Desired behavior:** - The on-failure verdict, the host runlog row, and the swarm.db run row all carry the executing host and runner identity, resolved once per run. - The healer's evidence bundle always records the healer's own host. - When the healer finds no fresh worker log **and** no fresh local verdict for the run window, it writes an explicit line — that the failing leg ran on another swarm pool host and no local evidence exists for this run — into the evidence the diagnosis agent reads, instead of leaving those files empty. The resulting ticket then surfaces the cross-host cause rather than reading as a blank failure. **Reference patch:** matou-app PR #378 (commit `e970da97`) implemented exactly this against the vendored copies and was rejected only by `harness-drift` because these are FACTORY_MANIFEST files. Port it here. `git fetch https://git.matou.nz/Matou/matou-app refs/pull/378/head && git diff origin/main...FETCH_HEAD -- .sandcastle/heal.sh .sandcastle/run-swarm.sh .sandcastle/tests/` (The factory sources are `heal.sh` / `run-swarm.sh` / `tests/` at the repo root; the PR's `.sandcastle/` paths are the vendored mirror of the same files.) **Key interfaces / behavioral contracts:** - `run-swarm.sh` — resolve host (`SWARM_HOST` else `hostname`) and runner (`RUNNER_NAME` else the `.runner` file, else `unknown`) once, then stamp `host=` / `runner=` onto: the on-failure verdict file (prepended **before** `stage=` so heal-lib's verdict parser is untouched), the host runlog row (appended **after** `runlog_line`'s pinned format so runlog-lib's parser is untouched), and a swarm.db `host` event on the run row. - `heal.sh` `gather_evidence` — always write `healer-host: <hostname>` into the bundle; when there is no fresh worker log AND no fresh local verdict, write the explicit "no local evidence for run <n> in <window>: the failing leg ran on another swarm pool host" line into `worker-logs.txt` / `run-verdict.txt` (plus a `no-local-evidence.txt`) instead of leaving them empty. - Existing `heal-lib` / `runlog-lib` parsers and their pinned formats must remain byte-compatible — the new fields go where the parsers already ignore them. **Acceptance criteria:** - [ ] A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files. - [ ] The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner. - [ ] The healer bundle always includes the healer's own host. - [ ] Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass. - [ ] `tests/heal-test.sh` and `tests/run-swarm-stages-test.sh` cover both the cross-host-empty case and the stamping, and the full offline suite is green (`for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done`). - [ ] `STATUS.md` is updated in the same commit (this changes harness evidence behavior). **Out of scope:** - The consumer-owned half in matou-app: `.forgejo/workflows/swarm.yml` forwarding `runner.name` as `RUNNER_NAME` and echoing `host=`/`runner=` in the swarm and healer jobs. That lands in matou-app after this factory change ships and matou-app bumps its `FACTORY_REF` and re-vendors. - Bumping/re-vendoring the running `.sandcastle/` self-copy (a human does that with `onboard.sh vendor`, GOTCHAS 4). - Changing heal-lib / runlog-lib pinned parse formats.

swarm-claim host=elitebook-distributed-server-03 run=7822
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=7822 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #135 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit f035e4e is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'heal.sh' is not in the diff of the claimed commits
  • changed_files: 'run-swarm.sh' is not in the diff of the claimed commits
  • changed_files: 'tests/heal-test.sh' is not in the diff of the claimed commits
  • changed_files: 'tests/run-swarm-stages-test.sh' is not in the diff of the claimed commits
envelope
{
  "issue": 135,
  "status": "success",
  "commits": [
    "f035e4e"
  ],
  "changed_files": [
    "STATUS.md",
    "heal.sh",
    "run-swarm.sh",
    "tests/heal-test.sh",
    "tests/run-swarm-stages-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/run-swarm-stages-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/runlog-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files": "heal.sh gather_evidence writes the explicit 'no local evidence … the failing leg ran on another swarm pool host' line into worker-logs.txt / run-verdict.txt / no-local-evidence.txt when nfresh==0 and no local verdict; covered by tests/heal-test.sh remote scenario (commit f035e4e)",
    "The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner": "run-swarm.sh resolves swarm_exec_host/swarm_exec_runner once, prepends host=/runner= on the verdict, appends host=/runner= after runlog_line, and emits swarmdb_event ... host; asserted by tests/run-swarm-stages-test.sh",
    "The healer bundle always includes the healer's own host": "heal.sh writes healer-host.txt with 'healer-host: <host>' unconditionally; asserted in tests/heal-test.sh (both remote and local scenarios)",
    "Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass": "new fields go where parsers ignore them (verdict prepend before stage=, runlog append after pinned format); tests/heal-lib-test.sh and tests/runlog-lib-test.sh pass unchanged",
    "tests cover both cross-host-empty and stamping and the full offline suite is green": "tests/heal-test.sh now 19 scenarios (remote+local), tests/run-swarm-stages-test.sh asserts stamping; the four other failing suites (fleet-tui, rehearsal-healer, rehearsal-report, run-swarm-ready-list) fail identically on a clean origin/main tree — pre-existing env/network failures unrelated to this change",
    "STATUS.md is updated in the same commit": "STATUS.md header entry added in commit f035e4e"
  },
  "summary": "Ported matou-app#377/PR#378 host-stamping + healer pool-locality honesty into the factory source (run-swarm.sh, heal.sh) with offline tests.",
  "reason": "",
  "blockers": []
}
**close-report** for #135 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit f035e4e is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'heal.sh' is not in the diff of the claimed commits - changed_files: 'run-swarm.sh' is not in the diff of the claimed commits - changed_files: 'tests/heal-test.sh' is not in the diff of the claimed commits - changed_files: 'tests/run-swarm-stages-test.sh' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 135, "status": "success", "commits": [ "f035e4e" ], "changed_files": [ "STATUS.md", "heal.sh", "run-swarm.sh", "tests/heal-test.sh", "tests/run-swarm-stages-test.sh" ], "tests": [ { "command": "bash tests/run-swarm-stages-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-test.sh", "exit_code": 0 }, { "command": "bash tests/runlog-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-lib-test.sh", "exit_code": 0 } ], "criteria": { "A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files": "heal.sh gather_evidence writes the explicit 'no local evidence … the failing leg ran on another swarm pool host' line into worker-logs.txt / run-verdict.txt / no-local-evidence.txt when nfresh==0 and no local verdict; covered by tests/heal-test.sh remote scenario (commit f035e4e)", "The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner": "run-swarm.sh resolves swarm_exec_host/swarm_exec_runner once, prepends host=/runner= on the verdict, appends host=/runner= after runlog_line, and emits swarmdb_event ... host; asserted by tests/run-swarm-stages-test.sh", "The healer bundle always includes the healer's own host": "heal.sh writes healer-host.txt with 'healer-host: <host>' unconditionally; asserted in tests/heal-test.sh (both remote and local scenarios)", "Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass": "new fields go where parsers ignore them (verdict prepend before stage=, runlog append after pinned format); tests/heal-lib-test.sh and tests/runlog-lib-test.sh pass unchanged", "tests cover both cross-host-empty and stamping and the full offline suite is green": "tests/heal-test.sh now 19 scenarios (remote+local), tests/run-swarm-stages-test.sh asserts stamping; the four other failing suites (fleet-tui, rehearsal-healer, rehearsal-report, run-swarm-ready-list) fail identically on a clean origin/main tree — pre-existing env/network failures unrelated to this change", "STATUS.md is updated in the same commit": "STATUS.md header entry added in commit f035e4e" }, "summary": "Ported matou-app#377/PR#378 host-stamping + healer pool-locality honesty into the factory source (run-swarm.sh, heal.sh) with offline tests.", "reason": "", "blockers": [] } ``` </details>

close-report for #135 — status success

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

envelope
{
  "issue": 135,
  "status": "success",
  "commits": [
    "f035e4e61c8370c66ababdfa3f4542201a918fda"
  ],
  "changed_files": [
    "STATUS.md",
    "heal.sh",
    "run-swarm.sh",
    "tests/heal-test.sh",
    "tests/run-swarm-stages-test.sh"
  ],
  "tests": [
    {
      "command": "bash tests/run-swarm-stages-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/runlog-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files": "heal.sh gather_evidence writes the explicit 'no local evidence … the failing leg ran on another swarm pool host' line into worker-logs.txt / run-verdict.txt / no-local-evidence.txt when nfresh==0 and no local verdict; covered by tests/heal-test.sh remote scenario (commit f035e4e)",
    "The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner": "run-swarm.sh resolves swarm_exec_host/swarm_exec_runner once, prepends host=/runner= on the verdict, appends host=/runner= after runlog_line, and emits swarmdb_event ... host; asserted by tests/run-swarm-stages-test.sh",
    "The healer bundle always includes the healer's own host": "heal.sh writes healer-host.txt with 'healer-host: <host>' unconditionally; asserted in tests/heal-test.sh (both remote and local scenarios)",
    "Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass": "new fields go where parsers ignore them (verdict prepend before stage=, runlog append after pinned format); tests/heal-lib-test.sh and tests/runlog-lib-test.sh pass unchanged",
    "tests cover both cross-host-empty and stamping and the full offline suite is green": "tests/heal-test.sh now 19 scenarios (remote+local), tests/run-swarm-stages-test.sh asserts stamping; the four other failing suites (fleet-tui, rehearsal-healer, rehearsal-report, run-swarm-ready-list) fail identically on a clean origin/main tree — pre-existing env/network failures unrelated to this change",
    "STATUS.md is updated in the same commit": "STATUS.md header entry added in commit f035e4e"
  },
  "summary": "Ported matou-app#377/PR#378 host-stamping + healer pool-locality honesty into the factory source (run-swarm.sh, heal.sh) with offline tests.",
  "reason": "",
  "blockers": []
}
**close-report** for #135 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 135, "status": "success", "commits": [ "f035e4e61c8370c66ababdfa3f4542201a918fda" ], "changed_files": [ "STATUS.md", "heal.sh", "run-swarm.sh", "tests/heal-test.sh", "tests/run-swarm-stages-test.sh" ], "tests": [ { "command": "bash tests/run-swarm-stages-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-test.sh", "exit_code": 0 }, { "command": "bash tests/runlog-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-lib-test.sh", "exit_code": 0 } ], "criteria": { "A verdict/evidence bundle produced on host A for a run whose failing leg ran on host B states this explicitly instead of shipping empty files": "heal.sh gather_evidence writes the explicit 'no local evidence … the failing leg ran on another swarm pool host' line into worker-logs.txt / run-verdict.txt / no-local-evidence.txt when nfresh==0 and no local verdict; covered by tests/heal-test.sh remote scenario (commit f035e4e)", "The on-failure verdict, host runlog row, and swarm.db run row each carry the executing host + runner": "run-swarm.sh resolves swarm_exec_host/swarm_exec_runner once, prepends host=/runner= on the verdict, appends host=/runner= after runlog_line, and emits swarmdb_event ... host; asserted by tests/run-swarm-stages-test.sh", "The healer bundle always includes the healer's own host": "heal.sh writes healer-host.txt with 'healer-host: <host>' unconditionally; asserted in tests/heal-test.sh (both remote and local scenarios)", "Existing heal-lib / runlog-lib parsers and their unit tests are unchanged and still pass": "new fields go where parsers ignore them (verdict prepend before stage=, runlog append after pinned format); tests/heal-lib-test.sh and tests/runlog-lib-test.sh pass unchanged", "tests cover both cross-host-empty and stamping and the full offline suite is green": "tests/heal-test.sh now 19 scenarios (remote+local), tests/run-swarm-stages-test.sh asserts stamping; the four other failing suites (fleet-tui, rehearsal-healer, rehearsal-report, run-swarm-ready-list) fail identically on a clean origin/main tree — pre-existing env/network failures unrelated to this change", "STATUS.md is updated in the same commit": "STATUS.md header entry added in commit f035e4e" }, "summary": "Ported matou-app#377/PR#378 host-stamping + healer pool-locality honesty into the factory source (run-swarm.sh, heal.sh) with offline tests.", "reason": "", "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#135
No description provided.