Skip to content

Carve manifest: declare the S6 /source re-home lines on the serve.py and serve_projection.py rows (Q-L1; § 3.4 S6) - #1009

Merged
brettheap merged 16 commits into
mainfrom
chore/s6-source-declared-edits
Sep 12, 2026
Merged

brettheap merged 16 commits into
mainfrom
chore/s6-source-declared-edits

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN).

UPDATE 2026-09-12 18:33Z: #1001 has LANDED on main as squash commit
f663b379. This branch (originally cut from #1001's own branch) has been
merged with current main and the stack has collapsed — the diff below is
S6's own act only, based directly on main, and this PR is no longer
stacked on #1001
.

The ruling. Q-L1 of the § 3.4 slice rulings — #656 comment
5642758731,
Brett Heap, 2026-09-12 — binds every slice: "an edit to an ARRIVED file (a
moved_verbatim / moved_with_declared_edit row of
docs/opendox-carve-manifest.yaml) outside its declared lines is an undeclared
movement — each slice that edits such a file pairs its leg PR with an
openxFactory row-annotation PR (the ASK-7 pattern) that lands FIRST."
RULING
Q4, same comment: the read-only /source pass-through returns from a
CONTRIBUTED binding (openXdox-code's serve_projection.py) to a FIXED core
arm of the neutral product (openDox-code's serve.py).

CLAIM: #656 comment
5647354329.

The two rows, both already moved_with_declared_edit

Neither row is a new carrier — this act adds one new adapter calls entry to
each and moves no other field.

row destination new entry what moved
scripts/ideation_dashboard/serve.py opendox_code adapter calls, 10 lines: [161, 162, 304, 305, 515, 516, 921, 922, 949, 950] five INSERTIONS — the registration-modes record, the two route constants (SOURCE_PREFIX/BARE_SOURCE_ROUTE), the resolve_source_path containment entry point, the two FIXED core arms in _route, and _keyed_source/_serve_source/_refuse_bare_source
scripts/ideation_dashboard/serve_projection.py openxdox_code adapter calls, 122 lines the matching DELETIONS — the same five things, plus the module docstring's opening and the "THE /source PAIR MOVES TOGETHER" paragraph, replaced by the record of where the pair went

Both sets of lines are the arrival verifier's own refusal output, taken
verbatim (verify-carve-arrival.py::_check_declared_lines, carve-commit
numbering, RULED Q-L8 (c)) — no line is typed by hand. snapshot_registry.resolve_within
(the per-entry containment rule) does NOT move and stays openxdox_code's.

Admission

One new entry, alphabetical, docs/opendox-carve-admissions.yaml
destinations.opendox_code.created:

      - path: tests/test_source_core_arm.py
        reason: "added by opensoft/openDox-code build/s6-source-core-arm (PR #16, split-opendox § 3.4 slice S6, RULED Q4, `#656` comment `5642758731`) — the runnable half of the /source re-homing: 25 shape assertions over the route's ownership, its exact-before-prefix dispatch order, its single containment authority, its content types and its three refusals, on validate.yml's explicit list; this admission PR lands first per Q-L1"
        since: "7dd0ba5a07484a2fb2715d1de4e08e7c4b68be08"

No admission is needed at openxdox_code: Leg A (build/s6-source-route-to-opendox)
adds no file.

Verification against fresh read-only clones of both legs

python3 scripts/verify-carve-arrival.py --destination opendox_code \
    --dest-root <clone of openDox-code @ 7dd0ba5a, build/s6-source-core-arm> \
    --source-repo . --phase B
=> {"result": "ok", ... "rows": 123, "declared_edits_unapplied": 1, ...}

Zero refusals. The declared_edits_unapplied: 1 is the same pre-existing,
unrelated finding openxFactory #1001's own body already recorded
(doxbench_scope_types.py, "lawful per the tool's own documented reasoning —
its declared edit simply has not been applied at this leg yet") — not S6's,
and not a new finding.

python3 scripts/verify-carve-arrival.py --destination openxdox_code \
    --dest-root <clone of openXdox-code @ 00b69de7, build/s6-source-route-to-opendox> \
    --source-repo . --phase B
=> FAIL arrival-undeclared-edit — src/openxdox/gate_console.py ...

This refusal is not S6's: it is § 4.4 RULING C2's own unlanded work
(gate_console.py lines [64, 65, 167-171, 826, 903, 968, 1012, 1135, 1150, 1151, 1154, 1155, 1157, 1339, 1351, 1374, 1487, 1550, 1551, 1569, 1651, 2241]), recorded here verbatim and left undeclared — declaring someone
else's undeclared movement under this PR's name would be exactly the
undeclared-movement failure Q-L1 exists to catch, aimed at the wrong slice.

Totals, re-derived from the manifest and never typed

tests/carve_manifest/test_carve_manifest.py::test_the_real_manifest_carries_the_ruled_q_l7_amendment:
910 → 1042 declared edit lines (+132: 10 + 122, both adapter calls),
153 rows carrying edits: unchanged (neither row is a new carrier).
README.md, docs/opendox-cutover-runbook.md § 2 (the summary line, the
"Nth line belongs to a replica" arithmetic, the per-destination table's
opendox_code 337 → 347 and openxdox_code 537 → 659 cells, and the "794 …
now" sentence) and the four docstrings quoting the running total
(scripts/carve_lines.py, scripts/verify-carve-arrival.py,
scripts/validate-carve-manifest.py, and
test_the_line_count_is_exactly_the_expression_the_validator_carried) move
with it. New row-specific pins added to the aggregate test for both S6
entries (the same idiom the ASK-7/S2/S3 pins already use), and a new "FOURTH
BUMP" presence+since pin added to
test_the_committed_admissions_file_keeps_the_ruled_seed_and_stays_well_formed
for the new admission, on the precedent PR #1001/#995/#1002 established.

Verification

  • python3 scripts/validate-carve-manifest.py → OK … 456 row(s) … 166 moved_verbatim, 152 moved_with_declared_edit, 138 not_moved — same row
    counts as base.
  • python -m pytest -q tests/carve_manifest tests/carve_arrival tests/carve_conformance → 269 passed.
  • git diff --name-only origin/main...HEAD carries no openspec/changes/
    path (plain gate).

Landing order

#1001 has landed (f663b379); this PR is now based directly on main (no
longer stacked) and is ready to land on its own. PR #1010 (the S4
annotation) is STACKED ON THIS ONE
and lands after it. This branch does
not merge itself.

Refs #656 (stays OPEN).

🤖 Generated with Claude Code

Summary by Sourcery

Annotate the /source pass-through re-homing and its required destination admission in the carve manifest.

Enhancements:

  • Declare the § 3.4 S6 /source re-homing edits between the core and projection serve rows in the carve manifest.
  • Update carve documentation and aggregate validation to account for the additional declared edit lines and destination totals.

Documentation:

  • Record the new opendox_code admission for the source-core-arm test and update cutover runbook totals.

Tests:

  • Pin the S6 manifest annotations and newly admitted test file in the carve manifest and arrival-admission tests.

brettheap and others added 13 commits September 11, 2026 22:59
…(Q-L1; § 3.4 S3)

Q-L1 of the § 3.4 slice rulings (openxFactory#656 comment 5642758731, Brett
Heap, 2026-09-12) binds every slice: "an edit to an ARRIVED file — a
`moved_verbatim` / `moved_with_declared_edit` row of
`docs/opendox-carve-manifest.yaml` — outside its declared lines is an
undeclared movement, so each slice that edits such a file pairs its leg PR
with an openxFactory row-annotation PR (the ASK-7 pattern) that lands FIRST."

Slice S3 builds the VIEW REGISTRY at openDox-code — `ViewBinding` +
`collectViewBindings` on the § 2.4 / § 4.3 seams, mirroring
`route_extension.collect_bindings` — and it edits exactly ONE arrived file:
`src/opendox/web/app.js`. This act declares the lines it edits, in the Q-L1
form ruled at comment 5628560136, and nothing else.

ONE ROW CONVERTED, `scripts/ideation_dashboard/web/app.js`,
`moved_verbatim` -> `moved_with_declared_edit`, 37 declared lines in two
RULED classes:

  * `import rewrites`, line 43 — the shell's ONE direct import of a class-B
    module (`import { isGateBearing, mountGateBar } from "./views/gate.js"`),
    the line openDox-spec `docs/front-end-package-boundary.md` § 4.1 names by
    number: "app.js stops importing class-B modules directly. Its line 43
    becomes a lookup in the collected bindings, and a shell built with no gate
    binding registered renders the tab strip WITHOUT the gate bar rather than
    failing to load." One import statement replaced by another
    (`./views/view_extension.js`), which is what the class is.

  * `adapter calls`, 36 lines — the CALL SITES: 470-523 the hardcoded `TABS`
    table, which becomes `CORE_VIEWS` collected through
    `collectViewBindings()`; 574-640 the tab router's field reads, which stop
    reading a module-global list and derive the strip from the collected
    bindings; 842-844 / 865-866 / 876 the gate-bar call sites, which become
    reads of the binding `resolveView()` returned and null where no gate
    column is registered; 1102-1103 the one added context key, `views`. The
    class is this manifest's own precedent (`serve.py`:618,
    `snapshot_registry.py`:85): a site that reached a thing directly now calls
    the seam that stands in for it.

`index.html` is NOT in this act and takes no annotation. A `data-region`
attribute would have been a second spelling of an id the shell already
carries, and an added attribute is in NONE of the RULED `edit_classes`
(`import rewrites | path constants | adapter calls`), so declaring it would
have meant inventing an edit class rather than using one. The region contract
is held instead by the registry's own `REGIONS` table plus a drift test
against the shell's existing ids — and the row stays `moved_verbatim`,
byte-identical, which the verifier run below confirms.

PROVED, not asserted. `scripts/verify-carve-arrival.py`'s own
`_check_declared_lines` — the carve-commit numbering, `scripts/carve_lines.py`'
records, `difflib`'s opcode mapping (RULED Q-L8 (c)) — run over every one of
the 123 `opendox_code` rows against the S3 leg branch:

    src/opendox/web/app.js                     DECLARED
    60 moved_verbatim rows                     byte-identical
    REFUSALS                                   0

and the declaration is MINIMAL: all 37 declared lines are touched, none spare
(31 replace/delete lines, plus three insertions each naming both neighbours).
`scripts/validate-carve-manifest.py` OK.

NO REFERENT DIGEST MOVES. `carve_commit` and `carve_tag` are untouched,
`opendox-carve-0` stays the label, and the row keeps the `sha256` it already
carries, which is the CARVE blob's and not the destination's. The delta is
stated and the absolute totals are deliberately NOT restated in the document:
the ASK-7 declared-edit window (comment 5642614423) is in flight over `cli.py`
and `serve.py` in this same file, and two acts restating one set of absolutes
is how a count becomes wrong in a merge. This act's whole arithmetic: rows
unchanged; `not_moved` unchanged; one row `moved_verbatim` ->
`moved_with_declared_edit`; declared lines +37 (`import rewrites` +1,
`adapter calls` +36, `path constants` +0); rows carrying `edits:` +1; replicas
unchanged.

The openDox-code leg PR lands AFTER this one, per Q-L1.

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…olutes live

`tests/carve_manifest/test_carve_manifest.py::test_the_real_manifest_carries_the_ruled_q_l7_amendment`
sums the landed manifest's declared lines and the rows carrying `edits:` and
asserts the pair — it read (862, 150) and the S3 annotation makes it (899, 151).
The suite caught it, which is the assertion working: 862 + 37 = 899 on
150 + 1 = 151 rows, exactly the delta the annotating commit states and no other
number moved (`replicas` stays 20, and the 318 `sha256` values, `carve_commit`
and `carve_tag` are untouched).

THE DIVISION OF LABOUR IS DELIBERATE AND IS NOW WRITTEN DOWN IN THE TEST. The
DOCUMENT states each act as a DELTA, because two acts restating one set of
absolutes is how a count becomes wrong in a merge — the ASK-7 declared-edit
window (`#656` comment `5642614423`) is in flight over `cli.py` and `serve.py`
in that same file this hour. The one place the absolutes are summed is this
test, and it re-derives them from the document rather than transcribing them: a
transcribed count is a claim, a summed one is a measurement. The narrative
comment gains the S3 act beside the three acts already recorded there.

THREE SCRIPT DOCSTRINGS AND ONE TEST DOCSTRING ALSO STATED 862 as a fact about
the document, and a number in prose that contradicts the document it describes
is drift whether or not anything asserts it:

  * `scripts/carve_lines.py` — "declares 862 EDIT LINES BY NUMBER, and two
    tools read those numbers"
  * `scripts/verify-carve-arrival.py` — "the manifest declares 862 edit lines
    BY NUMBER, this file decides whether a diff touches only them"
  * `scripts/validate-carve-manifest.py` — "still bounds all 862 declared lines
    against them"
  * `test_the_line_count_is_exactly_the_expression_the_validator_carried` —
    "the manifest's 862 line numbers were written in the numbering this
    validator already used"

All four now read 899. Nothing else in any of them changes: the RULED Q-L8 (c)
definition of a line, the pinned expression, and every bound are untouched —
only the count each sentence quotes.

Local runs: `tests/carve_manifest/` 121 passed, `tests/carve_arrival/`
110 passed, `scripts/validate-carve-manifest.py` OK.

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…dates (Q-L1)

A SECOND ARRIVED FILE turns out to be edited by slice S3, and Q-L1 binds it the
same way. `tests/ideation-dashboard/test_bullseye_widget.py` asserts `app.js`'s
shape by QUOTING ITS LINES BACK, so three of its quotations name the tab
router's field before the view registry renamed it:

  :900   classList.toggle("lensfull", target.view === "view-lens")
  :1781  storeTab(target.view);
  :1785  const remembered = TABS.find((t) => t.view === storedTab());

`.view` -> `.region` in all three, and nothing else on any line. The row is
ALREADY `moved_with_declared_edit` (its `path constants` line 40), so it changes
no disposition and is not a new carrier of `edits:`; it gains one `adapter
calls` class with those three lines, on the same precedent the `app.js` row
uses — an assertion is a call site reaching a name that now comes from the
registry. Each is a single-line REPLACE at the carve numbering with no
insertion, which is why exactly three lines are declared and no neighbour is.

WHY IT IS MIGRATED RATHER THAN LEFT. That suite is red today for an unrelated
reason (it imports through `serve.py`, which still reaches the carved-away
`ideation_dashboard`) and it is not in the leg's narrowed `validate` list.
Neither fact makes a stale assertion acceptable: slice S8 re-homes those 48 test
files and un-narrows `validate`, and an assertion describing a shape that no
longer exists is exactly the rot S8 would then have to discover and date. The
migration belongs with the change that invalidated it.

THE ARITHMETIC, restated as a delta and not as absolutes (see the act's own
comment for why): declared lines +40 over TWO rows — 37 on `app.js`
(`import rewrites` 1, `adapter calls` 36) and 3 on `test_bullseye_widget.py`
(`adapter calls`) — rows carrying `edits:` +1, dispositions one row
`moved_verbatim` -> `moved_with_declared_edit`, replicas unchanged, no referent
digest moved. The summed absolutes move with it in the one place that holds
them, `test_the_real_manifest_carries_the_ruled_q_l7_amendment`: 862 + 37 + 3 =
902 on 150 + 1 = 151 rows, and the four docstrings that quote the count read 902.

PROVED: `_check_declared_lines` over all 123 `opendox_code` rows against the S3
leg branch — `src/opendox/web/app.js` DECLARED, `tests/test_bullseye_widget.py`
DECLARED, 60 `moved_verbatim` rows byte-identical, 0 refusals.
`scripts/validate-carve-manifest.py` OK; `tests/carve_manifest/` and
`tests/carve_arrival/` 231 passed.

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
origin/main moved five commits ahead of this branch's fork point,
three of which touch files this PR also declares edits on:

- #995 (9e43f3d, ASK-7 window): four declared lines on the cli.py and
  serve.py rows of docs/opendox-carve-manifest.yaml, plus the four
  scripts/tests files that quote the running "862" declared-line total
  (carve_lines.py, validate-carve-manifest.py, verify-carve-arrival.py,
  tests/carve_manifest/test_carve_manifest.py).
- #984 (a1ef886): carve tooling/admissions hardening unrelated to the
  five rows this PR touches.
- #997, #996, #999: no overlap with this PR's files.

Conflict resolution, keeping both sides:

- docs/opendox-carve-manifest.yaml: the header comment block now
  carries the ASK-7 window's paragraph (landed first, 2026-09-11) ahead
  of the § 3.4 SLICE-S3 paragraph (2026-09-12), in landing order. The
  S3 paragraph's own arithmetic is untouched (it was already stated as
  a DELTA — "+40 over two rows" — precisely so a later-landing sibling
  act would not need to rewrite it); only its framing of the ASK-7
  window changed from "is in flight" to "already moved the running
  total to 866", since this merge is the event that makes ASK-7's
  landing a fact rather than a future one. The four ASK-7 row edits
  (cli.py:834, serve.py:155/725/1338) and the two S3 row edits
  (app.js's 37 lines, test_bullseye_widget.py's 3 lines) are all kept.
