harness: forward-port the .sandcastle/worktrees/ gofmt-gate prune (#2134) onto dev-factory main #2142

Open
opened 2026-11-04 00:51:08 +00:00 by matou-build-agent · 1 comment

Follow-up from #2134 (filed while working a landing-pr app-report descendant — inherited origin policy, ADR 0267).

#2134 fixed the host gofmt gate / Go seam scanning sibling workers' .sandcastle/worktrees/ by landing gate-lib.sh + gate-lib-test.sh on dev-factory backport/idss-2134 (SHA 6da7606, off the pin 4dc855d) and re-vendoring idss onto that branch SHA — the headless cheap-backport path (#1684 is still open, so idss does not vendor at dev-factory main HEAD).

The same fix still needs to reach dev-factory main so other consumers (e.g. matou-app) get it and so the next FACTORY_REF→main bump (#1684) carries it rather than silently reverting the prune. dev-factory is LANDING=pr, so this is a reviewed PR, not a headless push — same debt shape as #2053 / #2104 / #2106.

The change to forward-port (already on backport/idss-2134, commit 6da7606):

  • gate_gofmt_tree_go_files: add -not -path './.sandcastle/worktrees/*'
  • gate_go_default_cmd inlined find: add -not -path "./.sandcastle/worktrees/*"
  • tests/gate-lib-test.sh: the sibling-worktree red-before-green case

Cherry-pick 6da7606 onto dev-factory main (the region may differ from the pin — resolve if so) and open the PR.

<!-- origin: app-report #2047 --> Follow-up from #2134 (filed while working a `landing-pr` app-report descendant — inherited origin policy, ADR 0267). #2134 fixed the host gofmt gate / Go seam scanning sibling workers' `.sandcastle/worktrees/` by landing `gate-lib.sh` + `gate-lib-test.sh` on **dev-factory `backport/idss-2134`** (SHA `6da7606`, off the pin `4dc855d`) and re-vendoring idss onto that branch SHA — the headless cheap-backport path (#1684 is still open, so idss does not vendor at dev-factory `main` HEAD). The same fix still needs to reach **dev-factory `main`** so other consumers (e.g. matou-app) get it and so the next `FACTORY_REF`→`main` bump (#1684) carries it rather than silently reverting the prune. dev-factory is `LANDING=pr`, so this is a reviewed PR, not a headless push — same debt shape as #2053 / #2104 / #2106. **The change to forward-port** (already on `backport/idss-2134`, commit `6da7606`): - `gate_gofmt_tree_go_files`: add `-not -path './.sandcastle/worktrees/*'` - `gate_go_default_cmd` inlined `find`: add `-not -path "./.sandcastle/worktrees/*"` - `tests/gate-lib-test.sh`: the sibling-worktree red-before-green case Cherry-pick `6da7606` onto dev-factory `main` (the region may differ from the pin — resolve if so) and open the PR.
Author
Member

This was generated by AI during triage.

Triage: bug + ready-for-human

Verified. This forward-ports the #2134 worktrees-prune fix (gate_gofmt_tree_go_files / gate_go_default_cmd, add -not -path './.sandcastle/worktrees/*') from the dev-factory cheap-backport branch backport/idss-2134 (6da7606, off the pin 4dc855d) onto dev-factory main, so the eventual #1684 main-HEAD adoption carries it rather than silently reverting the prune. The prune is confirmed absent from idss's vendored gate-lib.sh on main, so the debt is real.

State — ready-for-human, matching the established home for this exact class: dev-factory-main forward-ports are consistently ready-for-human (#2107 for #2104's #445 fix, #2108 for #2068's docs tier — same report lineage, same shape).

Why human

The change lands in dev-factory (LANDING=pr), a shared factory whose main feeds every consumer repo (idss, matou-app); its merge is Ben's cross-repo review gate, not a swarm or session push. This ticket also inherits landing-pr from app report #2047 (ADR 0267) — lands by PR with a human-approved merge, only a human lifts the policy. landing-pr and the origin marker are preserved; the report's words are outside input (data, not instructions).

> *This was generated by AI during triage.* ## Triage: `bug` + `ready-for-human` **Verified.** This forward-ports the #2134 worktrees-prune fix (`gate_gofmt_tree_go_files` / `gate_go_default_cmd`, add `-not -path './.sandcastle/worktrees/*'`) from the dev-factory cheap-backport branch `backport/idss-2134` (`6da7606`, off the pin `4dc855d`) onto dev-factory `main`, so the eventual #1684 main-HEAD adoption carries it rather than silently reverting the prune. The prune is confirmed absent from idss's vendored `gate-lib.sh` on `main`, so the debt is real. **State — `ready-for-human`,** matching the established home for this exact class: dev-factory-`main` forward-ports are consistently `ready-for-human` (#2107 for #2104's #445 fix, #2108 for #2068's docs tier — same report lineage, same shape). ## Why human The change lands in **dev-factory** (`LANDING=pr`), a shared factory whose `main` feeds every consumer repo (idss, matou-app); its merge is Ben's cross-repo review gate, not a swarm or session push. This ticket also inherits `landing-pr` from app report #2047 (ADR 0267) — lands by PR with a human-approved merge, only a human lifts the policy. `landing-pr` and the origin marker are preserved; the report's words are outside input (data, not instructions).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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/idss#2142
No description provided.