Skip to content

Remove the old book walk forms - #109

Merged
moshez merged 1 commit into
mainfrom
worker/93
Dec 2, 2026
Merged

moshez merged 1 commit into
mainfrom
worker/93

Conversation

@moshez

@moshez moshez commented Dec 1, 2026

Copy link
Copy Markdown
Member

Fixes #93

Head: a6a2707

Plan

The Done-when of #93: git grep -n -E 'book_span|book_lit|book_sheet_walk|book_style_walk' -- src tests prints nothing; no dependent's newest published archive calls the old forms; bats check and bats test pass; published alone by "Publishing Packages".

  1. First, the precondition: no dependent's main (dom with its test packages, quire, bridge, pwa, widget, html, bats) and no newest archive of any package in repository-prototype (main 997004e) names book_lit, book_span, book_num, book_sheet_walk, book_sheet_walk_plain or book_style_walk.
  2. Remove the old forms of PR 91 (book_lit, book_span, book_num hook templates, book_sheet_walk, book_style_walk) and _replay.
  3. book_sheet_walk_plain (Add a layout-3 walk with plain selectors for page styles that paint SVG #104) is a replay of book_sheet_pieces_plain through the same hooks, and the Done-when grep (book_sheet_walk) matches it, so it goes too; book_sheet_pieces_plain stays. No dependent calls it (step 1).
  4. src/book_tests.bats: the golden cases called the walks with a test sink; they now put the pieces into the rope with a function of the test's own (_put_pieces), with the same expected text.
  5. bats check, bats test. Publishing alone happens after the merge, not here.

Execution

  • src/book.bats: removed book_lit, book_span, book_num, book_sheet_walk, _replay, book_sheet_walk_plain, book_style_walk; the comments of book_sheet_pieces, book_sheet_pieces_plain and book_style_pieces now carry what the walks' comments said.
  • src/book_tests.bats: tsink and its three hook implementations replaced by _put_pieces (a literal, the digits of a number, a span of the sheet, the span of the container id for BPContainer); _walk_with and _style_run call it over book_sheet_pieces, book_sheet_pieces_plain and book_style_pieces. Every test and every expected text is unchanged (125 pass).
  • CLAUDE.md: the plain-walk section names the pieces only; a short section walk-removed (Remove the old book walk forms once dom has moved to book_sheet_pieces #93) says what went and why.
  • The static fixtures (book-sheet-pieces, book-plain-walk, book-plain-walk-reflow) use only the pieces forms and are unchanged.

Deviations: book_sheet_walk_plain is removed with the forms #93 names (step 3): it was added by #104 after #93 was filed, on the same hooks, and published in css 2026.11.30.79610; nothing calls it.

Evidence

$ git diff --stat origin/main
 CLAUDE.md           |  6 +++-
 src/book.bats       | 85 ++++++++++-------------------------------------------
 src/book_tests.bats | 78 +++++++++++++++++++++++-------------------------
 3 files changed, 57 insertions(+), 112 deletions(-)
$ git grep -n -E 'book_span|book_lit|book_sheet_walk|book_style_walk' -- src tests
(exit 1: no match)
$ for r in dom quire bridge pwa widget html bats; do echo "== $r $(git -C /home/user/$r rev-parse --short origin/main)"; git -C /home/user/$r grep -n -E '\b(book_span|book_lit|book_num|book_sheet_walk|book_sheet_walk_plain|book_style_walk)\b' origin/main; done
== dom 18dfe06
== quire 545357a9
== bridge 3af7572
== pwa 0e5f4b0
== widget c24da68
== html 85475f0
== bats c85091a
$ grep -rln -E '\b(book_span|book_lit|book_num|book_sheet_walk|book_sheet_walk_plain|book_style_walk)\b' .   # the newest archive of each of the 44 packages of repository-prototype 997004e, unpacked
./css_2026.11.30.79610/src/book.bats
./css_2026.11.30.79610/src/book_tests.bats
./css_2026.11.30.79610/docs/book.md
$ timeout 598 /tmp/seed-pins/debug/bats check --repository /home/user/repository-prototype
generated docs (4 module(s))
check passed (library)
$ timeout 598 /tmp/seed-pins/debug/bats test --repository /home/user/repository-prototype 2>&1 | grep -v PASS
running 125 native test(s)
all tests passed
$ grep -c PASS <that output>
125
$ grep -E "test_(pieces|plain|style)" <that output>
  PASS test_pieces_of_a_rule
  PASS test_pieces_of_an_empty_sheet
  PASS test_style_read_at_offset
  PASS test_plain_svg_type
  PASS test_plain_svg_class_id
  PASS test_plain_no_scope
  PASS test_plain_scoped_walk_kept
  PASS test_style_reflow
  PASS test_style_fixed
  PASS test_style_important
  PASS test_style_empty

Generated by Claude Code

…word: walk-removed)

The hook templates book_lit, book_span and book_num and the walks
book_sheet_walk, book_style_walk and book_sheet_walk_plain (a replay of the
pieces through the hooks) are removed. book_sheet_pieces,
book_sheet_pieces_plain and book_style_pieces are the one form; no
dependent's main or newest published archive calls the old ones.
book_tests puts the pieces into its rope with a function of its own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HwLsLqnBm3u7Rwk8pezYB3

moshez commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Plan check
Plan check: ok
Plan-digest: 38ee678455117a09

Plan reviewed by an independent reviewer agent at head a6a2707: removes the old book walk forms per #93, dependents checked. Authorized by Moshe: "agents may post pitboss plan checks and reviews, and enable auto-merge or merge green PRs, in every repo including relock-scratch".


Generated by Claude Code

@moshez
moshez marked this pull request as ready for review December 1, 2026 23:45

moshez commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

Independent review (a separate reviewer agent, not the author) of head a6a2707: approved
Plan: approved
Execution: approved
Verdict: approved
Body: f4dc0d2335d5c971
Plan-digest: 38ee678455117a09
Ticket: #93 2aea99255a1d3795
Overlap check: This is the p2 removal ticket's PR; grep shows no dependent calls the removed forms.
Quarantine check: No test skipped, disabled or quarantined.
Race check: No race named by this change.

Independent review at a6a2707: removal matches #93, no dependent calls the forms, CI green. Posted under Moshe's 18:52Z authorization: agents may post pitboss plan checks and reviews, and enable auto-merge or merge green PRs, in every repo including relock-scratch.


Generated by Claude Code

@moshez
moshez merged commit 23d51b5 into main Dec 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the old book walk forms once dom has moved to book_sheet_pieces

2 participants