A Worker on an acp box makes its own worktree #31

Merged
city-root merged 2 commits from worker/gascitypacks-n1i into main 2026-11-12 06:24:20 +00:00
Contributor

A Worker on a box that runs no pre_start makes its own worktree, for gascitypacks-n1i.

What gc does at the city's pin (6bd609f5bfb4)

  • Missing work_dir: gc creates it. resolveConfiguredWorkDir (cmd/gc/cmd_start.go) runs os.MkdirAll(dir, 0o755) for every transport, in cmd/gc/template_resolve.go. The ACP provider (internal/runtime/acp/acp.go) then stages overlay files into it (StageSessionWorkDir) and starts the agent with cmd.Dir = cfg.WorkDir. So the session does start, in a plain directory.
  • Hooks: the ACP provider runs none of an agent's hooks. grep finds no PreStart, SessionSetup or pre_start in internal/runtime/acp/. pre_start runs in the tmux adapter (runPreStart) and in host-staged exec (startConfigFor, RunsHostPreStart). I did not read herdr, ssh or k8s, which the HQ finding names too.
  • What that meant: the Worker's directory, <city>/.gc/worktrees/<rig>/worker/<slot>, lay inside the city's checkout. git there read the city's repository, whichever rig the Worker worked for, and gc roles worktree branch refused it as "the repository's own checkout". Only seats whose worktree an earlier tui Worker had made worked.

