Skip to content

Carve floor: the re_destined row form (RULED Q6) — grammar, both validators, tests, runbook § 5 - #1011

Merged
brettheap merged 9 commits into
mainfrom
feat/carve-manifest-re-destined-form
Sep 13, 2026
Merged

brettheap merged 9 commits into
mainfrom
feat/carve-manifest-re-destined-form

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction

What this is

RULED Q6 — Brett Heap, 2026-09-12, by interactive multi-choice (window openXfactory-4 (6)), #656 comment 5648044785, adopting verbatim the RECOMMENDED answer of openDox-spec docs/front-end-package-boundary.md § 6 Q6 at 7d12428c:

the manifest RE-DESTINATION form: an optional re_destined: {from, from_path, to, to_path, ruling, note} field on a moved row, to held to the closed destinations: keys; validate-carve-manifest.py refuses it on a not_moved row and refuses a chain; verify-carve-arrival.py reads the EFFECTIVE destination; a ruling: citation is required — the form serves a RULED mis-placement only. NOT a re-cut.

This lands the form and its gates. No row is re-destined here — slice S8 of the boundary note is the act that uses it, under its own claim and its own pull request, and every count in the manifest is unmoved by this landing (validate-carve-manifest.py prints re_destined 0 for the landed document, and the § 8.2 seat asserts exactly that).

What each check refuses

scripts/validate-carve-manifest.py — three new codes, all inside the carve- namespace the vocabulary's split with arrival-* depends on:

