Skip to content

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

Merged
brettheap merged 8 commits into
mainfrom
change/opendox-oqb-replumb-2-hosted-ref-refused
Sep 9, 2026
Merged

brettheap merged 8 commits into
mainfrom
change/opendox-oqb-replumb-2-hosted-ref-refused

Conversation

@brettheap

@brettheap brettheap commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

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

Refs #656 · split-opendox-two-layer-product § 3.1 · authored on 6df21737, caught up to main at e86eca35 (git merge, never a rebase) · head e2023382

OQ-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":

B-2 is RULED (i′): hosted_ref_refused's DEFINITION moves from
scripts/ideation_dashboard/serve_wire.py (openDox) to serve_projection.py (openXdox), beside
hosted_index (S-3's precedent; the module already imports snapshot_registry, and three of the
predicate's four call sites are there); serve_openxfactory_lanes.py imports it from
serve_projection (adapter → openXdox, the allowed direction) and the three string constants
(JSON_CTYPE, JSON_OBJECT_BODY_REQUIRED, HOSTED_SESSION_REFUSAL) from a new neutral module
beside output_boundary (not_moved / replicated_at_destination at the carve); serve_wire
re-imports the strings from the neutral module and drops the predicate. The serve-surface location
pin stays green (serve_projection ∈ SERVE_SURFACE_MODULES, conftest.py:204); two prose
refreshes ride along.

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 new
neutral module, a new test file, and prose-only edits to tests/ideation-dashboard/conftest.py.
scripts/ideation_dashboard/serve.py is a sixth file, and the ruled act is impossible without
it.
Measured, not assumed:

serve.py:198  from ideation_dashboard.serve_wire import (   # 95 names, one of them:
serve.py:291      hosted_ref_refused,

serve.py imported the predicate from serve_wire (a # noqa: E402,F401 re-export block), and
test_session_snapshot.py:781-788 reads it as serve_mod.hosted_ref_refused. Drop the definition
without a re-export and serve.py fails at import — the whole suite, not one test. The measurement
instruction ("every reader of hosted_ref_refused") is what surfaced it: #848's body counted
serve_projection.py ×3 and serve_openxfactory_lanes.py ×1, and that fifth reader is an
IMPORTER, not just a caller.

The two alternatives that keep serve.py untouched are both refused, on the change's own rules:

  1. A re-export in serve_wire. It would point the shared wire vocabulary at a column module — a
    NEW oD → oXd edge, which this PR's own edge criterion forbids — and it is an import CYCLE:
    serve_projection imports serve_wire for HOSTED_SESSION_REFUSAL/JSON_CTYPE, so
    serve_wire importing serve_projection back 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-313 also refuses a re-export explicitly, for hosted_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."
  2. Leaving the definition in serve_wire. That is option (ii), which the ruling rejected.

The change to serve.py is 1 insertion / 1 deletion and adds NO edge: hosted_ref_refused
moves from the serve_wire import list to the serve_projection import list that
already exists at :191-197 — the identical repoint pre-carve split S-3 (#835) made in the
identical statement for hosted_index, one name along. serve.py's line count is unchanged (1,748
at base and head), and both statements survive, so no edge is added or removed there
(serve_wire 95 names → 94 at :199; serve_projection 5 → 6 at :191).

Flagged rather than worked around, and it is the only departure from the authored file set.

What moved

symbol from (at base 6df21737) to lines bytes sha256 before → after
hosted_ref_refused (def + its FR-048 arrival-path docstring) serve_wire.py:1359-1393 serve_projection.py:161-195 35 2,264 1f0257cd3597fd02… → 1f0257cd3597fd02…
JSON_CTYPE, JSON_OBJECT_BODY_REQUIRED serve_wire.py:82-83 wire_messages.py:58-59 2 108 94bd0772e4cbc055… → 94bd0772e4cbc055…
HOSTED_SESSION_REFUSAL serve_wire.py:1355-1356 wire_messages.py:64-65 2 139 c842cee6d1f1ee03… → c842cee6d1f1ee03…

Full digests: predicate 1f0257cd3597fd02204656a2584b751b1524ef69dc2d131605c7c78e73d4fa54; the JSON
pair 94bd0772e4cbc0554c4bc11d49dc74fdfd13a46d9cddc8d28b1de065a137c9bd; the refusal
c842cee6d1f1ee033f3a4b5ef9d001916738b2b4afb6db87a821d96fde675cc2.

The predicate relocation has ZERO differing lines. serve_projection.py:53 already spells the
registry import from ideation_dashboard import snapshot_registry as registry_mod — the same alias
serve_wire.py:76 used — so the body's registry_mod.is_publishable_ref(ref) needed no adjustment
at all. diff of 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 middle
line 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_wire already keeps for the notebook action". The three
CONSTANT 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:

importer column disposition
serve_openxfactory_lanes.py:52 stays REPOINTED to from ideation_dashboard.serve_projection import hosted_ref_refused (head :69) — the ruled edge
serve_projection.py:54 oXd DROPPED — the name is defined in this file now; leaving the import would have misled every reader
serve.py:198/291 oD (by-function residue) REPOINTED into the existing serve_projection import at :191 — see the disclosure above

The three strings — every importer in the tree, and only the stays-column one had to move:

importer column disposition
serve_openxfactory_lanes.py:52 (all three) stays REPOINTED to from wire_messages import … (head :56) — the ruled edge
serve.py:198 (all three) oD left on serve_wire's re-export (head :199)
serve_projection.py:54 (HOSTED_SESSION_REFUSAL, JSON_CTYPE) oXd left on serve_wire's re-export
serve_gate.py:46 (JSON_OBJECT_BODY_REQUIRED) oXd left
serve_project.py:42 (both JSON names) oD left
serve_workbench.py:50 (both JSON names) oD left
the suites that read them as serve_mod.<name> test left — still resolve

oD → neutral and oXd → oD are both directions the carve permits, so repointing the remaining
openDox/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 applied
to slug. serve_wire.py:105 re-imports all three, the SAME OBJECTS not copies
(ideation_dashboard/boundary.py's precedent), which is asserted by identity AND by a source scan
proving serve_wire assigns none of them.

Edges — BEFORE e86eca35 (main after #801), AFTER e2023382

My own AST scan (#843's method): every .py in scripts/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 / import scripts.ideation_dashboard.X) plus bare-name imports of the
neutral modules at scripts/. Columns are design D3's assignment as memo § 2.2 tabulates it, with
the landed splits folded in (doxbench_scope_types oD, lens_submission stays, serve_projection
oXd). #843's path_slug (neutral) and openxdox_surface (oXd) are NOT counted: #843 is OPEN and
neither file is on this base
— git cat-file -e 6df21737:scripts/path_slug.py and
…:scripts/ideation_dashboard/openxdox_surface.py both fail. Both trees were extracted with
git archive and 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 (the
authored base) and BEFORE e86eca35 (main after #801) — main's move touches none of this
branch's seven files — and identical at head f8b8d234, 93c2aa35 and e2023382.

pair before after delta
stays → oD 8 7 −1
stays → oXd 15 16 +1
stays → neutral 1 2 +1
oD → neutral 4 5 +1
oD → oXd 33 32 −1
oD → stays 5 5 —
oXd → oD 35 35 —
oXd → stays 4 4 —
oXd → neutral 2 2 —
total 107 108 +1

Removed (2), each named file:line at the base:

  • scripts/ideation_dashboard/serve_openxfactory_lanes.py:52 serve_openxfactory_lanes → serve_wire (stays → oD) — B-2's ruled edge, gone
  • scripts/ideation_dashboard/serve_wire.py:76 serve_wire → snapshot_registry (oD → oXd) — yes, the import went, and it was dead. registry_mod had exactly one use in the file, :1393 inside the predicate (grep -n 'registry_mod\|snapshot_registry' over the base file returns :74, :76, :1393, of which :74 is 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:105 serve_wire → wire_messages (oD → neutral)
  • serve_openxfactory_lanes.py:56 serve_openxfactory_lanes → wire_messages (stays → neutral)
  • serve_openxfactory_lanes.py:69 serve_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 → :1369 serve_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 → oXd or oD → stays edge. All three of those pairs fell or held.

The 7 remaining stays → oD edges, each named, so the ruled target set is on the record:

dashboard_refresh_lane.py:121 -> boundary         (OQ-B B-4, RULED (a) 2026-09-09 — its own PR, after #843)
human_seen.py:45              -> boundary         (same)
nightly_lane.py:88            -> boundary         (same)
human_seen.py:46              -> workbench        (OQ-B B-1, PR #843, in flight)
intent_apply_lane.py:472      -> branch_session   (OQ-B B-3, PR #843, in flight)
lens_submission.py:51         -> lens             (RULED: import rewrites at the carve)
lens_submission.py:52         -> workbench        (RULED: same)

serve_openxfactory_lanes.py is 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 → oD list
of 8, which reproduces #848's verbatim. Two rows differ by one in opposite directions —
oD → stays 5 (theirs: 6) and oXd → oD 35 (theirs: 34) — i.e. one edge my column map files as
oXd → oD where theirs filed it oD → stays. scripts/ is byte-identical between #848's base
245ee85a and mine (git diff --stat 245ee85a 6df21737 -- scripts/ is empty), so the difference is
one 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_packet is 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_openxfactory is counted in the stays column although memo § 2.2 files it
deleted_at_carve, in no column at all. Neither module is touched by this PR, so neither choice
moves 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:

  • A — the scanner is not blind to the ruled edge. Revert the repoint at
    serve_openxfactory_lanes.py and stays → oD returns 7 → 8, stays → oXd 16 → 15. So a
    real B-2 shows up in this table, and the AFTER numbers are the relocation, not the instrument
    going quiet.
  • B — the fifth spelling is caught. Keep the repoint and add
    import scripts.ideation_dashboard.serve_wire as _lazy inside a function body: stays → oD
    returns 7 → 8 while stays → oXd stays 16 (total 109). A relocation that removed the
    module-level import and left a lazy one behind would not have passed.
  • C — the neutral module's own imports are NOT in this scan's subject (it walks
    scripts/ideation_dashboard/ as the source side), so that property is asserted by parsing
    instead, 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) asserts
marker = "def hosted_ref_refused(" ; assert marker in src where src = serve_surface_source().

  • conftest.py:204 lists serve_projection.py in SERVE_SURFACE_MODULES, so the marker is still
    found. No edit to test_session_snapshot.py and no edit to any assertion in conftest.py
    (git diff 6df21737..HEAD -- tests/ideation-dashboard/test_session_snapshot.py is 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's src.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:338 and serve.py:763), the same 6 as at base.
  • :856-858's per-route bodies (_serve_snapshot, _serve_source, _handle_refresh_action) each
    still ask the predicate, and :853's assert "apply_lane" not in src still holds — every comment
    added to a serve-surface file here was written to avoid that token.
  • Run, not reasoned: 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, including
    test_the_hosted_index_projection_belongs_to_the_projection_column) → 28 passed.

Every non-relocation line change

  1. scripts/wire_messages.py — new, 65 lines: a 54-line header in output_boundary.py /
    path_slug.py's idiom (neutral; why it sits at the top of scripts/; why a str may come here
    and the predicate could not; how neutrality is proven, by parsing; not_moved / replicated_at_destination at the carve; its callers), from __future__ import annotations, then
    the 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.py and path_slug.py, disclosed here as a
    forward reference true on the intended landing order. Copilot flagged it as false on this
    branch and was right
    — path_slug.py is 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 — so 93c2aa35
    rewrote it. e2023382 then went one step further, because "not in this tree" would itself go
    false 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 asserts
    nothing about presence at all, and records path_slug.py as 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__"].
  2. scripts/ideation_dashboard/serve_wire.py — the definition and the three constants deleted;
    the dead snapshot_registry import and its 3-line comment deleted; a 10-line comment plus a
    3-name from wire_messages import (…) # noqa: F401 (re-export) added where the two JSON
    constants were. 1,393 → 1,377 lines.
  3. scripts/ideation_dashboard/serve_projection.py — hosted_ref_refused removed from the
    serve_wire import list; a 19-line provenance comment in S-3's own idiom plus the byte-identical
    block added after hosted_index and before class ProjectionRoutes. 334 → 389.
  4. scripts/ideation_dashboard/serve_openxfactory_lanes.py — the four-name serve_wire import
    replaced 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 site
    changed: all four names are still bare names in this module's namespace.
  5. scripts/ideation_dashboard/serve.py — 1 insertion / 1 deletion, disclosed above.

The two PROSE REFRESHES, in their own commit (12c84bbd), digits and sentences only:

  1. 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 with
    S-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 this
    openDox module was the edge RULING OQ-2 forbids. It also records that serve.hosted_ref_refused,
    serve.hosted_index and serve.JSON_CTYPE all still resolve.
  2. tests/ideation-dashboard/conftest.py:229-232's serve_surface_paths docstring claimed each
    non-serve.py sibling "import[s] from serve_wire and from no other sibling" — now false of
    serve_openxfactory_lanes.py. PROSE ONLY, and disclosed because conftest.py is a § 3.7
    replicate-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), sha256 c5ac6b6dfad17e90… at
    both ends), and serve_surface_paths is the only docstring in the file that differs at all.
    +9/−3 lines, all inside that one string constant. SERVE_SURFACE_MODULES and the tuple's order
    are untouched, and the order still holds (serve_projection.py sits ahead of
    serve_openxfactory_lanes.py). The docstring itself already records that no reader depends on
    the order, only the claim; I re-grepped for a test pinning sibling-import-freedom: none
    exists
    .
  3. tests/ideation-dashboard/test_oqb_replumb_2.py — new, 405 lines, 13 tests.

Citation sweep. grep -rn 'serve_wire\.py:[0-9]' over scripts tests web returns exactly
two hits, both inside serve_projection.py and both HISTORICAL provenance lines (:84 "out of
serve_wire.py:1387-1433", S-3's; :144 "out of serve_wire.py:1359-1393", mine, correct at this
base) — nothing stale. serve_projection.py:<n>, serve_openxfactory_lanes.py:<n> and
conftest.py:<n> citations: zero anywhere in the tree, so no line-number citation is staled by
the +55/+12/−16 shifts. serve_project.py:42, serve_workbench.py:50 and serve_gate.py:46 name
serve_wire only 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

python3 -m pytest -q tests/ideation-dashboard tests/doc-health at this head:

1 failed, 6752 passed, 31 skipped, 7 warnings in 1166.94s (0:19:26)
FAILED tests/ideation-dashboard/test_snapshot.py::test_find_validator_locates_pinned_checkout

Same counts at the pre-merge head f8b8d234 (1028.02s). python3 -m pytest -q tests/review_lane_pin
at 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 --detach worktree at
base 6df21737 with none of this branch's changes: snapshot.find_validator(REPO_ROOT) returns
None because a scratchpad worktree has no sibling xFactory checkout beside it. Nothing else
failed.

tests/ideation-dashboard/test_oqb_replumb_2.py alone: 13 passed. It proves what a review
cannot:

  • serve_openxfactory_lanes imports NOTHING from serve_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.
  • Non-vacuity for that absence: the column still imports serve_projection, and all four names
    still resolve by identity — so a column that had simply stopped confining the hosted plane, or
    stopped answering JSON, fails too.
  • serve_wire binds hosted_ref_refused nowhere — a SOURCE scan, so a re-export is caught as
    well as a def, which is the distinction test_serve_column_split.py:301-313 draws for
    hosted_index — and no longer imports snapshot_registry.
  • serve_wire.<string> is wire_messages.<string> and serve.<string> is wire_messages.<string>
    ×3; plus a source assertion that serve_wire assigns none of the three, because identity on
    interned str literals is not by itself evidence of a re-export.
  • serve.hosted_ref_refused is serve_projection.hosted_ref_refused, and the relocated predicate
    still answers on all six inputs the moved text promises (loopback never confined; main, None
    and "" publishable; a session ref refused off loopback).
  • The neutral module imports nothing from scripts/ideation_dashboard/ or doc_health, in both
    spellings of each — a SIBLING of tests/doc-health/test_import_direction.py:116-133 written
    in 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__"].
  • Two negative controls feed restored edges — all five spellings, both packages, lazy imports
    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 status clean after each): a lazy serve_wire import in the adapter column, a restored
def hosted_ref_refused in serve_wire, an ideation_dashboard import in the neutral module, and
a 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_package claimed to run its lost-neutrality source
"through the same two functions" and ran it through one, 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 would have left the neutrality test
green over a module that had lost the property. imported_module_names now takes a TREE like its
sibling sibling_imports already did, a two-line parse_file helper reads at the two call sites,
and the control feeds the restored source through the function itself. Proven by mutation: dropping
the ast.Import branch from imported_module_names now 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 base e86eca35 (its own detached worktree)
and at this head: identical — and the same pair of numbers at the authored base 6df21737
before 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, 50 contested at both ends), and the finding bodies diff clean
once 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-suite was red on every openxFactory
PR from the opensoft/codexFactory → codeXfactory/codexFactory transfer (~13:1xZ, 2026-09-09) — a
failures=0 errors=0 run tripping the skipped-count pin because the pinned-core checkout could not
resolve — until #801 landed as e86eca35 with the pinned-core token fix. This branch has taken
that merge (966839fb), so pytest-suite is judged here on its own result, not as the freeze
class
. Locally at the merged head the whole tests/review_lane_pin suite is 175 passed, 2
skipped
, and tests/ideation-dashboard tests/doc-health is the run above. If CI's pytest-suite
is 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-approval may still be red advisorily; it is not a required check and it is not this
PR's. (sourcery-ai is the private-repo upsell stub, as on every PR in this repository.)

copilot-pull-request-reviewer: 🟢 Approval recommended, 7/7 files reviewed, one inline
comment — the path_slug.py forward reference in wire_messages.py's header, which this PR's own
body had disclosed. FACTUAL, accepted, fixed in 93c2aa35 and hardened in e2023382, replied and
resolved. 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

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 inherited
from 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

brettheap and others added 5 commits September 9, 2026 10:49
…(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]>
Copilot AI lite review requested due to automatic review settings September 9, 2026 15:34

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The 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_refused definition from serve_wire.py into serve_projection.py, and repoint in-tree importers (serve_openxfactory_lanes.py, serve.py) accordingly.
  • Introduce scripts/wire_messages.py as a neutral home for JSON_CTYPE, JSON_OBJECT_BODY_REQUIRED, and HOSTED_SESSION_REFUSAL, with serve_wire.py re-exporting them.
  • Add tests/ideation-dashboard/test_oqb_replumb_2.py to 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.

Comment thread scripts/wire_messages.py Resolved
…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]>
Copilot AI review requested due to automatic review settings September 9, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The 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

brettheap and others added 2 commits September 9, 2026 11:50
…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]>
Copilot AI review requested due to automatic review settings September 9, 2026 16:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The 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

@brettheap

Copy link
Copy Markdown
Contributor Author

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

INDEPENDENT VERIFICATION of head e202338242a2649a1b7094e5560aaa38d29bdde1 — PASS WITH NOTES

Adversarial verification by a second agent that did not author this PR. BEFORE = the branch's
merge-base with origin/main, e86eca35 (the pushed head carries ONE merge-from-main,
966839fb; see NOTE-1). Two dedicated worktrees, wt-verify-oqb2b / wt-verify-oqb2b-base; every
scanner below is my own, written from the design/memo rather than reused from the author.

# item verdict evidence
1 Scope PASS git diff --name-status e86eca35..e2023382 = exactly 7 files: serve.py (1/1), serve_openxfactory_lanes.py (15/3), serve_projection.py (56/1), serve_wire.py (60/76), A scripts/wire_messages.py (67/0), conftest.py (9/3), A tests/ideation-dashboard/test_oqb_replumb_2.py (405/0). Nothing under openspec/**, contracts/**, .github/**; no carve manifest; no skip pin. conftest.py is PROSE-ONLY, proved not asserted: docstrings stripped, ast.dump(ast.parse(ast.unparse(t))) sha256 = c5ac6b6dfad17e9076126c6dbc62cb6d8acafc4e157ca646bac441b681162d1e at BOTH ends, and serve_surface_paths is the only docstring in the file that differs. #843's seven files untouched (path_slug.py / openxdox_surface.py are on neither tree); #848's files untouched; B-4's boundary.py, human_seen.py, dashboard_refresh_lane.py, nightly_lane.py, tests/notebooklm/ untouched. One merge commit, declared.
2 Predicate moved byte-identically PASS Extracted BY SYMBOL with my own AST slicer: serve_wire.py:1359-1393 (base) → serve_projection.py:161-195 (head), 35 lines / 2,264 bytes at both ends, diff EMPTY, sha256 1f0257cd3597fd02204656a2584b751b1524ef69dc2d131605c7c78e73d4fa54 both — the body's digit-for-digit. Three FR-048 mentions and THE ARRIVAL PATH paragraph travelled inside it. ZERO differing lines: registry_mod is the alias serve_projection.py:53 already had. serve_wire at head binds hosted_ref_refused nowhere (AST over def/class/Assign/Import-alias): no definition, no re-export; getattr(serve_wire,'hosted_ref_refused',None) is None. The removed snapshot_registry import was dead: an AST scope-walk of the BASE file finds registry_mod referenced at exactly ONE line, :1393, inside the predicate (grep's other two hits, :74/:76, are the comment and the import).
3 Three strings, neutral module PASS JSON_CTYPE+JSON_OBJECT_BODY_REQUIRED: base serve_wire.py:82-83 → head wire_messages.py:60-61, sha256 94bd0772e4cbc0554c4bc11d49dc74fdfd13a46d9cddc8d28b1de065a137c9bd both. HOSTED_SESSION_REFUSAL: base :1355-1356 → head :66-67, sha256 c842cee6d1f1ee033f3a4b5ef9d001916738b2b4afb6db87a821d96fde675cc2 both. The ONE declared differing line is the comment's "this module" → "serve_wire" — confirmed, and confirmed to be the only one. Identity in a fresh interpreter: serve_wire.<n> is wire_messages.<n> and serve.<n> is wire_messages.<n> True ×3 each. wire_messages.py's full import list by AST is ['__future__'] — no ideation_dashboard, scripts.ideation_dashboard, doc_health, scripts.doc_health in any spelling. Header is output_boundary.py's idiom (neutral remit, not_moved / replicated_at_destination, callers named). The name is right: the module holds three fixed wire strings and nothing else.
4 Repoints PASS serve_openxfactory_lanes.py at head reaches serve_wire for NOTHING: grep -n serve_wire = 0 hits, and my AST dump of every import in the file lists route_extension, wire_messages (:56), snapshot_registry (:62), serve_projection (:69), doc_health (:162,:253 lazy), register_edit_lane (:287), intent_feed (:412). All five spellings covered, module-level and function-local. Every importer of the four names across scripts/ tests/ web/, base vs head, tabled by AST: only the stays-column one moved; serve_projection.py:54 dropped its own name (defined locally now) and serve.py repointed the predicate into the serve_projection statement that already existed (:191 5→6 names, :199 95→94, file 1,748 lines at both ends). serve_project.py:42, serve_workbench.py:50, serve_gate.py:46 and serve.py:199 are untouched and still resolve through the re-export. serve_projection's three call sites, base :178,:219,:276 → head :233,:274,:331, now bind the local def at :161; no import of it from serve_wire survives anywhere.
5 Location pin PASS test_session_snapshot.py is NOT in the diff (git diff empty) and python3 -m pytest -q tests/ideation-dashboard/test_session_snapshot.py → 23 passed. SERVE_SURFACE_MODULES and conftest.py:190-226 are byte-identical to base; serve_projection.py is in the tuple at :204, so serve_surface_source() still finds def hosted_ref_refused(. I recomputed the surface join myself: "def hosted_ref_refused(" in src True; src.count("hosted_ref_refused(") = 6 at base and 6 at head (≥4); "apply_lane" not in src holds at both; the three prose probes (add-ideation-intent-plane, apply-lane, (repository, ref)) present at both.
6 Edge scan (my own) PASS See the table below.
7 Prose refreshes PASS serve_wire.py:29-56's rewritten header is TRUE at head: all three hosted-plane names have left, S-3's hosted_index sentence still holds, and its closing claim is verified live — serve.hosted_ref_refused is serve_projection.hosted_ref_refused True, serve.hosted_index resolves, serve.JSON_CTYPE is wire_messages.JSON_CTYPE True. conftest.py:229-232's refreshed clause about serve_openxfactory_lanes is true (see item 4). Citation sweep, mine: grep -rn 'serve_wire\.py:[0-9]' over the WHOLE tree returns exactly two hits, both historical provenance in serve_projection.py (:84 S-3's, :144 this PR's 1359-1393, correct at this base). #848 interaction checked: #848 landed on main as 256b1950, which is NOT an ancestor of this head; its serve_wire.py hunk is at :612-616 and cites doxbench_scope.py:284-286 / :318 — line numbers INTO another file, which this PR's deletions cannot stale, and the regions do not overlap this PR's (27-56, 70-105, 1348-1393). Landing order is free in both directions.
8 Guard tests bite PASS Thirteen tests, baseline 13 passed in a throwaway copy of the head tree (never the branch). Nine mutations run by me, each reverted, tree verified identical afterwards — every one fails exactly the intended test and only it: (A) a lazy import scripts.ideation_dashboard.serve_wire inside a function in the adapter → test_the_adapter_column_imports_nothing_from_the_wire_module (1 failed, 12 passed); (B) from ideation_dashboard import snapshot_registry appended to wire_messages.py → the neutrality test; (C) a restored def hosted_ref_refused in serve_wire → test_the_wire_module_binds_the_predicate_nowhere; (D) a restored snapshot_registry import → its own test; (E) the three strings restored as fresh literals in serve_wire → all three identity parametrisations AND the source test (4 failed) — so the is assertions are NOT vacuous on these constants, and the source assertion is the real belt anyway; (H) the ast.Import branch cut out of imported_module_names → only the neutrality negative control; (I) the same cut in sibling_imports → only the five-spelling negative control. Two more are refused by Python itself: (F) a serve_wire re-export of the predicate → ImportError: cannot import name 'HOSTED_SESSION_REFUSAL' from partially initialized module … (most likely due to a circular import) — the body's refusal of alternative 1 is empirically correct; (G) the adapter reverted wholesale to its base text → ImportError: cannot import name 'hosted_ref_refused'. Non-vacuity companions are real (test_the_adapter_column_still_reaches_both_new_homes pins serve_projection ∈ siblings plus four identities; the neutrality test pins is_file() and the exact ['__future__'] list).
9 Tests + parity PASS See below.
10 Hygiene / over-reach PASS Body line 1 is the Lane line; **Refs #656**, no closing keyword anywhere in the body; GraphQL closingIssuesReferences.totalCount = 0; autoMergeRequest null; reviews are sourcery-ai / copilot-pull-request-reviewer / brettheap all COMMENTED, no APPROVED. All 8 commits (the merge included) carry exactly Lane: openxfactory-4-opendox-extraction + Co-Authored-By: Claude Fable 5.1 <[email protected]>. One review thread, resolved — Copilot's path_slug.py forward-reference finding was FACTUAL and is genuinely cured at this head (the header now asserts nothing about presence and records path_slug.py as B-1's, true whichever way the merge order falls); reply judged correct in substance, see NOTE-4. Nothing touches a workflow, ruleset, contract or openspec/; B-4's shim untouched.

Item 6 — the edge scan, measured independently

My own scanner, written from design D3 + memo § 2.2 (not the author's): every .py in
scripts/ideation_dashboard/ as the source side, ast.walk over the whole tree so lazy
function-local imports count, resolving from .X import · from . import X ·
from ideation_dashboard 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 the modules that sit at the top of
scripts/ (neutral). Columns are memo § 2.2 with the landed splits folded in (doxbench_scope_types
oD, doxbench_scope oXd, lens_submission stays, serve_projection oXd) and the new
wire_messages neutral. path_slug.py and openxdox_surface.py are on neither tree — this
head's base is e86eca35, and #843 landed on main only afterwards (256b1950), so they are in my
column map but contribute nothing here.

pair BEFORE e86eca35 AFTER e2023382 delta body claims
stays → oD 8 7 −1 8 → 7 ✅
stays → oXd 15 16 +1 15 → 16 ✅
stays → neutral 1 2 +1 1 → 2 ✅
oD → neutral 4 5 +1 4 → 5 ✅
oD → oXd 33 32 −1 33 → 32 ✅
oD → stays 6 6 — 5 → 5 (see NOTE-2)
oXd → oD 34 34 — 35 → 35 (see NOTE-2)
oXd → stays 4 4 — 4 → 4 ✅
oXd → neutral 2 2 — 2 → 2 ✅
total 107 108 +1 107 → 108 ✅

Removed (2), each named at the base and confirmed absent at head:

  • serve_openxfactory_lanes.py:52 serve_openxfactory_lanes → serve_wire (stays → oD) — B-2's ruled edge.
  • serve_wire.py:76 serve_wire → snapshot_registry (oD → oXd) — and it was genuinely dead (item 2).

Added (3), all in permitted classes: serve_wire.py:105 → wire_messages (oD → neutral);
serve_openxfactory_lanes.py:56 → wire_messages (stays → neutral);
serve_openxfactory_lanes.py:69 → serve_projection (stays → oXd).

Line-shifted only, same edge (so the raw scan diff reconciles to zero):
serve_wire.py:1342 → :1369 → doxbench_contracts;
serve_openxfactory_lanes.py:51 → :62 → snapshot_registry;
serve_openxfactory_lanes.py:275 → :287 → register_edit_lane.

NO new stays → oD, oD → oXd or oD → stays edge. The 7 remaining stays → oD edges are
exactly the seven the body names (three → boundary for B-4, human_seen:46 → workbench,
intent_apply_lane:472 → branch_session, lens_submission:51-52 → lens/workbench);
serve_openxfactory_lanes.py is off that list.

Negative controls of my own, over the throwaway copy: re-adding the module-level
from ideation_dashboard.serve_wire import … in the adapter returns stays → oD to 8 and
stays → oXd to 15; adding a function-local import scripts.ideation_dashboard.serve_wire
returns stays → oD to 8 with stays → oXd unchanged at 16. The instrument is not going quiet.

Base equivalence. git diff --stat 6df21737 e86eca35 -- scripts/ touches only
mint-factory-origin-key.py and review_lane_repin.py (#801) — nothing under
scripts/ideation_dashboard/ and no neutral module — so the table is the same at the authored base,
as the body says. git diff --stat 245ee85a 6df21737 -- scripts/ is empty, so #848's published
BEFORE and this one rest on the same tree.

Item 9 — tests, parity, CI

  • python3 -m pytest -q tests/ideation-dashboard/test_oqb_replumb_2.py → 13 passed.
  • tests/ideation-dashboard/test_session_snapshot.py → 23 passed (untouched file).
  • tests/ideation-dashboard/test_serve_column_split.py → 28 passed (S-3's own guards).
  • python3 -m pytest -q tests/ideation-dashboard tests/doc-health at head → 1 failed, 6752 passed, 31 skipped, 7 warnings in 1195.06s (0:19:55) — the SAME counts the body reports.
    The one failure is ENVIRONMENTAL and I reproduced it on my BASE worktree, which carries none of
    this branch's changes: tests/ideation-dashboard/test_snapshot.py::test_find_validator_locates_pinned_checkout
    fails there too (snapshot.find_validator(REPO_ROOT) → None, because a scratchpad worktree has
    no sibling xFactory checkout). Classification accepted.
  • doc-health parity: IDENTICAL. python3 scripts/doc-health.py --single-repo . at base and at
    head, both 331 lines, both Findings: 10 critical, 8 error, 57 warning, 16 info. New regressions vs previous report: 0., both 41 auto-fixable / 50 contested; with the worktree directory name
    masked the two reports are byte-identical, sha256 fc6ddf850624502b65884de4c6f9c9e4c973cc286735d734eba11f7d8d9433f2
    at both ends. No finding added, removed or reclassified — the new scripts/*.py moved no inventory
    count.
  • python3 scripts/proposal-support.py . verify → proposal support verification ok (exit 0).
  • scripts/validate-openspec-cli-pin.py behaves identically at base and head (same
    REFUSE pin-no-target without --all); the PR touches nothing under openspec/** or
    contracts/**, and CI's openspec-cli-pin check is green.
  • CI at this head: EVERY check GREEN, including the required pytest-suite (pass, 20m00s) —
    so it is judged on its own result, not as the estate-freeze class, exactly as the body asks. Also
    green: lane-line ×2, clearing-dispatch-gate, openreposhape-pin, openspec-cli-pin,
    release-tag-gate, signed-execution-chain-gate, wallet-validation, and — better than the body
    predicts — merge-master-approval is GREEN too.
  • No behaviour change, checked rather than assumed. serve_wire.py does not put scripts/ on
    sys.path and relies on its caller (boundary.py's precedent for output_boundary). That adds no
    new requirement: with only the repo root on sys.path, import scripts.ideation_dashboard.serve_wire
    already fails at :87 (from ideation_dashboard import doxbench_knowledge) at base and head
    alike
    , and with scripts/ on the path both spellings import cleanly at both ends. serve_wire
    and serve_projection import cleanly in a fresh interpreter in BOTH orders — no cycle.

Defects

BLOCKING: none. SHOULD-FIX: none. Five NOTEs, all body/prose bookkeeping; none touches the
diff's correctness.

Shared checkout

/home/brett/projects/xFactory/openxFactory — HEAD 6612d323, 0 staged files at START; HEAD
6612d323, 0 staged files at END. Read-only apart from fetch, worktree add and worktree remove. No merge, no approval, no push, no auto-merge, no ruleset or workflow act, no thread act,
nothing posted on #656; both wt-verify-oqb2b* worktrees removed. This comment is my only write.

@brettheap
brettheap merged commit 89e0734 into main Sep 9, 2026
11 checks passed
brettheap added a commit that referenced this pull request Sep 9, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants