Headless host commits inherit the host user's gitconfig — matou-workstation sessions land as "Cherese Eriepa"; the harness must set its own git identity #19

Closed
opened 2026-08-22 13:48:56 +00:00 by ben · 6 comments
Owner

Symptom

Every commit made by a headless host session on matou-workstation lands authored Cherese Eriepa <cherese.eriepa@outlook.com> (sometimes <ben@tairea.io>), pushed by swarm-bot: 1b7abc2/ab5bfa6 (idss #664, session-runner, 2026-08-22 13:10Z), 9324ef1, 0e536e4, e9aa0bd, 6faed76, and the founding commit 628234c. Cherese is not working on this — it is the dev user's ~/.gitconfig on that host. By contrast the healer's repair from run 61 (5f7db35) is Matou Swarm <swarm@matou.nz> — a different host/user whose gitconfig happens to be right.

Cause

No harness script sets a git identity: grep -rn "user.name\|GIT_AUTHOR" session-runner.sh run-swarm.sh heal.sh main.mts is empty. Headless commits inherit whatever the host user's global gitconfig says — per host, per user, invisible to the factory. Provenance (which machinery made the commit) is therefore unrecoverable from git log.

Fix

  • A factory-owned identity for every headless commit path: session-runner.sh, heal.sh (the /tmp/heal-fix clone), run-swarm.sh's reconcile/rescue pushes, and main.mts's worker containers — export GIT_AUTHOR_NAME/EMAIL + GIT_COMMITTER_NAME/EMAIL (or git -c user.name=... -c user.email=...) from ONE place. The value is a per-repo/host fact, so it belongs in the identity layer: swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL (default Matou Swarm <swarm@matou.nz> is NOT acceptable in harness files — source it, or derive from REPO_SLUG's owner); the onboard.sh identity generator writes it; the policy layer (#12) is the natural long-term home.
  • Name the worker class in the identity so git log shows provenance: e.g. Matou Swarm (session-runner@<host>), Matou Swarm (healer@<host>), Matou Swarm (worker@<host>).
  • Tests: each script's offline test asserts the shimmed git commit sees the identity env.
  • Host half (Ben, separate): fix dev's ~/.gitconfig on matou-workstation so even un-harnessed commits stop impersonating Cherese. Also #6 (host enrolment) should set it as part of enrolling a machine.

Acceptance

  • A shimmed session-runner / healer / worker commit carries the identity from swarm-identity.sh, never the host gitconfig's; git log --format=%an on the next real host-session commit shows the factory identity with the worker class.
## Symptom Every commit made by a headless host session on `matou-workstation` lands authored **`Cherese Eriepa <cherese.eriepa@outlook.com>`** (sometimes `<ben@tairea.io>`), pushed by `swarm-bot`: `1b7abc2`/`ab5bfa6` (idss #664, session-runner, 2026-08-22 13:10Z), `9324ef1`, `0e536e4`, `e9aa0bd`, `6faed76`, and the founding commit `628234c`. Cherese is not working on this — it is the `dev` user's `~/.gitconfig` on that host. By contrast the healer's repair from run 61 (`5f7db35`) is `Matou Swarm <swarm@matou.nz>` — a different host/user whose gitconfig happens to be right. ## Cause No harness script sets a git identity: `grep -rn "user.name\|GIT_AUTHOR" session-runner.sh run-swarm.sh heal.sh main.mts` is empty. Headless commits inherit whatever the host user's global gitconfig says — per host, per user, invisible to the factory. Provenance (which machinery made the commit) is therefore unrecoverable from `git log`. ## Fix - A factory-owned identity for every headless commit path: `session-runner.sh`, `heal.sh` (the `/tmp/heal-fix` clone), `run-swarm.sh`'s reconcile/rescue pushes, and `main.mts`'s worker containers — export `GIT_AUTHOR_NAME/EMAIL` + `GIT_COMMITTER_NAME/EMAIL` (or `git -c user.name=... -c user.email=...`) from ONE place. The value is a per-repo/host fact, so it belongs in the identity layer: `swarm-identity.sh` gains `SWARM_GIT_NAME`/`SWARM_GIT_EMAIL` (default `Matou Swarm <swarm@matou.nz>` is NOT acceptable in harness files — source it, or derive from `REPO_SLUG`'s owner); the `onboard.sh identity` generator writes it; the policy layer (#12) is the natural long-term home. - Name the worker class in the identity so `git log` shows provenance: e.g. `Matou Swarm (session-runner@<host>)`, `Matou Swarm (healer@<host>)`, `Matou Swarm (worker@<host>)`. - Tests: each script's offline test asserts the shimmed `git commit` sees the identity env. - Host half (Ben, separate): fix `dev`'s `~/.gitconfig` on matou-workstation so even un-harnessed commits stop impersonating Cherese. Also #6 (host enrolment) should set it as part of enrolling a machine. ## Acceptance - A shimmed session-runner / healer / worker commit carries the identity from `swarm-identity.sh`, never the host gitconfig's; `git log --format=%an` on the next real host-session commit shows the factory identity with the worker class.

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

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

close-report for #19 — status success

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

envelope
{
  "issue": 19,
  "status": "success",
  "commits": [
    "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb"
  ],
  "changed_files": [
    "swarm-identity.sh",
    "session-runner.sh",
    "heal.sh",
    "run-swarm.sh",
    "main.mts",
    "onboarding/onboard-lib.sh",
    "onboarding/tests/onboard-lib-test.sh",
    "tests/swarm-identity-test.sh",
    "tests/session-runner-test.sh",
    "tests/heal-test.sh",
    "tests/model-lib-test.sh",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash tests/swarm-identity-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/session-runner-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/model-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })",
    "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API",
    "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional",
    "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1",
    "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)",
    "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below."
  },
  "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.",
  "blockers": []
}
**close-report** for #19 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 19, "status": "success", "commits": [ "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb" ], "changed_files": [ "swarm-identity.sh", "session-runner.sh", "heal.sh", "run-swarm.sh", "main.mts", "onboarding/onboard-lib.sh", "onboarding/tests/onboard-lib-test.sh", "tests/swarm-identity-test.sh", "tests/session-runner-test.sh", "tests/heal-test.sh", "tests/model-lib-test.sh", "STATUS.md" ], "tests": [ { "command": "bash tests/swarm-identity-test.sh", "exit_code": 0 }, { "command": "bash tests/session-runner-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/model-lib-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })", "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API", "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional", "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1", "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)", "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below." }, "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.", "blockers": [] } ``` </details>

