Skip to content

Carve manifest: declare the two extension-point replicas and the short citations leg 1 exposed (RULED Q-L1, split-opendox § 3.1) - #889

Merged
brettheap merged 4 commits into
mainfrom
change/opendox-carve-manifest-replicas-and-citations
Sep 10, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/opendox-carve-manifest-replicas-and-citations

Conversation

@brettheap

@brettheap brettheap commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs #656

Lands on Brett Heap's ruling Q-L1 (approve), via the lane's gate. Plain gate, no openspec/changes/ surface — the ruling says so in its own words.

Q-L1 APPROVED — manifest act. A manifest amendment PR in openxFactory adds replicated_at_destination rows for scripts/route_extension.py and scripts/subcommand_extension.py (the § 2.4 extension-point seams; OQ-Q's shape) and declares the short-citation lines of cause 3 (exact lines per the independent verifier's report). Gated by scripts/validate-carve-manifest.py at b075fd91; plain gate (no openspec/changes/ surface).

— Brett Heap, 2026-09-10T02:40:00Z, #656 comment 5611834121, verbatim "rule Q-L1 approve, Q-L2 approve, Q-L3 (b), Q-L4 re-cut". The memo it rules on is 5611813223.

Carve leg 1 (opensoft/openDox-code#4, head cfabe3c4) proved the carve and stopped: validate is red for four structural reasons, and causes 1 and 3 cannot be fixed inside the leg's fence — fix the destination, never the manifest cuts both ways, and a manifest that omits a file the destination must have, or cites too few lines to make an edit its own note describes, is the document's defect. This pull request is that document act and nothing else. Q-L2 (levelling round 2, opensoft/openDox-code#5, head a0358ac3) and Q-L3 (b) (the disclosed collect_ignore list, in that same pull request) are the destination's, in parallel; Q-L4's re-cut follows both.


1. The two extension-point replicas (cause 1)

Neither scripts/route_extension.py nor scripts/subcommand_extension.py had a row at all. The § 3.1 surface omitted them, so the completeness check never looked at them; and arrived rows import both at MODULE level. Leg 1 could place neither: --replica-at refuses a path that is not a replicated_at_destination row, and --allow-created would have called an openxFactory blob a destination's own creation — an undeclared movement wearing RULED OQ-C's name. OQ-Q's shape exactly (scripts/corpus_adapter.py, ruled 2026-09-09 ~22:3xZ), and it takes OQ-Q's repair.

row blob at carve_commit bytes mode sha256 (computed here)
scripts/route_extension.py 34802071d5b9e417f6c29c6929db69f518f91cce 30,017 100644 a39a6489b4421ce08ef41e918aea21fc35779ee4da5e932182b4d731bc99566f
scripts/subcommand_extension.py 1d4833b2c2820fbc4a45e38c2e49e65089e5ef2f 5,059 100644 96d4e64e3835aeee6c455cde31006b5ccf63ecc5f83be6af53467a07ef9ca0a9
$ git cat-file blob b075fd91dc8fced8e1373825ba80220c33536bae:scripts/route_extension.py | sha256sum
a39a6489b4421ce08ef41e918aea21fc35779ee4da5e932182b4d731bc99566f  -
$ git cat-file blob b075fd91dc8fced8e1373825ba80220c33536bae:scripts/subcommand_extension.py | sha256sum
96d4e64e3835aeee6c455cde31006b5ccf63ecc5f83be6af53467a07ef9ca0a9  -

The digests are recorded in the rows' evidence: prose, not in a sha256: field, and that is the grammar and not an omission. A not_moved row's key set is closed to source_path + disposition + reason + evidence (+ edits) — scripts/validate-carve-manifest.py:334, and the reasoning is in the file: "a not_moved row carrying one reads at the destination as 'this file goes there' while its own disposition says it does not". The 18 rows already landed carry no digest either. scripts/verify-carve-arrival.py recomputes a replica's bytes from carve_commit itself when a leg declares the placement with --replica-at, so the figures above are what that check compares against.

Why REPLICA and not MOVED (the column Q-L1 asked about; the ruling picked replica). Measured at the carve commit, each seam is consumed on BOTH sides of the carve and by openxFactory's own stays column, so no single destination can own one:

seam importer (source path : line) that row's disposition
route_extension scripts/ideation_dashboard/serve.py:120 moved_with_declared_edit → opendox_code
scripts/ideation_dashboard/serve_gate.py:44 moved_with_declared_edit → openxdox_code
scripts/ideation_dashboard/serve_projection.py:51 moved_with_declared_edit → openxdox_code
scripts/ideation_dashboard/serve_openxfactory_lanes.py:49 not_moved / stays_openxfactory_adapter
tests/ideation-dashboard/test_route_extension.py:51 not_moved / stays_openxfactory_adapter
tests/ideation-dashboard/test_serve_column_split.py:56 not_moved / stays_openxfactory_adapter
subcommand_extension scripts/ideation_dashboard/cli.py:65 moved_with_declared_edit → opendox_code
tests/ideation-dashboard/test_subcommand_extension.py:38 moved_with_declared_edit → opendox_code
tests/ideation-dashboard/test_cli_column_split.py:71 not_moved / stays_openxfactory_adapter

Measured with git grep -E '^\s*(import|from) (route|subcommand)_extension' b075fd91 over the whole tree at the carve commit, then each hit's row read out of the manifest. Both are neutral by construction there — route 555 lines importing __future__, dataclasses, typing; subcommand 101 lines importing __future__, typing; stdlib only — and both repositories are Apache-2.0.

Both paths also join moved_paths:, or check 4 would refuse the rows as carve-path-absent for naming a path outside the declared surface. The header's WHAT-"REPLICATED"-MEANS paragraph and the moved_paths: comment now name them.

1.1 Placement — RECOMMENDED in the notes, still carrying no destination key

RULED OQ-C keeps a replica's arrival out of this document: the rows carry no destination, no destination_path and no digest field, exactly like the 18 already landed, and the leg names the placement with --replica-at. But the importers constrain the placement and the leg cannot rewrite them, so leaving the choice unstated would hand the re-cut a red it could not fix either. Measured in leg 1's own tree at cfabe3c4:

arrived importer line, as it stands at cfabe3c4 declared by any row?
src/opendox/serve.py:117 import route_extension # noqa: E402 no (source :120; the line moved by three because the leg deleted the declared :109-111 shim)
src/opendox/cli.py:65 import subcommand_extension # noqa: E402 no
tests/test_subcommand_extension.py:38 import subcommand_extension # noqa: E402 no

git ls-tree -r cfabe3c4 holds neither seam file — which is the red — and every importer is a BARE top-level import on a line no row declares, which is the spelling both modules' docstrings ask for (route_extension.py:19, subcommand_extension.py:16: "it travels with the carve"). So both new rows now RECOMMEND, in prose:

--replica-at scripts/route_extension.py=src/route_extension.py
--replica-at scripts/subcommand_extension.py=src/subcommand_extension.py

On the src/ import root and BESIDE the package — never inside src/opendox/. That is the mirror of scripts/route_extension.py sitting beside scripts/ideation_dashboard/ here, and it is the only placement at which the three lines above resolve UNEDITED: a copy inside the package would need an import rewrite this manifest does not authorize. § 5.5 of the runbook now says the same in one paragraph.

2. The short citations (cause 3) — every "left" item, classified

ONE RULE, applied to all 25 LEAVE entries of the leg's edit-plan.txt plus the extra findings its pull request records: if the line can be made correct NOW at the destination by rewriting to opendox paths or packages, it is DECLARED here; if it can only be correct once openXdox-code lands or once the BUILD arc inverts the dependency, it is NOT declared and is listed below against Q-L3 (b)'s collect_ignore list.

DECLARED — 11 lines over 7 rows (source paths; every row was already moved_with_declared_edit, so no disposition changed and no digest moved):

row lines added class why it is declarable now
tests/ideation-dashboard/test_boundary.py 14 import rewrites bare import output_boundary. scripts/output_boundary.py is a RULED OQ-A replica that leg 1 places INSIDE the package at src/opendox/output_boundary.py, so from opendox import output_boundary is available at the carve. The row declared only :22-23 (the ideation_dashboard.boundary alias), which could not carry the file's own reach. The levelling round's collect_ignore list deliberately does not carry this file, so this line is what keeps the re-cut green on it.
tests/ideation-dashboard/test_doxbench_hash.py 32, 33 path constants "scripts" / "ideation_dashboard" segments of the STATE_JS Path expression whose bare / "web" continuation :34 was the only declared line
tests/ideation-dashboard/test_doxbench_state.py 23, 24 path constants same shape; :25 was the only declared line (one of the leg's 2 unapplied rows)
tests/ideation-dashboard/test_doxbench_view.py 16, 17, 291, 292 path constants two expressions, STATE_JS and EDITOR_JS; :18 and :293 were the declared / "web" continuations. :298, :301, :2860 are single-line statements that already carried the whole spelling and the leg rewrote them.
tests/ideation-dashboard/test_provider_boundary.py 56 path constants :57 is WEB = PACKAGE / "web"; PACKAGE = REPO_ROOT / "scripts" / "ideation_dashboard" is :56
tests/ideation-dashboard/test_subcommand_extension.py 43 path constants MODULE = REPO_ROOT / "scripts" / "subcommand_extension.py" names the SEAM FILE ITSELF, and :99-109 read it with imported_modules(MODULE). Declarable here and only here: this amendment gives that path a row and recommends the placement the rewrite targets (REPO_ROOT / "src" / "subcommand_extension.py").

Each amended note: records the Q-L1 amendment and what the short citation was, so a reader of the row learns why the line count grew without leaving the file.

LEFT, and why — nothing here is a manifest defect. All of these are lines a row ALREADY declares; a declared line the leg does not apply is lawful, and phase B reports it as unapplied:

left item (destination path : line) class reason it cannot be declared correct now
workbench.py:82, :83, :745, :1406, :1407, :1408 adapter calls the D2 resolve rebinding needs a resolver binding openDox-code does not have — RULED OQ-N, the BUILD arc
authoring.py:318 adapter calls same: corpus_adapter_openxfactory's home binding, BUILD arc
doxbench_scope_types.py:50, :69, :71 adapter calls same, BUILD arc
serve.py:618 adapter calls same (doc_health.corpus.RealGit → D2's resolve), BUILD arc
serve.py:171, :178 import rewrites serve_openxfactory_lanes is not_moved / stays_openxfactory_adapter — it lands at NO destination, so there is no opendox package path to rewrite to, and its uses sit on undeclared lines
serve_wire.py:1369 import rewrites doxbench_contracts, same: no destination
doxbench_packet.py:177 import rewrites doxbench_status_exemption, same: no destination
test_model_provider_broker.py:1135 import rewrites FORBIDDEN_PORT_MEMBERS comes from test_doxbench_model, itself a not_moved row; the note repoints it onto the destination suite's own harness, which does not exist yet — authoring one is not a carve act
cli.py:26, doxbench_mcp.py:61 import rewrites the dead sys.path.insert shim family. No edit is needed: the line inserts src/, which is the destination's own import root, so it is already correct there. Its if / insert siblings are undeclared, and § 5.5 of the runbook names exactly three shim blocks as the declared deletions (serve.py:109-111, serve_gate.py:40-42, serve_projection.py:47-49) — these two are deliberately not among them, so declaring their siblings would widen a ruled act to buy nothing.
cli.py:106, serve.py:1661 path constants No edit needed: Path(__file__).resolve().parent / "web" already resolves to src/opendox/web

2.1 Against Q-L3 (b)'s collect_ignore list — the same seven files, and no more

The Q-L2 levelling round's list is exactly seven: test_doxbench_chat_view, test_doxbench_entrypoint, test_hermeticity, test_model_provider_broker, test_subcommand_extension, test_workbench (each reaching openxdox.*) and test_session_harness (which execs an openxFactory-only script). This amendment agrees with that set exactly — it declares nothing that would remove a file from it, and it leaves no test outside it:

the seven what this amendment does about it
test_doxbench_chat_view, test_doxbench_entrypoint, test_hermeticity, test_workbench nothing. Cause 2: their declared import rewrites lines are the ruled openxdox.* rewrite, unresolvable until the openXdox-code leg lands. Not a citation defect.
test_model_provider_broker nothing declarable. :1135 is in the LEFT table above; :300 and :1321 are undeclared reaches on a row that declares no such edit (the wider family below).
test_subcommand_extension :43 DECLARED (above). It stays on the ignore list for a different reason — :41's opendox.cli import reaches openxdox.* — so the declaration does not shorten the list; it removes the manifest defect that would otherwise still be there when the BUILD arc deletes the list.
test_session_harness nothing, and it cannot be. A moved_verbatim row whose :40 / :45 exec REPO_ROOT / "scripts" / "sync-notebooklm-books.py" at module level — an openxFactory-only script with no row that never travels, so there is no destination path to rewrite to and no lawful edit at the carve. The ignore list is the right home for it.

Also known and deliberately untouched: the arrived tests/conftest.py / tests/session_fixtures.py autouse fixture whose reach runs opendox.cli → … → openxdox.snapshot. That is a ruling for Brett Heap (Q-L5), not a line this document may declare and not a file this lane may edit — conftest.py is a replicated_at_destination pure copy and a not_moved row cannot carry an edit at all.

A wider family, MEASURED and deliberately not touched. After this amendment there remain 11 undeclared REPO_ROOT / "scripts" / … reaches across 9 opendox_code rows (before it: 17 across 14): test_bullseye_widget.py:1674, :1989, test_doxbench_document_abstract.py:44, test_doxbench_knowledge.py:31, test_doxbench_mcp.py:297, test_doxbench_memory_gateway.py:32, test_hermeticity.py:704, test_model_provider_broker.py:300, :1321, test_outline_model.py:657, test_session_harness.py:40. Each sits on a row that declares no edit describing it. An undeclared line that is not edited is not an undeclared movement: the file arrives byte-identical there and the floor is satisfied. Declaring them would be a new line census over the whole surface, which is neither what Q-L1 approved nor what leg 1 asked for; each simply makes its test fail at the destination, which is Q-L3 (b)'s list and the BUILD arc's. Reported here so the next ruling has the number.

3. Counts kept consistent

statement file before → after
row census comment docs/opendox-carve-manifest.yaml:169 453 → 456 (it was an off-by-one against its own file from 17167481: the landed manifest held 454 rows and the comment said 453; corrected rather than carried)
not_moved rows / replicated_at_destination rows docs/opendox-cutover-runbook.md § 2 136 → 138 / 18 → 20
declared edit lines docs/opendox-cutover-runbook.md § 2 782 → 793; import rewrites 635 → 636, path constants 121 → 131, adapter calls 26 unchanged
opendox_code declared edit lines docs/opendox-cutover-runbook.md § 2 per-destination table 239 → 250 (rows 123 and 61 / 62 unchanged — every amended row was already moved_with_declared_edit)
the § 5.2 control line docs/opendox-cutover-runbook.md § 5.2 454 row(s) → 456 row(s); 318 digest(s) unchanged — a not_moved row has no digest
replica enumeration + placement docs/opendox-cutover-runbook.md § 5.5 the two Q-L1 seams named beside OQ-A's three permanent replicas and OQ-Q's provisional one, with the src/-import-root placement rule and its reason
318 rows verified / the other 136 tests/carve_arrival/test_verify_carve_arrival.py:346 136 → 138
the landed manifest's 18 replica rows tests/carve_arrival/test_verify_carve_arrival.py:1203 18 → 20

Unchanged, and DISCLOSED: scripts/verify-carve-arrival.py:92 still reads "two of the landed manifest's 18 replica rows are fixtures/empty/*/.gitkeep". This lane's hard limits forbid editing that file (with scripts/validate-carve-manifest.py, the two files this act is gated BY). The load-bearing half of the sentence — that two replicas carry the empty digest, which is why an empty created file is not admitted as a replica — stays true; only the total is now stale by two. Owed as a one-word follow-up to the next pull request that touches that file, or on a word here.

Also checked and needing nothing: README.md:80 (the doc-index entry describes the manifest, states no count), tests/carve_manifest/test_carve_manifest.py (its real-repository seat asserts OK, never a total, and every other case builds its own fixture manifest), and tests/carve_arrival/…::test_the_real_manifest_declares_the_roots_the_runbook_names (asserts the § 2 declared-ROOTS column, which a destination-less replica row cannot move).

4. Verification, verbatim

scripts/validate-carve-manifest.py — every mode its --help documents, all exit 0

--help documents four options: --manifest PATH, --repo DIR, --at SHA, --json. Each was run, plus the bare invocation the manifest's own header names. Run at head 42150d76, from the repository root, paths abbreviated:

$ python3 scripts/validate-carve-manifest.py
OK docs/opendox-carve-manifest.yaml: 456 row(s) at opensoft/openxFactory@b075fd91dc8f (opendox-carve-0), verified at 42150d76b941 — 172 moved_verbatim, 146 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed; 456 file(s) in the declared surface with none undeclared
exit=0

$ python3 scripts/validate-carve-manifest.py --at b075fd91dc8fced8e1373825ba80220c33536bae
OK docs/opendox-carve-manifest.yaml: 456 row(s) at opensoft/openxFactory@b075fd91dc8f (opendox-carve-0) — 172 moved_verbatim, 146 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed; 456 file(s) in the declared surface with none undeclared
exit=0

$ python3 scripts/validate-carve-manifest.py --at 42150d76b941c975b55af48eac30b44022f53ca3
OK docs/opendox-carve-manifest.yaml: 456 row(s) … verified at 42150d76b941 — 172 moved_verbatim, 146 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed; 456 file(s) … none undeclared
exit=0

$ python3 scripts/validate-carve-manifest.py --manifest docs/opendox-carve-manifest.yaml
OK docs/opendox-carve-manifest.yaml: 456 row(s) … verified at 42150d76b941 — 172 / 146 / 138; 318 digest(s) recomputed; 456 file(s) … none undeclared
exit=0

$ python3 scripts/validate-carve-manifest.py --repo .
OK docs/opendox-carve-manifest.yaml: 456 row(s) … verified at 42150d76b941 — 172 / 146 / 138; 318 digest(s) recomputed; 456 file(s) … none undeclared
exit=0

$ python3 scripts/validate-carve-manifest.py --json
{"result": "ok", "manifest": "docs/opendox-carve-manifest.yaml", "carve_commit": "b075fd91dc8fced8e1373825ba80220c33536bae", "verified_at": "42150d76b941c975b55af48eac30b44022f53ca3", "carve_tag": "opendox-carve-0", "source_repository": "opensoft/openxFactory", "rows": 456, "dispositions": {"moved_verbatim": 172, "moved_with_declared_edit": 146, "not_moved": 138}, "digests_recomputed": 318, "surface": 456}
exit=0

Check 3 is what makes the eleven new line numbers falsifiable rather than decorative: every edits[].lines entry is bounded by the referent blob's own line count at carve_commit, so a line past EOF refuses as carve-shape-invalid. Check 4 walks both new moved_paths: prefixes at BOTH revisions — the carve commit and this branch's tip — which is why the two rows had to join the surface and not merely the row list.

python3 -m pytest -q tests/carve_manifest tests/carve_arrival

........................................................................ [ 45%]
........................................................................ [ 90%]
...............                                                          [100%]
159 passed in 37.76s

OPENSPEC_TELEMETRY=0 openspec validate --all --strict — no NEW failure

Identical on this branch and on its merge base 6678f51a, the latter run in a separate clone of main checked out at that revision:

# branch                                              # base 6678f51a
✗ change/disposition-codexfactory-declared-renames    ✗ change/disposition-codexfactory-declared-renames
✗ spec/neutral-product-pin                            ✗ spec/neutral-product-pin
✗ spec/repo-boundary-governance                       ✗ spec/repo-boundary-governance
Totals: 98 passed, 3 failed (101 items)               Totals: 98 passed, 3 failed (101 items)

The same three pre-existing failures, unchanged — expected and checkable, because this pull request touches no file under openspec/ at all (git diff --name-only origin/main..HEAD is exactly the three files below).

python3 scripts/doc-health.py --single-repo . — findings identical, one word count moves

Findings: 11 critical, 5 error, 47 warning, 14 info. New regressions vs previous report: 0.   <- base 6678f51a
Findings: 11 critical, 5 error, 47 warning, 14 info. New regressions vs previous report: 0.   <- branch 42150d76

Diffed line-for-line with the repository-identity name normalized, the whole delta is two lines and neither is a finding:

< Canon share by words: 39.4% (362025 canon words / 917764 governance words, promoted specs included).
> Canon share by words: 39.4% (362025 canon words / 917978 governance words, promoted specs included).
< | draft | 71 | 158724 |
> | draft | 71 | 158938 |

+214 governance words, all of them in the draft bucket — docs/opendox-cutover-runbook.md carries Status: draft, so the § 2 and § 5.5 sentences added here land there. Canon share is unchanged at 39.4% and no family gained or lost a finding.

The diff, and what it provably does not contain

$ git diff --name-only origin/main..HEAD
docs/opendox-carve-manifest.yaml
docs/opendox-cutover-runbook.md
tests/carve_arrival/test_verify_carve_arrival.py

$ git diff origin/main..HEAD -- docs/opendox-carve-manifest.yaml | grep -cE '^[+-]    (sha256|git_mode|destination|destination_path):'
0

Not one digest, mode, destination or destination-path field moved: the amendment adds two not_moved rows (which carry none of those keys by the grammar) and eleven line numbers to seven rows that were already moved_with_declared_edit. The 318 moved rows and their digests are byte-for-byte what 17167481 landed.

5. Copilot round 1 — one factual defect, two taken as precision

thread class disposition
docs/opendox-carve-manifest.yaml:3244 — two note: keys under one edits[] entry FACTUAL, and a real defect the validator could not see Fixed in 42150d76. The insertion that added path constants [43] matched class + lines only, so it landed ABOVE the existing entry's note: and left two note: keys on one mapping. PyYAML's SafeLoader takes the LAST duplicate in silence, so the Q-L1 note was being discarded and the import-rewrite note read as the path-constant entry's — a document that passed check 1 while saying something nobody wrote. Each entry now carries exactly one note. Checked estate-wide, not only here: the file re-parses under a SafeLoader subclass that RAISES on any duplicate mapping key, and reports none across all 456 rows. class and lines did not move, so no count changed.
docs/opendox-carve-manifest.yaml:70 — path_slug.py / wire_messages.py missing their scripts/ prefix wording, taken Fixed in 42150d76; every path in that sentence now reads as a source_path the way the rows spell it. Pre-existing elision, in a sentence this pull request rewrote anyway.
tests/carve_arrival/test_verify_carve_arrival.py:346 — 318 rows verified is not what the verifier prints wording, taken Fixed in 42150d76: the docstring now quotes the verifier's own 318 digest(s) verified and says "the other 138 ROWS". No assertion reads it. The comment's cross-reference to :1203 does not hold — that line counts ROWS ("the landed manifest's 20 replica rows"), which is already right.

All three replied and resolved; 0 unresolved threads (reviewThreads totalCount 3, all isResolved=true).

What this pull request does NOT do

  • No leg, no re-cut. Q-L4's re-cut of leg 1 waits on this and on Q-L2's levelling round; opensoft/openDox-code#4 stays open and unmerged until then.
  • No validator edit, no arrival-verifier edit. The gate is scripts/validate-carve-manifest.py at b075fd91 as the ruling names it; this act is measured BY it, so it may not touch it.
  • No openspec/ surface. The ruling says plain gate.
  • No collect_ignore list — Q-L3 (b) lands that in opensoft/openDox-code#5, as a levelling artefact removed by the BUILD arc.
  • No destination declared for a replica — RULED OQ-C. § 1.1's placement is a RECOMMENDATION in prose, which is what the leg's --replica-at answers.
  • No new digest. Every added row is not_moved; the 318 moved rows and their digests are untouched, and git diff proves no sha256: line changed.

Rollback

Revert the four commits. The manifest returns to 454 rows and leg 1 returns to the same red it stopped on; nothing else in the repository reads the rows added here.

Lane: openxfactory-4-opendox-extraction

🤖 Generated with Claude Code

…hort-citation lines leg 1 could not carry (RULED Q-L1)

RULED Q-L1 by Brett Heap on 2026-09-10 (openxFactory `#656` comment
`5611834121`, verbatim "rule Q-L1 approve"), on the memo carve leg 1 filed
after proving the carve and stopping red (`5611813223`).

TWO NEW `not_moved / replicated_at_destination` ROWS — `scripts/route_extension.py`
(blob `34802071`, 30,017 bytes, sha256 `a39a6489…566f`) and
`scripts/subcommand_extension.py` (blob `1d4833b2`, 5,059 bytes, sha256
`96d4e64e…ca0a9`), both mode 100644 at `carve_commit`. They are the § 2.4
extension-point seams: neutral modules at the top of `scripts/`, stdlib-only,
imported as BARE top-level statements by rows that arrive at three destinations
AND by rows that stay here, so no destination can own one. Leg 1 could place
neither — `--replica-at` refuses a path with no row and `--allow-created` would
have called an openxFactory blob a destination's own creation. This is OQ-Q's
shape exactly (`scripts/corpus_adapter.py`, 2026-09-09) and takes OQ-Q's
repair: the row, never an edit to the leg. Both paths join `moved_paths:`, so
check 4 walks them at both revisions.

TEN NEWLY DECLARED LINES over six rows, all of them citations too short to
express the edit the row's own note already described:

  * `test_boundary.py` +`:14` (import rewrites) — a bare `import
    output_boundary`, the reach `:22-23` could not carry;
  * `test_doxbench_hash.py` +`:32-33`, `test_doxbench_state.py` +`:23-24`,
    `test_doxbench_view.py` +`:16-17`, `:291-292` — the `"scripts"` /
    `"ideation_dashboard"` segments of multi-line `Path` expressions whose bare
    `/ "web"` continuation was the only line declared;
  * `test_provider_boundary.py` +`:56` — `PACKAGE`, on which `:57`'s `WEB`
    depends.

Every one is destination-local and available AT the carve: it needs nothing
from the openXdox-code leg and nothing from the BUILD arc. Nothing whose fix
waits on either is declared here.

`python3 scripts/validate-carve-manifest.py` → OK, 456 row(s), 172/146/138,
318 digest(s), 456 file(s) in the declared surface with none undeclared.

The `# 453 rows` census comment is corrected to 456: it was an off-by-one
against its own file from `17167481` (the landed manifest had 454).

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 10, 2026 03:41
@sourcery-ai

sourcery-ai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

This manifest-only amendment addresses Q-L1's two structural causes from carve leg 1: it declares the missing extension-point replicas and completes ten short edit citations, then updates associated documentation and count assertions while deliberately leaving validator/verifier code, BUILD-arc work, and collect-ignore handling unchanged.

Entity relationship diagram for manifest replica declarations

erDiagram
    CARVE_MANIFEST ||--o{ MANIFEST_ROW : contains
    MANIFEST_ROW }o--|| SOURCE_FILE : declares
    MANIFEST_ROW {
        string source_path
        string disposition
        string reason
        string evidence
    }
    SOURCE_FILE {
        string route_extension_py
        string subcommand_extension_py
    }
Loading

Flow diagram for Q-L1 manifest amendment

flowchart TD
    Leg1[Carve leg 1 reports structural failures] --> Cause1[Missing extension-point rows]
    Leg1 --> Cause3[Short edit citations]
    Cause1 --> AddReplicas[Add two replicated_at_destination rows]
    Cause3 --> CompleteCitations[Add ten missing edit line citations]
    AddReplicas --> UpdateCounts[Update manifest and runbook counts]
    CompleteCitations --> UpdateCounts
    UpdateCounts --> Validate[Validate with validate-carve-manifest.py]
    Validate --> Next[Leg 1 re-cut can proceed]
Loading

File-Level Changes

Change Details Files
Adds manifest coverage for the two neutral extension-point modules as destination replicas.
  • Adds replicated_at_destination rows with carve blob provenance and evidence.
  • Adds both paths to the manifest's declared movement surface and updates explanatory comments.
  • Preserves not_moved semantics because the modules remain consumed by multiple destinations and openxFactory.
docs/opendox-carve-manifest.yaml
Expands manifest edit citations to cover complete multi-line path and import edits identified by carve-leg validation.
  • Adds ten short-citation lines across six existing moved rows.
  • Updates each affected edit note with the Q-L1 rationale and destination-local applicability.
  • Leaves BUILD-arc-dependent adapter calls, destinationless imports, and intentionally deferred test issues undeclared.
docs/opendox-carve-manifest.yaml
Synchronizes manifest and runbook/test documentation counts with the new rows and edit-line totals.
  • Updates row, replica, not-moved, and declared-edit counts.
  • Enumerates the new replicas in the runbook and adjusts real-manifest assertions.
  • Documents the stale verifier wording as an explicitly deferred follow-up without modifying the gate or arrival verifier.
docs/opendox-carve-manifest.yaml
docs/opendox-cutover-runbook.md
tests/carve_arrival/test_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

… ten new lines

RULING Q-L1's rows and declarations move four totals and no digest. The
validator's own line is the referent: `456 row(s) … 172 moved_verbatim, 146
moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed; 456 file(s)
in the declared surface`.

`docs/opendox-cutover-runbook.md`
  * § 2 census: `not_moved` 136 → 138, `replicated_at_destination` 18 → 20.
  * § 2 declared edit lines: 782 → 792 (`import rewrites` 635 → 636, `path
    constants` 121 → 130, `adapter calls` 26 unchanged), with a dated sentence
    naming the amendment that moved them.
  * § 2 per-destination: `opendox_code` declared edit lines 239 → 249. Its rows
    (123) and its 61 / 62 split do not move — every amended row was already
    `moved_with_declared_edit`.
  * § 5.2 control: `454 row(s)` → `456 row(s)`. `318 digest(s)` is unchanged
    because a `not_moved` row carries no digest.
  * § 5.5: the two seams named beside OQ-A's three permanent replicas and
    OQ-Q's provisional one, with the reason their arrival needs no import
    rewrite.

`tests/carve_arrival/test_verify_carve_arrival.py` — two docstrings that count
the landed manifest: `the other 136` → 138, `18 replica rows` → 20. Prose only;
no assertion moves.

NOT UPDATED, DISCLOSED: `scripts/verify-carve-arrival.py:92` still reads "two of
the landed manifest's 18 replica rows". This lane may not edit that file — it is
one of the two the act is gated BY. The load-bearing half (two replicas carry
the empty digest, so an empty created file is not admitted as a replica) is
still true; the total is stale by two and owed to the next pull request that
touches it.

Checked and needing nothing: `README.md:80` states no count;
`tests/carve_manifest/test_carve_manifest.py` asserts `OK` and never a total;
the arrival suite's roots assertion reads the declared-ROOTS column, which a
destination-less replica row cannot move.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[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.

🟢 Approval recommended

The only issue found is a minor header-comment path-prefix inconsistency, and the functional manifest changes appear internally consistent with the existing schema/validator expectations.

Pull request overview

Updates the openDox/openXdox carve manifest to satisfy Q‑L1 by adding missing replicated_at_destination coverage for the two §2.4 extension-point seams and by expanding several declared-edit “short citations” so the manifest’s line references match the edits described for carve leg 1.

Changes:

  • Add moved_paths surface entries and not_moved / replicated_at_destination rows for scripts/route_extension.py and scripts/subcommand_extension.py.
  • Amend several moved_with_declared_edit rows to include additional lines: entries (fixing prior short-citation ranges).
  • Update the manifest’s internal row-count comment to reflect the new total.
File summaries
File Description
docs/opendox-carve-manifest.yaml Adds the two extension-point replica rows and expands declared edit line citations to match the leg’s required edits.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread docs/opendox-carve-manifest.yaml Resolved
Copilot AI review requested due to automatic review settings September 10, 2026 03: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

A couple of updated test docstrings are now misleading about what the verifier/manifest actually records (counts and digest semantics) and should be corrected for accuracy.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (1)

tests/carve_arrival/test_verify_carve_arrival.py:1204

  • This docstring says the manifest’s replica rows “carry the empty digest”, but replicated_at_destination rows do not store a digest field (they’re not_moved). Rephrasing to “rows are empty” matches the verifier’s own explanation (“blob is empty”) and avoids implying a sha256 field exists on these rows.
    """EMPTY BYTES IDENTIFY NOTHING. Two of the landed manifest's 20 replica
    rows carry the empty digest (`fixtures/empty/*/.gitkeep`), so before this
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

@brettheap
brettheap marked this pull request as ready for review September 10, 2026 03:47

@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 21 hours and 13 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

…lare the one line that recommendation makes fixable

Three inputs from the parallel Q-L2 levelling author (openDox-code #5, head
`a0358ac3`), folded in.

PLACEMENT, RECOMMENDED AND NOT DECLARED. A `replicated_at_destination` row
carries no `destination` key — RULED OQ-C, this manifest declares what LEAVES,
never what a destination assembles — so both new rows still carry none. But the
IMPORTERS constrain the placement and the leg cannot rewrite them: measured in
leg 1's tree at `cfabe3c4`, `src/opendox/serve.py:117` still reads `import
route_extension` and `src/opendox/cli.py:65` and
`tests/test_subcommand_extension.py:38` still read `import
subcommand_extension`, every one a BARE top-level import on a line no row
declares. A copy inside `src/opendox/` would therefore need an import rewrite
this manifest does not authorize; a copy at `src/route_extension.py` /
`src/subcommand_extension.py` — ON the import root, BESIDE the package, the
mirror of `scripts/*.py` beside `scripts/ideation_dashboard/` here — resolves
unedited. Both rows now RECOMMEND exactly that, name the arrived importer lines,
and give the `--replica-at` spelling. § 5.5 of the runbook says the same in one
paragraph.

`tests/ideation-dashboard/test_subcommand_extension.py:43` DECLARED, `path
constants`. `MODULE = REPO_ROOT / "scripts" / "subcommand_extension.py"` names
the seam file itself by openxFactory path and `:99-109` read it with
`imported_modules(MODULE)`, so at a destination with no `scripts/` directory the
import-hygiene assertions cannot run. It is declarable HERE and only here,
because this amendment is what gives that path a row and recommends the
placement the rewrite targets. It stays out of the wider family of undeclared
`REPO_ROOT / "scripts" / …` reaches (now 11 lines over 9 `opendox_code` rows,
measured): those name files whose rows declare no such edit, and declaring them
would be a new line census over the whole surface instead of a consequence of
this act.

Counts follow: declared edit lines 792 → 793 (`path constants` 130 → 131),
`opendox_code` 249 → 250. Rows, dispositions and all 318 digests unmoved —
`456 row(s) … 172 / 146 / 138; 318 digest(s) recomputed`, and
`tests/carve_manifest tests/carve_arrival` 159 passed.

Untouched deliberately: the arrived `tests/conftest.py` / `session_fixtures.py`
autouse fixture whose reach runs `opendox.cli` → `openxdox.snapshot`. That is a
ruling for Brett Heap (Q-L5), not a line this document may declare or a file
this lane may edit.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 10, 2026 03:52

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

The manifest YAML introduces a duplicate note: key in an edits mapping, which will overwrite the intended new note and should be corrected before merge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread docs/opendox-carve-manifest.yaml Resolved
…ntly dropped the Q-L1 note

FACTUAL, and Copilot found a real defect the validator could not see.
`tests/ideation-dashboard/test_subcommand_extension.py`'s new `path constants`
entry carried TWO `note:` keys, because the insertion matched `class` + `lines`
and landed ABOVE the existing entry's note line. PyYAML's SafeLoader takes the
LAST duplicate silently, so the Q-L1 note was being discarded and the
import-rewrite note was reading as the path-constant entry's — a document that
validated while saying something nobody wrote. Each entry now carries exactly
one note, with the original text back on `import rewrites [41]` and the Q-L1
text on `path constants [43]`.

Checked estate-wide, not just here: the file was re-parsed under a SafeLoader
subclass that RAISES on any duplicate mapping key, and it reports none across
all 456 rows. `edits[].class`/`lines` unchanged, so the census does not move —
`456 row(s) … 172 / 146 / 138; 318 digest(s) recomputed`, 793 declared edit
lines, and `tests/carve_manifest tests/carve_arrival` 159 passed.

Two more, both taken:

  * `docs/opendox-carve-manifest.yaml:70` — `path_slug.py` and
    `wire_messages.py` in the WHAT-"REPLICATED"-MEANS paragraph now carry their
    `scripts/` prefix, so every path in the sentence reads as a `source_path`
    the way the rows spell it. Pre-existing elision, in a sentence this pull
    request rewrote anyway; the paragraph is re-wrapped, not re-argued.
  * `tests/carve_arrival/test_verify_carve_arrival.py:346` — the docstring
    paraphrased the verifier as printing `318 rows verified`; its own line says
    `digest(s) verified`, so the docstring now quotes that and says "the other
    138 ROWS". No assertion reads it.

Refs #656

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 10, 2026 04:00

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 diffs are internally consistent across manifest + runbook + tests, and I did not find any concrete correctness issues in the changed regions.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit 15ebb37 into main Sep 10, 2026
14 checks passed
brettheap added a commit that referenced this pull request Sep 10, 2026
…oxes — bookkeeping on Brett Heap's word (#897)

Bookkeeping on Brett Heap's word "tick the carve boxes" (2026-09-10): the split-opendox-two-layer-product § 3 boxes whose acceptance text is fully met by landed evidence are ticked, each with its citation — § 3.1 (manifest #865 → 1716748 + #889 → 15ebb37), § 3.2 (openDox-code #6 → ce53b489; all 24 design § D3 modules present), § 3.3 (the serve.py/cli.py app-server and neutral halves with the § 2.4 extension points, live in openDox-code). Boxes only partly met (the openXdox legs are not yet carved) and the BUILD-arc, runtime, repository-creation, FLOOR PART 3 and tag boxes stay open. Evidence, all on #656: the mapping manifest #865 → 1716748 and its amendments #889 → 15ebb37; the cutover runbook and arrival verifier #875 → a970fd9; leg 1 openDox-code #6 → ce53b489 (123 rows); leg 2 openDox-spec #4 → fc67332d (56 rows); the openDox root pin openDox #4 → 49a99df2 (gitlinks, pins, carved_from). On the word "tick 0.6, 1.8, 1.9 and 2.5 too when green": § 0.6 (PR-5 #832 → 56e69a1, archived with promotion), § 1.8 (opensoft/xFactory #284 → 05cb5abf, rule 1 confirmed live) and § 2.5 (the D-2 exercise: dispatch PR #176 → 7681e40, refusal 36d07ec; the box names no Omnigent-Install act, so its `[OmI]` tag is a repo tag without a clause) are ticked; § 1.9 stays open because its project-register rows land with § 5.8, still open. No manifest, validator or runbook change; landed under a Rule 6 window.

Refs #656 (stays OPEN).

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