Repository navigation
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
Conversation
`human_seen.py:46` did `from .workbench import slug` — openxFactory's own retained engineering adapter (design D3) importing an openDox module, which RULING OQ-2 forbids after the carve (openDox is pinned ONLY by openXdox) and § 5.1 (RULING F) forbids one level up. Brett Heap ruled on #656 (2026-09-09, "rule all OQs as recommended") that OQ-B's edges are re-plumbed BEFORE the carve, none filed as an edit class; B-1 is this one. `slug` is neutral text machinery, so it moves out of both packages to the one place both already resolve from — beside `scripts/output_boundary.py`, whose header idiom, neutrality property and parsing test this file copies. At the carve it is `not_moved` with reason `replicated_at_destination` (RULED OQ-A/OQ-C): openDox gets a replica rather than a shared module across a repository boundary with no pin. The relocated text is BYTE-IDENTICAL (`workbench.py:203-268` at base `56e69a11`, 66 lines / 3,584 bytes, sha256 ac32a12259437600b56bfedc4d212491b1034def8cd2338789ece052d560662b before and after): the bound's comment, `MAX_SLUG_CHARS`, `_SLUG_KEY_SEPARATOR`, `_SLUG_KEY_DIGEST_CHARS`, `_slug_key_digest` and `slug` itself. The three constants and the digest travel with the function because `slug` reads all four; leaving them behind would have made the "move" a rewrite. `workbench.py` RE-EXPORTS all five — the same objects, not copies — so `workbench.slug`, `workbench.MAX_SLUG_CHARS` and `workbench._SLUG_KEY_SEPARATOR` keep resolving for every existing reader: `authoring.py:60` and `gate_console.py:689,700` (openDox and openXdox, which may keep importing it from there), `gate_routes.py:925,967` via `wb.slug`, `test_gate_failure_diagnostics.py`, and `web/views/lens-model.js`'s comment, which names `workbench.MAX_SLUG_CHARS` as the twin `test_lens.py::test_js_and_python_persistence_constants_agree` locks it against. No behaviour, signature or public-name change. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
`intent_apply_lane.py:472` rehydrated the live branch sessions with `branch_session.bootstrap_sessions` — the openxFactory adapter column reaching into a 5,290-line openDox module (design D3), the second edge RULING OQ-2 cannot tolerate. Ruled by Brett Heap on #656 (2026-09-09): the honest shape is that openxFactory's lane reaches sessions THROUGH openXdox, which already imports `branch_session` in its own right (`cli_gate.py:46`, `gate_routes.py:70`, `doxbench_scope.py:801`). `openxdox_surface.py` is that reach given a name: an openXdox-column module, one re-export line plus its reason, no wrapper and no policy. `surface.bootstrap_sessions is branch_session.bootstrap_sessions`, so the signature, the behaviour and the object are the module's own. The remaining edge is `oXd -> oD`, which the carve permits, instead of `stays -> oD`, which it does not. At the carve this file travels to openXdox-code with the rest of its column and the lane's import becomes a package-path rewrite — the `import rewrites` edit class, one line. No existing module imports the new one at import time (the lane's import is function-local, as it was before), so `branch_session` is loaded exactly when it was loaded before. No behaviour, signature or public-name change. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
Two one-line import edits are undone by two one-line edits, and because the behaviour is identical by construction nothing else in the suite would go red. The edge is the property, so something has to measure it. `tests/ideation-dashboard/test_oqb_replumb.py` (new): `human_seen` and `intent_apply_lane` import NOTHING from `branch_session`, `session_git` or `workbench` in any of the five spellings the package uses (`from .X import`, `from . import X`, `from ideation_dashboard.X import`, `from scripts.ideation_dashboard.X import`, `import ideation_dashboard.X`), module-level and function-local alike; the lane still DOES import `openxdox_surface`, so a lane that had simply stopped rehydrating sessions fails too; `surface.bootstrap_sessions is branch_session.bootstrap_sessions`; `workbench.slug is human_seen.slug is path_slug.slug` with the two bound constants and the digest; the four behaviours the moved text promises; and the surface defines nothing of its own, which is the "named re-export, not a facade" claim its header makes. The negative control feeds a restored edge back through the SAME scanner rather than a copy of it. `tests/doc-health/test_import_direction.py`: a sibling of `test_the_neutral_guard_imports_neither_package` for the second neutral module. Separate rather than widened — the guard's neutrality is D2's claim about the write path, `path_slug`'s is OQ-B's about a filename component; they can be lost independently, and one looped assertion would report only the first. The existing three tests are untouched. The scanner is local rather than `tests/import_scan.py`'s because that module deliberately SKIPS relative imports: it polices a direction between top-level packages, where a relative import cannot reach, while `from .workbench import slug` is exactly the edge B-1 removed. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
Catch-up onto the three landed pre-carve splits (#835 -> 9fa79cf, #836 -> 8914858, #837 -> 352f2d9) so the edge table is measured against the true main. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
Both headers said "the two bound constants" where five names travel: `slug`, `MAX_SLUG_CHARS`, `_SLUG_KEY_SEPARATOR`, `_SLUG_KEY_DIGEST_CHARS` and `_slug_key_digest`. Comment text only; no code change. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
`doxbench_scope.py`'s lazy `branch_session` import was `:801` at this branch's base `56e69a11` and is `:729` on `main` after #837 (`352f2d9b`) moved the five scope types out. The surface header cites it as evidence that openXdox already imports `branch_session` in its own right; the citation now names the line the merged tree has. Comment text only. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
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 re-plumbing is mechanically scoped, preserves object identity via re-exports, and is backed by targeted tests; remaining feedback is a minor test brittleness improvement.
Pull request overview
This PR implements the first part of the OQ‑B “pre-carve re-plumb” inside openxFactory, removing two specific openxFactory→openDox import edges ahead of the openDox/openXdox carve while keeping runtime behavior and public names stable via re-exports and a minimal openXdox-facing surface module.
Changes:
- Introduces a new neutral module
scripts/path_slug.pyand repoints the stays-column adapter (human_seen.py) to importslugfrom that neutral home whileworkbench.pyre-exports the same objects for existing openDox/openXdox callers. - Adds
scripts/ideation_dashboard/openxdox_surface.pyas a named re-export ofbranch_session.bootstrap_sessionsand updatesintent_apply_lane._live_session_registryto reach sessions through that openXdox surface. - Adds targeted tests to assert the removed edges stay removed and to enforce neutrality of the new
path_slugmodule.
File summaries
| File | Description |
|---|---|
| tests/ideation-dashboard/test_oqb_replumb.py | New AST-based test asserting the two forbidden edges stay removed and that re-exports preserve object identity. |
| tests/doc-health/test_import_direction.py | Extends neutrality assertions to cover the new neutral module scripts/path_slug.py. |
| scripts/path_slug.py | New neutral module containing the relocated “slug family” used by both sides without crossing package seams. |
| scripts/ideation_dashboard/workbench.py | Re-exports slug-family names from path_slug to preserve workbench.* resolution for existing callers. |
| scripts/ideation_dashboard/openxdox_surface.py | New openXdox surface module providing a named re-export of bootstrap_sessions. |
| scripts/ideation_dashboard/intent_apply_lane.py | Replaces direct import of branch_session with an import of bootstrap_sessions via openxdox_surface. |
| scripts/ideation_dashboard/human_seen.py | Repoints slug import to the new neutral module path_slug. |
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.
The negative control's non-vacuity guard required each scanned file to import at least one SIBLING module. Copilot is right that this couples the guard to an import this arc is already scheduled to remove: `human_seen.py`'s only remaining sibling reach is `.boundary`, the 62-line re-export of the already neutral `scripts/output_boundary.py` that memo § 2.3 files as *already solved*. Repoint it — an `import rewrites` edit somebody will make — and the file legitimately imports no sibling at all, while both live assertions go on proving exactly what they were written to prove. A guard that fails on the very edit the packet exists to make is a guard that gets deleted. It now requires each file to parse to at least one import statement of any kind, which keeps the property the guard exists for (a scan over a missing, empty or unparseable file cannot pass as a proof of absence) and drops the coupling. The two forbidden-edge assertions are untouched. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv
There was a problem hiding this comment.
🔵 Needs a closer look
One new test uses is for int/string comparisons, which can yield false positives due to interning/caching and weakens the regression guarantee.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
tests/ideation-dashboard/test_oqb_replumb.py:128
- These assertions use
isfor ints/strings. Because small integers and some strings may be cached/interned,iscan still pass even ifworkbenchredefines the constants instead of re-exporting them, making the test less reliable (and potentially implementation-dependent). Use value equality for the constants, while keepingisfor the function objects where identity matters.
- 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 Not the author. Own worktrees off
1. Scope — PASS
2. B-1 byte identity — PASSExtracted by SYMBOL boundaries, not by the body's line numbers: parsed each file, found the
The superset decision is right, and minimal. The block defines exactly five names, and 3. B-1 surface — PASS (two NOTEs)Fresh interpreter,
Importer sweep (AST over every
4. B-3 — PASS
Module choice — sound. All three cited modules do import 5. Edge scan — PASS (my own scanner, own column map)Column map built from D3's three-column assignment + memo § 2.2's per-module table + the three landed splits ( Every load-bearing row reproduces the body exactly:
Removed (exactly the two named): One line-citation slip in that list: the body writes The six remaining
6.
|
The module's "WHAT STAYED BEHIND" paragraph made two claims that are no longer true. It said the scout memo "files all of them under § 7 OQ-B, unruled" — OQ-B was RULED by Brett Heap on 2026-09-09 (`#656`, "rule all OQs as recommended") — and it justified leaving this module's two `stays -> openDox` reaches alone on the grounds that `human_seen.py:46` "already reaches `workbench.slug` the same way", which stops being the reason the moment B-1 lands: `human_seen` reads `slug` from the neutral `scripts/path_slug.py` (PR #843), so the sibling reach this paragraph leaned on is being re-plumbed while these two are not. The reworded paragraph states the ruling's actual disposition for THIS module: `add_as_cluster` is adapter->core by construction, so the carve reaches it THROUGH openXdox as an `import rewrites` edit and it is kept in-tree until then — the verifier's recommendation on #836, which the ruling adopted. It then names where the two re-plumbed siblings went (B-1 = `slug` to `path_slug.py`, PR #843; B-2 = the four `serve_wire` names) so the next reader is not sent back to a memo's open-question list for an answer that exists. DOCSTRING ONLY. No import, no name, no signature, no behaviour. The paragraph grows by six lines, which moves this module's two `stays -> openDox` import statements from `:51-52` to `:57-58`; nothing in the tree cites those line numbers (grepped: zero `lens_submission.py:<n>` citations), so the growth stales no citation. The RULING comment on #656 cites `:51-52` and, as a record of what was measured when it was written, is left as it stands. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ported, not redefined, by source Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) Fix round taken from the independent verifier's SHOULD-FIX and Copilot round 2's suppressed comment on Test fix — Body corrections (
No thread exists for Copilot round 2's finding (it landed as a suppressed "previously missed" comment, not a review thread) — this comment and the body's new section are the record. |
There was a problem hiding this comment.
🟢 Approval recommended
The re-plumbing is narrowly scoped, preserves compatibility via re-exports, and adds targeted tests that enforce the key “no forbidden edges” properties.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…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 and well-guarded by new/extended AST-based tests that directly assert the intended import-edge removals and re-export identity invariants.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…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) The owed line-citation refresh after the § 3.1 pre-carve splits, sequenced before the carve manifest because every manifest row carries a sha256 — on Brett Heap's word "merge 848 when green" (2026-09-09). Prose only; every changed file's AST (docstrings stripped) is identical to main. - Eight citation numbers across four files (`scripts/ideation_dashboard/serve_wire.py`, `tests/ideation-dashboard/test_doxbench_abstract_route.py`, `test_doxbench_scope.py`, `test_doxbench_turns.py`) refreshed to the symbols' locations after S-1 (#837, −71 lines in `doxbench_scope.py`) and S-3 (#835); one historical S-3 citation and three archived-change hits correctly left; the `staging-workbench-model.js` citation family is out of scope. - `lens_submission.py:36-38`'s docstring trued up after OQ-B B-1 (#843: `human_seen` reads `slug` from the neutral `scripts/path_slug.py`). - B-2's relocation was measured and HELD for a ruling, not performed: `hosted_ref_refused` reaches `snapshot_registry` (openXdox) and cannot be neutral; the recommended home (i′) is `serve_projection.py` beside `hosted_index`, which keeps the serve-surface location pin green with no test edits (verified). The three string constants take the neutral module when B-2 is ruled. - Independent verification PASS WITH NOTES (8/8 citations exact by three instruments); body corrections taken. Landed after the estate freeze lifted (required `pytest-suite` red on every openxFactory PR since the codexFactory org transfer until #801 repointed the pinned-core token); the advisory `merge-master-approval` red of the same cause is disclosed, not a finding against this change. Refs #656 (stays OPEN). 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]>
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs #656 — OQ-B pre-carve re-plumb, part 1 of 2 (B-1 and B-3). Mechanical, inside openxFactory. No behaviour, signature or public-name change.
The ruling this realizes
Brett Heap, 2026-09-09, verbatim "rule all OQs as recommended":
Why the edges cannot survive: RULING OQ-2 pins openDox only by openXdox, and § 5.1 (RULING F) pins openxFactory to the openXdox assembly root and nothing else. So openxFactory's retained engineering adapter column (design D3) may not import openDox at all — not narrowly, not lazily.
B-2 is NOT in this PR (see NOT DONE).
B-1 —
sluginto a neutral module besideoutput_boundaryNew file
scripts/path_slug.py(118 lines): 52 lines of header and imports inoutput_boundary.py's idiom — neutral, imported by every column,not_moved / replicated_at_destinationat the carve (RULED OQ-A/OQ-C), created by OQ-B B-1 — followed by the relocated text at:53-118.The relocation is byte-identical.
workbench.py:203-268at base56e69a11— 66 lines, 3,584 bytes —sha256 ac32a12259437600b56bfedc4d212491b1034def8cd2338789ece052d560662bbefore and after (path_slug.py:53-118), zero differing lines.The ruling names
slug(:245-270, 26 lines). The moved block is a superset becauseslugREADS four module-level names —MAX_SLUG_CHARS(:219),_SLUG_KEY_SEPARATOR/_SLUG_KEY_DIGEST_CHARS(:224-225),_slug_key_digest(:228-242) — and the bound's 16-line comment is that constant's reason. Moving the function alone would have made the "move" a rewrite; the unit that relocates verbatim is the slug family, and:203-268is exactly it.workbench.slugkeeps resolving.workbench.pyre-exports all five names frompath_slug— the SAME objects, not copies (boundary.py's precedent). Every importer ofslugfound in the tree, and what happened to each:human_seen.py:46from .workbench import slugfrom path_slug import slug— the ruled edgeauthoring.py:60from .workbench import slugworkbench.sluggate_console.py:689,700from .workbench import slug(lazy)workbench.sluggate_routes.py:887from . import workbench as wb, used at:925,967workbench.slugtests/ideation-dashboard/test_gate_failure_diagnostics.pywb.slug,wb.MAX_SLUG_CHARS,wb._SLUG_KEY_SEPARATORworkbenchtests/ideation-dashboard/test_lens.py:624wb.slug(...)workbench.slug(test / oD-side string)tests/ideation-dashboard/test_gate_failure_diagnostics.py:209from ideation_dashboard.workbench import slug(subprocess SOURCE STRING, run in a fresh interpreter)workbench.slug(test / oD-side string)web/views/lens-model.js:959-960(comment namingworkbench.MAX_SLUG_CHARSas its twin)Only the stays-column importer had to move. The oD and oXd importers are left on
workbench.slugdeliberately:oD -> neutralandoXd -> oDare both edges the carve permits, and repointing the remaining openDox/openXdox call sites would be a large mechanical diff inside a change whose point is the two edges it removes — the same reasoningboundary.py's header already records for the ten package modules and thirty test modules that name IT.authoring.pytravels to openDox withworkbench.py, so its import never crosses a boundary at all.B-3 — the apply lane reaches sessions through an openXdox surface
Decision: a NEW module,
scripts/ideation_dashboard/openxdox_surface.py(44 lines), not an existing one. Three openXdox modules already importbranch_session—cli_gate.py:46,gate_routes.py:70,doxbench_scope.py:729— and none is a natural home.gate_routes.pyis off-limits in this PR (#836's file) and is a 3,552-line route table;doxbench_scope.pyis the ownership authority and reachesbranch_sessionlazily to keep its own import graph flat;cli_gate.pyis the gate CLI, and making openxFactory's apply lane import the gate CLI to get a session bootstrap would be a worse edge than the one being removed.design.mdnames no in-tree "assembly root" or "surface" concept to reuse — assembly root there is a REPOSITORY-level term (D12/§ 5.1: openXdox's own repo is the assembly root openxFactory pins), so borrowing the word for a module would collide with a ruled one. Hence a plainly-named new file.It is a named re-export and nothing else: no wrapper, no adaptation, no policy.
openxdox_surface.bootstrap_sessions is branch_session.bootstrap_sessions(asserted).intent_apply_lane._live_session_registryimports it function-locally, exactly as it importedbranch_sessionbefore, sobranch_sessionis still loaded at the same moment it always was.At the carve the file travels to openXdox-code with its column and the lane's import becomes a package-path rewrite — one line, the
import rewritesclass.Edges, measured BEFORE and AFTER with my own AST scan
Method (memo § 2.3, re-implemented for this PR — scanner kept at
$SP/oqb1_edge_scan.py): every.pyinscripts/ideation_dashboard/, whole-tree walk so lazy 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) plus bare-name imports of the neutral modules atscripts/. Columns are design D3's assignment as memo § 2.2 tabulates it, withdoxbench_scope_types(oD) andlens_submission(stays) from the three splits that landed while this was authored.BEFORE =
origin/main46059b77(this branch was merged onto it, never rebased); AFTER = this head.Removed (2), each named
file:lineat the base:scripts/ideation_dashboard/human_seen.py:46human_seen → workbench(stays → oD) — B-1scripts/ideation_dashboard/intent_apply_lane.py:472intent_apply_lane → branch_session(stays → oD) — B-3Added (4), all in the permitted classes:
human_seen.py:50human_seen → path_slug(stays → neutral)workbench.py:62workbench → path_slug(oD → neutral)intent_apply_lane.py:477intent_apply_lane → openxdox_surface(stays → oXd)openxdox_surface.py:42openxdox_surface → branch_session(oXd → oD)NO new
stays → oD,oD → oXdoroD → staysedge.The six
stays → oDedges that remain, and why none is mine to fix here:human_seen.py:45,dashboard_refresh_lane.py:121,nightly_lane.py:88→boundary— the 62-line re-export of the already-neutralscripts/output_boundary.py. Memo § 2.3 files these as already solved: repointing atoutput_boundaryis animport rewritesedit and the edge disappears. Outside OQ-B's ruled set and outside this PR's file set (two of the three files are not mine to touch).serve_openxfactory_lanes.py:52→serve_wire— B-2, which waits for its own PR.lens_submission.py:51,52→lens,workbench— pre-existing onmainat my base, introduced by Split lens: add_as_cluster and its human_seen reach into lens_submission.py (pre-carve S-2, § 3.1) #836 (89148583) as the deliberate trade its verifier recommended: removing openDox's reach INTO openxFactory put the adapter verb where it belongs, and the verb still calls openDox core. This is OQ-B's fourth item, ruledimport rewritesat the carve, and explicitly not mine — untouched.tests/notebooklm/— DEFERRED, with the measurementMemo § 3.6 names three files as OQ-B in the test tree. Measured by AST (distinct attribute names reached on each namespace import, and total reaches):
test_sync_notebooklm_books.py:47branch_sessionCONTAINER_SUFFIX,NOTEBOOK_PREFIX,Tile,attach_session_notebook,bootstrap_sessions,flatten_branch,notebook_alias,open_session,retire_session_notebook,sessions_root,worktree_path)test_sync_notebooklm_books.py:49workbenchNOTEBOOK_PREFIX,NotebookAdapter,SESSION_NOTEBOOK_PREFIX,WorkbenchError,managed_source_title)test_sync_notebooklm_books.py:48session_gitSessionGit)test_workbench_sweep_wiring.py:52workbenchNOTEBOOK_PREFIX,NotebookAdapter,WORKBENCH_DIR,Workbench,save)test_hermeticity_guard.py:90,91session_pr,workbenchSubprocessCommandRunner,_default_runner)Not a handful of names: 22 distinct names over four openDox modules (
branch_session11,workbench9,session_git1,session_pr1), 65 attribute reaches, every one of them throughimport moduleused as a NAMESPACE (bs.X,wb.X). Per the brief's own rule I did not contort the tests. Three further reasons it is the right call:test_hermeticity_guard.pyreachesworkbench._default_runner, a private name a public surface must not re-publish; both large files gate themselves onimportlib.util.find_spec("ideation_dashboard.branch_session")string literals, which a re-export does not satisfy and which are not import statements at all; and repointing two of the three files would leave the tree half-plumbed while removing no edge from the third.Recommendation for the orchestrator to rule:
tests/notebooklm/isimport rewrites at the carve, likelens_submission. Itssnapshot_registryimport (test_sync_notebooklm_books.py:1273) is alreadystays → oXdand was left alone as the brief directs. The tree's 8 edges are unchanged by this PR (7stays → oD, 1stays → oXd).Every non-relocation line change
scripts/path_slug.py— new: 46-line header docstring +from __future__ import annotations+import re, then the byte-identical block.scripts/ideation_dashboard/workbench.py— the block deleted at:203-270(66 lines + its two blank separators); an 8-line comment and a 5-namefrom path_slug import (...)re-export added besidefrom .boundary import OutputBoundary(isort order: absolute before relative).reis still used at five other sites (:135,136,150,386,627post-edit), so no import became dead.scripts/ideation_dashboard/human_seen.py—from .workbench import slug→ 4 comment lines +from path_slug import slug.scripts/ideation_dashboard/openxdox_surface.py— new: header, one re-export import,__all__. Its header cites the three openXdox modules that already importbranch_session; thedoxbench_scope.pycitation was refreshed:801→:729in its own commit after the merge-from-main, because Split doxbench_scope: the scope TYPES into doxbench_scope_types.py (pre-carve S-1, § 3.1) #837 moved the five scope types out from above it.scripts/ideation_dashboard/intent_apply_lane.py— inside_live_session_registry: 5 comment lines added,from ideation_dashboard import branch_session as branch_session_mod→from ideation_dashboard.openxdox_surface import bootstrap_sessions, and the callbranch_session_mod.bootstrap_sessions(...)→bootstrap_sessions(...). Same object, same arguments, same report handling.branch_session_modhad no other use in the file.tests/doc-health/test_import_direction.py—NEUTRAL_SLUGconstant + one new test. The brief namedtests/ideation-dashboard/test_import_direction.py; the file does not exist there. The repository's onlytest_import_direction.py— the one whose:116-133provesoutput_boundary's neutrality, exactly as the brief describes — is undertests/doc-health/, andoutput_boundary.py's own header points at that path. Extended there. Its three existing tests are untouched.tests/ideation-dashboard/test_oqb_replumb.py— new.Nothing in
openspec/**,contracts/**,.github/**.docs/opendox-carve-manifest.yamldoes not exist and was not created. None of #835/#836/#837's files (doxbench_scope*.py,lens.py,lens_submission.py,gate_routes.py,serve_wire.py,serve_projection.py,serve.py) is touched.Tests
tests/ideation-dashboard/test_oqb_replumb.py(new, 7 tests) proves what a review cannot: both re-plumbings are one line each and are undone by one line each, with no behaviour change to make anything else go red.human_seenandintent_apply_laneimport NOTHING frombranch_session,session_gitorworkbenchin any of the five spellings, module-level and function-local alike.openxdox_surface, so a lane that had simply stopped rehydrating sessions fails too.openxdox_surface.bootstrap_sessions is branch_session.bootstrap_sessions.workbench.slug is human_seen.slug is path_slug.slug, plusMAX_SLUG_CHARS,_SLUG_KEY_SEPARATOR,_SLUG_KEY_DIGEST_CHARSand_slug_key_digest, all by identity.untitled, long truncated AND keyed, never over the bound).__all__ == ["bootstrap_sessions"]— the "named re-export, not a facade" claim its header makes.The scanner is local rather than
tests/import_scan.py's because that module deliberately SKIPS relative imports — it polices a direction between top-level packages, where a relative import cannot reach, whilefrom .workbench import slugis precisely the edge B-1 removed.tests/doc-health/test_import_direction.pygainstest_the_neutral_path_slug_imports_neither_package, a sibling of the guard's own neutrality test rather than a widening of it: the guard's neutrality is D2's claim about the write path,path_slug's is OQ-B's about a filename component; they can be lost independently and one looped assertion would report only the first.python3 -m pytest -q tests/ideation-dashboard tests/notebooklm tests/doc-healthat this head:1 failed, 6998 passed, 31 skipped, 40 subtests passedin 18:52.The one failure is the environmental one:
tests/ideation-dashboard/test_snapshot.py::test_find_validator_locates_pinned_checkoutasserts that a siblingopenxFactory/checkout is reachable by walking up from the repo root, which is false in any worktree that does not sit inside an aggregation checkout. Reproduced on a cleanorigin/main46059b77worktree (1 failed in 2.97s) — not this change. Nothing else fails, and no test was skipped that was not skipped onmain.The three files I touched or added tests for, run alone:
tests/ideation-dashboard/test_oqb_replumb.py+tests/doc-health/test_import_direction.py+tests/ideation-dashboard/test_gate_failure_diagnostics.py— 20 passed.The whole suite is well over the 15-minute bar (these three trees alone take 19 minutes), so the rest rides CI.
python3 scripts/proposal-support.py . verify→proposal support verification ok(exit 0).doc-health parity: IDENTICAL.
python3 scripts/doc-health.py --single-repo .at base46059b77and at this head both report 92 findings — 10 critical / 9 error / 57 warning / 16 info — and the two reports are byte-identical once the worktree directory name (which appears in everyrepo=field) is masked. Family-by-family counts diff clean too. No finding added, removed, or reclassified.Verifier round 1
Brett Heap's independent verification of
03bc0fb7(PASS WITH NOTES) drove this round: the test strengthened above (Copilot round 2's suppressed comment on:126-128—ison the three interned constants is not evidence of a re-export; fixed with a source-level AST assertion thatworkbench.pybinds none of the five slug-family names itself, proved non-vacuous against a scratch redefinition), plus theopenxdox_surface.py:43→42citation fix and the two importer rows above. Three further notes are not this PR's to fix and are recorded here for later PRs rather than left to drift:lens_submission.py:36-38's docstring is now FALSE — it sayshuman_seen.py:46still reachesworkbench.slugthe same way and files the edge under OQ-B as unruled; B-1 removed that reach and OQ-B is ruled. The file is Split lens: add_as_cluster and its human_seen reach into lens_submission.py (pre-carve S-2, § 3.1) #836's, off-limits here; the correction goes with B-2's own citation refresh, whose PR is already in flight.human_seen.py:45 → boundary, and the two otherboundary-shim reaches (dashboard_refresh_lane.py:121,nightly_lane.py:88), arestays → oDedges outside OQ-B's ruled set. They are disclosed above (§ "The sixstays → oDedges that remain") and await Brett's ruling rather than a contortion here.openxdox_surface.pyis created here and will LEAVE at the carve, so it needs a moved row to openXdox-code;path_slug.pyneeds itsnot_moved / replicated_at_destinationrow. Memo § 2.2's module table and totals are stale by two modules until that housekeeping lands.NOT DONE
serve_openxfactory_lanes.py:52, fourserve_wirenames) — a later PR appending to this same neutral module. Re-home serve_wire.hosted_index into serve_projection.py (pre-carve S-3, § 3.1) #835 has landed, so it is unblocked, but it is deliberately not folded in here: it is the second half of the ruled item and the brief scopes this PR to B-1 + B-3.tests/notebooklm/— deferred with the measurement above; wants a ruling, not a contortion.docs/opendox-carve-manifest.yaml, noopenspec/**,contracts/**or.github/**edit, no owed prose line-citation refresh (that rides B-2 — the single citation refreshed here is inside my own new file,openxdox_surface.py), no behaviour change.→ boundaryedges and the twolens_submissionedges are left exactly asmainhas them.Asking for Brett Heap's separate word to land this.
🤖 Generated with Claude Code
https://claude.ai/code/session_0139swz8Tq3FjNveDRR2SNPv