close-report for #19 — status success

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

envelope
{
  "issue": 19,
  "status": "success",
  "commits": [
    "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb"
  ],
  "changed_files": [
    "swarm-identity.sh",
    "session-runner.sh",
    "heal.sh",
    "run-swarm.sh",
    "main.mts",
    "onboarding/onboard-lib.sh",
    "onboarding/tests/onboard-lib-test.sh",
    "tests/swarm-identity-test.sh",
    "tests/session-runner-test.sh",
    "tests/heal-test.sh",
    "tests/model-lib-test.sh",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash tests/swarm-identity-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/session-runner-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/model-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })",
    "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API",
    "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional",
    "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1",
    "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)",
    "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below."
  },
  "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.",
  "blockers": []
}
**close-report** for #19 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 19, "status": "success", "commits": [ "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb" ], "changed_files": [ "swarm-identity.sh", "session-runner.sh", "heal.sh", "run-swarm.sh", "main.mts", "onboarding/onboard-lib.sh", "onboarding/tests/onboard-lib-test.sh", "tests/swarm-identity-test.sh", "tests/session-runner-test.sh", "tests/heal-test.sh", "tests/model-lib-test.sh", "STATUS.md" ], "tests": [ { "command": "bash tests/swarm-identity-test.sh", "exit_code": 0 }, { "command": "bash tests/session-runner-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/model-lib-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })", "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API", "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional", "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1", "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)", "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below." }, "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.", "blockers": [] } ``` </details>

close-report for #19 — status success

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