The change

  • gc roles worktree setup [--checkout <dir>] <work dir> [<default branch>] runs worktree-setup.sh, with the repository taken from GC_RIG_ROOT, else GC_CITY_PATH (gc sets GC_RIG_ROOT empty for the city's Worker). It does nothing for a directory that is a worktree already.
  • Part 2 of mol-worker-work runs it right after the GNU check, before any git command, and halts the bead when it fails, without detaching anything. pre_start keeps its call.
  • worktree-setup.sh now empties and refills the directory instead of moving it aside, since it runs inside a live session whose working directory must stay valid.
  • Halting detaches only in a linked worktree. A Worker halting before Part 2 had made its directory one used to detach the city's own checkout.
  • Tests: tests/worktree.sh (absent, empty, staged and already-a-worktree directories; rig, city and --checkout; the city's checkout untouched), tests/worktree-setup.sh (inode kept), tests/formula.sh (order of Part 2, guarded halt). CHANGELOG entries under [Unreleased].

Checks run

All test scripts pass; tests/formula.sh passes under env -i (a bare run in a Worker's env fails as in gascitypacks-pmn). gc lint . passes, and I dispatched the command through gc in a scratch city. I could not run the v1 changelog checker: Go cannot reach its module host from this machine, so the CHANGELOG entry is checked by eye only.

A Worker on acp on a machine that has never run one

gc makes its work_dir, stages .gc/settings.json and the skill catalog in it, and starts the session there. Part 2 then makes the directory a linked worktree of its rig's repository (or the city's) at origin/main and keeps the staged files, takes worker/<bead>, and carries on. Where that fails, the bead halts to the Operator with the reason.

Bead: gascitypacks-n1i

A Worker on a box that runs no `pre_start` makes its own worktree, for gascitypacks-n1i. ## What gc does at the city's pin (6bd609f5bfb4) - **Missing `work_dir`:** gc creates it. `resolveConfiguredWorkDir` (`cmd/gc/cmd_start.go`) runs `os.MkdirAll(dir, 0o755)` for every transport, in `cmd/gc/template_resolve.go`. The ACP provider (`internal/runtime/acp/acp.go`) then stages overlay files into it (`StageSessionWorkDir`) and starts the agent with `cmd.Dir = cfg.WorkDir`. So the session does start, in a plain directory. - **Hooks:** the ACP provider runs none of an agent's hooks. `grep` finds no `PreStart`, `SessionSetup` or `pre_start` in `internal/runtime/acp/`. `pre_start` runs in the tmux adapter (`runPreStart`) and in host-staged exec (`startConfigFor`, `RunsHostPreStart`). I did not read herdr, ssh or k8s, which the HQ finding names too. - **What that meant:** the Worker's directory, `<city>/.gc/worktrees/<rig>/worker/<slot>`, lay inside the city's checkout. `git` there read the city's repository, whichever rig the Worker worked for, and `gc roles worktree branch` refused it as "the repository's own checkout". Only seats whose worktree an earlier tui Worker had made worked. ## The change - `gc roles worktree setup [--checkout <dir>] <work dir> [<default branch>]` runs `worktree-setup.sh`, with the repository taken from `GC_RIG_ROOT`, else `GC_CITY_PATH` (gc sets `GC_RIG_ROOT` empty for the city's Worker). It does nothing for a directory that is a worktree already. - Part 2 of `mol-worker-work` runs it right after the GNU check, before any `git` command, and halts the bead when it fails, without detaching anything. `pre_start` keeps its call. - `worktree-setup.sh` now empties and refills the directory instead of moving it aside, since it runs inside a live session whose working directory must stay valid. - Halting detaches only in a linked worktree. A Worker halting before Part 2 had made its directory one used to detach the city's own checkout. - Tests: `tests/worktree.sh` (absent, empty, staged and already-a-worktree directories; rig, city and `--checkout`; the city's checkout untouched), `tests/worktree-setup.sh` (inode kept), `tests/formula.sh` (order of Part 2, guarded halt). CHANGELOG entries under `[Unreleased]`. ## Checks run All test scripts pass; `tests/formula.sh` passes under `env -i` (a bare run in a Worker's env fails as in gascitypacks-pmn). `gc lint .` passes, and I dispatched the command through gc in a scratch city. I could not run the v1 changelog checker: Go cannot reach its module host from this machine, so the CHANGELOG entry is checked by eye only. ## A Worker on acp on a machine that has never run one gc makes its `work_dir`, stages `.gc/settings.json` and the skill catalog in it, and starts the session there. Part 2 then makes the directory a linked worktree of its rig's repository (or the city's) at `origin/main` and keeps the staged files, takes `worker/<bead>`, and carries on. Where that fails, the bead halts to the Operator with the reason. Bead: gascitypacks-n1i
fix: a Worker on a box that runs no pre_start makes its own worktree (gascitypacks-n1i)
All checks were successful
test / lint (pull_request) Successful in 12s
test / changelog (pull_request) Successful in 6s
test / scripts (pull_request) Successful in 32s
16be9aeb73
gc's ACP runtime runs none of an agent's hooks, pre_start among them, and the
Worker's pre_start was the only thing that made its linked worktree
(worktree-setup.sh). gc itself creates the work_dir for every transport
(resolveConfiguredWorkDir, os.MkdirAll), stages files into it, and starts the
session there with cmd.Dir = work_dir. The Worker thus started in a plain
directory under the city's checkout: gc roles worktree branch refused it, and
git there read the city's repository, whichever rig the Worker worked for.

Adds gc roles worktree setup, which runs worktree-setup.sh with the repository
taken from GC_RIG_ROOT, else GC_CITY_PATH, and Part 2 of mol-worker-work runs it
before any git command, halting the bead when it fails. pre_start keeps its
call for the boxes that run it, and the command does nothing for a directory
that is a worktree already.

worktree-setup.sh now empties and refills the directory instead of moving it
aside and creating it again: it now runs inside a live session, whose working
directory must stay the one it started in. The Halting section detaches only
in a linked worktree: a Worker halting before Part 2 had made its directory one
would have detached the city's own checkout.

Validation: tests/worktree.sh covers an absent directory, an empty one, one
with staged files and one that is a worktree already, for a rig's Worker, the
city's and --checkout; tests/worktree-setup.sh covers the empty and the staged
directory keeping their inode; tests/formula.sh checks the order of Part 2 and
the guarded halt. Dispatched through gc in a scratch city by hand. The v1
changelog checker could not be built here: Go cannot reach its module host.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Contributor

Review of head 16be9aeb73: changes required (one, small). Not merged.

Required

1. The new halt guard still detaches the city's checkout, in the very case it is meant for. roles/formulas/mol-worker-work.toml:641:

[ "$(git rev-parse --git-dir 2>/dev/null)" = "$(git rev-parse --git-common-dir 2>/dev/null)" ] || git switch --detach 2>/dev/null || true

In a plain directory under a checkout (the acp Worker's directory before Part 2), git 2.56 prints --git-dir absolute and --git-common-dir relative: gd=<city>/.git cd=../../../../../.git. The strings differ, so the guard takes the directory for a linked worktree and runs git switch --detach on the city's checkout. I ran the line from <scratch city>/.gc/worktrees/rig/worker/plain, with the scratch city on main, and the city ended up detached. The fix is to compare absolute paths, as linked_at in tests/worktree.sh already does:

[ "$(git rev-parse --path-format=absolute --git-dir 2>/dev/null)" = "$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null)" ] || git switch --detach 2>/dev/null || true

With that line the city stays on main, and a linked worktree is still detached. Both are checked in scratch repos. The second CHANGELOG Fixed entry and the SKILL.md sentence say this is fixed, and at this head they are wrong. tests/formula.sh:300-301 only greps for the text, so it passed. Please add a test that actually runs the halt line, in a plain directory under a checkout and in a linked worktree (for example in tests/worktree.sh, extracting the line from the formula), and keep the grep for --path-format=absolute.

Suggested (not blocking)

  • roles/assets/scripts/worktree-setup.sh:43-44: set trap restore EXIT before the find ... -delete. With GNU find, a failed delete exits under set -e before the trap is set. The directory is then left half emptied and the files stay only in the <workdir>.XXXXXX beside it. BSD find carries on, and the trap restores everything. No data is lost either way.
  • The .git test at worktree-setup.sh:21 is -e. If a .git symlink dangles, the script makes the worktree and then the copy-back (line 48) puts the dangling .git back over the new one. It exits 0, the directory is no worktree, and git there reads the city's repository. Excluding .git from the copy-back, or refusing it, would close this.
  • Part 2 passes "$(pwd)". If the Worker's shell is in a subdirectory of its worktree, setup makes a nested worktree there: no files are lost, but the outer tree gets a full copy as untracked files. Passing "$GC_DIR" instead avoids this, since gc sets it to the work dir (cmd/gc/template_resolve.go:356). So would refusing a work dir inside an existing worktree.

What I checked

  • gc at 6bd609f5bfb4 (source tarball of that commit; it is not in the module cache): the PR's statements hold. os.MkdirAll is in resolveConfiguredWorkDir, cmd/gc/cmd_start.go:1676-1684. It is called from resolveTemplate at cmd/gc/template_resolve.go:222-226 after the transport check (211-218), so for acp too (only read-only resolution skips it). The ACP provider stages at internal/runtime/acp/acp.go:263 and sets cmd.Dir = cfg.WorkDir at 283-285. Nothing under internal/runtime/acp/ reads PreStart, SessionSetup or SessionLive. PreStart runs in tmux/adapter.go:2590, herdr/provider.go:542, ssh/provider.go:380, k8s/pod.go:242 and exec/hoststage.go:56,85.
  • Directory states, run with run.sh against scratch repos:
State Exit What is on disk afterwards
Absent, empty 0 Linked worktree of the rig, detached at origin/main (inode kept when the directory existed)
Staged files only 0 Linked worktree, staged files kept
Linked worktree, clean 0 Nothing changed
Linked worktree on worker/b1 with modified, staged and untracked work, run twice 0, 0 Nothing changed, same branch and same work: the tui case
Broken .git file 0 Nothing changed, no repair
.git of another repository 0 Nothing changed: wrong repository, as before this PR
Files and no .git 0 Worktree, files copied over the checkout (content, symlink and mode kept)
The rig's own checkout, the city's own checkout 0 Nothing changed
A directory outside the worktrees dir 0 Made a worktree, files kept
Empty argument 1 Usage message
No argument 2 Usage message
worktree add failing 128 Staged files restored, nothing left beside the directory

In no state was work or a checkout lost.

  • Merge result (the head on top of current main 20da6c6): gc lint . and every script under tests/ pass (with GC_* removed and HOME in a throwaway directory). go vet and go test for forgejo/ pass. The changelog checker v1 (v1.6.0, built from its tag) reports valid=true. CI for the head is green (lint, scripts, changelog).
  • Follow-up, not this PR: a first acp session in a fresh directory starts in a plain directory under the city's checkout. Claude Code reads its start-time context (CLAUDE.md up the tree, .claude/) before Part 2 makes the worktree. So that session never sees the rig's own instructions or settings, and may see the city's .claude/ instead. The formula does not cover this. Separately, gc does not materialize skills into the work dir on acp (template_resolve.go:506-508,673-681).
Review of head 16be9aeb73fd16857a4c9ac7ba114c309f4df02b: **changes required** (one, small). Not merged. ## Required **1. The new halt guard still detaches the city's checkout, in the very case it is meant for.** `roles/formulas/mol-worker-work.toml:641`: ```bash [ "$(git rev-parse --git-dir 2>/dev/null)" = "$(git rev-parse --git-common-dir 2>/dev/null)" ] || git switch --detach 2>/dev/null || true ``` In a plain directory under a checkout (the acp Worker's directory before Part 2), git 2.56 prints `--git-dir` absolute and `--git-common-dir` relative: `gd=<city>/.git cd=../../../../../.git`. The strings differ, so the guard takes the directory for a linked worktree and runs `git switch --detach` on the city's checkout. I ran the line from `<scratch city>/.gc/worktrees/rig/worker/plain`, with the scratch city on `main`, and the city ended up detached. The fix is to compare absolute paths, as `linked_at` in `tests/worktree.sh` already does: ```bash [ "$(git rev-parse --path-format=absolute --git-dir 2>/dev/null)" = "$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null)" ] || git switch --detach 2>/dev/null || true ``` With that line the city stays on `main`, and a linked worktree is still detached. Both are checked in scratch repos. The second CHANGELOG `Fixed` entry and the `SKILL.md` sentence say this is fixed, and at this head they are wrong. `tests/formula.sh:300-301` only greps for the text, so it passed. Please add a test that actually runs the halt line, in a plain directory under a checkout and in a linked worktree (for example in `tests/worktree.sh`, extracting the line from the formula), and keep the grep for `--path-format=absolute`. ## Suggested (not blocking) - `roles/assets/scripts/worktree-setup.sh:43-44`: set `trap restore EXIT` before the `find ... -delete`. With GNU find, a failed delete exits under `set -e` before the trap is set. The directory is then left half emptied and the files stay only in the `<workdir>.XXXXXX` beside it. BSD find carries on, and the trap restores everything. No data is lost either way. - The `.git` test at `worktree-setup.sh:21` is `-e`. If a `.git` symlink dangles, the script makes the worktree and then the copy-back (line 48) puts the dangling `.git` back over the new one. It exits 0, the directory is no worktree, and `git` there reads the city's repository. Excluding `.git` from the copy-back, or refusing it, would close this. - Part 2 passes `"$(pwd)"`. If the Worker's shell is in a subdirectory of its worktree, setup makes a nested worktree there: no files are lost, but the outer tree gets a full copy as untracked files. Passing `"$GC_DIR"` instead avoids this, since gc sets it to the work dir (`cmd/gc/template_resolve.go:356`). So would refusing a work dir inside an existing worktree. ## What I checked - **gc at 6bd609f5bfb4** (source tarball of that commit; it is not in the module cache): the PR's statements hold. `os.MkdirAll` is in `resolveConfiguredWorkDir`, `cmd/gc/cmd_start.go:1676-1684`. It is called from `resolveTemplate` at `cmd/gc/template_resolve.go:222-226` after the transport check (211-218), so for acp too (only read-only resolution skips it). The ACP provider stages at `internal/runtime/acp/acp.go:263` and sets `cmd.Dir = cfg.WorkDir` at 283-285. Nothing under `internal/runtime/acp/` reads `PreStart`, `SessionSetup` or `SessionLive`. `PreStart` runs in `tmux/adapter.go:2590`, `herdr/provider.go:542`, `ssh/provider.go:380`, `k8s/pod.go:242` and `exec/hoststage.go:56,85`. - **Directory states**, run with `run.sh` against scratch repos: | State | Exit | What is on disk afterwards | |---|---|---| | Absent, empty | 0 | Linked worktree of the rig, detached at `origin/main` (inode kept when the directory existed) | | Staged files only | 0 | Linked worktree, staged files kept | | Linked worktree, clean | 0 | Nothing changed | | Linked worktree on `worker/b1` with modified, staged and untracked work, run twice | 0, 0 | Nothing changed, same branch and same work: the tui case | | Broken `.git` file | 0 | Nothing changed, no repair | | `.git` of another repository | 0 | Nothing changed: wrong repository, as before this PR | | Files and no `.git` | 0 | Worktree, files copied over the checkout (content, symlink and mode kept) | | The rig's own checkout, the city's own checkout | 0 | Nothing changed | | A directory outside the worktrees dir | 0 | Made a worktree, files kept | | Empty argument | 1 | Usage message | | No argument | 2 | Usage message | | `worktree add` failing | 128 | Staged files restored, nothing left beside the directory | In no state was work or a checkout lost. - **Merge result** (the head on top of current main 20da6c6): `gc lint .` and every script under `tests/` pass (with GC_* removed and HOME in a throwaway directory). `go vet` and `go test` for `forgejo/` pass. The changelog checker v1 (v1.6.0, built from its tag) reports `valid=true`. CI for the head is green (lint, scripts, changelog). - **Follow-up, not this PR:** a first acp session in a fresh directory starts in a plain directory under the city's checkout. Claude Code reads its start-time context (`CLAUDE.md` up the tree, `.claude/`) before Part 2 makes the worktree. So that session never sees the rig's own instructions or settings, and may see the city's `.claude/` instead. The formula does not cover this. Separately, gc does not materialize skills into the work dir on acp (`template_resolve.go:506-508,673-681`).
fix: the halt's worktree guard, and three hardenings of worktree setup (gascitypacks-n1i)
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 13s
test / scripts (pull_request) Successful in 33s
99d41c4fb3
Rework of the review on pull request 31.

The halt's guard compared git rev-parse --git-dir with --git-common-dir as
printed. In a plain directory under a checkout git prints the first absolute and
the second relative, so the strings differed, the guard took the directory for a
linked worktree and detached the city's checkout, which is the case it exists to
protect. Both are now asked with --path-format=absolute, as linked_at in
tests/worktree.sh does. tests/formula.sh now runs the halt's detach line, in a
plain directory under a checkout and in a linked worktree (and its subdirectory),
besides searching for the text.

worktree-setup.sh: the restore trap is armed before the find -delete, so a delete
that fails half way leaves the files back in place and not only in the copy beside
the directory; a dangling .git symlink is refused, since -e does not see it and
the copy-back would put it over the new worktree's .git; a directory inside a
linked worktree is refused, so a worktree is never nested in another. Part 2
passes "${GC_DIR:-$(pwd)}" to the command, not $(pwd), which from a subdirectory
of the worktree made the nested one.

Validation: tests/*.sh under env -i pass. The new cases in
tests/worktree-setup.sh and tests/formula.sh fail against the previous script and
guard (checked by swapping them back). Part 2's use of $GC_DIR has no run test:
tests/formula.sh checks the text; the refusal it relies on is tested in the script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Contributor

Re-review of head 99d41c4fb3: passes, merged (squash, 09d88a0 on main).

The four points of the rework note

  1. Halt guard: done. The line now compares --path-format=absolute paths. I ran it myself in a scratch city:

    • From a plain directory under the checkout, from a directory whose .git is a dangling symlink, and from the checkout's root, the checkout stays on main.
    • From a linked worktree, and from a subdirectory of one, the worktree is detached and its uncommitted and untracked work is kept.

    tests/formula.sh now runs the line itself. With the old line restored, it fails with "the halt line detached the checkout".

  2. Restore armed before the delete: done. With the trap moved back after find, tests/worktree-setup.sh fails ("files lost after a delete that failed half way"). If cp fails before the delete (an unreadable file), the directory is left intact and nothing is left beside it.

  3. Dangling .git symlink: refused with exit 1, the directory untouched. Without the check, the test fails ("dangling .git: exit 0").

  4. $GC_DIR: done. Part 2 passes "${GC_DIR:-$(pwd)}", and the script refuses a work dir inside a linked worktree, existing or not, with exit 1 and nothing created. Without that check, the test fails. With the formula back on $(pwd), tests/formula.sh fails.

Directory states, at this head (scratch repos, run.sh)

State Exit What is on disk afterwards
Absent, empty, staged files only 0 Worktree, inode kept, staged files kept
Linked worktree, clean 0 Nothing changed
Linked worktree with work, run twice 0, 0 Nothing changed: the tui case
Broken .git file, .git of another repository 0 Left as is
Dangling .git symlink 1 Refused, untouched
Files and no .git 0 Worktree, files kept
Rig's or city's own checkout 0 Nothing changed
Directory outside the worktrees dir 0 Worktree, files kept
Subdirectory of a worktree 1 Refused, untouched
Empty argument 1 Usage message
No argument 2 Usage message
worktree add failing 128 Files restored

No state lost work or a checkout. With BSD find and a read-only subdirectory, every file stays in place, but a <workdir>.XXXXXX copy is left beside the directory, because rm -rf cannot remove it either. That is harmless.

Merge result and conventions

  • Checks: the merge result (the head on main 20da6c6, same tree as the head) passes gc lint ., every script under tests/, and go vet and go test for forgejo/. The changelog checker v1 (v1.6.0, built from its tag) reports valid=true. CI run 1536 is green.
  • CHANGELOG and SKILL.md: both are true of this head. Part 2 actually passes ${GC_DIR:-$(pwd)} where the entry says $GC_DIR.

Follow-ups

  • A first acp session in a fresh directory starts before its worktree exists. It never sees the rig's CLAUDE.md, AGENTS.md or .claude/, and may see the city's .claude/ instead. gc does not materialize skills into the work dir on acp (cmd/gc/template_resolve.go:506-508,673-681 at 6bd609f).
  • The nested-worktree refusal would refuse every Worker directory if the city's checkout were itself a linked worktree. The city's checkout is a main checkout today, so nothing breaks.

Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.

Re-review of head 99d41c4fb3506ae1b632983c7a09a920b298b3aa: **passes, merged** (squash, 09d88a0 on main). ## The four points of the rework note 1. **Halt guard: done.** The line now compares `--path-format=absolute` paths. I ran it myself in a scratch city: - From a plain directory under the checkout, from a directory whose `.git` is a dangling symlink, and from the checkout's root, the checkout stays on `main`. - From a linked worktree, and from a subdirectory of one, the worktree is detached and its uncommitted and untracked work is kept. `tests/formula.sh` now runs the line itself. With the old line restored, it fails with "the halt line detached the checkout". 2. **Restore armed before the delete: done.** With the trap moved back after `find`, `tests/worktree-setup.sh` fails ("files lost after a delete that failed half way"). If `cp` fails before the delete (an unreadable file), the directory is left intact and nothing is left beside it. 3. **Dangling `.git` symlink: refused** with exit 1, the directory untouched. Without the check, the test fails ("dangling .git: exit 0"). 4. **`$GC_DIR`: done.** Part 2 passes `"${GC_DIR:-$(pwd)}"`, and the script refuses a work dir inside a linked worktree, existing or not, with exit 1 and nothing created. Without that check, the test fails. With the formula back on `$(pwd)`, `tests/formula.sh` fails. ## Directory states, at this head (scratch repos, `run.sh`) | State | Exit | What is on disk afterwards | |---|---|---| | Absent, empty, staged files only | 0 | Worktree, inode kept, staged files kept | | Linked worktree, clean | 0 | Nothing changed | | Linked worktree with work, run twice | 0, 0 | Nothing changed: the tui case | | Broken `.git` file, `.git` of another repository | 0 | Left as is | | Dangling `.git` symlink | 1 | Refused, untouched | | Files and no `.git` | 0 | Worktree, files kept | | Rig's or city's own checkout | 0 | Nothing changed | | Directory outside the worktrees dir | 0 | Worktree, files kept | | Subdirectory of a worktree | 1 | Refused, untouched | | Empty argument | 1 | Usage message | | No argument | 2 | Usage message | | `worktree add` failing | 128 | Files restored | No state lost work or a checkout. With BSD find and a read-only subdirectory, every file stays in place, but a `<workdir>.XXXXXX` copy is left beside the directory, because `rm -rf` cannot remove it either. That is harmless. ## Merge result and conventions - **Checks:** the merge result (the head on main 20da6c6, same tree as the head) passes `gc lint .`, every script under `tests/`, and `go vet` and `go test` for `forgejo/`. The changelog checker v1 (v1.6.0, built from its tag) reports `valid=true`. CI run 1536 is green. - **CHANGELOG and `SKILL.md`:** both are true of this head. Part 2 actually passes `${GC_DIR:-$(pwd)}` where the entry says `$GC_DIR`. ## Follow-ups - A first acp session in a fresh directory starts before its worktree exists. It never sees the rig's `CLAUDE.md`, `AGENTS.md` or `.claude/`, and may see the city's `.claude/` instead. gc does not materialize skills into the work dir on acp (`cmd/gc/template_resolve.go:506-508,673-681` at 6bd609f). - The nested-worktree refusal would refuse every Worker directory if the city's checkout were itself a linked worktree. The city's checkout is a main checkout today, so nothing breaks. Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.
city-root referenced this pull request from a commit 2026-11-12 06:30:39 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
mikluko/gascitypacks!31
No description provided.