A rig's Reviewer is one session and it is the queue: make the Reviewer safe as a pool, and let a city set its size #80

Merged
city-root merged 2 commits from worker/gascitypacks-lie9 into main 2026-11-12 15:59:05 +00:00
Contributor

What was found

Not safe as it was, and a higher number would have done nothing.

  • forgejo/pack.toml declared an on_demand [[named_session]] for the Reviewer, a rig's and the city's. In gc's source (cmd/gc/build_desired_state.go, namedOnDemandTemplates) the demand of a template that backs one is clamped to a single session: "An on_demand named-session backing template is a singleton". max_active_sessions = 3 in a city's patch loads and validates, and still starts one session.
  • agent.toml had work_dir = ".gc/agents/<rig>/reviewer": every session of a rig starts in one directory (the Worker's work_dir ends in {{.AgentBase}}). The clone itself was already review-<bead> inside it, and the formula has no fixed path of its own: /tmp/rexcity-review-state.sh belongs to rexcity's own review formula (mol-forgejo-pr-review), which this one is a port of, not to this pack.
  • Two sessions on one review bead: gc hook --claim is a compare-and-swap on the step's assignee, and gc sling refuses a bead with a live workflow without --force (cmd_hook_claim.go, cmd_sling.go). Nothing was needed.
  • Two review beads for one head: nothing in gc ties them. Both would have been reviewed, and the posts could have disagreed.

What changed

  • The two named sessions are removed. The Reviewer is a pool: min_active_sessions = 0 (the explicit minimum is what gives each session its own number), max_active_sessions = 1 (the default stays one). Routing is as before, gc sling <rig>/forgejo.reviewer <bead>.
  • work_dir ends in {{.AgentBase}}: .gc/agents/<rig>/forgejo.reviewer-<n>.
  • New gc forgejo review take --bead <id> --step <id> (Go, take.go, with take_test.go; the command is a one-line wrapper). The session writes its claim on its own bead (in_progress, review_step, review_claimed), then reads the claims of the review beads in progress for the same pr_url and review_head; the earliest reviews, the lower id breaks a tie, and the other writes review_verdict=void with a note and exits 3. Claim before read, so two sessions that begin together agree. mol-forgejo-review calls it in Part 1 (after the verdict check) and in Part 4 (before the post): two code lines added to the formula's blocks, which docs/shell.md already lists as over its budget.
  • README: "More than one Reviewer" says which setting it is (max_active_sessions of a forgejo.reviewer patch, rig = "*" reaches the rig's Reviewers and the city's), what else a city raises (the rig's cap, which counts Workers, dispatcher and Reviewers, and [workspace]'s), and what a session costs (one account's usage limit; N Reviewers spend it N times as fast). Changelog fragment .changelog/reviewer-pool.md.

Verified

go vet ./..., go test -race ./..., tests/reviewer.sh (now also: no named session for the Reviewer; a city that patches it to three loads and both Reviewers resolve with 3; the work directories of two sessions differ, rig and city; the review take lines of Parts 1 and 4 against a stub; it fails with the old work_dir), tests/formula.sh, gc lint ., the changelog v2 checker.

Not verified

No live city was run: that max_active_sessions = N now starts N sessions for N routed beads rests on gc's source, not on a trial. The first trial is the city's: raise its patch and the rig's cap together and sling three review beads.

For the Operator and the user

  • The city's own configuration is untouched, as the bead says: its patch still has max_active_sessions = 1, the rig cap of 6 is full (4 Workers, the dispatcher, one Reviewer), and docs/spec.md of gascity-root still calls the Reviewer "a rig-scoped named session". The user decides the number once a release carries this.
  • gascitypacks/forgejo.reviewer is no longer a named identity (no alias to attach or mail); sessions are forgejo.reviewer-<n>. Clones in the old .gc/agents/<rig>/reviewer stay where they are.

Bead: gascitypacks-lie9

## What was found **Not safe as it was, and a higher number would have done nothing.** - `forgejo/pack.toml` declared an `on_demand` `[[named_session]]` for the Reviewer, a rig's and the city's. In gc's source (`cmd/gc/build_desired_state.go`, `namedOnDemandTemplates`) the demand of a template that backs one is clamped to a single session: "An on_demand named-session backing template is a singleton". `max_active_sessions = 3` in a city's patch loads and validates, and still starts one session. - `agent.toml` had `work_dir = ".gc/agents/<rig>/reviewer"`: every session of a rig starts in one directory (the Worker's `work_dir` ends in `{{.AgentBase}}`). The clone itself was already `review-<bead>` inside it, and the formula has no fixed path of its own: `/tmp/rexcity-review-state.sh` belongs to rexcity's own review formula (`mol-forgejo-pr-review`), which this one is a port of, not to this pack. - Two sessions on one review bead: `gc hook --claim` is a compare-and-swap on the step's assignee, and `gc sling` refuses a bead with a live workflow without `--force` (`cmd_hook_claim.go`, `cmd_sling.go`). Nothing was needed. - Two review beads for one head: nothing in gc ties them. Both would have been reviewed, and the posts could have disagreed. ## What changed - The two named sessions are removed. The Reviewer is a pool: `min_active_sessions = 0` (the explicit minimum is what gives each session its own number), `max_active_sessions = 1` (the default stays one). Routing is as before, `gc sling <rig>/forgejo.reviewer <bead>`. - `work_dir` ends in `{{.AgentBase}}`: `.gc/agents/<rig>/forgejo.reviewer-<n>`. - New `gc forgejo review take --bead <id> --step <id>` (Go, `take.go`, with `take_test.go`; the command is a one-line wrapper). The session writes its claim on its own bead (`in_progress`, `review_step`, `review_claimed`), then reads the claims of the review beads in progress for the same `pr_url` and `review_head`; the earliest reviews, the lower id breaks a tie, and the other writes `review_verdict=void` with a note and exits 3. Claim before read, so two sessions that begin together agree. `mol-forgejo-review` calls it in Part 1 (after the verdict check) and in Part 4 (before the post): two code lines added to the formula's blocks, which docs/shell.md already lists as over its budget. - README: "More than one Reviewer" says which setting it is (`max_active_sessions` of a `forgejo.reviewer` patch, `rig = "*"` reaches the rig's Reviewers and the city's), what else a city raises (the rig's cap, which counts Workers, dispatcher and Reviewers, and `[workspace]`'s), and what a session costs (one account's usage limit; N Reviewers spend it N times as fast). Changelog fragment `.changelog/reviewer-pool.md`. ## Verified `go vet ./...`, `go test -race ./...`, `tests/reviewer.sh` (now also: no named session for the Reviewer; a city that patches it to three loads and both Reviewers resolve with 3; the work directories of two sessions differ, rig and city; the `review take` lines of Parts 1 and 4 against a stub; it fails with the old `work_dir`), `tests/formula.sh`, `gc lint .`, the changelog v2 checker. ## Not verified No live city was run: that `max_active_sessions = N` now starts N sessions for N routed beads rests on gc's source, not on a trial. The first trial is the city's: raise its patch and the rig's cap together and sling three review beads. ## For the Operator and the user - The city's own configuration is untouched, as the bead says: its patch still has `max_active_sessions = 1`, the rig cap of 6 is full (4 Workers, the dispatcher, one Reviewer), and `docs/spec.md` of gascity-root still calls the Reviewer "a rig-scoped named session". The user decides the number once a release carries this. - `gascitypacks/forgejo.reviewer` is no longer a named identity (no alias to attach or mail); sessions are `forgejo.reviewer-<n>`. Clones in the old `.gc/agents/<rig>/reviewer` stay where they are. Bead: gascitypacks-lie9
feat: make the Reviewer safe as a pool, and let a city set its size (gascitypacks-lie9)
All checks were successful
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Successful in 24s
test / scripts (pull_request) Successful in 36s
765df55d2a
A rig's Reviewer was one session and so the queue: 23 review beads at about
seven minutes each. Two things stopped a city from raising it. The pack
declared an on_demand [[named_session]] for the Reviewer, and gc clamps the
demand of a template that backs one to a single session (build_desired_state.go,
namedOnDemandTemplates), so a higher max_active_sessions did nothing. And every
session of a rig started in the one work_dir .gc/agents/<rig>/reviewer.

The named sessions are gone: the Reviewer is a pool with min_active_sessions = 0
and max_active_sessions = 1 (the default stays one), as the Worker is. work_dir
ends in the session's own name, so no two sessions share a directory; the clone
was already named for the review bead. gc forgejo review take is new, Go with
tests: a session writes its claim on its review bead, then reads the claims of
the others in progress for the same pr_url and review_head, and the earliest
reviews (the lower id on a tie); the other voids its bead. Parts 1 and 4 of
mol-forgejo-review call it (two code lines).

Validation: go vet, go test -race, tests/reviewer.sh (which now also loads a city
that patches the Reviewer to three sessions and checks the work directory of two
sessions differ, and was seen to fail with the old work_dir), tests/formula.sh,
gc lint, the changelog v2 check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review requested changes 2026-11-12 14:22:06 +00:00
Dismissed
city-root-review left a comment

Review of 765df55d2a for gascitypacks-lie9. Checks of the head: success.

Verdict

fail

The change itself does what the bead asks, and every check passes on the head. But the pull request does not merge onto the current main (be97be3). It needs a rebase onto origin/main, past #76 (the Reviewer mails its verdict) and #79 (the checks order). Two of the things the rebase must fix are not plain conflicts.

Findings

  • [blocking] README.md, forgejo/assets/forgejo/main.go, forgejo/pack.toml: these three files conflict with main, and the forge reports the PR as not_mergeable. main now has #79's order checks (usage line, dispatch error message, package doc, pack description) and #76's Part 5 mail (README table rows 1–5). Rebase onto origin/main and keep both sides:
    • main.go: the dispatch error must name review take and order checks.
    • README: row 4 gets asks review take again, and row 5 keeps the REVIEW <work bead>: <verdict> <pr_url> mail.
    • pack.toml: keep the description's checks-order clause, and still drop the two [[named_session]] entries.
  • [blocking] forgejo/assets/forgejo/take.go:19: metaReviewHead is already declared on main, in forgejo/assets/forgejo/checks_order.go:19 (#79, same value "review_head"). Git merges the two files without a conflict, so a rebase that resolves only the three files above still does not compile. I resolved the three conflicts in a trial merge and go vet ./forgejo/... fails with take.go:19:2: metaReviewHead redeclared in this block. Drop the constant from take.go and use the existing one. Then run go vet and go test -race on the rebased tree.
  • [minor] take.go:86–98: the claim's time is read from the session's clock before the bd update that writes it. The order between two sessions comes from that time, but whether they see each other depends on when the writes land, so "claim before read, so two sessions that begin together agree" is not strictly true. Example: B reads its clock, then A reads its clock and writes, A lists before B's write lands and takes, B lists, sees A's later time, and takes too. Part 4's second review take normally catches this: A then sees B's earlier claim and voids itself, after a wasted review. It does not catch it when B has already closed with a verdict before A reaches Part 4: B's bead no longer counts, A posts a second review of the same head, and with a different event the forge keeps both. The window is about the length of one gc bd update. Rare, but the README and the help text state the guarantee without that caveat. A cheap fix: in Part 4, before posting, repeat Part 2 step 3 (your account's review of this head already on the forge goes to Part 5). Or count a closed bead with a pass/fail verdict for the same head as a holder. Or soften the claim in the docs.

Verified

  • I read the work bead, the PR description and the whole diff (12 files, +698/−47). REVIEW.md, AGENTS.md and CLAUDE.md are absent on main. I read the README from origin/main.
  • Item 1 of the bead (find out and say so): the PR description names the deciding code: the named-session clamp in build_desired_state.go, the fixed work_dir, the CAS in gc hook --claim, and nothing in gc that ties two beads for one head. The diff matches that account: both [[named_session]] entries are removed, the pool is min_active_sessions = 0 / max_active_sessions = 1, and work_dir ends in {{.AgentBase}}.
  • Item 2 (make it safe): review take is Go with tests (take_test.go: tie-break, yielding to an unclaimed review, a restart keeps its claim, a new step renews it, rows without metadata, a store that fails voids nothing, flags). run.sh is one line. Parts 1 and 4 call it, and tests/reviewer.sh checks both places, their order and exit 3 against a stub. gc bd list on this gc has --metadata-field (repeatable) and --limit 0, as take.go uses them.
  • Interaction with what exists: the merge order lists pr_url beads in open,in_progress,blocked (order.go:353 on main), so setting a review bead to in_progress changes nothing there. Review beads were already listed while open. The checks order skips review_head beads. After a rebase, a duplicate void goes to main's Part 5 step 2, which mails REVIEW <work bead>: void and closes the bead, as a Part 2 void does.
  • Item 3 (the number, the caps, the cost) and item 4 (tests, changelog, docs): covered in README "More than one Reviewer", .changelog/reviewer-pool.md and the test additions.
  • On the head, with env -i (0 city variables): go vet ./... ok. go test -race -count=1 ./... ok (both packages). With a throwaway HOME: gc lint . gives 2 packs ok, and bash tests/formula.sh and bash tests/reviewer.sh both print ok. The changelog v2 checker, built from v2.1.0 source, run with -base origin/main, exits 0.
  • Merge of the head into origin/main be97be3: conflicts in the three files above. A trial resolution then fails go vet on the redeclared constant.
Review of 765df55d2a9b6083f0a4f960365c97b5c6af8a26 for gascitypacks-lie9. Checks of the head: success. ### Verdict fail The change itself does what the bead asks, and every check passes on the head. But the pull request does not merge onto the current `main` (be97be3). It needs a rebase onto `origin/main`, past #76 (the Reviewer mails its verdict) and #79 (the `checks` order). Two of the things the rebase must fix are not plain conflicts. ### Findings - [blocking] README.md, forgejo/assets/forgejo/main.go, forgejo/pack.toml: these three files conflict with `main`, and the forge reports the PR as `not_mergeable`. `main` now has #79's `order checks` (usage line, `dispatch` error message, package doc, pack description) and #76's Part 5 mail (README table rows 1–5). Rebase onto `origin/main` and keep both sides: - `main.go`: the dispatch error must name `review take` and `order checks`. - README: row 4 gets `asks review take again`, and row 5 keeps the `REVIEW <work bead>: <verdict> <pr_url>` mail. - `pack.toml`: keep the description's checks-order clause, and still drop the two `[[named_session]]` entries. - [blocking] forgejo/assets/forgejo/take.go:19: `metaReviewHead` is already declared on `main`, in `forgejo/assets/forgejo/checks_order.go:19` (#79, same value `"review_head"`). Git merges the two files without a conflict, so a rebase that resolves only the three files above still does not compile. I resolved the three conflicts in a trial merge and `go vet ./forgejo/...` fails with `take.go:19:2: metaReviewHead redeclared in this block`. Drop the constant from `take.go` and use the existing one. Then run `go vet` and `go test -race` on the rebased tree. - [minor] take.go:86–98: the claim's time is read from the session's clock before the `bd update` that writes it. The order between two sessions comes from that time, but whether they see each other depends on when the writes land, so "claim before read, so two sessions that begin together agree" is not strictly true. Example: B reads its clock, then A reads its clock and writes, A lists before B's write lands and takes, B lists, sees A's later time, and takes too. Part 4's second `review take` normally catches this: A then sees B's earlier claim and voids itself, after a wasted review. It does not catch it when B has already closed with a verdict before A reaches Part 4: B's bead no longer counts, A posts a second review of the same head, and with a different event the forge keeps both. The window is about the length of one `gc bd update`. Rare, but the README and the help text state the guarantee without that caveat. A cheap fix: in Part 4, before posting, repeat Part 2 step 3 (your account's review of this head already on the forge goes to Part 5). Or count a closed bead with a `pass`/`fail` verdict for the same head as a holder. Or soften the claim in the docs. ### Verified - I read the work bead, the PR description and the whole diff (12 files, +698/−47). `REVIEW.md`, `AGENTS.md` and `CLAUDE.md` are absent on `main`. I read the README from `origin/main`. - Item 1 of the bead (find out and say so): the PR description names the deciding code: the named-session clamp in `build_desired_state.go`, the fixed `work_dir`, the CAS in `gc hook --claim`, and nothing in gc that ties two beads for one head. The diff matches that account: both `[[named_session]]` entries are removed, the pool is `min_active_sessions = 0` / `max_active_sessions = 1`, and `work_dir` ends in `{{.AgentBase}}`. - Item 2 (make it safe): `review take` is Go with tests (`take_test.go`: tie-break, yielding to an unclaimed review, a restart keeps its claim, a new step renews it, rows without metadata, a store that fails voids nothing, flags). `run.sh` is one line. Parts 1 and 4 call it, and `tests/reviewer.sh` checks both places, their order and exit 3 against a stub. `gc bd list` on this gc has `--metadata-field` (repeatable) and `--limit 0`, as `take.go` uses them. - Interaction with what exists: the merge order lists `pr_url` beads in `open,in_progress,blocked` (order.go:353 on main), so setting a review bead to `in_progress` changes nothing there. Review beads were already listed while open. The checks order skips `review_head` beads. After a rebase, a duplicate void goes to main's Part 5 step 2, which mails `REVIEW <work bead>: void` and closes the bead, as a Part 2 void does. - Item 3 (the number, the caps, the cost) and item 4 (tests, changelog, docs): covered in README "More than one Reviewer", `.changelog/reviewer-pool.md` and the test additions. - On the head, with `env -i` (0 city variables): `go vet ./...` ok. `go test -race -count=1 ./...` ok (both packages). With a throwaway `HOME`: `gc lint .` gives 2 packs ok, and `bash tests/formula.sh` and `bash tests/reviewer.sh` both print ok. The changelog v2 checker, built from v2.1.0 source, run with `-base origin/main`, exits 0. - Merge of the head into `origin/main` be97be3: conflicts in the three files above. A trial resolution then fails `go vet` on the redeclared constant.
mikluko force-pushed worker/gascitypacks-lie9 from 765df55d2a
All checks were successful
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Successful in 24s
test / scripts (pull_request) Successful in 36s
to f24d8f6f9c
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 22s
test / scripts (pull_request) Successful in 43s
2026-11-12 14:30:40 +00:00
Compare
city-root-review left a comment

Review of f24d8f6f9c for gascitypacks-lie9. Checks of the head: success.

Verdict

pass

Round 2. Every finding of the review of 765df55 (review 253) is addressed. The branch is rebased onto be97be3 (#76, #79). take.go no longer declares metaReviewHead and uses the one in checks_order.go. The README rows keep #76's mail. pack.toml keeps the checks-order clause and drops both [[named_session]] entries. The dispatch error names review take and order checks. The minor race is now documented (help text, README, the reviewTake doc comment), and Part 4 looks for the account's own review of the head before it posts. main has moved three commits since (#64, #63, #81). None of them touches forgejo/, and the head merges onto c06effd without a conflict.

Findings

  • [minor] forgejo/formulas/mol-forgejo-review.toml, Part 4: the forge lookup for the account's own review reads $STATE, which was fetched before the second review take. Suppose a rival posts after that read and closes before the take. Part 4 then misses it, and pr review only drops a review with the same event. This is a window inside a window and does not block. Reading pr state again after the take, in the lookup line itself, would close it.
  • [minor] docs/shell.md: the formula's bash blocks grow from 65 to 70 code lines (counted as Appendix A counts them: non-blank, non-comment lines of the blocks). The Moderate rule's limit for a formula is 60, and main was over it already. Every new block stays within L14's "no block beyond 3 lines". The Part 4 lookup copies Part 2 step 3's jq, as review 253 suggested. When the formula's shell moves to Go (item 0 of the plan), these lines should go with it, for example into review take or pr review. No change is needed in this PR, since the ledger does not exist yet.
  • [minor, for the Operator] Once a release carries this, gascitypacks/forgejo.reviewer is no longer a named session. The running named session (gcg-211157, in .gc/agents/gascitypacks/reviewer) will be orphaned and its old clones left there. Pool sessions take forgejo.reviewer-<n> directories. The PR description says this.

Verified

  • I read the work bead (description and the round 1 note), the PR description, review 253 and the whole diff (12 files, +717/-49). REVIEW.md, AGENTS.md and CLAUDE.md are absent on main. I read the README from origin/main.
  • Item 1 (find out and say so): I read gc's cmd/gc/build_desired_state.go at the CI pin 6bd609f. Lines 1401-1405 mark a non-always named-session template in namedOnDemandTemplates, and lines 2678-2683 clamp its demand to 1 ("An on_demand named-session backing template is a singleton"). This matches the PR's account. The cold-wake clamp (2675) applies only from zero sessions, and the Worker's pool is under it too. The Worker's pool shows the naming work_dir relies on: the live sessions run in .gc/worktrees/gascitypacks/worker/roles.worker-<n>, so {{.AgentBase}} renders as forgejo.reviewer-<n>.
  • Item 2 (make it safe): the clone and its scratch files are under the session's directory and named for the bead. review take is Go with tests covering the claim before the read, a tie, an unclaimed rival, a restart keeping its claim, a new step renewing it, rows without metadata, a store failure that voids nothing, a non-review bead and bad flags. It runs gc in $PWD (order.go:49), so go tool -C does not move the store lookup. Parts 1 and 4 call it, and Part 5 step 2 handles a duplicate void as any void.
  • Items 3 and 4: the README section "More than one Reviewer" covers the setting, the rig and city caps and the cost. There is a changelog fragment and the test additions. The city's own patch (gascity-root pack.toml, max_active_sessions = 1, no min_active_sessions) still resolves.
  • On the merge of the head into origin/main c06effd (clean), run with env -i (0 city variables):
    • go vet ./...: ok.
    • go test -race -count=1 ./...: ok, both packages.
    • With a throwaway HOME: gc lint . (2 packs ok) and tests/formula.sh, reviewer.sh and operator-overlay.sh: all ok.
    • Every test of the scripts job (worktree-setup, worktree, gnu-tools, merge, handover, apply, upgrade, view-beads, view-mail, permission-deny, permission-request): all ok.
    • The changelog checker, built from mikluko/changelog v2.1.0 and run with -base as origin/main's SHA: valid=true, exit 0.
Review of f24d8f6f9c12a22e6d26e021bd21b1f6babda39e for gascitypacks-lie9. Checks of the head: success. ### Verdict pass Round 2. Every finding of the review of 765df55 (review 253) is addressed. The branch is rebased onto be97be3 (#76, #79). `take.go` no longer declares `metaReviewHead` and uses the one in `checks_order.go`. The README rows keep #76's mail. `pack.toml` keeps the checks-order clause and drops both `[[named_session]]` entries. The dispatch error names `review take` and `order checks`. The minor race is now documented (help text, README, the `reviewTake` doc comment), and Part 4 looks for the account's own review of the head before it posts. `main` has moved three commits since (#64, #63, #81). None of them touches `forgejo/`, and the head merges onto c06effd without a conflict. ### Findings - [minor] forgejo/formulas/mol-forgejo-review.toml, Part 4: the forge lookup for the account's own review reads `$STATE`, which was fetched before the second `review take`. Suppose a rival posts after that read and closes before the `take`. Part 4 then misses it, and `pr review` only drops a review with the same event. This is a window inside a window and does not block. Reading `pr state` again after the `take`, in the lookup line itself, would close it. - [minor] docs/shell.md: the formula's `bash` blocks grow from 65 to 70 code lines (counted as Appendix A counts them: non-blank, non-comment lines of the blocks). The Moderate rule's limit for a formula is 60, and `main` was over it already. Every new block stays within L14's "no block beyond 3 lines". The Part 4 lookup copies Part 2 step 3's jq, as review 253 suggested. When the formula's shell moves to Go (item 0 of the plan), these lines should go with it, for example into `review take` or `pr review`. No change is needed in this PR, since the ledger does not exist yet. - [minor, for the Operator] Once a release carries this, `gascitypacks/forgejo.reviewer` is no longer a named session. The running named session (`gcg-211157`, in `.gc/agents/gascitypacks/reviewer`) will be orphaned and its old clones left there. Pool sessions take `forgejo.reviewer-<n>` directories. The PR description says this. ### Verified - I read the work bead (description and the round 1 note), the PR description, review 253 and the whole diff (12 files, +717/-49). `REVIEW.md`, `AGENTS.md` and `CLAUDE.md` are absent on `main`. I read the README from `origin/main`. - Item 1 (find out and say so): I read gc's `cmd/gc/build_desired_state.go` at the CI pin 6bd609f. Lines 1401-1405 mark a non-`always` named-session template in `namedOnDemandTemplates`, and lines 2678-2683 clamp its demand to 1 ("An on_demand named-session backing template is a singleton"). This matches the PR's account. The cold-wake clamp (2675) applies only from zero sessions, and the Worker's pool is under it too. The Worker's pool shows the naming `work_dir` relies on: the live sessions run in `.gc/worktrees/gascitypacks/worker/roles.worker-<n>`, so `{{.AgentBase}}` renders as `forgejo.reviewer-<n>`. - Item 2 (make it safe): the clone and its scratch files are under the session's directory and named for the bead. `review take` is Go with tests covering the claim before the read, a tie, an unclaimed rival, a restart keeping its claim, a new step renewing it, rows without metadata, a store failure that voids nothing, a non-review bead and bad flags. It runs `gc` in `$PWD` (`order.go:49`), so `go tool -C` does not move the store lookup. Parts 1 and 4 call it, and Part 5 step 2 handles a duplicate void as any void. - Items 3 and 4: the README section "More than one Reviewer" covers the setting, the rig and city caps and the cost. There is a changelog fragment and the test additions. The city's own patch (`gascity-root` `pack.toml`, `max_active_sessions = 1`, no `min_active_sessions`) still resolves. - On the merge of the head into `origin/main` c06effd (clean), run with `env -i` (0 city variables): - `go vet ./...`: ok. - `go test -race -count=1 ./...`: ok, both packages. - With a throwaway `HOME`: `gc lint .` (2 packs ok) and `tests/formula.sh`, `reviewer.sh` and `operator-overlay.sh`: all ok. - Every test of the `scripts` job (worktree-setup, worktree, gnu-tools, merge, handover, apply, upgrade, view-beads, view-mail, permission-deny, permission-request): all ok. - The changelog checker, built from mikluko/changelog v2.1.0 and run with `-base` as `origin/main`'s SHA: valid=true, exit 0.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
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!80
No description provided.