Skip to content

§ 3.4 S8 (leg A): 44 of the 46 bundle paths stop naming a directory this leg does not have - #19

Merged
brettheap merged 16 commits into
mainfrom
build/s8-shed-web-tests
Sep 16, 2026
Merged

brettheap merged 16 commits into
mainfrom
build/s8-shed-web-tests

Conversation

@brettheap

@brettheap brettheap commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction

§ 3.4 slice S8, leg A (openXdox-code): 44 of the 46 bundle paths stop naming a directory this leg does not have.

Spec: openDox-spec docs/front-end-package-boundary.md § 1.2(d) and § 5 row S8 @ 7d12428c. CLAIM: opensoft/openxFactory#656 comment 5649985838. Was stacked on S5 leg A (#18), which landed 2026-09-13T21:50Z at c1ad341a — this PR is now based on main and has merged it (080dcfc). DRAFT — the lane does not merge; the orchestrator lands. It lands AFTER openxFactory #1025, which declares every line these edits touch.

The defect, in the note's own words

"23 at openXdox-code [name a views/<name>.js path], and every one of them resolves it under REPO_ROOT / "src" / "openxdox" / "web" — a directory openXdox-code does not have … the carve's import rewrites edit class rewrote the path constant and pointed the tests at the wrong leg."

Nine further sites here name the same constant as a serve root, without naming a view module, and pass it straight to serve_mod.build_server(...): eight suites (test_doxbench_abstract_route, test_doxbench_request_handling, test_gate_failure_diagnostics, test_gateway_provenance, test_hosted_actor, test_session_gates, test_session_verbs, test_source_dot_directories) and tests/tools/playwright-smoke.py:282, which is a tool rather than a suite and is not in validate's list. So the measured figure, under the instrument named in the correction below, is 46 root spellings over 31 files — 22 of those files resolving a concrete views/<name>.js module under that root, 9 passing the root itself to the server. 44 move here. TWO stay, named rather than silently skipped: tests/test_gate_console.py:58, because S5 leg A places src/openxdox/web/views/gate.js at this leg, and tests/tools/playwright-smoke.py:282, the tool. One site is added, deliberately: tests/test_renderer.py:49's OWN_VIEWS, which reads this column's own swb-session.js out of this leg's package data.

The files do not move, and that is measured

§ 5's S8 row infers from § 1.2(d) that the 23 "go to the leg the census says owns each bundle file", and § 6 Q6 built re_destined: for exactly that move. An ast walk of every module-level Import/ImportFrom says the inference holds for none of them. Every one imports a real openxdox module:

module imported by
openxdox.generator canvas, grouping, wheel_model, repo_selector, edit_action, notebook_action, explorer_viewer, renderer, …
openxdox.snapshot_registry repo_selector, project_aggregates, source_dot_directories
openxdox.gate_console / openxdox.round_trip doxbench_scope, round_trip
openxdox.gate_routes session_snapshot

RULED OQ-G's TEST HOMES rule places a mixed file here precisely because "openXdox pins openDox and openDox pins nothing back" (split-opendox § 4.2, RULED OQ-2). Moved to openDox-code each one fails on its first import line, and declaring openxdox there would be the unlawful direction tests/test_dependency_direction.py exists to refuse. The defect is the path constant — which is what § 1.2(d)'s own sentence says. So this pull request re-points 44 paths and re-homes 0 files, and the paired openxFactory annotation carries 0 re_destined: rows and says why.

Where the bundle actually is: in the openDox this leg pins

