Repository navigation
§ 3.4 S8 (leg A): 44 of the 46 bundle paths stop naming a directory this leg does not have - #19
Conversation
…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>
Reviewer's GuideThe 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
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 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.pyalso contains draft-boundary and validator tests that do not readWEB; 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.
…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>
There was a problem hiding this comment.
🔵 Needs a closer look
Three moderate issues must be addressed before approval.
Review details
Suppressed comments (3)
tests/opendox_bundle.py:124
require()usespytest.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.pyhas dozens of pure Python tests before its few bundle reads, whiletest_session_runbook.py,test_session_document_ownership.py, andtest_doxbench_scope.pylikewise contain substantial non-bundle coverage. Deferrequire()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 entiretest_doxbench_save.pymodule. That includes the pure eligibility and transaction tests at lines 120–497, which do not readSAVE_JSor 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
WEBto the composed bundle makes_run_ending_replay()later copyWEB / "views" / "intent-feed.js", but the composed helper only stages openDox's bundle plus this leg's six modules, and neither leg carriesintent-feed.js. Once the pinned bundle is present and this module runs, that copy raisesFileNotFoundError; 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>
There was a problem hiding this comment.
🟡 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=Trueskip is not safe for the current consumers:test_doxbench_scope.pyhas 32 tests but only its browser-parity helper reads the copied bundle, andtest_doxbench_save.pyhas 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-testweb()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 laterbuild_servertests 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 pinnedopendoxhas no bundle, resolvingOPENDOX_WEBhere invokesrequire()withallow_module_level=Trueand skips the entire module, silently dropping those tests along with the JS checks. Resolve the bundle only in the bundle-dependent fixtures/tests (viaopendox_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.pyhas many pure/server scope tests, while only the browser-parity helper needsMODEL_JSandWHEEL_MODEL_JS. If the pinnedopendoxhas no bundle, this import skips the entire module and loses all of that independent scope coverage. Useopendox_bundle.web()inside_browser_projectionsor a fixture instead of resolvingOPENDOX_WEBduring 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.jsNode probe and the serving helper. If the pin has no bundle, importingOPENDOX_WEBskips 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. ResolveOPENDOX_WEBin 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_WEBwhile 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 issrc/openxdox/round_trip.pyand is already imported asrt, 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, resolvingOPENDOX_WEBduring 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 importingOPENDOX_WEBat 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_WEBat 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_produceneedsMODEL_JS; the other runbook/parser/documentation tests do not read the bundle. With no bundle in the pinnedopendox, this module-level import skips the entire file, so those independent checks disappear instead of just the one model-backed test. Importopendox_bundleand callweb()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
opendoxlacksweb/, 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
…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>
There was a problem hiding this comment.
🔵 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, andtest_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 leasttest_an_interactive_terminal_is_a_human_console(and other pure CLI/session checks) does not readWEB; 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_VIEWSat 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_endingsat 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_WEBis resolved throughopendox_bundle.__getattr__, this import callspytest.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 readMODEL_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 readWEB. 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 readWEB. 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
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>
|
…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>
There was a problem hiding this comment.
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.
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Copilot's review at 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 The mechanism is real. Measured against what the required check runs, not against the mechanismNOT ONE of the eight files Copilot names is in this leg's
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′), Of the fifteen files the list DOES name, exactly ONE takes the module-level skip: What is registered for a later declared actInside that one file the finding has real content and is not dismissed: 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" ( And the condition clears rather than persists. The skip fires only while the installed 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 |
… 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>
…, 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>
…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>



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#656comment 5649985838. Was stacked on S5 leg A (#18), which landed 2026-09-13T21:50Z atc1ad341a— this PR is now based onmainand 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
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) andtests/tools/playwright-smoke.py:282, which is a tool rather than a suite and is not invalidate'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 concreteviews/<name>.jsmodule 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 placessrc/openxdox/web/views/gate.jsat this leg, andtests/tools/playwright-smoke.py:282, the tool. One site is added, deliberately:tests/test_renderer.py:49'sOWN_VIEWS, which reads this column's ownswb-session.jsout 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. Anastwalk of every module-levelImport/ImportFromsays the inference holds for none of them. Every one imports a realopenxdoxmodule:openxdox.generatoropenxdox.snapshot_registryopenxdox.gate_console/openxdox.round_tripopenxdox.gate_routesRULED 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
openxdoxthere would be the unlawful directiontests/test_dependency_direction.pyexists 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 0re_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'sdocs/opendox-carve-admissions.yaml) — resolvesand 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_workbenchread 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 callserve_viewsand S5's ownbundlefixture 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 hereMeasured, not asserted: every one of the 31 files still errors at COLLECTION, on
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, 26doc_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:1985copiesviews/intent-feed.jsinto its ending-replay harness. That module is a RULED OQ-Fnot_movedrow — it stays at openxFactory and exists at neither leg — and S2 replaced the surface withviews/intent-binding.js. openDox-code carries the same problem intests/test_intent_tray_dom.py(23 tests) andtests/test_wheel_verbs_dom.py(8).re_destined: to: openxfactoryis not expressible:tois held to the CLOSEDdestinations:keys, openxFactory is the SOURCE and not one of them, and the manifest's own "what it does not move" list names "the fivedestinations:keys" verbatim. Deleting an arrived row has no form either — which is the finding that decided the sequencing.RULED, 2026-09-13 —
opensoft/openxFactory#656comment 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 aretired: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 ofvalidate— and names it RETIRING rather than repairing or deleting it. Both acts are registered in openxFactory #1025 § 7, and the form itself is CLAIMED atopensoft/openxFactory#656comment 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:
Bug Fixes:
Enhancements:
Tests:
ROUND 1 (2026-09-13) —
validateUN-NARROWED,80fe8f7The first push left this leg's
validatelist 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 samepath constantsclass 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 ispathlib.Path(<the module this file already imports>.__file__)— no skip needed, because a module the file imported is installed by definition.tests/test_doxbench_abstract_store.pytests/test_doxbench_telemetry.pytests/test_doxbench_turns.pyA per-test bundle skip beside the module-level one, and
test_doxbench_turns.pyis why it had to exist: 183 tests, of which THREE read a bundle file. BindingOPENDOX_WEBat 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_WEBstill 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.pyis 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'sweb/**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, 16doc_health(reached fromsrc/openxdox/generator.py:66) — and past collection the same two reappear inside the PINNED openDox atopendox/doxbench_packet.py:177. The 32 remainingtest_doxbench_turns.pyfailures 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.pycarries an admission there.ROUND 2 (2026-09-13) — the base landed;
080dcfcS5 leg A (#18) merged at
c1ad341a(2026-09-13T21:50Z), GitHub retargeted this PR tomain, andgit merge origin/mainbrought 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 addedtests/test_gate_loop_views.pyandtests/test_gate_loop_probes.pyto 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, andgit diff origin/main -- .github/workflows/validate.ymlremoves 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.validateat080dcfcd: run34785404471SUCCESS — 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 at582ae21a(2026-09-13T03:35Z), and the merge added no reviewable content — proven, not assumed: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 onmain(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: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.
tests/test_gate_console.py:58(named in the rounds above, correct because S5 leg A placesgate.jsat this leg) andtests/tools/playwright-smoke.py:282, which the earlier count missed because it is a tool outsidevalidate's list rather than a suite. Both files are byte-identical tomainat this head —git diff c1ad341a 080dcfcd -- <file>is empty for each. So 44 move, not 46.tests/tools/playwright-smoke.py, and all nine pass it straight toserve_mod.build_server(...). With the 22 that resolve a concreteviews/<name>.jsmodule under it, that is the 31: 22 + 9, not 23 + 8.src/openxdox/webnumber 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.WEB = REPO_ROOT / … / "web"thenGATE_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'sOWN_VIEWS, added here forswb-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 andtests/opendox_bundle.py:11's docstring, both added by this PR, and both outside thetests/**.pyreading above.Nothing in the tree changed and nothing is re-gated by this correction —
validaterun34785404471at080dcfcdis 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 onopensoft/openxFactory#656all carry the measured shape; the round-2 sentence stays where it is, as history.