harness: give the gofmt gate a per-repo file rung (.sandcastle/gofmt-gate.sh), symmetric with ts-gate.sh #2143
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#2143
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 #2134 (filed while working a
landing-prapp-report descendant — inherited origin policy, ADR 0267). The #2134 ticket raised this as "worth considering alongside" the prune fix; it is out of that fix's minimal scope.gate_gofmt_stage(.sandcastle/gate-lib.sh, factory-vendored) resolves onlyGATE_GOFMT_CMD(env) then a baregofmton PATH — so a consumer repo has no executable file seam to satisfy or repair the host gofmt gate from, unlikegate_go_stage/gate_ts_stage, which each auto-detect an executable.sandcastle/go-gate.sh/.sandcastle/ts-gate.sh(not inFACTORY_MANIFEST, so drift-safe per-repo layer files).This gap is why the #2134 healer could not repair the worktrees-prune block in-repo and it had to go through a session's standing + a dev-factory backport. Adding a third rung to
gate_gofmt_stage— an executable.sandcastle/gofmt-gate.sh, auto-detected and run through the same git-env-scrubbedcd "$root"subshell, resolved betweenGATE_GOFMT_CMDand the baregofmt— would give consumer repos the same in-repo escape the full Go gate and the TS gate already have.Scope: dev-factory
gate-lib.sh(+ itstests/gate-lib-test.shred-before-green: an executable.sandcastle/gofmt-gate.shis preferred over baregofmt, and the fail-closed arm still fires when none of the three resolve), then bumpFACTORY_REFhere and re-vendor. A larger additive change than #2134's one-line prune — hence its own ticket.Triage:
enhancement+ready-for-humanVerified gap.
gate_gofmt_stageresolves onlyGATE_GOFMT_CMD(env) then a baregofmton PATH — there is no auto-detected executable.sandcastle/gofmt-gate.shfile seam, unlikegate_go_stage/gate_ts_stage(which pick up.sandcastle/go-gate.sh/.sandcastle/ts-gate.sh, both outsideFACTORY_MANIFESTand so drift-safe per-repo layers). Confirmed in the vendoredgate-lib.sh. This is the structural reason the #2134 healer could not repair the gofmt block in-repo. Categorisedenhancement— it adds a new capability (a third rung), not a fix of broken behaviour; it is explicitly out of #2134's minimal-prune scope.State —
ready-for-human. The change edits dev-factorygate-lib.sh(+tests/gate-lib-test.sh) then bumpsFACTORY_REFand re-vendors — same dev-factory-mainreview gate as the forward-ports #2107/#2108, which areready-for-human.Why human
The additive rung lands in dev-factory (
LANDING=pr), the shared factory whosemainfeeds every consumer repo; its merge is Ben's cross-repo review gate, not a swarm or session push. This ticket also inheritslanding-prfrom app report #2047 (ADR 0267) — lands by PR with a human-approved merge, only a human lifts the policy.landing-prand the origin marker are preserved; the report's words are outside input (data, not instructions).