tests/opendox_bundle.py — a CREATED file (no manifest row, RULED OQ-C; admitted by name in openxFactory's docs/opendox-carve-admissions.yaml) — resolves

web = Path(opendox.__file__).resolve().parent / "web"

and SKIPS the importing module where the pin carries no bundle. That is the identical resolution and the identical skip S5 already landed at this leg, in tests/test_gate_loop_probes.py::_opendox_bundle, for the identical reason. A skipped suite says the pin is behind; a failing one would say the code is wrong, and only one of those is true until this leg's pin advances past openDox-code#20's [tool.setuptools.package-data] opendox = ["web/**"].

Both halves are proven, not asserted — with today's pin the module skips with the reason named; with a bundle present it resolves and the assertions run.

Four suites assert ACROSS the seam and take the COMPOSED root

test_doxbench_transport, test_renderer, test_session_confinement, test_staging_workbench read openDox's modules and the six this column contributes back (swb-session.js, swb-create.js, dispose.js, gate.js, gate-lens.js, gate-projects.js). Neither root alone answers them, and RULED Q5 says what does: opendox_bundle.composed() builds openDox's bundle with this column's modules installed into it by the assembly hook itself — openxdox.web_assets.install_view_modules(), the same call serve_views and S5's own bundle fixture make — once per process, read-only. A hand-rolled copy could drift from the hook; this cannot.

Why validate's list is NOT un-narrowed here

Measured, not asserted: every one of the 31 files still errors at COLLECTION, on

src/openxdox/generator.py:66   from doc_health import corpus
ModuleNotFoundError: No module named 'doc_health'

an openxFactory-only package present at neither leg, and it sits ahead of this repair in the import order. Across the whole tree that is 57 collection errors (28 ideation_dashboard, 26 doc_health, 3 a missing sibling) and, run past them, 873 errors / 0 passed. RULED Q-L8 (b′) says in terms what it is waiting on — "until the BUILD arc … inverts the cross-column dependencies" — and that arc is not this slice. Naming any of these files in the workflow today would put the required check red for a defect S8 does not own.

The list is now UN-NARROWED (see the round-1 section below): 301 passed, 23 skipped, from 154 passed / 16 skipped.

One suite this slice does not repair — RULED to RETIRE, under an act that lands after it

tests/test_staging_workbench.py:1985 copies views/intent-feed.js into its ending-replay harness. That module is a RULED OQ-F not_moved row — it stays at openxFactory and exists at neither leg — and S2 replaced the surface with views/intent-binding.js. openDox-code carries the same problem in tests/test_intent_tray_dom.py (23 tests) and tests/test_wheel_verbs_dom.py (8). re_destined: to: openxfactory is not expressible: to is held to the CLOSED destinations: keys, openxFactory is the SOURCE and not one of them, and the manifest's own "what it does not move" list names "the five destinations: keys" verbatim. Deleting an arrived row has no form either — which is the finding that decided the sequencing.

RULED, 2026-09-13 — opensoft/openxFactory#656 comment 5656343213 (Brett Heap, by interactive multi-choice): this replay, and openDox-code's two suites, RETIRE at their legs as a declared act citing OQ-F, and a retired: row form is registered as the NEXT carve-floor act. The form lands FIRST, under its own claim and after this slice; the retirement lands under it. So this pull request leaves the replay exactly as it is — untouched in the tree and narrowed out of validate — and names it RETIRING rather than repairing or deleting it. Both acts are registered in openxFactory #1025 § 7, and the form itself is CLAIMED at opensoft/openxFactory#656 comment 5656690570.

Refs opensoft/openXfactory#656

🤖 Generated with Claude Code

Summary by Sourcery

Point carved tests at the owning installed bundle and broaden validation coverage without relocating files or masking unrelated dependency failures.

New Features:

  • Add a shared helper for resolving installed openDox web assets and composing them with openXdox view modules for cross-boundary tests.

Bug Fixes:

  • Correct test asset and module paths to use the pinned openDox package instead of the nonexistent openXdox web directory.
  • Handle unavailable pinned web bundles with targeted skips while preserving execution of tests that do not require bundle assets.

Enhancements:

  • Update the validation workflow to include the additional suites that are now measurable and green under the corrected paths.

Tests:

  • Expand validation coverage from six to fifteen suites, including seam and composed-bundle tests.

ROUND 1 (2026-09-13) — validate UN-NARROWED, 80fe8f7

The first push left this leg's validate list at six files and said the blocker was measured. It is, but it does not bound the whole list — measuring all 88 of this leg's test files under the workflow's own invocation says nine more are green today, and three of those become green with repairs of the same path constants class the slice is made of.

Three more pre-carve module reads. MODULE_PATH = REPO_ROOT / "scripts" / "ideation_dashboard" / "<module>.py" is where these modules lived BEFORE the carve. They are openDox's now and this leg reads openDox through the PIN, so the repair is pathlib.Path(<the module this file already imports>.__file__) — no skip needed, because a module the file imported is installed by definition.

suite before after
tests/test_doxbench_abstract_store.py 1 failed 35 passed
tests/test_doxbench_telemetry.py 1 failed 18 passed
tests/test_doxbench_turns.py 37 failed / 146 passed 202 passed / 32 failed / 3 skipped

A per-test bundle skip beside the module-level one, and test_doxbench_turns.py is why it had to exist: 183 tests, of which THREE read a bundle file. Binding OPENDOX_WEB at module level traded 37 failing tests for 183 SKIPPED ones — a repair that silences more than it fixes. opendox_bundle.web() skips only the calling test; OPENDOX_WEB still skips the whole module for the thirty suites whose subject IS the bundle, and is now resolved in a PEP 562 __getattr__ so importing any other name from that file no longer skips the importer.

The list: 6 files → 15. 154 passed / 16 skipped → 301 passed / 23 skipped (CI run 34734641595, green). tests/test_doxbench_mutation_boundary.py is the WEB suite among the nine and the one of § 1.2(d)'s 23 that can be named today: with its path repaired it COLLECTS and skips on the stated reason (this leg's pin predates openDox's web/** package-data declaration) instead of erroring on a directory this leg does not have. That it collects at all is § 1.2(d)'s defect closed.

What is still not lifted, measured. 37 of 88 files fail COLLECTION on an openxFactory-only package present at neither leg — 21 ideation_dashboard, 16 doc_health (reached from src/openxdox/generator.py:66) — and past collection the same two reappear inside the PINNED openDox at opendox/doxbench_packet.py:177. The 32 remaining test_doxbench_turns.py failures are that one import, which is why that suite is not named in the list: naming it would put the required check red for the BUILD arc's defect. RULED Q-L8 (b′) says in terms that the rest waits on § 3.5/3.6.

Every line these edits touch is declared on its row in openxFactory #1025 (24f4f0b0), which lands first; tests/opendox_bundle.py carries an admission there.


ROUND 2 (2026-09-13) — the base landed; 080dcfc

S5 leg A (#18) merged at c1ad341a (2026-09-13T21:50Z), GitHub retargeted this PR to main, and git merge origin/main brought the base's own history forward. No rebase — this lane never rebases a pushed branch.

One conflict, positional rather than substantive: .github/workflows/validate.yml. Slice S5 added tests/test_gate_loop_views.py and tests/test_gate_loop_probes.py to the narrowed list with its block of reasoning, and slice S8's nine additions and their measurement block sit immediately after — two acts appending to one list. Both hunks take both sides; main's side of each is empty, and git diff origin/main -- .github/workflows/validate.yml removes no line. The list is fifteen files in landing order: the four shape assertions (§ 4.1 / § 4.4), S5's two gate-loop suites, S8's nine.

validate at 080dcfcd: run 34785404471 SUCCESS — 301 passed, 23 skipped, unchanged from the pre-merge head, which is the point: merging the base moved the list's contents and not its verdict.

For the landing gate: Copilot did not re-review at 080dcfcd, and it had nothing to review. Its last review is at 582ae21a (2026-09-13T03:35Z), and the merge added no reviewable content — proven, not assumed:

$ git diff origin/main...080dcfcd      | git hash-object --stdin
b131ecd11a399faab50694b003ef5a317ad712f5
$ git diff 7b86350a...582ae21a          | git hash-object --stdin
b131ecd11a399faab50694b003ef5a317ad712f5

The pull request's own diff is byte-identical before and after the merge, because all the merge did was replace the old base (build/s5-gate-loop-bindings @ 7b86350a) with the same content as it landed on main (c1ad341a). Review threads stand at 5 total / 0 unresolved.


LANDING CORRECTION (2026-09-15) — two stayers, not one; nine serve-root files, not eight

The rounds above were written against "31 files, 47 sites. 46 move here. The 47th …". Three of those figures are re-derived at landing, under an instrument that is named so it can be re-run.

The instrument. A ROOT SPELLING is a line that spells the literal root REPO_ROOT / "src" / "openxdox" / "web" in any of its Path or slash forms. Counted over the revisions, never a worktree:

$ git grep -nE '"openxdox"[^)]*"web"|openxdox/web' <rev> -- tests
  af15f712  (the boundary note's own census head)  31 files, 46 spellings
  c1ad341a  (openXdox-code main, S5 leg A landed)  31 files, 46 spellings
  080dcfcd  (this head)                             4 files,  4 spellings

Those three rows are openDox-spec #11 (boundary-note amendment #3)'s own second-instrument table, reproduced here on the nose — a second pair of eyes with a different tool, agreeing file-for-file and line-for-line.

What is corrected.

  • Two of the 46 stay, not one. tests/test_gate_console.py:58 (named in the rounds above, correct because S5 leg A places gate.js at this leg) and tests/tools/playwright-smoke.py:282, which the earlier count missed because it is a tool outside validate's list rather than a suite. Both files are byte-identical to main at this head — git diff c1ad341a 080dcfcd -- <file> is empty for each. So 44 move, not 46.
  • Nine files use the root as a serve root, not eight — the eight suites named above plus tests/tools/playwright-smoke.py, and all nine pass it straight to serve_mod.build_server(...). With the 22 that resolve a concrete views/<name>.js module under it, that is the 31: 22 + 9, not 23 + 8.
  • The 22 is not a correction of § 1.2(d)'s 23, and § 1.2(d) is not wrong. Amendment Level the openXdox-code leg scaffold for the carve (OQ-O): the import root #3 recovered § 1.2(d)'s instrument and reproduced its 23 exactly at the census tree; of those 23, the ones that ALSO root at src/openxdox/web number 22. The round-2 sentence above had conflated the two sets. Nothing here asks amendment Level the openXdox-code leg scaffold for the carve (OQ-O): the import root #3 to move that figure.
  • The site total is left to the instrument that produced it. Amendment Level the openXdox-code leg scaffold for the carve (OQ-O): the import root #3 records in terms that a root spelled once can carry several derived sites (WEB = REPO_ROOT / … / "web" then GATE_JS = WEB / "views" / "gate.js" is one spelling and two sites), so a spelling total is never a site total and neither is a correction of the other. This lane cannot reproduce the round-2 "47 path sites", so it states the spelling count it can re-run and leaves the site count attributed rather than restated. The stayer count, by contrast, is wrong under every instrument: two spellings survive, not one.

One site is new, and intentionally so. tests/test_renderer.py:49's OWN_VIEWS, added here for swb-session.js — this column's own view, from S5 leg A — which is why the head reads 4 spellings and not 2. That file's three pre-existing spellings (:39, :1076, :1077) all moved: WEB = OPENDOX_WEB, views = WEB / "views", styles = (WEB / "styles.css"). The other two lines at this head are prose, not sites: .github/workflows/validate.yml:116's comment and tests/opendox_bundle.py:11's docstring, both added by this PR, and both outside the tests/**.py reading above.

Nothing in the tree changed and nothing is re-gated by this correction — validate run 34785404471 at 080dcfcd is the same run, with the same verdict. What was wrong was the count that described the change, not the change. The title, the headline above, the squash message and the S8 note on opensoft/openxFactory#656 all carry the measured shape; the round-2 sentence stays where it is, as history.

Brett Heap and others added 12 commits September 12, 2026 15:24
…ox package data

RULED Q5 (opensoft/openXfactory#656 comment 5648044785, Brett Heap,
2026-09-12): "where a contributed view module's BYTES come from: the COMPOSED
DEPLOYMENT assembles the bundle. openXdox ships its view modules as package
data; the composed install copies them into openDox's one `--web-dir` at
assembly; a contributed GET route is the declared hosted fallback."

The six files arrive BYTE-IDENTICAL to openDox-code's `fix/view-registry-fail-closed`
head `cb343ae8`; every edit the rulings ask for lands in the next commit, so the
move and the contract work are separately reviewable.

WHY SIX AND NOT FOUR. openDox-spec `docs/front-end-package-boundary.md` § 5 row
S5 (@ 7d12428c) is "the four class-B files AND ALL 13 ROUTE CONSTANTS -- now all
declared in class-B files -- move behind a binding openXdox supplies". After
slice S4 those thirteen sit in SIX class-B files, not four: S4 split four of
them into two NEW class-B modules, `views/gate-lens.js` and
`views/gate-projects.js`, whose own header says in as many words "AT S5 THIS
FILE LEAVES THE BUNDLE". Leaving them behind would leave their `gate.lens` /
`gate.projects` entries in `app.js`'s CORE arm, and § 4.5 assertion 2's six
remaining gate sites are exactly those entries' `routes:` declarations.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… bytes and its hook

The half of slice S5 that lives at this leg. openDox-spec
`docs/front-end-package-boundary.md` § 5 row S5 @ `7d12428c`; the contract is
openXdox-spec `docs/gate-loop-view-contract.md` @ `d73767b7`, whose § 8 Q1-Q12
were RULED by Brett Heap on 2026-09-12 at opensoft/openXfactory#656 comments
`5648044785`, `5648049748` and `5648065587`.

WHAT EACH RULING PUT WHERE
* Q5  `src/openxdox/web_assets.py` — the modules are package data
      (`pyproject.toml`'s `[tool.setuptools.package-data]`) and
      `install_view_modules(web_dir)` is the composed install's hook;
      `src/openxdox/serve_views.py` is the DECLARED HOSTED FALLBACK, six EXACT
      GET bindings and never a `/views/` prefix, which would have made this
      column answer for openDox's own view modules.
* Q2  every binding declares an `exports` tuple — `isGateBearing` (the reach
      openDox's app.js made past the declaration) and `firstEditTransport`
      (Q10) are NAMED.
* Q3  every entry is `mount(host, snapshot, ctx)`. `mountGateBar` was
      `(container, ctx, opts)`; this slice is where Q3's "one declared
      exception until S5 rewrites it" ends.
* Q4  `requires` is a dotted `/capabilities` path, declared per binding against
      its own behaviour: the three bindings that degrade to a CLI descriptor
      without the capability require nothing (the gate bar's
      `requires: ["actions.gate"]` was written when nothing read it), the three
      that mount a live gate control or nothing require `actions.gate`.
* Q8  `dispose.js` no longer appends its refusal panel to `document.body`: its
      entry `mountRefusalPanel` takes the shell's `page-overlay` host.
* Q9  no binding names `wheel-intent` or `dispose-intent`; they stay declared,
      unhosted and unread, and this is the record on this side of the seam.
* Q12 the four computed `/actions/gate/<verb>` routes are literals in
      `dispose.js` and declared on the `gate.dispose` binding — seventeen routes
      in all: § 1.2(c)'s thirteen constants plus these four.
* Q6  (counterpart) `BUNDLE_REACH` declares what each module imports from
      openDox's bundle; `./helpers.js` is the ruled guarantee and the rest is
      measured, not silent.
* Q7  NOT realized and NOT skipped: `STYLE_RESIDUE` records the measurement (51
      classes exclusive to this column, 24 shared) and the floor constraint that
      blocks the move — `styles.css` is a `moved_verbatim` carve row whose
      declared-edit vocabulary has no class for a stylesheet block leaving for
      another leg, the same wall slice S6 met and withdrew from.

The bindings are DATA and are materialized through a DEFERRED `opendox` import:
this leg pins an `opendox` older than the view registry itself, so an
import-time reach would make the module unimportable under its own declared
dependency. `tests/test_gate_loop_views.py` asserts the data unconditionally and
SKIPS — never fails — the three materialization assertions where the pinned
openDox predates the contract. The pin bump is owed at landing.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…t ./helpers.js and nothing else

RULED counterpart Q6 (opensoft/openXfactory#656 comment `5649094228`, Brett
Heap, 2026-09-12, by interactive multi-choice): "what a CONTRIBUTED view module
may IMPORT from openDox's bundle: `./views/helpers.js` and NOTHING ELSE. Every
other need reaches the binding through its `ctx` (Q1-Q4) or its own package
(Q5)."

WHAT WAS OPEN. The same comment CORRECTS `5648065587`: the sitting's first batch
put the BOUNDARY note's Q6 (the S8 re-destination form) to Brett Heap, not the
COUNTERPART note's Q6, so at `01b06c94` this leg carried the reach as MEASURED
RESIDUE — `BUNDLE_REACH` named `./lens-model.js` (`gate-lens.js`),
`./intent-binding.js` (`dispose.js`) and `./staging-workbench-model.js`
(`swb-create.js`, `swb-session.js`), with the record saying the table was "the
measurement a guarantee-list ruling would be made against". The ruling came and
granted no list.

WHAT MOVED, AND WHY THIS WAY. Nothing was vendored. Copying openDox's request
builders into the column that does not own them would have put a second spelling
of openDox's wire bodies one repository over, and the first divergence would have
been silent. Every closed reach is a `ctx` facet instead, declared in
`CTX_MODEL_REACH` and refused BY NAME at the mount:

* `gate.lens` — `ctx.model.{recipeRequest,clusterRequest}`; the mount renders the
  refusal in its own outcome panel and does not offer the verb.
* `gate.dispose` — `ctx.intent.{emit,renderChips}`; the tray already took its
  hosted context through `opts.intent`, so the emitter and the chip renderer
  travel the same way. `intent.emit || emitIntent` is gone: a fallback into a
  module this column may not import is a refusal, not a default.
* `gate.workbench.create` — `ctx.model.{createRequest,createDocumentCommand,
  consoleHeaders,withConsoleRepair,CONTINUATIONS}`.
* `gate.workbench.session` — the nine model functions, installed once at
  `mountSessionAffordances` and once in `firstEditTransport` (RULED Q10 reaches
  that export through the registry, so its `ctx.model` arrives in the options
  object its one caller already builds).

WHAT THE COLUMN DECLARES INSTEAD OF IMPORTING. `swb-session.js` now declares the
six affordance tokens, `SESSION_AFFORDANCES`, `SESSION_VERBS` and
`SESSION_LABELS` itself — RULED Q3's own precedent from slice S4
(`5642758731`: "a route constant travels with the binding that calls it, never
with the model that happens to declare it"). Those tokens KEY this module's own
`SESSION_ROUTES` table at MODULE SCOPE, which a ctx-installed model cannot
supply in time; they name the gate verbs this column's own `serve_gate.py`
answers; and after slice S5 no file in openDox's bundle reads one of them. The
values are byte-identical to the model's, and the new test holds the verbs to
`gate_routes.SESSION_BEARING_VERBS` — parsed with `ast`, never imported, the
posture `test_no_hardcoded_status_words.py` already takes.

Five tests: the Q6 rule itself (no specifier but the guarantee and this column's
own modules), the declaration, the ctx reach against what each module really
reads, the three closed reaches by name, and the vocabulary + verb agreement.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…ey drive

THE OWED HALF OF THE MOVE. Slice S4 (openDox-code#17) split four of the thirteen
gate route constants into two NEW class-B modules and proved the split by
DRIVING them: five node probes that mount `views/gate-lens.js` and
`views/gate-projects.js` against a stubbed DOM, click their controls and assert
the route, the method and the request BODY that reach an injected fetcher. S5
moves both modules into this package as package data (RULED Q5,
`openxFactory#656` comment `5648044785`), and openDox-code#20 drops the probes
from `tests/test_split_route_tails.py` because they would be asserting against
files that bundle no longer ships. Deleting behavioural coverage in a refactor
slice is how a move that passes every shape assertion silently breaks a verb —
that suite's own header calls it "the worst possible outcome of this slice" — so
the probes were PORTED.

STRONGER HERE THAN THERE. The openDox-side original imported the modules out of
the bundle they happened to sit in. Each probe here assembles a COMPOSED bundle
first — openDox's own `web/`, with this column's six modules placed into it by
`web_assets.install_view_modules()`, RULED Q5's own hook — and imports them from
THERE. What is measured is the shipped byte in the shipped position, with
`./helpers.js` resolving the way it resolves in a composed install, and the
assembly hook is exercised by every probe rather than asserted once.

THREE PROBES MORE THAN THE FIVE, all of them RULED counterpart Q6's (`5649094228`):
* a binding whose shell supplied no `ctx.model` REFUSES AT THE MOUNT, naming the
  missing name and the ruling, and offers no control;
* the six affordance tokens this column now DECLARES are held to openDox's model
  in the assembled bundle, which is the one drift risk the division leaves;
* the session bar mounts its live affordances through a SUPPLIED model — the
  vocabulary the column's, the wire body openDox's, the two meeting only at `ctx`.

The two lens probes carry `ctx.model` now, and the two project probes take RULED
Q3's `mount(host, snapshot, ctx)` — the S4 originals passed their context
second, which is exactly the signature this slice ended.

SKIPS, NEVER STAND-INS. This leg pins an `opendox` older than both the view
registry and openDox's own packaging fix, so where the installed `opendox`
carries no `web/` there is nothing to assemble into and every probe skips with
that reason named. They run in full at the pin bump owed at landing — the same
bump `test_gate_loop_views.py`'s three materialization assertions wait for.
Verified locally against a source-installed openDox: 8 passed.

`tests/test_gate_loop_probes.py` joins `validate`'s narrowed list on the footing
its five neighbours stand on. A CREATED file (RULED OQ-C).

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…loor cannot declare

MEASURED, not suspected. `scripts/verify-carve-arrival.py --phase B` (openxFactory
`feat/carve-manifest-re-destined-form`, #1011, with #1010 merged in locally so the
manifest is the one that will exist when both land) refuses each of the four
class-B files this slice re-destines at CARVE LINE 1:

    arrival-undeclared-edit — src/opendox/web/views/dispose.js was edited at
    carve-commit line(s) [1, 29, 30, …] which the row for
    scripts/ideation_dashboard/web/views/dispose.js does not declare

Line 1 is the eighteen-line "THIS FILE IS openXdox's NOW" banner the move added.
RULING OQ-1's edit classes are closed at three — `import rewrites`,
`path constants`, `adapter calls` — and an ADDED PROSE BANNER is in none of them,
so the annotation this slice owes could not declare it: the payload would have had
to invent a class, and inventing a class is deleting the floor. Exactly the wall
slice S6 met on one test file and WITHDREW from, and the wall RULED Q7's CSS half
still sits behind.

THE BANNER GOES, THE FACTS STAY. Everything it said is already recorded where a
reader can reach it and where no row binds the bytes: `src/openxdox/view_extensions.py`
carries the Q5 provenance, the binding that declares each module, `BUNDLE_REACH`
and `CTX_MODEL_REACH`; `src/openxdox/web_assets.py` carries the assembly hook;
`tests/test_gate_loop_views.py` holds every module to both. A comment repeating
them inside an ARRIVED file bought nothing and cost the four rows their
declarability.

`views/gate-lens.js` and `views/gate-projects.js` KEEP their banners — slice S4
CREATED both, no row places them (RULED OQ-C), and they are admitted by path — and
both banners are corrected to RULED counterpart Q6's own words (`5649094228`)
instead of the pre-ruling "declared in BUNDLE_REACH" phrasing.

AFTER THIS COMMIT the four rows' refusals are declarable end to end: every
remaining edited line is an `import rewrites` or an `adapter calls` edit, and the
annotation payload at `<lane scratch>/annotation/s5-edits.md` carries them
carve-numbered, per class, with the refusals verbatim.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… files (round 1)

All three are in CREATED files — nothing here touches an ARRIVED module, whose
bytes are bound by the carve floor and whose declared lines are the annotation
payload this slice owes.

1. `web_assets.install_view_modules(..., overwrite=False)` checked each
   destination immediately before copying it, so a collision on a LATER module
   left a HALF-ASSEMBLED bundle: some of the six placed, the rest not, and a
   refusal that had already mutated the tree it was refusing to mutate. The
   check now runs over every module before the first write, and the refusal
   names all the collisions and says "Nothing was copied". The test asserts the
   bundle is untouched, not only that the call raised.

2. `shutil.copyfile` was unwrapped, so a read-only bundle, a full disk or a
   permission reached the installer as a bare `OSError` while every other
   failure of the same act is a `ViewAssetError` naming the path. One exception
   type for one act; the cause is chained.

3. `tests/test_gate_loop_probes.py`'s composed bundle now declares
   `{"type": "module"}`. Every module in it is an ES module, but a `.js` file's
   type is decided by the nearest `package.json`, and a copy under `tmp_path`
   has no ancestor carrying one — the probes pass on a runtime with
   module-syntax detection and would have fallen to Node's CommonJS reading of
   `export` on one without. In the real deployment openDox's own package answers
   this; in the fixture the fixture answers it, so what the probe measures is
   the module the shell loads.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
S6's /source pair landed on main (#17); leg A takes it before its own round-2
fixes so the probes and the narrowed validate measure the same tree main has.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
openDox-code#20's round-2 review found that `views/dispose.js` leaving that
bundle left three probe files behind still copying and importing it. One of
them, `tests/test_intent_binding_dom.py`, is slice S2's own CREATED file and
drives the REAL `dispose.js`: the module graph loading with the never-carved
`views/intent-feed.js` absent (RULED OQ-F `not_moved`), and the tray rendering
its three verdict buttons with and without a contributed feed.

`dispose.js` is this column's package data now, so those probes come too, on
exactly the precedent the five slice-S4 probes in this file already set: a
behaviour proof that stays in the repository the behaviour left is a proof of
nothing. openDox-code#20 drops them from the file they came from and keeps
everything there that is still about its own bundle.

The harness comes with them — slice S2's `walk()`-able DOM shim, whose
`innerHTML` setter throws on any non-empty assignment — because re-expressing
the assertions against a different shim would be rewriting the proof while
claiming to move it. What is stronger here is what is stronger for the S4 five:
the modules are imported out of an ASSEMBLED bundle, so `./helpers.js` and
`./intent-binding.js` resolve the way they resolve in a composed install — and
the graph probe is now the ONLY tree in which both halves exist at once, since
`wheel.js` is openDox's and `dispose.js` is ours.

ONE FACT MOVED, and it is RULED counterpart Q6's (`#656` comment `5649094228`):
the tray used to reach `renderIntentChips` by importing openDox's
`intent-binding.js` itself, and a contributed module may now import
`./views/helpers.js` and nothing else — so the chip renderer arrives in
`opts.intent` beside the emitter, supplied by the shell that starts the feed.
The probe is the shell here, so it supplies what the shell supplies.

Four ported cases (12 pass in this file).

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…re too

openDox-code's `tests/test_bullseye_widget.py` asserts the draft view's ONE
action by quoting two files back: `views/staging-workbench.js`, which is that
bundle's own, and `views/swb-create.js`, which is this column's package data as
of slice S5. Five of its statements read the second — the relocated actions
host, its two appends, "still exactly one write", and the tile path's untouched
default label — and reading them out of `src/opendox/web/views/` is asserting
against a file that bundle no longer ships (Copilot review of openDox-code#20,
round 2).

They come here, to the column that owns the module they quote, with the
browser-measured finding they were written for kept verbatim. openDox-code#20
keeps every statement in that test about `staging-workbench.js` and
`styles.css`, which are what it is named for.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…regression

**`gate.dispose` must NOT require `actions.gate`, and that is the regression.**
This module is the one binding of the six that serves TWO mutually exclusive
transports: the LOCAL executing gate (`actions.gate`, loopback) and the HOSTED
intent plane (`actions.intent`, which openDox's `serve.py` computes as
`intent = not loopback`). openDox's `views/wheel.js` mounts this namespace's
tray when `gateCapable(caps) || intentCapable(caps)` and hands it the hosted
emitter and chip renderer in the second case — so declaring `actions.gate` made
`resolveView` answer `null` on every hosted plane and took the tray, its chips
and `panelEntry`'s refusal surface away from the plane the intent work exists
for. A capability declaration deleting the surface it was meant to describe is
the exact defect the gate bar's own transitional `requires: ["actions.gate"]`
already was, and this slice's own test says so in those words. `requires: ()`,
with a new test that states the reason and checks it against the module rather
than against a comment.

**`web_assets.install_view_modules()` resolves every source before the first
copy.** `module_path()` raises for a declared module the installed package does
not carry, and resolving it inside the copy loop meant a later missing module
refused only after the earlier ones were written — a bundle carrying three of
six, which an installer may serve or retry over. Same reasoning as round 1's
collision sweep, one round later; the I/O the filesystem decides stays in the
loop, because no pre-check can foresee it.

**Two in-repo harnesses take this slice's API migration.**
`tests/test_staging_workbench.py`'s ending replay called
`mountSessionAffordances(host, ctx, opts)` — RULED Q3 makes that
`mount(host, snapshot, ctx)` with the session context under `ctx.session`, so
`opts` was arriving as the SNAPSHOT and the mount took the refusal path before
the replay could exercise the ending it exists to measure.
`tests/test_session_confinement.py`'s repair harness called
`firstEditTransport({ fetcher, caps, repair })` — RULED counterpart Q6 makes the
model travel through `ctx`, so a caller that omits it gets a refusal closure by
design. Both are ARRIVED files and both edits are `adapter calls` — a call site
reaching a name whose shape the ruling changed — declared in the S5 annotation
payload, on the precedent slice S3 set migrating `test_bullseye_widget.py` "in
the same act rather than left to rot".

Neither harness can RUN at this leg yet, and that is not this slice's doing:
both point `WEB` at `src/openxdox/web`, a directory that did not exist here
until this slice created it and which carries only this column's six modules —
never `helpers.js`, `staging-workbench-model.js` or the never-carved
`intent-feed.js`. They have raised `FileNotFoundError` at this leg since the
carve commit, they are not on the narrowed `validate` list, and nothing under
`tests/` is collectable here at all (`doc_health` is unimportable). Completing
the migration now means the BUILD arc has one thing to fix there and not two.

Narrowed validate: 169 passed.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…nd a transport that outlives its model

**A built transport must keep the model it validated.** Every other reader of
this module's installed model runs INSIDE the mount that installed it;
`firstEditTransport` does not — RULED Q10 reaches it through the REGISTRY rather
than through a mount, so it returns a function the canvas holds and calls later.
While that function read `MODEL` off the module global, a second mount or a
second transport built in between re-pointed it, and the first editor's Save was
then shaped and read by SOMEONE ELSE'S model — or by `null`, which `model()`
turns into a throw from inside a click handler. The transport now takes the four
names it needs off the namespace the same call checked, and `submitSession` takes
that namespace as its last argument so the headers and the console repair come
from it too. A mount still reads the module-level install, which is the shape
every affordance in this file has always used.

New probe `test_js_a_built_transport_keeps_the_model_it_validated`: two
transports with two models, BOTH built before EITHER is called — the interleaving
the global could not survive — and each must answer with its own, in the request
BODY as well as in the verdict.

**`tests/test_gate_console.py` quoted a path the carve itself moved.**
`views/gate.js`'s `CLI` constant was repointed from
`scripts/ideation_dashboard/cli.py` to `src/opendox/cli.py` by the carve's own
declared `path constants` edit at openDox-code; this slice brings the module into
the same repository as that suite, and three expectations still quoted the
pre-carve path. They are repointed in the same act, under the same edit class the
manifest already uses for this exact rewrite — the class is `path constants`
precisely because this is what it is for — and declared in the S5 annotation
payload.

Narrowed validate: 169 passed.

Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…g does not have

`docs/front-end-package-boundary.md` § 1.2(d) measured the defect this slice exists to repair:
23 test files here name a `views/<name>.js` path and "every one of them resolves it under
`REPO_ROOT / "src" / "openxdox" / "web"` — a directory openXdox-code does not have … the carve's
`import rewrites` edit class rewrote the path constant and pointed the tests at the wrong leg."
Eight more files name the same constant as a SERVE ROOT without naming a view module, so the
real count is 31 files and 47 sites; 46 of them move here and the 47th
(`tests/test_gate_console.py:58`) is CORRECT as it stands, because S5 leg A places
`src/openxdox/web/views/gate.js` at this leg.

THE FILES DO NOT MOVE, AND THAT IS MEASURED, NOT ASSUMED. § 5's S8 row infers from § 1.2(d)
that the 23 "go to the leg the census says owns each bundle file", and § 6 Q6 built the
`re_destined:` form for exactly that. An `ast` walk of every module-level import says the
inference does not hold for a single one of them: every one imports a real `openxdox` module —
`openxdox.generator`, `openxdox.snapshot_registry`, `openxdox.gate_console`,
`openxdox.gate_routes`, `openxdox.doxbench_scope`, `openxdox.round_trip` — and RULED OQ-G's TEST
HOMES rule places a mixed file HERE precisely because openXdox pins openDox and openDox pins
nothing back (RULED OQ-2). Moved to openDox-code each one fails on its first import line, and
declaring `openxdox` there would be the unlawful direction `tests/test_dependency_direction.py`
exists to refuse. The defect is the PATH CONSTANT — which is what § 1.2(d)'s own sentence says.

WHERE THE BUNDLE ACTUALLY IS: in the openDox this leg PINS. `tests/opendox_bundle.py` (a CREATED
file, no manifest row per RULED OQ-C, admitted by name in openxFactory's
`docs/opendox-carve-admissions.yaml`) resolves `Path(opendox.__file__).parent / "web"` and SKIPS
the importing module where the pin carries no bundle — the identical resolution and the identical
skip S5 landed at this leg in `tests/test_gate_loop_probes.py::_opendox_bundle`, for the identical
reason. A skipped suite says "the pin is behind"; a failing one would say "the code is wrong", and
only one of those is true until the pin advances past openDox-code#20's packaging declaration.

FOUR SUITES ASSERT ACROSS THE SEAM and take the COMPOSED root instead — `test_doxbench_transport`,
`test_renderer`, `test_session_confinement`, `test_staging_workbench` read openDox's modules AND
the six this column contributes back. Neither root alone answers them, and RULED Q5 says what does:
`opendox_bundle.composed()` builds openDox's bundle with this column's modules installed into it BY
THE ASSEMBLY HOOK ITSELF (`openxdox.web_assets.install_view_modules`), once per process, read-only —
the same call `serve_views` and S5's own `bundle` fixture make, rather than a hand-rolled copy that
could drift from it.

Every edited line is DECLARED on its own row in the paired openxFactory row-annotation pull request
(Q-L1 binds every § 3.4 slice), class `path constants`, and that annotation lands FIRST.

`validate`'s list is NOT un-narrowed here, and the reason is measured rather than asserted: every
one of the 31 files still errors at COLLECTION on `src/openxdox/generator.py:66`'s
`from doc_health import corpus` — an openxFactory-only package present at neither leg — which sits
AHEAD of this repair in the import order. That is exactly what RULED Q-L8 (b′) says it is waiting
on ("until the BUILD arc … inverts the cross-column dependencies"). Naming any of them in the
workflow today would put the required check red for a defect this slice does not own. The six-file
list is re-run unchanged and is green: 154 passed, 16 skipped.

Refs opensoft/openXfactory#656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 13, 2026 02:08
@sourcery-ai

sourcery-ai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR corrects 46 test bundle paths to read web assets from the installed openDox package rather than the absent local openXdox source directory, while preserving seam-crossing coverage through a composed bundle assembled by the production installation hook and skipping collection when the current pin lacks packaged assets.

File-Level Changes

Change Details Files
Centralize resolution of the installed openDox web bundle and support seam-spanning composed bundles.
  • Add module-level bundle discovery with marker validation and an explicit skip when the pinned package has no web assets.
  • Build a cached temporary composed bundle by copying openDox assets and invoking web_assets.install_view_modules().
  • Use the installed bundle for ordinary view/serve-root paths and the composed bundle for cross-column tests.
tests/opendox_bundle.py
tests/test_canvas.py
tests/test_doxbench_abstract_route.py
tests/test_doxbench_blank_reason.py
tests/test_doxbench_mutation_boundary.py
tests/test_doxbench_request_handling.py
tests/test_doxbench_save.py
tests/test_doxbench_scope.py
tests/test_doxbench_transport.py
tests/test_doxbench_turns.py
tests/test_doxchat_model_intake.py
tests/test_edit_action.py
tests/test_explorer_viewer.py
tests/test_gate_failure_diagnostics.py
tests/test_gateway_provenance.py
tests/test_grouping.py
tests/test_hosted_actor.py
tests/test_notebook_action.py
tests/test_project_aggregates.py
tests/test_renderer.py
tests/test_repo_selector.py
tests/test_round_trip.py
tests/test_session_confinement.py
tests/test_session_document_ownership.py
tests/test_session_gates.py
tests/test_session_runbook.py
tests/test_session_snapshot.py
tests/test_session_verbs.py
tests/test_source_dot_directories.py
tests/test_staging_workbench.py
tests/test_wheel_model.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

🟡 Changes recommended

Five unresolved findings remain, including four critical issues and one moderate issue.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates test web-asset paths to use the installed openDox bundle, with composed-bundle support for cross-package tests.

Changes:

  • Adds shared installed/composed bundle helpers with pin-aware skipping.
  • Repoints 46 test asset references.
  • Uses composed bundles for seam-spanning tests.
File summaries
File Summary / review result
tests/test_wheel_model.py Resolves assets from installed openDox.
tests/test_staging_workbench.py Uses the composed bundle. Critical (2 votes): stale intent-feed.js copy will fail with FileNotFoundError.
tests/test_source_dot_directories.py Resolves assets from installed openDox.
tests/test_session_verbs.py Resolves assets from installed openDox.
tests/test_session_snapshot.py Resolves assets from installed openDox.
tests/test_session_runbook.py Resolves model assets from installed openDox.
tests/test_session_gates.py Uses the installed bundle root.
tests/test_session_document_ownership.py Resolves view assets from installed openDox.
tests/test_session_confinement.py Uses the composed bundle.
tests/test_round_trip.py Uses installed outline assets. Critical (1 vote): the temporary Node harness does not mark the imported .js module as ESM.
tests/test_repo_selector.py Resolves assets from installed openDox.
tests/test_renderer.py Uses the composed bundle. Critical (2 votes): contributed gate-projects.js fetches will invalidate exact fetch assertions.
tests/test_project_aggregates.py Resolves assets from installed openDox.
tests/test_notebook_action.py Resolves assets from installed openDox.
tests/test_hosted_actor.py Uses the installed bundle root.
tests/test_grouping.py Resolves assets from installed openDox.
tests/test_gateway_provenance.py Uses the installed bundle root.
tests/test_gate_failure_diagnostics.py Uses the installed bundle root.
tests/test_explorer_viewer.py Resolves assets from installed openDox.
tests/test_edit_action.py Resolves assets from installed openDox.
tests/test_doxchat_model_intake.py Resolves assets from installed openDox.
tests/test_doxbench_turns.py Resolves assets from installed openDox.
tests/test_doxbench_transport.py Uses the composed bundle.
tests/test_doxbench_scope.py Resolves view assets from installed openDox.
tests/test_doxbench_save.py Resolves assets from installed openDox.
tests/test_doxbench_request_handling.py Resolves assets from installed openDox.
tests/test_doxbench_mutation_boundary.py Uses installed openDox assets. Critical (1 vote): EDITOR_JS and STATE_JS still point to an absent directory.
tests/test_doxbench_blank_reason.py Resolves chat assets from installed openDox.
tests/test_doxbench_abstract_route.py Resolves assets from installed openDox.
tests/test_canvas.py Resolves assets from installed openDox.
tests/opendox_bundle.py Adds installed/composed bundle helpers. Moderate (1 vote): module-level skipping suppresses unrelated tests in mixed suites.
Review details

Suppressed comments (1)

tests/opendox_bundle.py:83

  • This module-level skip runs while each importing test module is collected, so a pinned openDox without a web bundle suppresses every test in all of these mixed suites, not just the asset probes. For example, test_canvas.py also contains draft-boundary and validator tests that do not read WEB; use a fixture or lazy bundle lookup so only bundle-dependent tests skip and unrelated coverage remains runnable.
    web = find()
    if web is None:
        pytest.skip(_REASON, allow_module_level=True)
  • Files reviewed: 31/31 changed files
  • Comments generated: 4
  • 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 tests/test_renderer.py Resolved
Comment thread tests/test_round_trip.py Resolved
Comment thread tests/test_staging_workbench.py Resolved
…ep missed, one scan widened, one ESM marker owed

FINDING 1 (`tests/test_doxbench_mutation_boundary.py`) — ACCURATE, and it is the same defect this
slice exists to repair, in a spelling the first pass did not match. `EDITOR_JS` and `STATE_JS` were
written as a SIX-LINE `REPO_ROOT / "scripts" / "ideation_dashboard" / "web" / "views" / <name>`
chain — a PRE-CARVE path the carve's `import rewrites` class never reached at all — where every
other root in this file spells `src/openxdox/web`. The fixture reads and copies both, so the module
would have gone on failing FileNotFoundError after the pin bump with the rest of the file repaired
around it. Both now resolve through the pinned bundle. Their carve lines were already declared on
the row (`:50`, `:58`), so the manifest annotation is unmoved.

FINDING 2 (`tests/test_renderer.py`) — ACCURATE, and a real widening. `_bundle_files()` rglobs the
root, and `test_the_session_transport_is_the_only_new_fetch_site` pins an EXACT `by_file` set and
five exact per-file counts. Pointed at the COMPOSED root that scan sweeps in this column's six
contributed modules, and `gate-projects.js` carries two fallback `fetch(` calls — so a pin about
openDox's CLASS-A surface would have failed on a class-B module the moment the pin carried a
bundle. The scan goes back to openDox's bundle ALONE; the one module of this column the suite reads
(`swb-session.js`, asserted ABSENT from the class-A set) is named explicitly out of this leg's own
package data through a new `OWN_VIEWS` root. The composed root is for suites that assert ACROSS the
seam, and this suite's pin is one side of it.

FINDING 3 (`tests/test_round_trip.py`) — ACCURATE, and the repair is in the helper rather than in
the file. Node decides a `.js` file's format from the NEAREST `package.json` TO THE FILE. openDox
carries one at its repository root — `{"type": "module"}`, added by openDox-code#14 for exactly this
— but it sits ABOVE `src/opendox/web/`, so it is not in the wheel's `package-data` and an INSTALLED
bundle has no ESM marker above it at all. A `.mjs` harness importing a module of it by absolute path
would fall to node's `--experimental-detect-module` heuristic: on by default today, a warning, and
not a thing a required check should rest on. `tests/opendox_bundle.py` now STAGES the pinned bundle
once per process and writes the marker beside it — "an explicit, version-independent answer", in
openDox-code's own `package.json` docstring's words, and what slice S5's `test_gate_loop_probes.py`
fixture already does for the composed case. `composed()` builds on the staged root, so it inherits
the marker instead of writing a second one.

Proven end-to-end against a simulated pin bump: the staged root is ESM-marked and carries openDox's
41 files and none of this column's; `node` imports `views/outline-model.js` from it by absolute path
and reads its exports; `composed()` still carries both columns and the marker. The six-file
`validate` list is re-run unchanged and green.

Refs opensoft/openXfactory#656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 13, 2026 02:31

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.

🔵 Needs a closer look

Three moderate issues must be addressed before approval.

Review details

Suppressed comments (3)

tests/opendox_bundle.py:124

  • require() uses pytest.skip(..., allow_module_level=True) and this assignment executes it while every importing test module is collected. That means a missing openDox bundle skips entire mixed suites, not just their JS checks: for example, test_doxbench_turns.py has dozens of pure Python tests before its few bundle reads, while test_session_runbook.py, test_session_document_ownership.py, and test_doxbench_scope.py likewise contain substantial non-bundle coverage. Defer require() to bundle-specific fixtures/helpers (or split those checks) so an old pin skips only tests that actually need the bundle.
OPENDOX_WEB = require()

tests/test_doxbench_save.py:525

  • Because OPENDOX_WEB = require() is evaluated during module import and raises a module-level skip when the pinned package has no bundle, this import skips the entire test_doxbench_save.py module. That includes the pure eligibility and transaction tests at lines 120–497, which do not read SAVE_JS or any web asset, so they are silently omitted in the current pinned state. Keep the bundle-dependent probes in a separate module or defer the bundle requirement into only those tests/fixtures so the Python coverage still runs.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_staging_workbench.py:51

  • Changing WEB to the composed bundle makes _run_ending_replay() later copy WEB / "views" / "intent-feed.js", but the composed helper only stages openDox's bundle plus this leg's six modules, and neither leg carries intent-feed.js. Once the pinned bundle is present and this module runs, that copy raises FileNotFoundError; remove the stale file from this harness or use the existing fake-feed setup instead.
WEB = opendox_bundle.composed()
  • Files reviewed: 31/31 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…, a per-test bundle skip, nine suites join

RULED Q-L8 (b′) narrowed this leg's required check to the scaffold's shape assertions "until
the BUILD arc inverts the cross-column dependencies". The note's § 5 S8 row lifts it FOR THE
WEB SUITES, and this commit lifts it as far as the measurement allows: 154 passed / 16 skipped
becomes 301 passed / 23 skipped, every file measured under the workflow's own invocation
before it was named.

THREE PRE-CARVE `MODULE_PATH` READS, the same `path constants` class the bundle sweep repaired
and the same class openDox-code#23 repaired four of at its own leg. `REPO_ROOT / "scripts" /
"ideation_dashboard" / "<module>.py"` is where these modules lived BEFORE the carve; they are
openDox's now, and this leg reads openDox through the PIN — so the path is
`pathlib.Path(<the module this file already imports>.__file__)`, which needs no skip because a
module the file imported is installed by definition. `test_doxbench_abstract_store.py` 1 failed
-> 35 passed; `test_doxbench_telemetry.py` 1 failed -> 18 passed; `test_doxbench_turns.py`
37 failed / 146 passed -> 202 passed / 32 failed / 3 skipped.

A PER-TEST BUNDLE SKIP BESIDE THE MODULE-LEVEL ONE, and `test_doxbench_turns.py` is why it had
to exist. That suite has 183 tests of which THREE read a bundle file; binding `OPENDOX_WEB` at
its top level traded 37 failing tests for 183 SKIPPED ones — a repair that silences more than
it fixes, and a required check that could go green over a suite it no longer runs.
`opendox_bundle.web()` skips only the calling test; `OPENDOX_WEB` still skips the whole module
for the thirty suites whose SUBJECT is the bundle. `OPENDOX_WEB` is now resolved in a PEP 562
module `__getattr__` rather than at this module's own import, which is load-bearing and not a
style: evaluated at top level it skipped every module that imported ANY name from the file,
`web` included, so the per-test skip could not have existed beside it.

NINE SUITES JOIN THE SIX. `tests/test_doxbench_mutation_boundary.py` is the WEB suite among
them and the one of § 1.2(d)'s 23 that can be named today: with its path repaired it COLLECTS
and skips on the stated reason (this leg's pin predates openDox's `web/**` package-data
declaration) rather than erroring on a directory this leg does not have. The other eight were
already green and had no reason left to sit outside the check.

WHAT IS STILL NOT LIFTED, MEASURED. Thirty-seven of this leg's 88 test files fail COLLECTION on
an openxFactory-only package present at neither leg — 21 `ideation_dashboard`, 16 `doc_health`
(reached from `src/openxdox/generator.py:66`) — and past collection the same two reappear
inside the pinned openDox at `opendox/doxbench_packet.py:177`. Those 32 remaining
`test_doxbench_turns.py` failures are that one import, which is why that file is not named in
the list. The BUILD arc (split-opendox § 3.5/3.6) is what Q-L8 (b′) says lifts the rest.

Q-L1: the edits to ARRIVED files are declared on their rows in the paired openxFactory
annotation (opensoft/openXfactory#1025), which lands first. `tests/opendox_bundle.py` is a
CREATED file and carries an admission there instead.

Refs opensoft/openXfactory#656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 13, 2026 03:05

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.

🟡 Changes recommended

Unresolved findings cover CommonJS vendor staging, overly broad module-level skips, and a stale source path in test_round_trip.py.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (19)

tests/opendox_bundle.py:142

  • The default module_level=True skip is not safe for the current consumers: test_doxbench_scope.py has 32 tests but only its browser-parity helper reads the copied bundle, and test_doxbench_save.py has 25 server-side tests before this import. When the pinned bundle is absent, this raises a module-level skip and suppresses those unrelated tests instead of skipping only the bundle probes, reducing coverage in a full-tree run; use per-test web() resolution or split the mixed suites before applying the whole-module rule.
    So the rule is the subject, not the convenience: a module whose every test
    reads the bundle imports `OPENDOX_WEB` and skips whole; a module where the
    bundle is an aside calls this and skips the three tests that need it.

tests/test_doxbench_blank_reason.py:59

  • The first several dozen tests in this module exercise the Python blank-reason gates and do not need CHAT_MODEL_JS; only the later browser-parity fixtures do. When the pinned bundle is absent, this import skips the whole module and suppresses those server-side assertions as well. Resolve the bundle lazily in the JS fixtures/tests (or split the browser section) so an unavailable frontend does not hide the Python coverage.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_doxbench_request_handling.py:49

  • The request-reader/error-catalog tests before the server-backed cases are pure Python and do not need WEB; only the later build_server tests do. If the pinned bundle is absent, this import skips those independent boundary tests during collection. Move bundle resolution into the server/JS-dependent tests or split the module so the skip is not whole-file.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_doxbench_save.py:525

  • This module contains many bundle-independent transaction/eligibility tests before this import (for example test_* at lines 120–496). When the pinned opendox has no bundle, resolving OPENDOX_WEB here invokes require() with allow_module_level=True and skips the entire module, silently dropping those tests along with the JS checks. Resolve the bundle only in the bundle-dependent fixtures/tests (via opendox_bundle.web()), or split the JS section so the earlier server-side coverage still runs while the bundle is unavailable.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_doxbench_scope.py:29

  • test_doxbench_scope.py has many pure/server scope tests, while only the browser-parity helper needs MODEL_JS and WHEEL_MODEL_JS. If the pinned opendox has no bundle, this import skips the entire module and loses all of that independent scope coverage. Use opendox_bundle.web() inside _browser_projections or a fixture instead of resolving OPENDOX_WEB during collection.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_doxchat_model_intake.py:58

  • This suite has backend intake/ledger tests that do not require the browser bundle, while only the model/static parity checks and a later server helper use WEB. The module-level import therefore skips independent backend coverage whenever the pinned bundle is unavailable. Resolve the bundle only for the browser/server-dependent tests or split the sections.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_edit_action.py:29

  • The first dozen editor-route tests are Python-only; the bundle is only needed by the final edit.js Node probe and the serving helper. If the pin has no bundle, importing OPENDOX_WEB skips all of the route/security coverage before that probe. Resolve the path only in the bundle-dependent tests/helpers.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_gate_failure_diagnostics.py:54

  • Several diagnostics are pure Python boundary/record tests; only the server-backed cases need WEB. When the pinned bundle is absent, this module-level import skips those independent diagnostics as well. Resolve the web root inside the server-dependent tests/helper instead of during collection.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_gateway_provenance.py:76

  • This suite contains many Python provenance/record tests before the HTTP-serving checks that use WEB. A missing pinned bundle causes the import-time skip to discard those independent assertions too, rather than just the serving cases. Resolve OPENDOX_WEB in the web-dependent helper/tests (or split the suite).
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_notebook_action.py:43

  • Only the final JavaScript checks and the serving helper need NOTEBOOK_JS/WEB; the earlier notebook capability, path, and route tests are Python-only. With no installed bundle, this module-level import skips all of that independent coverage. Resolve the bundle lazily in the JS/HTTP-dependent tests or split the sections.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_project_aggregates.py:28

  • The aggregate derivation/index tests at the start of this module are pure Python and do not use WEB; only the later Node probes and one HTTP-serving test need the bundle. With the current pin, this module-level import skips the pure aggregate coverage too. Make the bundle lookup lazy in those dependent tests/fixtures (or split the frontend section) so the unavailable bundle does not suppress unrelated assertions.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_repo_selector.py:44

  • The repository-selector module mixes model-independent route/scoping assertions with a few JS/static checks. Resolving OPENDOX_WEB while importing the module makes all of those direct Python tests skip when the pin lacks a bundle, even though only the model/static cases need it. Make the model and serving paths lazy in their dependent tests/helpers or split the frontend section.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_round_trip.py:38

  • This hunk fixes the JavaScript input, but the same suite still reads REPO_ROOT / "scripts/ideation_dashboard/round_trip.py" at line 730. That file is absent from this leg; the implementation is src/openxdox/round_trip.py and is already imported as rt, so once the current dependency blocker is cleared the suite will fail on this stale source pin. Update that non-adjacent source path as part of the rewrite.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

OUTLINE_MODEL_JS = (
    OPENDOX_WEB / "views" / "outline-model.js")

tests/test_round_trip.py:35

  • This file has dozens of pure round-trip/document-health tests before the two Node checks that use OUTLINE_MODEL_JS. When the pinned bundle is unavailable, resolving OPENDOX_WEB during import skips the entire module and suppresses all of that Python coverage. Resolve the bundle only in the JS tests/fixtures (or split those tests) so the bundle skip remains per-test.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_document_ownership.py:54

  • Only the Node probe around line 318 reads WEB_VIEWS; the preceding route, ownership, and transaction tests are independent of the frontend bundle. A missing pinned bundle therefore skips this entire module at collection and hides those server-side checks. Resolve the bundle inside the Node test/fixture (or split that probe section) rather than importing OPENDOX_WEB at module scope.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_gates.py:78

  • The majority of this module exercises gate/session state through Python and CLI paths; only the HTTP-serving helper around line 289 needs a web root. A missing pinned bundle therefore skips all those independent gate tests at collection. Resolve the bundle inside the HTTP-dependent helper/test instead of importing OPENDOX_WEB at module scope.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_runbook.py:52

  • Only test_the_runbook_lists_the_posture_readings_the_page_can_produce needs MODEL_JS; the other runbook/parser/documentation tests do not read the bundle. With no bundle in the pinned opendox, this module-level import skips the entire file, so those independent checks disappear instead of just the one model-backed test. Import opendox_bundle and call web() inside the bundle-dependent test (or otherwise split the sections).
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_snapshot.py:67

  • This module has many direct snapshot/route tests, while only its model/static checks and serving helper need the installed web tree. With no bundle in the current pin, the module-level import skips all of the independent snapshot coverage. Resolve the model/serve paths lazily in their dependent tests or split the frontend checks out.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_verbs.py:103

  • Most of this module tests session verbs directly through Python/CLI; the bundle is only needed by the HTTP-serving helper around line 202. If the pinned opendox lacks web/, this module-level import skips all of the direct verb coverage as well. Move the bundle lookup into the serving test/helper so only web-dependent cases are skipped.
  • Files reviewed: 34/34 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread tests/opendox_bundle.py Resolved
…endor/`

One accurate Copilot finding. `require()` writes `{"type": "module"}` at the staged bundle
root so node reads a `.js` handed to it by absolute path as ESM — and that marker sets the
package scope for the WHOLE tree, `vendor/` included. The one file there is a vendored UMD
build, `markdown-it.min.js`, which `tests/test_explorer_viewer.py` hands to node with
`require()`: under an inherited `"type": "module"` that is `ERR_REQUIRE_ESM`, so the marker
this function exists to write would have broken the one suite reading the vendored file the
old way. Three suites at this leg already write `{"type": "commonjs"}` into their own copies
(`test_doxbench_transport.py`, `test_doxbench_mutation_boundary.py`,
`test_session_confinement.py`); the staged root now states it once, beside the ESM marker, and
only where the directory exists.

`tests/opendox_bundle.py` is a CREATED file (RULED OQ-C) and takes no declared line: it is
admitted by name in openxFactory's `docs/opendox-carve-admissions.yaml` (#1025). The
un-narrowed list re-run: 301 passed, 23 skipped.

Refs opensoft/openXfactory#656

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 13, 2026 03:28

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.

🔵 Needs a closer look

Eight moderate comments identify module-level skips that suppress bundle-independent tests.

Review details

Suppressed comments (8)

tests/test_doxbench_save.py:525

  • This import is executed during collection, before any tests in this file are registered. If the pinned bundle is unavailable, it skips the whole module and suppresses the pure first-edit eligibility/transaction tests at lines 120–474, which do not use the JavaScript assets. Use a per-test/lazy bundle lookup for the JS-only blocks instead of a module-level skip.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_renderer.py:39

  • The module-level bundle import skips the entire renderer suite when the pin has no web bundle, but this file also contains bundle-independent server and CLI tests such as test_resolve_source_path_unit, test_divergence_states_unit, and test_cli_exposes_generate_and_open. Resolve the asset only for tests that read it so those checks are not silently omitted.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_confinement.py:74

  • composed() performs a module-level skip when the pinned bundle is absent, so this single assignment suppresses the whole session-confinement suite. At least test_an_interactive_terminal_is_a_human_console (and other pure CLI/session checks) does not read WEB; use lazy or per-test composition for the browser-source assertions instead of skipping unrelated coverage.
WEB = opendox_bundle.composed()

tests/test_session_document_ownership.py:54

  • This module-level import can skip the entire file when the pinned bundle is absent, even though the ownership and route tests before the model probe do not read WEB_VIEWS at all. Keep bundle resolution lazy/per-test for the model check at line 318 so those backend tests remain collected.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_gates.py:84

  • This module-level bundle lookup skips the complete session-gates file when the pin has no web assets, including the parser-only test_the_cli_offers_no_bypass_flag_for_the_endings at lines 648–668. Keep the bundle-dependent serving checks lazy/per-test so the CLI contract coverage is not lost solely because the pin is behind.
WEB = OPENDOX_WEB

tests/test_session_runbook.py:52

  • Because OPENDOX_WEB is resolved through opendox_bundle.__getattr__, this import calls pytest.skip(..., allow_module_level=True) when the pinned openDox has no bundle. This file is mixed: the parser, wrong-root, and runbook checks before the model-source check do not read MODEL_JS, so they are all skipped as well. Resolve the bundle only inside the model-dependent test (or use a per-test fixture) so a missing asset does not hide the rest of this suite.
from opendox_bundle import OPENDOX_WEB  # noqa: E402  (skips where the pin carries no bundle)

tests/test_session_verbs.py:108

  • A missing pinned bundle causes this module-level lookup to skip the whole session-verbs suite, although many CLI and route-contract tests (for example test_the_cli_offers_no_inline_content_and_no_bypass_flag) do not read WEB. Resolve the asset only for the browser-serving assertions so the backend coverage remains active.
    tests/test_staging_workbench.py:51
  • composed() skips at module import when the bundle is unavailable, which also drops the shell-command/CLI safety tests around lines 2219–2279 even though they only exercise descriptor quoting and never read WEB. Make composition lazy for the tests that inspect JavaScript so those independent checks continue to run.
  • Files reviewed: 34/34 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap changed the base branch from build/s5-gate-loop-bindings to main September 13, 2026 21:50
Slice S5's leg A landed at #18 (c1ad341) and this branch was stacked on it,
so GitHub retargeted this PR to `main` and the only thing left to bring
forward is the base's own history.

ONE CONFLICT, and it is positional rather than substantive:
`.github/workflows/validate.yml`. Slice S5 added `tests/test_gate_loop_views.py`
and `tests/test_gate_loop_probes.py` to the narrowed list with the block of
reasoning above them, and slice S8's nine additions and their measurement block
sit immediately after — adjacent additions to one list by two acts. Both hunks
take BOTH sides: `main`'s side of each is empty, so nothing of slice S5's is
dropped and nothing of slice S8's is. `git diff origin/main -- that file`
removes no line.

The list is now fifteen files, in landing order: the four shape assertions
(§ 4.1/§ 4.4), slice S5's two gate-loop suites, and slice S8's nine.

Refs #656 (stays OPEN).

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@brettheap brettheap changed the title § 3.4 S8 (leg A): the 46 bundle paths stop naming a directory this leg does not have § 3.4 S8 (leg A): 44 of the 46 bundle paths stop naming a directory this leg does not have Sep 15, 2026
brettheap added a commit to opensoft/openXfactory that referenced this pull request Sep 15, 2026
…thirteen rows, one admission, and the resolved-identity reading of to != from (#1025)

Lane: openxfactory-4

Refs #656 (stays OPEN). RULED Q-L1 binds every § 3.4 slice (#656 comment 5642758731); the FORM is the
Q-L1 form ruled at 5628560136. RULED 2026-09-13 at #656 comment 5656343213 (Brett Heap, by interactive
multi-choice), both rulings this slice stands on. CLAIM: #656 comment 5649985838.

The openxFactory half RULING Q-L1 requires of § 3.4 slice S8 — the row annotation that lands BEFORE its
two leg PRs (opensoft/openXdox-code#19, the shed half; opensoft/openDox-code#23, the receive half).
Stacked behind #1023 (slice S5's annotation) and the S7 annotation, both merged in here.

NO RE-DESTINATION, AND THAT IS A MEASUREMENT. The slice is "re-home the 48 test files and un-narrow
validate", and § 6 Q6 built the re_destined: form directly for it. An ast walk of every module-level
Import/ImportFrom in the 23 mis-pointed files at openxdox_code says the inference holds for NONE of
them: every one imports a real openxdox module, and RULED OQ-G's TEST HOMES rule places a mixed file
there for exactly that reason. RULED at 5656343213 — "the path constant moves, the file does not":
S8 re-points 44 of the 46 ROOT SPELLINGS across 31 files through the PIN, re-homes 0 files, and this
annotation carries 0 re_destined: rows. Two of the 46 are correct as they stand and are named rather than
skipped — tests/test_gate_console.py:58 (S5 leg A places gate.js at that leg) and
tests/tools/playwright-smoke.py:282 (a tool, outside validate's list) — re-derived at landing against
c1ad341a and 080dcfcd, reproducing openDox-spec#11's second-instrument table exactly; #19's body records
the correction and the two figures it does NOT restate. § 5's S8 row and § 1.2(d)'s
inference do not stand as written; boundary-note amendment #3 rewrites them and re-measures 48 → 43, and
this PR owes it the measurement, which its § 1 table carries.

FOURTEEN DECLARED ENTRIES OVER THIRTEEN ROWS, FORTY LINES, every one class path constants — 11 at
opendox_code and 29 at openxdox_code; tests/ideation-dashboard/test_doxbench_mutation_boundary.py is the row
carrying two, because the second corrects the first. No disposition converts, no row becomes a carrier, no
referent digest moves, and S8's own re_destined count is 0. The aggregate moves as a DELTA ON SLICE S7, the act
this branch landed on: 2366 + 40 = 2406 declared edit lines over 176 rows — import rewrites
722, path constants 206 -> 246, adapter calls 1438 — re-derived by
test_the_real_manifest_carries_the_ruled_q_l7_amendment, which SUMS the merged document instead of quoting
either act. Each act states a delta and no act restates an absolute; that one test is where the absolutes live,
which is why this merge could not transcribe a figure from either side.

TWO SEMANTIC COLLISIONS WITH SLICE S7 THAT GIT REPORTS AS CLEAN, found by rehearsing the merge rather than by
discovering it live. (a) S7's new window pin read its thirty-three-row run as each row's TAIL; S8 annotates
THREE of those rows (test_bullseye_widget.py, test_doxbench_view.py, test_outline_model.py), so S8's entry
displaces S7's run by one and the tail read fails on a manifest in which nothing is wrong. Amended here as a
declared amendment: the run is pinned WHERE IT LIES and required to occur EXACTLY ONCE, which keeps every claim
the tail made and drops only "is last" - a property belonging to whichever slice annotated a row most recently
and to no slice permanently. (b) both acts wrote "AMENDED A SIXTH TIME" into the arrival tool's admissions
docstring; in landing order S7 is the sixth and S8 the SEVENTH, so both are kept and ours is re-numbered.

ONE ADMISSION. openxdox_code gains tests/opendox_bundle.py — a CREATED file (RULED OQ-C), resolving
Path(opendox.__file__).parent / "web", the resolution slice S5 already landed at that leg in
tests/test_gate_loop_probes.py::_opendox_bundle, building RULED Q5's COMPOSED root for the four suites
that assert across the seam.

THE RESOLVED-IDENTITY READING OF to != from, the follow-up registered at #1011's landing, discharged
here. to and from are compared on their resolved (repository, leg) bodies rather than as KEYS, in both
tools, held equal across them by test_both_tools_resolve_a_destination_key_identically. A destinations:
key is a LABEL, never a referent — check_shape deliberately admits two keys sharing one {repository, leg}
body — so an ALIAS PAIR passed the one check that is supposed to guarantee a re-destination MOVES the
file, and produced a document unsatisfiable at the destination. Seven new tests, both sides of the
discriminator. Three Copilot rounds each found one more reader comparing KEYS where the rest of the tool
compares resolved bodies: also_replicated_to, the governed admissions selection, and carved_reach.source()
(fixed on main by #1023 and merged here).

RESIDUE REGISTERED, NOT DISCHARGED: (1) the retired: row form — the carve floor cannot say an ARRIVED
row's file is withdrawn at its leg; RULED the NEXT carve-floor act. (2) the retirement of the three
intent-feed suites (openDox-code tests/test_intent_tray_dom.py and tests/test_wheel_verbs_dom.py;
openXdox-code tests/test_staging_workbench.py's ending replay) as a declared act citing OQ-F — it cannot
be written until (1) exists. (3) boundary-note amendment #3 at openDox-spec. (4) carved_reach
shed_relpath() and shed_commit_object(), which still read raw destination/destination_path; measured
unreached by any live row.

EVIDENCE, RE-DERIVED AT a94e20f AND NOT TRANSCRIBED: pair (2406, 176); import rewrites 722
+ path constants 246 + adapter calls 1438 = 2406; dispositions 143 / 175 / 138 over 456
rows; 318 moved; 20 replicas; 4 re_destined, all slice S5's; runbook per-destination 1667 / 26 / 703 / 9
summing to 2405 plus the one replica line naming no destination = 2406. scripts/validate-carve-manifest.py OK;
pytest -q tests/carve_manifest tests/carve_arrival -> 281 passed.

Plain gate: pytest-suite run 35035839896 SUCCESS at a94e20f, with clearing-dispatch-gate, lane-line,
merge-master-approval, openreposhape-pin, openspec-cli-pin, wallet-validation, release-tag-gate and
signed-execution-chain-gate all SUCCESS (SonarCloud advisory); 7 threads / 0 unresolved. Rule 6 does not
apply: this PR's file list is nine files, none under openspec/changes/, and its only README hunk is the
doc-index line for the cutover runbook, not the OpenSpec Records block.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@brettheap
brettheap marked this pull request as ready for review September 16, 2026 00:37
@brettheap
brettheap requested review from Copilot and removed request for Copilot September 16, 2026 00:37

@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.

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 hours and 44 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Copilot's review at 582ae21a is the review of the head that lands, and its eight suppressed comments are answered here rather than left in a details block. The tree at 582ae21a and the tree at this head 080dcfcd are the SAME tree — ae0e12694aa089da94406de71c80a070a9191ada both — because 080dcfcd merges an origin/main this branch already contained (c1ad341a) and changes no file. So no re-review is owed at the current head; the review below IS the review of it.

The finding, and it is one finding eight times

"This import is executed during collection … If the pinned bundle is unavailable, it skips the whole module and suppresses the pure … tests, which do not use the JavaScript assets. Use a per-test/lazy bundle lookup." Named at test_doxbench_save.py:525, test_renderer.py:39, test_session_confinement.py:74, test_session_document_ownership.py:54, test_session_gates.py:84, test_session_runbook.py:52, test_session_verbs.py:108, test_staging_workbench.py:51.

The mechanism is real. tests/opendox_bundle.py resolves OPENDOX_WEB through __getattr__ and calls pytest.skip(..., allow_module_level=True) when the installed opendox carries no web/ bundle, so a module-level import of it skips the module whole.

Measured against what the required check runs, not against the mechanism

NOT ONE of the eight files Copilot names is in this leg's validate list, and none of them can be COLLECTED at this leg today for a reason that has nothing to do with the bundle. Each run alone under the workflow's own invocation (python -m pytest -q --noconftest <file>), at this head:

file verdict cause
test_doxbench_save.py 1 error ModuleNotFoundError: No module named 'doc_health'
test_renderer.py 1 error No module named 'ideation_dashboard'
test_session_confinement.py 1 error No module named 'ideation_dashboard'
test_session_document_ownership.py 1 error No module named 'ideation_dashboard'
test_session_gates.py 1 error No module named 'ideation_dashboard'
test_session_runbook.py 1 error No module named 'ideation_dashboard'
test_session_verbs.py 1 error No module named 'ideation_dashboard'
test_staging_workbench.py 1 error No module named 'doc_health'

The collection error comes FIRST — before the bundle import is reached — so in these eight files the module-level skip suppresses nothing today, and making the lookup lazy would change no verdict at this head. Those two blockers are RULED to wait on the BUILD arc (Q-L8 (b′), split-opendox § 3.5/3.6 inverting the openDox → openXdox dependency), which is why this leg's validate is narrowed to a named list at all.

Of the fifteen files the list DOES name, exactly ONE takes the module-level skip: tests/test_doxbench_mutation_boundary.py, 1 skip, the whole module. Three others are in the list and touch the bundle differently — test_gate_loop_probes.py (13 skips, all slice S5's own PER-TEST _opendox_bundle() lookups, not this import), test_doxbench_abstract_store.py (35 passed) and test_doxbench_telemetry.py (18 passed), which only name the file in a comment. The whole list at this head: 301 passed, 23 skipped, reproducing CI run 34785404471 exactly.

What is registered for a later declared act

Inside that one file the finding has real content and is not dismissed: EDITOR_JS, STATE_JS, VIEWER_JS, VENDOR_MARKDOWN_JS and SAVE_JS are module-level CONSTANTS computed from OPENDOX_WEB at import, and 14 of the file's 20 tests name none of them directly. A per-test resolution would let those 14 run where the module today does not import at all.

It is not this slice's to make, on two measured grounds. This slice's scope is RULED: "the path constant moves, the file does not" (#656 comment 5656343213, Brett Heap, 2026-09-13, by interactive multi-choice) — re-pointing 44 of 46 bundle paths, not restructuring how a suite resolves its assets. And the module-level form is the landed precedent at this leg, not a new choice: slice S5 landed the identical resolution and the identical skip in tests/test_gate_loop_probes.py::_opendox_bundle, and tests/opendox_bundle.py's own docstring cites it. Changing the pattern is a change to S5's work as much as to this act's.

And the condition clears rather than persists. The skip fires only while the installed opendox carries no web/ bundle, which is true only because this leg pins a commit older than openDox's own packaging declaration ([tool.setuptools.package-data] opendox = ["web/**"], openDox-code #20, slice S5). The skip's own reason says so, and names the pin bump that makes the suite run — the same bump test_gate_loop_views.py's three materialization assertions already wait on. A skipped suite says "the pin is behind"; a failing one would say "the code is wrong", and only one of those is true here.

Registered for a later declared act — the pin bump, or the BUILD arc that makes those eight files collectable — and recorded in this slice's note on #656.

@brettheap
brettheap merged commit 0a0265f into main Sep 16, 2026
3 checks passed
@brettheap
brettheap deleted the build/s8-shed-web-tests branch September 16, 2026 01:11
brettheap added a commit that referenced this pull request Sep 16, 2026
… leg

S8 edits the very file this leg cuts, tests/test_staging_workbench.py (6
insertions, 4 deletions), so the merge was measured rather than assumed. It
is CLEAN: every S8 edit falls outside the ending replay this act removes
(arrived lines ~46-49, ~880, ~1003, ~2573), and each of them lands on a line
the carve manifest already declares -- import rewrites 46/47, path constants
49/881/1004/2559 -- which is what S8's own row annotation (openxFactory #1025
-> e5896455) declared, so the arrival verifier reads them as applied rather
than undeclared.

The headline figure survives, RE-MEASURED at this merged head rather than
carried over:

    $ git diff --numstat origin/main HEAD -- tests/test_staging_workbench.py
    15      192

-- the same 192 destination lines removed against 177 declared CARVE lines
(the 15-line difference is this leg's own slice-S5 insertions inside the
declared range) and the same 15-line replacement docstring. S8 moved the
block's offsets by +2 and its size by nothing.

ONE figure is new and the pull request body records it: this leg's validate
selection widened with S8, so the run is 301 passed / 23 skipped where the
body first recorded 154 passed / 16 skipped at 9dfd7be. The number moved
because the LIST moved -- the selection is validate.yml's, and S8 un-narrowed
it -- not because this act did anything.

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 16, 2026
…, and this repository stops carrying two numbers for the S8 census

Copilot review 5227126546: 0 new comments, 0 open threads, three suppressed. One
is a real coverage gap, one is a contradiction between two files of this tree, one
is a command that counts its own documentation.

  tests/opendox_bundle.py:205 — `declared_pin()`'s `if match else None` had no
  test. The two existing tests make the READ raise; nothing made the REGEX miss,
  so a dependency line rewritten to a branch ref, a version range or a path
  install would have returned None with nothing proving the fail-closed policy
  still catches it. TWO tests, on a new `_with_pyproject_text` helper that lets
  the file read CLEANLY: the function returns None for a pyproject declaring
  `openDox-code@main`, and `_absent()` then FAILS under CI naming the declared
  side while still printing the installed commit.

  tests/opendox_bundle.py:15 asserted "the real count is 31 files and 47 sites"
  while validate.yml's S8 block says 46 sites over 31 files. openXdox-code#19's
  LANDING settled this ("RE-DERIVED AT LANDING, AND ONLY THE COUNT MOVED",
  main 0a0265f): under a named, re-runnable instrument — a ROOT SPELLING is a line
  spelling REPO_ROOT / "src" / "openxdox" / "web" in any Path or slash form,
  counted over the REVISIONS with git grep — it is 46 spellings over 31 files, as
  22 + 9. The "47 sites" of #19's review rounds is left ATTRIBUTED and not
  restated, for #19's own reason: a root spelled once carries several derived
  sites, so neither total corrects the other. This file asserted it as the real
  count; it no longer does, and the two files now agree.

  tests/opendox_bundle.py:395 recorded `grep -rn 'skips where the pin carries no
  bundle' tests/ -> 29`. That comment now contains the phrase, so the unfiltered
  command answers 30 and counts the helper reporting the count. The recorded
  command carries --include='test_*.py' (29), with the reason beside it.

MEASURED at this head, validate.yml's own invocation: 351 passed, 6 skipped (349
before; the delta is exactly these two tests). The two guard suites: 82 passed.
Whole tree: 153 failed, 620 passed, 10 skipped, 128 errors — failures, skips and
errors unchanged, 618 -> 620 being precisely these two. Guard tests 32 -> 34
(28 here + 6 in the views file: 13 decision/read cases, 11 installed_commit parser
tests, 4 call-site tests). Diff vs main: 7 files, +1379 / -86.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
brettheap added a commit that referenced this pull request Sep 17, 2026
…dit, because a partial retirement has no form (RULED openxFactory#656 comment 5656343213) (#20)

Lane: openxfactory-4

**The leg half of the ONE part of RULED 5656343213 that is NOT a retirement**, landed after openxFactory's row amendment and never before.

## What this is, and why it is not a `retired:` block

RULED **`openxFactory#656` comment 5656343213** (Brett Heap, 2026-09-13, by interactive multi-choice) retires the three intent-feed suites at their legs. Two are whole files at openDox-code (opensoft/openDox-code#24). The third is **not a file** — it is the ENDING REPLAY at the end of `tests/test_staging_workbench.py`, whose other 100-odd tests drive surfaces this leg has.

`retired:` retires a ROW, and a row is a FILE. The carve manifest's row for this file goes on arriving, so there is nothing to retire: the form CANNOT express "part of a file", and widening it to a line range would put a second line-bearing grammar beside `edits[]` and give one row two readings of what its bytes are — a ruling's act, not an author's. The minimal reading, and the one the floor already has a form for, is an **ordinary declared edit**: openxFactory's row gains the removed lines under an existing edit class, verified at this leg by `arrival-undeclared-edit` exactly like every other declared edit. openxFactory PR #1032 records that in cutover runbook § 5.8 ("What the form CANNOT express, stated because the first act to use it hit it").

## What is removed

`_DOM_SHIM`, `_ENDING_REPLAY_HARNESS`, `_run_ending_replay()` and `test_the_ending_report_really_reaches_the_slot_the_re_render_rebuilt` — 189 lines — plus the three-line docstring tail of `test_the_ending_report_survives_the_re_render_the_ending_triggers` that named the removed probe as the owner of the behaviour.

The harness copies `views/intent-feed.js` out of the bundle (`dispose.js` imported it at the carve commit), and that file is RULED **OQ-F** `not_moved`: it STAYED at openxFactory and arrived at NEITHER leg. **The probe could never have run here** — verified rather than asserted: `intent-feed.js` appears nowhere in this repository's history, and a read-only replay of the harness's own `shutil.copy` loop raises `FileNotFoundError` for it (and for `helpers.js` and `staging-workbench-model.js`, which are also at neither leg).

**TWO COUNTS, IN TWO NUMBERINGS, and they are not the same number.** 192 lines leave the ARRIVED file here (189 for the four removed things, 3 for the docstring tail; `git diff --numstat` against `main` reads `15 192`). the REMOVED BLOCK spans **177 CARVE-COMMIT lines** — 174 for 1833-2006 plus 3 for 2028-2030, of which openxFactory's new entry declares 167 and slice S5's existing entry on the same row already declared the other ten — because the floor numbers every declared line at `carve_commit` and not at the destination, which is what makes a declaration falsifiable after the file has moved. The difference between them is this leg's OWN slice-S5 edits INSIDE the block, and it is measured rather than inferred: with the floor's own line definition, the arrived file at `c1ad341a` carries **+19 inserted and 4 replaced** lines inside carve 1833-2006 — a net +15 — so 174 carve lines are 189 arrived ones, plus the 3-line docstring tail in both numberings. (Not to be confused with the insertions side of `29 192`: that is the replacement docstring this commit WRITES.) The S5 edits are RULED Q3's mount signature and RULED counterpart Q6's model namespace, declared by naming their carve-side neighbours, which is how a line-numbered grammar declares an insertion. Both numbers are measured, and the one that governs is openxFactory's.

## The gap is STATED, not closed

The surviving `test_the_ending_report_survives_the_re_render_the_ending_triggers` is SHAPE-ONLY and says so: the review that added the behavioural probe proved the shape pin cannot see whether the two keys agree — replace the lookup key with a string nothing sets and every assertion still passes. Its docstring now records that the probe which owned that agreement is retired here, that this is not a claim the invariant stopped mattering, and that re-proving it needs a harness built on the views this leg HAS — its own act under its own ruling.

## Merged forward past § 3.4 slice S8 (leg A), and the two figures it does and does not move

openXdox-code **#19** landed while this was open (`0a0265f7`, 2026-09-16 01:11 UTC) and it edits the
very file this leg cuts, `tests/test_staging_workbench.py` — **6 insertions, 4 deletions**. The merge
is **clean**: `git merge origin/main` reports no conflict, because every one of S8's edits falls
OUTSIDE the ending replay this act removes. Measured at the arrived file: S8 touches ~46-49, ~880,
~1003 and ~2573; the replay occupies the block this act deletes, and the two do not meet.

**The headline figure is unchanged, re-measured rather than assumed.** After the merge,

```
$ git diff --numstat origin/main HEAD -- tests/test_staging_workbench.py
29      192
```

— the same **192 destination lines removed** against the block's **177 CARVE lines** (the 15-line
difference between those two is this leg's own slice-S5 insertions inside the declared range).
S8 moved the block's OFFSETS by +2 and its SIZE by nothing. The **insertions** side is this
commit's replacement docstring and it reads **29** where the body first said 15, because the
Copilot round at the merged head made that docstring say, in full, that this act is a DECLARED
EDIT and not a `retired:` row — an addition inside a declared range, verified as covered by the
insertion rule rather than assumed to be (`verify-carve-arrival.py … --phase B` → `OK`,
**85 declared-edit row(s) within their lines**, none undeclared).

**Every S8 edit to this file lands on a line the carve manifest already declares** — `import
rewrites` 46/47, `path constants` 49/881/1004/2559 — which is what slice S8's own row annotation
(openxFactory #1025 → `e5896455`) declared, so the arrival verifier reads them as applied rather than
undeclared.

**One figure IS new.** This leg's `validate` selection widened with S8, so the run is now
**301 passed, 23 skipped** where this pull request's body first recorded **154 passed, 16 skipped**
at `9dfd7bee`. The number moved because the LIST moved, not because this act did anything: the
selection is `validate.yml`'s, and S8 un-narrowed it.

## Evidence

- `validate.yml`'s own selection, run exactly as the workflow runs it (package installed with `pip install -e ".[test]"`): **301 passed, 23 skipped** at this merged head — unchanged by this commit. (It read **154 passed, 16 skipped** when this body was first written at `9dfd7bee`; the LIST widened with slice S8, not the behaviour of this act.) The workflow's list never named this file (RULED Q-L8 (b′): the carved suites stay out until the BUILD arc).
- `python3 -m py_compile tests/test_staging_workbench.py` → OK. No module, test or fixture anywhere in the repository references the removed symbols; no module-level import of the edited file is left unused.
- **Pre-existing and NOT caused here, recorded so it is not mistaken for damage:** `tests/test_staging_workbench.py` is wholesale uncollectable at this leg — `openxdox.gate_routes` → `gate_console` → `from doc_health import corpus`, and `doc_health` is declared out of scope in this leg's `pyproject.toml`; and its surviving tests read `web/views/staging-workbench-model.js` and `web/views/helpers.js`, which are at neither leg. True at the parent commit and at every commit before it.
- **The floor's own agreement, measured with the verifier's line machinery** rather than argued: at this head the arrived `tests/test_staging_workbench.py` differs from its carve blob on **196 carve lines — 0 undeclared and 0 declared-but-untouched** (196 DISTINCT lines over 196 line ENTRIES, with no line declared twice: slice S5's ten sit inside this act's range and the openxFactory entry deliberately omits them, because a line is declared once per row and the published aggregate sums ENTRIES — an earlier draft of the annotation carried the block's full 177 on one entry and this paragraph counted the row at 206 entries over 196 lines, which was true of that design and was retired with the de-duplication at openxFactory#1043; the verifier reads a row's declarations as a SET, so this leg is asked for the same 196 lines either way) against openxFactory PR #1043's row. The declared set and the touched set are the same set. At `main` (before this commit) 29 differ, none undeclared, and the removed block's 177 carve lines — 167 declared by this act's own entry and ten already by slice S5's — simply read as not-yet-applied — which is why the annotation may land first without refusing this leg.
- **The whole-destination run**, `verify-carve-arrival.py --destination openxdox_code --dest-root <this head> --phase B --replica-at tests/ideation-dashboard/conftest.py=tests/conftest.py --replica-at tests/ideation-dashboard/session_fixtures.py=tests/session_fixtures.py` → `OK … 96 row(s) arrived, 85 declared-edit row(s) within their lines`. Measured in a tree that also carries openxFactory PR #1031: without it the run stops on this leg's PRE-EXISTING undeclared `src/openxdox/gate_console.py` lines, which are that pull request's subject and lands before this one.
- **Nothing else moved in the file**: collected test ids before and after are 84 and 83, and the one-element difference is exactly `test_the_ending_report_really_reaches_the_slot_the_re_render_rebuilt`. No module, test or fixture anywhere in this repository references the removed symbols — `tests/test_doxbench_mutation_boundary.py` and `tests/test_gate_loop_probes.py` each carry their OWN DOM shim, and the only mentions of the removed names left in the tree are the ones this commit writes into the surviving docstring.
- The first commit on this branch carries a `WIP … unverified` message written by the lane's orchestrator when the authoring actor hit its usage limit. Everything it flags as unverified is verified above; the PR is squash-merged, so the landed message is this pull request's.

## Registered for a later declared act — a runtime proof, after the pin bump

Copilot's review of this head posted no thread and carries one SUPPRESSED finding: removing the only executable replay leaves the invariant with shape-only coverage, and a composed-bundle node probe on `tests/test_gate_loop_probes.py`'s fixture could replace it. The gap is real and this pull request states it rather than disputing it. **The proposed probe cannot run here yet, measured:** all 13 tests in that file SKIP at this leg with the file's own reason — *"the installed `opendox` carries no `web/` bundle: this leg pins a commit older than openDox's own packaging fix … The pin bump owed at landing makes these probes run"*. A runtime assertion that never executes in `validate` is the same green a shape pin gives, with a harness attached.

What the later act will need, measured so it need not be re-derived: of the five modules the retired harness copied, `helpers.js` and `staging-workbench-model.js` arrive at **openDox-code** and so ARE in a composed bundle; `swb-session.js` and `dispose.js` are this column's own; and `intent-feed.js` is no longer needed at all, because this leg's `dispose.js` imports `./helpers.js` and nothing else since RULED counterpart Q6 moved the intent reach to `ctx.intent.*`. The precondition is the PIN BUMP, not a missing surface. Full reply: the pull request comment below.

## Order

openxFactory's row amendment — the two `retired:` blocks for openDox-code and **this file's declared lines** — was stacked on **openxFactory#1032** (the `retired:` form, `d5dd1ca5`) and landed FIRST, at `7e074ac910d4f574d8a981e3e4e8511c685c6b5d`, this second. Between the two merges the removed block's 177 carve lines — 167 declared by the annotation's own new entry and ten already by slice S5's, because a line is declared once per row — simply read as NOT YET APPLIED, which is why that order refuses nothing here: unlike a retirement, a declared edit has no window in which the verifier must say no.

Refs openxFactory#656 (stays OPEN). RULED 5656343213; RULED OQ-F (`#656`, 2026-09-09). CLAIM: `openxFactory#656` comment 5656690570.

Plain gate: `validate` SUCCESS at `15e8115d` (run 35101370568, 301 passed / 23 skipped) with
SonarCloud advisory PASS; 4 Copilot reviews, the last 🟢 Approval recommended at this exact head
and its one suppressed comment ANSWERED rather than fixed (the reviewer's enumeration skipped
three blank added lines where `git diff --numstat` and the hunk header both say 29); threads
1 / 0 unresolved. No `--admin`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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