- scripts/carve_lines.py, scripts/validate-carve-manifest.py,
  scripts/verify-carve-arrival.py: each had a single docstring line
  citing the running declared-line total — "866" from main (ASK-7),
  "902" from this branch (which assumed the pre-ASK-7 base of 862).
  Corrected to 906 in all three: 866 (post-ASK-7) + 40 (this act's
  own delta) = 906, matching the pinned test assertion.
- tests/carve_manifest/test_carve_manifest.py: merged both narrative
  additions to test_the_real_manifest_carries_the_ruled_q_l7_amendment
  in landing order (ASK-7 then S3), corrected the final aggregate
  assertion from this branch's stale (902, 151) to (906, 151), kept
  main's per-row pinned ASK-7 checks (cli_row/serve_row) verbatim, and
  fixed their comment's citation of the aggregate from (866, 150) to
  (906, 151) to match the corrected assert two lines above. Also fixed
  a second, non-conflicting docstring in
  test_the_line_count_is_exactly_the_expression_the_validator_carried
  that still read "902".

A pre-existing defect, unrelated to the conflict, found while
resolving: the test_bullseye_widget.py row's two edits (already on
this branch's HEAD before any merge, commit 6843a25) had a blank line
splicing them apart, which left the `adapter calls` edit's `note:` key
duplicated with the `path constants` edit's original note — YAML
silently keeps the last of a duplicate key, so the S3 note was
silently discarded and the wrong note landed on the wrong edit.
Confirmed with a duplicate-key-aware loader before and after. Fixed by
restoring each edit's own note; a full-document duplicate-key scan
afterward finds none remaining anywhere in the manifest.

