Repository navigation
B-4 as ruled (a): the adapter column reads output_boundary directly instead of the boundary shim — four import lines (split-opendox § 3.1) - #855
Conversation
…ches at output_boundary directly Brett Heap ruled on #656 (2026-09-09, "rule B-4 a"): the three openxFactory-adapter scripts (human_seen.py, dashboard_refresh_lane.py, nightly_lane.py) and the one test-tree caller (tests/notebooklm/test_workbench_sweep_wiring.py) that reached OutputBoundary through the ideation_dashboard.boundary re-export shim now import it from its neutral home, scripts/output_boundary.py, directly. One import line each; no behaviour, signature or public-name change — the shim re-exports the same objects, so this is a pure import-path repoint. boundary.py itself is untouched and stays for its openDox-column readers. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s, and the scanner would catch a regression
New tests/ideation-dashboard/test_b4_boundary_repoint.py, parsed (not
grepped) over all five spellings the tree can reach
ideation_dashboard.boundary by (both relative forms, both absolute
forms including the scripts.-prefixed one, and a bare import
statement), walking module-level and function-local imports alike:
* the four ruled files (human_seen.py, dashboard_refresh_lane.py,
nightly_lane.py, tests/notebooklm/test_workbench_sweep_wiring.py)
reach the shim in none of the five spellings;
* each of the three module-level repointed names `is` the neutral
module's own OutputBoundary object, and the shim's own re-exports
are proven to be the same objects (never copies), which is why the
repoint could be mechanical;
* a negative control feeds a restored `from .boundary import X` (and
every other spelling) through the identical scanner function to
prove it would still catch the edge if reintroduced;
* the shim itself is proven still present and still read by other
package modules, so a later change cannot quietly retire it here.
Does not touch test_import_direction.py, test_oqb_replumb.py or
test_oqb_replumb_2.py, which police different edges.
Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ipts/output_boundary.py, or the affected test trees) into change/opendox-b4-boundary-shim-repoint 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 mechanically scoped to import-path repoints, and the added tests directly enforce the ruling’s import-edge constraints without altering runtime behavior.
Pull request overview
This PR implements ruling B-4 (a) for the split-openDox work: it removes the adapter-column’s dependency on the ideation_dashboard.boundary (openDox-column) re-export shim by importing OutputBoundary directly from the neutral output_boundary module, and adds a guard test to prevent regressions.
Changes:
- Repointed four
OutputBoundaryimport sites fromideation_dashboard.boundary/.boundarytooutput_boundary(no behavior change intended). - Added a new AST-based test suite to assert the ruled files no longer import the shim in any supported spelling and that the shim remains a pure re-export.
File summaries
| File | Description |
|---|---|
| scripts/ideation_dashboard/human_seen.py | Switches OutputBoundary import to the neutral output_boundary module to remove a stays→openDox edge. |
| scripts/ideation_dashboard/dashboard_refresh_lane.py | Switches OutputBoundary import to output_boundary (still after sys.path bootstrap). |
| scripts/ideation_dashboard/nightly_lane.py | Switches OutputBoundary import to output_boundary and keeps import ordering consistent. |
| tests/notebooklm/test_workbench_sweep_wiring.py | Updates function-local import to output_boundary to remove the test-tree shim reach. |
| tests/ideation-dashboard/test_b4_boundary_repoint.py | Adds regression tests verifying the repoint, identity equality, and continued shim readership elsewhere. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) INDEPENDENT VERIFICATION of head Independent adversarial verification of PR #855 (B-4 as ruled, option (a): repoint the four
Defects found:
No BLOCKING defects. Edge numbers: SHIM 48→45, NEUTRAL 4→9 (independently reproduced, matches PR body exactly). CI: all 10 required/advisory checks green, 🤖 Generated with Claude Code |
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) Body corrections from the independent verification (comment above): the unfilled CI placeholder replaced with the actual green disclosure (10/10 check-runs at |
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs #656
The ruling realized
Base:
mainafter #843 (OQ-B part 1, mergedc6ae684d) — this branch's ownbase was
256b1950(#848, also merged), and picked up 14 further unrelatedmain commits via a catch-up merge before push (none touch
scripts/ideation_dashboard/,scripts/output_boundary.py, or the affectedtest files).
Reader table (whole-tree, five spellings, pre-repoint)
scripts/ideation_dashboard/human_seen.py:45from .boundary import OutputBoundaryopenxFactory's own adapter (stays)scripts/ideation_dashboard/dashboard_refresh_lane.py:121from ideation_dashboard.boundary import OutputBoundaryscripts/ideation_dashboard/nightly_lane.py:88from ideation_dashboard.boundary import OutputBoundarytests/notebooklm/test_workbench_sweep_wiring.py:97from ideation_dashboard.boundary import OutputBoundary(function-local, inside_live_manifest)All four import only
OutputBoundary, whichscripts/output_boundary.pydefines under the same name (the shim's
__all__re-exports it, not a copy —from output_boundary import (... OutputBoundary ...)). No rename, nobehaviour change.
The four diffs
nightly_lane.py's line also moved (85→88 sorted alphabetically againstideation_dashboard.generator, absolute import ordering preserved) — one linechanged per file, everything else byte-identical.
Edge scan — BEFORE (merge-base
256b1950) / AFTER (this branch's head)AST-parsed (not grepped) over all five spellings the tree can reach the shim
by (
from .boundary import X,from . import boundary,from ideation_dashboard.boundary import X,from ideation_dashboard import boundary,import ideation_dashboard.boundary, plus thescripts.-prefixedabsolute forms), whole
scripts/+tests/tree, module-level andfunction-local:
ideation_dashboard.boundary) reachesoutput_boundary(neutral) reachesDelta: stays→oD −3 (
human_seen.py,dashboard_refresh_lane.py,nightly_lane.py) + test-tree edge −1 (test_workbench_sweep_wiring.py)= −4 shim reaches; +4 stays→neutral (the same four lines now import
output_boundary) + one new test-only edge (this PR's owntest_b4_boundary_repoint.pyimports bothoutput_boundaryandideation_dashboard.boundaryitself, to compare the shim's re-exports foridentity — not a production reach). Net shim-reach change: 48 → 45 (−3, since
the new test adds back one
from ideation_dashboard import boundarytoverify the shim's own re-export contract). No new forbidden-direction
edge — the diff between the BEFORE/AFTER edge lists is exactly: the four
lines removed, and the new test file's own two verification imports added.
Remaining stays→oD edges after this PR (out of scope for B-4, named for
the record):
scripts/ideation_dashboard/lens_submission.py:57-58(from .lens import PENDING_PROPOSAL_NOTE;from .workbench import ACTION_ADD_AS_CLUSTER, OutputBoundary, Workbench, save— ruledimport rewrites at the carve, the file's own docstring names these as its twostays -> openDoxreaches; line numbers drifted from the brief's:51-52to:57-58since #848's docstring edit) andscripts/ideation_dashboard/serve_openxfactory_lanes.py:52→serve_wire.py(B-2 (i′) has not landed yet — it is in flight per a continuation author per
the ruling thread on #656 — so this reach is still open, tracked separately).
Guard test
New
tests/ideation-dashboard/test_b4_boundary_repoint.py(242 lines, 6tests): parses (not greps) the four ruled files for all five spellings and
asserts none remain; asserts each of the three module-level names
isoutput_boundary.OutputBoundary; asserts the shim's own re-exports are thesame objects (proving the repoint was a no-op); a non-vacuity check that the
sweep-wiring test still imports
OutputBoundaryfromoutput_boundaryspecifically; a check that the shim is still present and still read by other
package modules; and a negative control that feeds a restored
from .boundary import X(all five spellings) through the identical scannerfunction to prove it would still catch a regression. Does not touch
test_import_direction.py,test_oqb_replumb.pyortest_oqb_replumb_2.py.Tests + parity
python3 -m pytest -q tests/ideation-dashboard tests/notebooklm tests/doc-health: 7005 passed, 31 skipped, 40 subtests passed, 1failed —
test_find_validator_locates_pinned_checkout— reproducedbyte-for-byte on a clean worktree checked out at the merge-base
(
256b1950, no changes from this PR applied), so it is the knownenvironmental failure (the test expects a sibling-checkout path layout an
isolated worktree doesn't have), not a regression from this change.
python3 scripts/proposal-support.py . verify:proposal support verification ok.python3 scripts/doc-health.py --single-repo .: 10 critical / 7 error /57 warning / 16 info at this head vs 10 / 8 / 57 / 16 at the
merge-base — findings diffed line-by-line (repo-identity label aside): the
one fewer error is
bump-openspec-cli-pin-to-1.12/review/ratification-2026- 09-05.md's missing-status-header finding, which disappeared only becausethe unrelated 14-commit
maincatch-up (picked up before push) archivedthat file to a new path; canon share moved 39.6%→39.7% for the same reason
(words the catch-up merge brought in). Zero findings changed by this PR's
own five files.
4c72fb2d, including the requiredpytest-suite(24m24s) andmerge-master-approval— judged on their own results (the estate freeze ended with GATED (runbook Phase 1 COMPLETE, step 1.6 INCLUDED) — slice B1: the decision-core pin, the workflows, the operator tools (42/15) #801).NOT DONE
boundary.pyis kept, unedited — it stays for its remaining in-package readers (five openDox-column and, per design D3, four openXdox-column:snapshot_registry.py,gate_routes.py,gate_console.py,cli_gate.py; openXdox→openDox is an allowed direction and pre-existing — verifier's note)(roughly ten package modules, thirty test modules) per the shim's own
docstring. No carve manifest, no
openspec/**,contracts/**or.github/**edit. No behaviour, signature or public-name change anywhere.Asking for Brett Heap's separate word to land this.
🤖 Generated with Claude Code