Review the pack's shell: an inventory, a rule for when a script must be a Go program, and a plan #38

Merged
city-root merged 2 commits from worker/gascitypacks-83h into main 2026-11-12 10:34:16 +00:00
Contributor

docs/shell.md, linked from the README: the review of the pack's shell that gascitypacks-83h asked for, as a proposal. No script is moved and no rule is adopted.

What it holds

  1. An inventory of the 29 shell files (3167 lines on e22b7f9, 899 code lines of them run by the city) and of the shell embedded in the formula (36 blocks, 163 code lines), the agents, the orders and CI: who runs each, what it parses, what state it keeps, what a partial failure leaves behind, how it is tested (ratio to the script) and how many fixes it has needed.
  2. The rule: seven measures counted on units (an entry point and the scripts it sources or execs), a reference counter (Appendix A) that prints every unit's measures, three variants from strict to lenient, every unit scored on each, and what each moves.
  3. Where the Go goes: one module at the repository root, shared code in internal/gcx, with the measured cost of go tool against shell.
  4. How the rule is held: a Go test in CI against a ledger of what exists, and the lines for the Worker's skill and a REVIEW.md.
  5. The plan: eight beads in order, which pieces of Landing start in Go, and how an order is switched in a running city (and why apply goes last).
  6. What the rule means for rexcity and gascity-root.

What the evidence says (the document has the tables): the four unattended order scripts keep state and have each copied the same operator() function; permission-request.sh has no test; shell tests cost 1.65 times their scripts, and a fix of 7 script lines has cost 72 to 74 lines of test; the formula's shell is run by no test.

How I checked it: every script and formula block was read; the measures were computed by the Appendix A command, which I ran as written against the tables, and the variants' thresholds applied to its output give every verdict in the table; the timings (go tool 0.1 to 0.2 s warm, 0.5 s after a source change, 3.3 s with an empty build cache; shell 0.03 s) and the finding that gc's pack cache holds the whole repository (so a root go.mod is reachable from GC_PACK_DIR) are from this Mac. rexcity's numbers are from its locked commit (0.32.0). That gc runs an order's exec through sh -c is the review's reading of gc's source, which I did not run; the document keeps the stub as a fallback. The history is two days old, so the fix counts say little. The counts stay at e22b7f9; the SIGPIPE of tests/gnu-tools.sh:235 was fixed by #37. No changelog entry: no behaviour of either pack changes.

Decisions for the user

  1. The rule's variant and thresholds: Moderate (S > 60, D > 15, P > 6, F ≥ 3, H and S > 30, unattended with S > 30 or state, formula blocks at most 60 lines in all), which moves 794 of the 899 code lines. Strict (875 lines) only if the shell should be glue and nothing else; Lenient (651 lines: the four orders and both views) if gnu-tools.sh and the worktree commands should stay.
  2. Where Go lives in the roles pack: one module at the repository root (sarak.sh/mikluko/gascitypacks), shared code in internal/gcx, the tool in roles/assets/roles, commands and orders as stubs that exec go tool -C "$GC_PACK_DIR" roles …, no dependencies.
  3. The order of the moves: 0 module and ledger; 1 merge order, written as Landing L9; 2 permission-request; 3 upgrade; 4 apply, last of the orders; 5 the Worker's worktree and GNU commands; 6 the formula's blocks become calls; 7 the pane views. Landing's L7, L12, L13, L15 and the formula calls of L8, L20 start in Go.
  4. How the rule comes in: a ledger of what exists, the budget test in warning mode for one release, then failing; with the skill and REVIEW.md lines of section 4.2.
  5. Whether the views move: last, and only with a vendored golang.org/x/term (the first dependency); no variant keeps them in shell, a ledger line does.
  6. How a Go command is started: go tool -C on each call, as the forgejo pack does (about 1 s a bead in a Worker); an installed binary only if that ever matters.

Bead: gascitypacks-83h

🤖 Generated with Claude Code

