harness: retire the pre-#639 inline fetch-or-clone fallback in dev-factory's swarm.yml.tmpl / triage.yml.tmpl (cross-consumer propagation of #1423) #1427
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#1427
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?
Follow-up from #1423 (resolved on idss by
b070b403, which retired the inline fallback's role in idss's rendered.forgejo/workflows/swarm.yml+triage.yml— every workdir now routes through.sandcastle/git-setup.sh, with a retry-guarded cold-bootstrap retained only for a fresh/empty workdir).The remaining surface
idss's workflow files are a render of dev-factory's
onboarding/templates/workflows/swarm.yml.tmplandtriage.yml.tmpl(factory-only templates, not FACTORY_MANIFEST-vendored; re-rendered into each consumer byonboard.sh workflows). #1423 fixed the idss render only. Until the source templates inMatou/dev-factoryare retired the same way:scripts/tests/git-setup-routing-test.sh, auto-discovered byseam-smoke.sh, would go red on a reintroduced inline fetch-or-reset), but a red render is still churn, andgit fetch origin mainin itselsebranch — the exact #1411 hole this closed on idss.Scope
Matou/dev-factory: applyb070b403's shape toonboarding/templates/workflows/swarm.yml.tmpl+triage.yml.tmpl—if [ ! -f git-setup.sh ]; then <retry-guarded cold-bootstrap> fi; <git-setup.sh>, dropping the inline pre-#639 fetch-or-reset arm..forgejo/workflows/*.yml(onboard.sh workflows) in the same sync.git-setup-routing-test.shinto the factory template test surface so the template itself is pinned.Why not done in the #1423 session
#1423 was an idss
ready-for-sessionticket under ADR 0174 ("work only this ticket"); editing dev-factory's templates and re-rendering every consumer is a distinct, broader-blast-radius change touching other repos' CI.Ruled by agent under ADR 0174 — veto anytime.
Ruling
Category enhancement (kept), state
ready-for-session.Why
ready-for-session(notready-for-agent, notready-for-human)ready-for-agent: the swarm queue (.sandcastle/list-ready-tasks.sh) reads onlyready-for-agent, and its workers run checked out onMatou/idss. This ticket's work lives in a different repo (Matou/dev-factorytemplates) and then re-renders every consumer's.forgejo/workflows/*.yml— cross-repo write access to protected CI surfaces. A swarm worker cannot and must not pick that up. The filer flagged exactly this broader blast radius.ready-for-session: the work needs an interactive session's standing — write access toMatou/dev-factory,onboard.sh workflowsre-render across consumers, protected CI-template paths. Its direct predecessor #1423 was itself aready-for-sessionticket.ready-for-human: no Ben's-hands / Ben's-eyes / one-way-door residue. It is a security hardening (retires the un-retried inlinegit fetchhole, #1411 class), not a widening; no personal credentials, no member-facing trust surface, no data destruction, no non-routine spend.Why it is a two-way door
Revertible by a later commit or label change, and provable by an existing guard: idss carries
scripts/tests/git-setup-routing-test.sh(goes red on a reintroduced inlinegit fetch/checkout/reset), and the scope already asks for an equivalent guard on the factory template test surface. So the change is bounded and self-checking.Verification (claim confirmed)
Matou/dev-factory/onboarding/templates/workflows/swarm.yml.tmplstill carries the inline fallback (git fetch origin main/git checkout -f main/git reset --hard origin/main) in itselsebranch — the exact surface described.Matou/dev-factoryis a separate repo; the render targets are the consumers'.forgejo/workflows/.scripts/tests/git-setup-routing-test.sh, notgit-setup-inline-fallback-retired-test.shas the body says — mirror that file when carrying a guard into the factory template test surface.The scope (three concrete bullets + a carried guard) is a complete brief; no
needs-info.Close-report — Ruled by agent under ADR 0174 — veto anytime.
Two-way door: revertible per-repo workflow edits + a new vendor-excluded factory test. No security-posture, credential, spend, or data-destruction residue — no one-way door reached.
What landed
b070b403's shape (route every workdir through.sandcastle/git-setup.sh; retire the pre-#639 inline fetch-or-reset fallback; keep only a retry-guarded cold-bootstrap gated on git-setup.sh's ABSENCE) applied to the source templates and re-propagated to every consumer:Matou/dev-factory9fd5c3bonboarding/tests/git-setup-routing-test.sh+ STATUS.mdMatou/coacb6dc21Matou/matou-website4ee288dMatou/matou-app4016fd2Matou/idssAll five pushed to
main.Why surgical, not
onboard.sh workflowsConsumers'
.forgejo/workflows/*.ymlare not FACTORY_MANIFEST-vendored — they are per-repo renders each consumer owns, and each carries unrelated per-repo deltas (dev-factory'sSWARM_ALLOW_COLD_STOREblock; coa/matou-website behind on the #110 yield-signal; matou-website's own GOTCHAS-32 wording). A mechanical full re-render would sweep in / revert that drift. The routing block is byte-identical across all four consumers, so it was propagated surgically — replacing only the fallback, preserving every delta — exactly as #1423 did for idss. The template now preserves the${SERVER_URL#https://}no-hardcoded-remote derivation (idss's #1423 render hardcodedgit.matou.nz; the template stays generic).Proof
onboarding/tests/git-setup-routing-test.sh(vendor-excluded viaonboarding/tests/**; auto-discovered by dev-factoryci.yml'sonboarding/tests/*.shglob) extracts the routing block from each template and runs it against a fake git: established = no bootstrap + still routes through git-setup.sh; fresh = cold-bootstrap clone then routes; transient 5xx = retried; sustained = reds without falling through; failing fetch = aborts (never masked); retired gated form must stay GONE. 18 checks, red-before-green proven against the pre-fix templates.self-workflows-drift-test8/0,onboard-lib-test235/0,vendor-manifest-coverage-testPASS.bash -nclean and verified byte-identical to the template.Closing #1427 — genuinely done and proven.