Repository navigation
§ 3.4 S6: the /source pair leaves the projection column (RULED Q4) - #17
Conversation
RULED Q4 (Brett Heap, 2026-09-12, opensoft/openXfactory#656 comment 5642758731): "`/source/` is openDox's, and openXdox's projection binding keeps only `/snapshot-index.json` and the three `/projections/*` routes." Reading a file out of the pinned checkout is the neutral product's own read-only pass-through; it predates the gate loop and nothing about it is a gate act, and under RULING OQ-2 a student runs openDox alone — so a read-only Markdown viewer that cannot load a file without the consumer layer was a route-ownership defect. The boundary note (openDox-spec `docs/front-end-package-boundary.md` § 2.2 rule 1, § 4.5 assertion 2, § 5 row S6, § 6 Q4) measured it as the census's ONE class-A breach: `views/viewer.js` addressing a route another column declares. This leg's half. `serve_projection.py` drops `SOURCE_PREFIX`, `BARE_SOURCE_ROUTE`, their two `RouteBinding`s and the three methods they reached (`_serve_source`, `_refuse_bare_source`, `_keyed_source`), together with the single-root containment entry point `resolve_source_path` — whose only readers outside this file were already openDox's (`serve.py`'s re-export and `notebook_action.py`:52's re-check of every resolved document). The `ProjectionRoutesExtension` tuple is now one binding: `/snapshot-index.json`. The three `/projections/*` routes were never declared here — each travels with the surface that answers it — so the ruling leaves all three untouched. What does NOT move. `snapshot_registry.resolve_within` is the PER-ENTRY containment rule and it is still this column's; openDox's arm reaches it through the same late `consumer_reach` seam `serve_workbench.py` already uses. `/snapshot.json`'s handler stays here with its neighbours, arm still core. The ORDER is preserved rather than re-derived: an exact `/source` arm consulted before a `/source/` prefix arm, so `/source/` still reaches `_serve_source("")` and answers 404 with divergence headers and a zero-length body rather than an HTML error page — the property the docstring paragraph this replaces was written to protect. Tests. `tests/test_source_dot_directories.py` travels to openDox-code with the route: it is the one file of the 48 (§ 1.2(d)) whose whole subject IS this route. The other 13 `/source` assertions here sit in five carved suites that are uncollectable at this leg and ALREADY import `opendox.serve` — the carve's `import rewrites` class had pointed them at the leg that now owns the route — so S6 orphans none of them and they travel with the other 47 at S8. `validate` stays green: the four narrowed suites (RULED Q-L8 (b′)) do not name `/source`, and `tests/test_dependency_direction.py`'s ratchet reads the `opendox` pin, which this act does not move. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Reviewer's GuideThis PR applies RULED Q4 by removing File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…this leg
WITHDRAWN, one commit later, on the carve floor's own rule. The previous commit
moved `tests/test_source_dot_directories.py` to openDox-code with the route it
is about. `docs/opendox-carve-manifest.yaml`:3439-3450 gives that file a row
with `destination: openxdox_code` and `destination_path:
tests/test_source_dot_directories.py`, so the move is not a declared EDIT to an
arrived file — it is a RE-DESTINATION of the row itself, which the Q-L1
annotation form (`edits: [{class, lines[], note}]`, classes closed at
`import rewrites | path constants | adapter calls`) cannot express. Left
standing it would have made `verify-carve-arrival.py --destination
openxdox_code` refuse for a missing arrival and `--destination opendox_code`
refuse for a file no row places. "Fix the DESTINATION, never the manifest" is
the verifier's own remediation line, and the destination fix here is to put the
file back.
Nothing is lost by that. The file is inert at both legs (§ 1.2(d): it resolves
`REPO_ROOT / "scripts" / "ideation_dashboard"` and `src/openxdox/web`, neither
of which exists here), it already reads `from opendox import serve as serve_mod`
— the carve's `import rewrites` class had pointed it at the leg that now owns
the route — and every refusal it measures belongs to
`snapshot_registry.resolve_within`, which this slice did NOT move. openDox-code's
`tests/test_source_core_arm.py` asserts exactly that single-authority property,
so the dot-directory refusals (T092 defect 10) are carried across the move
without being re-stated at a leg that cannot run them.
Re-homing this file is § 5 row S8's, with the other 47 — and S8 needs a
manifest act (a re-destination pass) that no slice has yet been given.
Recorded here so S8 finds it already written down.
Refs opensoft/openXfactory#656
Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Existing seam assertions and route-seam documentation still describe the removed /source bindings.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR moves /source ownership to openDox and narrows openXdox projection routing to /snapshot-index.json.
Changes:
- Removes
/sourcebindings, handlers, and resolver. - Removes the source dot-directory test for relocation.
- Updates projection ownership documentation.
File summaries
| File | Summary |
|---|---|
src/openxdox/serve_projection.py |
Removes /source handling; seam-count assertions and shared route-seam documentation still require updates. |
tests/test_source_dot_directories.py |
Removes the source-route security test for relocation. |
Review details
Suppressed comments (1)
src/openxdox/serve_projection.py:302
- This class now records that
/sourceleft the projection column, but the shared route-seam contract insrc/route_extension.py:84-110still saysSOURCE_PREFIXis an in-tree prefix and that this assembly deliberately keeps the/sourceplus/source/pair. Those statements become false after this change and can mislead future route additions; update that contract documentation as part of the ownership move.
THE `/source` PAIR IS GONE FROM THIS TUPLE and is `opendox/serve.py`'s core
arm now. The column's OTHER three contributed routes — `/projections/evidence`,
`/projections/workbench`, `/projections/role-authority` — were never declared
here: each travels with the surface that answers it
(`evidence_provenance_surface.py`, `model_scenario_workbench.py`,
`role_authority_projection.py`), and the ruling leaves all three untouched.
- Files reviewed: 1/1 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.
… route Copilot on #17 (`discussion_r3996991573`), and it is right: removing the two `/source` bindings changes the § 2.4 assembly count, and three seam-conformance suites assert that count as a literal with the arithmetic spelled out beside it. `5 -> 3`, `6 -> 4`, `7 -> 5`, and the "+ 3 (projection: snapshot-index exact, bare-source exact, source prefix)" term becomes "+ 1 (projection: snapshot-index exact)" in each. Verifiable by inspection: every one of the five contributing extensions — `GateRoutesExtension`, `ProjectionRoutesExtension`, `RoleAuthorityProjectionExtension`, `EvidenceProvenanceSurfaceExtension`, `ModelScenarioWorkbenchExtension` — returns exactly one binding from `routes()` now. WHY THE GREEN RUN DID NOT CATCH IT, which is the half worth recording. These three suites are outside RULED Q-L8 (b′)'s four narrowed files, and they do not run here for a SECOND reason besides: they error in `tests/conftest.py`'s `declared_human_console` autouse fixture before their own `doc_health` skip guard is ever reached — 8, 10 and 12 errors respectively, identical before and after this branch. So the count would have sat wrong until the BUILD arc made them runnable, and then failed as a mystery. A stale number in a suite nothing runs is exactly the defect class § 1.2(d) is about. The `does_not_sit_under_either_declared_prefix` checks KEEP their `/source/` assertion and gain the reason why: since S6 that prefix is `opendox/serve.py`'s CORE arm rather than this column's contributed binding, which makes the check MORE necessary, not less — `collect_bindings` never sees a core arm, so it cannot refuse a contributed route that nests under one. `validate` still green (122 passed). Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Update stale seam expectations and align the documentation and source-route test ownership.
Review details
Suppressed comments (3)
src/openxdox/serve_projection.py:309
- This changes the extension contract from three bindings to one, but the in-repo seam tests still hard-code the old projection totals (5/6/7) and describe the
/sourcepair as part of this extension (tests/test_role_authority_projection_seam.py:88-106,tests/test_evidence_provenance_surface_seam.py:100-120, andtests/test_model_scenario_workbench_seam.py:121-125). Once those suites are collectible, they fail; update the counts/route expectations or move those assertions with the corresponding slice.
def routes(self) -> tuple[route_extension.RouteBinding, ...]:
return (
route_extension.RouteBinding("GET", SNAPSHOT_INDEX_ROUTE, False,
"_serve_index"),
)
src/openxdox/serve_projection.py:302
- The ownership change is not reflected in the neutral seam's authoritative documentation:
src/route_extension.py:84-110still saysSOURCE_PREFIXcarries the in-tree containment check and that this assembly's/source+/source/pair is intentionally legal. After this removal that description is false and can lead a future contributor to re-declare the route here; update it with this ownership change.
THE `/source` PAIR IS GONE FROM THIS TUPLE and is `opendox/serve.py`'s core
arm now. The column's OTHER three contributed routes — `/projections/evidence`,
`/projections/workbench`, `/projections/role-authority` — were never declared
here: each travels with the surface that answers it
(`evidence_provenance_surface.py`, `model_scenario_workbench.py`,
`role_authority_projection.py`), and the ruling leaves all three untouched.
src/openxdox/serve_projection.py:38
- The source implementation is removed from this leg, but
tests/test_source_dot_directories.pyis still present here and exercises/sourcethroughopendox.serve(includingserve_mod.resolve_source_path). That leaves the S6 route-security suite owned by the wrong leg and contradicts the stated move of this file to openDox-code; include the file move/removal in this change so the code-leg tests do not retain coverage for a route it no longer implements.
So `SOURCE_PREFIX`, `BARE_SOURCE_ROUTE`, their two `RouteBinding`s and the three
methods they reached (`_serve_source`, `_refuse_bare_source`, `_keyed_source`)
are now FIXED CORE ARMS of `opendox/serve.py`, together with the single-root
containment entry point `resolve_source_path` — whose only readers outside this
file were already openDox's (`serve.py`'s re-export and `notebook_action.py`'s
- Files reviewed: 4/4 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
There was a problem hiding this comment.
🟡 Changes recommended
The current openDox pin lacks the replacement /source implementation, causing the routes and resolver to be unavailable.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 22 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5647354329. **RULED Q4** (Brett Heap, 2026-09-12, opensoft/openXfactory#656 comment `5642758731`): "`/source/` is openDox's, and openXdox's projection binding keeps only `/snapshot-index.json` and the three `/projections/*` routes." This leg is the openDox half of § 3.4 slice S6: `serve.py` declares `SOURCE_PREFIX`/`BARE_SOURCE_ROUTE` and the three moved handlers as two FIXED arms in `_route`, exact `/source` above prefix `/source/`, both above the § 2.4 contributed consult — the order the bindings already had, preserved rather than rediscovered, so a contributed `/source/` binding can no longer shadow it. `tests/test_source_core_arm.py` (CREATED, on `validate`'s explicit list, 25 assertions, no xfail) proves the route is declared here, the column no longer carries it, exact-before-prefix dispatch, unshadowability, and one containment authority with no re-implementation. Census assertion 2's residue drops from 20 to 16 sites as `views/viewer.js` and `views/wheel.js` clear without an edit to either file. Pairs with opensoft/openXdox-code#17. Gate evidence: destination gate; `validate` SUCCESS at `f97e6ab9` (run 34712023823); 2 review threads, 0 unresolved (one on S3's own `view_extension.js`, left for and since resolved by its owner opensoft/ openDox-code#14; the pin/release-ordering finding on this leg's `serve.py` — replied and registered on #656 rather than fixed here, for the same reason as the counterpart thread on openXdox-code#17).
S6's /source pair landed on main (#17); leg A takes it before its own round-2 fixes so the probes and the narrowed validate measure the same tree main has. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…n column) and openDox pin to 7cf6c143 (S3/S4/S6 landings) (#9) Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5647338637. Second leg of the pin lockstep: `code` advances `af15f712` → `d6e7bbe3` (S6), `contracts/opendox-pin.yaml` advances `8ec3036c` → `7cf6c143` (matching opensoft/openDox#7). `spec` unchanged. Gate evidence: destination gate; `validate` SUCCESS (base confirmed `main`); `scripts/validate-pins.py --pin-source openDox=<sibling clone>` recomputes every digest (`pins ok`); `validate-manifest.py` and `validate-repository-naming.py` also pass. 1 review thread, 0 unresolved — Copilot's pin-ordering finding (`openXdox-code`'s own `pyproject.toml` still depends on `openDox-code@a99eba03`), the same shape as two already- registered findings on opensoft/openDox-code#16 and opensoft/openXdox-code#17 — replied (out of scope for an assembly-root pin bump; the remediation is `openXdox-code`'s own separate pin-bump ceremony per `docs/opendox-cutover-runbook.md` § 5.1, design D12, "two pin moves per hop") and registered on #656, resolved. CLEAN/MERGEABLE, not draft.
… consumer break Lane: openxfactory-4-opendox-extraction Refs #656 (stays OPEN). CLAIM: 5647338637. Two fixes on the pin-lockstep PR (#1020), both real breakage the CI run and Copilot's review found: 1. `contracts/opendox-pin.yaml`'s MIGRATION DECLARATION comment still cited the PREVIOUS pin's evidence (RE-CHECKED at code `a99eba03` from assembly `8ec3036c`). Re-ran the actual recheck this pin's own bump requires: `git ls-tree -r 05bbde80f91a870f23aaa762fc03e40635ccbffd | grep -i migration` on opensoft/openDox-code's own checkout returns nothing, so the `not_yet_deployed` sentinel still holds — the comment now cites that real output at the new leg/root pair, chaining the previous reading behind it rather than replacing it silently. 2. `tests/ideation-dashboard/test_route_extension.py` failed to even COLLECT: `from openxdox.serve_projection import SOURCE_PREFIX` — S6 (opensoft/openXdox-code#17) removed that name from its module entirely, since RULED Q4 moved `/source` to a FIXED core arm in `opendox/serve.py`. Fixed at the same two places the test's own docstrings already promise to read from "the owner": the import now reads `BARE_SOURCE_ROUTE` from `opendox.serve`; the in-tree profile's collected-binding count drops from 9 to 7 (the /source pair left `ROUTE_EXTENSIONS` for the fixed arm, so it no longer contributes two bindings) with the docstring explaining why; and the BUILD-time overlap-refusal test's `SOURCE_PREFIX` parametrize case is replaced with a dedicated test proving the property that is now actually true — the build no longer refuses a contributed `/source` binding (nothing left in the profile for it to collide with), but a real request still never reaches it, because the fixed core arm runs first (proven at the repository that owns that arm now: opensoft/openDox-code's own test_source_core_arm.py::test_the_arms_are_fixed_and_cannot_be_shadowed_by_a_contribution). Verified: `python3 scripts/verify-opendox-pin.py` and `verify-openxdox-pin.py` (both OK); `python3 -m pytest tests/opendox_pin tests/openxdox_pin` (105 passed); `python3 scripts/validate-carve-manifest.py` (OK); the fixed file alone (54 passed); `python3 -m pytest tests/ -q --collect-only -m "not postgres"` (7099/7437 collected, 0 errors — was 1 collection error before). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>



Lane: openxfactory-4-opendox-extraction
§ 3.4 slice S6, the openXdox half. Refs opensoft/openXfactory#656.
The ruling
RULED Q4 — Brett Heap, 2026-09-12, opensoft/openXfactory#656 comment
5642758731, by interactive multi-choice:Reading a file out of the pinned checkout is the NEUTRAL product's own read-only
pass-through; it predates the gate loop and nothing about it is a gate act, and
under RULING OQ-2 a student runs openDox alone. The boundary note (openDox-spec
docs/front-end-package-boundary.md@61866d29, § 2.2 rule 1 · § 3.2 ·§ 4.5 assertion 2 · § 5 row S6 · § 6 Q4) measured the consequence as the
census's ONE class-A breach:
views/viewer.js— the read-only Markdown viewer,the most obviously student-usable surface in the bundle — addressing a route
another column declares.
What this leg does
src/openxdox/serve_projection.pydrops:SOURCE_PREFIX:57BARE_SOURCE_ROUTE:58-61RouteBinding("GET", BARE_SOURCE_ROUTE, False, "_refuse_bare_source"):382RouteBinding("GET", SOURCE_PREFIX, True, "_serve_source"):384_keyed_source/_serve_source/_refuse_bare_source:295-361resolve_source_path:66-78ProjectionRoutesExtension.routes()is now one binding:/snapshot-index.json.The three
/projections/*routes were never declared here — each travels withthe surface that answers it (
evidence_provenance_surface.py,model_scenario_workbench.py,role_authority_projection.py) — so the rulingleaves all three untouched, exactly as it says.
The module docstring's "WHAT ARRIVES THROUGH THE SEAM AND WHAT STAYS A CORE ARM"
narrative no longer claims
/source/, and the paragraph that argued "THE/sourcePAIR MOVES TOGETHER" is replaced by the record of where the pair wentand what that preserves.
resolve_source_pathtravels too, though the brief listed only theconstants, the bindings and the handlers. It is the single-root entry point to
the containment of a route this leg no longer declares, and it has no
production reader at openXdox —
snapshot_registry.py:367 mentions it in adocstring and nothing calls it. Its readers were already openDox's
(
serve.py's re-export andnotebook_action.py:52's re-check of every resolveddocument before a notebook action may name a path), so leaving it here would
have left a function whose only callers are in the layer that pins this one.
What does NOT move
snapshot_registry.resolve_withinis the containment RULE — the same ruleapplied per registry entry (task 2.2) — and it stays this column's. openDox's
arm reaches it through the same late
consumer_reachseamserve_workbench.pyalready uses at five sites.hosted_ref_refused/_hosted_entry_refusedare FR-048's hosted-planeconfinement, also this column's. The route moved; the rules it consults did
not. Q4 is "a route-ownership correction at § 4.3 of the packet, not a new
capability", in the note's own words.
/snapshot.json's handler stays here with its neighbours, its arm stillcore (it tests
path == self.snapshot_route, a per-server keyword a frozenRouteBinding.patterncannot carry).The order is preserved, not re-derived
collect_bindingsreturned every EXACT binding before every PREFIX one, so/sourceansweredsend_error(404, "no source path")while/source/(emptytail) reached
_serve_source("")and answered 404 with divergence headers and azero-length body. openDox's
_routereproduces that by putting the exact armabove the prefix arm — the property the replaced docstring paragraph existed to
protect, carried forward rather than rediscovered.
Tests
Nothing moves, and the second commit on this branch is why. The first
commit sent
tests/test_source_dot_directories.pyto openDox-code with theroute it is about — the one file of the 48 (§ 1.2(d)) whose whole SUBJECT is
this route (T092 acceptance sweep defect 10:
/source/.git/configanswering200 with a remote's embedded PAT).
docs/opendox-carve-manifest.yaml:3439-3450gives that file a row with
destination: openxdox_code, so the move is not adeclared EDIT to an arrived file — it is a RE-DESTINATION of the row, which
Q-L1's annotation form (
edits: [{class, lines[], note}], classes closed atimport rewrites | path constants | adapter calls) cannot express. Leftstanding it would have made
verify-carve-arrival.py --destination openxdox_coderefuse for a missing arrival and--destination opendox_coderefuse for a file no row places. "Fix the DESTINATION, never the manifest" is
the verifier's own remediation line, so
657c821puts the file back.No
/sourceassertion here is orphaned, and that is worth statingprecisely. Fourteen remain — that whole file plus thirteen functions across
test_renderer.py×4,test_explorer_viewer.py×5,test_session_snapshot.py×2,
test_doxbench_transport.py×1 andtest_repo_selector.py×1. Every one ofthem already reads
from opendox import serve as serve_mod— the carve'simport rewritesclass had pointed them at the leg that now owns the route —and all six files are uncollectable at this leg (they resolve
REPO_ROOT / "scripts" / "ideation_dashboard"andsrc/openxdox/web, neither ofwhich exists here). They assert against a surface S6 preserves exactly, so they
travel with the other 42 at S8, which is the slice § 5 gives that job to.
REGISTER, for whoever plans S8: re-homing those 48 files needs an
openxFactory manifest re-destination act — a pass that moves
destination/destination_pathon every affected row — and no slice has been given one. S6found the constraint the hard way and is recording it rather than working round
it.
openDox-code#16 carries the RUNNABLE proof of this move:
tests/test_source_core_arm.py, 25 assertions onvalidate's explicit list,including that the containment authority is single and unmoved — which is what
carries this file's dot-directory refusals across without re-stating them at a
leg that cannot run them.
validateGreen. The four narrowed suites (RULED Q-L8 (b′)) —
test_leg_shape.py,test_dependency_direction.py,test_domain_profile.py,test_no_hardcoded_status_words.py— name/sourcenowhere, andtest_dependency_direction.py'sOPENDOX_BACK_IMPORTSratchet measures theopendoxpin (pyproject.toml:@a99eba03), which this act does not move.Locally:
122 passed.Pairs with
build/s6-source-core-arm— the arm's new home.serve_projection.pyis an ARRIVED file (openxdox_code), so these edits aredeclared lines on its row.
🤖 Generated with Claude Code
Summary by Sourcery
Reassign source-route ownership to the openDox core while keeping openXdox limited to the snapshot index and existing projection contributions.
Enhancements:
/sourceand/source/routes and their source-path resolution logic out of openXdox’s projection extension and into the openDox core arm while preserving routing behavior and containment responsibilities.Tests: