Repository navigation
The no-estate sweep skips a root without the Speckit git overlay instead of counting it as a refusal - #7
Conversation
…ead of counting it as a refusal (#6) Brett Heap's RULING of 2026-09-10 on opensoft/openRepoShape#92, verbatim: "rule on the #92 open item: skip roots without the overlay." Bare `park` — no <Name>, no --repo, no estate around the cwd — has parked EVERY estate under the projects directory since openRepoShape #91/#93. On a real workstation that sweep could only ever exit 1: four roots there carry no Speckit git overlay, so each one's own `make park` refuses with exit 2 (`needs the Speckit worktree overlay; install it with: setup-openspeckit`), and the sweep counted every one of them as a refusal. A root nobody ever installed the overlay in is not a park that FAILED; it is a park there was never anything to run — and four false failures hid the one summary line a person reads. In the SWEEP ONLY, a STANDALONE root is now asked for the overlay before anything runs in it, by the same test its Makefile makes (`test -x .specify/extensions/git/scripts/bash/park.sh`, which is `templates/assembly-root/Makefile`'s own `$(PARK)` guard, so the two answers cannot disagree). Absent: one line in that estate's block — SKIPPED (no Speckit overlay; install it with: setup-openspeckit) — a `skipped` tally, nothing run, and no effect on the exit code. The summary gains a clause only when there is something to say, so #91's line is byte-identical on a workstation whose roots all carry the overlay: park: 3 estate(s) parked, 0 refused or with findings, 4 skipped (no overlay) The code is computed over the estates that RAN: 0 when every one of them parked, 1 when any refused or was left with findings. Every estate skipped is exit 0 and three lines that say so and name `setup-openspeckit`. `--dry-run` says `would skip (no Speckit overlay; …)` and creates nothing. A FAMILY HOLDER IS NEVER PRE-CHECKED, and `has_speckit_overlay`'s comment says why: its Makefile makes no such test — it fans out with `siblings.py --make park`, and each member's own root refuses for itself and is reported by the holder. Pre-checking the holder would skip a whole family for want of a file its Makefile never reads. ONLY THE SWEEP SKIPS. `park <Name>`, `park --repo` and the walk-up inside an estate are untouched: a person who NAMED a root still gets the Makefile's exit 2, relayed, which names the installer. `resume` does not change — the ruling is park-only — and the shared estate resolver `park` and `resume` carry byte for byte is not touched either. Six tests in the #91 style: a sweep over two roots with the overlay and two without; every estate skipped; a skipped root beside a REAL refusal (exit 1, both lines); `--dry-run`; the same overlay-less root swept and then NAMED, against the real `templates/assembly-root/Makefile`, so the two answers are seen coming apart on one directory; and a family holder that is still run. The three #91 sweep tests now build their standalone root with `sweepable_project` — the overlay stub is what a park-able root has, and `probe_project` without it is now exactly the root the sweep skips. 140 -> 147 tests. README.md 172 -> 178 lines and AGENTS.md 90 -> 95, both raised in a dated docstring entry naming the rule the lines bought. Closes #6 Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
@codex review |
There was a problem hiding this comment.
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 3 hours and 18 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Reviewer's GuideThe PR updates bare park sweeps to identify standalone roots lacking the Speckit overlay before execution, report them as actionable skips with exit code 0 impact, while preserving family-holder handling and explicit-root refusal semantics. Tests, documentation, and hygiene checks are expanded to lock down the distinction and output. Flow diagram for the park sweep overlay decisionflowchart TD
A["bare park sweep discovers root"] --> B{Standalone root?}
B -->|No| C["run family holder park"]
B -->|Yes| D{"test -x .specify/extensions/git/scripts/bash/park.sh"}
D -->|No| E["print skipped; name setup-openspeckit"]
D -->|Yes| F["run root park"]
C --> G["record parked, refused, or findings"]
F --> G
E --> H["increment skipped; exclude from exit code"]
G --> I["summarize sweep and compute exit code"]
H --> I
Flow diagram for explicit park versus sweep behaviorflowchart LR
A["park <Name> or park --repo"] --> B["make park"]
B --> C["overlay absent: refusal exit 2"]
D["bare park sweep"] --> E["pre-check standalone root"]
E --> F["overlay absent: skipped exit 0 impact"]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
The behavior change is narrowly scoped to the bare sweep, is well-covered by new tests, and documentation/hygiene checks were updated to match.
Pull request overview
This PR updates the park “no-estate” sweep behavior so that standalone roots missing the Speckit git overlay are skipped (with a clear per-estate line and summary tally) rather than being treated as refusals that fail the overall sweep, while preserving the existing behavior for explicitly named estates.
Changes:
- Add a sweep-only overlay presence pre-check for standalone roots; print “SKIPPED / would skip” and exclude skipped roots from the sweep exit-code computation.
- Expand/adjust automated tests to cover mixed parkable+skipped sweeps, all-skipped sweeps, skip+real-refusal interactions,
--dry-run, explicit named-root behavior, and family-holder behavior. - Update docs (
README.md,AGENTS.md) and repo hygiene caps to reflect the new sweep semantics and reporting.
File summaries
| File | Description |
|---|---|
park |
Implements sweep-only skipping logic for overlay-less standalone roots and updates help/header narrative + summary output. |
tests/test_park_resume_commands.py |
Adds fixtures and test coverage for skip semantics and preserves prior sweep expectations by using overlay-stubbed roots. |
tests/test_repo_hygiene.py |
Adds hygiene assertions that docs + park mention the skip semantics; updates README/AGENTS line-count caps. |
README.md |
Documents skip semantics for bare sweeps, including summary clause and installer guidance, while keeping explicit behavior unchanged. |
AGENTS.md |
Documents the skip-vs-refusal distinction for sweeps vs explicit roots, aligned with the #92 ruling. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…un, not skipped Copilot's review of #7. `estate_here` sets `ESTATE_KIND` to `family` or `standalone` and nothing else today, so `!= family` and `= standalone` are the same test — but only today. The two spellings differ in what they do to a THIRD kind, if this standard ever grows one: `!= family` would skip it for want of a file nobody has decided it needs, silently and before its own Makefile was ever asked; `= standalone` runs it and lets that Makefile answer, which is the direction every refusal in this command already takes. Skipping is the answer for the one shape whose Makefile we have read. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
There was a problem hiding this comment.
🟡 Changes recommended
The new skip reporting is inconsistent in --dry-run mode (summary wording reports “skipped” even though the run says “would skip”), which makes the output internally contradictory.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
park:813
- The final summary clause always reports ", N skipped (no overlay)" even in --dry-run runs, where the command is describing what it would do. That makes the summary wording disagree with the per-estate "would skip" lines.
[ "$skipped" -eq 0 ] || skipped_clause=", $skipped skipped (no overlay)"
say "park: $((total - bad)) estate(s) parked, $bad refused or with findings$skipped_clause"
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Lite
| if [ "$DRY_RUN" -eq 1 ]; then | ||
| say " would skip (no Speckit overlay; install it with: setup-openspeckit)" | ||
| else | ||
| say " SKIPPED (no Speckit overlay; install it with: setup-openspeckit)" | ||
| fi | ||
| summary+=(" skipped $ESTATE_NAME (no Speckit overlay)") | ||
| skipped=$((skipped + 1)) |
…refuses, lane-end reads the phrase's STATE and not its prose, LANDING #<n> ends where the word does, the staging goes, and a one-word cell is not "already the phrase" FIVE FINDINGS, ALL ACCEPTED. * **lane-end read the WHOLE cell for a merge hold.** The one path that still decides a hold from words — a lane with no object log — scanned every character of the state cell, so an Amendment 13 phrase whose LINE says "waiting for LANDING #7" was a false hold and the lane could not be closed. The line is PROSE; the STATE is where the lane is. A cell whose second ` · ` field is exactly an instant is the phrase and only its state part is scanned; a legacy diary cell is unchanged and still scanned whole. Both readings of the row — this checkout's and the published one — take it. * **A `|` in a launch flag or a directory reached `set-row-state`**, whose contract refuses every pipe, so a normal start would rename the window and then fail to stamp the row. The shared cut now fixes ALL THREE things that writer refuses — ` · ` spelled `; `, `|` spelled `¦`, and the 240-character cap — so no caller has to remember any of them, and the three copies stay byte-identical under the hygiene test that holds them together. * **`LANDING #123abc` derived the state `LANDING #123`** — a merge hold Rule 6 would read, out of an entry that names no PR at all. The number now ends where the word ends, exactly as `state_word_is_valid` bounds the other six. * **The staging directories were never removed.** `append_text_block` allocated one per lane (a whole copy of that log) and `migrate_state_cells` one per run, and a DRY RUN left them behind while reporting that nothing was written — on the live register that is twenty copies a run. Both are removed where their work is done; a refusal still keeps them, as every other refused write here does, because a refused write is evidence. * **A one-word cell is not "already the phrase".** `ACTIVE` and `LIVE` have no diary to move, so this act leaves them alone — but they are NOT `<STATE> · <UTC> · <one line>`, and reporting them together with the cells that are said the register was compliant when a third of it is not. The two are counted and reported apart, with the sentence that says what the one-word cells still owe: the next set-row-state on each lane writes it. Tests: the shared cut as a unit (the broken bar, the word-boundary cut, the marker); `lane-end` on a phrase whose line mentions a landing, on a phrase whose STATE is one, and on a legacy diary cell; the migration's sixth row, whose `LANDING #123abc` derives no landing; the report's two counts; and the dry run leaving no staging directory behind. The Amendment 13 section: 196 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…s, and the /handoff skill's copy of the cut carries all four substitutions TWO FINDINGS, BOTH ACCEPTED, and both are the same shape: a check that was weaker than the rule it stands for. * **`cell_for_scan` tested only the second field.** A cell whose second ` · ` entry is nothing but a timestamp — `ACTIVE · 2026-09-12T10:00:00Z · LANDING #7` — has the phrase's SHAPE and none of its meaning, and narrowing the scan to `ACTIVE` there would CLOSE a pre-cutover lane holding an open landing. Narrowing is the fail-OPEN direction, so it is now taken only where the cell is certainly the phrase: the first field one of Amendment 13(a)'s seven states (or `MIGRATED`, which the migration writes and which holds nothing), the second exactly an instant, and a third part after it — which is `mig_cell_is_phrase`'s rule in `lanes-edit.sh`, said again where `lane-end` needs it. * **The `/handoff` skill's copy of the cut had two of the four substitutions.** It is the same act as `lane-handoff` under one name (Amendment 17(a)), so it writes the state cell too, and a copy that drops one is a line the writer refuses exactly where the command's line is accepted. It now carries CR and LF beside ` · ` and `|`, and a hygiene test pins all four in the skill as well as in the three commands. Tests: a diary cell whose second entry is only an instant still holds its lane (exit 2, naming the landing), beside the three cases from round 1 — a phrase whose LINE mentions a landing ends the lane, a phrase whose STATE is one refuses, and a legacy diary is scanned whole. The Amendment 13 section: 202 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
…es it, a note names ITS OWN lane, and three lines that are built rather than passed are bounded like the ones that are FIVE FINDINGS: four accepted, one accepted in its ordering half and declined in its consequence, with the rule that decides it. * **`cell_for_scan` accepted a fourth part and an empty third.** `LIVE · <UTC> · a note · <UTC> LANDING #7` has the phrase's first two fields and a HISTORY after them; narrowing the scan to `LIVE` there would close a lane over the landing in that history. It now mirrors `mig_cell_is_phrase` to the letter — exactly three parts, the third not empty, the first a state, the second an instant — and narrowing stays the fail-OPEN direction it is taken in only when the cell is certainly the phrase. * **A `NOTED`/`RULED` could name another lane.** `is_lane_object` reads the `lane:` prefix and nothing more, so `LANES_LANE=repoA … log NOTED lane:repoB` wrote a line into repoA's log whose object named repoB — a note about a lane in a file that is not its log, which `history repoB` would never show. Clause (b) is explicit that these are "lane-kind lines whose object is the lane itself", so the object is now compared with `lane:$lane`, case-insensitively (Amendment 15). The five OLDER lane verbs keep the old laxity: changing them is a change to Amendment 7's writers and not to the state cell. * **Two lines that are BUILT rather than passed were unbounded.** The migrated cell carries `history in lanes/log/<lane>.md`, whose length is the lane's name — `check_lane_name` bounds a name's characters, not its length — and the guard's MOVED marker carried the destination lane's name TWICE. Both are cut at 230 back to the last space now, the same rule `cut_to_line` applies in the three commands, so neither can build a line `set-row-state` would refuse: one after the migration has read every row, the other after the window has already moved. * **The stamp was written before the session cell it names** on the `new_sid` path. ACCEPTED as an ORDERING defect and fixed: Amendment 8's rule is THE CELL FIRST, THEN THE STAMP, said in those words above the harness path one branch up, and this path did the opposite. DECLINED as a resume hazard, which is what the finding claims: the resume target is the SESSION CELL and nothing else (Amendment 6(b)), read from the PUBLISHED row — so a refused append left the next start resuming the id the register knew, never a wrong conversation, and the refusal already printed the act that cures it. What it left was a row saying two things a reader had to reconcile; in this order the common path says one. Tests: a cell with a fourth part still holds its lane; a NOTED naming another lane is refused and writes nothing to that lane's log; a lane whose name alone overruns the cap still migrates, with its line inside 240 and marked cut; and the session-cell commit is asserted as the one BEFORE the stamp, with the stamp naming the same id. The Amendment 13 section: 211 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
…its diary moves to the lane's own log — `set-row-state`, `NOTED`/`RULED`, `history`, `migrate-state-cells`; `append-row-status` retired (#82) * The register row says where a lane IS in one line a person can read, and its diary moves to the lane's own log (Amendment 13) The `state` column was defined as a cell and used as a diary. Measured on Eagle the day the amendment was drafted: `lanes/LANES.md` was 1,141,283 bytes over 46 rows, its longest row 96,228 characters, and one lane's cell 7,016 characters after ONE day — three different things in one column (the lane's CURRENT state, which Rule 6 reads; a running narrative; and rulings quoted verbatim), appended for ever with ` · `, never replaced, in a table nobody can read in the table. Re-measured on 2026-09-15, before this: 1,335,595 bytes over 52 rows. lane-collision-protocol Amendment 13, in force 2026-09-13T21:08:36Z on Brett Heap's word "Ratify as drafted (Recommended)", with O1, O2 and O3 as recommended. This is its tooling, #29. **(a) The cell is ONE PHRASE, replaced on every write.** `lanes-edit.sh set-row-state <lane> "<STATE> · <one line>"` stamps the UTC itself and REPLACES the cell. STATE is one of LIVE, PAUSED, LANDING #<n>, LANDED, ENDED, RETIRED, HANDED OFF — Rule 6's reading of the cell is unchanged and is now the whole of what the cell says at that moment. The line is at most 240 characters (ratified decision O1) and carries neither a `|` nor a second ` · `. `append-row-status` is RETIRED and refuses, naming `set-row-state` for the state and `log NOTED` / `log RULED` for the narrative, so the cell can never grow again — because the act that grew it is gone, not because every caller remembered. WHICH TEXT IS THE STATE CELL is decided by splitting the row on ` | `: a seven-column row has exactly six separators, and then the two readings of the row — six from the left, the last cell from the right — are the same text. A row with more carries a ` | ` inside a cell, the two readings disagree about which text to overwrite, and it is REFUSED by name rather than written at a guess. Of the live register's 52 rows, 50 split cleanly. **(b) The narrative goes to the lane's own log**, under two new Amendment 7 verbs: `NOTED` (a status note) and `RULED` (a ruling, verbatim, with the object it bears on as its payload — canonicalised through `repos.tsv` like every other object this tooling writes). Both are lane-kind lines whose object is the lane. NEITHER IS A TRANSITION, so no reader's state moves because one was written: `who`, `lane-end` and `lanes` take a whitelist of the five lane verbs already, and `swapped_candidates` — the one reader that took a lane's last lane-kind line whatever its verb — skips the two by name. Without that, a lane that noted anything after its swap would have vanished from `swapped`, which is what `restart` reads to find the lane whose window name a new tmux session has lost. **(4) `lanes-edit.sh history <lane> [--since <UTC>]`** prints them in FILE order (R14), which is the diary the cell used to be; 8 for a lane that has written none, 64 for a caller's bad arguments. **(e) `lanes-edit.sh migrate-state-cells`** — the ONE act, a DRY RUN unless `--yes`. Per row it splits the cell on ` · `, writes `RULED` for an entry beginning RULING/RULINGS/RATIFIED and `NOTED` for the rest, takes the UTC from the entry's own leading timestamp (the row's `started` where it has none), the session from the LAST uuid of the row's session cell and the workstation from the row's own column; then replaces the cell with the state the last entry's leading verb names, else `MIGRATED`. ONE commit carries the archive `lanes/archive/LANES-pre-amendment-13-<UTC>.md`, every log it appended to and the register, so the narrative exists three times over. It REFUSES when no cell holds a ` · ` entry it can take, and a row it cannot take is SKIPPED and NAMED, its cell untouched, so a re-run after that row is settled migrates exactly it. Measured on a COPY of the live register (the act is Brett Heap's to run, on his word, after this is installed on both workstations — O3): 52 rows read, 20 migrated, 28 already one phrase, 4 skipped; 2,206 lines (2,158 NOTED, 48 RULED) into 20 logs; 782,465 characters of state cell become 1,495; one commit of 22 files; 1,336,371 bytes of register become 555,401. THE CALLERS ALL MOVE, because a retired verb with a caller is a broken command: `lane-start`'s Amendment 6(c) stamp, `add-row`'s brand-new row (born in the phrase rather than opening with the bare word `STARTING`), `lane-end`'s closing write — which now carries `RETIRED` itself, so `--retire`'s second write and the `--state-was` anchor it needed are gone — `lane-handoff`'s swap (one write where it made two guesses at a cell that was a history), the `/handoff` skill, and the name guard's MOVED marker. Two measurements decided details that are not obvious from the amendment: * `${row#"$body"}` — removing a literal prefix — walks every prefix length in turn, so splitting one 90,751-character row cost ELEVEN SECONDS, and a dry run of the migration ninety-four. `${row:${#body}}` is linear and the same answer: 5 seconds for the whole register. * A line cut with `${s:0:n}` can land INSIDE a character, because that counts BYTES wherever the locale is not a UTF-8 one — and these lines are full of `—`, `·` and `→`. Every caller cuts back to the last space, which takes the fragment with it. Tests: a new section in `tests/test_lane_helpers.sh` for each act, the migration on its own seeded workspace (it rewrites every row of the register it is pointed at, so it may not be pointed at the suite's own). The cases that asserted the old shape are re-pointed, and the two that asserted the PATHOLOGY — a row carrying one uuid three times because every stamp was appended — now assert the two it carries, which is still not one, which is why the session-cell append stays cell-scoped. Docs: `docs/README-lanes.md` gains "The row is current state; the log is history (Amendment 13)" and its writer lists, row-format paragraph, `lane-start` step 5 and `lane-end` paragraph follow. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Copilot round 1 on #82: the cut fixes the three things set-row-state refuses, lane-end reads the phrase's STATE and not its prose, LANDING #<n> ends where the word does, the staging goes, and a one-word cell is not "already the phrase" FIVE FINDINGS, ALL ACCEPTED. * **lane-end read the WHOLE cell for a merge hold.** The one path that still decides a hold from words — a lane with no object log — scanned every character of the state cell, so an Amendment 13 phrase whose LINE says "waiting for LANDING #7" was a false hold and the lane could not be closed. The line is PROSE; the STATE is where the lane is. A cell whose second ` · ` field is exactly an instant is the phrase and only its state part is scanned; a legacy diary cell is unchanged and still scanned whole. Both readings of the row — this checkout's and the published one — take it. * **A `|` in a launch flag or a directory reached `set-row-state`**, whose contract refuses every pipe, so a normal start would rename the window and then fail to stamp the row. The shared cut now fixes ALL THREE things that writer refuses — ` · ` spelled `; `, `|` spelled `¦`, and the 240-character cap — so no caller has to remember any of them, and the three copies stay byte-identical under the hygiene test that holds them together. * **`LANDING #123abc` derived the state `LANDING #123`** — a merge hold Rule 6 would read, out of an entry that names no PR at all. The number now ends where the word ends, exactly as `state_word_is_valid` bounds the other six. * **The staging directories were never removed.** `append_text_block` allocated one per lane (a whole copy of that log) and `migrate_state_cells` one per run, and a DRY RUN left them behind while reporting that nothing was written — on the live register that is twenty copies a run. Both are removed where their work is done; a refusal still keeps them, as every other refused write here does, because a refused write is evidence. * **A one-word cell is not "already the phrase".** `ACTIVE` and `LIVE` have no diary to move, so this act leaves them alone — but they are NOT `<STATE> · <UTC> · <one line>`, and reporting them together with the cells that are said the register was compliant when a third of it is not. The two are counted and reported apart, with the sentence that says what the one-word cells still owe: the next set-row-state on each lane writes it. Tests: the shared cut as a unit (the broken bar, the word-boundary cut, the marker); `lane-end` on a phrase whose line mentions a landing, on a phrase whose STATE is one, and on a legacy diary cell; the migration's sixth row, whose `LANDING #123abc` derives no landing; the report's two counts; and the dry run leaving no staging directory behind. The Amendment 13 section: 196 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * …and the description's backticks are escaped, which is the suite's own rule and its own test `test_the_suite_descriptions_run_no_command_of_their_own` caught one line of the round-1 tests: a description reading "…and `LANDING #123abc` derives no landing" is a description bash runs `LANDING #123abc` inside, leaving a hole where those words were. The rule is one file over and the test is what holds it; this is the escape it asks for. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Copilot round 2 on #82: the migration holds the mutex across its scan as well as its write, an untracked target log is a peer's work and is skipped, and the cut flattens a newline THREE FINDINGS: two accepted, one half-declined with the code that already refuses it. * **The scan and the write were two different moments.** The act read every row's LINE NUMBER and cell, and then rewrote those lines BY NUMBER — with the mutex taken between the two. A peer's `add-row` or `replace-in-row` landing in this checkout in that window moves the lines under it, and `replace_line` then rewrites the wrong row: its one-line proof holds for the line it was given, not for the row a person meant. The lock and the register's capture now come BEFORE the scan, so what is read is what is committed. THE DRY RUN TAKES NO LOCK: it writes nothing, and a read that holds the estate's one register mutex for the seconds this scan takes is a read that blocks every lane's write to say what it would have done. * **An untracked target log is somebody's uncommitted work.** A TRACKED log that is dirty was already refused for the whole run — `refuse_dirty_checkout` exempts the register alone and `tracked_dirty` reads staged and unstaged alike — but an untracked file is in neither list, and appending to it here would put a peer's first lines into this migration's one commit under this migration's message. That row is now SKIPPED and the file named, as the other five reasons are, and its cell keeps every character, so a re-run after the peer commits migrates exactly it. * **The cut flattens CR and LF.** It is the fourth thing `set-row-state` refuses, beside ` · `, `|` and the 240-character cap: a row is ONE line of a table, so a newline in its text would split it in two and every row after it would be read as a lane. The register write was already fail-CLOSED on it (the writer refuses), which cost the row its state rather than corrupting it; now the caller spells it `; ` and the row is written. The OTHER half of that finding — `lane-handoff`'s free-form `--why` reaching `append-line`, whose one-line proof fails AFTER the append — predates this PR (it came with #47's `lane-handoff`, whose `sanitize` replaces ` — ` and nothing else) and is filed rather than fixed inside a diff about the state cell. Tests: the cut flattening a newline; a row whose object log is untracked skipped and named, then migrated once the peer commits it. The Amendment 13 section: 200 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * …and the hygiene test follows the cut it pins: the substitutions run on $ctl now that CR and LF go first, and the newline is pinned too The test I added in the same breath as the block is what caught the refactor — it asserted `${1// · /; }` and the block spells it `${ctl// · /; }`, because the CR/LF flattening now runs before it. That is the test doing its job one round early; the assertions name the four substitutions as they are, newline included. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * Copilot round 4 on #82: narrowing the in-flight scan takes BOTH fields, and the /handoff skill's copy of the cut carries all four substitutions TWO FINDINGS, BOTH ACCEPTED, and both are the same shape: a check that was weaker than the rule it stands for. * **`cell_for_scan` tested only the second field.** A cell whose second ` · ` entry is nothing but a timestamp — `ACTIVE · 2026-09-12T10:00:00Z · LANDING #7` — has the phrase's SHAPE and none of its meaning, and narrowing the scan to `ACTIVE` there would CLOSE a pre-cutover lane holding an open landing. Narrowing is the fail-OPEN direction, so it is now taken only where the cell is certainly the phrase: the first field one of Amendment 13(a)'s seven states (or `MIGRATED`, which the migration writes and which holds nothing), the second exactly an instant, and a third part after it — which is `mig_cell_is_phrase`'s rule in `lanes-edit.sh`, said again where `lane-end` needs it. * **The `/handoff` skill's copy of the cut had two of the four substitutions.** It is the same act as `lane-handoff` under one name (Amendment 17(a)), so it writes the state cell too, and a copy that drops one is a line the writer refuses exactly where the command's line is accepted. It now carries CR and LF beside ` · ` and `|`, and a hygiene test pins all four in the skill as well as in the three commands. Tests: a diary cell whose second entry is only an instant still holds its lane (exit 2, naming the landing), beside the three cases from round 1 — a phrase whose LINE mentions a landing ends the lane, a phrase whose STATE is one refuses, and a legacy diary is scanned whole. The Amendment 13 section: 202 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * tests-macos on 4df80b6: an unescaped { in a BRE is undefined, and BSD sed answers nothing — the cut's unit test extracted no function at all THE SHIPPED FUNCTION WAS NEVER THE PROBLEM, and the same job proves it: every assertion about `lane-start`'s own row stamp passed on macOS, which is `cut_to_line` running inside it. What failed was the TEST's extraction — `sed -n "/^cut_to_line() {/,/^}/p"`, whose address carries an unescaped `{`. POSIX leaves that undefined outside an interval; GNU sed reads it literally and BSD sed answers NOTHING, so the `eval` defined no function, all three cases came back empty, and TWO OF THEM PASSED VACUOUSLY against the empty string (a zero-length line is "inside the cap" and carries no half character). The address drops the brace — the function's own line is unique without it — and the comment says why, so the next person writing a unit test of a shipped function does not put a brace in a BRE again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * Copilot round 5 on #82: the cell is written before the stamp that names it, a note names ITS OWN lane, and three lines that are built rather than passed are bounded like the ones that are FIVE FINDINGS: four accepted, one accepted in its ordering half and declined in its consequence, with the rule that decides it. * **`cell_for_scan` accepted a fourth part and an empty third.** `LIVE · <UTC> · a note · <UTC> LANDING #7` has the phrase's first two fields and a HISTORY after them; narrowing the scan to `LIVE` there would close a lane over the landing in that history. It now mirrors `mig_cell_is_phrase` to the letter — exactly three parts, the third not empty, the first a state, the second an instant — and narrowing stays the fail-OPEN direction it is taken in only when the cell is certainly the phrase. * **A `NOTED`/`RULED` could name another lane.** `is_lane_object` reads the `lane:` prefix and nothing more, so `LANES_LANE=repoA … log NOTED lane:repoB` wrote a line into repoA's log whose object named repoB — a note about a lane in a file that is not its log, which `history repoB` would never show. Clause (b) is explicit that these are "lane-kind lines whose object is the lane itself", so the object is now compared with `lane:$lane`, case-insensitively (Amendment 15). The five OLDER lane verbs keep the old laxity: changing them is a change to Amendment 7's writers and not to the state cell. * **Two lines that are BUILT rather than passed were unbounded.** The migrated cell carries `history in lanes/log/<lane>.md`, whose length is the lane's name — `check_lane_name` bounds a name's characters, not its length — and the guard's MOVED marker carried the destination lane's name TWICE. Both are cut at 230 back to the last space now, the same rule `cut_to_line` applies in the three commands, so neither can build a line `set-row-state` would refuse: one after the migration has read every row, the other after the window has already moved. * **The stamp was written before the session cell it names** on the `new_sid` path. ACCEPTED as an ORDERING defect and fixed: Amendment 8's rule is THE CELL FIRST, THEN THE STAMP, said in those words above the harness path one branch up, and this path did the opposite. DECLINED as a resume hazard, which is what the finding claims: the resume target is the SESSION CELL and nothing else (Amendment 6(b)), read from the PUBLISHED row — so a refused append left the next start resuming the id the register knew, never a wrong conversation, and the refusal already printed the act that cures it. What it left was a row saying two things a reader had to reconcile; in this order the common path says one. Tests: a cell with a fourth part still holds its lane; a NOTED naming another lane is refused and writes nothing to that lane's log; a lane whose name alone overruns the cap still migrates, with its line inside 240 and marked cut; and the session-cell commit is asserted as the one BEFORE the stamp, with the stamp naming the same id. The Amendment 13 section: 211 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m * tests-windows on 21e86c0: `grep` and an awk `\|` on one line is what the GNU-only guard reads as a BRE alternation `test_no_shipped_bash_reaches_for_gnu_only_utilities_unaccompanied` is a LINE test, deliberately: it cannot tell whose regex a `\|` belongs to, and the thing it exists to catch — an alternation handed to `grep` or `sed`, which BSD matches LITERALLY and reports no error for — is worth the false positive. The `\|` on that line was awk's own escape inside an ERE and never reached `grep`. The row is taken first and the awk that splits it runs on its own line, so neither line carries both. Same assertions, same values. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>



Lane: openreposhape-2 (openRepoShape-2)
Claim: #6 (comment)
Ruling: opensoft/openRepoShape#92 (comment)
Closes #6
Brett Heap, 2026-09-10, verbatim: "rule on the #92 open item: skip roots without the overlay."
Why
Bare
park— no<Name>, no--repo, no estate around the cwd — has parked EVERY estate under the projects directory since openRepoShape #91/#93. On Eagle that sweep can only ever exit 1:MedxEHR,MedxGlass,openDoxandopenXdoxcarry no Speckit git overlay, so each one's ownmake parkrefuses with exit 2 (needs the Speckit worktree overlay; install it with: setup-openspeckit) and the sweep counted every one of them as a refusal. A root nobody installed the overlay in is not a park that FAILED; it is a park there was never anything to run — and four false failures buried the one summary line a person reads.What it does now
test -x .specify/extensions/git/scripts/bash/park.sh, which istemplates/assembly-root/Makefile's own$(PARK)guard — so the sweep's answer and the target's answer cannot disagree. Absent: one line in that estate's block, a newskippedtally, nothing run, no effect on the exit code.has_speckit_overlay's comment says why: a holder's Makefile makes no such test — it fans out withsiblings.py --make park, and each member's own root refuses for itself and is reported by the holder. Pre-checking it would skip a whole family for want of a file its Makefile never reads.park <Name>,park --repoand the walk-up inside an estate still relay the Makefile's exit 2, which names the installer. A person who NAMED a root gets the refusal.setup-openspeckit.--dry-runprintswould skip (no Speckit overlay; install it with: setup-openspeckit)and creates nothing.resumedoes not change (the ruling is park-only), and the shared estate resolver the two commands carry byte for byte is not touched —test_the_two_verbs_carry_the_same_estate_resolver_byte_for_bytestill passes, and no diff hunk falls inside the block.Tests
140 -> 147. Six new ones in the #91 style: two roots with the overlay and two without in one sweep; every estate skipped; a skipped root beside a REAL refusal (exit 1, both lines, the estate after it still parked);
--dry-run; the same overlay-less root swept and then NAMED — against the realtemplates/assembly-root/Makefile, so the two answers are seen coming apart on one directory; and a family holder still run. Plus one hygiene test that both documents andpark's own header carry the skip clause. The three #91 sweep tests now build their standalone root withsweepable_project: the overlay stub is what a park-able root has, and aprobe_projectwithout it is now exactly the root the sweep skips.bash -n parkpasses;python3 -m pytest tests -qis 147 passed locally with the submodule initialised. shellcheck is not installed on this machine, soshellcheck parkwas not run here — CI does not run it either.Docs: README.md 172 -> 178 lines, AGENTS.md 90 -> 95, both caps raised in a dated docstring entry naming the rule the lines bought.
Not merged
Opened for review only. workBenches re-vendors
parkafter this lands.🤖 Generated with Claude Code
Summary by Sourcery
Update bare park sweeps to skip estates without a Speckit overlay while preserving explicit refusals and clearly reporting the resulting status.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: