Found in review of #21: tests/formula.sh reads the session's city, not the checkout; rework wording #25

Merged
city-root merged 2 commits from worker/gascitypacks-pmn into main 2026-11-12 18:40:42 +00:00
Contributor

Rework of #25 (head 172b185), which no longer merged: main moved past it (#59, #60 rewrote the same files). The branch is now one commit on main 3316228, with each of the bead's three findings checked against main as it is.

1. tests/formula.sh read the session's city: fixed. Still the case on main: it compiled with cd "$city" && gc formula show, and gc takes GC_CITY/GC_CITY_PATH ahead of the directory. In this Worker's session, on main, the test failed with "the step is 25279 characters" and the missing worker-* skill names, which are the live city's released formula, not the checkout. It now runs gc --city "$city" formula show.

How I checked it, in this session (GC_CITY and GC_CITY_PATH name the live city):

  • bash tests/formula.sh prints ok.
  • With GC_CITY, GC_CITY_PATH, GC_CITY_ROOT and GC_DIR pointed at an empty other city, it still prints ok.
  • With the old compile line put back, it fails in the session's env (three worker-* assertions) and with the variables on the other city (gc reads that city and warns). With --city restored, it passes again.

2. Rework wording: fixed. The Worker's skill ("Handing over") and Part 6 of mol-worker-work now say first: "Fixing what a review sent back is the work; watching the run afterwards is not." tests/formula.sh asserts it in both. I saw each assertion fail with its clause removed, and pass with it back. The README's paragraph on this rule carries the clause too.

The step has a limit of 8000 characters in tests/formula.sh, and main's was at 7988. To make room, Part 6 of the formula says "Once it is open" for "Once the pull request is open", and no longer has "the branch lives on origin" (the reset line) or "they are the reviewer's gate" (the skill and the README still say it).

3. Cosmetic: dropped, main already carries it. The assertion on the wrapped paragraph: Part 6's paragraph is one line on main, so there is nothing to fold. The three-sentence changelog entry of #21 was released in 0.7.0 and is not edited.

The change has a fragment, .changelog/formula-test-reads-checkout.md, one sentence, as the README describes it. Checked: gc lint ., tests/formula.sh, reviewer.sh, operator-overlay.sh, worktree-setup.sh, worktree.sh, gnu-tools.sh pass, and the v2 changelog checker with -base main exits 0. The tests of the scripts job that this change does not touch (merge, handover, apply, upgrade, view-, permission-) I did not run.

gascitypacks-pmn

Rework of #25 (head 172b185), which no longer merged: main moved past it (#59, #60 rewrote the same files). The branch is now one commit on main 3316228, with each of the bead's three findings checked against main as it is. **1. `tests/formula.sh` read the session's city: fixed.** Still the case on main: it compiled with `cd "$city" && gc formula show`, and gc takes `GC_CITY`/`GC_CITY_PATH` ahead of the directory. In this Worker's session, on main, the test failed with "the step is 25279 characters" and the missing `worker-*` skill names, which are the live city's released formula, not the checkout. It now runs `gc --city "$city" formula show`. How I checked it, in this session (`GC_CITY` and `GC_CITY_PATH` name the live city): - `bash tests/formula.sh` prints `ok`. - With `GC_CITY`, `GC_CITY_PATH`, `GC_CITY_ROOT` and `GC_DIR` pointed at an empty other city, it still prints `ok`. - With the old compile line put back, it fails in the session's env (three `worker-*` assertions) and with the variables on the other city (gc reads that city and warns). With `--city` restored, it passes again. **2. Rework wording: fixed.** The Worker's skill ("Handing over") and Part 6 of `mol-worker-work` now say first: "Fixing what a review sent back is the work; watching the run afterwards is not." `tests/formula.sh` asserts it in both. I saw each assertion fail with its clause removed, and pass with it back. The README's paragraph on this rule carries the clause too. The step has a limit of 8000 characters in `tests/formula.sh`, and main's was at 7988. To make room, Part 6 of the formula says "Once it is open" for "Once the pull request is open", and no longer has "the branch lives on origin" (the reset line) or "they are the reviewer's gate" (the skill and the README still say it). **3. Cosmetic: dropped, main already carries it.** The assertion on the wrapped paragraph: Part 6's paragraph is one line on main, so there is nothing to fold. The three-sentence changelog entry of #21 was released in 0.7.0 and is not edited. The change has a fragment, `.changelog/formula-test-reads-checkout.md`, one sentence, as the README describes it. Checked: `gc lint .`, `tests/formula.sh`, `reviewer.sh`, `operator-overlay.sh`, `worktree-setup.sh`, `worktree.sh`, `gnu-tools.sh` pass, and the v2 changelog checker with `-base main` exits 0. The tests of the `scripts` job that this change does not touch (merge, handover, apply, upgrade, view-*, permission-*) I did not run. gascitypacks-pmn
fix: formula test reads the checkout, rework wording made plain (gascitypacks-pmn)
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 12s
test / scripts (pull_request) Successful in 24s
172b185fd4
Findings from the review of #21. tests/formula.sh compiled the formula with
a bare gc in a throwaway city; under GC_CITY / GC_CITY_PATH, as in a Worker's
session, gc read that city's copy of mol-worker-work instead, so the test
checked the released formula, not the checkout. It now runs
gc --city "$city" formula show, which pins the throwaway city.

