Repository navigation
OQ-B re-plumb 2 as ruled (i′): hosted_ref_refused moves to serve_projection beside hosted_index; the three wire strings to a neutral module (split-opendox § 3.1) - #852
Conversation
…(OQ-B B-2, ruled (i')) The predicate's definition moves byte for byte out of `serve_wire.py:1359-1393` (35 lines, 2,264 bytes, sha256 1f0257cd3597fd02) into `serve_projection.py`, beside `hosted_index` — Brett Heap's ruling of 2026-09-09 on `#656`, "rule B-2 (i')". Zero differing lines: the destination already imports `snapshot_registry` under the same `registry_mod` alias. `serve_openxfactory_lanes.py` is openxFactory's own adapter column and STAYS; it read the predicate from the wire module, which goes WHOLE to openDox, so that import was the edge RULING OQ-2 forbids. It now reads it from `serve_projection` (openXdox) — the direction OQ-B B-3 already took for the sessions reach. `serve_wire.py` keeps NO binding of the name and no re-export, and its `snapshot_registry` import goes with the predicate: `registry_mod` had no other use in the file, so an openDox to openXdox edge disappears too. `serve.py` takes the name from its new home, exactly as pre-carve split S-3 repointed `hosted_index` in the same import statement. That is the one file outside the authored set this move cannot avoid: `serve.py:198` imported the predicate from `serve_wire` and `test_session_snapshot.py:781-788` reads it as `serve.hosted_ref_refused`, and the alternatives are both refused — a re-export in `serve_wire` would point the wire module at a column module (a new openDox to openXdox edge, and an import cycle with `serve_projection`). Disclosed on the PR. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s.py (OQ-B B-2) `JSON_CTYPE`, `JSON_OBJECT_BODY_REQUIRED` and `HOSTED_SESSION_REFUSAL` move out of `serve_wire.py` (`:82-83` and `:1355-1356` at base) into a new neutral module beside `scripts/output_boundary.py` and `path_slug.py`, as OQ-B B-2 was ruled: the strings take `slug`'s B-1 treatment because a `str` literal carries no dependency and is neutral by construction. The three definition lines are byte-identical (sha256 94bd0772e4cbc055 for the pair, c842cee6d1f1ee03 for `HOSTED_SESSION_REFUSAL`); `HOSTED_SESSION_REFUSAL`'s three-line comment travels with it with ONE differing line — "the response discipline this module already keeps" becomes "the response discipline `serve_wire` already keeps", because "this module" is no longer the module it names. `serve_wire.py` re-imports all three — the SAME OBJECTS, not copies (`ideation_dashboard/boundary.py`'s precedent) — so `serve_wire.JSON_CTYPE` and its siblings keep resolving for `serve.py`, `serve_workbench.py`, `serve_project.py`, `serve_gate.py`, `serve_projection.py` and every suite that reads them off `serve`. Only the stays-column importer had to move: `serve_openxfactory_lanes.py` now imports the three from the neutral module, and with the predicate already re-homed it imports NOTHING from `serve_wire`. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
Both were named as owed on `#656` before the ruling, and neither is an assertion. `serve_wire.py`'s module docstring described the hosted-plane confinement group (`HOSTED_SESSION_REFUSAL`, `hosted_ref_refused`, `hosted_index`) as this module's contents with S-3's one departure noted. All three names have now left, so the paragraph becomes the module's record of where each went and why — including the reason it argued against, which the ruling settled: the last reader, `serve_openxfactory_lanes.py`, STAYS in openxFactory, so its import of a name defined in this openDox module was the edge RULING OQ-2 forbids. `tests/ideation-dashboard/conftest.py`'s `serve_surface_paths` docstring claimed each non-`serve.py` sibling "import[s] from `serve_wire` and from no other sibling". That is now false of `serve_openxfactory_lanes.py`, which imports from `serve_projection` and from `serve_wire` not at all. PROSE ONLY: the file is a § 3.7 replicate-at-every-destination file, so no code changed — its strip-docstring AST is identical to base, and the tuple's order already accommodates the new dependency (`serve_projection.py` sits ahead of it). The docstring itself records that no reader depends on the order, only the claim. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
A new file rather than an extension of `test_oqb_replumb.py` or `tests/doc-health/test_import_direction.py`: both belong to OQ-B part 1 (PR #843), which is in flight on its own branch, and two independent re-plumbs should not share one file and one review. Proven, not noted, because the re-plumb is import lines and nothing else goes red when one is undone: - `serve_openxfactory_lanes` imports NOTHING from `serve_wire`, in any of the five spellings, module level or function-local — the STRONG form, available because #848 measured the residual reach at exactly one statement and this file re-measures it. - Non-vacuity for that absence: the column still imports `serve_projection` and still resolves all four names, so a column that had stopped confining the hosted plane fails too. - `serve_wire` binds `hosted_ref_refused` NOWHERE (source scan, so a re-export is caught as well as a `def`) and no longer imports `snapshot_registry`. - The three strings are the SAME OBJECTS off `serve_wire`, off `serve` and off the neutral module, and `serve_wire` binds each exactly once — the import — so identity on interned literals is not the only evidence. - `serve.hosted_ref_refused is serve_projection.hosted_ref_refused`, and the relocated predicate still answers as it did on all six inputs. - The neutral module imports nothing from `scripts/ideation_dashboard/` or `doc_health`, mirroring `test_import_direction.py:116-133` as a sibling rather than widening it; its import list is `["__future__"]`. - Two negative controls feed restored edges — all five spellings, both packages, lazy imports included — through the SAME scanners, not copies. Each absence was also proved non-vacuous by mutation against this tree: a lazy `serve_wire` import, a restored `def hosted_ref_refused` and an `ideation_dashboard` import in the neutral module each fail exactly one test and only the intended one. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
Found auditing the commit before this one. `test_the_neutrality_scan_would_ catch_either_package` claimed to run its lost-neutrality source "through the same two functions", and ran it through ONE — `names_a_forbidden_package` — while re-implementing `imported_module_names`'s body inline, because that function took a PATH and a control has no file. So the control tested a copy of the instrument, and a hole in the instrument itself (a missed `import a.b` spelling, `ast.walk` not reaching a function-local import) would have left `test_the_neutral_wire_messages_module_imports_neither_package` green over a module that had lost the property — exactly the failure the file's sibling control for the sibling scanner (`sibling_imports`, which already took a tree) is written to prevent, and exactly what that file's own docstring calls for: "the SAME scanner the tests use — not a copy of it". `imported_module_names` now takes a TREE like `sibling_imports` does, a two-line `parse_file` helper does the reading at the two call sites, and the control feeds the restored source through the function itself. Proven non-vacuous by mutation against this tree: dropping the `ast.Import` branch from `imported_module_names` fails the control and ONLY the control (1 failed, 12 passed), where before this commit it failed nothing. No assertion changed strength and no production file is touched: 13 tests before, 13 tests after, all green. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
🟢 Approval recommended
The changes are mechanical, preserve compatibility via re-exports, and add targeted tests that lock in the intended import-edge and neutrality properties.
Pull request overview
This PR implements OQ-B B-2’s ruled “re-plumb” by relocating hosted_ref_refused to the openXdox projection module (beside hosted_index) and moving the three fixed wire-string constants into a new neutral top-level module, while preserving existing import surfaces via re-exports and adding regression tests to keep the import-edge removal from regressing.
Changes:
- Move
hosted_ref_refuseddefinition fromserve_wire.pyintoserve_projection.py, and repoint in-tree importers (serve_openxfactory_lanes.py,serve.py) accordingly. - Introduce
scripts/wire_messages.pyas a neutral home forJSON_CTYPE,JSON_OBJECT_BODY_REQUIRED, andHOSTED_SESSION_REFUSAL, withserve_wire.pyre-exporting them. - Add
tests/ideation-dashboard/test_oqb_replumb_2.pyto assert the absence of the forbidden edge/bindings and to parse-verify neutrality of the new neutral module; refresh related prose docs.
File summaries
| File | Description |
|---|---|
| tests/ideation-dashboard/test_oqb_replumb_2.py | New regression suite asserting the B-2 import-edge removal stays removed, re-exports preserve public surface identity, and wire_messages remains neutral by parsed-import scan. |
| tests/ideation-dashboard/conftest.py | Prose refresh to keep the serve-surface docstring accurate after the re-plumb. |
| scripts/wire_messages.py | New neutral module containing the three fixed wire-string constants used across columns. |
| scripts/ideation_dashboard/serve.py | Repoint re-export import of hosted_ref_refused from serve_wire to serve_projection. |
| scripts/ideation_dashboard/serve_wire.py | Remove predicate/constants, drop now-dead snapshot_registry import, re-export strings from wire_messages, and update explanatory module docstring. |
| scripts/ideation_dashboard/serve_projection.py | Add byte-identical hosted_ref_refused definition beside hosted_index and remove its prior import from serve_wire. |
| scripts/ideation_dashboard/serve_openxfactory_lanes.py | Repoint string imports to wire_messages and predicate import to serve_projection to eliminate the forbidden adapter→wire edge. |
Review details
- Files reviewed: 7/7 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.
…slug Copilot's one review comment on PR #852, and it is right: the header called this "the third neutral module" and cited `path_slug.py` beside `output_boundary.py` as the first two, but `path_slug.py` is OQ-B B-1's file and is in flight on PR #843 — it is not in this tree, so on this branch the sentence was false, and a reader who lands here before #843 does would be looking for a file that is not there. The claim was disclosed on the PR body as a forward reference true on the intended landing order. Copilot's objection is better: a module docstring should be true of the tree it ships in, whatever the merge order turns out to be. It now names `output_boundary.py` as the one neutral module in this tree and records `path_slug.py` as B-1's, in flight on #843, explicitly NOT here and not depended on either way — which stays true whether #843 lands before this or after it. Docstring only. No code, no assertion, no import changed; the module's import list is still exactly `["__future__"]`, and the guard suite is 13 passed before and after. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The changes are mechanical, internally consistent (imports/re-exports), and include targeted tests that directly guard the intended edge-removal and neutrality properties.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…pinned-core token fix, so the required pytest-suite is judged on its own result None of this branch's seven files is touched by the move (`git diff --name-only 6df2173..origin/main` names none of them), so the re-plumb is unchanged; the edge scan and the suites are re-run at this merged head. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
… of this tree The previous commit fixed Copilot's finding by saying `path_slug.py` "is NOT in this tree". True at that head — and false again the moment #843 lands and this branch takes a merge from `main`, which is now imminent. A docstring should not have a correct-only-this-week reading, so the sentence no longer asserts the file's presence or absence at all: it records `path_slug.py` as OQ-B B-1's, on sibling PR #843, and states the property that actually matters — this module neither imports it nor depends on whether it has landed. Docstring only, again. No code, no assertion, no import; the import list is still exactly `["__future__"]`. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The changes are mechanical, preserve the existing public surface via re-exports, and add targeted tests that enforce the intended import-edge and neutrality invariants.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) INDEPENDENT VERIFICATION of head Adversarial verification by a second agent that did not author this PR. BEFORE = the branch's
Item 6 — the edge scan, measured independentlyMy own scanner, written from design D3 + memo § 2.2 (not the author's): every
Removed (2), each named at the base and confirmed absent at head:
Added (3), all in permitted classes: Line-shifted only, same edge (so the raw scan diff reconciles to zero): NO new Negative controls of my own, over the throwaway copy: re-adding the module-level Base equivalence. Item 9 — tests, parity, CI
DefectsBLOCKING: none. SHOULD-FIX: none. Five NOTEs, all body/prose bookkeeping; none touches the
Shared checkout
|
…nstead of the boundary shim — four import lines (split-opendox § 3.1) (#855) B-4 as Brett Heap ruled it, option (a) (2026-09-09), on his word. Mechanical; no behaviour, signature or public-name change. - The adapter column's three reaches into openDox through `scripts/ideation_dashboard/boundary.py` — the 62-line re-export shim of the already-neutral `scripts/output_boundary.py` — are repointed at `output_boundary` directly: `human_seen.py`, `dashboard_refresh_lane.py`, `nightly_lane.py`, one import line each; likewise the function-local import in `tests/notebooklm/test_workbench_sweep_wiring.py`. Same objects (`boundary.OutputBoundary is output_boundary.OutputBoundary`); the shim stays for its openDox-side readers. - Edges: adapter→openDox −3 and the test-tree reach −1; +4 adapter→neutral; no new forbidden-direction edge. With #852 (B-2 (i′)) landed, the adapter column's only remaining openDox reaches are the ruled `import rewrites at the carve` (`lens_submission.py`). - New `tests/ideation-dashboard/test_b4_boundary_repoint.py` (five-spelling guard, identity assertions, negative control). Independent verification on the PR; Copilot: approval recommended, no threads. Refs #656 (stays OPEN). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs #656 ·
split-opendox-two-layer-product§ 3.1 · authored on6df21737, caught up tomainate86eca35(git merge, never a rebase) · heade2023382OQ-B re-plumb part 2, as RULED. Mechanical relocation inside openxFactory: no behaviour, no
signature, no public name changes, every existing importer keeps resolving.
The ruling this realizes
Brett Heap, 2026-09-09 (
#656), verbatim "rule B-2 (i′), merge 848 when green":Every clause is realized. The location pin is green untouched, and the two prose refreshes are
in their own commit.
READ THIS FIRST — one file outside the brief's authored set had to move, and why
This PR was scoped to
serve_wire.py,serve_projection.py,serve_openxfactory_lanes.py, a newneutral module, a new test file, and prose-only edits to
tests/ideation-dashboard/conftest.py.scripts/ideation_dashboard/serve.pyis a sixth file, and the ruled act is impossible withoutit. Measured, not assumed:
serve.pyimported the predicate fromserve_wire(a# noqa: E402,F401re-export block), andtest_session_snapshot.py:781-788reads it asserve_mod.hosted_ref_refused. Drop the definitionwithout a re-export and
serve.pyfails at import — the whole suite, not one test. The measurementinstruction ("every reader of
hosted_ref_refused") is what surfaced it: #848's body countedserve_projection.py×3 andserve_openxfactory_lanes.py×1, and that fifth reader is anIMPORTER, not just a caller.
The two alternatives that keep
serve.pyuntouched are both refused, on the change's own rules:serve_wire. It would point the shared wire vocabulary at a column module — aNEW
oD → oXdedge, which this PR's own edge criterion forbids — and it is an import CYCLE:serve_projectionimportsserve_wireforHOSTED_SESSION_REFUSAL/JSON_CTYPE, soserve_wireimportingserve_projectionback resolves only for one of the two import orders."An import cycle is not a seam" is
serve_wire.py's own opening argument for existing.test_serve_column_split.py:301-313also refuses a re-export explicitly, forhosted_index:"an openXdox rule defined in it — or merely RE-EXPORTED from it for a caller's convenience — is
a path with two columns, which is the shape § 3.1 cannot file."
serve_wire. That is option (ii), which the ruling rejected.The change to
serve.pyis 1 insertion / 1 deletion and adds NO edge:hosted_ref_refusedmoves from the
serve_wireimport list to theserve_projectionimport list thatalready exists at
:191-197— the identical repoint pre-carve split S-3 (#835) made in theidentical statement for
hosted_index, one name along.serve.py's line count is unchanged (1,748at base and head), and both statements survive, so no edge is added or removed there
(
serve_wire95 names → 94 at:199;serve_projection5 → 6 at:191).Flagged rather than worked around, and it is the only departure from the authored file set.
What moved
6df21737)hosted_ref_refused(def + its FR-048 arrival-path docstring)serve_wire.py:1359-1393serve_projection.py:161-1951f0257cd3597fd02…→1f0257cd3597fd02…JSON_CTYPE,JSON_OBJECT_BODY_REQUIREDserve_wire.py:82-83wire_messages.py:58-5994bd0772e4cbc055…→94bd0772e4cbc055…HOSTED_SESSION_REFUSALserve_wire.py:1355-1356wire_messages.py:64-65c842cee6d1f1ee03…→c842cee6d1f1ee03…Full digests: predicate
1f0257cd3597fd02204656a2584b751b1524ef69dc2d131605c7c78e73d4fa54; the JSONpair
94bd0772e4cbc0554c4bc11d49dc74fdfd13a46d9cddc8d28b1de065a137c9bd; the refusalc842cee6d1f1ee033f3a4b5ef9d001916738b2b4afb6db87a821d96fde675cc2.The predicate relocation has ZERO differing lines.
serve_projection.py:53already spells theregistry import
from ideation_dashboard import snapshot_registry as registry_mod— the same aliasserve_wire.py:76used — so the body'sregistry_mod.is_publishable_ref(ref)needed no adjustmentat all.
diffof the 35-line block before and after is empty, and the FR-048 quotation, the"why the hosted plane cannot simply have sessions" paragraph and THE ARRIVAL PATH paragraph all
travelled inside it.
ONE differing line in the whole PR's relocated text, and it is a comment, declared here:
HOSTED_SESSION_REFUSAL's three-line explanatory comment travels with the constant, and its middleline said "the response discipline this module already keeps for the notebook action". "This
module" was
serve_wire, and in the neutral module the phrase would be false, so it reads"the response discipline
serve_wirealready keeps for the notebook action". The threeCONSTANT DEFINITION lines are byte-identical (digests above).
Every importer of every moved name, and its disposition
hosted_ref_refused— three importers, by AST over all five spellings:serve_openxfactory_lanes.py:52from ideation_dashboard.serve_projection import hosted_ref_refused(head:69) — the ruled edgeserve_projection.py:54serve.py:198/291serve_projectionimport at:191— see the disclosure aboveThe three strings — every importer in the tree, and only the stays-column one had to move:
serve_openxfactory_lanes.py:52(all three)from wire_messages import …(head:56) — the ruled edgeserve.py:198(all three)serve_wire's re-export (head:199)serve_projection.py:54(HOSTED_SESSION_REFUSAL,JSON_CTYPE)serve_wire's re-exportserve_gate.py:46(JSON_OBJECT_BODY_REQUIRED)serve_project.py:42(both JSON names)serve_workbench.py:50(both JSON names)serve_mod.<name>oD → neutralandoXd → oDare both directions the carve permits, so repointing the remainingopenDox/openXdox call sites would be a large mechanical diff inside a change whose point is the one
edge it removes — the reasoning
boundary.py's own header already records, and the one #843 appliedto
slug.serve_wire.py:105re-imports all three, the SAME OBJECTS not copies(
ideation_dashboard/boundary.py's precedent), which is asserted by identity AND by a source scanproving
serve_wireassigns none of them.Edges — BEFORE
e86eca35(mainafter #801), AFTERe2023382My own AST scan (#843's method): every
.pyinscripts/ideation_dashboard/, whole-tree walk solazy function-local imports count, resolving all five spellings (
from .X import,from . import X,from ideation_dashboard.X import,from scripts.ideation_dashboard.X import,import ideation_dashboard.X/import scripts.ideation_dashboard.X) plus bare-name imports of theneutral modules at
scripts/. Columns are design D3's assignment as memo § 2.2 tabulates it, withthe landed splits folded in (
doxbench_scope_typesoD,lens_submissionstays,serve_projectionoXd). #843's
path_slug(neutral) andopenxdox_surface(oXd) are NOT counted: #843 is OPEN andneither file is on this base —
git cat-file -e 6df21737:scripts/path_slug.pyand…:scripts/ideation_dashboard/openxdox_surface.pyboth fail. Both trees were extracted withgit archiveand scanned by the same script, so BEFORE and AFTER differ only in the tree.Re-measured after the catch-up merge: the table below is identical at BEFORE
6df21737(theauthored base) and BEFORE
e86eca35(mainafter #801) —main's move touches none of thisbranch's seven files — and identical at head
f8b8d234,93c2aa35ande2023382.Removed (2), each named
file:lineat the base:scripts/ideation_dashboard/serve_openxfactory_lanes.py:52serve_openxfactory_lanes → serve_wire(stays → oD) — B-2's ruled edge, gonescripts/ideation_dashboard/serve_wire.py:76serve_wire → snapshot_registry(oD → oXd) — yes, the import went, and it was dead.registry_modhad exactly one use in the file,:1393inside the predicate (grep -n 'registry_mod\|snapshot_registry'over the base file returns:74,:76,:1393, of which:74is the comment). With the predicate gone the import is unreachable, so it went with it and its three-line comment — a comment that was already stale, since it said "reached by the two hosted-plane predicates below" and S-3 had taken one of the two.Added (3), all in permitted classes:
serve_wire.py:105serve_wire → wire_messages(oD → neutral)serve_openxfactory_lanes.py:56serve_openxfactory_lanes → wire_messages(stays → neutral)serve_openxfactory_lanes.py:69serve_openxfactory_lanes → serve_projection(stays → oXd)Line-shifted only, same edge, listed so the raw diff of the two scans reconciles to zero:
serve_wire.py:1342 → :1369serve_wire → doxbench_contracts;serve_openxfactory_lanes.py:51 → :62→ snapshot_registry;serve_openxfactory_lanes.py:275 → :287→ register_edit_lane.NO new
stays → oD,oD → oXdoroD → staysedge. All three of those pairs fell or held.The 7 remaining
stays → oDedges, each named, so the ruled target set is on the record:serve_openxfactory_lanes.pyis off that list for the first time. When #843 lands it drops to 5,and when B-4 lands to 2 — the two ruled
import rewrites at the carve.Reconciliation with #843's and #848's published BEFORE tables, because a verifier will compare
them. Totals agree (107) and 7 of 9 pair rows agree exactly, including the named
stays → oDlistof 8, which reproduces #848's verbatim. Two rows differ by one in opposite directions —
oD → stays5 (theirs: 6) andoXd → oD35 (theirs: 34) — i.e. one edge my column map files asoXd → oDwhere theirs filed itoD → stays.scripts/is byte-identical between #848's base245ee85aand mine (git diff --stat 245ee85a 6df21737 -- scripts/is empty), so the difference isone module's column, not a tree or scanner difference, and it touches no edge this PR moves.
Two column calls stated rather than inherited, since memo § 2.2 is not in the repository:
doxbench_packetis oD (memo § 2.2's table; design D3's prose names it in the stays column,and the memo is the later and finer instrument — #843's and #848's totals require the same call),
and
profile_openxfactoryis counted in the stays column although memo § 2.2 files itdeleted_at_carve, in no column at all. Neither module is touched by this PR, so neither choicemoves a delta above; both are symmetric between BEFORE and AFTER.
Three negative controls, so "the deltas are real" is not a vacuous claim. Run over throwaway
copies of the head tree in the scratchpad, never in the branch:
serve_openxfactory_lanes.pyandstays → oDreturns 7 → 8,stays → oXd16 → 15. So areal B-2 shows up in this table, and the AFTER numbers are the relocation, not the instrument
going quiet.
import scripts.ideation_dashboard.serve_wire as _lazyinside a function body:stays → oDreturns 7 → 8 while
stays → oXdstays 16 (total 109). A relocation that removed themodule-level import and left a lazy one behind would not have passed.
scripts/ideation_dashboard/as the source side), so that property is asserted by parsinginstead, in the test file, and proved non-vacuous by mutation. Stated rather than glossed.
The location pin: GREEN, untouched
tests/ideation-dashboard/test_session_snapshot.py:823-858(
test_the_hosted_session_arrival_path_is_recorded_and_not_built) assertsmarker = "def hosted_ref_refused(" ; assert marker in srcwheresrc = serve_surface_source().conftest.py:204listsserve_projection.pyinSERVE_SURFACE_MODULES, so the marker is stillfound. No edit to
test_session_snapshot.pyand no edit to any assertion inconftest.py(
git diff 6df21737..HEAD -- tests/ideation-dashboard/test_session_snapshot.pyis empty).:845-847's three prose reads (add-ideation-intent-plane,apply-lane,(repository, ref))are satisfied because the docstring travels with the function, byte for byte.
:855'ssrc.count("hosted_ref_refused(") >= 4— 6 occurrences over the surface at head(the definition
serve_projection.py:161, its three call sites:233,:274,:331,serve_openxfactory_lanes.py:338andserve.py:763), the same 6 as at base.:856-858's per-route bodies (_serve_snapshot,_serve_source,_handle_refresh_action) eachstill ask the predicate, and
:853'sassert "apply_lane" not in srcstill holds — every commentadded to a serve-surface file here was written to avoid that token.
python3 -m pytest -q tests/ideation-dashboard/test_session_snapshot.py→ 23 passed, and the named test alone → 1 passed, 22 deselected.
test_serve_column_split.py(S-3's own guards, includingtest_the_hosted_index_projection_belongs_to_the_projection_column) → 28 passed.Every non-relocation line change
scripts/wire_messages.py— new, 65 lines: a 54-line header inoutput_boundary.py/path_slug.py's idiom (neutral; why it sits at the top ofscripts/; why astrmay come hereand the predicate could not; how neutrality is proven, by parsing;
not_moved / replicated_at_destinationat the carve; its callers),from __future__ import annotations, thenthe three relocated constants. Stdlib-only: its whole import list is
["__future__"], asserted.Two review-round edits, on this file's docstring only: the header originally called this
"the third neutral module" beside
output_boundary.pyandpath_slug.py, disclosed here as aforward reference true on the intended landing order. Copilot flagged it as false on this
branch and was right —
path_slug.pyis OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843's and is not in this tree — so93c2aa35rewrote it.
e2023382then went one step further, because "not in this tree" would itself gofalse the moment OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843 lands and this branch takes a merge from
main: the sentence now assertsnothing about presence at all, and records
path_slug.pyas OQ-B B-1's, on sibling PR OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843,with the property that actually matters — this module neither imports it nor depends on whether
it has landed. True whatever the merge order turns out to be. No code, no assertion, no import;
the import list is still exactly
["__future__"].scripts/ideation_dashboard/serve_wire.py— the definition and the three constants deleted;the dead
snapshot_registryimport and its 3-line comment deleted; a 10-line comment plus a3-name
from wire_messages import (…) # noqa: F401 (re-export)added where the two JSONconstants were. 1,393 → 1,377 lines.
scripts/ideation_dashboard/serve_projection.py—hosted_ref_refusedremoved from theserve_wireimport list; a 19-line provenance comment in S-3's own idiom plus the byte-identicalblock added after
hosted_indexand beforeclass ProjectionRoutes. 334 → 389.scripts/ideation_dashboard/serve_openxfactory_lanes.py— the four-nameserve_wireimportreplaced by a 5-line comment +
from wire_messages import (…)and a 7-line comment +from ideation_dashboard.serve_projection import hosted_ref_refused. 441 → 453. No call sitechanged: all four names are still bare names in this module's namespace.
scripts/ideation_dashboard/serve.py— 1 insertion / 1 deletion, disclosed above.The two PROSE REFRESHES, in their own commit (
12c84bbd), digits and sentences only:serve_wire.py:29-56's module docstring described the hosted-plane confinement group(
HOSTED_SESSION_REFUSAL,hosted_ref_refused,hosted_index) as this module's contents withS-3's one departure noted, and argued against filing any of them under a column. All three have
now left, so the paragraph becomes the module's record of where each went and why — including the
reason the ruling settled, which the old text did not have: the last reader,
serve_openxfactory_lanes.py, STAYS in openxFactory, so its import of a name defined in thisopenDox module was the edge RULING OQ-2 forbids. It also records that
serve.hosted_ref_refused,serve.hosted_indexandserve.JSON_CTYPEall still resolve.tests/ideation-dashboard/conftest.py:229-232'sserve_surface_pathsdocstring claimed eachnon-
serve.pysibling "import[s] fromserve_wireand from no other sibling" — now false ofserve_openxfactory_lanes.py. PROSE ONLY, and disclosed becauseconftest.pyis a § 3.7replicate-at-every-destination file: no code changed, and it is proved rather than asserted —
with every docstring stripped, the file's AST is identical to base
(
ast.dump(ast.parse(ast.unparse(t)), include_attributes=False), sha256c5ac6b6dfad17e90…atboth ends), and
serve_surface_pathsis the only docstring in the file that differs at all.+9/−3 lines, all inside that one string constant.
SERVE_SURFACE_MODULESand the tuple's orderare untouched, and the order still holds (
serve_projection.pysits ahead ofserve_openxfactory_lanes.py). The docstring itself already records that no reader depends onthe order, only the claim; I re-grepped for a test pinning sibling-import-freedom: none
exists.
tests/ideation-dashboard/test_oqb_replumb_2.py— new, 405 lines, 13 tests.Citation sweep.
grep -rn 'serve_wire\.py:[0-9]'overscripts tests webreturns exactlytwo hits, both inside
serve_projection.pyand both HISTORICAL provenance lines (:84"out ofserve_wire.py:1387-1433", S-3's;:144"out ofserve_wire.py:1359-1393", mine, correct at thisbase) — nothing stale.
serve_projection.py:<n>,serve_openxfactory_lanes.py:<n>andconftest.py:<n>citations: zero anywhere in the tree, so no line-number citation is staled bythe +55/+12/−16 shifts.
serve_project.py:42,serve_workbench.py:50andserve_gate.py:46nameserve_wireonly in live import statements, which still resolve through the re-export.Two stale PROSE claims I may not touch, reported rather than swept in.
tests/ideation-dashboard/test_session_snapshot.py:829-840's explanatory comment says "PR 3moved
hosted_ref_refuseditself intoserve_wire.py" — now historical-but-unqualified, in afile outside this PR's set. It carries no
file:linecitation, no assertion depends on it, andthe test it heads is green. (
serve.py:69,:816andtest_session_confinement.py:1459,1501name the predicate without claiming a location — all still true, all left alone.)
scripts/ideation_dashboard/lens_submission.py:36-38sayshuman_seen.py:46still reachesworkbench.slug"the same way" and files the group under § 7 OQ-B as unruled. Staled by B-1(OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843) and by OQ-B being ruled — not by this move. OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843's body assigned the correction to "B-2's
own citation refresh", which is Refresh the eight doxbench_scope/serve_wire line citations staled by S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) #848, not this PR;
lens_submission.pyis outside this PR'sfile set (it is Split lens: add_as_cluster and its human_seen reach into lens_submission.py (pre-carve S-2, § 3.1) #836's file) and is untouched here.
Tests
python3 -m pytest -q tests/ideation-dashboard tests/doc-healthat this head:Same counts at the pre-merge head
f8b8d234(1028.02s).python3 -m pytest -q tests/review_lane_pinat the merged head, since #801's fix lands there: 175 passed, 2 skipped, 48 subtests passed.
That one failure is ENVIRONMENTAL and pre-existing, reproduced on a clean
--detachworktree atbase
6df21737with none of this branch's changes:snapshot.find_validator(REPO_ROOT)returnsNonebecause a scratchpad worktree has no siblingxFactorycheckout beside it. Nothing elsefailed.
tests/ideation-dashboard/test_oqb_replumb_2.pyalone: 13 passed. It proves what a reviewcannot:
serve_openxfactory_lanesimports NOTHING fromserve_wire, in any of the five spellings,module-level or function-local — the STRONG form, available because Refresh the eight doxbench_scope/serve_wire line citations staled by S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) #848 measured the residual
reach at exactly one statement and this file re-measures it.
serve_projection, and all four namesstill resolve by identity — so a column that had simply stopped confining the hosted plane, or
stopped answering JSON, fails too.
serve_wirebindshosted_ref_refusednowhere — a SOURCE scan, so a re-export is caught aswell as a
def, which is the distinctiontest_serve_column_split.py:301-313draws forhosted_index— and no longer importssnapshot_registry.serve_wire.<string> is wire_messages.<string>andserve.<string> is wire_messages.<string>×3; plus a source assertion that
serve_wireassigns none of the three, because identity oninterned
strliterals is not by itself evidence of a re-export.serve.hosted_ref_refused is serve_projection.hosted_ref_refused, and the relocated predicatestill answers on all six inputs the moved text promises (loopback never confined;
main,Noneand
""publishable; a session ref refused off loopback).scripts/ideation_dashboard/ordoc_health, in bothspellings of each — a SIBLING of
tests/doc-health/test_import_direction.py:116-133writtenin my own file, not a widening of it (two neutral modules lose the property independently, and one
looped assertion would report only the first). Its import list is asserted to be exactly
["__future__"].included — through the SAME scanners the tests use, not copies.
Each absence was also proved non-vacuous by MUTATION against this tree (mutated, run, reverted;
git statusclean after each): a lazyserve_wireimport in the adapter column, a restoreddef hosted_ref_refusedinserve_wire, anideation_dashboardimport in the neutral module, anda hole punched in the neutrality scanner itself each fail exactly one test, and only the
intended one.
Fifth commit,
93c2aa35— an audit finding on my own fourth commit, fixed rather than left.test_the_neutrality_scan_would_catch_either_packageclaimed to run its lost-neutrality source"through the same two functions" and ran it through one, re-implementing
imported_module_names'sbody inline because that function took a PATH and a control has no file. So the control tested a
COPY of the instrument, and a hole in the instrument itself would have left the neutrality test
green over a module that had lost the property.
imported_module_namesnow takes a TREE like itssibling
sibling_importsalready did, a two-lineparse_filehelper reads at the two call sites,and the control feeds the restored source through the function itself. Proven by mutation: dropping
the
ast.Importbranch fromimported_module_namesnow fails the control and only the control(1 failed, 12 passed), where before it failed nothing. No assertion changed strength; 13 tests
before and after; no production file touched.
python3 scripts/proposal-support.py . verify→proposal support verification ok(exit 0).doc-health parity
python3 scripts/doc-health.py --single-repo .at basee86eca35(its own detached worktree)and at this head: identical — and the same pair of numbers at the authored base
6df21737before the catch-up merge. Same summary line at both ends —
Findings: 10 critical, 8 error, 57 warning, 16 info. New regressions vs previous report: 0.(91 findings; 41
auto-fixable, 50contestedat both ends), and the finding bodies diff cleanonce the worktree directory name is masked (it appears in every
repo=field). No finding added,removed or reclassified.
Reviews and checks
The estate freeze is OVER for this PR. The required
pytest-suitewas red on every openxFactoryPR from the
opensoft/codexFactory→codeXfactory/codexFactorytransfer (~13:1xZ, 2026-09-09) — afailures=0 errors=0run tripping the skipped-count pin because the pinned-core checkout could notresolve — until #801 landed as
e86eca35with the pinned-core token fix. This branch has takenthat merge (
966839fb), sopytest-suiteis judged here on its own result, not as the freezeclass. Locally at the merged head the whole
tests/review_lane_pinsuite is 175 passed, 2skipped, and
tests/ideation-dashboard tests/doc-healthis the run above. If CI'spytest-suiteis red on this head it is this PR's to read and fix, and I will read the failing tests rather than
attribute it. The skip pin and every workflow remain untouched here — see NOT DONE.
merge-master-approvalmay still be red advisorily; it is not a required check and it is not thisPR's. (
sourcery-aiis the private-repo upsell stub, as on every PR in this repository.)copilot-pull-request-reviewer: 🟢 Approval recommended, 7/7 files reviewed, one inlinecomment — the
path_slug.pyforward reference inwire_messages.py's header, which this PR's ownbody had disclosed. FACTUAL, accepted, fixed in
93c2aa35and hardened ine2023382, replied andresolved. No other comment. At the merged head the edge table above re-measures unchanged
(107 → 108, the same three added and two removed edges), the guard suite is 13 passed, and the diff
is still the same 7 files.
NOT DONE
boundary-shim reaches (human_seen.py:45,dashboard_refresh_lane.py:121,nightly_lane.py:88→boundary, the re-export of thealready-neutral
output_boundary, plustests/notebooklm/test_workbench_sweep_wiring.py:97) isRULED (a) — repointed pre-carve at
output_boundarydirectly — by Brett Heap on#656,2026-09-09, and is its OWN PR, sequenced after OQ-B re-plumb 1: slug into a neutral module beside output_boundary; intent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) #843 lands (it edits the lines beside
human_seen.py:45). Untouched here. They are 3 of the 7stays → oDedges that remain.docs/opendox-carve-manifest.yamlis neither created nor edited.openspec/,contracts/or.github/— the diff touches 7 files, all underscripts/andtests/. No workflow, no skip pin, no ruleset.human_seen.py,intent_apply_lane.py,workbench.py,openxdox_surface.py,path_slug.py,tests/doc-health/test_import_direction.py,tests/ideation-dashboard/test_oqb_replumb.py. Neitherpath_slug.pynoropenxdox_surface.pyexists on this base, so the new neutral module is
wire_messages.py, a sibling rather than anappend, and the new test file is a sibling of
test_oqb_replumb.pyrather than an extension.Refresh the eight doxbench_scope/serve_wire line citations staled by S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) #848's files untouched as well; if Refresh the eight doxbench_scope/serve_wire line citations staled by S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) #848 lands first the catch-up is
git merge origin/main(it changes two digits in
serve_wire.pyprose I did not touch).lens_submission's two edges andtests/notebooklm/are RULEDimport rewrites at the carve.Untouched.
mainmoved when GATED (runbook Phase 1 COMPLETE, step 1.6 INCLUDED) — slice B1: the decision-core pin, the workflows, the operator tools (42/15) #801landed, and the catch-up is the merge commit
966839fb— no workflow dispatch, no ruleset touched,nothing posted on
#656. The shared checkout was read-only apart fromfetchandworktreeoperations — HEAD
6612d323and 0 staged files at start and at end.Commit trailers. All eight commits, the catch-up merge included, carry exactly
Lane: openxfactory-4-opendox-extraction+Co-Authored-By: Claude Fable 5.1 <[email protected]>(git log --format='%(trailers)' origin/main..HEAD); the four inheritedfrom the first author of this branch already did, and no history was rewritten.
Asking for Brett Heap's separate word to land this.
🤖 Generated with Claude Code