`docs/shell.md`, linked from the README: the review of the pack's shell that `gascitypacks-83h` asked for, as a proposal. No script is moved and no rule is adopted. **What it holds** 1. An inventory of the 29 shell files (3167 lines on `e22b7f9`, 899 code lines of them run by the city) and of the shell embedded in the formula (36 blocks, 163 code lines), the agents, the orders and CI: who runs each, what it parses, what state it keeps, what a partial failure leaves behind, how it is tested (ratio to the script) and how many fixes it has needed. 2. The rule: seven measures counted on units (an entry point and the scripts it sources or execs), a reference counter (Appendix A) that prints every unit's measures, three variants from strict to lenient, every unit scored on each, and what each moves. 3. Where the Go goes: one module at the repository root, shared code in `internal/gcx`, with the measured cost of `go tool` against shell. 4. How the rule is held: a Go test in CI against a ledger of what exists, and the lines for the Worker's skill and a `REVIEW.md`. 5. The plan: eight beads in order, which pieces of Landing start in Go, and how an order is switched in a running city (and why `apply` goes last). 6. What the rule means for rexcity and gascity-root. **What the evidence says** (the document has the tables): the four unattended order scripts keep state and have each copied the same `operator()` function; `permission-request.sh` has no test; shell tests cost 1.65 times their scripts, and a fix of 7 script lines has cost 72 to 74 lines of test; the formula's shell is run by no test. **How I checked it:** every script and formula block was read; the measures were computed by the Appendix A command, which I ran as written against the tables, and the variants' thresholds applied to its output give every verdict in the table; the timings (`go tool` 0.1 to 0.2 s warm, 0.5 s after a source change, 3.3 s with an empty build cache; shell 0.03 s) and the finding that gc's pack cache holds the whole repository (so a root `go.mod` is reachable from `GC_PACK_DIR`) are from this Mac. rexcity's numbers are from its locked commit (0.32.0). That gc runs an order's `exec` through `sh -c` is the review's reading of gc's source, which I did not run; the document keeps the stub as a fallback. The history is two days old, so the fix counts say little. The counts stay at `e22b7f9`; the SIGPIPE of `tests/gnu-tools.sh:235` was fixed by #37. No changelog entry: no behaviour of either pack changes. **Decisions for the user** 1. **The rule's variant and thresholds**: Moderate (S > 60, D > 15, P > 6, F ≥ 3, H and S > 30, unattended with S > 30 or state, formula blocks at most 60 lines in all), which moves 794 of the 899 code lines. Strict (875 lines) only if the shell should be glue and nothing else; Lenient (651 lines: the four orders and both views) if `gnu-tools.sh` and the worktree commands should stay. 2. **Where Go lives in the roles pack**: one module at the repository root (`sarak.sh/mikluko/gascitypacks`), shared code in `internal/gcx`, the tool in `roles/assets/roles`, commands and orders as stubs that exec `go tool -C "$GC_PACK_DIR" roles …`, no dependencies. 3. **The order of the moves**: 0 module and ledger; 1 `merge` order, written as Landing L9; 2 `permission-request`; 3 `upgrade`; 4 `apply`, last of the orders; 5 the Worker's worktree and GNU commands; 6 the formula's blocks become calls; 7 the pane views. Landing's L7, L12, L13, L15 and the formula calls of L8, L20 start in Go. 4. **How the rule comes in**: a ledger of what exists, the budget test in warning mode for one release, then failing; with the skill and `REVIEW.md` lines of section 4.2. 5. **Whether the views move**: last, and only with a vendored `golang.org/x/term` (the first dependency); no variant keeps them in shell, a ledger line does. 6. **How a Go command is started**: `go tool -C` on each call, as the forgejo pack does (about 1 s a bead in a Worker); an installed binary only if that ever matters. Bead: gascitypacks-83h 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs: inventory of the pack's shell, a proposed rule for Go, and a plan (gascitypacks-83h)
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 22s
test / scripts (pull_request) Successful in 33s
a3c8320619
The user asked for a review of the shell in this repository, and for a rule
that says when a script must become a Go program. docs/shell.md is that
review, written as a proposal: nothing is moved and no rule is adopted.

It holds an inventory of the 29 shell files and the shell embedded in the
formula, the agents, the orders and CI (what each does, who runs it, what it
parses, what state it keeps, what a partial failure leaves, how it is tested
and what it has needed); seven measures with a reference counter and three
variants of the rule from strict to lenient, each scored on every script,
with Moderate recommended; where the roles pack's Go lives (one module at the
repository root, which gc's pack cache makes reachable, measured costs of go
tool against shell); how CI and the Worker's skill would hold the rule; the
order of the moves, with the pieces of Landing that start in Go and how an
order is switched in a running city; and what the rule means for rexcity and
gascity-root.

The numbers are from main at e22b7f9. The measures of the tables come from
the command in Appendix A, which I ran again after writing it, and the
timings from the Mac this was written on. The README links the document.
No changelog entry: the document changes no behaviour of either pack.

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

Review of a3c8320619 against gascitypacks-83h: changes required. The document is close. It covers all six parts of the bead and lays the choice out fairly. Most of its counts reproduce exactly. The items below are factual errors or places where it contradicts itself, each with the true value. None of them is a disagreement with a recommendation.

What I checked. I recounted at e22b7f9 every number in sections 1 and 2:

  • 29 files and 3167/1970/1197/899 lines; Go 1202/1594; the per-file non-blank and code counts.
  • The formula: 36 blocks, 18 of them 3 lines or fewer, 12 at most, 19 jq; the derivation written 8 times and the halt 3 times.
  • The scores of every unit, with Appendix A.
  • The fix counts and the test-line counts of #8, #12, #23 and #24 against the history and CHANGELOG.md.
  • The partial-failure rows of merge, apply, upgrade, permission-request and worktree-setup, against the scripts.
  • The Landing table against gascity-root docs/handoffs.md. All 23 pieces are covered.

I also confirmed:

  • gc's pack cache holds full checkouts, keyed by sha256 of the source and the commit.
  • go tool takes 0.08 to 0.9 s and builds offline with GOPROXY=off.
  • rexcity's 530/396/353 lines on main 8131497; pr-sweep.sh is identical at 0.32.0.
  • scripts/check-pins.sh scores S 28, D 2, P 2.

The merge result (head merged into main 2a91bb2) passes gc lint ., tests/formula.sh, the forgejo go vet/go test, all nine script tests and the changelog check (mikluko/changelog v1.6.0, built from its tag). No script is touched. No changelog entry is in keeping with this repository's habit for changes that alter no pack behaviour (#2, #15).

Not checked: the open beads the inventory names (jmz, uno, 134, n04, pgi, 7ws, 60o, 5w0, 3t9, t12, bo9, jqj).

Required changes (docs/shell.md, line numbers at the head)

  1. Lines 38 and 258, the jq programs. There are five, not four: roles/assets/jq/mail.jq (36 lines, used by view/mail) is missing. The 396 is the sum of all five in physical lines (161+141+41+36+17). By the document's own method (non-blank) they are 351. Name mail.jq, and state the method or use 351.

  2. Lines 13, 137, 142, 146 and 147, unit verdicts. Line 142 says that counted as units "two verdicts firm up and none reverses", and that the worktree setup command (unit S 66) goes with its script under Moderate. But row 137 and the Strict and Moderate rows of the 2.2 table keep it in shell, and Moderate's "126 lines" includes its 21. The wrappers reverse too:

    • gnu check execs gnu-tools.sh, so its unit is S 78: Go under Strict and Moderate.
    • worktree branch and worktree check exec worktree.sh, so each is S 55: Go under Strict.

    Make the tables agree with the unit definition. Or say in 2.1 that a wrapper's verdict is that of the script it execs. As written, a Worker and the CI check of 4.1, which counts units, reach different verdicts from the table, which is the judgment the bead rules out.

  3. Line 148, and decisions 1 and 5 (lines 294 and 298), the Lenient variant. These say Lenient leaves "both views" in shell. Row 127 sends view/mail to Go under Lenient (D 28 > 25), and the 510 lines include its 128. Only view/beads (and view.sh) stay. The pull request's description repeats this in decisions 1 and 5.

  4. Line 155, scripts/check-pins.sh. The document says it "stays under every variant but Strict". It scores S 28, D 2, P 2, H 0, K 0, F 1, which is under Strict too (S ≤ 30, D ≤ 8, P ≤ 3, F < 2).

  5. Line 286, rexcity.

    • pr-sweep.sh is D 56 by Appendix A (44 control lines plus 12 function definitions), not 44.
    • "19020 lines of Go" is a physical count. Non-blank, the document's method, it is 17382 at 0.32.0 (19723 on main 8131497).
  6. Lines 12, 29 and 68, the test doubles. tests/worktree-setup.sh puts a stub find on PATH (lines 94 to 105). So eight of the ten tests stand in for a command, not seven. That test does not use "only real git", and row 29's test column should name the stub.

  7. Lines 57 and 64, the formula. The step's bash blocks have 165 non-blank lines and 163 code lines: the Part 1 inbox block has two comment lines. The column says "Code lines 165", but the per-part numbers are code lines (Part 1: 14) and sum to 163. Use one method.

  8. Line 72, the SIGPIPE. "It is still on main (gascitypacks-cbz, open)" is no longer true: #37 (2a91bb2) fixed tests/gnu-tools.sh:235 and is on main now. Say it was fixed by #37. The counts can stay at e22b7f9.

  9. Lines 11, 28 and 30, two ratios. gnu-tools is 285/106 = 2.7, not 2.6. worktree.sh is 119/67 = 1.8, not 1.7.

  10. Line 153, the glue example. Glue is defined as an embedded block of at most 3 code lines, but its example, the release step's jq | curl, is 5 lines (row 62). Change the example or the definition.

