Skip to content

007 T340: write "The SQL register" in the manual, part 1: what changes for a lane and the mechanisms (part of opensoft/openRepoTools#165) - #58

Merged
brettheap merged 6 commits into
mainfrom
l3-T340-manual-1
Nov 15, 2026
Merged

brettheap merged 6 commits into
mainfrom
l3-T340-manual-1

Conversation

@brettheap

@brettheap brettheap commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-3
Claim: opensoft/openRepoTools#165

This is feature 007's task T340: "The SQL register", part 1, in the operations manual. It changes one file, docs/README-lanes.md, in six commits: 1,013 lines added and 17 removed against main (4,869 lines become 5,865). The section is the first of two. T341 writes part 2 (the roles and logins, the secrets' reach, the socket API and the runbook for acts 3 and 4 and the rollback), and none of T341's text is here. T340 is [S] in specs/007-sql-register/tasks.md (:1672). The PR stays a draft.

  • Base and head: base main, now a3366afc; head l3-T340-manual-1 at 3370acb5. The six commits sit on c525d53d (commit 16 of Feature 007's spec follow-up: the lanes' could-wait texts after spec#17 (part of opensoft/openRepoTools#165) #48).
    • c525d53d is the merge base with main and an ancestor of it. main has changed docs/README-lanes.md once since: spec#67 (f9e8ffec) adds the section "Grouped project lookup" at the file's end (+33), apart from every line this PR touches. The merge below is clean. It has gained feature 007's specs/007-sql-register/contracts/socket-api.md (spec#46, T511, the register service's socket API, which is part 2's matter), spec#60 (775b72c9, feature 007's follow-ups 3), the v1.3 delivery changes of spec#63 and spec#64, spec#47 (f8c1d3da, T501's contracts/bind-record.md, with a section added at the end of contracts/exit-codes.md, below the lines this body cites), and spec#66, spec#67 and spec#68 (a3366afc). Those three cover v1.3 delivery and grouped project lookup, and none of them touches a feature 007 file. The follow-ups edit feature 007's files in place, on the launcher's bytecode under Python 3.9 and 3.10, the stray revert, test ids and verify lists, none of which the manual states, and every spec line this body cites reads the same at a3366afc as at c304e387, since feature 007's files are unchanged from f8c1d3da to a3366afc. So the branch is not rebased and needs none.
    • 9376791f writes the section, the nine pointers, the exit-table rows and the testing paragraph.
    • 031f9df8 folds Codex's first review (p58a) and the corrections of lanes 2, 4 and 5.
    • 9988b8a5 folds Codex's re-review (p58b) and the corrections of lanes 1, 4 and 5 posted since.
    • f814706f states the private-file rule as the code has it, on lane 3's ruling: 0600 and 0400 both pass.
    • babb170c folds the Opus review of f814706f (p58c): two BLOCKING places, the SHOULDs and the NITs, below.
    • 3370acb5 takes lane 4's two optional points on the exit-3 detail (Amendment 22 act 2: the SQL register under lanes-edit.sh — mode=primary writers in one transaction each, the estate switch and lanes/STORE, the write journal and the renderer (one mirror commit per write), exit 69, fail-closed readers, lanes-index import/rollback, SERIALIZABLE claim order, and the agreement tests openRepoTools#165 6895000166). They arrived after babb170c was pushed, so they are a commit of their own.
  • The merge with main: git merge-tree --write-tree 3370acb5 a3366afc is clean, tree 684010fa. It differs from main's tree by docs/README-lanes.md alone, +1,013 −17. T340's verify passes on the merged manual, which is 5,898 lines.
  • Sources: the spec at main (feature 007's files at f8c1d3da differ from c304e387's as the bullet above says), and the code at line R's merge158, 7e11b771. Each commit message lists the files and line ranges it read.
  • Release: the section describes v1.3.0's toolset, and its opening says so. Code main holds none of feature 007's primary-mode code; line R holds it.
  • T340 describes the code as merge158 has it, and does not wait for the code to land (lane 3's ruling). tasks.md:1674 lists Checkpoint C among T340's dependencies, "since it describes each mechanism as built"; RENDER_GIT_HALF is still False at merge158.

The reviews and their folds

p58a, Codex's first review of 9376791f (codex-review-prompts-20261113e/reports/spec-58-9376791fe05f.md, sha256 c455d811…): NOT READY, 15 BLOCKING and 7 SHOULDs. 031f9df8 folded them. p58b re-checked each one: eighteen fixed, and four not fixed (F7, F8, F11 and F14), which are p58b's findings 3, 1, 5 and 7 below.

p58b, Codex's re-review of 031f9df8 (codex-review-prompts-20261113e/reports/spec-58-031f9df853c3.md, sha256 669911dd…): NOT READY, 8 BLOCKING and 3 SHOULDs. 9988b8a5 folds each one. Lines are at 031f9df8.

p58b finding Fold in 9988b8a5
BLOCKING :1264 (row 2), and the claim, HOLD and LANDING passages: the held-by= line is a second read, left out where it fails or finds none Each says "where the register can be read again at once" (lane 1's words); the quick row is lane 1's correction 5
BLOCKING :4241: the quick 69 action does not fit every 69 "Do what it prints": a write's rerun or a read again once the register answers; the whole toolset for a build's refusal; Brett for a mode that disagrees; a read of the lane after request-handoff's wait
BLOCKING :4243: not every 3 prints an id rerun The quick row and the detail say what each end prints: the rerun by its id; the wait for a running owner, or lanes-index status where its record cannot be read; the effect check for a write still being started; the UTC after which an untestable claim may be taken
BLOCKING :4312: files mode's 3 can leave HEAD The exit table's case of a commit another writer rewrote off HEAD is kept
BLOCKING :4556: set-mode index is an exception It is the third of the commands a refused configuration does not end with 2: it writes the mode, exits 0, and notes that the file is still refused
BLOCKING :4605: no configuration has more than the marker check The marker check and the three exceptions every mode has
BLOCKING :4844: guard-bind's lookup is conditional "At most one journal lookup of its own, where its record names a write an earlier attempt left in doubt" (lane 5's words)
BLOCKING, the body (:87): Checkpoint C This body says plainly that T340 describes merge158 and does not wait for the code (lane 3's ruling)
SHOULD :4192: the testing paragraph's release "In the v1.3.0 suite"
SHOULD :4820: the server-side gate The manual does not establish that one is installed: confirm it with Brett before relying on it
SHOULD, the body (:62): a bad url= is no spec/code disagreement Taken out of the disagreements below

p58c, the independent Opus review of f814706f (codex-review-prompts-20261113e/reports/spec-58-f814706f269e-opus.md, sha256 4876cca5…): NOT READY, two BLOCKING places, five SHOULDs and eight NITs. It re-checked each p58b finding and found them fixed, but for two loose ends: the write pointer at :257 (its G3) and the fold words at :4733 (its G6). babb170c folds each finding; lines are at f814706f.

p58c finding Fold in babb170c (code at merge158)
BLOCKING :257, the write pointer: it said every primary 3 prints a LANES_WRITE_ID rerun "3 means the write may not be written, and prints the LANES_WRITE_ID rerun that writes it once or finds it, or means that an identical write still holds it, this run sent nothing, and the message says what to do (the exit table's row 3)". Five ends: the in-doubt write prints the rerun (lanes-edit.sh:10160); the identical write still running prints its id (9044) or sends to lanes-index status (9047); one being started, an effect check (9054); an untested claim, the UTC and the command as given (9083). Row 3 (:1266) is final and unchanged
BLOCKING :4733, and the same claim at :4648–4650 and :4222–4225: "unchanged" left out the register reads The paragraph at :4759–4768 now says the lifecycle scripts read the register through register-text and register-grep in every mode, so a read that fails ends 69 in every mode (the exit table's row 69). :4232–4234 and :4675–4677 name that 69 and point to it, and the start pointer at :283–292 says it of lane-start and lane-end. lane-end loads the register through register-text unconditionally (lane-end:4242–4269) and lane-start through the same verb (:1625–1664), each passing the verb's code on; the verbs end 69 (lanes-edit.sh:32937–32971, 33084–33201); code main's lane-end read the file with awk and took an unreadable one for no row (c9c65cc1 :3785–3806). The delta spec's three exceptions (specs/sql-register/spec.md:60, "nothing else") do not list it: for lane 3 to take into the spec follow-up
SHOULD :4358–4361 and :4253: the being-started end has no instruction for an absent effect The effect check now ends "if it is not, run the same command again, which takes over that write's record if one was left, or writes anew", or the rerun by its own write id where this run had one (lanes-edit.sh:9049–9054). The quick row reads "without the id it printed, where it printed one"
SHOULD :3950: "group- or world-readable" "a configuration that is not a regular file, or that group or others can reach" (_check_private_file, lanes-index:326–337; code main :234–245, :258)
SHOULD, this body's item 3 (:62) Item 3 of "Where the spec and the code disagree" is reworded, with design.md:5756 and operations.md:446 added
SHOULD, this body's lane 4 owed list (:71) "Owed, by lane" below lists what 9988b8a5 changed in lane 4's paragraphs, and names lane 4 for the crash-recovery pointer
SHOULD :4865–4875, the server-side gate: class C No change to the manual. The sentence that the manual does not establish that a ruleset is installed stands; the paragraph stays recorded as class C (no code installs or reads the ruleset)
NIT :1265, :4476–4477, :4495–4498: the holder line is also absent where the second read finds none "and shows the holder" in row 2 and the claim loser's passage, "and shows it" in the HOLD and LANDING passage (lanes-index:14688–14727)
NIT :4399: the refusal belongs to the word form of outage declare The sentence follows the word form; the rollback's own declaration comes after it (lanes-index:5793–5804)
NIT :1280–1284: the 3 quote is not verbatim; the 69 advice predates the quick row's split The quote is lanes-edit.sh:10160's, LANES_WRITE_ID included; the 69 advice follows the quick row
NIT :4251: "it means" omits the build and mode refusals The quick 69 row names both
NIT :4203: a short line Rewrapped
NIT :4258–4303: append-line's classifier 69 is not named Named in the 69 detail (lanes-edit.sh:3246–3250)
NIT, "nothing was written" against the internal-error 69 (lanes-edit.sh:29419–29421, whether the write reached the register is not known) Qualified in the pointer, row 69, the paragraph after the exit table, the quick row and the 69 detail
NIT :1266: row 3 omits the unreadable-record form Not changed: row 3 is final (lane 3's ruling)

Lane 4's two optional points (opensoft/openRepoTools#165 6895000166), each held at merge158 and each in 3370acb5: the running identical write's message always prints the rerun and prints the lookup only where its record holds a call line (lanes-edit.sh:9020–9044), and the claim whose owner cannot be tested names three causes (:9016, 9068–9083).

The next review is not Codex's. Lane 3's Codex account is out of quota until 16 Nov 16:34Z. An Opus delta review of 3370acb5 against f814706f, which checks that each p58c finding is fixed as the report asks and that every new sentence is true against the code, is lane 3's to launch.

The owning lanes' corrections, each taken in its own words

  • Lane 1 (Amendment 22 act 2: the SQL register under lanes-edit.sh — mode=primary writers in one transaction each, the estate switch and lanes/STORE, the write journal and the renderer (one mirror commit per write), exit 69, fail-closed readers, lanes-index import/rollback, SERIALIZABLE claim order, and the agreement tests openRepoTools#165 6889992393, at 9376791f): all six corrections, in 9988b8a5.
    • 1, the keyword url='s exits. set-mode index is added as a third command, for p58b.
    • 2, private files in the code's rule, in its five places. On lane 3's ruling (below), f814706f adds that 0600 and 0400 both pass, and gives the older text of "The store and its configuration" the same rule.
    • 3, where the build's refusal falls while RENDER_GIT_HALF is False, and the TLS rule's two keys.
    • 4, the derived-index pointer.
    • 5, the quick row for claim, HOLD and LANDING.
    • 6, the operator acts and the password file.
    • Its three optional points are taken: outage declare's refusal where the database answers, the holder's line, and the generation. Its note on the testing sentence's first words is not taken (it is lane 2's sentence, and lane 1 calls it optional).
  • Lane 4 (6889006976; 6892324249 confirms the fold of all thirteen and row 3, at 031f9df8): corrections A (:252–253), B (:2087–2089) and C (:3677–3680), in 9988b8a5. Its 6892497601 is a code header fix for line R, with nothing for the manual. Its 6895000166 confirms f814706f for its lines (the 30 hunks of 031f9df8..f814706f, against merge164's code), with A, B and C word for word and row 3 byte for byte (sha256 fe6faace…), and two optional points, taken in 3370acb5.
    • Row 3 is final as folded (lane 3's ruling). It carries T417's primary clause with its design ids dropped, and none of 9988b8a5, f814706f, babb170c and 3370acb5 changes it (:1270 now, ending with no full stop after "take it"; its sha256 is fe6faace… at f814706f and at 3370acb5). Lane 4 brings its T417 branch to these bytes. Lane 4 reports that branch (ec9d84da) gives one conflict hunk against f814706f, on rows 1 and 2, and takes spec#58's side. babb170c changes row 2 again ("and shows the holder") and the exit table's row 69, which lie in or beside that hunk, so lane 4 reads those bytes too.
    • T430: lane 4 asks again (6892324249) that the lane-end --sweep-checkouts NOTED 3) fix join T430's scope. That is a tasks.md matter for a later follow-up. Until the fix lands, the manual's clause on it describes the code as it is, and must be revised when it lands.
  • Lane 5 (6889285198 at 9376791f; 6892410611 confirms the fold of its eight texts, two of them reworded, at 031f9df8): its NIT on the none row and two optional points (the guard's quick row, and the first way out), in 9988b8a5.
    • Its needed change at :4361 (:4408 now), the guard's quoted refusal, is for when line R takes T507's f1219f75, and is not taken yet: line R's merge158 prints the text the manual quotes (lanes-edit.sh:21033), and T340 describes merge158. Its two optional points and its NIT hold at merge158, and are in.
  • Lane 2 (6889088527, 6889498013; 6892342089 confirms the fold, with no correction): the twelve lines, now opening "In the v1.3.0 suite" for p58b's SHOULD.

Where the spec and the code disagree

Spec lines are at main; code lines are at merge158. The manual follows the code in each.

  1. The guard's two ways out (lane 5): the spec's SHALL (register-service spec.md:184) asks for "wait"; the code prints lanes-index status, or lanes-index rollback on Brett's word. The manual quotes the printed pair and also says to wait. Lane 5 changes the code (T507's f1219f75), not the spec, and the manual's quote follows once line R takes it.
  2. The marker's contents (lane 1): the delta spec lists four items (specs/sql-register/spec.md:34); the code writes five lines, adding lanes-tree=, as feature 007's spec.md and design.md do. Lane 3 has ruled: the code's five lines stand, with lanes-tree= as the fifth. The delta spec gains that phrase in lane 3's next spec follow-up. The manual already describes all five.
  3. Private files (lane 1): the code refuses a file that is not regular, or that group or others can reach, so 0600 and 0400 pass (_check_private_file, the same at code main and at merge158). contracts/register-cli.md:284 says "a file that group or others can read" and names no file type. contracts/config.md's R1 says "the file readable by group or others, or not a regular file". Both are narrower than the code, which refuses any group or other permission bit (st_mode & 0o077), so a 0620 file is refused by the code and by neither text. R1 also ends "it must be 0600" (:123), as R6, R11, the key table, design.md:5756 ("a key, line or 0600 check refused"), operations.md:446 ("readable, 0600") and two lines of the delta spec (specs/sql-register/spec.md:900, :907) say exactly 0600. Lane 3 has ruled: the code stands. A regular file with no group or other permission bit passes, so 0600 and 0400 both pass, and the manual says so (f814706f), in the mode=primary keys and in the older text of "The store and its configuration" (its passfile= line and its refusals, :3951 and :3961 now; babb170c words the configuration's own clause at :3958 the same way), which describes code main's indexer and its same check. The spec's R1, R6, R11 and key table follow in lane 3's next spec follow-up, and so do contracts/register-cli.md:284, design.md:5756 and operations.md:446.
  4. The rollback's last step (lane 3): the delta spec says it clears mode=primary everywhere; the code prints set-mode index for each workstation, a files-mode write and outage clear.
  5. A refused configuration is 2, with three exceptions, not two (p58c): contracts/exit-codes.md:46 fixes two, 3 on journal --write-id and 1 under register read --for guard. tasks.md:2067 (lane 1's T120-fu1, 6770867776) and the code give set-mode index a third: it writes the mode= line, exits 0, and notes on stderr that the file is still refused (lanes-index:1252–1266, 1371). The manual names all three, under "What changes for a lane" (:4607–4619). The table's form 2 row (:95) and form 4 row (:102) both give the guard's 1, as the code does (lanes-index:7299–7309, where forms 2 and 4 are the guard's), so form 4 is no disagreement.
  6. The register reads' 69 (p58c's second BLOCKING place): specs/sql-register/spec.md:60 lists three exceptions to "nothing changes where the marker is absent" and says the exit codes are unchanged; the code adds a difference in every mode, that lane-start and lane-end read through register-text, so a read that fails ends 69 where code main's lane-end took an unreadable register for no row. The manual states it (babb170c). For lane 3 to rule, for the delta spec's next follow-up.

Closed or not disagreements: the real-engine fixture (closed at merge158; lane 2 agrees); the first lane-transcript arm and release's seq (lane 4: the spec and the code agree). A keyword url= is no disagreement either: the contract and the code agree, and the manual now follows both.

Who confirms which paragraph

Paragraph Owning lane At 3370acb5
69, 75, 3 and the rerun; commit and hand edits; the claim's seq, the claim loser's 2, HOLD and LANDING; lane-start's read arms; the exit-table rows and clauses; the writer's mode ask, marker check and acts; the write, start, object-log, handoff and hand-edit pointers lane 4 031f9df8's fold confirmed (6892324249), with A, B and C taken; f814706f confirmed for its lines (6895000166), with two optional points, taken in 3370acb5; owed: see "Owed, by lane"
The guard in an outage; who, history and lanes; the readers' marker check and answer 2's bind; which reads may use the mirror; the swap, bind and name-guard pointers lane 5 031f9df8's fold confirmed (6892410611); owed: see "Owed, by lane"
status and outage declare; the register's refusals and order; the keyword url=; the mode keys, refusals and build constant; the switch and lanes/STORE; the journal; import, cutover and set-mode; the derived-index pointer lane 1 confirmed at 9376791f with six corrections (6889992393), all taken; owed: see "Owed, by lane"
The testing paragraph in "The tests' promise" lane 2 confirmed (6892342089); owed: see "Owed, by lane"
The section's introduction and quick table; the mirror and the truth verbs; the renderer and the divergence ways out; the server-side gate; rollback and the cutover push; wip init; the files-mode 3 sentence lane 3 lane 3's Opus delta review of 3370acb5 (p58d, under "Landing")

Confirmed at 3370acb5, by lane. Every owning lane has confirmed this head:

  • Lane 4 (6895802258): its lines, with N1 and N2 taken word for word, and A, B, C and row 3 byte-identical.
    • The earlier owed list did not name two of lane 4's changed paragraphs: the start pointer at :283–292, and the paragraph after the exit table at :1284–1295.
    • Lane 4 confirms that its confirmation covers them, in 6898953869: "yes. 6895802258 covers both paragraphs". The start pointer is its hunk 2, and the paragraph after the exit table is its hunk 5.
    • Lane 4's seven pointers and the crash-recovery pointer are among its lines.
  • Lane 5 (6896040948): every item the body said lane 5 owes, with two optional wording points.
  • Lane 2 (6896060949): its lines, the "In the v1.3.0 suite" prefix and the rewrap.
  • Lane 1 (6896582354): round 3, with three optional points. Lane 1 confirms that this covers babb170c's reordered outage declare sentence at :4422–4428, in 6899134636: "yes". Its check read that sentence at :4424–4425, against lanes-index at merge166.
  • Lane 3: the introduction, the quick table, the mirror, the renderer, the gate, rollback and the cutover push, wip init, and the files-mode 3 sentence. These are covered by its Opus delta review, under "Landing".

The ten pointers added in 031f9df8, for the lanes to confirm:

Pointer Proposed owner
Layout lane 4
The sed -i hazard lane 4
One binding per lane: the request and its wait lane 4
One binding per lane: binding as a deciding read lane 5
The state-cell migration lane 4
Renaming a lane lane 4
A closed or dormant lane: retire-rows, archive-rows and lane-end --retire-dormant lane 4
A closed or dormant lane: lanes and lanes --closed lane 5
Crash-consistent lane recovery lane 4 (it carries lane 4's C), with lane 5
Managed-owned lanes lane 5
Retiring a lane's worktrees, and the estate report's read lane 4
Adopting a workstation (wip init) lane 3

Checks at 3370acb5

  • Counts: 4,869, 5,660, 5,785, 5,832, 5,833, 5,863 and 5,865 lines along the commits (v3 of this body said 5,831 for 9988b8a5; it is 5,832). c525d53d..3370acb5 is 1,013 added and 17 removed, f814706f..3370acb5 102 and 70 (babb170c 93 and 63, 3370acb5 9 and 7).
  • T340's verify exits 0 from the repository root. T341's three phrases ("socket API", "readable by every lane process", "rollback --hold-marker") occur 0 times.
  • git diff --check is clean for babb170c..3370acb5, for f814706f..3370acb5 and for c525d53d..3370acb5. The file ends in a newline and holds no CR. The added text has no task id, no lane number, no host-absolute path and no review chatter, and the manual nowhere says "nothing pushed".
  • openspec 1.13.1, openspec validate --all --strict: 9 passed, 0 failed at the head, and 17 passed, 0 failed on the merged tree (main gained a v1.3 delivery change).
  • The code leg's exit-3 rule (taken from tests/test_repo_hygiene.py) finds nothing in this manual's row 3 at merge158, with its four causes, or at code main c9c65cc1, with its one.
  • The code leg's tests that read the manual, run at merge158 through tests/run.sh with the spec root at the head named: at f814706f (ended 12:29:14Z) and at babb170c (ended 13:27:44Z) the directory-precedence, exit-3, no-carry and fork-act tests passed, the bare-lanes test skipped, since it reads the assembly root's README.md and a standalone checkout has none, and the host-absolute-path scan failed, naming five files under openspec/changes/add-sql-register/ (alignment-review, council-review, design, operations and test-plan) and no line of the manual, as before T340. The same run at 3370acb5 is queued behind another lane's run; lane 3 posts its result. The 16 has/hasnt assertions of tests/test_lane_helpers.sh that read the manual (the session-start quotes, the bare-lanes sentences and the --retire pair) pass at 3370acb5, replayed by script.

Landing

  • Under Brett's standing word. His answer of 2026-11-15T11:48:56Z (lane 3's post 6893886125) brings spec#58 under Q2. Its text: "Each lands by merge commit once its review is clean and every owning lane confirms its parts, as the other spec PRs do."
  • Not waiting for Checkpoint C: T340 describes merge158's code (above).
  • The review of this head: READY. It is Claude Opus 5.5's delta review p58d of 3370acb5 against f814706f (record 6898939935 on this PR; report spec-58-3370acb57e7a-opus.md, sha256 89d9e0ca…).
    • Both of p58c's BLOCKING findings are fixed, and are true at merge158.
    • Its SHOULD on the internal error's rerun (:4323–4324, row 69 at :1279, and :4272) goes to lane 3's follow-ups 4, as lane 3 rules and lane 4 agrees (6898953869), and so do its manual NITs. They go with lane 4's T430 OLD/NEW.
    • Its two SHOULDs on this body are fixed here: item 3, and the confirmations above.
  • Leaving draft: every confirmation above is in, the ten pointers' included. So lane 3 marks the PR ready, and lands it by merge commit.
    • Lane 3 has ruled on lane 1's two disagreements (above).
    • Lane 3 has ruled on disagreement 6 (6895515151): the code stands, and the delta spec's spec.md:60 gains the fourth difference.
    • Their spec changes follow in lane 3's next spec follow-up.
  • Order: T341, part 2 in the same file, waits for this PR (tasks:1702), and a file's PRs land one at a time under Rule 6's HOLD. T342's release notes have landed (spec#55). Row 3 is final and is T417's text, so T417's spec PR and this one land in either order.

Part of opensoft/openRepoTools#165.

🤖 Generated with Claude Code

…t/openRepoTools#165)

Adds, in docs/README-lanes.md only:

- "## The SQL register", between "The derived index (Amendment 14)" and
  "Retiring a lane's worktrees". It opens with "### What changes for a lane",
  which covers T340's twelve items in its order: 69 and what to do; 75; 3 and
  its LANES_WRITE_ID rerun; the guard in an outage and its two ways out;
  `commit` and hand edits refused; the files as a mirror that lags and the
  verbs that give the truth; the claim's seq; the claim loser's 2 for 7; the
  later HOLD or LANDING writer's code; lane-start's seven read arms; the
  keyword-form `url=`; the exit table's new rows. Then `mode=primary`, "The
  switch and `lanes/STORE`", "The journal and the renderer", "Which reads may
  use the mirror" and "Import and rollback".
- A pointer paragraph, in the nine sections that describe a write or a read,
  saying where mode=primary changes them: "How to write to the registry",
  "Starting and ending a lane", "The object log (Amendment 7)", "Swap and
  restart", "Bind and list", "The name guard and the lock", "The handoff",
  "The derived index (Amendment 14)" and "Hand edits".
- The derived-index section's "No test creates a real database" corrected to
  what holds at line R's merge105: the index's tests use SQLite files and a
  stand-in `psql`, and the real-engine run is the `verify` workflow's, which
  sets PG_BIN and OPENREPOTOOLS_REQUIRE_PG for a fixture that is not in the
  suite yet.
- The exit table: feature 007's clauses in the rows for 1, 2, 3, 7 and 9, new
  rows for 69 and 75, and a paragraph after the table.

T341's part 2 (roles and logins, the secret's reach, the socket API, the
runbook for acts 3 and 4 and the rollback) is left alone. No line cap on the
manual exists in either leg's checks.

Sources, spec leg at c525d53: specs/007-sql-register/tasks.md:1672-1699
(T340), :1700-1707 (T341, untouched); spec.md:1120 (FR-018), :1467 (FR-062);
contracts/exit-codes.md:26-31; contracts/config.md:29-52, :117-143;
openspec/changes/add-sql-register/specs/sql-register/spec.md:9-72 (mode, the
switch, the marker), :86-145 (the build's refusal, the gate, wip init),
:147-314 (writes, 69, 75, in doubt), :315-352 (handoffs, the bind), :382 (the
claim's seq), :391-577 (the journal, the renderer, status), :578-715 (reads,
lane-start's arms, lane-handoff), :716-849 (import, cutover, rollback),
:913-1043 (claim order, HOLD, LANDING and its expiry);
openspec/changes/add-sql-register/specs/register-service/spec.md:183-196 (the
guard's refusal), :197 (a declared outage).

Code, line R's merge105 73a6b7dd: lanes-edit.sh:3534-3539, :3966, :4462,
:6858-6865, :7621, :8787, :9316-9319, :11251, :21024-21026, :30899-30907,
:31368-31434; lanes-index:132-144, :365, :420, :17398-17400, :20790,
:21853, :22188-22194, :23544; lane-start:1306-1323, :1430, :1769, :1780,
:1846, :2789, :3852, :4176, :5183-5235.

Where the spec and the code disagree, the manual describes the code. The six
disagreements are in the PR text.

Verify, T340's command from the spec tree's root: exit 0, and none of T341's
three phrases occurs. The code leg's tests that read the manual, with this
tree as the spec root (tests/run.sh -k 'repo_hygiene or lane_helpers'):
before the edit 286 passed, 2 failed (the exit-3 documentation test, and the
host-absolute-path scan, which names five openspec files), 14 skipped; after
the edit 287 passed, 1 failed (the host-absolute-path scan again, on the
same five openspec files, none of them the manual), 14 skipped, in 1:23:15,
ended 2026-11-14T19:11Z, with the manual unchanged from start to end of the
run (sha256 a27f0c7e...622f). The exit-3 documentation test, which failed
before, now passes: the edit adds no failure and fixes one. The code tree
under test was merge105 73a6b7dd, as in the run before the edit.

Checked against the follow-up's head, #48 at
d1a66b2: docs/README-lanes.md is the same blob there, at spec#17's head
33eb082 and at spec main 68796b9 (28359ee), so this commit's change
applies to each unchanged. The keyword-form `url=` text names `postgres://`
beside `postgresql://`, as commit 22 of that follow-up rules.

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Review the revised exit-code table and its companion explanation first, since these define what primary-mode writes and reads promise to callers.

  • docs/README-lanes.md L1268-1300

Read the new SQL register section as a whole to understand lane-facing behavior, primary-mode configuration, the switch, journal, renderer, read policy, import, and rollback.

  • docs/README-lanes.md L4222-5035

Then check the manual’s cross-references and local clarifications that integrate primary-mode behavior into existing lane, lifecycle, handoff, guard, index, worktree, and hand-edit guidance.

  • docs/README-lanes.md L248-265, L3845-3856, L4206-4221 (+23 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap
brettheap changed the base branch from l3-007-followups-2 to main November 15, 2026 01:33
brettheap and others added 5 commits November 15, 2026 05:10
…o "The SQL register" (part of opensoft/openRepoTools#165)

Folds, in docs/README-lanes.md only, the first full Codex review of
#58 at 9376791 (p58a, NOT READY, 15 BLOCKING)
and the corrections that lanes 2, 4 and 5 gave in their own words on
opensoft/openRepoTools#165. The text is checked against line R's merge158,
7e11b771, and spec main.

The review's BLOCKING findings, each folded:

- 69 is not always "nothing written": request-handoff's wait can end 69 with
  its request standing. Fixed at the write pointer, the quick table, the 69
  heading, row 69's head and the paragraph after the table, with lane 4's
  words where it gave them.
- The guard maps no writer's 69, 75 or 3 to 2: it has its own bounded read,
  and answers from the mirror under a declared outage.
- The name guard's answer 2 is quoted as the guard prints it, "adjust the
  lane to session ..." (lane 5's correction 4).
- The derived-index tests' paragraph now describes the suite as merge158
  has it (lane 2's twelve lines, #165 6889498013).
- Pointers for mode=primary in the ten sections the review named: Layout,
  the sed -i hazard, One binding per lane, the state-cell migration,
  Renaming a lane, closed or dormant lanes, crash-consistent recovery,
  managed-owned lanes, retiring a lane's worktrees and adopting a
  workstation; and the one-commit statements in the object log, the
  handoff request and the rename now say what primary does instead.
- The quick table: 75's second cause, 3's ends where nothing was sent, and
  exit 2 from claim, HOLD or LANDING as a refusal with the holder as one
  reason.
- 69 is a snapshot that fails or a commit the database refuses; a failure
  after the commit call is in doubt, 3.
- The detached bind stops on any start-record code but 0.
- A keyword-form url= is refused when lanes-index loads the file; what a
  caller then does is its own (the mode query falls to files mode, a
  refused lookup leaves a write in doubt).
- Private files are owner-only (0600 and 0400 both pass), as the parser
  checks them; set-mode keeps the file's own mode bits.
- A divergence way out renders after its entry; where the render fails the
  entry stands, the command exits 0, and status shows the lag.
- act-begin and guard-bind are in the "none" class but each makes its own
  call: act-begin's failed snapshot is 69.

The review's SHOULDs on the manual, each folded: the section says it ships
in v1.3.0; the build refusal's remedy is the whole toolset by its host's
route; the first rollback instruction names the operator lane and its
checkout; the disaster procedure is marked as part 2's runbook, still to
come; the server-side gate is optional and provisioned outside the toolset;
and "none holds a secret" is gone, leaving the secrets' reach to part 2.

The owning lanes' corrections, taken in their own words:

- Lane 4 (#165 6889006976, restated in 6889431216): all thirteen, at
  :239-240, :4199-4200, :4250-4251, :4306-4308, :4426, :4446-4449,
  :4506-4507, :4511, :4634-4635, row 69 (two), rows 2 and 64, and
  :1264-1267; its optional row-69 head; and T417's primary clause in
  row 3, as tasks:1230 says, with its design ids dropped (D8, FR-028, F3,
  ERR-38, DEC-25, Y:5220, and "D7's deadline" read as "this write's
  deadline").
- Lane 5 (#165 6889285198): all five, at :4329-4331, :4594, :4754,
  :2181-2183 and :4211; and two of its optional points, :1604's
  "lane-start's bind" and guard-bind in the "none" row.
- Lane 2 (#165 6889088527 and 6889498013): the twelve lines for
  :4130-4136, which replace its first three-line NEW.

Code, line R's merge158 7e11b771: lanes-edit.sh:777-866 (69, and a
connect failure at the commit being in doubt), :6454-6533 (reg_class_of),
:10011-10023 (pw_lookup's doubt for a refused configuration), :25499-25520 (the
managed read's local half, skipped on primary), :30659-30695 and :30914-30918
(rename-lane's handoff commit after COMMIT, and its register seq),
:32040-32170 (request-handoff on primary);
lane-start:5135-5260 (start-record's arms); lanes-index:326-337
(_check_private_file), :405-422 (the URL parser), :590-601, :664-672,
:730-738, :1166-1200 (set-mode's write), :19300-19333 (a way out's
render); lane-worktrees:803-815, :1025-1045 (register-grep);
openRepoTools:4728-4870 (wip init's marker rule); tests/pgcluster.py:72-86
and .github/workflows/tests.yml:88-91 (the fixture and the switch).

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…The SQL register" (part of opensoft/openRepoTools#165)

Folds, in docs/README-lanes.md only, Codex's re-review of
#58 at 031f9df (p58b, NOT READY, seven BLOCKING
in the manual, one in the PR text, three SHOULDs) and the corrections lanes
1, 4 and 5 gave on opensoft/openRepoTools#165 since. The text is checked
against line R's merge158, 7e11b771.

The re-review's BLOCKING findings in the manual, each folded:

- Row 2 and the claim, HOLD and LANDING passages promised a held-by= line
  that a second read gives only where it succeeds. Each now says "where the
  register can be read again at once" (lane 1's words), and the quick row
  is lane 1's correction 5.
- The quick 69 row now says to do what the 69 prints: a write's rerun or a
  read again once the register answers, the whole toolset for a build's
  refusal, Brett for a mode that disagrees, and a read of the lane after
  request-handoff's wait.
- The quick 3 row, and the detail of the identical-write ends, now say what
  each end prints: the rerun by its id; the wait for a running owner, or
  lanes-index status where its record cannot be read; the effect check for a
  write still being started; the UTC after which an untestable claim may be
  taken. Lane 4's "Two other ends" is kept.
- Files mode's 3 keeps the exit table's case of a commit another writer
  rewrote off HEAD.
- set-mode index is the third command a refused configuration does not end
  with 2: it writes the mode, exits 0 and notes that the file is still
  refused. It joins lane 1's two in lane 1's correction 1.
- With no configuration, the writers and readers differ from v1.1.0's by the
  marker check and the three exceptions every mode has.
- guard-bind makes at most one journal lookup, where its record names a
  write an earlier attempt left in doubt (lane 5's words).

The SHOULDs: the testing paragraph opens "In the v1.3.0 suite"; the
server-side gate says the manual does not establish that one is installed.
The third SHOULD is on the PR text.

The owning lanes' corrections, taken in their own words:

- Lane 1 (#165 6889992393): correction 1, the keyword url= (with set-mode
  index added as a third command); correction 2, the code's rule for private
  files, in its five places; correction 3, where the build's refusal falls
  while RENDER_GIT_HALF is False, and the TLS rule's two keys; correction 4,
  the derived-index pointer; correction 5, the quick row for claim, HOLD and
  LANDING; correction 6, the operator acts and the password file; and three
  optional points: outage declare's refusal where the database answers, the
  holder's line, and the generation.
- Lane 4 (#165 6892324249): A at :252-253, B at :2087-2089 and C at
  :3677-3680. Its 6892497601 is a code header fix, with nothing for the
  manual.
- Lane 5 (#165 6892410611): the NIT on the none row, and two optional
  points, the guard's quick row and the first way out. Its words for after
  T507's f1219f75 reaches line R are not taken: line R holds merge158's
  text. Its earlier 6890007283 is superseded by its confirmation of the
  fold's wording.
- Lane 2 (#165 6892342089) confirms its words with no correction.

Code, line R's merge158 7e11b771: lanes-edit.sh:9035-9083 (the
identical-write ends), :22727-22760 (guard-bind's lookup); lanes-index:
1228-1266 and :1296-1371 (set-mode index), :14688-14727 (the holder's line).

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lane 3's ruling (part of opensoft/openRepoTools#165)

Lane 3 has ruled on lane 1's correction 2, the disagreement between the
spec's 0600 and the code's rule: the code stands. A regular file with no
group or other permission bit passes, so 0600 and 0400 both pass, and the
manual says so. The spec's R1, R6, R11 and key table follow in lane 3's next
spec follow-up.

The code is _check_private_file, the same body at code main c9c65cc1
(lanes-index:234-245) and at line R's merge158 7e11b771 (:326-337): a file
that is not regular is refused, and so is any group or other bit. It guards
the configuration file, passfile=, reader_passfile=, register_passfile= and
render_key=.

In docs/README-lanes.md only:

- "mode=primary" opens with the rule: a regular file with no group or other
  permission bit (0600 and 0400 both pass), and the register_passfile= line
  says "(0600 or 0400)".
- The older text of "The store and its configuration", which lane 1 noted
  T340 had left: passfile= takes "with no group or other bit", and the
  refused list "a password file that is not a regular file, or that group
  or others can reach (0600 and 0400 both pass)", in place of "not 0600".
  That text describes code main's indexer, which has the same check.

Lane 3's ruling on the marker, that the code's five lines stand with
lanes-tree= among them, needs no manual change: the section lists all five.

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…opensoft/openRepoTools#165)

An independent Opus review of f814706 found two BLOCKING places and
a few SHOULDs and NITs. This commit folds each one into
docs/README-lanes.md, and nothing else. Every new sentence was read against
line R's merge158 (7e11b771) first; lines below are in that tree unless named.

BLOCKING, the write pointer (:257-258 before this commit): it said a primary 3
"prints a LANES_WRITE_ID rerun that writes it once or finds it". Five ends are
3 on primary: the in-doubt write prints the rerun (lanes-edit.sh:10160), but an
identical write that is still running (9044, with its id; 9047, with its record
unreadable, which sends the reader to lanes-index status), one being started
(9054, an effect check and then a plain rerun) and an untested claim (9083, the
UTC and the command as given) each sent nothing. The pointer now says 3 means
the write may not be written and prints the rerun, or means that an identical
write still holds it, this run sent nothing, and the message says what to do
(the exit table's row 3, which this commit does not change).

BLOCKING, the "unchanged" claim (:4733, :4648-4650, :4222-4225): at line R
lane-end loads the register through register-text in every mode
(lane-end:4242-4247, called unconditionally at :4269) and passes the verb's
code on; so does lane-start (:1625-1641, :1662-1664). register-text and
register-grep end 69 on a read that fails, in every mode (lanes-edit.sh:
32937-32970, 33084-33201), where code main's lane-end read the file with awk
and took an unreadable register for no row (c9c65cc1 lane-end:3785-3806;
awk prints nothing and exits 2 on an unreadable file). The three places now
add that difference to the marker check and the three exceptions, and the
:4733 paragraph also names the sweep's handling (lane-worktrees:1334-1343,
6063-6072: any exit but 0 and 1 is a register it could not read, and nothing is
deleted on it). At :280 the reads are said to go through the verbs in every
mode.

SHOULD, the being-started end (:4358-4361, :4253): the effect check said what to
do where the effect is there and not where it is absent. It now says to run the
same command again, which takes over that write's record if one was left, or
writes anew, or the rerun by its own write id where this run had one
(lanes-edit.sh:9049-9054). The quick row reads "without the id it printed,
where it printed one".

SHOULD, the configuration (:3950-3951): "a configuration that is not a regular
file, or that group or others can reach", as _check_private_file has it (code
main lanes-index:234-245 and :258; line R :326-337 and :671).

NITs:

- The held-by line is also absent where the second read finds no holder
  (lanes-index:14688-14727, "None where the read fails or finds none"): row 2,
  the claim loser and the later HOLD or LANDING say "and shows the holder",
  "and shows it".
- A declared outage: the refusal where the database answers belongs to the
  word form (lanes-index:5793-5804), so the sentence follows that form and the
  rollback's own declaration comes after it.
- The 69 advice in the paragraph after the exit table follows the quick row's
  split, and the exit-3 quote is verbatim from lanes-edit.sh:10160, with
  LANES_WRITE_ID in it.
- The quick 69 row also names the build's refusal and the mode refusal.
- The testing paragraph's short line is rewrapped.
- append-line's classifier 69 is named in the 69 detail (lanes-edit.sh:
  3246-3250, which is also row 69's clause).
- "Nothing was written" is qualified for the one internal-error 69 (lanes-edit.sh:
  29419-29421: whether the write reached the register is not known, and a
  write already made reads as found when the command is run again), in the
  pointer, the exit table's row 69, the paragraph after it, the quick row and
  the 69 detail.

Not changed: row 3 (final), and the server-side gate paragraph, which stays a
claim of the delta spec that no code installs or reads.

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e SQL register" (part of opensoft/openRepoTools#165)

Lane 4 confirmed the manual at f814706 for its lines and sent two optional
NITs on the exit-3 detail (opensoft/openRepoTools#165 6895000166). Each was read
against line R's merge158 (7e11b771) first and holds there. In
docs/README-lanes.md only:

- An identical write still running, with its write id: the message always
  prints the rerun, and prints the lookup only where its pending record holds a
  `call` line (lanes-edit.sh:9020-9044: the rerun alone where no `call` line
  gives the lookup its `--not-after` number, and "look it up (...), or run the
  rerun" where one does). The paragraph now says to run the printed rerun,
  which finds the write or writes it once, and that the lookup settles it too
  where the message prints one. It had said to look the write up or run the
  rerun, as if the lookup were always there.
- A claim whose owner cannot be tested here: the three causes the code names
  (lanes-edit.sh:9016, 9068-9083: the claim names no pid or cannot be read, its
  pid lives with no start time, or it is from another host or container), in
  the words row 3 of the exit table already uses, in place of "another host or
  container, or no pid on the claim".

The two edits sit beside the being-started paragraph and the quick row's rule
that the previous commit wrote, and read with them: the rerun by its id where
one was printed, the effect check where the write is still being started, the
UTC for a claim.

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane openRepoTools-3: exact-head review record for spec#58 (this PR, opensoft/openRepoTools-spec PR 58, T340 part 1), round 3, by Opus as Brett's waiver names

  • The reviewer: Claude Opus 5.5 (claude-opus-5-5). It is an independent exact-head delta review, made in place of Codex under Brett Heap's waiver of 2026-11-15T11:48:56Z ("Lane 3 runs an independent Opus 5.5 exact-head review in its place"), quoted in Amendment 22 act 2: the SQL register under lanes-edit.sh — mode=primary writers in one transaction each, the estate switch and lanes/STORE, the write journal and the renderer (one mirror commit per write), exit 69, fail-closed readers, lanes-index import/rollback, SERIALIZABLE claim order, and the agreement tests openRepoTools#165 comment 6893886125. This is a Claude review, not a Codex local-review receipt.
  • What was reviewed:
    • head 3370acb57e7a54caedf259d2968da7aa11fb9d80;
    • as a delta from f814706f, which p58c found NOT READY, with two BLOCKING findings;
    • against the authority c304e387 and line R's merge158 7e11b771, with spec main at f8c1d3da.
  • The verdict: READY.
    • p58c's findings:
      • both of its BLOCKING findings are fixed, and true at merge158: P1, the exit-3 pointer; and P2, the register reads' 69 in every mode;
      • P3, P4, P6, P8a to P8h, N1 and N2 are fixed;
      • P5 is partly fixed;
      • P7 and P8c are left alone, as they ask.
    • SHOULD 1, lane 4's lines: docs/README-lanes.md:4323–4324, with row 69 at :1279 and :4272–4273.
      • The internal error's "run it again" holds only while the write's pending record is under 15 minutes old (lanes-edit.sh:8545–8547 and 8635–8641 at merge158). After that, a plain rerun writes anew under a new id.
      • Lane 3 rules: it goes to follow-ups 4, with lane 4's T430 OLD/NEW. The words: "within 15 minutes … look the write up first with lanes-index status" at :4323–4324 and :1279, and "but for the internal error below" at :4272.
      • Lane 4 may also want the code's own message (lanes-edit.sh:29420) to say the same.
    • SHOULDs 2 and 3, on lane 3's body:
      • item 3 calls contracts/register-cli.md:284 and R1 "the same" as the code;
      • the owed lists missed three changed paragraphs.
      • Both are fixed in body v5d, which is applied before the PR leaves draft.
    • NITs: the manual's go to follow-ups 4, and the body's into v5d.
  • What was checked:
    • identity and the diff: six commits, docs/README-lanes.md only, +1,013 −17, and diff --check clean;
    • the mechanical checks:
      • T340's verify passes, and T341's phrases are absent;
      • the merge onto both mains is clean, as trees 1a81c90a and 164f6061;
      • openspec validates strict on the head (9 passed) and on the merge (17 passed);
    • the delta: all 21 hunks map to a finding. The tables were checked by script: 28 tables, 272 rows, and exactly rows 2 and 69 of the exit table and rows 69 and 3 of the quick table changed. Row 3 is byte-identical;
    • every new sentence against the code at merge158: the five exit-3 ends, the internal-error 69, register-text and register-grep, the lane-start and lane-end loads, lane-worktrees, _check_private_file at both refs, outage declare and the holder line;
    • the code leg's rules on the manual: applied at code main and at line R, all passing, with the 16 shell assertions.
  • The report: lane 3's codex-review-prompts-20261113e/reports/spec-58-3370acb57e7a-opus.md, sha256 89d9e0cace711f520741aa3f5e8be3f66250a0318e9f0de13812efd057cf0037. Its transcript's assistant messages are all claude-opus-5-5.
  • Lane 3 accepts this review for this exact head.
    • The confirmations: lanes 1, 2, 4 and 5 have confirmed 3370acb5 (6896582354, 6896060949, 6895802258 and 6896040948).
    • The last two lines: lane 3 asks lane 4 and lane 1 for one line each, on the three paragraphs that the old owed list did not name. Lane 3 then applies body v5d, marks the PR ready, and lands it by merge commit (Brett's Q2).

@brettheap
brettheap marked this pull request as ready for review November 15, 2026 18:29
@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 6 days and 20 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit d6cc457 into main Nov 15, 2026
1 check 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.

1 participant