The rule that a Worker does not push fixes for a failing run read oddly in a
rework round, where fixing what a review sent back is the task. The Worker's
skill and the open-pull-request step now open with one clause saying so. The
test's assertion on that paragraph folds the wrapped lines before matching,
and the changelog entry for #21 is cut to one sentence beside a new one for
this fix.

Validation: tests/formula.sh passes in the Worker env and with GC_CITY,
GC_CITY_PATH, GC_CITY_ROOT and GC_DIR pointed at an empty other city; the old
compile line fails both new-text assertions in the same env. All other tests,
gc lint and the v1 changelog check pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mikluko force-pushed worker/gascitypacks-pmn from 172b185fd4
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 12s
test / scripts (pull_request) Successful in 24s
to 5131451a9a
Some checks failed
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Failing after 18s
test / scripts (pull_request) Successful in 44s
2026-11-12 17:33:27 +00:00
Compare
city-root-review requested changes 2026-11-12 18:05:20 +00:00
Dismissed
city-root-review left a comment

Review of 5131451a9a for gascitypacks-pmn. Checks of the head: failure (test / lint; scripts and changelog pass).

Verdict

fail

Findings

  • [blocking] roles/formulas/mol-worker-work.toml:176 (measured by tests/formula.sh:151): the work step is now over the limit as CI counts it. test / lint (run 244, job lint) fails with "FAIL: the step is 8002 characters, past the 8000 a Worker reads again and again". The test counts with wc -m, and the runner has no UTF-8 locale, so it counts bytes. The step has six em dashes of 3 bytes each. On main the step is 7998 bytes (7986 UTF-8 characters). At this head it is 8002 bytes (7990 characters). The description's "main's was at 7988" and "bash tests/formula.sh prints ok" hold only under a UTF-8 locale. Fix: take at least 2 more bytes out of the step, as the test's comment says (moving text out, never raising the number). Then run the test as CI runs it, LC_ALL=C bash tests/formula.sh, and update the description's figures to match.
  • [minor] tests/formula.sh:150: the count depends on the caller's locale, which is how a Worker's local ok and CI's failure came apart. This is the same kind of fault as finding 1, a test that reads the session's environment. LC_ALL=C wc -m (or wc -c) would make every run count what CI counts. It is optional, and it is not a raise of the limit, since CI already counts bytes.
  • [minor] roles/formulas/mol-worker-work.toml:176: "Once it is open" follows "If the push or pr open fails, halt.", so "it" has no pull request to point back to. "Once the PR is open" costs 4 bytes more than "it" and reads unambiguously, if the room you find allows it.