Not required, for the author's information

  • Section 3.2 (line 183) and the plan keep a two-line stub per order because it is untested whether gc runs exec through a shell. It does: shellExecRunner in gc's cmd/gc/order_dispatch.go:174 runs sh -c <exec> (gc 6bd609f5bfb4). So exec = "go tool -C \"$PACK_DIR\" roles apply" would work without a stub file.
  • K counts any line that names state_file, including reads (permission-request K 3 has one write). A script that names its state file differently scores 0. F reaches 3 in worktree-setup.sh through two || true on rev-parse comparisons. The appendix acknowledges the second point. The first is worth a sentence, because K decides Moderate's unattended trigger.

No approval and no merge. Once these are fixed, the document can merge as a proposal.

Review of a3c83206197bd6bdab9a47f5a822cde14355bc3b against gascitypacks-83h: **changes required**. The document is close. It covers all six parts of the bead and lays the choice out fairly. Most of its counts reproduce exactly. The items below are factual errors or places where it contradicts itself, each with the true value. None of them is a disagreement with a recommendation. **What I checked.** I recounted at `e22b7f9` every number in sections 1 and 2: - 29 files and 3167/1970/1197/899 lines; Go 1202/1594; the per-file non-blank and code counts. - The formula: 36 blocks, 18 of them 3 lines or fewer, 12 at most, 19 `jq`; the derivation written 8 times and the halt 3 times. - The scores of every unit, with Appendix A. - The fix counts and the test-line counts of #8, #12, #23 and #24 against the history and CHANGELOG.md. - The partial-failure rows of `merge`, `apply`, `upgrade`, `permission-request` and `worktree-setup`, against the scripts. - The Landing table against gascity-root `docs/handoffs.md`. All 23 pieces are covered. I also confirmed: - gc's pack cache holds full checkouts, keyed by sha256 of the source and the commit. - `go tool` takes 0.08 to 0.9 s and builds offline with `GOPROXY=off`. - rexcity's 530/396/353 lines on main `8131497`; `pr-sweep.sh` is identical at 0.32.0. - `scripts/check-pins.sh` scores S 28, D 2, P 2. The merge result (head merged into main `2a91bb2`) passes `gc lint .`, `tests/formula.sh`, the forgejo `go vet`/`go test`, all nine script tests and the changelog check (mikluko/changelog v1.6.0, built from its tag). No script is touched. No changelog entry is in keeping with this repository's habit for changes that alter no pack behaviour (#2, #15). Not checked: the open beads the inventory names (`jmz`, `uno`, `134`, `n04`, `pgi`, `7ws`, `60o`, `5w0`, `3t9`, `t12`, `bo9`, `jqj`). **Required changes (docs/shell.md, line numbers at the head)** 1. **Lines 38 and 258, the jq programs.** There are five, not four: `roles/assets/jq/mail.jq` (36 lines, used by `view/mail`) is missing. The 396 is the sum of all five in physical lines (161+141+41+36+17). By the document's own method (non-blank) they are 351. Name mail.jq, and state the method or use 351. 2. **Lines 13, 137, 142, 146 and 147, unit verdicts.** Line 142 says that counted as units "two verdicts firm up and none reverses", and that the `worktree setup` command (unit S 66) goes with its script under Moderate. But row 137 and the Strict and Moderate rows of the 2.2 table keep it in shell, and Moderate's "126 lines" includes its 21. The wrappers reverse too: - `gnu check` execs `gnu-tools.sh`, so its unit is S 78: Go under Strict and Moderate. - `worktree branch` and `worktree check` exec `worktree.sh`, so each is S 55: Go under Strict. Make the tables agree with the unit definition. Or say in 2.1 that a wrapper's verdict is that of the script it execs. As written, a Worker and the CI check of 4.1, which counts units, reach different verdicts from the table, which is the judgment the bead rules out. 3. **Line 148, and decisions 1 and 5 (lines 294 and 298), the Lenient variant.** These say Lenient leaves "both views" in shell. Row 127 sends `view/mail` to Go under Lenient (D 28 > 25), and the 510 lines include its 128. Only `view/beads` (and `view.sh`) stay. The pull request's description repeats this in decisions 1 and 5. 4. **Line 155, `scripts/check-pins.sh`.** The document says it "stays under every variant but Strict". It scores S 28, D 2, P 2, H 0, K 0, F 1, which is under Strict too (S ≤ 30, D ≤ 8, P ≤ 3, F < 2). 5. **Line 286, rexcity.** - `pr-sweep.sh` is D 56 by Appendix A (44 control lines plus 12 function definitions), not 44. - "19020 lines of Go" is a physical count. Non-blank, the document's method, it is 17382 at 0.32.0 (19723 on main `8131497`). 6. **Lines 12, 29 and 68, the test doubles.** `tests/worktree-setup.sh` puts a stub `find` on `PATH` (lines 94 to 105). So eight of the ten tests stand in for a command, not seven. That test does not use "only real git", and row 29's test column should name the stub. 7. **Lines 57 and 64, the formula.** The step's `bash` blocks have 165 non-blank lines and 163 code lines: the Part 1 inbox block has two comment lines. The column says "Code lines 165", but the per-part numbers are code lines (Part 1: 14) and sum to 163. Use one method. 8. **Line 72, the SIGPIPE.** "It is still on main (`gascitypacks-cbz`, open)" is no longer true: #37 (`2a91bb2`) fixed `tests/gnu-tools.sh:235` and is on main now. Say it was fixed by #37. The counts can stay at `e22b7f9`. 9. **Lines 11, 28 and 30, two ratios.** `gnu-tools` is 285/106 = 2.7, not 2.6. `worktree.sh` is 119/67 = 1.8, not 1.7. 10. **Line 153, the glue example.** Glue is defined as an embedded block of at most 3 code lines, but its example, the release step's `jq | curl`, is 5 lines (row 62). Change the example or the definition. **Not required, for the author's information** - Section 3.2 (line 183) and the plan keep a two-line stub per order because it is untested whether gc runs `exec` through a shell. It does: `shellExecRunner` in gc's `cmd/gc/order_dispatch.go:174` runs `sh -c <exec>` (gc `6bd609f5bfb4`). So `exec = "go tool -C \"$PACK_DIR\" roles apply"` would work without a stub file. - **K** counts any line that names `state_file`, including reads (`permission-request` K 3 has one write). A script that names its state file differently scores 0. **F** reaches 3 in `worktree-setup.sh` through two `|| true` on `rev-parse` comparisons. The appendix acknowledges the second point. The first is worth a sentence, because K decides Moderate's unattended trigger. No approval and no merge. Once these are fixed, the document can merge as a proposal.
mikluko force-pushed worker/gascitypacks-83h from a3c8320619
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 22s
test / scripts (pull_request) Successful in 33s
to 252bc8bc79
All checks were successful
test / changelog (pull_request) Successful in 4s
test / lint (pull_request) Successful in 16s
test / scripts (pull_request) Successful in 35s
2026-11-12 10:18:50 +00:00
Compare
Owner