Verified after resolution:
- python3 scripts/validate-carve-manifest.py: OK, 456 rows, 168
  moved_verbatim / 150 moved_with_declared_edit / 138 not_moved.
- python3 scripts/verify-carve-arrival.py --destination opendox_code
  --phase B against openDox-code PR #14's head (09b42f5b): DECLARED
  src/opendox/web/app.js, DECLARED tests/test_bullseye_widget.py, 0
  refusals (three newly-created files admitted ad hoc for this local
  check only: src/opendox/view_extension.py,
  src/opendox/web/views/view_extension.js, tests/test_view_registry.py
  — the governed admissions-file entries for those belong to the
  pin-bump PR that follows #14's own landing, not this row-annotation
  PR). The one "unapplied" declared-edit row the summary counts is
  scripts/ideation_dashboard/doxbench_scope_types.py, an unrelated
  pre-existing row (successor #838, open at the carve) — not S3.
- pytest tests/carve_arrival tests/carve_manifest tests/carve_conformance -q:
  269 passed (121 + 110 + 38).

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…y-declared-edits

# Conflicts:
#	docs/opendox-carve-manifest.yaml
#	tests/carve_manifest/test_carve_manifest.py
…e by row, admit S3's new files

Copilot review on openxFactory PR #1001 (three unresolved threads):

- README.md + docs/opendox-cutover-runbook.md carried only the pre-S2
  totals (906 declared lines / 151 edit-carrying rows). Now that #1002
  (§ 3.4 slice S2, dispose.js/wheel.js) is merged into this branch too,
  re-derive the § 2 table and its prose from the parsed manifest for the
  combined S2+S3 state: 909 declared lines / 153 rows carrying `edits:`
  (166 moved_verbatim / 152 moved_with_declared_edit / 138 not_moved),
  `opendox_code` 123 rows at 58/65 verbatim/edited for 336 declared
  lines. Figures are computed from the landed manifest, not transcribed.

- tests/carve_manifest/test_carve_manifest.py: pin the app.js and
  test_bullseye_widget.py rows by disposition and exact (class, lines),
  the same idiom the ASK-7 pins use for cli.py/serve.py, so the
  aggregate assertion is not the only thing standing between a passing
  suite and the S3 edits landing on the wrong row or under the wrong
  class. Also reconciles the aggregate assertion's own merge conflict
  against #1002 to the correct combined (909, 153).

- docs/opendox-carve-admissions.yaml: `verify-carve-arrival.py --phase B
  --destination opendox_code` against the S3 leg's current head
  (opensoft/openDox-code#14 @ 28de9c3b) refuses `arrival-undeclared-file`
  five times over — S3's own `view_extension.py` / `view_extension.js` /
  `test_view_registry.py`, and S1's `test_web_boundary.py` /
  `tests/fixtures/web_boundary_census.yaml` (landed already via
  openDox-code#13; S1 touched no arrived file, so it needed no
  row-annotation PR of its own, but its created files were never
  admitted). This is the first PR to run the verifier against the
  merged S1+S2+S3 tree and need them declared; all five are governed
  admissions now, alphabetical by path, none ad hoc.

Verified: `scripts/validate-carve-manifest.py` OK (166/152/138, 909/153);
`scripts/verify-carve-arrival.py --destination opendox_code --phase B`
against a fresh detached checkout of openDox-code#14 OK with zero ad-hoc
--allow-created flags; `pytest tests/carve_manifest tests/carve_arrival
tests/carve_conformance` 269 passed.

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
… read 909

scripts/carve_lines.py:3, scripts/validate-carve-manifest.py:115,
scripts/verify-carve-arrival.py:98 and
tests/carve_manifest/test_carve_manifest.py's
test_the_line_count_is_exactly_the_expression_the_validator_carried all
quoted "906" — the S3-only total this branch carried before #1002 (§ 3.4
slice S2) merged in. None of the four sat inside the merge's own conflict
hunks (only one side had touched each line), so git carried "906" through
silently instead of flagging it. Same class of finding as the previous
commit's docstring fixes, caught by re-grepping for the old total after
reconciling the merge rather than trusting the merge to have caught
every mention.

Verified: `pytest tests/carve_manifest tests/carve_arrival
tests/carve_conformance` 269 passed; `scripts/validate-carve-manifest.py`
OK (166/152/138, verified at 1354d24).

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…unbook's dated self-contradiction

Second Copilot re-review on openxFactory PR #1001, two new threads:

- tests/carve_arrival/test_verify_carve_arrival.py:
  test_the_committed_admissions_file_keeps_the_ruled_seed_and_stays_well_formed
  pinned the RULED openxdox_code seed and the RULED Q5 opendox_code S2
  entries by presence + exact `since`, but the five entries this PR's
  previous commit added (S3's view_extension.py/.js/test_view_registry.py,
  S1's test_web_boundary.py/web_boundary_census.yaml) were covered only by
  the generic shape checks — a future deletion or a swap to another valid
  40-hex commit would have passed. Added the same presence+since pin for
  all five, on the same footing as the S2 block it follows.

- docs/opendox-cutover-runbook.md: § 2's totals paragraph now states the
  CURRENT computed totals, but the very next sentence still said "the row
  and line totals above are the file AS AMENDED on 2026-09-10 under RULING
  Q-L1" — true when that sentence was written, false now, and a direct
  contradiction of the new "Measured directly against the landed manifest,
  2026-09-12" paragraph a few lines below. Reworded it to say what it now
  is: history of amendments in landing order, not a claim about the
  present total. Also fixed the one live "794 declared lines" reference in
  § 4's line-definition section to state both the historical figure at
  that ruling's own landing and the current one (909), rather than reading
  as a live count.

Verified: pytest tests/carve_manifest tests/carve_arrival
tests/carve_conformance 269 passed; scripts/validate-carve-manifest.py OK
(166/152/138, 909/153, verified at d83a0d8).

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
… on the test_doc_surfaces.py row (Q-L1; § 3.4 S3, extended)

openDox-code PR #14 (branch `build/s3-view-registry`) landed a Copilot
re-review fix round after this PR's own declaration, now at head
e176947dd3691fa96b285575910989ed77e09181. Running
`scripts/verify-carve-arrival.py --destination opendox_code --phase B`
against that head refuses: `tests/test_doc_surfaces.py` was edited at
carve-commit line 290, which the row for
`tests/ideation-dashboard/test_doc_surfaces.py` did not declare.

The fix round's other two changes need no new declaration: `app.js`'s
gate-bar `mountGate` fix falls inside lines already declared on that row
(`adapter calls` 842-844/865-866/876), and the new
`test_app_js_mounts_the_gate_bar_through_its_declared_entry` lives in
`tests/test_view_registry.py`, an admitted (S3-created) file outside the
arrived surface.

The one real gap: `test_the_doc_tab_is_wired_to_the_one_cross_view_jump`
quoted `app.js`'s pre-S3 block-boundary marker, `'{ tab: "tab-docs"'`,
which no longer exists once the `app.js` row's own declared `TABS` ->
`CORE_VIEWS` edit lands. Migrated to the registry shape,
`'{ id: "docs.list", control: "tab-docs", region: "view-docs",'` — the
same one-token-class migration `test_bullseye_widget.py`'s three quoted
lines already took in this PR, and the same `adapter calls` class (an
assertion is a call site reaching a name that now comes from the
registry).

`docs/opendox-carve-manifest.yaml`: the row is ALREADY
`moved_with_declared_edit` (it carries `path constants` at line 39), so
this adds a SECOND `edits:` entry rather than converting the disposition,
on the `test_bullseye_widget.py` row's own precedent for a row gaining a
second class. `test_doc_surfaces.py` is therefore not a new carrier of
`edits:` — rows carrying `edits:` stays 153, and declared lines move by
exactly the one new line: re-derived from the manifest (never typed),
`sum(len(lines) for edits) == 910` on `153` rows carrying them (was
909/153). `carve_commit`, `carve_tag` and every `sha256` are untouched.

`tests/carve_manifest/test_carve_manifest.py`: pin the new
`(adapter calls, [290])` entry on the `test_doc_surfaces.py` row by its
own lines, the same idiom the `test_bullseye_widget.py` and `serve.py`
pins already use; move the aggregate assertion and its two comment
citations of it to `(910, 153)`; narrate the amendment in the running
history above the assertion.

README.md, `docs/opendox-cutover-runbook.md` § 2 (the landed total, the
`opendox_code` per-destination row: verbatim/edited 58/65 unchanged,
declared lines 336 -> 337, `adapter calls` 65 -> 66) and the four
docstrings quoting the running total (`scripts/carve_lines.py`,
`scripts/verify-carve-arrival.py`, `scripts/validate-carve-manifest.py`,
the line-count test) move to 910.

Verified: `python3 scripts/validate-carve-manifest.py` OK (unchanged: 456
rows, 152 moved_with_declared_edit); `verify-carve-arrival.py
--destination opendox_code --phase B` against a fresh clone of
openDox-code at e176947dd3691fa96b285575910989ed77e09181: 123 rows
arrived, 64 declared-edit rows within their lines, 1 unapplied
(`doxbench_scope_types.py`, pre-existing and unrelated), 0 refusals;
`python -m pytest -q tests/carve_manifest tests/carve_arrival
tests/carve_conformance`: 269 passed.

Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…opilot)

The § 3.4 SLICE-S3 ANNOTATION paragraph in docs/opendox-carve-manifest.yaml
described only the original two-row act (app.js + test_bullseye_widget.py,
+40 lines) even though this branch's own tip commit (2c2400c) already
extended the same act with a third row's catch-up edit
(test_doc_surfaces.py:290, +1 line). Copilot's re-review caught the
resulting contradiction: the paragraph's own "+40 over two rows, adapter
calls +39" no longer matched the landed document, which the aggregate
test, the runbook and README all already state as 910 declared lines /
153 rows (re-derived, not typed).

Re-derived directly from the manifest (never by hand-summing the prose):
sum(len(edits[].lines)) == 910, count(rows with edits) == 153, per-class
totals import rewrites 679 / path constants 165 / adapter calls 66. Against
the S2 baseline (869 / 152, adapter calls 26), this act's delta is +41 lines
(not +40) over THREE rows (not two): 37 on app.js, 3 on
test_bullseye_widget.py, 1 on test_doc_surfaces.py; adapter calls +40 (not
+39); rows carrying edits: +1 (app.js is the only new carrier — the other
two rows already carried an edits: list before this act).

Added a short "A THIRD ROW TAKES ONE LINE..." paragraph, matching the
existing two-row narration's own voice, so the arithmetic paragraph's
reference to a third row has a corresponding row description; then
corrected the arithmetic paragraph itself to +41 / THREE rows / adapter
calls +40 / "the second and third rows already carried one".

Comment-only change: YAML still parses, scripts/validate-carve-manifest.py
still reports the same 456 rows / 166-152-138 split, and
python -m pytest -q tests/carve_manifest tests/carve_arrival
tests/carve_conformance still passes at 269 (unchanged — no row data
touched, only the manifest's own prose).

The PR description was audited against the same re-derivation and found
already consistent (all of its own 909/902/862/906/336 mentions are
explicitly framed as dated history, e.g. "EDIT, post-merge:" / "EDIT, #14
fix-round catch-up:" / "they briefly read 902, then 906, then 909" — none
asserts a stale figure as the current state); no PR-body edit was needed.

Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…branch

Lane: openxfactory-4-opendox-extraction
Refs #656
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…and serve_projection.py rows (Q-L1; § 3.4 S6)

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN).

RULING Q4 (`#656` comment 5642758731, Brett Heap, 2026-09-12), under the
Q-L1 paragraph that binds every § 3.4 slice: the read-only `/source`
pass-through returns from a CONTRIBUTED binding (openXdox-code's
`serve_projection.py`) to a FIXED core arm of the neutral product
(openDox-code's `serve.py`). Both rows are already `moved_with_declared_edit`
and each gains one new `adapter calls` entry — 10 lines on `serve.py` (five
insertions: the registration-modes record, the two route constants, the
containment entry point, the two `_route` arms and the three handler
methods) and the matching 122 deletions on `serve_projection.py` — so this
act carries no new row into `carrying`.

One admission: `tests/test_source_core_arm.py` under `opendox_code.created`
(the runnable half of the /source re-homing, 25 shape assertions), since
7dd0ba5a07484a2fb2715d1de4e08e7c4b68be08 (opensoft/openDox-code#16's head).

Verified against fresh read-only clones of both legs: opensoft/openDox-code
`build/s6-source-core-arm` @ 7dd0ba5a — `verify-carve-arrival.py
--destination opendox_code --phase B` returns `ok` (zero refusals; the
row's declared-edits-unapplied count of 1 is the pre-existing, unrelated
`doxbench_scope_types.py` finding #1001 already recorded). opensoft/openXdox-code
`build/s6-source-route-to-opendox` @ 00b69de7 — the same command against
`openxdox_code` still refuses on `src/openxdox/gate_console.py`, but that
refusal is § 4.4 RULING C2's own unlanded work, not S6's — recorded here
verbatim and left undeclared.

Totals, re-derived from the manifest and never typed: 910 -> 1042 declared
edit lines (+132: 10 + 122, both `adapter calls`), 153 rows carrying `edits:`
unchanged (neither row is a new carrier). `README.md`,
`docs/opendox-cutover-runbook.md` § 2 (the summary line, the "Nth line
belongs to a replica" arithmetic, the per-destination table's `opendox_code`
347 / `openxdox_code` 659 cells, and the "794 ... now" sentence) and the four
docstrings quoting the running total (`scripts/carve_lines.py`,
`scripts/verify-carve-arrival.py`, `scripts/validate-carve-manifest.py`, and
`tests/carve_manifest/test_carve_manifest.py::test_the_line_count_is_exactly_the_expression_the_validator_carried`)
move with it. New row-specific pins added to
`test_the_real_manifest_carries_the_ruled_q_l7_amendment` for both S6
entries, and a new "FOURTH BUMP" presence+since pin added to
`test_the_committed_admissions_file_keeps_the_ruled_seed_and_stays_well_formed`
for the new admission, on the same precedent PR #1001/#995/#1002 established.

Verification: `python3 scripts/validate-carve-manifest.py` -> OK, 456 rows,
same disposition counts as base. `python -m pytest -q tests/carve_manifest
tests/carve_arrival tests/carve_conformance` -> 269 passed. `git diff
--name-only origin/main...HEAD` carries no `openspec/changes/` path (plain
gate).

STACKED on #1001 (branch `chore/s3-view-registry-declared-edits`) and lands
after it.

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

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Reviewer's Guide

This stacked Q-L1 annotation PR records the S6 /source move from serve_projection.py to serve.py as 132 declared adapter calls lines on two existing moved_with_declared_edit rows, admits the new destination-side test, and updates the manifest tests and documentation to derive and report the resulting 1042-line totals.

Sequence diagram for the re-homed /source request

sequenceDiagram
    participant Client
    participant serve_py as serve.py
    participant Registry as snapshot_registry

    Client->>serve_py: _route(request)
    serve_py->>serve_py: resolve_source_path(request)
    serve_py->>Registry: resolve_within(root, path)
    Registry-->>serve_py: contained source path
    serve_py->>serve_py: _keyed_source(request)
    serve_py->>serve_py: _serve_source(request)
    serve_py-->>Client: source response
    serve_py-->>Client: _refuse_bare_source(request) for bare /source
Loading

Flow diagram for Q-L1 source-route admission and arrival

flowchart LR
    Annotation[Q-L1 row annotation lands first] --> Admission[Admit tests/test_source_core_arm.py]
    Admission --> LegA[openDox-code serve.py insertion]
    Admission --> LegB[openXdox-code serve_projection.py deletion]
    LegA --> Verify[verify-carve-arrival.py --phase B]
    LegB --> Verify
    Verify --> Result[132 declared adapter calls accepted]
Loading

File-Level Changes

Change Details Files
Declares the S6 /source re-homing as allowed edits on the two existing manifest rows.
  • Adds ten adapter calls insertion lines to the serve.py row for the fixed core route constants, containment entry point, dispatch arms, and handlers.
  • Adds 122 matching adapter calls deletion lines to the serve_projection.py row while explicitly retaining snapshot_registry.resolve_within.
  • Pins both row annotations, classes, and exact carve line lists in the manifest aggregate test.
docs/opendox-carve-manifest.yaml
tests/carve_manifest/test_carve_manifest.py
Admits the S6 leg's newly created test file through the governed destination admissions registry.
  • Adds tests/test_source_core_arm.py to opendox_code with its leg commit pin and Q-L1 landing-order rationale.
  • Extends the committed-admissions test to assert the path, pin, reason, and ordering invariants.
docs/opendox-carve-admissions.yaml
tests/carve_arrival/test_verify_carve_arrival.py
Reconciles documentation and validation metadata with the expanded manifest totals.
  • Updates runbook and README totals, per-destination counts, and historical measurement notes from the accumulated manifest changes.
  • Updates validator and line-definition docstrings to reference 1042 declared edit lines.
README.md
docs/opendox-cutover-runbook.md
scripts/carve_lines.py
scripts/validate-carve-manifest.py
scripts/verify-carve-arrival.py

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.

🟢 Approval recommended

The only final comment is a non-blocking documentation-history nit; no approval-blocking issues were identified.

Pull request overview

This PR records the S6 /source route re-homing and synchronizes manifest admissions, validation metadata, documentation, and tests.

Changes:

  • Declares S6 edits for serve.py and serve_projection.py.
  • Adds the core-arm test admission and related regression pins.
  • Updates totals and destination summaries across documentation.
File summaries
File Summary
tests/carve_manifest/test_carve_manifest.py Pins S6 ranges and aggregate totals.
tests/carve_arrival/test_verify_carve_arrival.py Verifies the new admission and invariants.
scripts/verify-carve-arrival.py Updates verifier documentation.
scripts/validate-carve-manifest.py Updates validator documentation.
scripts/carve_lines.py Updates line-count documentation.
README.md Updates carve summary totals.
docs/opendox-cutover-runbook.md Updates totals and destination breakdowns.
docs/opendox-carve-manifest.yaml Adds S6 declared-edit ranges; nit noted to append the S6 amendment-history block.
docs/opendox-carve-admissions.yaml Adds the opendox_code core-arm test admission.
Review details

Suppressed comments (1)

docs/opendox-carve-manifest.yaml:1675

  • The manifest's amendment history stops at the S3 delta on lines 359–373, but this hunk adds the S6 declarations without appending an S6 delta. That leaves this governed artifact's own history incomplete and omits the +132-line change over these two rows; please add the S6 amendment block before rows: so it does not appear that S3 is the latest manifest update.
      - class: adapter calls
        lines: [161, 162, 304, 305, 515, 516, 921, 922, 949, 950]
        note: "§ 3.4 SLICE S6, RULED Q4 (`#656` comment `5642758731`, Brett Heap, 2026-09-12): the read-only `/source` pass-through returns from a CONTRIBUTED binding to a FIXED core arm of the neutral product — RULED Q-L1's own paragraph binds every § 3.4 slice the same way S3's `app.js` row above states it. Five insertions, each named by the pair of carve lines it sits between: 161-162 the \"AND ONE ROUTE HAS SINCE GONE THE OTHER WAY\" paragraph in the TWO REGISTRATION MODES block, recording that `/source` returned from CONTRIBUTED to FIXED; 304-305 the `SOURCE_PREFIX` / `BARE_SOURCE_ROUTE` pair and its comment block, between `PROJECT_REGISTER_ROUTE` and `CAPABILITIES_ROUTE`; 515-516 the `resolve_source_path` containment entry point, above `_checkout_real`; 921-922 the two FIXED CORE ARMS in `_route`, between the `/workbench/thread` arm and the § 2.4 contributed consult; 949-950 `_keyed_source` / `_serve_source` / `_refuse_bare_source`, between `do_HEAD` and `do_POST`. Class `adapter calls` on this manifest's own precedent (`serve.py`:618, `snapshot_registry.py`:85 — a site that reached a thing directly now calls the seam that stands in for it): here the direction is inverted, five call sites move IN from the projection column to become this core arm directly, which is the same class read the other way. All five insertions are moved from `scripts/ideation_dashboard/serve_projection.py`'s row below, which declares the matching deletions. Realized at opensoft/openDox-code `build/s6-source-core-arm`, `7dd0ba5a07484a2fb2715d1de4e08e7c4b68be08` (DRAFT PR opensoft/openDox-code#16)."
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

Copilot AI review requested due to automatic review settings September 12, 2026 18:43

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

Correct the admission provenance hash and align the manifest and runbook amendment history with the S6 totals.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

docs/opendox-carve-admissions.yaml:111

  • since is documented as the leg commit that introduced the admitted file, but tests/test_source_core_arm.py was added in b00fbd920a019e2cee816b4936f921ceeab67a8c; 7dd0ba5a is a later commit that modifies that file. Using the later hash makes the governed admission's provenance inaccurate; record the introducing commit instead.
        since: "7dd0ba5a07484a2fb2715d1de4e08e7c4b68be08"

docs/opendox-cutover-runbook.md:210

  • This newly added S6 history is included in the measured totals, but the paragraph still anchors those totals as being “as of” the earlier S3 annotation. After adding S6, that provenance anchor is stale/misleading; update it to S6 (or explicitly say the totals include the later S6 annotation) so the runbook's chronology matches its numbers.
`test_doc_surfaces.py` edit, and the § 3.4 SLICE S6 annotation (RULED Q4,
`#656` comment `5642758731`) declaring the `/source` re-homing's ten
`serve.py` lines and 122 matching `serve_projection.py` deletions, on the same
two rows' existing `edits:` and no new row. Rather than
  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread docs/opendox-carve-manifest.yaml Resolved
…view)

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN).

Copilot review on PR #1009 (suppressed comment, docs/opendox-carve-manifest.yaml:1675):
the manifest's own header narrative ("what follows is the file's history of
amendments in landing order") stopped at the S3 paragraph; this commit's own
S6 declarations were added to `rows:` but never narrated in that history,
leaving the governed artifact's own amendment log looking like S3 was the
latest act. Appends the S6 paragraph, on the same DELTA-only discipline the
S3 paragraph above it states (no absolute restated; the aggregate test is
the one place absolutes are summed).

No behavior change: `scripts/validate-carve-manifest.py` reads `rows:` only,
never this header comment. `python3 scripts/validate-carve-manifest.py` -> OK,
456 rows, same disposition counts. `python -m pytest -q tests/carve_manifest
tests/carve_arrival tests/carve_conformance` -> 269 passed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 18:47
brettheap added a commit that referenced this pull request Sep 12, 2026
…dent as S6's Copilot fix)

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN).

Proactively applying the same fix Copilot's review asked for on the S6
annotation (PR #1009): the manifest's own header narrative now gets the S4
paragraph too, on the same DELTA-only discipline. States RULING Q3, the
seven edited rows (two already carriers, five converting moved_verbatim ->
moved_with_declared_edit), the four new admissions, and the delta
(+380 lines / +5 carrying rows), including the note that repo-selector.js's
line count was corrected from an earlier reference computation's 203 to the
verifier-measured 202 (line 68 is not actually touched).

No behavior change: `scripts/validate-carve-manifest.py` reads `rows:` only.
`python3 scripts/validate-carve-manifest.py` -> OK, 456 rows, same
disposition counts. `python -m pytest -q tests/carve_manifest
tests/carve_arrival tests/carve_conformance` -> 269 passed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

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

Update both since pins from the later modifying commit to the commit that introduced the admitted file.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread docs/opendox-carve-admissions.yaml Resolved
…g commit

Copilot review on PR #1009 (path docs/opendox-carve-admissions.yaml:111,
and its pin at tests/carve_arrival/test_verify_carve_arrival.py:2652):
`since` must identify the commit that INTRODUCED the created file, not a
later commit that merely edits it. Verified against the read-only leg
clone (opensoft/openDox-code, branch build/s6-source-core-arm):

  git log --diff-filter=A -- tests/test_source_core_arm.py
    -> b00fbd920a019e2cee816b4936f921ceeab67a8c (381 insertions, file added)
  git show --stat 7dd0ba5a -- tests/test_source_core_arm.py
    -> 26 insertions, 12 deletions (a later edit, not the add)

Repoints both the admission's `since` and its regression pin at
b00fbd920a019e2cee816b4936f921ceeab67a8c. The manifest's own two
citations of 7dd0ba5a (docs/opendox-carve-manifest.yaml:407,1711) are a
different fact — the S6 leg branch's realized HEAD sha, confirmed still
correct against the leg clone — and are left unchanged.

Verified: python3 scripts/validate-carve-manifest.py -> OK (456 rows,
d810deb previously verified head unaffected by working-tree diff).
python3 -m pytest -q tests/carve_manifest tests/carve_arrival
tests/carve_conformance -> 269 passed.

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 18:59

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.

🟢 Approval recommended

The only remaining finding is a minor documentation nit and does not block approval.

Review details

Suppressed comments (1)

docs/opendox-cutover-runbook.md:210

  • After this hunk adds S6 to the amendment list, the paragraph still anchors the measured totals to the S3 annotation/PR #1001 at lines 199-200, even though those totals now include S6's +132 lines. That leaves the runbook's provenance statement stale or ambiguous; describe the current landed manifest (or anchor it to S6) instead.
`test_doc_surfaces.py` edit, and the § 3.4 SLICE S6 annotation (RULED Q4,
`#656` comment `5642758731`) declaring the `/source` re-homing's ten
`serve.py` lines and 122 matching `serve_projection.py` deletions, on the same
two rows' existing `edits:` and no new row. Rather than
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@sonarqubecloud

Copy link
Copy Markdown

@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 1 day and 22 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 468371d into main Sep 12, 2026
13 checks passed
brettheap added a commit that referenced this pull request Sep 12, 2026
# Conflicts:
#	README.md
#	docs/opendox-carve-admissions.yaml
#	docs/opendox-carve-manifest.yaml
#	docs/opendox-cutover-runbook.md
#	scripts/carve_lines.py
#	scripts/validate-carve-manifest.py
#	scripts/verify-carve-arrival.py
#	tests/carve_arrival/test_verify_carve_arrival.py
#	tests/carve_manifest/test_carve_manifest.py
brettheap added a commit that referenced this pull request Sep 12, 2026
… (eighth)

origin/main moved to 468371d via PR #1009 (carve manifest: declare the S6
/source re-home lines on serve.py and serve_projection.py, Lane
openxfactory-4-opendox-extraction) -- the same carve-manifest declared-edit
pattern as the two prior merges (#1001, #963's own follow-on), touching
docs/opendox-carve-*, three carve/verify scripts and their tests, and the
same single README.md bullet (the cutover-runbook declared-edit total,
910 -> 1042). Verified disjoint from this packet via the commit's own
--stat: touches neither this packet's own change directory, the self-gate
test, tests/sequenced_after/corpus-ledger.yaml, nor
openspec/specs/doc-health/spec.md or scripts/doc_health/
modified_block_currency.py.

README.md auto-merged clean (git "Auto-merging", zero conflict markers) --
the same single-line edit as the prior two carve-manifest merges, nowhere
near this packet's own OpenSpec Records row.

refs #955

Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
… from 13 counted route constants

Copilot review on PR #1010 (9 suppressed findings, all confirmed against
the read-only leg clone opensoft/openDox-code build/s4-split-route-tails):

1. Four `opendox_code` admissions (gate-lens.js, gate-projects.js,
   projection-index.js, test_split_route_tails.py) had `since` pinned to
   8fdc6ac4e8f39c6ad8604689aba16e9aa8a1c808 — the leg branch's later tip
   commit ("Read the DECLARED entry for S4's two mounts"), which only
   edits app.js and the web-boundary census. `git log --diff-filter=A`
   against the leg clone shows the three views/*.js files are actually
   added by 031edc9b4268d9898c296b2e9bb3951a78642fb6 ("split the three
   RULED SPLIT files") and the test file by
   2e842178b2bceaee9a45441b7d70d797fe1205cf ("measure the three new
   bindings"). Repointed both the admissions and their regression pins
   in tests/carve_arrival/test_verify_carve_arrival.py to the correct
   introducing commits — the same provenance contract, and the same
   class of correction, as PR #1009's own since-sha fix (e74454b).

2. Several docstrings/notes/prose said "the thirteen gate-route
   constants['] travel out of the three RULED SPLIT files", overclaiming
   for all 13: `repo-selector.js`'s own row (and the PR body's own table)
   already states one of them, ACTIONS_REFRESH_ROUTE, STAYS in place —
   only twelve actually leave (2 lens + 4 repo-selector + 6
   staging-workbench, per Copilot's own correct breakdown). Reworded the
   runbook sentence, the two test docstrings, and the admissions file's
   own reason text to say "counts across" / distinguish the twelve that
   move from the one that stays, rather than "travel out" for all
   thirteen. Also corrected the manifest's app.js row note, which named
   FOUR constants (LENS_SAVE_ROUTE/LENS_CLUSTER_ROUTE,
   ACTIONS_CREATE_PROJECT_ROUTE/ACTIONS_EDIT_PROJECT_ROUTE) while saying
   "Two of the thirteen" — an internal inconsistency independent of the
   12-vs-13 point, caught while fixing it.

The manifest's own § 3.4 SLICE-S4 header paragraph already stated this
correctly ("four routes leave, one stays, one leaves the bundle entirely")
and needed no change.

Verified: python3 scripts/validate-carve-manifest.py -> OK (456 rows,
disposition counts unchanged). python3 -m pytest -q tests/carve_manifest
tests/carve_arrival tests/carve_conformance -> 269 passed.
verify-carve-arrival.py --destination opendox_code --dest-root
<leg-s4-opendox @ 8fdc6ac4> --source-repo . --phase B -> OK, unchanged
(since-sha is provenance metadata only, does not affect arrival result).

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 18, 2026
…ing history, and re-measure the leg figures

FOUR findings, all measured FACT before they were taken.

1. THE ORDINALS (Copilot review `5239585507` @ `d3d28269`, suppressed;
   RULED A FACT FINDING by the holder after the previous actor answered it by
   measurement on comment `5719043676`). The previous answer was right that an
   ordinal cannot be read off a block's POSITION — the assertion blocks in
   `tests/carve_arrival/test_verify_carve_arrival.py` are not in ordinal order
   and never were — and wrong that the ordinals therefore stood. Measured
   against the document itself they did not:

     git log --first-parent origin/main -- docs/opendox-carve-admissions.yaml

   diffing each commit's PARSED `created:` sets gives ELEVEN amendments over
   the seed (#979 `972b484a`) — PR #984, #1002, #1001, #1009, #1010, #1023,
   #1030, #1025, #1067, #1068 and this act — of which TEN bump `opendox_code`.
   Slice S5's amendment (#1023 @ `ee251d6c`, eight created files across both
   legs and the first admission-level re-homing) was recorded with NO ordinal,
   so every ordinal after it was ONE LOW: slice S7's three read SIXTH and are
   the SEVENTH, slice S8's one read SEVENTH and is the EIGHTH, the runtime ten
   read EIGHTH and are the NINTH — and that block's "of which this is the
   sixth" is the EIGHTH `opendox_code` bump. RULED Q7's five and this act's one
   carried none at all, and the docstring's narrated history stopped at SEVENTH
   while the code below it named an EIGHTH: a file that cannot be read in one
   direction without contradicting the other.

   Every ordinal now agrees, and the rule is stated with the ONE COMMAND THAT
   DERIVES IT, so the next amendment reads its ordinal off the history instead
   of off a neighbour. The three amendments the docstring never narrated (#1067,
   #1068 and this act) are narrated. The durable-assertions list, which had
   stopped enumerating what the block below actually asserts, gains slice S5's
   eight, slice S8's one and the ten runtime entries.

   THE REUSED RATIONALE IS DISTINGUISHED FROM THE BUMP NUMBER, which is what
   made this drift invisible: this act's block pins to its introducing commit
   "for the reason the DISPLAY-facet block states" and NAMES that block, whose
   ordinal moved with the renumbering while its argument did not. The runtime
   block's ordinal paragraph now records BOTH corrections — it read SEVENTH,
   collided, was moved to EIGHTH, and was still one low — because both are the
   same defect. Its stale "line ~3993" pointer is gone with them.

   Copilot's own arithmetic was wrong in the other direction (it called this
   act's admission the eighth amendment and the seventh `opendox_code` bump;
   measured they are the ELEVENTH and the TENTH). The finding was still right
   that the history had stopped agreeing with itself.

2. THE ADMISSION REASON (Copilot review `5246578877` @ `30a63ebe`, thread on
   `docs/opendox-carve-admissions.yaml:146`). MEASURED in a pristine `0b4e8bbf`
   worktree of openDox-code with the leg's file copied in:

     pytest -q tests/test_display_facet_leaves.py --noconftest
       ->  11 failed, 2 passed in 0.61s        (node v24.21.0 present)

   The reason said `10 failed / 2 passed` and a three-versus-nine split. The
   file carries THIRTEEN tests at the leg's landing head `b51a1ca1`: FIVE
   node-gated, over FOUR modules (`display.js`, `explorer.js`,
   `outline-model.js` and now `docs.js`), and EIGHT reading the source. The old
   "three" named the three MODULES and miscounted the tests even at the
   introducing commit, where it is four and eight over twelve. The reason now
   states the measurement, says it is taken AT THE LANDING HEAD and not at
   `since:` — which stays the introducing commit `338143a3` — and names what
   moved it: openDox-code#28's own Copilot round added the thirteenth test.

   The two that pass at the pristine base are the return-value guard beside
   `applyTokens` and the behavioural probe that only bites once `runAddSection`
   forwards its argument, so all SEVEN leaves are failed by at least one of the
   eleven.

3. THE FOUR MANIFEST ROW NOTES (same review, thread on
   `docs/opendox-carve-manifest.yaml:2498`): `10 of 12` on all four synchronized
   copies -> `11 of 13`. "Each failure its own leaf" is replaced by what is
   true of eleven failures over seven leaves: every leaf failed by at least one
   of them, with the two passers named.

4. THE RUNBOOK'S PROVENANCE PARAGRAPH (same review, suppressed;
   `docs/opendox-cutover-runbook.md:379-383`): it still read "CURRENT TO RULED
   Q7's CSS EXTRACTION" and called Q7 "THIS act" while the tables above it are
   this act's 2717 and its `opendox_code` cell is 1763 — and a second, older
   "THIS ACT CARRIES" in the same paragraph named slice S7. Two acts called
   "this act" in one paragraph, neither of them the act the totals belong to.
   Re-headed to the § 3.4 SLICE-S7 RESIDUE annotation with its own window
   (2710 + 7 = 2717), Q7 restated as the act behind it, and the inner claim
   given slice S7's PR and sha. Swept with it: § 5's `--allow-created` note,
   whose "THIS act adds three more entries" meant PR #1030 and has had seven
   amendments since.

GATE at this head:
  scripts/validate-carve-manifest.py                             OK
    456 rows, 143/175/138, 318 digests, none undeclared, 4 re-destined, 2 retired
  pytest -q tests/carve_arrival tests/carve_manifest             408 passed

No absolute moves: 2717 / 176 / 1745 / 1763 / 2715 stand as measured at the
merge. No assertion changes — every ordinal lives in a comment or a docstring,
grepped repo-wide, and nothing reads them.

Lane: openxfactory-4
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