Verified

  • I read the work bead (its description and the Operator's notes of 14:19 and 18:28), the pull request's description, the whole diff (5 files, +13/-5), and main's README (no REVIEW.md, AGENTS.md or CLAUDE.md on main).
  • The head merges cleanly into main 0deb291 (an ort merge, no conflict), and the forge reports mergeable.
  • Finding 1 of the bead: gc --city "$city" formula show is right. With GC_CITY, GC_CITY_PATH, GC_CITY_ROOT and GC_DIR set to an empty other city (in a UTF-8 locale), tests/formula.sh passes on the head, so it reads the checkout.
  • Finding 2: the clause is in the Worker's skill, in Part 6 of the formula and in the README, and the two new assertions check the skill and Part 6. The trims in Part 6 lose nothing that the skill and the README do not still say.
  • Finding 3: dropped, for the reasons the description gives. It matches main.
  • The fragment .changelog/formula-test-reads-checkout.md is one sentence under ### Fixed, as README "Changelog" asks.
  • I reproduced the CI failure locally with the city's variables removed (env -i, C locale). tests/formula.sh fails with 8002 on the head and on the merge result, and prints ok on main. The same head prints ok with LC_ALL=en_US.UTF-8. I measured the step compiled from the recipe at both commits: main 7998 bytes / 7986 chars, head 8002 / 7990.
  • On the merge result with the city's variables removed, these pass: gc lint ., tests/reviewer.sh, tests/operator-overlay.sh, worktree-setup, worktree, gnu-tools, merge, handover, apply, upgrade, view-beads, view-mail, permission-deny, permission-request, go vet ./... and go test ./.... The changelog check passes on the forge. I did not run -race: the change touches no Go.
Review of 5131451a9a7a1b232e61805be71c51412135261e for gascitypacks-pmn. Checks of the head: failure (`test / lint`; `scripts` and `changelog` pass). ### Verdict fail ### Findings - [blocking] roles/formulas/mol-worker-work.toml:176 (measured by tests/formula.sh:151): the work step is now over the limit as CI counts it. `test / lint` (run 244, job `lint`) fails with "FAIL: the step is 8002 characters, past the 8000 a Worker reads again and again". The test counts with `wc -m`, and the runner has no UTF-8 locale, so it counts bytes. The step has six em dashes of 3 bytes each. On main the step is 7998 bytes (7986 UTF-8 characters). At this head it is 8002 bytes (7990 characters). The description's "main's was at 7988" and "`bash tests/formula.sh` prints `ok`" hold only under a UTF-8 locale. Fix: take at least 2 more bytes out of the step, as the test's comment says (moving text out, never raising the number). Then run the test as CI runs it, `LC_ALL=C bash tests/formula.sh`, and update the description's figures to match. - [minor] tests/formula.sh:150: the count depends on the caller's locale, which is how a Worker's local `ok` and CI's failure came apart. This is the same kind of fault as finding 1, a test that reads the session's environment. `LC_ALL=C wc -m` (or `wc -c`) would make every run count what CI counts. It is optional, and it is not a raise of the limit, since CI already counts bytes. - [minor] roles/formulas/mol-worker-work.toml:176: "Once it is open" follows "If the push or `pr open` fails, halt.", so "it" has no pull request to point back to. "Once the PR is open" costs 4 bytes more than "it" and reads unambiguously, if the room you find allows it. ### Verified - I read the work bead (its description and the Operator's notes of 14:19 and 18:28), the pull request's description, the whole diff (5 files, +13/-5), and main's README (no REVIEW.md, AGENTS.md or CLAUDE.md on main). - The head merges cleanly into main 0deb291 (an ort merge, no conflict), and the forge reports `mergeable`. - Finding 1 of the bead: `gc --city "$city" formula show` is right. With `GC_CITY`, `GC_CITY_PATH`, `GC_CITY_ROOT` and `GC_DIR` set to an empty other city (in a UTF-8 locale), `tests/formula.sh` passes on the head, so it reads the checkout. - Finding 2: the clause is in the Worker's skill, in Part 6 of the formula and in the README, and the two new assertions check the skill and Part 6. The trims in Part 6 lose nothing that the skill and the README do not still say. - Finding 3: dropped, for the reasons the description gives. It matches main. - The fragment `.changelog/formula-test-reads-checkout.md` is one sentence under `### Fixed`, as README "Changelog" asks. - I reproduced the CI failure locally with the city's variables removed (`env -i`, C locale). `tests/formula.sh` fails with 8002 on the head and on the merge result, and prints `ok` on main. The same head prints `ok` with `LC_ALL=en_US.UTF-8`. I measured the step compiled from the recipe at both commits: main 7998 bytes / 7986 chars, head 8002 / 7990. - On the merge result with the city's variables removed, these pass: `gc lint .`, `tests/reviewer.sh`, `tests/operator-overlay.sh`, `worktree-setup`, `worktree`, `gnu-tools`, `merge`, `handover`, `apply`, `upgrade`, `view-beads`, `view-mail`, `permission-deny`, `permission-request`, `go vet ./...` and `go test ./...`. The changelog check passes on the forge. I did not run `-race`: the change touches no Go.
mikluko force-pushed worker/gascitypacks-pmn from 5131451a9a
Some checks failed
test / changelog (pull_request) Successful in 5s
test / lint (pull_request) Failing after 18s
test / scripts (pull_request) Successful in 44s
to e2ffbf891c
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 24s
test / scripts (pull_request) Successful in 47s
2026-11-12 18:19:20 +00:00
Compare
city-root-review left a comment

Review of e2ffbf891c for gascitypacks-pmn. Checks of the head: success.

Verdict

pass

Findings

  • [minor] Pull request description: it still describes the first round. "one commit on main 3316228", "main's was at 7988", "bash tests/formula.sh prints ok" (true only under a UTF-8 locale in that round) and "Part 6 of the formula says 'Once it is open'" no longer match the branch. The branch is two commits on c0246aa, the step is 7993 bytes, and Part 6 says "Once the PR is open". The work bead's note of this round gives the reason (this release of gc forgejo pr has open, state, review and merge, and no command that edits a description or posts a comment). The corrected account is in commit e2ffbf8's message and in that note, so this does not block. Whoever merges can edit the description by hand, or squash with e2ffbf8's message in it.
  • [minor] tests/formula.sh:151: the variable step_chars now holds a byte count. step_bytes would match the new failure message. Cosmetic.

Verified

  • I read the work bead (its description, the Operator's notes of 14:19 and 18:28, the round-1 note and the rework note), the pull request's description, my review of round 1 (5131451), the whole diff (5 files, +21/-12) and both commits. Main has no REVIEW.md, AGENTS.md or CLAUDE.md. I read its README sections on handing over, the changelog and the changelog tool.
  • Round 1's blocking finding is fixed. I measured the step compiled from the merge result with LC_ALL=C at 7993 bytes, against the limit of 8000. The test now counts with wc -c, so it agrees with CI under any locale. It printed ok with LC_ALL=C and again with LC_ALL=en_US.UTF-8. The 13 bytes come from dropping ", never whole" after "only at the lines the bead names". The rule still stands, and tests/formula.sh:157 still asserts it.
  • Round 1's minor findings are taken: the count uses wc -c, and Part 6 says "Once the PR is open". The README and the formula's header now say "8000 bytes".
  • Finding 1 of the bead: with GC_CITY, GC_CITY_PATH, GC_CITY_ROOT and GC_DIR pointed at an empty other city, tests/formula.sh prints ok on the merge result. With the old (cd "$city" && gc formula show …) line put back in a scratch copy and the variables on that city, it fails ("gc formula show mol-worker-work failed"). So the test reads the checkout, and the --city line is what makes it do so.
  • Finding 2: the clause "Fixing what a review sent back is the work; watching the run afterwards is not." is in the Worker's skill and in Part 6, and the README's paragraph carries it. tests/formula.sh:290-291 assert it in both places.
  • Finding 3: dropped, as the description says. Main has it already.
  • The fragment .changelog/formula-test-reads-checkout.md is one sentence under ### Fixed, as the README's "Changelog" section asks.
  • The head merges cleanly into main fe5a75f (an ort merge with no conflict), and the forge reports mergeable.
  • I ran these on the merge result with the city's variables removed (env -i, LC_ALL=C, a throwaway HOME), and all passed: gc lint ., tests/formula.sh, reviewer.sh, operator-overlay.sh, researcher.sh, worktree-setup, worktree, gnu-tools, merge, handover, apply, upgrade, view-beads, view-mail, permission-deny, permission-request, go vet ./... and go test ./.... The change touches no Go, so I did not run -race.
  • I did not run the changelog check. changelog is not on this session's PATH, and with no module proxy go could not build v2.0.1. The forge's test / changelog check of this head passed.
Review of e2ffbf891ca738f19d9779c7b531a634f4e5562a for gascitypacks-pmn. Checks of the head: success. ### Verdict pass ### Findings - [minor] Pull request description: it still describes the first round. "one commit on main 3316228", "main's was at 7988", "`bash tests/formula.sh` prints `ok`" (true only under a UTF-8 locale in that round) and "Part 6 of the formula says 'Once it is open'" no longer match the branch. The branch is two commits on c0246aa, the step is 7993 bytes, and Part 6 says "Once the PR is open". The work bead's note of this round gives the reason (this release of `gc forgejo pr` has `open`, `state`, `review` and `merge`, and no command that edits a description or posts a comment). The corrected account is in commit e2ffbf8's message and in that note, so this does not block. Whoever merges can edit the description by hand, or squash with e2ffbf8's message in it. - [minor] tests/formula.sh:151: the variable `step_chars` now holds a byte count. `step_bytes` would match the new failure message. Cosmetic. ### Verified - I read the work bead (its description, the Operator's notes of 14:19 and 18:28, the round-1 note and the rework note), the pull request's description, my review of round 1 (5131451), the whole diff (5 files, +21/-12) and both commits. Main has no REVIEW.md, AGENTS.md or CLAUDE.md. I read its README sections on handing over, the changelog and the changelog tool. - Round 1's blocking finding is fixed. I measured the step compiled from the merge result with `LC_ALL=C` at 7993 bytes, against the limit of 8000. The test now counts with `wc -c`, so it agrees with CI under any locale. It printed `ok` with `LC_ALL=C` and again with `LC_ALL=en_US.UTF-8`. The 13 bytes come from dropping ", never whole" after "only at the lines the bead names". The rule still stands, and tests/formula.sh:157 still asserts it. - Round 1's minor findings are taken: the count uses `wc -c`, and Part 6 says "Once the PR is open". The README and the formula's header now say "8000 bytes". - Finding 1 of the bead: with `GC_CITY`, `GC_CITY_PATH`, `GC_CITY_ROOT` and `GC_DIR` pointed at an empty other city, `tests/formula.sh` prints `ok` on the merge result. With the old `(cd "$city" && gc formula show …)` line put back in a scratch copy and the variables on that city, it fails ("gc formula show mol-worker-work failed"). So the test reads the checkout, and the `--city` line is what makes it do so. - Finding 2: the clause "Fixing what a review sent back is the work; watching the run afterwards is not." is in the Worker's skill and in Part 6, and the README's paragraph carries it. tests/formula.sh:290-291 assert it in both places. - Finding 3: dropped, as the description says. Main has it already. - The fragment `.changelog/formula-test-reads-checkout.md` is one sentence under `### Fixed`, as the README's "Changelog" section asks. - The head merges cleanly into main fe5a75f (an ort merge with no conflict), and the forge reports `mergeable`. - I ran these on the merge result with the city's variables removed (`env -i`, `LC_ALL=C`, a throwaway `HOME`), and all passed: `gc lint .`, `tests/formula.sh`, `reviewer.sh`, `operator-overlay.sh`, `researcher.sh`, `worktree-setup`, `worktree`, `gnu-tools`, `merge`, `handover`, `apply`, `upgrade`, `view-beads`, `view-mail`, `permission-deny`, `permission-request`, `go vet ./...` and `go test ./...`. The change touches no Go, so I did not run `-race`. - I did not run the changelog check. `changelog` is not on this session's `PATH`, and with no module proxy go could not build v2.0.1. The forge's `test / changelog` check of this head passed.
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!25
No description provided.