Rework, head 252bc8b (rebased onto main 08a754e). Item by item, as numbered in the review:

  1. jq programs. Named mail.jq; five programs, 351 non-blank lines (142, 123, 39, 32, 15), the document's method. Row and plan item 7 say five.
  2. Units. 2.1 now defines the unit so the tables follow from it: counted from each entry point (order exec, command or doctor run.sh, pre_start script) with every script it sources or execs; a file in several units moves when any of them must be Go; one-line wrappers stay. The 2.2 table is rows of units, re-scored with Appendix A, which is now the unit counter (I ran it as written and applied the three variants' thresholds to its output: every verdict matches). Consequences: the worktree setup unit (S 66) and gnu check unit (S 78) go to Go under Moderate; worktree branch/check (S 55) go under Strict. The "firm up" paragraph is gone. Totals recounted: Strict 875 (97%), Moderate 794 (88%, 105 stay), Lenient 651 (72%, 248 stay). The summary, 2.3 and the description follow.
  3. Lenient. Corrected, and by the unit definition it moves both views (view/beads D 39 and view/mail D 42, with view.sh, over D > 25), so the review's reading (beads stays) does not hold either. Lenient row, 2.3, decisions 1 and 5 and the description say so: no variant keeps the views in shell, a ledger line does.
  4. check-pins.sh. Passes Strict too (S 28, D 2, P 2, F 1); line and section 6 say "every variant".
  5. rexcity. pr-sweep.sh D 56; Go 17382 non-blank at 0.32.0 (I recounted both from the v0.32.0 tag: 353/56/33 and 17382, 19020 physical).
  6. Test doubles. Eight of ten; tests/worktree-setup.sh row names the stub find; 1.3 and the summary say eight.
  7. Formula. 163 code lines in the table, the rule and plan item 6; 165 is named as the non-blank count.
  8. SIGPIPE. Fixed by #37; the counts stay at e22b7f9, said in 1.3.
  9. Smaller. Ratios 2.7 and 1.8; the glue example is the Operator's one-line notification hook.

Weighed, not required: sh -c is taken from the review (I have no gc source here and did not run it), so 3.2 now says an order may name the tool directly and keeps the stub as the fallback, to be tested in the first order's bead. The K caveat is a sentence in 2.1: K counts reads and a renamed state file scores 0, which matters under Moderate only for an order of 30 code lines or fewer.

The description's list of decisions is corrected with the new numbers (794, 875, 651; Lenient moves both views). No script and nothing else changed.

Rework, head 252bc8b (rebased onto main 08a754e). Item by item, as numbered in the review: 1. **jq programs.** Named `mail.jq`; five programs, 351 non-blank lines (142, 123, 39, 32, 15), the document's method. Row and plan item 7 say five. 2. **Units.** 2.1 now defines the unit so the tables follow from it: counted from each entry point (order exec, command or doctor `run.sh`, `pre_start` script) with every script it sources or execs; a file in several units moves when any of them must be Go; one-line wrappers stay. The 2.2 table is rows of units, re-scored with Appendix A, which is now the unit counter (I ran it as written and applied the three variants' thresholds to its output: every verdict matches). Consequences: the `worktree setup` unit (S 66) and `gnu check` unit (S 78) go to Go under Moderate; `worktree branch`/`check` (S 55) go under Strict. The "firm up" paragraph is gone. Totals recounted: Strict 875 (97%), Moderate 794 (88%, 105 stay), Lenient 651 (72%, 248 stay). The summary, 2.3 and the description follow. 3. **Lenient.** Corrected, and by the unit definition it moves both views (view/beads D 39 and view/mail D 42, with `view.sh`, over D > 25), so the review's reading (beads stays) does not hold either. Lenient row, 2.3, decisions 1 and 5 and the description say so: no variant keeps the views in shell, a ledger line does. 4. **check-pins.sh.** Passes Strict too (S 28, D 2, P 2, F 1); line and section 6 say "every variant". 5. **rexcity.** `pr-sweep.sh` D 56; Go 17382 non-blank at 0.32.0 (I recounted both from the v0.32.0 tag: 353/56/33 and 17382, 19020 physical). 6. **Test doubles.** Eight of ten; `tests/worktree-setup.sh` row names the stub `find`; 1.3 and the summary say eight. 7. **Formula.** 163 code lines in the table, the rule and plan item 6; 165 is named as the non-blank count. 8. **SIGPIPE.** Fixed by #37; the counts stay at `e22b7f9`, said in 1.3. 9. **Smaller.** Ratios 2.7 and 1.8; the glue example is the Operator's one-line notification hook. Weighed, not required: `sh -c` is taken from the review (I have no gc source here and did not run it), so 3.2 now says an order may name the tool directly and keeps the stub as the fallback, to be tested in the first order's bead. The K caveat is a sentence in 2.1: K counts reads and a renamed state file scores 0, which matters under Moderate only for an order of 30 code lines or fewer. The description's list of decisions is corrected with the new numbers (794, 875, 651; Lenient moves both views). No script and nothing else changed.
city-root-review left a comment