envelope
{
  "issue": 19,
  "status": "success",
  "commits": [
    "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb"
  ],
  "changed_files": [
    "swarm-identity.sh",
    "session-runner.sh",
    "heal.sh",
    "run-swarm.sh",
    "main.mts",
    "onboarding/onboard-lib.sh",
    "onboarding/tests/onboard-lib-test.sh",
    "tests/swarm-identity-test.sh",
    "tests/session-runner-test.sh",
    "tests/heal-test.sh",
    "tests/model-lib-test.sh",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash tests/swarm-identity-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/session-runner-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/heal-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash tests/model-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })",
    "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API",
    "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional",
    "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1",
    "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)",
    "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below."
  },
  "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.",
  "blockers": []
}
**close-report** for #19 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 19, "status": "success", "commits": [ "f5bce64d7f6b8b32e6d1acda4f37a8691e43f1eb" ], "changed_files": [ "swarm-identity.sh", "session-runner.sh", "heal.sh", "run-swarm.sh", "main.mts", "onboarding/onboard-lib.sh", "onboarding/tests/onboard-lib-test.sh", "tests/swarm-identity-test.sh", "tests/session-runner-test.sh", "tests/heal-test.sh", "tests/model-lib-test.sh", "STATUS.md" ], "tests": [ { "command": "bash tests/swarm-identity-test.sh", "exit_code": 0 }, { "command": "bash tests/session-runner-test.sh", "exit_code": 0 }, { "command": "bash tests/heal-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 }, { "command": "bash tests/model-lib-test.sh", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "A factory-owned identity for every headless commit path (session-runner.sh, heal.sh clone, run-swarm.sh reconcile/rescue, main.mts worker containers) exported from ONE place": "swarm-identity.sh gains swarm_git_identity <class> which exports GIT_AUTHOR_*/GIT_COMMITTER_*; session-runner.sh calls it (session-runner), heal.sh run_agent (healer), run-swarm.sh (worker), main.mts forwards the exported vars into the container via claudeCode(SWARM_MODEL, { env: factoryGitIdentityEnv() })", "Value lives in the identity layer, not defaulted to a product literal in a harness file (swarm-identity.sh gains SWARM_GIT_NAME/SWARM_GIT_EMAIL, derive from REPO_SLUG owner)": "swarm-identity.sh: SWARM_GIT_NAME:=${REPO_SLUG%%/*} Swarm and SWARM_GIT_EMAIL:=swarm@<FORGEJO_API host, git. stripped> — no new product literal; tests/swarm-identity-test.sh case 1 proves derivation with a made-up slug/API", "onboard.sh identity generator writes it": "onboarding/onboard-lib.sh onboard_gen_identity emits the same block + helper; onboarding/tests/onboard-lib-test.sh asserts SWARM_GIT_NAME/swarm_git_identity present and functional", "Name the worker class in the identity so git log shows provenance (session-runner@host, healer@host, worker@host)": "swarm_git_identity sets GIT_AUTHOR_NAME=\"$SWARM_GIT_NAME ($class@$host)\"; tests/swarm-identity-test.sh case 2 asserts all three classes; session-runner-test case 10 and heal-test scenario 10 assert session-runner@box1 / healer@box1", "Tests: each script's offline test asserts the shimmed git commit sees the identity env": "session-runner-test.sh case 10 (fake claude records GIT_* it sees), heal-test.sh scenario 10 (stub agent records GIT_*), tests/swarm-identity-test.sh (unit + wiring guards for run-swarm.sh/main.mts which cannot run offline)", "A shimmed session-runner/healer/worker commit carries the swarm-identity.sh identity, never the host gitconfig; git log --format=%an shows the factory identity with the worker class": "Proven for session-runner and healer by the shimmed tests; run-swarm/main.mts paths proven by wiring guards + the derivation unit test. This push itself lands as 'Matou Swarm'. The live host-session %an acceptance depends on the host gitconfig fix which is the out-of-scope Ben half noted below." }, "summary": "Every headless commit path now stamps a factory git identity (Matou Swarm (<class>@<host>)) from swarm-identity.sh's swarm_git_identity helper instead of inheriting the host user's ~/.gitconfig.", "blockers": [] } ``` </details>
Author
Owner

Closed by hand (Ben's session, 2026-08-22): each of the four gates passed — closing comments above was followed by a failed PATCH state=closed — swarm-bot's machines team has repo.code: write only on this repo (no issues unit), which also explains the missing agent-working label on the claim. The gate's post-before-close ordering is ticketed separately; the team permission is Ben's to fix on the org.

Closed by hand (Ben's session, 2026-08-22): each of the four `gates passed — closing` comments above was followed by a failed `PATCH state=closed` — `swarm-bot`'s `machines` team has `repo.code: write` only on this repo (no issues unit), which also explains the missing `agent-working` label on the claim. The gate's post-before-close ordering is ticketed separately; the team permission is Ben's to fix on the org.
ben closed this issue 2026-08-22 14:14:39 +00:00

close-report gates passed (outcome success); commit f5bce64 is on origin/main. This run's sandbox token is scoped to comments only — the in-sandbox PATCH .../issues/19 {state: closed} returns 403, so the authoritative close is finalized host-side from the SANDCASTLE_ATTEMPT issue=19 outcome=success signal. No further code action needed.

_close-report gates passed (outcome `success`); commit `f5bce64` is on `origin/main`. This run's sandbox token is scoped to comments only — the in-sandbox `PATCH .../issues/19 {state: closed}` returns 403, so the authoritative close is finalized host-side from the `SANDCASTLE_ATTEMPT issue=19 outcome=success` signal. No further code action needed._
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#19
No description provided.