check finding what it refuses
1 carve-re-destined-not-moved re_destined: on a not_moved row, under EVERY reason including replicated_at_destination — a row that placed nothing has no arrival to re-place, and a replica's copies are placed by the leg (RULED OQ-C)
1 carve-re-destined-unruled an absent, empty or non-string ruling:. Its own code because the ruling's SCOPE answer is that the form serves a RULED mis-placement only; the citation's FORM is not constrained (a comment id, a #656 reference and a PR URL all pass)
1 carve-shape-invalid the closed six-key mapping, the four required strings, and both paths through destination_path's own canonical-relative predicate
5 carve-vocabulary-unknown from or to outside destinations: — the same membership test a row's own destination gets
6 carve-disposition-inconsistent from/from_path that are not the row's own destination/destination_path, and to == from
6 carve-re-destined-chain a row whose (to, to_path) is another row's (from, from_path) — RULED Q6's own sentence, "a row already re-destined is AMENDED in place, never re-destined twice"

Check 4's duplicate-arrival map now keys on the effective arrival, in both directions: a row re-destined away from a path no longer reserves it (so a refill passes), and a re-destined row landing on an occupied path refuses rather than passing in silence. The surface walk and every digest check are untouched — a re-destination moves nothing at the source, and a sha256 is a claim about the source blob at b075fd91….

scripts/verify-carve-arrival.py — one new code, arrival-not-vacated, and the EFFECTIVE arrival everywhere: which destination is owed the row, where the file must be, which digest and declared lines it is held to, which roots the walk covers, and which path the walk admits BY NAME. The row's own destination/destination_path stay the record of what the carve did — and are what the LOSING leg must have vacated (lexists, so a symlink left behind is not invisible). The check runs before the walk, so the refusal names the ruling rather than the filename. The summary lists the re-destined rows this run gained and vacated, each with its citation.

Both are the two refusals the boundary note's § 6 measured stopping slice S6 on one file: arrival-missing at the leg whose row the file left, arrival-undeclared-file at the leg it landed on.

Why a declared act and not a re-cut (the note's argument)

Runbook § 11 re-cuts at a NEW carve_commit with every digest recomputed and re-emits the manifest "at that commit, as the last thing on that tree". The manifest is phase: post-shed (the § 5.2 shed landed as cc4ae9d3, PR #940), so a manifest re-emitted at a post-shed commit would carry no moved rows at all — a different document, not a re-cut. Three costs stand even setting that aside: re-cutting is Brett Heap's own act (§ 12 act 5); § 11 step 6 re-verifies EVERY already-arrived leg, because a leg proved against a superseded referent is proved against nothing; and § 11's trigger is a SOURCE-side fact ("if main moves under the carve", with the digests wrong) while a mis-placement is destination-side and is a correction to a RULED placement — RULED OQ-G placed 70 files at openXdox by a rule about imports, and § 1.2(d) measured that 23 of them landed where nothing can run them. Correcting a ruling is DECLARED, not re-cut, and a re-homed file never leaves its row, which is what keeps the floor's own sentence true.

Tests

Twenty-nine cases across tests/carve_manifest and tests/carve_arrival, each a generated manifest over a real tree, each refusal reached through the documented subprocess invocation. The end-to-end case materialises both destination trees from one manifest, passes at both legs, and then introduces each violation in turn. test_both_tools_read_the_effective_arrival_identically loads both scripts and holds their duplicated reading equal over a table that includes the mis-shaped rows neither tool validates — the lesson RULED Q-L8 (c) taught about two tools and one definition. The aggregate tests over the REAL manifest are untouched and green.

Green locally: python3 scripts/validate-carve-manifest.py → OK … 456 row(s); pytest -q tests/carve_manifest tests/carve_arrival tests/carve_conformance → 298 passed; pytest -q tests/doc-health → 1742 passed.

Three decisions worth a reviewer's eye

  1. The refusal codes are prefixed. The brief named them re-destined-not-moved / -unruled / -chain; they are landed as carve-re-destined-* because verify-carve-arrival.py's own docstring reads the prefix as the OWNERSHIP split between the two tools ("every carve-* code is a manifest that disagrees with openxFactory"), and a bare re-destined-* would be a manifest finding outside the namespace that sentence describes. Say the word and they are renamed in one commit.
  2. docs/opendox-cutover-runbook.md § 12 act 4 cited a § 5.7 this runbook never had (the tags are Phase 6, § 9). It is repointed, because this pull request adds a real § 5.7 and would otherwise make a dangling reference into a wrong one.
  3. scripts/carved_reach.py is a THIRD consumer of a row's destination (source() and shed_destination() read row["destination"] / row["destination_path"] directly) and is deliberately not touched here — the brief scopes this to the form and its two gates. It resolves correctly today, because no row is re-destined; it will read the wrong leg the moment S8 lands one, so S8's packet needs the effective-arrival reading there or a ruling that it stays as it is. Flagged rather than fixed.

UPDATE — merged origin/main (#1009 + #1010), two Copilot findings fixed

origin/main now carries #1009 (§ 3.4 SLICE S6, /source re-homing) and #1010 (§ 3.4 SLICE S4, the route-tail split), both merged in clean (git merge origin/main, merge commit aa71e8eb, no textual conflicts — the two branches touch disjoint lines: their row-level annotations vs. this branch's header grammar/refusal-code prose). Nothing here was RE-TYPED: every total this branch's own prose cites is structurally invariant under S4/S6 (neither slice adds or removes a row, a destination, an edit class or a not_moved reason — they add edits: entries to and convert the disposition of EXISTING rows), and both were independently re-verified against the live tool rather than trusted — validate-carve-manifest.py prints 456 row(s) … 161 moved_verbatim, 157 moved_with_declared_edit, 138 not_moved … 318 digest(s) recomputed, 5 destinations: keys, 3 edit_classes, 4 not_moved_reasons — matching every count this branch's header/runbook prose states. The runbook § 5 table's 1422 declared lines / 158 rows-carrying-edits came in from origin/main itself (post-#1010) and match tests/carve_manifest/test_carve_manifest.py's own pinned aggregate assertion, (1422, 158), exactly.

Two Copilot findings on scripts/validate-carve-manifest.py, both accurate, fixed at f546b7b9:

  • The "not also-replicated at its own destination" guard compared against the row's raw destination, never re_destined.to — a row re-destined to X that also listed X in also_replicated_to passed here, and verify-carve-arrival.py would silently drop the now-redundant replica at the one place the row actually arrives. Now reads effective_arrival(row), the same helper check 4's duplicate-arrival map already uses.
  • The human-readable summary's RE-DESTINED by ruling clause was printed only when the count was truthy, contradicting the comment directly above it and the header's own claim that zero prints too. Now unconditional — the line currently ends 0 row(s) RE-DESTINED by ruling (RULED Q6).

Three new tests in the RULED Q6 block (32 now, was 29: the effective-destination refusal, its contrast case at the original/vacated destination, and the zero-state human line); validate-carve-manifest.py OK and the three carve suites 301 passed (was 298). Both threads replied (with the fix's commit) and resolved.

UPDATE — round 2: a lawful refill at a vacated path is not arrival-not-vacated

One more Copilot finding, accurate, fixed at 2c31fd66: verify-carve-arrival.py's check_vacated raised arrival-not-vacated on ANY entry at a row's re_destined.from_path, without asking whether a DIFFERENT row's own effective arrival legitimately occupies that path today — the arrival-verifier counterpart of the lawful refill validate-carve-manifest.py's check 4 already allows (test_another_row_may_move_into_the_path_a_re_destination_vacated). check_vacated now takes the leg's own rows_for(doc, destination) (already computed at the call site, just before this runs) and excludes any path one of those rows' own effective_arrival claims, before testing lexists.

New test test_another_rows_arrival_at_the_vacated_path_is_a_lawful_refill in tests/carve_arrival/test_verify_carve_arrival.py — confirmed failing against the pre-fix code with exactly this finding's own arrival-not-vacated, passing with the fix. Three carve suites: 302 passed (was 301). Thread replied and resolved.

This is round 2 of the brief's 2-round Copilot budget for this PR — a further finding gets a reply with evidence and a stop, not a third fix commit.

UPDATE — round 2's own review, lane-collision ruling, round 3

Round 2's review (2c31fd66) surfaced two more findings. Both investigated and replied to with evidence:

  1. re_destined.to_path/from_path reach dest_root / relpath unguarded for an absolute or ../-escaping value if this tool is invoked directly on a manifest that skipped validate-carve-manifest.py (which already runs both fields through _require_closed_relative_path, symmetrically with destination_path). Ruled DECLINED by design: not new here — ordinary destination_path has had the identical unguarded join in check_arrivals all along, by the same by-design trust boundary this file's own docstring states ("READS the manifest and does not revalidate it"). Thread resolved.
  2. The round-2 claimed set excluded only PRIMARY rows' (rows_for()) effective arrivals from the vacated-path check, not --replica-at-declared or also_replicated_to/replicated_at_destination replica placements, which check_replicas verifies AFTER check_vacated runs — a real completeness gap in round 2's own fix. Round 3 authorized and fixed at ad0b1846: check_vacated now also excludes replica_placements.values(). New test test_a_declared_replica_may_refill_a_re_destinations_vacated_path — confirmed failing pre-fix with exactly this finding's own arrival-not-vacated, passing with the fix. Three carve suites: 303 passed (was 302). Thread replied and resolved.

5 threads total, 0 unresolved.

UPDATE — round 3's own review: round 4, docs-only

Round 3's review (ad0b1846) surfaced one more finding, accurate and small — round 4, authorized, fixed at 421974a3: the cutover runbook § 5.7 LOSING-leg step unconditionally instructed deleting the file at from_path, but rounds 2/3 taught check_vacated that a path is not un-vacated when another row's own effective arrival or a declared --replica-at replica legitimately claims it at this same leg — following the step as written in that case would delete the OTHER row's/replica's own file. The step now makes the deletion conditional on there being no such claim. Docs-only; validator and the three carve suites unchanged (303 passed). Thread replied and resolved.

6 threads total, 0 unresolved.

Refs #656

Lane: openxfactory-4-opendox-extraction

🤖 Generated with Claude Code

Summary by Sourcery

Add governed re-destination support for correcting ruled carve placements while preserving the original manifest record and enforcing both arrival and vacated-leg verification.

New Features:

  • Add the RULED Q6 re_destined manifest form for recording post-carve corrections to moved-row placements without changing source metadata or digests.
  • Verify re-destined arrivals at their effective destination and require vacated paths to be clear at the original destination.

Bug Fixes:

  • Prevent duplicate and replica-consistency checks from using stale original destinations after a row is re-destined.
  • Handle lawful refills of vacated paths by other rows or declared replicas without reporting false arrival-not-vacated findings.
  • Correct the runbook reference for tag handling and consistently report zero re-destined rows.

Enhancements:

  • Extend manifest validation with shape, vocabulary, consistency, ruling-citation, and no-chain checks for re-destined rows.
  • Add effective-arrival reporting and dedicated manifest and arrival refusal codes for invalid re-destination declarations.

Documentation:

  • Document the RULED Q6 grammar, validation rules, effective-arrival semantics, and the operational procedure for gaining and losing destination legs in the carve manifest and cutover runbook.

Tests:

  • Add comprehensive manifest and arrival coverage for re-destination validation, effective placement, vacated paths, lawful refills, replicas, digest and edit enforcement, reporting, and cross-tool consistency.

Brett Heap and others added 4 commits September 12, 2026 15:20
…(RULED Q6)

RULED Q6 (Brett Heap, 2026-09-12, by interactive multi-choice; `#656` comment
`5648044785`), adopting the RECOMMENDED answer of openDox-spec
`docs/front-end-package-boundary.md` § 6 Q6 at `7d12428c`: a moved row gains an
OPTIONAL `re_destined: {from, from_path, to, to_path, ruling, note}`, and a
ruled mis-placement is DECLARED rather than re-cut.

`scripts/validate-carve-manifest.py` grows three refusal codes and holds the
form at four checks: `carve-re-destined-not-moved` and
`carve-re-destined-unruled` in check 1, `carve-vocabulary-unknown` on
`from`/`to` in check 5, `carve-disposition-inconsistent` on a `from` that is
not the row's own destination or a `to` equal to it, and
`carve-re-destined-chain` across rows in check 6. Check 4's duplicate-arrival
map now keys on the EFFECTIVE arrival, so a vacated path may be refilled and an
occupied one may not be landed on; the surface walk and every digest check are
untouched, because a re-destination moves nothing at the source.

The manifest header documents the form beside RULED Q-L7 (a)'s two fields and
records that NO ROW CARRIES IT: this lands the form and its gates only, and
slice S8 re-destines under its own claim. Every count in the manifest is
unmoved; the validator prints the re-destination count on every run.

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <[email protected]>
…LED Q6)

`scripts/verify-carve-arrival.py` asks every question of a moved row at
`re_destined.to`/`to_path` where a ruling has moved the placement: which
destination is owed the row, where the file must be, which digest and declared
lines it is held to, which roots the walk covers, and which path the walk
admits BY NAME. The row's own `destination`/`destination_path` stay the record
of what the carve did — and are what the LOSING leg must have vacated: a sixth
finding, `arrival-not-vacated`, is `arrival-missing` read in the mirror and
runs before the walk so the refusal names the ruling rather than the filename.

The summary lists the re-destined rows this run touched — gained and vacated,
each with the ruling that ordered it — so a leg's evidence carries the citation
for the one arrival the carve did not make. Both tools' reading of the
effective arrival is the same predicate, duplicated because a hyphenated entry
point cannot be imported and asserted equal in the next commit's test.

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <[email protected]>
Twenty-nine cases over the two suites, each a generated manifest and a real
tree, and each refusal reached through the DOCUMENTED subprocess invocation.

Manifest side: the form accepted on both moved dispositions with no digest,
disposition or surface count moved; `carve-re-destined-not-moved` under every
`not_moved` reason including the replica one; `carve-re-destined-unruled` for
an absent, empty or non-string citation, with three legitimate citation forms
accepted so the check stays presence and not a pattern; `to == from` and a
`from`/`from_path` that is not the row's own placement;
`carve-re-destined-chain` built as two rows, one vacating the arrival the
other moves on; `carve-vocabulary-unknown` at both ends; the closed mapping,
the four required strings and the two paths held to the canonical-relative
predicate; and both directions of check 4's effective keying — a refill of a
vacated path passes, a landing on an occupied one refuses.

Arrival side: the gaining leg owed the row and admitting it BY NAME, the
losing leg no longer owed it, `arrival-not-vacated` for a copy and for a
dangling symlink left behind, `arrival-missing` naming the ruling at the
gaining leg, phase A byte-identity and phase B's declared-line bound at the
new address, the summary and the human line at both legs, and one end-to-end
case that materialises BOTH destination trees from one manifest and then
introduces each violation in turn. `test_both_tools_read_the_effective_arrival_identically`
loads both scripts and holds their duplicated reading equal over a table that
includes the mis-shaped rows neither tool validates — the lesson RULED Q-L8
(c) taught about two tools and one definition.

The § 8.2 seat asserts the LANDED manifest carries the form in its header,
cites the ruling, and uses it on no row.

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <[email protected]>
§ 2's FLOOR PART 1 description now carries the form and what moves with it —
the proof owed at the destination follows the placement, and the losing leg
owes an absence — and the arrival verifier's table gains `arrival-not-vacated`
as its sixth finding.

§ 5.7 is the act itself: the ruling first; ONE openxFactory row-amendment pull
request landing first, adding `re_destined:` and editing nothing else; the
validator's own `N row(s) RE-DESTINED by ruling` line as the document's
receipt; then the GAINING leg and the LOSING leg in that order, each its own
pull request, because a window with the bytes at two legs is recoverable and
one with them at none breaks every importer downstream. It states what the
floor does not prove — one destination per run, so the two halves are two runs
and it is the procedure that closes the pair.

Also repoints § 12's act 4 from a `§ 5.7` this runbook never had to Phase 6
(§ 9), which is where the tags actually are — a dangling reference before this
commit and a wrong one after it.

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 12, 2026 19:50
@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR introduces the RULED Q6 re_destined row form, its manifest and arrival-verification gates, effective-destination handling, tests, and operational runbook procedure. It deliberately adds only the form and enforcement: the real manifest contains zero re-destined rows, while both tools preserve source-based digest/edit claims and require the original leg to be vacated.

Sequence diagram for validating and verifying a ruled re-destination

sequenceDiagram
    participant Manifest as Manifest
    participant Validator as validate-carve-manifest.py
    participant Gaining as GainingLeg
    participant Losing as LosingLeg
    participant Verifier as verify-carve-arrival.py

    Manifest->>Validator: validate()
    Validator-->>Manifest: effective_arrival(to, to_path)
    Validator-->>Manifest: OK or carve-re-destined-* refusal
    Gaining->>Verifier: verify-carve-arrival(--destination to)
    Verifier-->>Gaining: require effective arrival and source digest/edit claims
    Losing->>Verifier: verify-carve-arrival(--destination from)
    Verifier-->>Losing: require from_path absent
    Verifier-->>Losing: arrival-not-vacated or verified vacated
Loading

Flow diagram for the re_destined manifest gates

flowchart TD
    A[MOVED row with optional re_destined] --> B{Valid six-key mapping?}
    B -- No --> E[carve-shape-invalid]
    B -- Yes --> C{ruling present and non-empty?}
    C -- No --> F[carve-re-destined-unruled]
    C -- Yes --> D{from and to are declared destinations?}
    D -- No --> G[carve-vocabulary-unknown]
    D -- Yes --> H{from matches row placement and to differs?}
    H -- No --> I[carve-disposition-inconsistent]
    H -- Yes --> J{Creates a re-destination chain?}
    J -- Yes --> K[carve-re-destined-chain]
    J -- No --> L[Effective arrival is to:to_path]
    L --> M[Verify gaining leg has file]
    L --> N[Verify losing leg lacks from:from_path]
Loading

File-Level Changes

Change Details Files
Adds the RULED Q6 re_destined manifest extension while leaving the landed manifest’s rows unchanged.
  • Documents the six-key form, required ruling citation, effective-arrival semantics, and declared-not-recut rationale.
  • Allows the optional field only on moved rows and validates its closed shape, paths, destination vocabulary, source-placement consistency, distinct destination, and chain prohibition.
  • Reports the number of re-destined rows, including zero, without changing row dispositions or source digest claims.
docs/opendox-carve-manifest.yaml
scripts/validate-carve-manifest.py
tests/carve_manifest/test_carve_manifest.py
Makes arrival verification operate on the effective destination and enforce vacation of the original placement.
  • Resolves gaining-leg ownership, paths, declared roots, walk admissions, digest checks, and phase-B edits through re_destined.to/to_path.
  • Adds arrival-not-vacated using lexists for files or symlinks left at from_path, with ruling-aware diagnostics and per-leg JSON/human summaries.
  • Keeps validation and arrival-verification effective-arrival readers aligned through dedicated parity tests.
scripts/verify-carve-arrival.py
tests/carve_arrival/test_verify_carve_arrival.py
Adds the runbook procedure and updates related operational references for ruled re-destination.
  • Introduces § 5.7 covering ruling capture, manifest amendment, validation, gaining-leg placement, losing-leg deletion, and independent verification of both legs.
  • Documents the new arrival finding and clarifies that the form does not alter digests, edits, dispositions, or carve metadata.
  • Corrects the existing tag-section reference from § 5.7 to § 9.
docs/opendox-cutover-runbook.md

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved validation and arrival-verification issues affect malformed forms, replica consistency, vacated-path ownership, and documented output.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds RULED Q6 support for declaring post-carve placement corrections, with validation, effective-arrival verification, tests, and documentation.

Changes:

  • Adds re_destined manifest grammar and validation.
  • Updates arrival checks for gaining and vacated destinations.
  • Adds comprehensive tests and operational guidance.
File summaries
File Summary
tests/carve_manifest/test_carve_manifest.py Tests re-destination grammar and validation.
tests/carve_arrival/test_verify_carve_arrival.py Tests effective arrivals and vacated paths.
scripts/verify-carve-arrival.py Verifies gaining and losing destination legs.
scripts/validate-carve-manifest.py Validates re-destination consistency and collisions.
docs/opendox-cutover-runbook.md Documents the re-destination procedure.
docs/opendox-carve-manifest.yaml Documents the Q6 form and governance rules.
Review details

Suppressed comments (4)

docs/opendox-carve-manifest.yaml:134

  • The repository's README manifest entry (README.md:80) still documents only the Q-L7 also_replicated_to/replica-edit extensions, while this new header adds the Q6 re_destined contract and ruling requirement. Because that entry is the active index for the carve records, landing this change without synchronizing it leaves the repository's public description stale; update the README summary (and its runbook summary if needed).
#   * `re_destined: {from, from_path, to, to_path, ruling, note}` ON A MOVED
#     ROW, OPTIONAL. It says: the carve placed these bytes at
#     `from`:`from_path`, a RULING has since moved that placement, and the
#     arrival the floor now asks about is `to`:`to_path`. `from` is the row's
#     own `destination` and `from_path` its own `destination_path`, and the row

scripts/verify-carve-arrival.py:1310

  • check_vacated treats any entry at from_path as the original row left behind. That rejects the lawful refill case this PR explicitly allows in the manifest validator: when another row's effective arrival uses the vacated path, the gaining row is verified successfully, but this lexists check still raises arrival-not-vacated. Pass the verified effective-arrival/replica paths into this check (or otherwise verify ownership) so only an unclaimed leftover is rejected.
        target = dest_root / relpath
        if not os.path.lexists(target):
            continue

scripts/verify-carve-arrival.py:1190

  • relpath is now the effective re_destined.to_path, but the phase-B path still calls _check_declared_lines without passing it as at. An undeclared edit on a re-destined row will consequently report the original destination_path (the losing leg) in its refusal instead of the path that was checked. Pass at=relpath to keep the diagnostic aligned with the effective arrival.
        # THE EFFECTIVE PATH (RULED Q6): `re_destined.to_path` where a ruling
        # moved the placement, else the row's own. Everything below — the
        # mode, the digest, the phase-B diff against the carve blob — is the
        # row's unchanged; only the address is.
        relpath = arrival_path(row)

scripts/verify-carve-arrival.py:1020

  • effective_arrival treats any mapping with string to and to_path as a valid re-destination, but this verifier explicitly does not revalidate row shape. A block missing from/from_path/ruling can therefore make the gaining leg accept the new path while vacated_rows skips the old path, allowing a malformed manifest to pass both legs. Require the complete form before switching the effective arrival (and add a subprocess regression), otherwise fall back to the original destination so the validator's shape finding remains authoritative.
    if isinstance(re_destined, dict):
        to = re_destined.get("to")
        to_path = re_destined.get("to_path")
        if isinstance(to, str) and isinstance(to_path, str):
            return to, to_path
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/validate-carve-manifest.py Resolved
Comment thread scripts/validate-carve-manifest.py Resolved
brettheap and others added 2 commits September 12, 2026 19:20
…o`, and

print the re-destination count at zero too (Copilot round 1, PR #1011)

Two findings from the first Copilot review, both accurate:

`check_disposition_consistency`'s "a row may not be also-replicated at its
own destination" guard compared `also_replicated_to` against the row's raw
`destination`, never against `re_destined.to`. A row re-destined to X that
also listed X in `also_replicated_to` therefore passed here, and
`verify-carve-arrival.py` would go on to silently drop the now-redundant
replica at the one place the row actually arrives today — two tools reading
the same row two ways. The guard now reads `effective_arrival(row)`, the
same helper check 4's duplicate-arrival map already uses, so the manifest
validator — the gate that runs first — refuses the contradiction before the
arrival verifier ever sees it.

The human-readable summary line's `RE-DESTINED by ruling` clause was printed
only when the count was truthy (`if summary["re_destined"] else ""`), which
contradicted the two-line comment directly above it ("printed on every run
... whether the number is 0 or 48") and the manifest header's own claim
("the count is printed on every run ... at zero"). The landed manifest's own
current state — zero re-destined rows — was therefore the one count this
line never actually showed; `--json` always had it. The clause is now
unconditional.

Two new tests in the RULED Q6 block cover both: the effective-destination
refusal (plus a contrast case proving a replica still declared at the row's
ORIGINAL, now-vacated destination is not the same violation), and the
zero-state human line. `python3 scripts/validate-carve-manifest.py` and the
three carve suites (301, was 298) stay green.

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Three moderate review findings remain in the manifest validator and arrival verifier.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

scripts/validate-carve-manifest.py:1960

  • destinations: deliberately permits two keys with the same {repository, leg} body (the duplicate-arrival check resolves aliases to that physical destination), but this guard only compares the key strings. A row can therefore pass from key_a to an alias key_b for the same checkout; the arrival verifier will treat that one checkout as both the gaining leg (requiring to_path) and the losing leg (requiring from_path to be absent), while a same-leg path move is explicitly outside this form. Resolve from and to to their destination bodies and reject re-destinations whose physical destination is unchanged.
    if re_destined.get("to") == re_destined.get("from"):
        raise CarveRefusal(
            "carve-disposition-inconsistent",
            f"{where} declares `re_destined:` from {re_destined.get('from')!r} "
            "to the same destination. RULED Q6 makes `to` a `destinations:` "
            "key that is NOT `from`: a re-destination that lands where it "

scripts/verify-carve-arrival.py:2000

  • When every moved row originally assigned to a leg is re-destined away, rows_for() is empty and replica_placements can also be empty, so this new vacated-only run skips require_commit(). It can then return success against a source repository that does not carry the manifest's carve_commit, despite the verifier's documented arrival-unreadable precondition. Compute vacated before the guard and include it in the condition.
    vacated = vacated_rows(doc, destination)
    check_vacated(vacated, dest_root)
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/verify-carve-arrival.py Resolved
`arrival-not-vacated` (Copilot round 2, PR #1011)

`check_vacated` raised `arrival-not-vacated` on ANY entry at a row's
`re_destined.from_path`, without asking whether that entry belongs to a
DIFFERENT row's own effective arrival at this same leg. A legitimate refill
— one row re-destined away from a path, another row's own row moving into
it, exactly `test_carve_manifest.py`'s
`test_another_row_may_move_into_the_path_a_re_destination_vacated` already
proves `validate-carve-manifest.py` allows — would therefore have refused a
tree the manifest itself accepts, on a leg `rows_for()` had already verified
the refilling row present at moments earlier in the same run.

`check_vacated` now takes the leg's own `rows_for(doc, destination)` result
(already computed at the `verify()` call site, right before this runs) and
excludes any path claimed by one of those rows' own `effective_arrival`
before testing `lexists`. Every path no row claims is refused exactly as
before.

New test in `tests/carve_arrival/test_verify_carve_arrival.py`:
`test_another_rows_arrival_at_the_vacated_path_is_a_lawful_refill`, the
arrival-verifier twin of the manifest-side test named above. Confirmed it
fails against the pre-fix code (`arrival-not-vacated`, same finding
Copilot named) and passes with it. The three carve suites: 302 passed (was
301).

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 23:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical and moderate findings remain in path validation, placement uniqueness, replica handling, alias handling, and the runbook procedure.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

Previously missed (1) — in code that hasn't changed since the last review.

scripts/validate-carve-manifest.py:1745

  • This effective-arrival map now allows two rows to share the same original (destination, destination_path) whenever both are re-destined to different effective paths. That hides an impossible carve state: from/from_path are explicitly the placements made by the original carve, and two source blobs could not both have occupied that path. Keep a separate uniqueness check for the original placements while using this map for current effective-arrival collisions.

docs/opendox-cutover-runbook.md:990

  • The new runbook procedure unconditionally says to delete from_path, but Q6 validation also permits a re-destined row to list its original destination in also_replicated_to. If that legitimate replica is placed at the old path, deleting it makes --replica-at fail with arrival-missing, while the current verifier rejects the retained path before checking replicas. Clarify this case in the procedure and align it with the verifier's replica-placement handling.
   * **LOSING**: delete the file at `from_path` — that deletion is the whole
     content of the commit — and re-run the same invocation with
     `--destination <from>`. Its line must carry `N re-destined AWAY and
     verified vacated`. A copy left behind refuses `arrival-not-vacated`.

scripts/verify-carve-arrival.py:1190

  • The phase-B branch below still calls _check_declared_lines without passing the effective relpath computed here. For a re-destined row, an arrival-undeclared-edit refusal therefore names the stale row['destination_path'] instead of re_destined.to_path, sending the operator to the losing leg's path rather than the file that was actually checked. Pass the effective path as the helper's at argument.
        relpath = arrival_path(row)

scripts/verify-carve-arrival.py:1057

  • This filter still compares the destination alias directly, while the manifest validator deliberately permits aliases with the same {repository, leg} and treats them as one physical arrival. With Q6, a row can be re-destined away from alias_a:path while another row legitimately arrives at alias_b:path; validating the shared checkout with --destination alias_a does not include the latter in rows, so check_vacated reports a false arrival-not-vacated. Resolve the current destination to its repository/leg and include all effective arrivals for that physical leg in both the owed and vacated-path calculations.
    return [row for row in doc["rows"]
            if isinstance(row, dict)
            and row.get("disposition") in MOVED_DISPOSITIONS
            and effective_arrival(row)[0] == destination]
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread scripts/verify-carve-arrival.py Resolved
Comment thread scripts/verify-carve-arrival.py Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction

STOPPED at the round cap — not readied, not gate-landed this turn.

Head 2c31fd66. pytest-suite run 34726359257 SUCCESS. Merged origin/main
(#1009+#1010) clean; re-derived and cross-checked every total this
branch's own prose cites against the live tool post-merge (456 rows, 318
digests, 5 destinations, 3 edit classes, 4 not_moved reasons — all
structurally invariant under S4/S6, since neither slice adds or removes a
row/destination/class/reason). Two rounds of Copilot fixes, both within
budget:

  • Round 1 (f546b7b9): the two threads named in the brief —
    also_replicated_to compared against the row's raw destination instead
    of the EFFECTIVE one (re_destined.to), and the human-readable summary
    line suppressed the RE-DESTINED by ruling clause at zero. Both fixed,
    two new tests, threads replied and resolved.
  • Round 2 (2c31fd66): verify-carve-arrival.py's check_vacated refused
    arrival-not-vacated on a LAWFUL refill — a different row's own effective
    arrival legitimately occupying the path a re_destined: row vacated.
    Fixed (keys off the leg's own rows_for(), the same "effective arrival"
    reading the manifest validator's check 4 already uses), one new test,
    thread replied and resolved. Confirmed the new test fails against the
    pre-fix code with exactly Copilot's own named finding.

The review of round 2's own push (2c31fd66) surfaced two MORE findings.
Both investigated and replied to with evidence (not resolved, per this
PR's 2-round Copilot budget already spent on the two pushes above):

  1. re_destined.to_path/from_path reach dest_root / relpath unguarded
    for an absolute or ../-escaping value IF this tool is invoked directly
    on a manifest that skipped validate-carve-manifest.py (which already
    runs both through _require_closed_relative_path, symmetrically with
    destination_path). Accurate as a theoretical characteristic, but NOT
    new here: ordinary destination_path has had the identical unguarded
    join in check_arrivals all along, by the same by-design trust boundary
    this file's own docstring states ("READS the manifest and does not
    revalidate it"). A fix would need to guard destination_path too, to
    stay symmetric — a broader hardening pass outside this PR's brief, not a
    regression it introduces.
  2. The round-2 claimed set only excludes PRIMARY rows'
    (rows_for()) effective arrivals from the vacated-path check, not
    --replica-at-declared or also_replicated_to/replicated_at_destination
    replica placements, which check_replicas verifies AFTER check_vacated
    runs. A replica legitimately declared at a vacated path would hit the
    same false refusal the round-2 fix just repaired for a sibling row. This
    one IS a real gap in round 2's own fix, not a pre-existing pattern — the
    shape of the fix is small (extend the excluded set with
    replica_placements.values() plus the declared replica paths, all
    already computable before check_vacated runs) if a further round is
    authorized.

Both threads left UNRESOLVED (not fixed, honestly reflecting that). 5
threads total, 2 unresolved. No gh pr ready, no gate-land.sh this turn.

…vacated

path (Copilot round 3, PR #1011; lane-collision ruling authorized)

`check_vacated`'s round-2 fix excluded a path from the vacation question only
when another PRIMARY row's own effective arrival (`rows_for()`) claimed it —
a declared REPLICA (`--replica-at`, matching a `not_moved /
replicated_at_destination` row or a moved row's `also_replicated_to:`) is
never one of `rows_for()`'s rows (RULED OQ-C: a replica declares no
`destination`), so it was invisible to that fix and a legitimate replica
refill at a vacated path still read as un-vacated.

`check_vacated` now also takes `declared_replica_paths` —
`replica_placements.values()`, the exact same declarations `check_replicas`
verifies immediately afterward — and excludes them too before testing
`lexists`. `parse_replica_placements` has already held every entry to the
manifest's own replica vocabulary for this destination, so a path is
excluded here only where the manifest and the operator agree a replica
belongs; `check_replicas` still runs after and still verifies the bytes are
actually right. First-failure order over the set of questions this leg
answers is unchanged.

New test: `test_a_declared_replica_may_refill_a_re_destinations_vacated_path`
— confirmed it fails against the pre-fix code with exactly the finding's own
`arrival-not-vacated`, and passes with the fix. Three carve suites: 303
passed (was 302).

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 00:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved validation, replica-handling, and documentation issues remain.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (5)

docs/opendox-carve-manifest.yaml:157

  • This summary overstates the losing-leg invariant: the verifier intentionally permits a lawful refill when from_path is claimed by another effective arrival or an explicitly declared replica, and only raises arrival-not-vacated for an unclaimed entry. As written, this says every re-destined path must be empty and conflicts with the implemented/tested refill behavior; document the exception here.
# that uses it, under its own claim and its own pull request, and every count
# in this file is therefore unmoved by this landing. `re-destined 0` is what
# `scripts/validate-carve-manifest.py` prints for this document until then —

scripts/validate-carve-manifest.py:1959

  • This only compares the destination labels. The validator explicitly permits two destinations: keys to share the same {repository, leg} body, so from: alias_a and to: alias_b can pass while the physical losing and gaining legs are the same. That contradicts the code's own rule that a same-leg path change is not this form; compare the resolved destination identities (or reject this case) before accepting the re-destination.
    if re_destined.get("to") == re_destined.get("from"):
        raise CarveRefusal(
            "carve-disposition-inconsistent",
            f"{where} declares `re_destined:` from {re_destined.get('from')!r} "
            "to the same destination. RULED Q6 makes `to` a `destinations:` "

scripts/validate-carve-manifest.py:1745

  • This loop now keys uniqueness only on the effective arrival, so it no longer detects collisions in the original carve placement. If two moved rows share the same raw destination/destination_path and both are re-destined to distinct new paths, their effective keys differ and this manifest passes even though both from/from_path claims say the carve placed two blobs at one physical path. Keep a separate historical-origin uniqueness check while retaining this effective-arrival map for current collisions and lawful refills.
        dest_key, dest_path = effective_arrival(row)
        dest_entry = destinations.get(dest_key)
        if dest_entry is not None:
            arrival = (dest_entry["repository"], dest_entry["leg"], dest_path)

scripts/verify-carve-arrival.py:1340

  • When a re-destined row lists its original destination in also_replicated_to, the manifest deliberately permits that replica (the validator and also_replicated_rows() both treat the original leg as a replica). An undeclared replica is supposed to be admitted by matching the carve blob during check_undeclared_files, but this pre-walk set only exempts explicit --replica-at paths, so a valid copy at from_path is rejected as arrival-not-vacated before the documented replica admission runs. Account for allowed also_replicated_to replicas here while still letting the later walk reject wrong bytes.
    claimed = {arrival_path(r) for r in (arriving_rows or [])}
    claimed.update(declared_replica_paths or ())

tests/carve_arrival/test_verify_carve_arrival.py:1313

  • This added test records a third-round Copilot fix, while the PR description still says round 2 is the final budget and that no third fix commit was made. Please update the PR description and reported test total/history so the review record matches the implementation shown here.
    (Copilot review, PR #1011, round 3): a replica the OPERATOR declares at a
    path a `re_destined:` row vacated on this same leg is a lawful refill too
    — `neutral.py` is not a row `rows_for()` ever returns (RULED OQ-C), so it
    was invisible to round 2's own fix and read as the vacated row's
    abandoned copy. `check_vacated` runs before `check_replicas` builds and
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread docs/opendox-cutover-runbook.md Resolved
… lawful

refill (Copilot round 4, PR #1011)

Step 4's LOSING bullet unconditionally instructed deleting the file at
`from_path`, but rounds 2 and 3 of this PR's own Copilot review taught
`check_vacated` that a path is not un-vacated when another row's own
effective arrival, or a declared `--replica-at` replica, legitimately claims
it at this same leg — a lawful refill the tool now excludes from the
vacation question entirely. Following the procedure as written in that case
would delete the OTHER row's or replica's own file and turn a valid refill
into a real defect.

The step now makes the deletion conditional on there being no such claim,
and says what the commit is instead when there is one (that arrival's or
replica's own act, not this leg's re-destination commit). The verifier
invocation and its two expected lines are unchanged either way.

Docs-only. `validate-carve-manifest.py` OK, 456 rows; the three carve suites
303 passed (unchanged).

Refs #656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 00:58
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved validator and arrival-verification findings block approval.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

scripts/validate-carve-manifest.py:2004

  • The chain map uses (destination key, path), but the manifest deliberately treats keys sharing a {repository, leg} body as aliases and check 4 resolves them to one physical destination. Consequently, row A can be re-destined to alias_b:p while row B is re-destined from alias_a:p (same leg) and this chain passes because the key strings differ. Key the chain comparison on the resolved (repository, leg, path) identity, consistent with the duplicate-arrival check.
    origins: dict[tuple[str, str], int] = {}
    for index, row in enumerate(doc["rows"]):
        re_destined = row.get("re_destined")
        if not isinstance(re_destined, dict):
            continue
        origin = (re_destined.get("from"), re_destined.get("from_path"))
        if all(isinstance(part, str) for part in origin):
            origins.setdefault(origin, index)  # type: ignore[arg-type]
    for index, row in enumerate(doc["rows"]):
        re_destined = row.get("re_destined")
        if not isinstance(re_destined, dict):
            continue
        arrival = (re_destined.get("to"), re_destined.get("to_path"))
        other = origins.get(arrival)  # type: ignore[arg-type]

scripts/validate-carve-manifest.py:1745

  • Keying the duplicate map only on effective arrivals allows two rows to retain the same original destination/destination_path while both are re-destined to different places; no current arrivals collide, so the validator accepts a manifest claiming that the carve put two blobs at one path. The lawful refill case should be the only exception, when another row actually claims that old path as its effective arrival; otherwise preserve a check for this historical collision.
        dest_key, dest_path = effective_arrival(row)
        dest_entry = destinations.get(dest_key)
        if dest_entry is not None:
            arrival = (dest_entry["repository"], dest_entry["leg"], dest_path)

scripts/verify-carve-arrival.py:1191

  • The new effective-path branch still calls _check_declared_lines(row, carve, data) without passing relpath (the helper defaults its error location to the raw row["destination_path"]). If a re-destined row has an undeclared phase-B edit, arrival-undeclared-edit will therefore name the vacated path instead of the actual re_destined.to_path, misdirecting the operator and contradicting the effective-arrival contract documented above. Pass at=relpath at this call site, or make the helper's default use arrival_path(row).
        # THE EFFECTIVE PATH (RULED Q6): `re_destined.to_path` where a ruling
        # moved the placement, else the row's own. Everything below — the
        # mode, the digest, the phase-B diff against the carve blob — is the
        # row's unchanged; only the address is.
        relpath = arrival_path(row)

scripts/verify-carve-arrival.py:1058

  • rows_for still matches the effective destination by its alias string, while the validator permits aliases sharing one {repository, leg} and resolves them as one physical leg. A lawful refill can therefore use alias_b for another row at the path vacated by a row whose from is alias_a; validating --destination alias_a omits that arrival and check_vacated raises arrival-not-vacated even though the same destination tree contains a legitimate replacement. Match effective arrivals by the resolved repository/leg identity (and apply that consistently to the other per-destination filters).
    return [row for row in doc["rows"]
            if isinstance(row, dict)
            and row.get("disposition") in MOVED_DISPOSITIONS
            and effective_arrival(row)[0] == destination]
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/validate-carve-manifest.py Resolved
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction

STOPPED again after round 4 — not readied, not gate-landed this turn.

Head 421974a3. pytest-suite run 34729342717 SUCCESS.

Per the lane-collision ruling: thread PRRT_kwDOTAvnrs6h0vu7 (absolute-path
escape) is DECLINED by design (pre-existing, symmetric with destination_path,
not a regression this PR introduces) and resolved. Thread
PRRT_kwDOTAvnrs6h0vvE (replica placements excluded from the vacated-path
check) was a real completeness gap in round 2's own fix — fixed at
ad0b1846 (round 3): check_vacated now also excludes
replica_placements.values(), new test
test_a_declared_replica_may_refill_a_re_destinations_vacated_path
(confirmed failing pre-fix, passing post-fix), 303 passed. Thread replied
and resolved.

Round 3's own review surfaced one more, accurate and small (round 4,
authorized, fixed at 421974a3): the cutover runbook § 5.7 LOSING-leg step
unconditionally said to delete from_path, which rounds 2/3 could now make
wrong (a lawful refill legitimately occupies that path). Made the deletion
conditional. Docs-only, 303 passed unchanged. Thread replied and resolved.

Round 4's own review surfaced a further finding — NOT fixed, reply posted
with evidence, thread left UNRESOLVED: to == from's re-destination
inconsistency check (and the chain check) compares destinations: KEYS,
not their RESOLVED (repository, leg) identity, so a manifest with two
alias keys sharing one physical destination could pass a re-destination
that is really just a path change at the same leg. Checked against the REAL
manifest: all 5 destinations: keys resolve to distinct (repository, leg) pairs today, so nothing live triggers this. The fix Copilot proposes
would read RULED Q6's own text ("to (a destinations: key ≠ from)") more
strictly than its words say — a ruling question, not an implementation bug
— and touches two functions plus the mirrored reader in
verify-carve-arrival.py together. Beyond the round-4 cap and structural;
flagging for the orchestrator.

7 threads total, 1 unresolved. No gh pr ready, no gate-land.sh this turn.

@brettheap
brettheap marked this pull request as ready for review September 13, 2026 01:21

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 5 days by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 880c821 into main Sep 13, 2026
14 checks passed
brettheap added a commit that referenced this pull request Sep 13, 2026
… — four re_destined rows (#1023)

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN). RULED Q1–Q12 at #656 comments 5648044785 (Q5, Q1, Q3 and the boundary
note's own Q6), 5648049748 (Q2, Q4, Q7, Q8), 5648065587 (Q9–Q12), with the counterpart-Q6
correction at 5649094228 — Brett Heap, 2026-09-12, by interactive multi-choice.
CLAIM: #656 comment 5648073924.

The openxFactory half RULING Q-L1 requires of § 3.4 slice S5 — the row annotation that lands
BEFORE its two leg PRs (opensoft/openDox-code#20, the shell half; opensoft/openXdox-code#18,
the column half). Stacked on #1011 and the FIRST act to use its `re_destined:` form.

FOUR RE-DESTINATIONS. RULED Q5 makes the gate loop a CONTRIBUTED column, so the rows for
`web/views/{gate,dispose,swb-create,swb-session}.js` keep their own `destination` and
`destination_path` untouched — that is why the ruling made this a FIELD rather than an edit —
and gain `re_destined:` from `src/opendox/web/views/` to `src/openxdox/web/views/`.
`views/gate-lens.js` and `views/gate-projects.js` are the other two modules and they move a
different way: slice S4 CREATED them, so they have no row (RULED OQ-C) and a field of a row
cannot carry them. They move by ADMISSION — off `opendox_code`'s `created:` list and onto
`openxdox_code`'s in the same diff — and `tests/carve_arrival/` now asserts BOTH halves, because
a one-sided move is exactly the drift that produces a stale admission nobody reads.

SIXTEEN declared-edit entries over ELEVEN rows, every line number a carve-commit line
(`b075fd91…`, `opendox-carve-0`) taken from the arrival verifier's own refusal output and every
class one of RULING OQ-1's three: `serve.py`, `web/app.js`, `web/views/wheel.js`,
`web/views/staging-workbench.js` (the one disposition change, moved_verbatim →
moved_with_declared_edit) and `test_bullseye_widget.py` at `opendox_code`; `gate.js`,
`dispose.js`, `swb-create.js`, `swb-session.js`, `test_session_confinement.py` and
`test_staging_workbench.py` at `openxdox_code`. `test_gate_console.py` needed no new
declaration — its existing `path constants` lines are :1627, :1785 and :1786 exactly — and this
is stated rather than omitted, because "already declared" and "not noticed" look identical in a
manifest diff. EIGHT admissions added and TWO removed, each `since` its file's OWN introducing
commit rather than a leg's tip.

The aggregate pair is re-derived by summing the applied manifest, never carried forward:
declared edit LINES 1422 → 1584 over 158 → 159 rows carrying `edits:`; moved_verbatim 161 → 160,
moved_with_declared_edit 157 → 158, not_moved 138 unchanged, rows RE-DESTINED by ruling 0 → 4;
`import rewrites` 684 → 708, `adapter calls` 536 → 674, `path constants` 202 unchanged. The four
documents that carry those totals as ABSOLUTES — runbook § 2, the README runbook entry and the
two scripts' docstrings — are re-derived in the same commit. `carved_reach.py` and the dashboard
source scan now resolve through the EFFECTIVE arrival, so a re-destined file is never read at a
vacated path.

Verified against fresh read-only clones of both final leg heads: `validate-carve-manifest.py`
OK — 456 rows at `b075fd91`, 160/158/138, 4 RE-DESTINED by ruling; `verify-carve-arrival.py
--destination opendox_code --phase B` OK — 119 rows arrived, 52 digests verified, 66
declared-edit rows within their lines, 4 re-destined AWAY and VERIFIED VACATED, 18 declared
admissions used; `pytest tests/carve_manifest tests/carve_arrival` → 263 passed.

Three `openxdox_code` `arrival-undeclared-edit` refusals (`gate_console.py`, `generator.py`,
`test_generator.py` — openXdox-code #14's § 4.4 code half and #16's RULING-C2 follow-up) are
LISTED, not ABSORBED: this PR does not invent declared-edit notes for work this lane did not do,
and with those three remedied in a scratch manifest the destination answers OK with no further
refusal and no new admission. RULED Q7's CSS extraction stays OWED, and so does the gate column's
transport-failure handling (ruled out of S5's scope by the lane, 2026-09-13): neither is
expressible in OQ-1's closed three-class vocabulary.

Copilot rounds 1–3 taken, all five threads accurate and fixed: the manifest header still saying
no row carries `re_destined:`; the test's aggregate note saying TEN edited arrived rows where the
sections cover ELEVEN; the runbook § 2 "NO ROW CARRIES IT TODAY" sentence surviving beneath the
new totals; `carved_reach.py` resolving `source()`/`sources_under()`/`shed_destination()` from the
RAW destination, which would have linked the dashboard at a path the paired leg vacates; and the
shared `carve_lines.py` line-definition docstring still declaring 1422.

Plain gate: pytest-suite run 34734492609 SUCCESS at 0b99297; six required checks green
(pytest-suite, lane-line, wallet-validation, release-tag-gate, openspec-cli-pin,
signed-execution-chain-gate); 5 threads / 0 unresolved (Sourcery review skipped = advisory).
brettheap pushed a commit that referenced this pull request Sep 13, 2026
…tes the first re-destination

Copilot round 3 on #1025, one thread, accurate. `_check_re_destined_chains`'s
docstring still said the chain map is "KEYED ON `(destination key, path)`"
while the code it documents had been changed, one commit earlier, to key on
the resolved `(repository, leg)` body — and the sentence that said so was an
inline comment BELOW the false docstring. A contract stated twice, once
wrongly, is how a later edit restores the raw-label comparison believing it is
restoring the documented behaviour. The two are folded into one statement, in
the docstring, with the reason the key cannot be read here (a chain spelled
across two aliases of one leg is the same chain) and the unknown-key fallback
that keeps `check_vocabulary`'s refusal its own.

And, found while fixing it: three sentences in the two validators called slice
S8 "the act that writes the first real `re_destined:` rows". That is no longer
true. RULED on `#656` comment 5656343213 — "the path
constant moves, the file does not" — S8 writes ZERO `re_destined:` rows; the
first real four are slice S5's, landed at #1023. S8 is the act that first
READS live rows, which is why the resolved-identity follow-up registered at
#1011's landing is discharged here, and the corrected sentences say that.

Refs #656 (stays OPEN).

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 14, 2026
…e tools, tests, runbook § 5.8

Lane: openxfactory-4

The FOURTH grammar extension and the SECOND about PLACEMENT: an optional
`retired: {at, at_path, ruling, surface, note}` on a MOVED row, saying that a
RULING has DELETED an arrival the carve made. `at`/`at_path` are the row's
EFFECTIVE arrival (so a row may be re-destined by Q6 and THEN retired),
`surface:` is held to a `not_moved` row of this manifest, `ruling:` is
REQUIRED. Zero rows use the form here, exactly as RULED Q6 landed at #1011.

validate-carve-manifest.py: three own codes — carve-retired-not-moved,
carve-retired-unruled, carve-retired-surface-live — plus the existing
vocabulary/consistency arms for `at` and for at/at_path vs the effective
arrival; check 4 stops RESERVING a retired row's arrival; the summary counts
`retired` separately and the human line prints it UNCONDITIONALLY, zero
included. verify-carve-arrival.py: rows_for() drops a retired row and
check_retired requires at_path ABSENT before the walk (arrival-not-retired),
excluding a lawful refill from the first line; the summary LISTS the
retirements with surface and citation. carved_reach.py: CarveRowRetired (a
subclass of ShedModuleHasNoDestination) from source()/module()/shed_relpath(),
omitted from sources_under().

Manifest header, runbook § 2 + § 2.1 + new § 5.8 and the README doc index
carry the form; § 5.8 also records what it CANNOT express (a PARTIAL
retirement — part of an arrived file — which is an ordinary declared edit, not
this block). 37 new tests; 303 carve-suite tests pass.

Refs #656 (stays OPEN). RULED 5656343213 — Brett Heap, 2026-09-13, by
interactive multi-choice, on the question slice S8's author put in #656
comment 5650335573 § 2. CLAIM: #656 comment 5656690570.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 15, 2026
…ot yet a block that leg has READ

Lane: openxfactory-4

THREE THREADS, TWO OF THEM ONE FINDING. Round 3 asked the placement question
on `rows_for()`'s side, where a deleted file was passing silently. It left the
other side unasked: `retired_rows()` selects on `retired.at` — ONE field of
five — so at the leg the BLOCK names, nothing about the block had been read at
all when its `at_path` was joined to `--dest-root` and asserted ABSENT. A
check whose pass condition is absence cannot afford that, because every
reading it fails to make answers its question "yes".

MEASURED AGAINST THE PREVIOUS COMMIT, all five cases, before this message was
written:

  * A misplaced block that NOBODY HAD ACTED ON yet passed BOTH destination
    runs: the file is where the row says, so `check_arrivals` verifies it, and
    the path the block names was always empty, so the retirement "verified"
    too. `{"result": "ok"}`, exit 0, with `retired:` in the JSON naming
    `src/pkg/beta-under-another-name.py` — a path no ruling emptied, counted
    as a retirement this run had proved.
  * The same shape at the leg the block NAMED reported the retirement and
    exited 0 (the second half of round 3's own `..._naming_another_leg_...`
    case, which is why that assertion is amended here rather than added to).
  * With a LIVE FILE at the named path it refused `arrival-not-retired`,
    whose own sentence reads "Delete it in the commit that lands the
    `retired:` block" — an instruction to delete a file no ruling touched,
    issued on the strength of a block about another row's placement.
  * With the named path another row's OWN ARRIVAL, the `claimed` exclusion
    that a lawful refill needs (PR #1011) hid the defect completely: exit 0.
  * `retired.at_path: ../dest-scratch_spec/examples/gamma.py` — the fixture's
    legs are siblings, which is the `..` hazard at scale — refused
    `arrival-not-retired` about THE OTHER LEG'S live arrived file; with
    nothing at the other end of the `..` it exited 0, having proved a path
    outside the tree empty and called that a retirement.

THE REPAIR IS ONE FUNCTION AND IT SITS BEFORE THE JOIN. `retired_placement()`
makes the two readings the join depends on — `at_path` must be a plain path
inside `--dest-root` (`_plain_relative_path`, this file's mirror of
`carved_reach._closed_relative_path`), and the block must name THIS ROW'S OWN
effective arrival — and refuses `arrival-unreadable` otherwise. `check_retired`
calls it BEFORE the `claimed` exclusion, deliberately: a lawful refill is a
reason not to ask the ABSENCE question, never a reason to stop reading the
block that asked it.

NOT A SECOND OPINION ON THE DOCUMENT, and the distinction is `_referent_blob`'s
and `read_manifest`'s. Both defects belong to `validate-carve-manifest.py` —
`_require_closed_relative_path` and check 6's `carve-disposition-inconsistent`
— and both refusals name it. What is refused here is not the document: it is
the ANSWER THIS RUN WOULD PRINT ABOUT A LEG, which no other tool is in a
position to refuse, because no other tool is holding a `--dest-root`.
`retired_at` is untouched, so the three tools still mirror one predicate;
`retired_rows` still selects on the BLOCK, because where a row is CHECKED is a
selection's question and whether the block could be read at all is one frame
further on.

THE THIRD THREAD is the two remaining unguarded `shed_relpath()` call sites,
and they are the only two that must NOT translate the refusal into a finding.
`doxbench_contracts._validator_in_checkout()` is evaluated into the module
constant `VALIDATOR_IN_CHECKOUT`, one of `PUBLISHER_MARKERS`, so it runs at
IMPORT: an uncaught `CarveRowRetired` there would not be a finding at all — it
would take down the import of the module whose whole job is
`ContractPinError`-or-absence, for every consumer, on the day the validator row
was retired. `_composed_validator()` asks the same question of the same row to
decide whether there is anything to compose. Each now answers the module's own
controlled absence: the pre-shed spelling, whose `exists()` is False — a
retirement means the file is at NO checkout — and the validator the composer
was handed, which is its `moved is None` answer for the same reason. Named
catches, not a widened `except ImportError` around the call, though
`CarveRowRetired` is one: folding them together would conflate "this checkout
carries no manifest" with "a ruling deleted this row" and swallow a genuine
import failure as well.

Tests: four in `tests/carve_arrival/` (three end-to-end runs of the shipped
script, because "passes silently" is a property of the exit code, plus
`retired_placement` called directly) and one in `tests/carve_manifest/` for the
sixth and seventh call sites, beside the five round 1 and round 2 found. Prose
followed: the file header's retirement section, `check_retired`'s and
`retired_rows`' docstrings, and cutover runbook § 5.8 step 4, which now tells
an operator that either refusal is repaired in the openxFactory row and not at
the leg.

Evidence at this commit: `tests/carve_manifest tests/carve_arrival
tests/carve_conformance tests/opendox_pin tests/openxdox_pin` -> 459 passed
(carve_arrival alone 145, was 141). `scripts/validate-carve-manifest.py` -> OK,
456 rows, 0 RETIRED. `scripts/verify-carve-arrival.py --destination
opendox_code --dest-root <openDox-code@8efb3cf5> --phase B --replica-at
tests/ideation-dashboard/conftest.py=tests/conftest.py` -> OK, 119 rows
arrived, 4 re-destined away verified vacated.

Refs openxFactory#656 (stays OPEN). RULED 5656343213. CLAIM: #656 comment
5656690570.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 15, 2026
…ading it deliberately skipped

Lane: openxfactory-4

ONE FINDING, SUPPRESSED RATHER THAN THREADED, and it is about the SENTENCE
this run prints. `check_retired` EXCLUDES a retired path that another row's
own effective arrival or a declared `--replica-at` replica lawfully occupies
— rightly, and from its first line, which is what PR #1011 cost
`check_vacated` to learn: the entry there is the refiller's and is verified on
the refiller's own terms. The summary then reported EVERY retirement as
"verified absent". So the only false case this line had was the one case where
a file really is sitting at the retired path — the case a reader would most
want it honest about, and the one an operator would act on.

MEASURED AGAINST THE PREVIOUS COMMIT, before this message was written. Two
retirements at one leg, one of them refilled by a declared replica:

  OK … 2 row(s) RETIRED here by ruling and verified absent (RULED 5656343213)

with `src/pkg/beta.py` occupied, in the same run that reported
`1 of 1 declared replica(s) verified` about the very file it had just called
absent. With this commit the same tree prints

  2 row(s) RETIRED here by ruling (RULED 5656343213), 1 verified absent and 1
  at a path a LAWFUL REFILL occupies — not asked, not owed absent:
  src/pkg/beta.py now holds a declared --replica-at replica

THE REPAIR IS A RETURN VALUE, NOT A SECOND READING. `check_retired` hands the
skipped retirements back BY NAME, each with its refiller, and `verify()` uses
that one answer; the alternative — re-deriving `claimed` in the caller — is the
second reading of one question that rounds 3 and 4 each refused. It returns
them in place of the row count `check_vacated` returns because nothing ever
read that count. The refiller is NAMED and not merely matched because
`--replica-at` is declared on the command line and not in the manifest, so a
reader of this output has no row to look the occupant up in.

WHAT DOES NOT CHANGE. The retirement itself: the row is still not owed here,
`rows_for()` still drops it, the floor still says the arrival is gone.
`retired_at` is untouched for the third round running, so
`test_all_three_tools_read_the_retirement_identically` still holds the
predicate equal across the three tools. And the ABSENCE question is asked
exactly where it was asked before — this commit changes what the run SAYS
about the paths where it was deliberately not asked, not which paths those are.

`--json`'s `retired[]` records carry the same answer in a stable shape:
`absence: verified|refilled` with `refilled_by` (null in the verified case,
present rather than omitted so a consumer never has to tell "this run did not
say" from "this run said absent").

Tests: the two existing lawful-refill cases are AMENDED rather than joined by
new ones, because the defect was in what those runs already said; plus one new
end-to-end case with TWO retirements, so the counts are seen to SPLIT rather
than switch, and a control run on the same manifest with the refill taken away
that prints the original sentence unchanged. All three fail against the
reverted script (`KeyError: 'absence'` twice, and the blanket sentence printed
over an occupied path once).

Evidence at this commit: `tests/carve_manifest tests/carve_arrival
tests/carve_conformance tests/opendox_pin tests/openxdox_pin` -> 460 passed
(carve_arrival alone 146, was 145). `scripts/validate-carve-manifest.py` -> OK,
456 rows, 0 RETIRED. `scripts/verify-carve-arrival.py --destination
opendox_code --dest-root <openDox-code@8efb3cf5> --phase B --replica-at
tests/ideation-dashboard/conftest.py=tests/conftest.py` -> OK, 119 rows
arrived, 4 re-destined away verified vacated.

Refs openxFactory#656 (stays OPEN). RULED 5656343213. CLAIM: #656 comment
5656690570.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 15, 2026
…his form

Lane: openxfactory-4

One suppressed finding, and the interesting part is that the comment it names is
not the one it thinks. `validate-carve-manifest.py:2559` — "Zero is the state
the file landed in" — sits above the **`re_destined`** counter, not the
retirement counter, and it has been stale since § 3.4 slice S5 re-destined four
rows, long before this act existed. The finding is right that it contradicts
what the file prints; it is wrong about which ruling's zero it is, and the
repair has to say so or the next reader inherits the same confusion one layer
down.

It now reads: zero was the state the file landed in AT RULED Q6 (PR #1011), it
has printed 4 since slice S5, and the retirement clause below prints 2 since
RULED 5656343213's first use. One clause each, both unconditional, so no count
is ever the state no log records — which is the point both comments were
written to make, and the reason they print at zero at all.

Measured, in the line the two clauses produce together:
`… 4 row(s) RE-DESTINED by ruling (RULED Q6); 2 row(s) RETIRED by ruling
(RULED 5656343213)`.

`tests/carve_manifest` -> 172 passed.

Refs openxFactory#656 (stays OPEN). RULED 5656343213. CLAIM: #656 comment
5656690570.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 15, 2026
…thirteen rows, one admission, and the resolved-identity reading of to != from (#1025)

Lane: openxfactory-4

Refs #656 (stays OPEN). RULED Q-L1 binds every § 3.4 slice (#656 comment 5642758731); the FORM is the
Q-L1 form ruled at 5628560136. RULED 2026-09-13 at #656 comment 5656343213 (Brett Heap, by interactive
multi-choice), both rulings this slice stands on. CLAIM: #656 comment 5649985838.

The openxFactory half RULING Q-L1 requires of § 3.4 slice S8 — the row annotation that lands BEFORE its
two leg PRs (opensoft/openXdox-code#19, the shed half; opensoft/openDox-code#23, the receive half).
Stacked behind #1023 (slice S5's annotation) and the S7 annotation, both merged in here.

NO RE-DESTINATION, AND THAT IS A MEASUREMENT. The slice is "re-home the 48 test files and un-narrow
validate", and § 6 Q6 built the re_destined: form directly for it. An ast walk of every module-level
Import/ImportFrom in the 23 mis-pointed files at openxdox_code says the inference holds for NONE of
them: every one imports a real openxdox module, and RULED OQ-G's TEST HOMES rule places a mixed file
there for exactly that reason. RULED at 5656343213 — "the path constant moves, the file does not":
S8 re-points 44 of the 46 ROOT SPELLINGS across 31 files through the PIN, re-homes 0 files, and this
annotation carries 0 re_destined: rows. Two of the 46 are correct as they stand and are named rather than
skipped — tests/test_gate_console.py:58 (S5 leg A places gate.js at that leg) and
tests/tools/playwright-smoke.py:282 (a tool, outside validate's list) — re-derived at landing against
c1ad341a and 080dcfcd, reproducing openDox-spec#11's second-instrument table exactly; #19's body records
the correction and the two figures it does NOT restate. § 5's S8 row and § 1.2(d)'s
inference do not stand as written; boundary-note amendment #3 rewrites them and re-measures 48 → 43, and
this PR owes it the measurement, which its § 1 table carries.

FOURTEEN DECLARED ENTRIES OVER THIRTEEN ROWS, FORTY LINES, every one class path constants — 11 at
opendox_code and 29 at openxdox_code; tests/ideation-dashboard/test_doxbench_mutation_boundary.py is the row
carrying two, because the second corrects the first. No disposition converts, no row becomes a carrier, no
referent digest moves, and S8's own re_destined count is 0. The aggregate moves as a DELTA ON SLICE S7, the act
this branch landed on: 2366 + 40 = 2406 declared edit lines over 176 rows — import rewrites
722, path constants 206 -> 246, adapter calls 1438 — re-derived by
test_the_real_manifest_carries_the_ruled_q_l7_amendment, which SUMS the merged document instead of quoting
either act. Each act states a delta and no act restates an absolute; that one test is where the absolutes live,
which is why this merge could not transcribe a figure from either side.

TWO SEMANTIC COLLISIONS WITH SLICE S7 THAT GIT REPORTS AS CLEAN, found by rehearsing the merge rather than by
discovering it live. (a) S7's new window pin read its thirty-three-row run as each row's TAIL; S8 annotates
THREE of those rows (test_bullseye_widget.py, test_doxbench_view.py, test_outline_model.py), so S8's entry
displaces S7's run by one and the tail read fails on a manifest in which nothing is wrong. Amended here as a
declared amendment: the run is pinned WHERE IT LIES and required to occur EXACTLY ONCE, which keeps every claim
the tail made and drops only "is last" - a property belonging to whichever slice annotated a row most recently
and to no slice permanently. (b) both acts wrote "AMENDED A SIXTH TIME" into the arrival tool's admissions
docstring; in landing order S7 is the sixth and S8 the SEVENTH, so both are kept and ours is re-numbered.

ONE ADMISSION. openxdox_code gains tests/opendox_bundle.py — a CREATED file (RULED OQ-C), resolving
Path(opendox.__file__).parent / "web", the resolution slice S5 already landed at that leg in
tests/test_gate_loop_probes.py::_opendox_bundle, building RULED Q5's COMPOSED root for the four suites
that assert across the seam.

THE RESOLVED-IDENTITY READING OF to != from, the follow-up registered at #1011's landing, discharged
here. to and from are compared on their resolved (repository, leg) bodies rather than as KEYS, in both
tools, held equal across them by test_both_tools_resolve_a_destination_key_identically. A destinations:
key is a LABEL, never a referent — check_shape deliberately admits two keys sharing one {repository, leg}
body — so an ALIAS PAIR passed the one check that is supposed to guarantee a re-destination MOVES the
file, and produced a document unsatisfiable at the destination. Seven new tests, both sides of the
discriminator. Three Copilot rounds each found one more reader comparing KEYS where the rest of the tool
compares resolved bodies: also_replicated_to, the governed admissions selection, and carved_reach.source()
(fixed on main by #1023 and merged here).

RESIDUE REGISTERED, NOT DISCHARGED: (1) the retired: row form — the carve floor cannot say an ARRIVED
row's file is withdrawn at its leg; RULED the NEXT carve-floor act. (2) the retirement of the three
intent-feed suites (openDox-code tests/test_intent_tray_dom.py and tests/test_wheel_verbs_dom.py;
openXdox-code tests/test_staging_workbench.py's ending replay) as a declared act citing OQ-F — it cannot
be written until (1) exists. (3) boundary-note amendment #3 at openDox-spec. (4) carved_reach
shed_relpath() and shed_commit_object(), which still read raw destination/destination_path; measured
unreached by any live row.

EVIDENCE, RE-DERIVED AT a94e20f AND NOT TRANSCRIBED: pair (2406, 176); import rewrites 722
+ path constants 246 + adapter calls 1438 = 2406; dispositions 143 / 175 / 138 over 456
rows; 318 moved; 20 replicas; 4 re_destined, all slice S5's; runbook per-destination 1667 / 26 / 703 / 9
summing to 2405 plus the one replica line naming no destination = 2406. scripts/validate-carve-manifest.py OK;
pytest -q tests/carve_manifest tests/carve_arrival -> 281 passed.

Plain gate: pytest-suite run 35035839896 SUCCESS at a94e20f, with clearing-dispatch-gate, lane-line,
merge-master-approval, openreposhape-pin, openspec-cli-pin, wallet-validation, release-tag-gate and
signed-execution-chain-gate all SUCCESS (SonarCloud advisory); 7 threads / 0 unresolved. Rule 6 does not
apply: this PR's file list is nine files, none under openspec/changes/, and its only README hunk is the
doc-index line for the cutover runbook, not the OpenSpec Records block.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 16, 2026
…it is absent, in the readers too

`_check_retired_shape` refuses a PRESENT blank `note:` — `carve-shape-invalid`,
"a note is prose or it is absent" — and the three copies of `retired_at` asked
only `isinstance(retired.get("note", ""), str)`. `note: ""` and `note: "   "`
therefore read as USABLE RETIREMENTS in all three tools and as a refused
document in the validator.

Fail-OPEN, through the one key the form makes optional. With the block read as
a retirement, `rows_for()` drops the row, `check_retired` asks for the file to
be ABSENT rather than present, and `carved_reach` raises `CarveRowRetired` at
every retained consumer — a required arrival silenced by a key nobody was
required to write, in a document the validator would have refused. Round 2's
paragraph in each docstring already says why "the validator would have caught
it" is no answer here: these three run at a leg and in consumers, routinely
before anyone validates the manifest.

All three predicates now carry the grammar's own rule — ABSENT, OR PROSE:

    and ("note" not in retired
         or (isinstance(retired["note"], str)
             and retired["note"].strip()))

`RETIRED_KEYS`, the four required strings and round 6's closed-set check are
untouched.

PROVEN BY REVERSION: reverting only the three tails (docstrings and tests left
in place) fails both `test_all_three_tools_read_the_retirement_identically`
and the new case; restored, both pass.

The identity test holds the three copies equal TO EACH OTHER, and three copies
can agree and all three be wrong about the document they read — which is what
this round found. `test_the_note_is_prose_or_absent_in_the_grammar_and_in_all_
three_readers` drives `_check_retired_shape` and the three predicates over the
same blocks in all three of the grammar's cases: a present blank note ("",
"   ", "\t\n") is `carve-shape-invalid` AND no retirement in all three readers;
real prose is admitted by the grammar AND read as a retirement by all three;
an absent note likewise. The last two are the control — without them the loop
would also pass against a predicate that had dropped `note:` from the form.
The identity table gains the two blank-note blocks beside round 6's rows.

Thread 1's cross-reference ("also appears on line 2523") is recorded rather
than dismissed: there is exactly one `note` read per tool (`grep -n
'retired.get("note"' scripts/*.py` — three hits), and :2523 at `e1f4e735` is
round 6's `roots = declared_roots(rows + retired)`, which reads no note.

MEASURED AND DELIBERATELY NOT SWEPT: `effective_arrival` (RULED Q6, landed at
#1011) reads `re_destined.note` not at all and does not close its key set. That
is looser and deliberate, in the OTHER direction — the asymmetry each
`retired_at` docstring already states: half a re-destination leaves the row
owed AT ITS ORIGINAL LEG, so one leg still asks; half a retirement read as one
asks nowhere. Registered for a later declared act.

Evidence: five carve suites 463 passed (was 462); `validate-carve-manifest.py`
OK, 456 rows, 0 RETIRED.

Refs #656 (stays OPEN). RULED 5656343213.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
… 48 declared lines, and the fourth row the replica reading hid (#1031)

Lane: openxfactory-4

Refs #656 (stays OPEN). CLAIM: #656 comment 5656688910. RULED Q-L1 binds every § 3.4 slice to a row
annotation that lands first (#656 comment 5642758731); this act is the OTHER half of that rule — the
edits that landed BEFORE it existed and that no slice ever owned.

openXdox-code #14 (`3840c167`, § 4.4 RULING C2, 2026-09-11 20:41Z) and #16 (`17384c07`, the
DRAFT_STATUS/STAGED_STATUS late resolution, 2026-09-12 00:21Z) both landed before the § 3.4 clause,
and openxFactory #1023 (slice S5's annotation) § 5 LISTED the refusals they leave and deliberately did
not absorb them — "this PR does not invent declared-edit notes for work this lane did not do". This is
that declaration, and the refusal is measured, not recalled: at `main` in a throwaway worktree,
`verify-carve-arrival.py --destination openxdox_code` answers
`arrival-undeclared-edit — src/openxdox/gate_console.py` over the same 26 lines, byte for byte.

FOUR ROWS, FORTY-EIGHT LINES, AND THE FOURTH IS THE ONE THE REPLICA READING HID. Three moved rows take
26, 17 and 4 lines, named by the source paths their rows are keyed on —
`scripts/ideation_dashboard/gate_console.py` 8 -> 34 (it arrives at `src/openxdox/gate_console.py`),
`scripts/ideation_dashboard/generator.py` 4 -> 21, `tests/ideation-dashboard/test_generator.py` 4 -> 8 —
and the forty-eighth line is `:271` on
the `tests/ideation-dashboard/conftest.py` REPLICA row, openXdox-code#14's 27-line § 4.4 pytest
fixture. A replica row names no destination and carries `edits:` as a PERMISSION at every replica and
an OBLIGATION at none, which is why a reading that counts only destinations could not see it:
openXdox-code takes `:271`, openDox-code does not, and openDox-code's arrival run answers OK all the
same. By class the act is +44 `adapter calls`, +4 `import rewrites`, +0 `path constants`; no
disposition converts, no row becomes a carrier, no referent digest moves, and no row is re-destined.

THE READING IS THE LANDED DOCUMENT'S OWN, MEASURED RATHER THAN ASSERTED. 26/17/4 is the
BOTH-neighbours convention: an inserted block declares the line above it and the line below. Measured
at THIS head against openXdox-code `0a0265f7` and openDox-code `0b4e8bbf`: `both_free` 51,
`both_forced` 0, `min_only` 51, `undeclared` 0, and five single-neighbour blocks, all five declared.
The same measurement over `main`'s manifest and the same two trees reads 45 / 0 / 51 / 6, with one of
the five single-neighbour blocks undeclared — and those seven undeclared blocks are exactly this act's
three moved rows. `both_forced` — a second neighbour forced by a neighbouring `replace`/`delete` range
rather than chosen — is ZERO at both, so the convention is exercised and not an artifact of the diff.
The minimal reading (25/14/2) would pass the same arrival run and read (2448, 176).

THE AGGREGATE IS A DELTA ON TWO ACTS THAT LANDED WHILE THIS ONE WAS AT THE GATE. `main` `cb2d3a2c` —
the § 3.4 slice-S7 annotation and slice S8's `e5896455` both in it — reads (2406, 176); this act reads
(2454, 176): `import rewrites` 726, `path constants` 246, `adapter calls` 1482, the 176 carriers
unmoved because all four rows already carried `edits:`. Re-derived from the merged document by
`test_the_real_manifest_carries_the_ruled_q_l7_amendment`, which SUMS rather than quotes, and carried
across from neither side.

THE PER-DESTINATION CELL MOVES, AND THAT IS A CHANGE OF KIND. When this act was written, the runbook's
§ 2 table was stale and the act REGISTERED it as stale, reserving the redistribution for "one later
act" because slices S7 and S8 were in flight over the same cells. Slice S7 IS that act — it re-derived
every cell and pinned all five columns with
`test_the_runbook_per_destination_table_is_the_manifests_own_sum` — so the registration is retired and
this act MOVES the cell it owes: `openxdox_code` 703 -> 750, 47 of its 48 lines falling on three rows
that leg already edits. The four destination cells sum to 2452; the replica row's two lines, which name
no destination, make 2454.

ONE MERGE, SIX CONFLICTED FILES AND FOURTEEN BLOCKS, RESOLVED BY NAME. `main` `cb2d3a2c` merged at
`6c0ba63c` — the single merge this branch reserved for landing. Replayed in a throwaway worktree at
landing to count it rather than recall it: `README.md` 1 block, `docs/opendox-cutover-runbook.md` 8,
`scripts/carve_lines.py` 1, `scripts/validate-carve-manifest.py` 1, `scripts/verify-carve-arrival.py` 1,
`tests/carve_manifest/test_carve_manifest.py` 2. Every conflicted file is a site that mirrors the
document's TOTAL. Three helpers do the resolutions and each REFUSES rather than guesses: a
number-only resolver that PROVES the two sides are the same text but for the number, a per-block
resolver for the manifest suite, and a named-block resolver for the runbook's eight. Two test pins the
merged document outgrew were re-derived rather than relaxed (a hard-coded `total - 1` that assumed ONE
replica line, and an assertion pinning the per-destination cell's old wording), and a SILENT auto-merge
defect — § 2's lead sentence merging to OURS with no marker, leaving a "the cells are STALE" paragraph
directly above S7's paragraph asserting the opposite — was caught by reading and repaired.

THIRTEEN COPILOT ROUNDS, and the last three repair the FLOOR'S OWN PROSE rather than this act's rows.
Round 11: § 2 asserted that an applied line's text "is the same at every replica of this row" while
§ 5.5 and `test_two_legs_may_apply_one_replicas_line_differently` record that two legs which applied
one declared line differently would BOTH pass — restated as the placing leg's claim, with the shared
depth kept as the reason it holds here; and § 2 introduced the per-destination table as "the numbers
each leg's arrival run must report", which is false of the two legs RULED Q6 touches, so the sentence
now names its basis and the marker literal the summing test bounds that block by moved in the same
commit. Round 12: the round-11 repair itself named a figure NO RUN PRINTS. Round 13: the surviving
half of the same sentence had the same shape — "four fewer declared-edit rows (84)" reads as the
verifier's output, while § 5.5's own phase-B example for that leg states `85 declared-edit row(s)
within their lines, 0 unapplied` and a live run at `0b4e8bbf` prints 84 because one declared edit is
not yet applied. There are THREE bases: this table's column (88 / 83), the EFFECTIVE count after Q6
(84 / 87), and the verifier's printed `declared_edits_diffed`, which drops the `unapplied` rows and
adds a declared replica whose row declares lines. The paragraph now compares ARRIVED rows — 119
against 123, 96 against 92 — names the effective counts as effective, and leaves the printed counter
to § 5.5. Copilot's round at `76fdebbf` and this lane's own re-run of both arrival verifications
reached the round-12 finding independently, within minutes of each other.

RESIDUE REGISTERED, NOT DISCHARGED: the re-destination paragraph's comparisons — 119 and 96 arrived,
84 and 87 effective — are transcribed prose that nothing reads, while the table above it is pinned cell
by cell by `test_the_runbook_per_destination_table_is_the_manifests_own_sum` and § 5.5's example
figures by `test_the_runbook_phase_examples_are_the_arrival_the_manifest_produces`. That paragraph is
the one place in § 2 where these numbers are typed rather than summed, and pinning it is a carve-floor
act's work, not an annotation's.

EVIDENCE, RE-DERIVED AT `46c6dbdf` AND NOT TRANSCRIBED: `scripts/validate-carve-manifest.py` OK over
456 rows (143 moved_verbatim, 175 moved_with_declared_edit, 138 not_moved; 318 digests recomputed; 4
rows RE-DESTINED). Arrival at `openxdox_code` against openXdox-code `0a0265f7` — 96 rows arrived, 9
digests verified, 85 declared-edit rows within their lines, 4 unapplied, 2 of 2 declared replicas, 124
files with none undeclared, 23 declared admissions used and none stale. Arrival at `opendox_code`
against openDox-code `0b4e8bbf` — 119 arrived, 35 digests, 84 within their lines, 1 unapplied, 1 of 1
replica, 4 rows re-destined away and verified vacated. Five suites — `tests/carve_manifest`,
`tests/carve_arrival`, `tests/carve_conformance`, `tests/opendox_pin`, `tests/openxdox_pin` — 424
passed. Pair (2454, 176). `audit-declared-lines.py` is BYTE-IDENTICAL to the run at `6c0ba63c`: the
three prose rounds after the merge moved no declared set.

Gate: pytest-suite run 35100738192 SUCCESS at `46c6dbdf`, with clearing-dispatch-gate, former-id-arrival-gate,
lane-line, merge-master-approval, openreposhape-pin, openspec-cli-pin, release-tag-gate,
signed-execution-chain-gate and wallet-validation all SUCCESS (SonarCloud advisory SUCCESS, Sourcery
SKIPPED on budget); 6 threads / 0 unresolved; merged with --admin because openxFactory's ruleset asks
one approval nobody in this lane can give (precedent #1011, #1020, #1021, #1023, #1025). Rule 6 does not
apply: eight files, none under openspec/changes/, and the one README hunk is the doc-index line for the
cutover runbook, not the OpenSpec Records block.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 16, 2026
The suppressed finding (verify-carve-arrival.py:1766) is real and it splits in
two. Half was closed by the merge-forward; half is this act's own function.

(a) CLOSED BY THE MERGE, NOT BY AN EDIT. `rows_for()` on main already compares
    `_resolved_destination(effective_arrival(row)[0], destinations)` -- slice
    S8's resolved-identity reading, the follow-up registered at #1011's
    landing. This branch forked before it. With main merged in, a refiller
    arriving through alias B IS in `claimed` when the run names alias A, and
    `check_retired` reports `absence: refilled` exactly as round 5 built it to.

(b) NOT CLOSED, AND IT IS THIS ACT'S OWN. `retired_rows()` still did
    `if at != destination` -- a LABEL comparison, and after (a) the only one
    left in the file. `rows_for` resolves the arrival side; `vacated_rows`, the
    RULED Q6 sibling that asks the same shape of question about a
    re-destination's losing leg, already resolves `re_destined.from`.

THE FAILURE IS NOT SILENCE, IT IS THE OPPOSITE REMEDY. Run with the other
spelling of the very leg the block names and the retirement is never selected,
the absence is never required, and the file left at the retired path falls
through to the walk -- which refuses `arrival-undeclared-file`, whose sentence
tells the operator to declare the file with `--replica-at` or `--allow-created`.
A ruling said to DELETE it. Same exit code, opposite instruction, which is why
the new test pins the CODE and not merely the failure.

THE FIX resolves both sides of the one comparison. Resolving is not re-keying:
`at` still decides WHICH placement is asked and the effective arrival still
does not, so round 3's deliberate asymmetry between this selector and
`rows_for`'s is untouched. All that changes is that two spellings of one real
leg stop being two legs here.

AND THE SWEEP, so the claim is measured rather than asserted: after this
commit `grep -nE '(==|!=) *destination\b|destination *(==|!=)'
scripts/verify-carve-arrival.py` prints NOTHING -- every selector compares a
resolved {repository, leg}. `also_replicated_rows()` was already resolved on
main by #1025; that was checked before the sentence was written, because "the
last one" is easy to claim and easy to be wrong about.

TWO TESTS, BOTH PROVEN BY REVERTING THE ONE COMPARISON:
* test_a_retirement_is_asked_at_THE_LEG_and_not_only_at_the_spelling -- the
  leg's own spelling refuses `arrival-not-retired` and always did; the alias
  must reach the SAME finding. Reverted, it reaches `arrival-undeclared-file`.
* test_a_retirement_reached_through_an_alias_reports_its_refill -- the silent
  direction: reverted, the `retired` list comes back EMPTY under the alias.

The document these tests use is one the VALIDATOR ACCEPTS:
`_check_retired_consistency` compares `retired.at` to the row's own
`destination` as strings and refuses any document that spells them
differently, so an alias never enters the document. It enters on the COMMAND
LINE, which is where nothing had checked it. That validator strictness is
fail-CLOSED and is deliberately left alone.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…he sentence promised, a count that did not follow its own paragraph, and two claims wider than what they measured

Copilot's review at `d4ceec5e` (`5223703722`, 2026-09-16T14:00:24Z) generated no
new comment and carried a SUPPRESSED block of five. All five are inside this
amendment's own added text (hunks at `:880`, `+886,195` and `+1183,109` over
merge-base `cb2d3a2c`), and all five are taken.

1. The authoring-snapshot parenthetical said round 6 took "two Copilot findings,
   one raised as a thread and one suppressed". MEASURED: review `5223334808` at
   head `4355f0bd` generated 0 new comments and suppressed THREE - the STATUS
   date at `:887`, the stale "six of the eight" at `:1024`, and the pull
   request's own DESCRIPTION. The date finding had ALSO been raised as a thread
   at 13:07:18Z the round before, which is where "one a thread and one
   suppressed" came from: one finding counted twice, and the third never
   counted. The marker now states the three, their review, and where each was
   taken.
2. The same sentence gave a clock to `#1025` (23:50:29Z), to leg A (01:11:37Z)
   and to leg B (01:23:16Z), then wrote openDox-spec `#11` as a bare "on the
   16th" while claiming "each with its own clock beside it". `#11` merged at
   **13:24:51Z** (read from the merged pull request); the time is written where
   the claim is made, and the `#8`-`#11` amendment list below is named as a list
   of shas rather than of clocks, so a reader at that list is not sent looking.
3. Residue item (iv) said "the two floor acts above" after a later round named a
   THIRD floor act in the paragraph above it (the pin lockstep). All three are
   enumerated, with their landing state: `re_destined:` `#1011` -> `880c821c`
   and the pin lockstep `#1054` -> `3c614d34` have landed, the `retired:` row
   form has not.
4. Reading (iii) said five of the 23 inbound imports "no longer exist as imports
   at all", which reads as the dependency vanishing. What ended is the outbound
   import SITE: reading (ii) of the same status already places the DISCHARGED
   `authoring` pair's dependency behind the 2.2a seam at
   `scripts/corpus_adapter_openxfactory/home.py`:59 (verified here at that
   line - `from doc_health import corpus`), where importing doc-health is
   lawful and is the whole of DQ-1. Qualified to say so.
5. Reading (ii)'s headline said "`openxFactory` holds none of the residue at the
   source any more" while its own next sentences record the one import RULED to
   stay at openxFactory (`scripts/ideation_dashboard/doxbench_status_exemption.py`:63,
   measured again here). The scope was always the five inventoried source
   modules; it is now written rather than implied.

`OPENSPEC_TELEMETRY=0 openspec validate split-opendox-two-layer-product --strict`
valid; `scripts/proposal-support.py . verify split-opendox-two-layer-product` ok;
boxes unmoved at 40 ticked / 31 open; no checkbox line changes in this commit.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…e tools, tests, runbook § 5.8 (#1032)

Lane: openxfactory-4

Refs #656 (stays OPEN). RULED 5656343213 — Brett Heap, 2026-09-13, by interactive multi-choice, on the
question slice S8's author put at #656 comment 5650335573 § 2. CLAIM: #656 comment 5656690570.
Precedent: PR #1011, the re_destined: form under RULED Q6, landed at 880c821.

THE FOURTH GRAMMAR EXTENSION to the carve manifest and the SECOND about PLACEMENT. Q6 moves an arrival
BETWEEN two legs; what slice S8 measured has no leg to move it to. Three suites arrived at their legs
driving views/intent-feed.js — RULED OQ-F not_moved, so the surface stayed at openxFactory and arrived at
NEITHER leg — and slice S2 replaced the surface openDox does have with views/intent-binding.js. The suites
test a surface that is not there. re_destined: cannot say so: to is held to the closed destinations: keys,
openxFactory is the SOURCE and not one of them, and re_destined: on a not_moved row refuses
carve-re-destined-not-moved. Deleting the arrived file with no form at all is the one thing this floor
exists to refuse — a file at no leg, in a row that says it arrived there, is RULING OQ-1's UNDECLARED
MOVEMENT read backwards.

    retired:
      at: opendox_code                        # the row's EFFECTIVE arrival
      at_path: tests/test_intent_tray_dom.py  # destination_path, or re_destined.to_path
      ruling: "`#656` comment 5656343213"
      surface: scripts/ideation_dashboard/web/views/intent-feed.js
      note: "..."                             # the one optional key

ZERO ROWS USE THE FORM HERE, deliberately, and it is pinned by a test. RULED Q6 landed at #1011 with the
grammar, the gates and no re-destined row; its first use (slice S5's four rows) came later, under its own
claim and its own pull request. test_the_real_manifest_carries_the_retirement_form_and_uses_it_nowhere
asserts the landed manifest's retired count is 0 and fails the day a row carries the block, so whoever
lands the first use has to come back and record which act did it — exactly as the Q6 companion records
S5's four. The first use is stacked directly on this (openxFactory#1043).

THE THREE TOOLS. validate-carve-manifest.py closes RETIRED_KEYS to five keys, four required, and raises
three OWN codes on Q6's reasoning that a caller branching on the code must be told WHICH form it is
reading, because the remedies differ — a re-destination is amended in place, a retirement is withdrawn:
carve-retired-not-moved (a not_moved row retiring an arrival it never made), carve-retired-unruled (the
citation the ruling's scope answer requires, absent) and carve-retired-surface-live (a surface: that is a
MOVED row, live at a leg, OR in no row at all — this document cannot say, and "cannot say" is not "gone").
`at` outside destinations: falls to check 5's carve-vocabulary-unknown; at/at_path disagreeing with the
row's EFFECTIVE arrival falls to check 6's carve-disposition-inconsistent, so a row re-destined by Q6 and
retired afterwards must be retired at the leg the file actually reached and the two acts compose in one
order only. Check 4 stops RESERVING a retired row's arrival: that path is empty, another row may lawfully
refill it, and two retired rows at one path do not collide. The summary counts retired apart from
re_destined and from the dispositions and prints it UNCONDITIONALLY, zero included — written that way from
the start because #1011's re_destined clause had to be repaired in review for suppressing its own zero
state.

verify-carve-arrival.py gains a seventh finding, arrival-not-retired. rows_for() drops a retired row — not
asked for, not digested, not diffed — and check_retired requires retired.at_path ABSENT by lexists BEFORE
the walk. That ordering is load-bearing, not cosmetic: with the row dropped, nothing else in the file
would ever mention it again, and where the retired row was the last row under a declared root the walk
does not even look there. A lawful refill (another row's effective arrival, or a --replica-at replica) is
excluded from the first line of the function rather than after two review rounds, which is what
check_vacated cost at #1011. The summary LISTS the retirements with surface and citation, because a
re-destination's evidence can be read off the other leg and a retirement's can be read off nothing at all.

carved_reach.py gains CarveRowRetired, a SUBCLASS of ShedModuleHasNoDestination so existing except clauses
keep working, raised by source(), module() and shed_relpath(); sources_under() OMITS the row the way it
omits deleted_at_carve. Without this the module would hand a caller a well-formed Path to a file the
arrival verifier has just finished proving absent.

THE PREDICATE IS DUPLICATED THREE TIMES AND HELD EQUAL BY A TEST, for the reason effective_arrival is:
none of the three can import either of the others. test_all_three_tools_read_the_retirement_identically
drives all three over one table, and the MIS-SHAPED rows are in it deliberately: this guard fails closed
in the OTHER direction from effective_arrival's. Half a re-destination reading as no re-destination leaves
a row owed at its original leg, where one leg still asks for the file; half a RETIREMENT read as one
SILENCES this leg's arrival check and asks nowhere. retired: {} and a block whose at_path is a list must
both read as NO retirement in all three.

DOCUMENTATION: the manifest header (A FOURTH GRAMMAR EXTENSION, beside Q6's), the runbook § 2 paragraph,
§ 2.1's findings table (six findings to seven), a new runbook § 5.8 carrying the five-step procedure, and
the README doc index for both the manifest and the runbook.

WHAT THE FORM CANNOT EXPRESS, said in § 5.8 rather than only here, because the first act to use the form
hits it. retired: retires a ROW, and a row is a FILE. A leg that must lose only PART of an arrived file —
one replay block at the end of a suite driving a retired surface, in a file whose other tests drive live
surfaces — has no retirement to declare, because the row's bytes do not stop arriving. The minimal
reading, and the one this floor already has a form for, is an ORDINARY declared edit: a
moved_with_declared_edit row whose edits[] names the removed lines under an existing class, verified by
arrival-undeclared-edit. Widening retired: to a line range would put a second line-bearing grammar beside
edits[] and give one row two readings of what its bytes are; that is a ruling's act. Three more limits are
stated so the evidence is not read wider than it is: the surface: check does NOT prove the arrived test
was the surface's only reader or that no other file should follow it; one destination is verified per run,
so a retirement at one leg says nothing about another; and nothing at the destination reads the surface
the block cites.

NINE COPILOT ROUNDS, EVERY FINDING REAL, EVERY REPAIR PROVEN BY REVERTING IT OR BY TAMPERING
WITH THE DOCUMENT IT READS. Round 2: the guard took two
keys where a placement needs four, so retired: {at, at_path} — half a block the validator refuses — would
have silenced a required arrival at a leg that had not run the validator; all four required keys are the
guard now, and test_a_half_written_retirement_leaves_the_arrival_owed is what says the absence is not
licensed in the meantime. Round 3: rows_for() dropped a row on READABILITY alone while retired_rows(),
keyed on retired.at deliberately, selected it only at the leg the BLOCK named, so a block whose at/at_path
disagreed with its own row was checked as NEITHER an arrival nor a retirement; retired_arrival() now asks
the PLACEMENT question before the row is dropped, and retired_at() itself is untouched so the three-tool
equality still holds. Round 4: a block SELECTED at a leg is not yet a block that leg has READ. Round 5:
check_retired EXCLUDES a retired path a lawful refill occupies — right, and built in from its first line —
but the summary then reported EVERY retirement as "verified absent", including the one case where a file
really IS at the retired path; the repair is a RETURN VALUE, not a second reading, and _retired_record
gains absence: verified|refilled with refilled_by. Round 6, three suppressed findings and all three real:
the predicate did not enforce the CLOSED key set its own docstring claimed; sources_under() omitted a
not_moved row carrying a malformed retirement, disagreeing with source() and silently dropping a RETAINED
file; and declared_roots(rows) lost a directory whose LAST arrival was retired, so retirement suppressed
the rest of the tree with it. Round 7: the optional note: was read as a TYPE while the grammar writes it
as PROSE — _check_retired_shape refuses a PRESENT blank note and the three predicates accepted note: "",
which is the fail-OPEN direction arriving through the one key the form makes optional; all three now carry
the grammar's own rule, ABSENT OR PROSE, and
test_the_note_is_prose_or_absent_in_the_grammar_and_in_all_three_readers holds the readers to the GRAMMAR
rather than only to each other, because three copies can agree and all three be wrong about the document
they read. Round 8: sync-notebooklm-books.py::_dashboard_module() calls module() and
translates nothing, and fifteen of its sixteen call sites sit under no try at all — measured with
ast, the sixteenth being the one the review named, which is the one that IS inside
except Exception; the translation is still not owed because the refusal is UNREACHABLE there (three
names, every one a MOVED row no ruling has retired), and because "unreachable" is a claim about the
MANIFEST rather than about the code,
test_no_module_the_notebook_sync_asks_for_is_retired derives the names from the source with ast
and fails the day an act retires one, naming the file and the remedy. Round 9: retired_rows()
selected on a destination KEY as a string, the last selector in this file still comparing LABELS
after #1025 made every other one compare resolved {repository, leg} identities — so a run invoked
with the other spelling of one real leg skipped the retirement entirely, the absence was never
required, and the file left at the retired path fell through to the walk, which refuses
arrival-undeclared-file, whose sentence tells the operator to DECLARE a file a ruling ordered
DELETED. retired_rows now resolves both sides exactly as its Q6 sibling vacated_rows already did;
resolving is not re-keying, and at still decides which placement is asked.
Round 10, two suppressed comments and both fail-OPEN: this act's seat test was written
assert True; return, a SIXTH copy of the idiom #1030's review had just removed from five tests in this
same module — an act authored beside that cleanup rather than after it — and assert True REPORTS A PASS,
so a checkout without the manifest turned the "used nowhere" pin into a green no-op; it now reads through
the_landed_manifest(), where absence is a FAILURE, the module docstring's census says six, and the tamper
proves both directions. And the lexists paragraph in check_retired argued for lexists by describing
exists — "a dangling symlink reads as absent" is exists' behaviour, stated inside the paragraph that
exists to justify not using it, which is a standing invitation to simplify the guard away; rewritten in
the right direction, lexists answers about the ENTRY and exists about its TARGET. Round 11 is ANSWERED
and not fixed, on a MEASUREMENT: retired_rows() does not drop a retirement whose at is an undeclared key,
because _resolved_destination degrades such a key to a 1-tuple of the key ITSELF — a shape that can never
equal a resolved 2-tuple, and is nevertheless equal to itself — so the row is selected at exactly the leg
the block names and declined only at legs it does not; where the block names a placement the row does NOT
make, which is the shape a typo in at actually produces, retired_arrival returns (None, None), rows_for
KEEPS the row at its real leg and the deleted file refuses arrival-missing, which is round 3's repair
holding; and a row whose own destination is undeclared is owed at no declared leg WITH OR WITHOUT a
retired: block, measured against its own control. What remains true is the division of labour rather than
a gap: no run can be invoked at an undeclared leg at all (--destination refuses arrival-unreadable before
any selection), so an undeclared retired.at is a retirement with no leg to ask it at, and the tool holding
the document refuses it by name — check 5's carve-vocabulary-unknown, in a sentence THIS act wrote for
this failure mode, proven by tampering the real manifest. A preflight here would make retired.at the one
closed vocabulary this file re-decides, when it membership-tests none of the other six.

MEASURED AND DELIBERATELY NOT SWEPT: effective_arrival (RULED Q6, landed at #1011) reads re_destined.note
not at all and does not close its key set. That is looser and deliberate, in the OTHER direction — half a
re-destination leaves the row owed AT ITS ORIGINAL LEG, so exactly one leg still asks for the file, where
half a retirement read as one asks nowhere. Registered for a later declared act rather than moved here.

EVIDENCE, RE-DERIVED AT 39bb1dc AND NOT TRANSCRIBED: scripts/validate-carve-manifest.py OK, 456 rows at
b075fd9 (opendox-carve-0), 143 moved_verbatim / 175 moved_with_declared_edit / 138 not_moved, 318 digests recomputed, 456 files in the declared surface with none
undeclared, 319 shed rows absent at source, 4 RE-DESTINED by ruling (Q6) and 0 RETIRED by ruling
(5656343213) — the zero this act is pinned to. scripts/verify-carve-arrival.py --destination opendox_code
--dest-root <openDox-code@0b4e8bbf> --phase B --replica-at
tests/ideation-dashboard/conftest.py=tests/conftest.py OK, 119 rows arrived, 35 digests verified, 84 declared-edit rows within their lines, 1 unapplied, 1 of 1 declared replica verified, 149 files with none undeclared, 0 re-destined here and 4 away verified vacated, 21 declared admissions used; no retirement clause printed at
the leg, which is the zero state by design. pytest -q over the five carve suites (carve_manifest,
carve_arrival, carve_conformance, opendox_pin, openxdox_pin) -> 481 passed.

Plain gate: pytest-suite run 35104732206 SUCCESS at 39bb1dc, with clearing-dispatch-gate, lane-line,
merge-master-approval, openreposhape-pin, openspec-cli-pin, wallet-validation, release-tag-gate and
signed-execution-chain-gate all SUCCESS (SonarCloud advisory); 12 threads / 0 unresolved. Rule 6
does not apply: this pull request's file list is thirteen files, none under openspec/changes/, and its
only README hunk is the doc-index pair for the carve manifest and the cutover runbook, not the OpenSpec
Records block.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 16, 2026
…where, and slice S5 made that false

FOUND BY SWEEPING FOR THIS ACT'S OWN DEFECT AND FINDING THE SAME ONE A
GRAMMAR EARLIER. `tests/carve_manifest/test_carve_manifest.py`'s RULED Q6
section header said, in the PRESENT tense, that "the landed manifest — which
carries the form and uses it nowhere — is asserted separately in the § 8.2
seat". True the day PR #1011 landed Q6 with the grammar and no user; FALSE
since § 3.4 slice S5 (PR #1023) re-destined four rows.

It is fixed in the same shape as the `retired:` section header below it, which
THIS act already had to rewrite for the same reason one grammar later: name
the state the form LANDED in and the state the document is in now, so the
sentence cannot rot again on the next first use.

WHY THIS ONE AND NOT THE FIVE `(DRAFT PR ...)` MARKERS, which this act also
found and deliberately left: those are other acts' RECORDS in a governed
document, and rewriting one in passing under a retirement's claim is the
undeclared edit this floor exists to refuse. This is a section header in a test
module whose docstring this act already amends, it is FALSE rather than merely
dated, and it costs one comment.

Green: `tests/carve_manifest` passes.

Refs #656 (stays OPEN). RULED 5656343213. CLAIM: `#656` comment 5656690570.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…c, amend the packet figure, and account for 4.1's residue (#1035)

Amendment #3 of `split-opendox-two-layer-product`'s `tasks.md` — the third in
the series (#991 → `1f068646`, #1005 → `a72f0a76`). Claim:
`#656` comment `5656686020`.

TWO BOXES, and no other line of the file is touched.

**§ 3.4 — INVENT the front-end package boundary — is TICKED**, judged met at
this amendment's own landing rather than at its authoring: the boundary was
INVENTED as `openDox-spec` `docs/front-end-package-boundary.md` (landed `#8` →
`a44ac06d`, amended `#9` → `61866d29`, `#10` → `7d12428c`, and `#11` →
`54e910735b97b326d05250100104b3af07d3f5ae`, this arc's last act, merged 2026-09-16T13:24:51Z) and REALIZED in an
eight-slice arc, every leg pull request paired under RULED Q-L1 with the
openxFactory row annotation that lands FIRST — only S1 has none, correctly,
because it creates files and edits no carved row. The slice table carries all
three pull requests and merge shas per slice, **ALL EIGHT rows now final**:
S7 and S8 were placeholders when this amendment was authored and each was
filled IN PLACE at its own landing — S7 (`#1030` → `b3a75537`, `#21` →
`1e469713`, the SIXTH holding, by 71 seconds) and S8 (`#1025` →
`e5896455`, `#19` → `0a0265f7`, `#23` → `0b4e8bbf`, the SEVENTH and last — one per
ANNOTATED slice, S1 alone exempt; ten by annotation→leg pairing, all ordered
right, the two ordinals corrected at openDox-spec #11's fix round 18). Named
with the arc, each its own claim and none a condition of the box: RULED Q6's
`re_destined:` row form (`#1011` → `880c821c`), the `retired:` row form with
the retirement of the three intent-feed suites under it, and the pin lockstep
that carries the landings into the aggregation (`#1054` → `3c614d34`).

**THE PACKET FIGURE IS AMENDED HERE**, where the boundary note defers it —
*"a packet figure is amended in the packet"*. This box's own *"40 files,
30,410 lines"* is a design-time reading no tree in the arc reproduces: the
carve commit `b075fd91` held 43 blobs / 31,068 lines (41 hand-authored /
31,066), and `views/intent-feed.js` (483 lines) did not travel — RULED
`not_moved` under OQ-F — which leaves **40 files** on the nose and **30,583**
lines, so the packet's line count is **173** short of what arrived and **656**
short of what the carve held. The FILE count was right all along, and the table's last row — openDox-code
`main` `0b4e8bbf` at 42 blobs / 31,955 lines, 40 hand-authored / 31,953, read at
this amendment's own landing — is the CHECK that the arc ended where `#21`'s
head said it would. Four further
occurrences in the packet's LIVE documents are named and NOT edited, because a
ratified document is amended by the act that claims it; a fifth, in
`review/ratification-2026-09-05.md`, is named as a RECORD no later act amends.

**§ 4.1's residue is accounted for down to the last import, and the box STAYS
OPEN.** All 23 of `design.md` § D3's inventoried outbound `doc_health` imports
now have a position — 12 at openXdox-code, 5 at openDox-code, 1 RULED to stay
at openxFactory, and **5 DISCHARGED at the § 2 seam before the carve ever
ran**, which the carve commit itself proves: `scripts/ideation_dashboard/`
carried 21 sites there, and 12 + 4 + 1 + 1 = 18 = 23 − 5, 18 + 3 = 21, closing
both ways. What the seam discharged is the outbound import SITE and not the
dependency: the `authoring` pair's now sits behind the § 2.2a seam at
`scripts/corpus_adapter_openxfactory/home.py`:59, which is lawful and is the
whole of DQ-1. The § 3.4 arc moved none of them.

**What the arc did NOT close is named**, so no later reader takes the tick for
more than it is: the fifth class-A tail's realization, `views/lens.js`'s
standing `?`, the FULL un-narrowing both legs still wait on, the THREE floor
acts (RULED Q6's `re_destined:` form and the pin lockstep, both landed, and the
`retired:` row form, which is not), and the packet's own README entry — overtaken, not corrected here, and
cited by its sentence rather than by a line number, because the README
OpenSpec Records block moves under every archival act.

FOURTEEN fix rounds are recorded in the pull-request description, every one of
them from a Copilot finding and every one accurate; rounds 6 to 12 are
corrections this amendment made to text an earlier round of its own had added,
and rounds 13 and 14 go back to the accounting the draft itself carried. They run: a residue clause that named
four citations and listed a different four; both `STATUS —` headers dated
`2026-09-14` flat while the paragraph they head records landings of 2026-09-15
and 09-16 (labelled AUTHORING SNAPSHOTS rather than re-dated, so no reader loses
which statements predate the slices they record) and a slice count the arc had
overtaken; a packet-figure table that stopped at a head the arc had passed; a
re-verification claim that named no re-run (re-run at the final heads, every
count unchanged, one line number moved and named) and a box with two
incompatible exit conditions; four precision defects in rounds 6 to 8's own
text; and at round 10 five more — a miscount of the review history itself, a
merge clock the sentence promised and did not give (openDox-spec `#11` at
13:24:51Z), an item counting two floor acts where the paragraph above it names
three, and two claims wider than the measurement under them; and at round 11 an
instrument this amendment's own prose had broken — the fifth-occurrence
paragraph's "greps for 30,410 and finds five", where a grep of the packet now
returns TWELVE lines (seven of them this file's own), so the grep is named with
its SCOPE and the twelve decomposed, the five it counts being every occurrence
outside the box's own text. Every figure re-derived from the trees at the head
that carries it, never re-read from the draft. One review finding is ANSWERED
AND REGISTERED rather than taken: the packet's README OpenSpec Records entry is
not corrected here, and the file now names the precedent for correcting one in
place — `add-declared-former-id`'s entry, amended by lane `openxfactory-1` at
its own realization landing on Brett Heap's word of 2026-09-15 ("Amend the row
in #1041", `#1003` comment `5686628685`) — which is exactly why it is not taken
here: that is its own act, on its own ruling and its own claim, landing on the
one block a Rule 6 window exists to serialize. Round 12 closes the series on the
review that recommended approval anyway: the authoring-snapshot parenthetical
still claimed a clock for EACH act it dates, and it dates twelve while carrying
four — the claim is now what it measures (dates for the arc; a clock only where
the ordering turns on one; every other clock beside its own act; S1, S3, S4, S5
and S6 named as date-only), because narrowing a claim is not the same as
measuring it. Round 13 then measured three of § 4.1's own draft statements
against the trees: `scripts/ideation_dashboard/` is NINE `.py` modules plus the
`web/` directory (ten `git ls-tree` entries), not "10 files"; the DISCHARGED
row's `serve` cell cited the SURVIVING `doc_health.corpus.RealGit` reach at the
carve's `serve.py`:618 as if it evidenced a discharge, and named openDox-code's
own `from opendox import consumer_reach` beside it, which is not a `doc_health`
site at all (the carve file does not contain the string) — both corrected, the
row's 5 and the box's 23 unchanged; and "either module is openxFactory" now
names the two candidate homes rather than implying them. Every number § 4.1
states survived its own re-measurement; what moved is which line each number is
attached to. Round 14 took three more: the pin-lockstep paragraph cited § 5.1 as
describing the two-pin invariant when § 5.1, ticked under RULING F, says
openxFactory declares only its direct upstreams and closes "No
contracts/opendox-pin.yaml and no second gitlink exist anywhere in the tree" —
a sentence the TREE has since overtaken (measured at `main` `b1df95ee`: that pin
file exists with its own `commit:` and `git ls-tree -r` returns four gitlinks,
openDox among them), so the citation now names § 4.2 alone and § 5.1's staleness
is REGISTERED for the act that claims that box rather than corrected inside this
landing; `__init__.py`:32 is a forwarding wrapper importing `.home` on the call
at `:39`, not a re-export, and the lateness is the § 2.2a seam's own point; and
round 13's "travels to the leg" is measured — `src/opendox/serve.py` arrived at
openDox-code with the Tranche-B adoption commit `30c6baf`, not in the arc, which
moved only its line number, so "the § 3.4 arc moved none of them" stands. Box count 40 ticked / 31 open — a filled placeholder
is not a tick.

REGISTERED FOR AMENDMENT #4 (#1058, open and stacked on this branch), answered on
#1035 and not carried here: § 5.1's stale "No contracts/opendox-pin.yaml and no
second gitlink exist anywhere in the tree", measured false at `main` `b1df95ee`
(that pin file exists with its own `commit:`; `git ls-tree -r` returns four
gitlinks, openDox among them) and ALREADY RULED by R-5 (Brett Heap, 2026-09-16,
#656 comment 5690428146: "§ 5.1's 'no second gitlink exists' is stale for the
same reason and takes the same amendment"), whose own consequences line names
amendment #4 as the carrier - so no new claim is needed. This amendment corrects
what it wrote and registers what it does not claim, which is the division it
applies to design.md, to proposal.md and to the packet's README entry. Gate at 18e33d3: fifteen check-runs, every one completed success or skipped (pytest-suite run 104881522133), threads 8 of 8 resolved, and Copilot fifteen review rounds - fourteen taken as fix rounds, the last two findings measured false and answered on the pull request. Landed under the Rule 6 window opened 2026-09-16T16:44:21Z, with --admin on the lane precedent of #1011, #1020, #1021 and #1023.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…ed suites and declare the ending replay's removal (RULED 5656343213) (#1043)

Lane: openxfactory-4

**The FIRST USE of the `retired:` form, landed after the form itself** — PR #1032 at `d5dd1ca5`, the ruling's own order — and merged forward onto `main` before landing.

Refs #656 (stays OPEN). RULED **5656343213** — Brett Heap, 2026-09-13, by interactive multi-choice, on the question slice S8's author put in `#656` comment 5650335573 § 2. CLAIM: #656 comment 5656690570. **PR #1032 (the form) LANDED FIRST at `d5dd1ca5`** — the ruling's own order: the form, then its first use — and this branch was merged forward onto it before being retargeted onto `main`.

## What this is

The **FIRST USE** of the `retired:` form PR #1032 adds, and the openxFactory half of a three-repository act. RULED 5656343213 retires three intent-feed suites at their legs; `views/intent-feed.js` is RULED **OQ-F** `not_moved` — it STAYED at openxFactory and arrived at **neither** leg — so all three test a surface that is not there.

| what | where | form | leg half |
| --- | --- | --- | --- |
| `tests/test_intent_tray_dom.py` (23 tests) | `opendox_code` | `retired:` block | opensoft/openDox-code#24 |
| `tests/test_wheel_verbs_dom.py` (8 tests) | `opendox_code` | `retired:` block | opensoft/openDox-code#24 |
| the ENDING REPLAY inside `tests/test_staging_workbench.py` | `openxdox_code` | **declared edit**, not a retirement | opensoft/openXdox-code#20 |

## The third one is not a retirement, and could not be

**`retired:` retires a ROW, and a row is a FILE.** `tests/test_staging_workbench.py`'s other hundred-odd tests drive surfaces that leg HAS, so the row goes on arriving and there is nothing to retire. Widening the form to a line range would put a second line-bearing grammar beside `edits[]` and give one row two readings of what its bytes are — a ruling's act, not an author's.

The minimal reading, and the one this floor already has a form for, is an **ordinary declared edit**: carve lines 1833-2006 (`_DOM_SHIM`, `_ENDING_REPLAY_HARNESS`, `_run_ending_replay()` and `test_the_ending_report_really_reaches_the_slot_the_re_render_rebuilt`) plus 2028-2030 (the docstring tail that named the removed probe as the behaviour's owner), declared under `adapter calls` — the class the S5 entry already gave those exact lines, because RULED OQ-1's vocabulary is closed and has no class for a removal. **A line is declared once per row**, so the ten lines S5 names — which sit inside the new range — are NOT repeated here: the block's **177** carve lines are the UNION of S5's ten and this act's **167**, the row declares **196 distinct** lines, and the extent is stated in both entries' notes in prose rather than by writing ten numbers twice. (An earlier draft of this act did declare them twice, deliberately, so the extent was readable in one place; `#1030`'s review landed a pin refusing any line declared twice on one row while this was open, and the merge went red on it — see the merge-forward record below.) S5's own note is AMENDED rather than rewritten, so the history stays readable.

**The extent is exact, and measured with the verifier's own line machinery** rather than argued: at openXdox-code `15e8115d` the arrived `tests/test_staging_workbench.py` differs from its carve blob on **196 carve lines — 0 undeclared and 0 declared-but-untouched**. The declared set and the touched set are the same set.

## What is on the branch

* `docs/opendox-carve-manifest.yaml` — the two `retired:` blocks, the new `adapter calls` entry for the ending replay, the amendment to slice S5's note on the lines the removal swallowed, **and the header paragraph that said no row carried the field**, which now names this act, its claim, its two leg pull requests and `retired 2`, plus a second paragraph on why the ruling's third suite carries no block.
* `tests/carve_manifest/test_carve_manifest.py` — **the pin MOVES rather than being deleted.** `test_the_real_manifest_carries_the_retirement_form_and_uses_it_nowhere` was PR #1032's own guard that the grammar and its first use would be reviewed apart ("the day a row carries `retired:`, this assertion fails and the author must come here and say which act did it"). It is now `…_and_the_two_rows_it_retires`, asserting the two rows by `source_path` and, for each, the effective arrival, the ruling by comment id, `views/intent-feed.js` as the surface, `re_destined` absent and each row's existing declaration by exact `(class, lines)` — `path constants [30]` and `[26]`, the lines the LEG rewrote while the file was there, which a retirement does not reach — plus the claim the whole form rests on, read out of the document rather than trusted: the surface row is `not_moved` and NOT `replicated_at_destination`. `--json`'s `retired` moves 0 → 2 in the same test. **It bites, proven by tampering**: flip the wheel row's `[26]` to `[27]` and this test fails; restore it and it passes. Its Q6 sibling `…_and_the_four_rows_s5_re_destines` is the shape copied, deliberately.
* **The pair, re-derived at the merged head and TWICE moved on the way there:** `(lines, carrying)` **`(2454, 176)` → `(2621, 176)`**. The bullet first said `1584 → (1761, 159)` and then `+177 lines`; slice S7, slice S8 and #1031 each moved the base under it, and the de-duplication moved the delta — **+167**, not +177, because slice S5's own entry on this row already declares ten of the removed block's lines and a line is declared once per row. The carrier count does not move (the row has carried `edits:` since S5) and the two RETIRED rows move neither figure, because `retired:` touches no `edits[]`. The act's own entry is pinned by row, class and exact lines beside the ASK-7/S3/S4/S5/S6 pins — and now asserts all three of its 167, slice S5's ten and their 177-line union, because the aggregate alone would pass just as well if those lines had landed on another row or under another class.
* `docs/opendox-cutover-runbook.md` — § 2's "NO ROW CARRIES IT TODAY" → "TWO ROWS CARRY IT TODAY" and the aggregate paragraph re-derived; § 5.8 gains the **residue list** and the **two-merge window**, both measured.
* `docs/opendox-carve-admissions.yaml` — the prose THIS repository owns and this act falsifies: the `tests/test_intent_binding_dom.py` entry called the two retired suites its "narrowed out of validate.yml" siblings. They are not narrowed, they are gone.
* `README.md` + three tool docstrings — the four other places that publish the declared-line total (Copilot round 2).

## What this act does NOT move, said rather than left silent

* ~~**The per-destination table in § 2.**~~ **WITHDRAWN — this act DOES move it, and one cell only.** That bullet was written when the table was stale and the redistribution was reserved for "one later act". **Slice S7 IS that act**: it re-derived every cell and pinned all five columns with `tests/carve_arrival/test_verify_carve_arrival.py::test_the_runbook_per_destination_table_is_the_manifests_own_sum`, so the cells are a MEASUREMENT again and an act that moves the aggregate must move them with it. Every one of this act's 167 declared lines falls on ONE `openxdox_code` row, so exactly one cell moves — `openxdox_code` **750 → 917** — and neither replica line is touched, because a retirement declares no line at all.
* **Five `(DRAFT PR …)` markers in the manifest that belong to OTHER acts** — slices S3, S5 and S8 named `openDox-code#16`, `openXdox-code#17`, `openDox-code#17`, `openDox-code#23` and `openXdox-code#19` as drafts, and every one has since merged. This act found that defect in its own two notes and corrected them to name the landing ORDER instead of the draft STATE; it did not sweep the other five, because an act does not rewrite another act's record in passing and five notes edited under a retirement's claim is the undeclared edit this floor exists to refuse.
* **`views/intent-feed.js`.** A retirement deletes an ARRIVAL, never a surface. This act asks nothing of that row but that it still read `not_moved` — which is the `carve-retired-surface-live` gate.
* **Two stale sentences inside CARVED files at openDox-code**, `tests/test_account_menu_dom.py:4` and `tests/test_doxbench_tile_verbs.py:19`, both naming `test_wheel_verbs_dom.py`. The rows declare `[30]` and `[34]` under `path constants`; a comment naming a retired sibling is in none of OQ-1's three closed classes, so the repair is refused by name and the sentences stay. They are now listed in § 5.8 and in openDox-code#24's own `validate.yml` comment, so the cost is declared on both sides of the boundary.

## Evidence, at `338308c8` (the merged, retargeted head)

* Five carve suites — `tests/carve_manifest tests/carve_arrival tests/carve_conformance tests/opendox_pin tests/openxdox_pin` → **483 passed** at the merged head (482 + Copilot round 25's pin), and `tests/doc-health` → **1826 passed** (the two suites that read anything this act changes).
* `python3 scripts/validate-carve-manifest.py` → `OK … 456 row(s) … 4 row(s) RE-DESTINED by ruling (RULED Q6); **2 row(s) RETIRED by ruling (RULED 5656343213)**`.
* **Leg B** — `verify-carve-arrival.py --destination opendox_code --dest-root <openDox-code#24 @e2d5ac46> --phase B --replica-at tests/ideation-dashboard/conftest.py=tests/conftest.py` → `OK … 117 row(s) arrived, 35 digest(s) verified, 82 declared-edit row(s) within their lines, 1 unapplied; 1 of 1 declared replica verified; 147 file(s) with none undeclared; 0 re-destined HERE and 4 AWAY verified vacated; 2 row(s) RETIRED here by ruling and verified absent (RULED 5656343213); 21 declared admission(s) used`. Run against the leg's OWN merged head, not a scratch tree: the deletion and this manifest are one act and this is the pair being asserted.
* **The gate, measured in the other direction too**: the same run against openDox-code `8efb3cf5`, where the two files are still present, refuses `arrival-not-retired` and names the ruling rather than the filename.
* **The landed-rows refusal needs no materialized leg, measured with a control**: in a worktree whose `openDox` and `openXdox` directories are EMPTY, `test_carved_reach_refuses_the_two_landed_retired_rows` passes while `test_carved_reach_resolves_the_four_re_destined_rows_at_their_arrival` — RULED Q6's companion, which legitimately requires both legs — fails there, and a NON-retired moved row's `source()` raises `CarveReachUnavailable` in that same checkout. **The ORDER is not the same in the three callers the case drives** (Copilot round 25): `source()` refuses the retirement before it resolves a mount at all and `shed_relpath()` reads the row and stops, but `module()` calls `install()` FIRST and `install()` DOES probe both legs — it records a missing one on `sys.meta_path` rather than raising, deferring that error to an import. What all three share is the OUTCOME this evidence rests on: the refusal holds where the submodules were never initialized, which is the state a retained consumer is most likely to be read in.
* **Leg A** — `verify-carve-arrival.py --destination openxdox_code --dest-root <openXdox-code#20 @15e8115d> --phase B --replica-at tests/ideation-dashboard/conftest.py=tests/conftest.py --replica-at tests/ideation-dashboard/session_fixtures.py=tests/session_fixtures.py` → `OK … 96 row(s) arrived, 9 digest(s) verified, 85 declared-edit row(s) within their lines, 4 unapplied; 2 of 2 declared replicas verified; 124 file(s) with none undeclared; 4 row(s) re-destined HERE and 0 AWAY; 23 declared admission(s) used`. **PR #1031 has LANDED**, so this is no longer measured in a scratch tree that carries it: before that merge the run stopped on this leg's PRE-EXISTING undeclared `src/openxdox/gate_console.py` lines, which were #1031's subject and never this act's.

## Landing order, and the window it opens

PR #1032 (the form) → **this** → the two legs. Between this and openDox-code#24 the leg's own arrival run REFUSES (`arrival-not-retired`), which is § 5.7's window in its other form and closes by merging the deletion, never by touching the manifest. The partial case is gentler: a declared edit not yet applied is no refusal, so until openXdox-code#20 lands the ending replay's lines simply read as not-yet-applied inside a row still within its declared lines (measured at openXdox-code `c1ad341a`: 29 of that row's 196 declared carve lines differ, none undeclared).

**The gates run now, and they did not before.** Every openxFactory required check except `lane-line` and `merge-master-approval` is declared `on: pull_request: branches: [main]`, so while this targeted #1032's branch only two of them existed. #1032 landed, this was retargeted with `gh pr edit 1043 --base main` BEFORE that branch was deleted, and the full set ran. **TEN of the eleven PASS at `338308c8`** — `openxdox-consumer-gate` among them, required on `main` since ruleset 23554310 landed on 2026-09-16. **`pytest-suite` (run 35136981617) is RED, and not on this act**: `main` itself fails the same single test at `fa39141c` (run 35135352984, 18:35Z) and the failure reproduces in a clean checkout of `origin/main` with nothing of this act in it — `test_the_resolution_ordering_and_marker_classes_read_zero_over_the_real_tree`, on two ACTIVE RATIFIED writers of one `document-lifecycle` requirement that landed at 18:33-18:35Z (`scope-pinned-arm-root-naming` and `adopt-entry-grain-dispositions-form`, neither naming the other). This pull request HOLDS until `main` is green; the figures below are measured at this head either way.

## Merged forward, and what the merge FALSIFIED

This branch was merged onto PR #1032's head after #1032 itself had merged `main` — one merge, not two, and deliberately so: #1043 already carried #1032's branch commits, so letting #1032 SQUASH into `main` first and then merging `main` would have given git a merge base older than both and delivered the same change by two routes. That is the stacked-squash trap, and it manufactures conflicts in exactly the files that publish one absolute.

**Six conflicts and TWO RED TESTS, every conflict a place the same figure or the same narrative is published, and `docs/opendox-carve-manifest.yaml` was NOT among them** — the document this act actually changes auto-merged clean. The rule for all six was one rule: **take the incoming side and APPEND this act's link**, never replace a narrative and never take a side on a number.

| file | what collided | resolution |
| --- | --- | --- |
| `README.md` | the doc-index runbook line | incoming, figure re-derived |
| `scripts/carve_lines.py`, `validate-carve-manifest.py`, `verify-carve-arrival.py` | one bare aggregate in a docstring, three times | incoming, figure re-derived |
| `docs/opendox-cutover-runbook.md` | **seven** hunks | see below |
| `tests/carve_manifest/test_carve_manifest.py` | the aggregate test's narrative chain + its pin | incoming chain, this act appended, pin re-derived |

The seven runbook hunks: § 2's aggregate line (re-derived); the ACT-NARRATIVE chain (**union in landing order** — S7 +782, S8 +40, the pre-existing annotation +48, and only then this act's **+167**, which is the figure the de-duplication below left it at and the figure the runbook states); the replica-line paragraph (incoming whole, plus one sentence saying this act moves one cell and neither replica line); the "CURRENT TO" clause (extended by one link, with this act at its head); the enumerated history's tail (this act added to the movers, **not** re-narrated — the paragraph's own warning is that two acts restating one set of absolutes is how a count becomes wrong in a merge); the per-destination lead sentence; and the `794 … N now` mirror.

**THE MERGE FALSIFIED THREE OF THIS BRANCH'S OWN CLAIMS, and that is the substantive half.**

1. **The staleness registration is gone.** This branch said the per-destination table's cells "still sum to 1421", registered the table as history and deferred the redistribution to "one later act". **Slice S7 IS that later act**: it re-derived every cell and pinned all five columns with `tests/carve_arrival/test_verify_carve_arrival.py::test_the_runbook_per_destination_table_is_the_manifests_own_sum`. So the table is a MEASUREMENT again and this act must move its own cell rather than register the table as stale — `openxdox_code` **750 → 917**, one cell, because every declared line of this act falls on one row of that leg. The pin would have caught it; the point is that it did not have to.
2. **"The table is not moved by this act either"** went with it, in § 2's narrative chain.
3. **THE ROW DECLARED TEN LINES TWICE, AND THE AGGREGATE COUNTS ENTRIES.** This act's `adapter calls` entry carried the removed block's full **177** carve lines, ten of which slice S5's own entry on the same row already declares — *"declared twice on purpose"*, the note said, *"so the removed block's extent is readable in one place"*. Between that authoring and this merge, `#1030`'s Copilot review added a pin to `test_the_real_manifest_carries_the_ruled_q_l7_amendment` refusing ANY line declared twice on one row, and its reason governs: the published aggregate SUMS LINE ENTRIES, so a repeat states ten lines this act does not add while the row's declared SET is unchanged. **The merge went red on it, which is the pin working.** The repair is the minimal one — this entry carries the other **167** lines and the note says in prose where the ten are — so the row declares **196 entries over 196 distinct lines**, `verify-carve-arrival.py` (which reads a row's declarations as a SET) asks the leg for exactly what it asked before, slice S5's landed record is untouched, and this act's honest contribution to the aggregate is **+167**, not +177. The block still spans 177 carve lines and both entries' notes still say so.

**The first-use pin failed at the merge, exactly as this body predicted, and the failure is the pin working.** `#1030` (slice S7) added an `adapter calls` entry at carve line **310** to the `tests/ideation-dashboard/test_wheel_verbs_dom.py` row — a row this act RETIRES — so the pin's `[("path constants", [26])]` became `[("path constants", [26]), ("adapter calls", [310])]`, written here with the act that added the second entry named. A declaration carried on a retired row is lawful and is what the form is for: `verify-carve-arrival.py` drops a retired row before it asks the destination anything, so the entry is CARRIED, not applied, and the row goes on recording what the carve moved and what each ruling did to it.

**§ 5.5's TWO PHASE EXAMPLES MOVED TOO, and a pin that did not exist when this branch was cut is what said so.** `test_the_runbook_phase_examples_are_the_arrival_the_manifest_produces` arrived on `main` with slice S8 (`#1025`): it re-derives both of § 5.5's expected lines from the LANDED manifest and composes them with the verifier's own summary, elision by elision, because the runbook states what an operator compares their own run against — so a figure it states and the tool cannot print is an expectation no run can meet. Retiring two `opendox_code` rows takes that leg's EFFECTIVE arrival from **119 to 117**; both are `moved_with_declared_edit`, so the verbatim count stands at 35 and the declared-edit count falls 84 → 82, and phase B's printed figure is that plus the one line-declaring replica the example places (**85 → 83**). Both comments are re-derived, and § 5.5's "EFFECTIVE arrival" paragraph now names BOTH subtractions — RULED Q6's four re-aimed rows and this ruling's two retired ones — as the one point they are: § 2 records what the CARVE moved, a run reports what this leg PLACES.

**Figures, RE-DERIVED from the merged document and not carried from either side** (`rederive-absolutes.py`, which measures the manifest and then checks all **seven** mirror sites — the seventh added in round 14, after it turned out to be the one left stale): the pair is **`(2621, 176)`**, by class `adapter calls 1649, import rewrites 726, path constants 246`, per destination `opendox_code 1667 / opendox_spec 26 / openxdox_code 917 / openxdox_spec 9` summing to `2619` plus the `2` replica lines that belong to no destination column, `retired` 2, `re_destined` 4. **ALL MIRRORS AGREE.**

## And then `main` itself, after #1032 squash-landed

#1032 merged at `d5dd1ca5` and #1044 at `b1df95ee`, and this branch then took `git merge origin/main` — **the second half of the same trap, arriving from the other side.** Because this branch already carried every one of #1032's commits, git's merge base fell back to `a499061e` and #1032's SQUASH arrived as a second copy of a change this tree already had: **five files, fourteen hunks, and every hunk the same shape — OURS is THEIRS plus this act's own edit on top.**

Resolved by that one rule and VERIFIED rather than asserted: every removed line in `git diff origin/main` was read, and each is a line #1032 landed and this act deliberately rewrites — the zero-use pin into its first-use form, `retired 0` into `retired 2`, "NO ROW BELOW CARRIES THE FIELD" into the paragraph naming the two that do, and `2454` into `2621` at each mirror. Nothing of `main`'s survives only on `main`. #1044's two files (lane `openxfactory-5`) auto-merged and are carried unchanged. The gitlinks needed no repair and that was CHECKED: `git ls-files -s openDox openXdox` and `git ls-tree origin/main` agree at `openDox 3819625e` / `openXdox a6500141`.

## Copilot round 14 — three merge-forward reviews (this PR's 17th, 18th and 19th), two open threads and ten findings, ALL REAL, all fixed

**A SEVENTH `assert True; return` NO-OP SEAT**, in this act's own `test_carved_reach_refuses_the_two_landed_retired_rows`. `#1030`'s review took that idiom out of five landed-document tests; `#1032`'s round 10 took it out of a sixth; this act — authored beside BOTH — arrived carrying it a seventh time, on the test that reads the FIRST USE of the entire form. It now reads through `the_landed_manifest()`, where the absence is a failure. **Proven by tampering**: with the manifest moved aside the test FAILS naming the file, where before it reported `1 passed`; restored byte-identical. Three acts in a row is not three accidents, and the module docstring now says why: the idiom is read off the neighbouring test that still legitimately branches, so every act that adds a landed-document pin re-makes the cleanup until the seat test is the only branch left to copy.

**A SEVENTH AGGREGATE MIRROR the re-derivation did not know about.** `tests/carve_arrival/test_verify_carve_arrival.py:3329` states what the manifest pin IS — not dated history — and still said `(2454, 176)`. Corrected to `(2621, 176)`, **and the site was added to `rederive-absolutes.py`'s `MIRRORS`**, because a tool that checks six of seven places will leave the seventh stale again in the next act exactly as it did in this one.

**177, 167 AND 196 ARE THREE ANSWERS TO THREE QUESTIONS, and two documents were giving one of them to all three.** The manifest header and runbook § 2 both called this act's declaration "`adapter calls`, 177 lines". **Measured from the landed row**: its four entries carry **196 line entries over 196 distinct lines** — 12 `import rewrites`, 7 `path constants`, slice S5's 10 `adapter calls` and this act's **167** — with **zero repeats**. The removed block SPANS **177** carve lines; the entry declares **167** of them; the row declares **196**. Both documents now name all three and say which is which. The same conflation had also survived into § 5.8's transition-window paragraph, which still described the pre-dedupe design — "206 line entries … declared twice on purpose" — and now states the rule that replaced it: a line is declared once per row, and the block's extent lives in the two entries' notes rather than in ten numbers written twice.

**TWO "TODAY"s THAT WERE NOT TODAY.** `test_carve_manifest.py`'s ASK-7 provenance comment called `(1761, 159)` the current aggregate and the shared line-number docstring called 1761 "today", while the assertion three lines above enforces 2621. Both now read as the chain they are — `(1422, 158)` at RULED Q-L8 (c), `(1761, 159)` at RULED Q-L7 (a), `(2621, 176)` today — because a dated figure kept beside a current one is the point of those comments and a stale one impersonating the current one is the opposite.

## Copilot round 15 — the paragraphs that explain ONE subtraction, where this act makes a second

Three sentences, one defect, and it is this act's own. **RULED Q6 took four rows off `opendox_code`'s EFFECTIVE arrival and gave them to `openxdox_code`; this act takes two more off `opendox_code` and gives them to nobody**, because a retired row is owed at no leg at all. Everything that explained the Q6 subtraction was explaining one subtraction where there are now two. Measured from the landed manifest:

```
opendox_code : TABLE 123 (35 verbatim / 88 edited) -> EFFECTIVE 117 (35 / 82)   [-4 re-destined, -2 retired]
openxdox_code: TABLE  92 ( 9 verbatim / 83 edited) -> EFFECTIVE  96 ( 9 / 87)   [+4 re-destined]
```

§ 2's per-destination explanation said *"FOUR FEWER … 119 against 123 … the EFFECTIVE edited counts are 84 and 87"* and now says **SIX FEWER, 117 against 123, and 82 and 87**, with both rulings named and the difference between them stated — a re-destination MOVES a placement and its declared lines travel with it; a retirement DELETES one and its lines leave every leg's reckoning while the row goes on recording them. § 5.5's *"the `85` is `84` moved rows plus the Q-L7 replica"* is now **`83` is `82` plus the replica**, with the old pair kept as what it was until this ruling. The arrival test's marker comment and its replica-arithmetic docstring went with them.

**And the reason § 5.5's EXAMPLES were already right while the sentences explaining them were not** is the finding worth keeping: `test_the_runbook_phase_examples_are_the_arrival_the_manifest_produces` DERIVES both figures from the invocation and the manifest instead of carrying them, so they moved with this act on their own. A derivation is what lets a figure survive an act nobody was thinking about when the example was written; the prose about the derivation has no such protection.

## Copilot round 16 — § 2's disposition table is a LEDGER, and the column beside it is an OBLIGATION

The table's `moved_with_declared_edit` row says what a destination owes for a row of that kind — commit A byte-identical, commit B's diff touching only that row's declared lines — and until this act every row of a kind owed the same thing. **Two of the 175 are now RETIRED and owe neither half of it.** `rows_for()` drops a retired row before the destination is asked anything; § 5.8 requires the OPPOSITE, that `retired.at_path` be ABSENT, and `arrival-not-retired`'s remedy is the deletion and not a diff.

**And the count must not move**, which is why the qualification is prose and not arithmetic: the row keeps its disposition, its digest and its `edits[]` — the whole reason the ruling made a retirement a FIELD rather than a re-cut — so 175 stays 175 and the table stays the carve's ledger. RULED Q6's four re-destined rows are named beside them as the milder case: their proof is owed at the leg `re_destined.to` names. **Appended to the totals paragraph, never inserted as a third one** — `test_the_runbook_disposition_table_and_totals_are_the_manifests_own` bounds that block between two fixed sentences and fails on a third paragraph.

## Copilot round 17 — `surface:` was glossed as the surface the arrived file DROVE, and the first use is false of it

The sharpest finding this act took, and the only one about the GRAMMAR. `surface:` landed at #1032 glossed *"the openxFactory path of the SURFACE the arrived file DROVE"* — with **no row using the form**, which is exactly the condition under which a gloss can be narrower than the thing it describes and nobody finds out. The first use retires two rows that do **not** stand in the same relation to the surface they both cite: the TRAY suite drove `views/intent-feed.js`; the WHEEL suite does not, and this act's own `note:` says so in the suite's words — it *"rides along because dispose.js imports it"* and *"drives the LOCAL path only"*.

**Widened, not re-pointed, and the value does not move.** `surface:` is now *the SURFACE THE ARRIVED FILE NEEDED AND CANNOT OBTAIN AT ITS LEG* — exact for both rows where DROVE was exact for one — and **the gate is unchanged**, because `carve-retired-surface-live` asks whether the cited row is `not_moved` and never how the arrived file used it. **Re-pointing would be worse:** the module the wheel suite really drives is `views/dispose.js`, which slice S5 moved to `openxdox_code` — at a leg, so "gone from BOTH legs" is false of it and the gate would refuse it, correctly.

**The finding underneath the finding: the form names ONE absence where a retirement may rest on TWO**, and this act is the first to produce such a row. Now stated in the manifest header beside the widened gloss and in runbook § 5.8's *"What the form CANNOT express"*. A `surface:` **list**, or a second field for *"moved to another leg"*, is **a ruling's act and not an author's** — the line § 5.8 already draws for widening `retired:` to a line range. **Eleven carriers swept together**, every site asserted before it was edited; the only surviving *"drove"* quotes what the gloss used to say.

## Two `(DRAFT)` words this act found in itself

Not a review round. Both `retired:` notes called the leg pull request carrying the deletion `(DRAFT)` — true on a branch, **false within minutes of the landing**. A `retired:` note is the only account of the deleted coverage that survives the deletion, so the durable record is the last place that should carry a word with a shelf life. Both now name the **order** the ruling fixes instead of the **state** of an afternoon. The five other `(DRAFT PR …)` markers in this manifest belong to slices S3, S5 and S8 and are registered as residue rather than swept — an act does not rewrite another act's record in passing.

## Copilot round 18 — round 17 corrected the PROSE and left the DIAGNOSTICS

Five suppressed comments and one thread, all one finding. Round 17 widened `surface:` and swept **eleven** carriers — every one of them reading matter. **It did not go to the strings the program prints**, which is the half an operator meets. Seven more sites, three of them live messages: `carved_reach.py`'s `CarveRowRetired`, which **the newly landed wheel row is the first row that can raise**, and which said *"the surface it drove"* of a suite whose own note says it did not; `verify-carve-arrival.py`'s remediation, printed on **every** refusal including `arrival-not-retired`, the one whose remedy is a deletion; and `validate-carve-manifest.py`'s `carve-retired-surface-live` refusal, explaining the rule to an author with the word the first use disproved. Four more state the contract rather than raise it: the `--json` record's account of the field, two test comments (one sits over the assertion covering BOTH retired rows and now names the difference in place), and **`README.md`'s public index**, which published a condition the first use already disproves.

**Eight rounds running, and the lesson is sharper each time.** A correction is finished only when every CARRIER is found, and a carrier is not only the figure (round 14's seventh mirror), the sentence explaining where the figure comes from (15), the column saying what the figure obliges (16), or the gloss defining the field (17) — it is also **the string the program prints** (18).

## And the same defect one grammar earlier, found by sweeping for this act's own

Not a review round. The **RULED Q6 section header** in `tests/carve_manifest/test_carve_manifest.py` said, in the present tense, that *"the landed manifest — which carries the form and uses it nowhere"* is asserted separately in the § 8.2 seat. True the day PR #1011 landed Q6 with the grammar and no user; **false since slice S5 (PR #1023) re-destined four rows**. It is fixed in the same shape as the `retired:` section header below it — which this act already had to rewrite for exactly this reason, one grammar later: name the state the form LANDED in *and* the state the document is in now. **A grammar that lands ahead of its first use plants a present-tense sentence with a fuse in it**, and both of this floor's placement grammars have now proved it.

## Copilot round 19 — the verb survived in the PROCEDURE, and in the check's own docstring

Two threads, three sites, the same verb rounds 17 and 18 swept from the prose and the diagnostics — this time where it does the most work. § 5.8's **opening account** said the three suites *"reached their legs DRIVING `views/intent-feed.js`"*, the first sentence a reader meets in the section and the one the wheel row's own note contradicts. **§ 5.8 step 1 is the sharper half and is worse than a stale sentence: a FALSE REQUIREMENT put to the person whose word the whole form rests on** — a ruling asked for *"the surface they drive"* is asked a **narrower question than the grammar answers**, and the first act to use this form had one row of two that could not have answered it. And `_check_retired_surfaces`'s docstring, with a second finding inside it: **three and two are both true of different things** — the ruling retires three suites, one drove the module, one only loads it, and **the third is not a `retired:` row at all**, so exactly two rows reach that check.

**Three rounds on one verb, and the order they were found in is the lesson:** 17 corrected the definition and its prose, 18 the strings the program prints, 19 the procedure and the check. **A vocabulary change is not finished when the definition is right; it is finished when nothing still asks the old question.**

## The last copy, found by enumerating the verb instead of grepping for it

After rounds 17, 18 and 19 each found *"drove"* somewhere the previous sweep had not looked, the last one was done by **enumeration**: every `drove | drives | driving | drive` in the eight files this act touches, read in context — **32 occurrences, 31 correct**, and one wrong (`validate-carve-manifest.py`'s *"WHAT S8 NEEDS IT FOR"* paragraph, carrying the same sentence § 5.8 had just shed). **And the first wording of that fix made a claim this act never measured** — *"one DROVE it and two only load it"*, an assertion about the ruling's third suite, whose relation to the module this act never measured because nothing in it depends on that. Reworded to say only what was measured. **A sweep that tidies a verb is not a licence to answer a question nobody asked.**

## Copilot round 20 — the per-destination table's own qualifier named ONE ruling where there are now two

Three suppressed comments, **two of them already fixed before the review landed** (§ 5.8's opening at `8cf33395`, the validator's *"WHAT S8 NEEDS IT FOR"* at `4eddf3b0`), and one new and real. The table's lead sentence — *"counted at the `destination:` each row names, which is what each leg's arrival run reports, **save where RULED Q6 re-destined a row**"* — is the sentence that tells an operator **when the table and a run disagree**. This act adds the second reason they disagree and had already written it into the paragraph BELOW the table while the qualifier ABOVE still named only Q6.

**Moved in lockstep with its pin.** `test_the_runbook_per_destination_table_is_the_manifests_own_sum` bounds the table by that exact sentence, held as a string constant whose own comment says *"a re-wrap of the sentence breaks this anchor LOUDLY … rather than quietly moving the block's boundary"* — so the sentence and the constant move together, and the constant's neighbouring comment now records **why** the qualifier grew.

## Copilot round 21 — § 5.5's phase-B example is the COMPLETE commit B, and it did not say so

The example promises `83 declared-edit row(s) … 0 unapplied`; a real run of that exact command today prints `82 … 1 unapplied`. **The finding is the last clause of the review: the pin cannot catch it** — it composes both expected lines from the MANIFEST and holds no destination checkout, so the runbook and its pin can be consistently wrong together.

Measured by running the documented command verbatim against openDox-code#24 at `e2d5ac46`, then taking the arithmetic apart rather than assuming it. `82` is this leg's EFFECTIVE edited count; **one** of those 82 is byte-identical to its carve blob, so it counts as `unapplied` and not as `diffed` — leaving 81. The line-declaring replica **really does differ**: `tests/conftest.py` against the carve blob of `tests/ideation-dashboard/conftest.py` at **line 25** (`REPO_ROOT = HERE.parent.parent` → `HERE.parent`), that row's own declared `path constants` line, and `check_replicas` adds it to the same counter. So **`81 + 1 = 82` today and `82 + 1 = 83` the day that last edit lands**.

**So the example is right and INCOMPLETE, not wrong** — it is the complete commit B's line, which is exactly what `0 unapplied` already declares itself to be one sentence earlier, and the `83` is that standard's other half, which nothing said. Both say it now, with today's real figures beside them, so an operator reads the gap as **the leg's remaining work**. Neither the expected line nor its pin is changed: the pin composes from the manifest deliberately, because documentation that moved every time a leg committed would pin nothing.

## And round 21's own insertion broke the sentence it interrupted

Found by reading the edit back in place rather than trusting that it applied. The measured paragraph went in mid-sentence, leaving the original continuation hanging off a colon whose subject was three sentences away — **a correction that makes the document harder to read is not finished either**. Restructured into three paragraphs. **And the interrupted sentence carried a real error that only re-reading exposed**: it said the phase-B figure is *"one above the `verbatim / edited` column § 2's per-destination table states"*. That column reads **88**; the phase-B figure is one above the **EFFECTIVE** edited count, **82**. The six-row gap is this floor's two placement rulings — the distinction § 2's own paragraph was amended to make two rounds earlier, which this sentence one section down had never been told.

## Copilot round 22 — "retired one" read as a COUNT

Round 20's own wording. The qualifier read *"save where RULED Q6 re-destined a row or RULED 5656343213 **retired one**"*; the `one` was **anaphoric** — "a row" — and a careful reader took it for the **number** one, which is wrong either way (four re-destined, **two** retired). **The reading matters more than the ambiguity**: this is the sentence that tells an operator when the table and a run disagree, and it is pinned as a string constant precisely so it cannot drift — a sentence that has to be parsed twice is not doing that job. Both clauses are plural now and the sentence states a KIND of exception rather than a count, moved in lockstep with the marker constant, with the misreading recorded beside it.

## Copilot round 23 — two sentences that would have landed FALSE

*"TWO FIGURES, AND THEY ARE NOT THE SAME ONE"* in the manifest header, where the same sentence names **three** (the block SPANS 177, the ENTRY declares 167, the ROW declares 196) — round 14's own comment called them *"three answers to three questions"*. And **this description itself**, which is the landed commit message, still said the ten lines S5 declares are *"declared twice"*: true of an earlier draft, false since `#1030`'s pin landed mid-flight and the merge went red on it. Corrected above. The third was the remediation printed on **every** `arrival-not-retired`: it ended *"the deletion and the block land together or not at all"* — worse than stale, because **the two cannot land in one commit at all**, being in different repositories with § 5.8 landing the block FIRST on purpose. An operator meeting that refusal is in the **expected state of the window**, and the string now says so and names the remedy: the leg's own pull request, never an edit to the manifest.

## Copilot round 24 — a chronology that ended one act too late, and a PHASE CONTRACT this act made false

§ 2's act-narrative said slice S8's forty lines gave *"the `1667` and `703` the table carried **until this act**"* — and the very next sentence says the pre-existing `openxdox_code` annotation moved that cell to `750`, which is where this act's own `750 → 917` starts. Corrected.

**And this act made the verifier's phase contract false**, which is the more interesting half. The module docstring said *"`--phase A` can prove EVERY moved row of a destination at its strongest"* and `--phase`'s `--help` said the same. Both were exactly true until RULED 5656343213: `rows_for()` now drops a row retired at its own effective arrival **before either phase asks anything**, so it is not placed, not digested and not diffed — and what is required instead is that `retired.at_path` be ABSENT. Both now read *"every moved row NOT RETIRED by ruling"*. **The `--phase` help is the second diagnostic this act has had to repair after changing what the tool does**, and a `--help` line is the carrier a person reads *before running anything*.

## Copilot round 25 — a path file the documented procedure then REFUSES, and one control-flow claim true of one caller in three

**§ 5.3 generated a tree § 5.5 refuses.** The path-file generator keyed on `destination:` — the field a RULED re-destination (§ 5.7) and a RULED retirement (§ 5.8) both leave exactly as the carve wrote it, because it is the record of what MOVED. Measured on the landed manifest:

```
opendox_code : `destination:` key -> 123 rows / 246 lines     rows_for() -> 117 / 234   [-4 re-destined, -2 retired]
openxdox_code: `destination:` key ->  92 rows / 184 lines     rows_for() ->  96 / 192   [+4 re-destined]
opendox_spec / openxdox_spec: 56 and 47, unchanged — no ruling has touched either leg
```

Commit A would place the four rows RULED Q6 sent away and the two RULED 5656343213 retired, for the phase-A run one section down to refuse **before printing the line § 5.5 promises** — one refusal per run, both checks raising on the first row they find, so six leftovers cost six runs with the losing half asked first. **The same key fails the other half in SILENCE:** the gaining leg's path file is four rows SHORT, so the files that ruling moved there would be missing from the carve ref meant to place them. The generator now asks the question the verifier asks, and § 5.3 records what the gap means for history — the two `-code` legs were carved BEFORE both rulings, which is why their real history carries those six removals as later commits (§ 5.7 step 4's LOSING half, § 5.8 step 4) rather than as an arrival that never placed them.

**Pinned by RUNNING the documented program**, because a generator and a verifier that disagree about which rows a leg is owed cannot be caught by reading either alone: `test_the_runbook_path_file_generator_is_the_verifiers_own_predicate` lifts the heredoc out of the document, feeds it to `python3 -` with § 5.3's own arguments, and compares its two lines per row with `rows_for()` and `effective_arrival()` for every destination the manifest declares — `opendox_root` among them, whose whole answer is no lines at all. **Its boundary was found by its own fail-closed assertion on the first run**: this runbook quotes TWO `<<'PY'` heredocs (§ 8's shed `def test_` count is the other), so it is bounded on § 5.3's COMMAND LINE, which is also the invocation it reproduces. Mutation-checked both ways — 238 lines against 234 without the retirement filter, 242 without the re-destination branch — and the paragraph's own six figures are derived here too.

**And the suppressed comment was the same shape one level down:** the retirement case's docstring stated ONE order for THREE callers. § "Evidence" above carries the corrected account; the short form is that the OUTCOME holds for all three and the ORDER does not.

## Copilot round 26 — a generator comparing destination LABELS, and another act's `+48` attributed to this one

**Round 25's fix fell one step short of the claim it made for itself.** § 5.3 said it asked *"the question the verifier asks"* and compared **labels**, where `rows_for()` compares resolved `(repository, leg)` identities. A `destinations:` key is a LABEL and never a referent — `check_shape` deliberately admits two keys sharing one `{repository, leg}` body — so `$DEST` given as the other spelling of a leg matched no row at all and produced an **EMPTY path file**, while the verifier, resolving both spellings to one identity, went on expecting every row. It resolves the key now with the same three lines `_resolved_destination` uses, **including its 1-tuple degradation** for a key `destinations:` does not carry. **The RETIREMENT half still compares labels, deliberately**, and the prose says why: `retired_arrival()` asks whether the block names the placement ITS OWN ROW makes, and a block naming another one is `validate-carve-manifest.py`'s check 6 — resolving here would quietly re-decide the other tool's finding.

**Pinned on a document the test MAKES**, because the landed manifest declares five keys and no alias: the pin writes a copy of the manifest with a second key sharing `opendox_code`'s body and asserts both spellings give the same path file, each against `rows_for()` under that document. Mutation-checked — restore the label comparison and it reds with *"answers `'opendox_code_other_spelling'` with 0 lines where `rows_for()` is owed 234"*. **This is the third time the estate has met this defect**: RULED Q-L8 (c) repaired it in the tools, `#1032`'s round 9 found the last selector still making it, and round 25 wrote a new program that made it again beside both fixes.

**And § 2's historical paragraph credited THIS act with the pre-existing `openxdox_code` annotation's work** — *"This act MOVES … 703 -> 750 … 47 of this act's 48 lines"*, one paragraph above the one stating this act's own **167** declared lines and **750 -> 917**. Measured on the landed manifest: that cell is **917** today, the `+48` (47 rows' lines plus the `:271` replica line) is the pre-existing annotation's, and this act's `+167` starts where it left off. **The same defect round 24 found one paragraph up**: a merge-forward brings another act's sentences in with its commits, and *"this act"* is the phrase that survives the move and changes meaning.

## Copilot round 27 — a placement contract this act made false, a refusal that told an operator to do the impossible, and three where there are two

Four suppressed comments, no threads, and every one a sentence this act would have LANDED as TRUE.

**§ 5.5's Commit A rule still promised "every row"** — *every row's blob*, so the verifier can prove *every moved row of that destination at phase A* — three bullets above a phase-A example that expects **117** of this leg's 123. **This act is what made it false**: `rows_for()` drops a row retired at its own effective arrival before either phase asks anything, and round 25's fix stopped § 5.3's path file from placing them. Round 24 repaired that contract in the verifier's module docstring and in `--phase`'s `--help`; the runbook said it too, one document over, and was not told. It now reads *"every moved row NOT RETIRED BY RULING"* and states what is required of a retired row instead — its path ABSENT.

**`check_retired`'s own refusal detail told an operator to do something impossible**: *"Delete it in the commit that lands the `retired:` block — the block and the deletion are one act."* The block is at openxFactory and the deletion at the leg: two repositories, never one commit. Round 23 moved `REMEDIATION` to the two-merge window for exactly that reason and the per-refusal detail under it kept the old sentence, so **every `arrival-not-retired` printed two contradictory landing instructions**. It now names the leg's own pull request and § 5.8 step 4, keeps "one act" with the qualification that makes it true — one act in TWO REPOSITORIES, therefore two merges — and says the refusal is the window's expected state.

**THREE SUITES, TWO RETIREMENTS.** § 5.8's opening and the manifest validator's `_check_retired_surfaces` docstring both introduce the ruling with three suites and then say *"the suites"*. The third is the ending replay inside `tests/test_staging_workbench.py`, whose row goes on arriving and whose other tests drive surfaces that leg HAS — a partial removal taken as an ordinary declared edit, which is what *"What the form CANNOT express"* says further down each file. Both now say it where the reader meets the claim.

Plain gate: pytest-suite run 35223659115 SUCCESS at `212095d5`, with clearing-dispatch-gate, former-id-arrival-gate, lane-line, merge-master-approval, openreposhape-pin, openspec-cli-pin, openxdox-consumer-gate, release-tag-gate, signed-execution-chain-gate and wallet-validation all
SUCCESS (SonarCloud advisory); 13 threads / 0 unresolved. Rule 6 does not apply: ten files, none under `openspec/changes/`, and the README hunk is the doc-index runbook
line rather than the OpenSpec Records block.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.

2 participants