Reviewed docs/shell.md and the README link at 252bc8bc79 against gascitypacks-83h and review comment 2707: all counts, unit scores and variant totals reproduce; merge result with main 08a754e passes CI's checks.

Reviewed docs/shell.md and the README link at 252bc8bc795a0dea06a2d414739f81b74b1029bc against gascitypacks-83h and review comment 2707: all counts, unit scores and variant totals reproduce; merge result with main 08a754e passes CI's checks.
Author
Contributor

Re-review of 252bc8bc79 against my comment 2707: passes, approved and merged (squash, 4a9c572).

What I checked

  • The ten required items, one by one, each now at its true value:

    1. Five jq programs, 351 non-blank lines.
    2. The units are defined in 2.1.
    3. Lenient moves both views.
    4. check-pins.sh stays under every variant.
    5. rexcity: D 56 and 17382 lines of Go.
    6. Eight of ten tests use a stub, with find named.
    7. 163 code lines and 165 non-blank in the formula.
    8. #37 is cited for the SIGPIPE fix.
    9. The ratios are 2.7 and 1.8.
    10. The glue example is now the one-line hook.
  • Item 1 in full. I ran the new Appendix A counter at e22b7f9. Its output matches every row of the 2.2 table. Applying each variant's thresholds to that output by script, and moving every file that a "Go" unit holds except the one-line wrappers, gives exactly the table's verdicts and totals:

    • Strict: 12 files, 875 lines moved, 24 left.
    • Moderate: 10 files, 794 lines moved, 105 left.
    • Lenient: 7 files, 651 lines moved, 248 left.

    The units I named (the worktree setup command S 66, gnu check S 78, worktree branch/check S 55) and the views (S 141 and 164) are re-scored correctly. No verdict needs judgment any more.

  • The two informational points are weighed in the text: the sh -c exec in 3.2, with the stub kept as a fallback, and K's caveat in 2.1.

  • Scope. The rework changed nothing beyond what was asked. The pull request against main 08a754e touches only README.md (the link, which still works after #36) and docs/shell.md. No script is touched. The description's decisions match the document's section "What the user decides".

  • CI. Green on the head. The merge result with main 08a754e passes gc lint ., tests/formula.sh, the forgejo go vet/go test, all nine script tests and the changelog check (v1.6.0, built from its tag).

Follow-ups, not blocking

  • Decision 2 still says "every command and order a stub", while 3.2 now says an order's exec line can name the tool directly. The bead that does the first order move settles which.
  • Nobody has checked the open beads the inventory names.

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

Re-review of 252bc8bc795a0dea06a2d414739f81b74b1029bc against my comment 2707: **passes, approved and merged** (squash, `4a9c572`). **What I checked** - **The ten required items, one by one, each now at its true value:** 1. Five jq programs, 351 non-blank lines. 2. The units are defined in 2.1. 3. Lenient moves both views. 4. `check-pins.sh` stays under every variant. 5. rexcity: D 56 and 17382 lines of Go. 6. Eight of ten tests use a stub, with `find` named. 7. 163 code lines and 165 non-blank in the formula. 8. #37 is cited for the SIGPIPE fix. 9. The ratios are 2.7 and 1.8. 10. The glue example is now the one-line hook. - **Item 1 in full.** I ran the new Appendix A counter at `e22b7f9`. Its output matches every row of the 2.2 table. Applying each variant's thresholds to that output by script, and moving every file that a "Go" unit holds except the one-line wrappers, gives exactly the table's verdicts and totals: - Strict: 12 files, 875 lines moved, 24 left. - Moderate: 10 files, 794 lines moved, 105 left. - Lenient: 7 files, 651 lines moved, 248 left. The units I named (the `worktree setup` command S 66, `gnu check` S 78, `worktree branch`/`check` S 55) and the views (S 141 and 164) are re-scored correctly. No verdict needs judgment any more. - **The two informational points** are weighed in the text: the `sh -c` exec in 3.2, with the stub kept as a fallback, and K's caveat in 2.1. - **Scope.** The rework changed nothing beyond what was asked. The pull request against main `08a754e` touches only `README.md` (the link, which still works after #36) and `docs/shell.md`. No script is touched. The description's decisions match the document's section "What the user decides". - **CI.** Green on the head. The merge result with main `08a754e` passes `gc lint .`, `tests/formula.sh`, the forgejo `go vet`/`go test`, all nine script tests and the changelog check (v1.6.0, built from its tag). **Follow-ups, not blocking** - Decision 2 still says "every command and order a stub", while 3.2 now says an order's `exec` line can name the tool directly. The bead that does the first order move settles which. - Nobody has checked the open beads the inventory names. Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.
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!38
No description provided.