rehearsal auto-healer's git push has no non-interactive credential — validated fixes never reach the repo #676
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#676
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
The rehearsal auto-healer (
/home/swarm/rehearsal-heal/idss) computes correct fixes, commits them, but the push step fails:Observed in
logs/healer-claude.outfor rehearsal-183 (#675): the healer validated commite920f9e7(wideningtests/e2e/fixtures/wizard.ts:166) with tsc/eslint/regex checks, but it never reachedMatou/idss, so the drive kept re-failing on the same stale assertion run after run — every future rehearsal re-diagnoses an already-solved defect.Cause
The healer's git invocation has no non-interactive credential for
https://git.matou.nz(no token in the URL, no credential helper, noGIT_ASKPASS), sogit pushblocks on a username prompt and dies on a headless host.Proposed fix
Give the auto-heal loop the same token-in-URL push path the swarm workers use:
git push "https://swarm:$(cat /run/secrets/forgejo_token)@git.matou.nz/Matou/idss.git" HEAD:refs/heads/main(or wire a credential helper /
GIT_ASKPASSfor the healer's checkout).Found while working #675 (landed the healer's already-computed fixture fix by hand because it never pushed). The healer config lives in Sandcastle/rehearsal machinery (protected path per #445), so this needs an interactive session's standing to change.
Ruled by agent under ADR 0174 — veto anytime. This is a two-way door: a revertible commit/config change, proved by the offline
.sandcastle/tests/*.shsuite (real-checkout push exercises included) andcheck-harness-drift.sh.What landed
The healer's dedicated checkout (
REHEARSAL_CHECKOUT, cloned fromREHEARSAL_HEAL_REPO) had a barehttps://git.matou.nz/...origin with no username, credential helper, orGIT_ASKPASS— soheal_push'sgit push origin HEAD:mainblocked on a headless username prompt and died. That's exactly the fault that stranded #675's already-computed, already-validated fix (e920f9e7) until it was landed by hand.This is factory-core machinery (ADR 0180), vendored byte-identical into idss — not an idss-local file — so the fix was landed upstream first, not hand-edited here:
Matou/dev-factoryroot commitbd48fd6: newrehearsal_heal_authed_url()(rehearsal-heal-lib.sh) injects the sameswarm:$FORGEJO_TOKENcredentialgit-setup.sh's worker checkouts already use forgit.matou.nz. Wired intorehearsal-report.sh'stry_healat the first clone, and as agit remote set-url originrefresh before every heal's fetch — so the existing stale checkout at/home/swarm/rehearsal-heal/idss(cloned before this fix) self-heals on its next heal attempt, no manual host fix-up needed. A no-op for anything that isn't a barehttps://git.matou.nz/...origin (a local test fixture, an already-credentialed URL), so it can't touch the local-bare-origin test checkouts.tests/rehearsal-heal-lib-test.shgains 3 cases for the new helper; full offline suite green (tests/*.sh+onboarding/tests/*.sh).Matou/dev-factoryself-vendor commit1b3b665— dev-factory's own running.sandcastle/copy carries the fix too.c9b81b81— re-vendored.sandcastle/at the new pin (FACTORY_REF→bd48fd6) with--force(idss's working tree carried the identical local edit already proven against these same tests, expected byonboard_vendor's local-edit guard).check-harness-drift.sh: OK. Offline.sandcastle/tests/rehearsal-heal-lib-test.sh,rehearsal-healer-test.sh(the real-checkout push exercise), andrehearsal-report-test.shall green.Proof
STATUS.md updated in the same commit (idss
c9b81b81, dev-factorybd48fd6/1b3b665).