Repository navigation
§ 3.4 S5 (leg A): contribute the gate loop — six ViewBindings, their module bytes as package data, and the assembly seam (RULED Q1–Q12) - #18
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>
There was a problem hiding this comment.
🟡 Changes recommended
Nine unresolved findings remain, including one critical transport-handling issue.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds six openXdox gate-loop ViewBinding modules, package-data assembly, hosted fallback routes, and contract validation.
Changes:
- Adds six contributed JavaScript view modules and route metadata.
- Adds installation and exact fallback serving mechanisms.
- Adds binding, dependency, packaging, test, and CI coverage.
File summaries
| File | Reviewed changes and final comments |
|---|---|
tests/test_gate_loop_views.py |
Tests view contracts; moderate (1 vote): assert the complete export namespace. |
tests/test_dependency_direction.py |
Covers dependency direction for the contribution. |
src/openxdox/web/views/swb-session.js |
Adds session affordances; moderate (2 votes): normalize rejected requests so controls recover visibly. |
src/openxdox/web/views/swb-create.js |
Adds the create affordance; moderate (2 votes): handle rejected requests before rendering outcomes. |
src/openxdox/web/views/gate.js |
Adds gate-bar actions; critical (2 votes): guard ratification requests and handle failures. |
src/openxdox/web/views/gate-projects.js |
Adds project commission actions. |
src/openxdox/web/views/gate-lens.js |
Adds lens actions; moderate (2 votes): handle transport failures and re-enable execution. |
src/openxdox/web/views/dispose.js |
Adds refusal-panel actions; moderate (2 votes): convert rejected posts into handled results. |
src/openxdox/web_assets.py |
Installs view assets; moderate (3 votes): wrap copy errors, and moderate (1 vote): preflight collisions to prevent partial installation. |
src/openxdox/view_extensions.py |
Declares bindings and contract metadata; moderate (1 vote): catch missing binding attributes as contract errors. |
src/openxdox/serve_views.py |
Provides exact hosted fallback routes. |
pyproject.toml |
Includes JavaScript modules as package data. |
.github/workflows/validate.yml |
Runs gate-loop validation. |
Review details
Suppressed comments (3)
src/openxdox/view_extensions.py:348
ViewContractUnsupportedis documented as the normalized failure when the assembled pin lacksview_extension.ViewBinding, but this block catches onlyTypeError. A partial/olderopendox.view_extensionmodule without that attribute raisesAttributeErrorat construction and leaks a raw exception instead of reporting the contract mismatch. CatchAttributeErrorhere as well.
return tuple(view_extension.ViewBinding(**spec)
for spec in VIEW_BINDING_SPECS)
except TypeError as exc:
src/openxdox/web_assets.py:160
- With
overwrite=False, collision checks and copies are interleaved. If a later module already exists, the earlier modules have already been copied before this function raises, leaving a partially modified bundle even though the installer was told to refuse a dirty bundle. Preflight all destinations (or stage/rollback the copy) before changing the target.
for name in VIEW_MODULE_NAMES:
source = module_path(name)
destination = target_dir / name
if destination.exists() and not overwrite:
raise ViewAssetError(
tests/test_gate_loop_views.py:311
- This assertion only checks that the declared exports are present; an extra export can be added to a module and the test still passes. That does not enforce Q2's stated whole-namespace contract, so compare
realwithset(spec["exports"])to reject undeclared shell-reachable exports as well.
missing = sorted(set(spec["exports"]) - real)
assert missing == [], (
f"{spec['id']} declares export(s) {missing} that {name} does not "
"export — a binding that cannot be reached must not look declared")
- Files reviewed: 13/13 changed files
- Comments generated: 6
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…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>
There was a problem hiding this comment.
🔵 Needs a closer look
Nine unresolved moderate findings remain across transport seams, lifecycle handling, installation failure behavior, and test coverage.
Review details
Suppressed comments (9)
Previously missed (1) — in code that hasn't changed since the last review.
src/openxdox/web_assets.py:167
- This copies modules as it validates them one at a time. If a later source is missing or a later destination collides with
overwrite=False, the function raises only after earlier files have already been placed, leaving a partially assembled bundle despite the documented all-or-nothing refusal posture. Preflight every source and destination before starting the first copy.
src/openxdox/web/views/gate-projects.js:179
- This create-project path bypasses the injected
doFetchtransport seam used by the other contributed transports. Because the module is under the bundle'sviews/tree, the existing renderer checks (tests/test_staging_workbench.py:807-817andtests/test_renderer.py:594-623) treat a literalfetch(as an unbudgeted bundle call site, and this branch also makes the fetcher injection contract inconsistent. Bindconst doFetch = o.fetcher || fetchand call it here.
const response = o.fetcher
? await o.fetcher(ACTIONS_CREATE_PROJECT_ROUTE, opts)
: await fetch(ACTIONS_CREATE_PROJECT_ROUTE, opts);
src/openxdox/web/views/gate-projects.js:246
- The membership-edit path has the same direct
fetch(call, so it bypasses the injectable transport and is counted as an extra bundle fetch site by the existing renderer contract. Use the samedoFetchseam as the create-project request here.
const response = o.fetcher
? await o.fetcher(ACTIONS_EDIT_PROJECT_ROUTE, fetchOpts)
: await fetch(ACTIONS_EDIT_PROJECT_ROUTE, fetchOpts);
src/openxdox/web/views/gate.js:144
- The live ratify request omits the per-serve console-token header.
serve_gate.pyderives HTTP provenance from that header; a tokenless ratify still succeeds but writes an untagged record, so browser-triggered ratifications lose the audit fact that the action came through the human console. Thread the livecaps.console_tokenthrough the same header seam used by the create/session transports.
headers: { "Content-Type": "application/json" },
src/openxdox/web/views/gate.js:212
- When
actions.gateis live, this adds an async ratify handler without disabling the button. Rapid clicks can therefore issue multiple ratify requests;gate_console.ratifynames its artifacts with a second-resolution timestamp, so concurrent clicks can overwrite the same artifacts and emit duplicate records. Guard the handler while it is pending and re-enable only for a refusal or transport error.
btn.addEventListener("click", async () => {
cmdLine.hidden = false;
cmdLine.textContent = "ratifying " + (gate.changeId || "?") + "…";
const result = await executeRatify(gate, c.fetcher);
cmdLine.textContent = result.ok
? "ratified " + result.change_id + " by " + result.ratifier + " (" + result.date + ") — record: " + result.record
: "refused — " + (result.message || "gate action failed");
});
src/openxdox/web/views/swb-create.js:346
- When
actionsHostis supplied, the bar and result panel are moved out of the form into that external host, but cancel and Escape only clearhost. Cancelling then leaves a visible action bar/result with handlers closed over detached inputs, so the external action area is stale and can still submit a removed form. Make the close path clear the external action area as well, while preserving any unrelated children.
const cancel = el("button", "cbtn", "cancel");
cancel.type = "button";
cancel.addEventListener("click", () => { host.innerHTML = ""; });
src/openxdox/web/views/swb-session.js:794
- FR-048 says a hosted plane (
session: false) exposes nothing, but this guard runs only aftermissingModelNames()has already rendered a refusal and calledpanelEntry. If that hosted caller omits the session model (or one of its live-only facets), this binding shows a refusal instead of returning empty, and the panel call can fail before the page-overlay binding is mounted. Evaluate the hidden posture before requiring the model facets, or otherwise make the hidden path return without recording a refusal.
// FR-048 FIRST: a plane that declares `session: false` is the HOSTED plane and
// exposes NOTHING of this capability — not a live control, and not a
// descriptor naming the verb and the branch (review finding 14).
if (sessionSurfaceHidden(o.caps)) return null;
src/openxdox/web_assets.py:165
- Any filesystem failure during
shutil.copyfile(for example permissions, a read-only target, or a full disk) escapes as rawOSError, although this public hook documentsViewAssetErrorfor every placement defect and callers are expected to handle all placement failures as the same assembly refusal. Wrap the copy and re-raiseViewAssetErrorwith the source/destination context.
shutil.copyfile(source, destination)
tests/test_gate_loop_views.py:600
- These materialization assertions skip whenever the pinned
opendoxlacksViewBinding.exports; the PR leaves that pin ata99eba03, so the required check never constructs a binding, collects it against routes, or checks the manifest. The new integration seam can therefore be incompatible while CI stays green. The paired landing needs to bump the pin and make these checks execute, or provide an equivalent non-skipping contract test.
if "exports" not in getattr(view_extension.ViewBinding, "__annotations__", {}):
pytest.skip(
"the pinned `opendox.view_extension.ViewBinding` predates RULED Q2's "
"`exports` field (openxFactory#656 comment 5648049748); the pin bump "
"to the openDox carrying § 3.4 slice S5 is owed at landing")
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate issues affect API compatibility, assembly, execution, and error handling.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (12)
src/openxdox/view_extensions.py:310
- An empty
requireslets this binding mount on a plane withoutactions.gate, wheregate.disposeis not mounted and cannot provide thepage-overlayrefusal host. However, the missing-ctx.modelpaths in bothswb-create.jsandswb-session.jscallpanelEntry(), whoseensurePanel()throws without that host, so the intended named refusal becomes an exception. Either make these refusal paths independent ofgate.disposeor make the host dependency explicit; the current declaration permits a broken combination.
"requires": (),
src/openxdox/web/views/dispose.js:263
- All local tray/proposal/wheel actions rely on
post()resolving, but a rejected fetcher/native fetch escapes this helper. Their callers then skip busy-state removal or button re-enabling, leaving the UI stuck after a network failure. Return a refusal-shaped payload frompost()when transport rejects so every caller follows its existing failure branch.
async function post(route, body, fetcher) {
const doFetch = fetcher || fetch;
const response = await doFetch(route, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
});
let payload = null;
try {
payload = await response.json();
} catch {
payload = { ok: false, message: "malformed response (HTTP " + response.status + ")" };
}
return payload;
src/openxdox/web/views/dispose.js:335
- The hosted path has the same failure mode outside
post(): ifctx.intent.emitrejects, execution skipstray.classList.remove("is-busy")and the panel update, leaving the tray permanently busy with an unhandled rejection. Wrap the emit in a catch and route the error through the refusal panel while always clearing the busy state.
const result = await intent.emit({
verb: "dispose-possible",
targetId: possible.id,
args,
snapshotRev: intent.snapshotRev,
fetcher: o.fetcher,
});
tray.classList.remove("is-busy");
panelEntry(EMISSION_PANEL_KIND[result.state] || "refused",
possible.id + " → dispose-possible " + v.outcome + ": " +
result.message);
src/openxdox/web/views/gate-lens.js:95
MODELis module-global even though the model is supplied per mount. Mounting a second lens with a differentctx.modelreplaces the model used by the first lens's click handlers, so an existing host can post through the wrong model. Keep the model in mount-local closures (and pass the same context explicitly to any exported transport) instead of overwriting shared module state.
let MODEL = null;
function installModel(ctx) {
MODEL = (ctx && ctx.model) || null;
return MODEL;
src/openxdox/web/views/gate-lens.js:267
- A rejected
fetch/fetcher promise exitsdispatchbeforerenderOutcomeand before the retry-state reset, leaving the Execute button disabled and producing an unhandled rejection on network/CORS failures. Convert transport rejection into the same refusal-shaped payload used for HTTP refusals so the result is rendered and the control is re-enabled.
async function dispatch(body, route) {
run.disabled = true;
const payload = await postPlan(route, body, o.fetcher);
renderOutcome(result, payload);
if (!(payload && payload.ok)) run.disabled = false; // let a refused plan be retried
src/openxdox/web/views/gate.js:150
executeRatifycatches malformed response JSON but not a rejected fetch. On a network failure the async click handler exits before it replaces the “ratifying…” text with a refusal, leaving the live ratify control with no outcome and an unhandled rejection. Handle transport rejection as anok: falseresult, just as this function handles malformed responses.
async function executeRatify(ctx, fetcher) {
const doFetch = fetcher || fetch;
const response = await doFetch(GATE_RATIFY_ROUTE, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ change_id: ctx.changeId }),
});
try {
return await response.json();
} catch {
return { ok: false, message: "malformed response (HTTP " + response.status + ")" };
src/openxdox/web/views/swb-create.js:76
MODELis shared across all create affordance mounts even though each mount accepts its ownctx.model. After another workbench callsinstallModel, clicking an earlier create form reads the later mount's request builders and can submit the wrong scope/model. Capture the supplied model in the mounted form's closure rather than storing it at module scope.
let MODEL = null;
function installModel(ctx) {
MODEL = (ctx && ctx.model) || null;
return MODEL;
src/openxdox/web/views/swb-create.js:389
- If the create request rejects before producing a response, the
finallyblock restores only the label;renderOutcomeand thedisabled = falseretry path are skipped. A transient network failure therefore leaves the create affordance permanently disabled and emits an unhandled rejection. Catch the request error and pass a refusal-shaped payload through the existing outcome path.
let payload;
try {
payload = await submitCreate(body, o.fetcher, o.caps, o.repair);
} finally {
submit.textContent = label;
}
await renderOutcome(result, payload, o.onOpenDoc, o.onSessionOpened);
// a refused create is retriable in place; a landed one is done
if (!(payload && payload.ok)) submit.disabled = false;
src/openxdox/web/views/swb-session.js:129
MODELis overwritten by every session mount and also byfirstEditTransport, but the module's returned handlers remain live after that assignment. With two session tiles, or with a transport created for one model followed by another mount, an existing form can call the wrong model's request/verdict functions. Model state needs to be captured per mount/transport instead of kept in this module-global slot.
let MODEL = null;
function installModel(ctx) {
MODEL = (ctx && ctx.model) || null;
return MODEL;
src/openxdox/web/views/swb-session.js:727
- A rejected session request skips
renderOutcomeand thepayload.okretry check; thefinallyblock only restores the button text. Network/CORS failures can therefore leave the selected verb disabled with no visible refusal. Catch transport errors and feed a refusal-shaped payload into the existing rendering/re-enable path.
let payload;
try {
payload = await submitSession(affordance, body, o.fetcher, o.caps,
o.repair);
} finally {
submit.textContent = label;
}
const ending = await renderOutcome(result, affordance, payload, o);
// a refusal is retriable in place; a landed action is done, and an ENDING
// takes the whole affordance set with it
if (!(payload && payload.ok)) submit.disabled = false;
src/openxdox/web_assets.py:165
ViewAssetErrordocuments one exception type for missing targets and copy failures, butshutil.copyfile()letsOSError/PermissionErrorescape. A read-only bundle or a full disk therefore bypasses callers' assembly-error handling; catchOSErrorhere and raiseViewAssetErrorwhile chaining the original exception.
shutil.copyfile(source, destination)
tests/test_gate_loop_probes.py:371
- This probe claims to verify that session verbs post through the supplied model, but it only mounts the bar and inspects labels/routes; no affordance is clicked and
callsis never asserted. A regression insessionRequest, route selection, or the fetch body would therefore still pass. Trigger one live affordance, awaitsettle(), and assert the recorded route and model-shaped body.
const mounted = column.mountSessionAffordances(host, null, {
model, caps, fetcher, actor: "brett",
session: { scope: { repository: "openxFactory", topic: "t-1" },
posture: { branch: "session/t-1" } },
});
const labels = buttons(host).map((b) => b.textContent);
console.log(JSON.stringify({ mounted: mounted !== null, labels,
routes: calls.map((c) => c.route) }));
- Files reviewed: 14/14 changed files
- Comments generated: 4
- Review effort level: Lite
…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>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate issues affect refusal-panel mounting, capability resolution, compatibility, assembly errors, and required behavioral coverage.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (10)
src/openxdox/view_extensions.py:383
GateLoopViews.views()promises to turn an unsupported pin intoViewContractUnsupported, but a transitionalopendox.view_extensionmodule that exists withoutViewBindingraisesAttributeErrorhere and escapes this guard. That leaves the documented actionable assembly error as a raw traceback; catchAttributeErroras well (or validate the attribute before constructing).
except TypeError as exc:
src/openxdox/view_extensions.py:295
- This binding also implements the hosted intent transport, but requiring
actions.gatemakes it disappear on that plane: the intent-feed contract reportscaps.actions.intentwhenactions.gateis false, andresolveViewtherefore returns null beforewheel.jscan passctx.intenttomountDisposeTray. The hosted tray and intent chips will consequently never render. Make the requirement support either the local gate or hosted intent capability (or leave this binding unrequired and let its callers gate each transport), and update the corresponding contract test.
"requires": ("actions.gate",),
src/openxdox/web/views/gate.js:197
- The new capability-on branch in
mountGateBaris not behaviorally covered: the existinggate.jsnode tests exercise only the pure descriptor helpers, and the new probes cover lens, projects, and session but never mount this module withcaps.actions.gateand click ratify. A broken/actions/gate/ratifyPOST or success/refusal rendering would therefore pass the required suites.
// async executing upgrade — never blocks the descriptor render.
const upgrade = (caps) => {
if (!caps?.actions?.gate) return;
for (const btn of ratifyButtons) {
btn.classList.add("gatebtn-live");
btn.title = "EXECUTES via the local gate route (actor: " + (caps.actor || "local") + ")";
btn.addEventListener("click", async () => {
cmdLine.hidden = false;
cmdLine.textContent = "ratifying " + (gate.changeId || "?") + "…";
const result = await executeRatify(gate, c.fetcher);
cmdLine.textContent = result.ok
? "ratified " + result.change_id + " by " + result.ratifier + " (" + result.date + ") — record: " + result.record
: "refused — " + (result.message || "gate action failed");
});
}
};
upgrade(c.caps || null);
src/openxdox/web/views/swb-create.js:328
- Because
barandresultare appended too.actionsHostbelow, this close path only clearshostand leaves the visible submit/cancel controls and prior result behind whenever the documentedactionsHostoption is used; the Escape handler repeats the same omission at line 387. Remove only this invocation's action nodes as part of the close operation (rather than clearing unrelated children of a shared host), otherwise reopening the dialog accumulates stale controls.
cancel.addEventListener("click", () => { host.innerHTML = ""; });
src/openxdox/web/views/swb-session.js:750
- This new
(host, snapshot, ctx)contract leaves existing in-repository callers intests/test_staging_workbench.py:1926,1928invokingmountSessionAffordances(host, ctx, opts). Those calls now treat the old session context assnapshot, find noctx.model, and enter the refusal path (which also needs the separately mounted refusal panel), so the existing replay harness fails before testing its behavior. Update the remaining callers to construct the new context or provide an explicit compatibility adapter.
export function mountSessionAffordances(host, snapshot, ctx) {
src/openxdox/web/views/swb-session.js:345
- Q10 now makes
firstEditTransportdepend onctx.model, but the existing behavioral harness intests/test_session_confinement.py:411-456still callsfirstEditTransport({ fetcher, caps, repair })without it. This path therefore returns the refusal fallback at lines 346-354 instead of posting the request the test expects, so the real console-token retry proof cannot run. Update that harness and any other consumers to pass the staged model namespace, or retain a compatibility path.
export function firstEditTransport({ fetcher, caps, repair, model: bundleModel } = {}) {
// RULED Q10 reaches this export through the REGISTRY and not through a mount,
// so RULED counterpart Q6's `ctx.model` reaches it the same way: as a field of
// the ONE options object its caller already builds. Installed here, before the
// returned transport can be called, so a Save never discovers a missing model
// mid-request.
installModel({ model: bundleModel });
src/openxdox/web_assets.py:166
ViewAssetErrordocuments a single exception for every placement defect, including a failed copy, but a read-only or otherwise unwritable bundle letsshutil.copyfileraise rawOSError/PermissionError. Callers cannot handle assembly refusal uniformly; wrap this copy intry/except OSErrorand re-raiseViewAssetErrorwith the destination and original exception.
if collisions:
raise ViewAssetError(
tests/test_gate_loop_probes.py:371
- This probe claims to verify that the session verbs post, but it never clicks a rendered button or submits a form. Consequently
callsis always empty and the test only proves that labels rendered; a brokensessionRequest/submitSessionroute or body would still pass. Drive at least one affordance through its form and assert the recorded request.
result = _run_node("""
const column = await import(VIEWS + "swb-session.js");
const model = await import(VIEWS + "staging-workbench-model.js");
const [calls, fetcher] = recorder({ payload: { ok: true } });
const host = document.createElement("div");
// `sessionActionsLive` reads the PROBE's `actions` map (gate on, session not
// declared off), which is the loopback plane's shape.
const caps = { actions: { gate: true, session: true }, actor: "brett",
tests/test_gate_loop_probes.py:150
- This fixture copies the openDox web tree and then imports the contributed
.jsfiles by file URL, but it never creates the bundle-rootpackage.jsonthat marks those.jsfiles as ESM. The copied installed web tree has no package metadata (the existing Node harnesses add{"type":"module"}for this reason), so once the pinned bundle is present Node treatsgate-lens.js/the other copied modules as CommonJS and every probe fails before exercising the view. Add the ESM package metadata totargetbefore running Node, as the other harnesses do.
shutil.copytree(source, target)
web_assets.install_view_modules(target)
tests/test_gate_loop_views.py:455
- The Q8 change is verified only by source scans (
document.bodyabsent) and the binding metadata; no probe mountsmountRefusalPanelwith a suppliedpage-overlayhost and then exercisespanelEntry. A broken host handoff, panel reuse, or refusal rendering could therefore pass while the core page-level seam is unusable. Add a DOM probe that asserts the panel and an emitted refusal are children of the supplied host.
# RULED Q8 — "a fourth `shell` region, `page-overlay`, is the declared host for
# page-level panels (dispose.js's refusal panel); `document.body` is never a
# contract surface."
# ---------------------------------------------------------------------------
def test_the_refusal_panel_mounts_into_a_declared_region() -> None:
text = _module_text("dispose.js")
code = "\n".join(line for line in text.splitlines()
if not line.lstrip().startswith("//"))
assert "document.body" not in code, (
"dispose.js still reaches `document.body`: RULED Q8 makes that never a "
"contract surface, and the refusal panel's host is the shell's "
- Files reviewed: 14/14 changed files
- Comments generated: 1
- Review effort level: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Multiple moderate findings remain in transport handling, cleanup, accessibility, compatibility, and bundle assembly.
Review details
Suppressed comments (12)
Previously missed (1) — in code that hasn't changed since the last review.
src/openxdox/web_assets.py:183
- The collision preflight prevents only existing-file conflicts;
module_path(name)andcopyfilestill run inside a mutating loop. If a later source is missing or a later copy fails (for example because the bundle becomes read-only), the first modules remain installed and a retry withoverwrite=Falserefuses them, leaving a mixed bundle after an assembly error. Stage the complete set or roll back prior writes on failure.
src/openxdox/web/views/dispose.js:238
post()letsdoFetchrejection escape before any caller removes its busy state or records a panel outcome. A backend outage therefore leaves dispose controls stuck busy with an unhandled promise; return a normalized failure (or add equivalent caller-level catches) for transport errors as well as malformed responses.
const response = await doFetch(route, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
});
src/openxdox/web/views/dispose.js:255
- This rejection path still uses two blocking
window.promptcalls, while the same module's in-page demotion form explicitly says accessibility moved the codebase away from prompts. The required reason and citation should be collected through labelled, focus-managed DOM controls so keyboard and assistive-technology users can complete the action.
function collectRejection() {
const reason = window.prompt("Rejection REASON (required — the durable why):", "");
if (reason === null) return null; // cancelled
const citation = window.prompt("Rejection CITATION (required — what the rejection cites):", "");
if (citation === null) return null;
src/openxdox/web/views/gate-lens.js:268
- A rejected
fetchnever reachesrenderOutcomeor the re-arm statement, so a network/abort failure leaves the execute button disabled and the result area stuck. Catch transport rejection here, render a user-visible failure, and restore the retry state just as for an HTTP refusal.
async function dispatch(body, route) {
run.disabled = true;
const payload = await postPlan(route, body, o.fetcher);
renderOutcome(result, payload);
if (!(payload && payload.ok)) run.disabled = false; // let a refused plan be retried
src/openxdox/web/views/gate.js:191
executeRatifycan reject on a network failure, but the click handler awaits it without a catch. The status text is set toratifying …before the await and never replaced, leaving the live gate bar misleading and producing an unhandled rejection; render a failure status when the request cannot be made.
btn.addEventListener("click", async () => {
cmdLine.hidden = false;
cmdLine.textContent = "ratifying " + (gate.changeId || "?") + "…";
const result = await executeRatify(gate, c.fetcher);
cmdLine.textContent = result.ok
src/openxdox/web/views/swb-create.js:383
- When
actionsHostis supplied, the bar and live result are appended to that external node, but both cancel paths only clearhost. Closing or reopening the dialog therefore leaves the old buttons/result inactionsHost, producing stale or duplicate controls (and stale announcements). Remove this form'sbarandresultfrom the external host as part of the same cleanup used by both cancel and Escape.
const actions = o.actionsHost || form;
actions.appendChild(bar);
actions.appendChild(result);
src/openxdox/web/views/swb-create.js:368
- If
submitCreaterejects because the network or injected transport fails, thefinallyrestores only the label; the exception skipsrenderOutcomeand the re-arm at line 371, leaving the create button permanently disabled with no explanation. Convert transport rejection into the same rendered failure path and re-enable the control.
try {
payload = await submitCreate(body, o.fetcher, o.caps, o.repair);
} finally {
submit.textContent = label;
}
src/openxdox/web/views/swb-session.js:750
- This Q3 signature change leaves the in-repository ending-replay harness calling
mountSessionAffordances(host, session, opts)attests/test_staging_workbench.py:1926,1928. The new entry treatsoptsasctx, so it sees noctx.modeland then reaches the refusal-panel path; update that caller (includingctx.sessionand the model seam) when changing the exported signature.
export function mountSessionAffordances(host, snapshot, ctx) {
src/openxdox/web/views/swb-session.js:771
- The missing-model refusal is required to render a named refusal and return, but
panelEntry()callsensurePanel(), which throws unless the optionalgate.dispose/page-overlaybinding was mounted. A session binding can validly mount withrequires: (), so this path turns a graceful refusal into an exception; keep the refusal local or make the panel dependency explicit and safe.
panelEntry("refused", "the session verbs were not offered: ctx.model." +
missing.join(", ctx.model.") + " was not supplied");
return null;
src/openxdox/web/views/swb-session.js:704
- The session submit handler has the same rejection gap: a network/abort error exits the async listener from
await submitSession, so the label is restored but the button remains disabled and no refusal is rendered. Handle transport rejection before the re-arm logic at line 709 so a transient failure remains retryable.
try {
payload = await submitSession(affordance, body, o.fetcher, o.caps,
o.repair);
} finally {
submit.textContent = label;
tests/test_gate_loop_probes.py:60
- The assembled-bundle harness cannot exercise
swb-create.js:mountCreateAffordancecallsbar.append(submit, cancel), but thisNodestub only implementsappendChild. Add anappend(...kids)shim (and a create-flow probe) so this contributed module is tested in the same runtime shape it uses.
appendChild(c) { this.children.push(c); return c; }
tests/test_gate_loop_probes.py:380
- Despite the docstring saying this executes a session verb and verifies its request body, the harness only mounts the bar and inspects its labels; it never clicks an affordance, opens a form, or waits for
submitSession, so a broken session route/body would still pass. Drive at least one live form submission and assert its method/body as well as the route.
const mounted = column.mountSessionAffordances(host, null, {
model, caps, fetcher, actor: "brett",
session: { scope: { repository: "openxFactory", topic: "t-1" },
posture: { branch: "session/t-1" } },
});
const labels = buttons(host).map((b) => b.textContent);
console.log(JSON.stringify({ mounted: mounted !== null, labels,
routes: calls.map((c) => c.route) }));
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
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>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved binding resolution, transport handling, cleanup, contract, and packaging issues remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (11)
src/openxdox/view_extensions.py:157
CTX_MODEL_REACHis described as the complete context reach, butdispose.jsalso readsctx.intent.snapshotRev,ctx.intent.rows, andctx.intent.errorwhen emitting and rendering hosted intent chips (lines 311 and 341). Omitting these fields leaves the hosted intent context contract undeclared, so the shell can satisfy this declaration while still supplying an incomplete intent object; include every field read here or narrow the declaration's stated scope.
"gate.dispose": {"intent": ("emit", "renderChips")},
src/openxdox/web/views/dispose.js:235
- Every dispose action calls this helper after marking its control busy, but a rejected
fetchescapes before a payload is returned. The callers then skip their cleanup and leave the control busy without a refusal in the panel; catch transport failures here and return the same{ok: false, message}shape as the malformed-response path.
async function post(route, body, fetcher) {
const doFetch = fetcher || fetch;
const response = await doFetch(route, {
method: "POST",
src/openxdox/web/views/dispose.js:255
- This rejection path introduces blocking
window.prompt()calls even though the same module documents that accessibility item 19 moved the codebase off blocking prompts and provides an in-page reason form for that purpose. Screen-reader and keyboard users cannot use this flow consistently; collect the reason and citation through an accessible in-page form instead.
function collectRejection() {
const reason = window.prompt("Rejection REASON (required — the durable why):", "");
if (reason === null) return null; // cancelled
const citation = window.prompt("Rejection CITATION (required — what the rejection cites):", "");
if (citation === null) return null;
src/openxdox/web/views/gate-lens.js:268
postPlancan reject when the injected fetcher fails, butdispatchdoes not catch it after disabling the execute button. That leaves the lens action permanently disabled with no outcome; convert a rejected transport into the same refusal payload used for non-OK responses so the button can be retried.
async function dispatch(body, route) {
run.disabled = true;
const payload = await postPlan(route, body, o.fetcher);
renderOutcome(result, payload);
if (!(payload && payload.ok)) run.disabled = false; // let a refused plan be retried
src/openxdox/web/views/gate.js:124
- If the injected fetcher rejects (for example, an offline/network failure), this rejection escapes
executeRatify. The click handler has already changed the command line toratifying…, so the UI never renders a refusal or returns to a usable state; normalize transport failures to an{ok: false, ...}outcome before returning.
const doFetch = fetcher || fetch;
const response = await doFetch(GATE_RATIFY_ROUTE, {
src/openxdox/web/views/swb-create.js:383
- When
actionsHostis supplied, the bar and result are appended there, but both the cancel handler and the Escape handler still clear onlyhost. Closing the form therefore leaves the external action bar/result orphaned (and reopening can append another pair); keep a cleanup path that removes the elements from whichever host received them.
const actions = o.actionsHost || form;
actions.appendChild(bar);
actions.appendChild(result);
src/openxdox/web/views/swb-create.js:367
- A network rejection from
submitCreateskipsrenderOutcomebecause thetry/finallyonly restores the label; the promise rejects out of the click handler while the button remains disabled. Please turn transport exceptions into a refusal payload so the existing retry and refusal-panel path also handles offline failures.
try {
payload = await submitCreate(body, o.fetcher, o.caps, o.repair);
} finally {
submit.textContent = label;
src/openxdox/web/views/swb-session.js:339
- This signature change leaves the existing
_REPAIR_HARNESScaller intests/test_session_confinement.py:456passing only{fetcher, caps, repair}.firstEditTransporttherefore returns the missing-model refusal at lines 346-354, so the harness never reachessubmitSessionand no longer tests the token-repair path. Update the in-repo caller (and the paired shell call) to pass the model namespace through this options object.
export function firstEditTransport({ fetcher, caps, repair, model: bundleModel } = {}) {
src/openxdox/web/views/swb-session.js:752
- The new
(host, snapshot, ctx)contract is not reflected in the existing replay harness attests/test_staging_workbench.py:1926-1928, which still callsmountSessionAffordances(host, ctx, opts). Hereoptsis interpreted asctx, soctx.modelis absent; the function appends a refusal and returns before creating the abandon button, causing the replay probe to fail instead of exercising the ending re-render. Update that harness to put the old session object underctx.sessionand provide the model namespace inctx.model(including the rerender callback).
export function mountSessionAffordances(host, snapshot, ctx) {
const o = ctx || {};
const session = o.session || {};
src/openxdox/web/views/swb-session.js:703
- The session button has the same failure mode: if
submitSessionrejects on a network error, only the label is restored and the code never renders an outcome or re-enables the control. Catch the rejected transport and feed it through the existing refusal path.
try {
payload = await submitSession(affordance, body, o.fetcher, o.caps,
o.repair);
} finally {
tests/test_gate_loop_views.py:335
- Q2 defines
exportsas the whole module namespace, but this assertion only checks that every declared name exists. An extra export that is not declared on the binding would pass, so a future shell reach could bypass the namespace contract; compare the exported-name set for equality withspec["exports"].
missing = sorted(set(spec["exports"]) - real)
assert missing == [], (
f"{spec['id']} declares export(s) {missing} that {name} does not "
"export — a binding that cannot be reached must not look declared")
- Files reviewed: 14/14 changed files
- Comments generated: 2
- Review effort level: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Unresolved moderate findings remain across contributed views, bindings, assembly, and coverage.
Review details
Suppressed comments (13)
Previously missed (4) — in code that hasn't changed since the last review.
src/openxdox/web/views/gate-lens.js:96
- This module-level model is overwritten by every mount, while the event handlers created by those mounts call the module-level wrappers later. A second workbench create mount (or a re-render while an earlier form remains active) can therefore build the first form's request with the second mount's model; capture the model in each mount/form closure instead of sharing it globally.
src/openxdox/web/views/swb-create.js:58 - This module-level model is shared by all mounts, but form callbacks use the global wrappers after mounting. If another create affordance is mounted or a render replaces the model while this form is open, the callback sends a request shaped by the wrong
ctx.model; keep the model bound to the mount/form instance rather than overwriting a module singleton.
src/openxdox/web/views/swb-session.js:111 MODELis process-wide even thoughfirstEditTransportand the mounted session forms are per-call/per-mount APIs. Creating a second transport or mounting a second session row overwrites the model used by an earlier closure, so an in-flight/old form can send a body through the wrong model; bind the model to each returned transport and mount instead.
src/openxdox/web_assets.py:183- The loop mutates the destination as it goes. A later
copyfileerror (for example a permission error or full disk) leaves earlier modules copied, and withoverwrite=Truecan leave a mixed old/new bundle. Stage/validate the complete set before replacing the served files, or roll back on failure, so an assembly refusal cannot leave a partially assembled bundle.
src/openxdox/view_extensions.py:385
- The compatibility wrapper promises
ViewContractUnsupportedwhen the assembled package lacksopendox.view_extension.ViewBinding, but the attribute lookup on this line raisesAttributeErroroutside theTypeErrorhandler. An importable intermediateview_extensionmodule without that class therefore leaks an unhelpful traceback instead of the documented pin-mismatch refusal; resolve the attribute separately and translate that case too.
return tuple(view_extension.ViewBinding(**spec)
for spec in VIEW_BINDING_SPECS)
except TypeError as exc:
raise ViewContractUnsupported(
"this assembly's `opendox.view_extension.ViewBinding` does not "
src/openxdox/web/views/dispose.js:307
- The hosted emitter is awaited without a rejection path. If the shell's
ctx.intent.emitfails (network/transport failure), this handler exits before removingis-busyor adding a refusal entry, leaving the tray permanently busy. Treat the exception as a refusal result so the cleanup and panel reporting below always execute.
const result = await intent.emit({
src/openxdox/web/views/dispose.js:234
postcatches malformed responses but not a rejectedfetchpromise. Every local tray/propose/wheel caller awaits this helper and only re-enables or clears its busy state after it returns, so a network failure leaves the control busy/disabled with no refusal entry. Normalize transport exceptions to anok: falsepayload here.
const response = await doFetch(route, {
src/openxdox/web/views/gate-lens.js:134
- A rejected
fetcher/fetchpromise is not handled here, sodispatchnever reachesrenderOutcomeor re-enablesrun; an offline or aborted request leaves the execute control permanently disabled with no visible refusal. Return a refusal payload for transport exceptions, just as this helper already does for malformed responses.
const response = await doFetch(route, {
src/openxdox/web/views/gate.js:124
- If the browser or injected
fetcherrejects (for example on a network failure), this exception escapes the async click handler, leaving the button stuck in the "ratifying …" state and producing an unhandled rejection. Convert transport errors into the same refusal payload used for malformed/HTTP responses so the result is rendered and the control can recover.
const response = await doFetch(GATE_RATIFY_ROUTE, {
src/openxdox/web/views/gate.js:7
- The module header still says this is a read-only surface that “NEVER executes a gate” and that
serve.pystays GET/HEAD-only, but the newupgrade()path below intentionally POSTs/actions/gate/ratifywhenactions.gateis present. That contradiction can mislead security and deployment reviews; document the capability-gated ratify execution and limit the descriptor-only claim to demote/edit/kickoff.
// human runs against their pinned checkout. It NEVER executes a gate
// server-side: serve.py stays GET/HEAD read-only, and gate authority is
// human-only (a human running the CLI, whose `--actor` identity the record
// carries). This module is a pure descriptor builder plus a DOM-safe mount;
src/openxdox/web/views/swb-create.js:124
- The
fetchcall can reject before a response exists, but this helper only handles JSON parsing. That rejection propagates throughwithConsoleRepair, so the create form never renders a refusal and its submit button remains disabled after a network failure. Normalize transport errors here so the existingrenderOutcome/retry path runs.
const response = await doFetch(CREATE_ROUTE, {
src/openxdox/web/views/swb-session.js:313
- The transport can reject before
response.json()is reached, and that rejection escapes the session form'stry/finally; the label is restored but the submit button stays disabled and no refusal is rendered. Catch transport failures here and return anok: falsepayload so both the live form andfirstEditTransportfollow their existing refusal path.
const response = await doFetch(sessionRoute(affordance), {
tests/test_gate_loop_views.py:270
- This only checks that each spec's module is a member of
VIEW_MODULE_NAMES; it still passes if two bindings name the same module while another shipped module is never bound. Since materialization followsVIEW_BINDING_SPECSbut packaging and the hosted fallback followVIEW_MODULE_NAMES, that drift can leave one of the six modules unreachable. Assert equality of the two module sets (or an explicit one-to-one mapping).
def test_every_binding_names_a_module_this_package_ships() -> None:
for spec in SPECS:
module = spec["module"]
assert module.startswith("./views/") and module.endswith(".js"), module
assert module.split("/")[-1] in web_assets.VIEW_MODULE_NAMES, module
- Files reviewed: 14/14 changed files
- Comments generated: 0 new
- Review effort level: Lite
…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>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate findings remain in test compatibility, transport isolation, failure handling, packaging, and UI cleanup.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (8)
pyproject.toml:151
- The package-data declaration is the mechanism that makes these modules available from an installed wheel, but the current
test_every_declared_view_module_shipscheck readssrc/openxdox/web/viewsdirectly from the checkout. A mis-keyed or omitted package-data entry would therefore pass all current tests whilemodule_path()fails after wheel installation. Add an artifact-level test that builds/installs a wheel and verifies all sixweb/views/*.jsfiles are present.
openxdox = ["web/views/*.js"]
src/openxdox/web/views/dispose.js:342
CTX_MODEL_REACHdeclaresgate.dispose'sintent.renderChipsas a required context facet, and the module documentation says a shell that omits the hosted intent pieces is refused. This branch instead treats a missingrenderChipsas a normal no-chip case, so an incomplete intent context silently loses the feed UI rather than producing the named refusal required by the binding contract. Validate this facet at the mount/entry boundary and surface a refusal instead of silently skipping it.
if (intent && typeof intent.renderChips === "function") {
container.appendChild(intent.renderChips(el("span", "intentchips"),
possible.id, intent.rows, intent.error));
}
src/openxdox/web/views/gate.js:7
- The module header still describes
gate.jsas a pure descriptor builder that “NEVER executes a gate server-side,” butexecuteRatify()andupgrade()below now POST/actions/gate/ratifywheneveractions.gateis available. That is a materially misleading behavior/security description; distinguish the descriptor-only actions from the live ratify upgrade in the module documentation.
// Human gate console bar (US9; D16/D17). The READ-ONLY web v1 surfaces the four
// gate affordances (demote / edit / ratify / kickoff) on a gate-bearing artifact
// and produces the ACTION DESCRIPTOR — the exact `cli.py gate ...` command a
// human runs against their pinned checkout. It NEVER executes a gate
// server-side: serve.py stays GET/HEAD read-only, and gate authority is
// human-only (a human running the CLI, whose `--actor` identity the record
// carries). This module is a pure descriptor builder plus a DOM-safe mount;
src/openxdox/web/views/swb-create.js:328
- When
actionsHostis supplied, the cancel handler clears onlyhost; the action bar and result were appended to the separateactionsHostat lines 381-383. Cancel and Escape therefore leave the relocated submit/result controls in the outer workbench, where they remain usable after the form is gone and can accumulate across openings. Remove the relocated nodes on both close paths (without clearing unrelated contents ofactionsHost).
cancel.addEventListener("click", () => { host.innerHTML = ""; });
src/openxdox/web/views/swb-create.js:368
- If
submitCreate()rejects (for example, a network failure), thefinallyblock restores the label but the rejection skipsrenderOutcome()and the re-enable check at lines 369-371. The create button stays disabled with no visible error and the async click handler produces an unhandled rejection, so the user cannot retry the operation. Convert rejected requests into the same refusal/outcome path and re-enable the button.
try {
payload = await submitCreate(body, o.fetcher, o.caps, o.repair);
} finally {
submit.textContent = label;
}
src/openxdox/web/views/swb-session.js:704
- A rejected
submitSession()takes thefinallypath and then exits the async click handler beforerenderOutcome()or the re-enable check runs. A transient network failure therefore leaves the session verb permanently disabled and reports no user-facing error. Catch the rejection and render a refusal/retry result before restoring the enabled state.
try {
payload = await submitSession(affordance, body, o.fetcher, o.caps,
o.repair);
} finally {
submit.textContent = label;
src/openxdox/web_assets.py:196
- If
shutil.copyfilefails after an earlier module has already been written (for example, a permission or disk failure during a later copy), this raisesViewAssetErrorbut leaves a mixed bundle behind. A retry withoverwrite=Falsethen refuses the partial state, and an assembly that accidentally continues could serve only part of the gate loop; stage the complete set or restore prior files on failure before reporting the assembly error.
try:
shutil.copyfile(source, destination)
except OSError as exc:
raise ViewAssetError(
f"could not place {name!r} at {str(destination)!r}: {exc}. "
tests/test_gate_loop_probes.py:377
- This probe only mounts the session controls; it never clicks or submits any affordance. Consequently
calls.map(...)is always empty and the test does not exercise the claimed POST route, request body, or supplied model despite describing all three. Dispatch a matching button click and assert the recorded route/body (including the model-shaped payload).
const mounted = column.mountSessionAffordances(host, null, {
model, caps, fetcher, actor: "brett",
session: { scope: { repository: "openxFactory", topic: "t-1" },
posture: { branch: "session/t-1" } },
});
- Files reviewed: 16/16 changed files
- Comments generated: 2
- Review effort level: Lite
…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>
|
There was a problem hiding this comment.
🔵 Needs a closer look
Ten unresolved moderate findings remain before approval.
Review details
Suppressed comments (11)
Previously missed (4) — in code that hasn't changed since the last review.
src/openxdox/web/views/dispose.js:342
renderChipsis declared inCTX_MODEL_REACHas a requiredctx.intentdependency, and the module header says a hosted context missing either supplied helper is refused visibly. This condition instead silently renders a chipless hosted tray, making a malformed shell look like a valid feed; report a named refusal throughpanelEntry(or explicitly make this dependency optional and remove it from the required reach).
src/openxdox/web/views/gate-lens.js:248installModelstores this mount'sctx.modelin module-global state, but the click listener below callsclusterRequest/recipeRequestlater through that mutable global. If another mount installs a different model (or a missing model), an already-mounted lens button uses the wrong model or throws; capture the validated namespace in the mount's callbacks asfirstEditTransportalready does.
src/openxdox/web/views/swb-create.js:428- This validation writes
ctx.modelto module-globalMODEL, while the form's delayed submit callback later invokescreateRequestandwithConsoleRepairthrough that global. A second create mount can therefore make the first dialog shape its request with the wrong model or throw; the validated namespace needs to be captured per mount instead of shared globally.
src/openxdox/web/views/swb-session.js:772 - The mount still installs
ctx.modelinto module-globalMODEL, but live form callbacks later callsessionRequestandsubmitSessionthrough that mutable state (for example at lines 689 and 715). A subsequent mount can rebind an existing session form to another model or null; capture the mount's validated namespace for all delayed callbacks, not onlyfirstEditTransport.
pyproject.toml:151
- The new packaging line is only exercised against the source checkout (
VIEW_MODULE_DIR); the validation job installs editable.[test], so all current tests can pass even if a built wheel omits these JavaScript files. Since package data is the delivery mechanism this PR adds, add an isolated wheel/install smoke test that imports the installed package and verifies all sixweb/views/*.jsresources are present.
[tool.setuptools.package-data]
openxdox = ["web/views/*.js"]
src/openxdox/view_extensions.py:402
- The documented compatibility failure includes an
opendox.view_extensionmodule withoutViewBinding, but that case raisesAttributeErrorhere instead of the promisedViewContractUnsupported. A partially upgraded or malformed openDox pin therefore escapes the named assembly error path.
except TypeError as exc:
src/openxdox/web/views/gate-lens.js:217
- For
add-as-cluster,dispatchdisablesrunbefore this evidence form is shown. The cancel handler only clearscontainer, so the evidence form disappears while the original execute button remains disabled forever; invoke a cancellation callback that re-enablesrun(or otherwise restore the pre-form state).
cancel.addEventListener("click", clear);
src/openxdox/web/views/swb-create.js:383
- When
actionsHostis supplied,barandresultare moved out offorminto the external host. The cancel and Escape handlers still clear onlyhost, leaving the visible action buttons/result behind (and allowing duplicate orphaned actions on the next open); cleanup must remove the external action nodes as well.
const actions = o.actionsHost || form;
actions.appendChild(bar);
actions.appendChild(result);
src/openxdox/web_assets.py:197
- If a later
shutil.copyfilefails (for example because of a full/read-only destination), this wraps the error but leaves every earlier module inplacedon disk. The assembly can therefore leave a partially copied or partially overwritten bundle even though it refused; stage the files and commit atomically, or restore the originals on failure.
shutil.copyfile(source, destination)
except OSError as exc:
raise ViewAssetError(
f"could not place {name!r} at {str(destination)!r}: {exc}. "
"The assembly step (RULED Q5) copies this column's view modules "
tests/test_gate_loop_probes.py:380
- This test's name and docstring claim to verify that the mounted session controls POST through the supplied model, but it only reads the initial labels; no control is clicked,
submitSessionis never reached, andcallsis always empty. A regression in the form-to-route/body path would pass this test, so drive at least one live affordance through its generated form and assert the recorded method, route, and model-shaped body.
const labels = buttons(host).map((b) => b.textContent);
console.log(JSON.stringify({ mounted: mounted !== null, labels,
routes: calls.map((c) => c.route) }));
tests/test_gate_loop_probes.py:102
- This harness docstring still claims the shipped modules use
./lens-model.js, but the Q6 refactor removed that import and the probe immediately documents that it is absent. The stale dependency description makes the assembled module graph appear different from what the test actually executes.
bundle-relative imports (`./helpers.js`, `./lens-model.js`) resolving the
way they resolve in a composed deployment. That is a stronger statement than
- Files reviewed: 17/17 changed files
- Comments generated: 0 new
- Review effort level: Lite
… — four re_destined rows (#1023) Lane: openxfactory-4-opendox-extraction Refs #656 (stays OPEN). RULED Q1–Q12 at #656 comments 5648044785 (Q5, Q1, Q3 and the boundary note's own Q6), 5648049748 (Q2, Q4, Q7, Q8), 5648065587 (Q9–Q12), with the counterpart-Q6 correction at 5649094228 — Brett Heap, 2026-09-12, by interactive multi-choice. CLAIM: #656 comment 5648073924. The openxFactory half RULING Q-L1 requires of § 3.4 slice S5 — the row annotation that lands BEFORE its two leg PRs (opensoft/openDox-code#20, the shell half; opensoft/openXdox-code#18, the column half). Stacked on #1011 and the FIRST act to use its `re_destined:` form. FOUR RE-DESTINATIONS. RULED Q5 makes the gate loop a CONTRIBUTED column, so the rows for `web/views/{gate,dispose,swb-create,swb-session}.js` keep their own `destination` and `destination_path` untouched — that is why the ruling made this a FIELD rather than an edit — and gain `re_destined:` from `src/opendox/web/views/` to `src/openxdox/web/views/`. `views/gate-lens.js` and `views/gate-projects.js` are the other two modules and they move a different way: slice S4 CREATED them, so they have no row (RULED OQ-C) and a field of a row cannot carry them. They move by ADMISSION — off `opendox_code`'s `created:` list and onto `openxdox_code`'s in the same diff — and `tests/carve_arrival/` now asserts BOTH halves, because a one-sided move is exactly the drift that produces a stale admission nobody reads. SIXTEEN declared-edit entries over ELEVEN rows, every line number a carve-commit line (`b075fd91…`, `opendox-carve-0`) taken from the arrival verifier's own refusal output and every class one of RULING OQ-1's three: `serve.py`, `web/app.js`, `web/views/wheel.js`, `web/views/staging-workbench.js` (the one disposition change, moved_verbatim → moved_with_declared_edit) and `test_bullseye_widget.py` at `opendox_code`; `gate.js`, `dispose.js`, `swb-create.js`, `swb-session.js`, `test_session_confinement.py` and `test_staging_workbench.py` at `openxdox_code`. `test_gate_console.py` needed no new declaration — its existing `path constants` lines are :1627, :1785 and :1786 exactly — and this is stated rather than omitted, because "already declared" and "not noticed" look identical in a manifest diff. EIGHT admissions added and TWO removed, each `since` its file's OWN introducing commit rather than a leg's tip. The aggregate pair is re-derived by summing the applied manifest, never carried forward: declared edit LINES 1422 → 1584 over 158 → 159 rows carrying `edits:`; moved_verbatim 161 → 160, moved_with_declared_edit 157 → 158, not_moved 138 unchanged, rows RE-DESTINED by ruling 0 → 4; `import rewrites` 684 → 708, `adapter calls` 536 → 674, `path constants` 202 unchanged. The four documents that carry those totals as ABSOLUTES — runbook § 2, the README runbook entry and the two scripts' docstrings — are re-derived in the same commit. `carved_reach.py` and the dashboard source scan now resolve through the EFFECTIVE arrival, so a re-destined file is never read at a vacated path. Verified against fresh read-only clones of both final leg heads: `validate-carve-manifest.py` OK — 456 rows at `b075fd91`, 160/158/138, 4 RE-DESTINED by ruling; `verify-carve-arrival.py --destination opendox_code --phase B` OK — 119 rows arrived, 52 digests verified, 66 declared-edit rows within their lines, 4 re-destined AWAY and VERIFIED VACATED, 18 declared admissions used; `pytest tests/carve_manifest tests/carve_arrival` → 263 passed. Three `openxdox_code` `arrival-undeclared-edit` refusals (`gate_console.py`, `generator.py`, `test_generator.py` — openXdox-code #14's § 4.4 code half and #16's RULING-C2 follow-up) are LISTED, not ABSORBED: this PR does not invent declared-edit notes for work this lane did not do, and with those three remedied in a scratch manifest the destination answers OK with no further refusal and no new admission. RULED Q7's CSS extraction stays OWED, and so does the gate column's transport-failure handling (ruled out of S5's scope by the lane, 2026-09-13): neither is expressible in OQ-1's closed three-class vocabulary. Copilot rounds 1–3 taken, all five threads accurate and fixed: the manifest header still saying no row carries `re_destined:`; the test's aggregate note saying TEN edited arrived rows where the sections cover ELEVEN; the runbook § 2 "NO ROW CARRIES IT TODAY" sentence surviving beneath the new totals; `carved_reach.py` resolving `source()`/`sources_under()`/`shed_destination()` from the RAW destination, which would have linked the dashboard at a path the paired leg vacates; and the shared `carve_lines.py` line-definition docstring still declaring 1422. Plain gate: pytest-suite run 34734492609 SUCCESS at 0b99297; six required checks green (pytest-suite, lane-line, wallet-validation, release-tag-gate, openspec-cli-pin, signed-execution-chain-gate); 5 threads / 0 unresolved (Sourcery review skipped = advisory).
There was a problem hiding this comment.
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters
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>
…odules leave, the registry mounts, requires acts, ViewBindingError surfaces (RULED Q1–Q12) (#20) Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5648073924. **§ 3.4 slice S5, leg B — the shell loses the gate loop and reaches what it keeps of it through the registry.** openDox-spec `docs/front-end-package-boundary.md` § 5 row S5 @ `7d12428c`: *"The four class-B files and all 13 route constants — now all declared in class-B files — move behind a binding openXdox supplies; a student install comes up with no gate bar, no dispose tray, no session verbs, and no 404."* 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 — `5648044785` (Q5, Q1, Q3), `5648049748` (Q2, Q4, Q7, Q8), `5648065587` (Q9–Q12). **Paired with opensoft/openXdox-code#18, which supplies what this removes. It landed first, moments before this, as `c1ad341a930b69052b4c32f04ef3c762c033561c`** — the shell stops shipping these six modules in the same act that the column starts shipping them. Six class-B modules leave (S4's `views/gate-lens.js` and `views/gate-projects.js` among them — their own headers say "AT S5 THIS FILE LEAVES THE BUNDLE"), and what the shell keeps of them it reaches through the registry: RULED Q1's generic mount pass runs **per region, after that region's core render** and through the tab router's `onRegionRendered` hook, because every `dom` region is a root its core renderer CLEARS and a non-initial tab renders lazily; RULED Q2's `resolveView` hands back a namespace BOUNDED by the declaration; RULED Q4's `requires` are probed as dotted `/capabilities` paths and ACTED on; RULED Q8's `page-overlay` host is built by the shell, because `index.html` is a `moved_verbatim` carve row that cannot grow an element; RULED Q10's static `app.js:57` import is gone, `firstEditTransport` reached off `gate.workbench.session` with a `refusalTransport()` — a refusal in the shape `runSave` understands — when the column is absent; RULED Q11 catches `ViewBindingError` separately ("The snapshot is fine — the assembly is not"); RULED Q12's concatenation left with `dispose.js` and **no gate route literal survives anywhere in this bundle**. **The line slice S3 built both ends of and deliberately did not write is written here:** `serve.build_server()` now sets `capabilities["views"] = view_extension.view_manifest(…)`, collected from the host's `VIEW_EXTENSIONS` facet against the routes THIS assembly contributed. No new route and no second fetch. **Both boundary assertions reach zero at the slice their own markers named, and both markers are removed** (leaving either would be an XPASS that turns the check red): assertion 2 — no file outside class B names another column's route — 18 at S1 → 20 at S3 → 10 in scope after S4 → 6 once S6 landed → **0**, the last six being `app.js`'s CORE-arm `gate.bar` / `gate.lens` / `gate.projects` entries, each a class-B binding's `routes:` declaration sitting in a class-A file; assertion 3 — every relative import resolves, no class-A/C file imports class B — 7 → 6 → 4 → **0**, each closed by the module LEAVING. `views/lens.js`'s two openxFactory-lane sites remain assertion 2's declared exception, untouched. The student-install proof is four separately-measured facts, so a failure names which one broke: no gate bar / tray / session verbs; the module graph resolves without them (§ 1.2(b)'s blank-page failure mode closed); no 404, because no gate route literal survives; and unoffered-not-undefined — `NO_DISPOSE_COLUMN`, `NO_CREATE_COLUMN`, `NO_SESSION_COLUMN`, each answering `false` to its capability predicate. **The annotation this leg was owed LANDED FIRST, as RULING Q-L1 requires:** opensoft/openXfactory#1023 → `ee251d6c54b7e16728f2648c71faa90d6be76496`, carrying the four RE-DESTINATIONS under the form RULED Q6, the declared edits on `serve.py`, `web/app.js`, `views/wheel.js`, `views/staging-workbench.js` (moved_verbatim → moved_with_declared_edit) and `test_bullseye_widget.py`, the `created:` admission for `tests/test_gate_loop_contributed.py`, and the removal of the two admissions that went STALE here when S4's created files moved to the other destination. Measured from that landed main against this head: `verify-carve-arrival.py --destination opendox_code --phase B` answers **OK — 119 rows arrived, 52 digests verified, 66 declared-edit rows within their lines, 146 files with NONE undeclared, 0 rows re-destined HERE and 4 re-destined AWAY and VERIFIED VACATED (RULED Q6), 18 declared admissions used** (plus the one pre-existing ad-hoc `tests/conftest.py`, openDox-code#19's declared depth fix, which this slice did not create). **The caveat this PR carried about riding in with unlanded content is RESOLVED.** The S3 fail-closed follow-up (`requireRouteShape`) was merged into the old stack after #17 had been squashed; it has since landed on `main` on its own as #22 (`05bbde80`), and `git show origin/main:src/opendox/web/views/view_extension.js | grep -c requireRouteShape` answers 3. This branch merged that main in. Copilot rounds 1–6, twenty-one threads, none unresolved. Round 2 took eight: a `requires` probe reading INHERITED members (`requires: ["toString"]` met a requirement no payload carries); a declared export checked present but not callable; the pass re-resolving by `binding.id` when bindings are unique by SLOT; the pass running once before every core mount; `VIEW_EXTENSIONS` truthiness read as presence, so a host declaring `()` looked like a host that never grew the facet; `wheel.js` and `staging-workbench.js` holding their columns in module-level `let`s, so two live renders shared one column; and two arrived test files still reading modules that left. Round 3 took three more — the lazy profile proxy refusing every dunder, so `host_profile` could only ever be `null`; the per-region pass having no cancellation once it could start from a tab's first render and await an import; and a late refusal having nowhere to be written, since `render()` ends with `status.remove()` — and refuted two with executed evidence (`mountProjectGate` does pass the outer snapshot in Q3's order; recursive `**` in `package_data` arrived in setuptools 62.3.0 and this leg declares `setuptools>=68`, with a real `python -m build` packaging 40 entries under `opendox/web/`). **Round 4, found at this head and taken rather than deferred**, is the same defect round 3 fixed one layer in: the six contributed resolves each await a dynamic import, and EVERYTHING below them mounts — the declared namespaces are handed down, `ensurePageOverlayHost()` builds RULED Q8's host, the dispose panel is mounted into it, and every region's core render follows. A repository switch during one of those imports aborts this render's scope, but the old render still resumed after the awaits and mounted its stale snapshot into the page the newer render owns; `mountContributedViews`'s own signal check guards the generic pass and cannot undo a shell mount that already happened. The render that lost its scope now stops between the last resolve and the first mount, and its ERROR path stops with it — `reportAssemblyFailure` is a closure of ONE render, handed rejections by the per-region pass that can arrive minutes later, so a refusal from a render the user has already switched away from would have been written over the live render's own surface. The new test pins the guard's POSITION rather than its presence, since the ordering is the whole finding, and the boundary census's `app.js` row moves 1584 → 1602 loc (class-A total 16918 → 16936) with the reason in its note. The destination gate was re-run on the fixed tree BEFORE the push and answers OK with identical figures: the guard falls inside `web/app.js`'s already-declared edit lines, so no amendment to the landed annotation is owed. **Round 5, likewise found and taken at the landing**, is this bundle's registry contradicting its own contract. RULED Q1's generic pass read `const unmet = capabilities === undefined ? null : unmetRequirement(...)`, so a caller that omitted the payload skipped RULED Q4's gate entirely: a REQUIRED binding with an unmet requirement was imported and MOUNTED — the one outcome the ruling says must refuse — and an OPTIONAL one mounted where it owed an empty region and a named reason. Fifteen lines into this file's own Q4 block stands the sentence it broke: "A MISSING PAYLOAD IS AN UNMET REQUIREMENT, NOT AN ERROR … `undefined` at the end of the path is the honest answer 'this plane does not offer it'." `undefined` for the whole payload says that about every path at once, and it is the same fail-closed posture `probeCapabilityPath` was rewritten into at round 2. `unmetRequirement` is now evaluated unconditionally. Production behaviour is unchanged — `mountContributedInto` has always passed `{ capabilities: probedCaps, regions, signal }` — so what closes is the seam a later caller, a probe or a contributed column's own harness would have found open. The new node-driven test was run against the OLD read and FAILS there, so it pins the behaviour rather than restating it; `views/view_extension.js` is slice S3's CREATED file, so no amendment is owed for it either. **Round 6 is round 4's finding one and two awaits further down, and it was taken the same way.** RULED Q1's generic mount pass is itself AWAITED twice at the top level of `render()` — after `mountExplorer()` and after `mountStagingWorkbench()`, which is where round 2 put it — and each await is a dynamic `import()` per contributed binding. `mountContributedViews`'s own signal check (round 3) stops only ITS mounts; it cannot stop the CALLER that resumes after it, and below those two lines the render keeps writing to the page: the staging workbench overlay, the tab strip, the repository selector, `initAbout`, the global search listener — and finally `status.remove()`, which on a repository switch strips the NEWER render's `#loadstatus` while the stale render's workbench and tab strip land on top of the new one's. `if (signal.aborted) return;` now sits immediately after each. There is deliberately no fifth guard: the third call of the same pass, the tab router's `onRegionRendered` hook, is not awaited (it runs from a synchronous click handler, round 2), so its scope check is its rejection path's — the guard round 4 put at the top of `reportAssemblyFailure`. Four sites is the whole census, and the tests now say so: the new test pins each stop BETWEEN its own pass and the next thing this render writes and both above `status.remove()`, while round 4's test pins the census at four rather than two and names each one; both were run against the OLD read and FAIL there. The boundary census's `app.js` row moves 1602 → 1618 loc (class-A total 16945 → 16961) with the reason in its note, and the destination gate re-run on the fixed tree before the push answers OK with identical figures — both guards fall inside `web/app.js`'s already-declared edit lines, so again no amendment to the landed annotation is owed. **Round 7 (`5c6f762`) posted ZERO new comments** — 22/22 files reviewed, 21 threads, none unresolved, `validate` green — and its check completed success. Its verdict line reads "Needs a closer look" on the strength of three SUPPRESSED comments, which Copilot declines to post as threads and which have been a standing class in every round of this review (3-7 per round since `fd7160d`). They are REGISTERED here rather than silently passed over, and none is a regression of the round-6 fix: (a) `view_extension.py:657` — the `_NO_FACET` sentinel comment says `VIEW_EXTENSIONS = None` is a MALFORMED declaration while `host_view_facet()` returns `("absent", ())` for it and its own docstring says a profile "is entitled to spell 'I contribute no views' as `None`"; READ AND CONFIRMED ACCURATE — a comment/implementation contradiction, no behaviour defect, and a one-line comment fix owed as a later declared act. (b) `app.js:1092` — a binding whose manifest names an entry but omits a second export (`isGateBearing`) passes the resolve and is reached later from the async `renderViewer` path, outside `render()`'s `try`, so the proxy's `ViewBindingError` would become an unhandled rejection instead of reaching RULED Q11's surface. (c) `views/view_extension.js:692` — the Q2 namespace proxy's `then` pass-through lets an undeclared `then` export cross the boundary. (b) and (c) are RAISED AND NOT YET ADJUDICATED: each is a fail-closed question about the registry seam rather than about what this slice moved, and each is registered on openxFactory#656 for a later declared act rather than taken at the landing. Register, carried forward: RULED Q7's contributed CSS is NOT realized and not skipped — `styles.css` is a `moved_verbatim` row and "a stylesheet block leaves for another leg" is in none of RULING OQ-1's three classes (measured: 51 classes exclusive to the six modules, 24 shared). The two intent-feed suites (`test_intent_tray_dom.py`, `test_wheel_verbs_dom.py`) copy `views/intent-feed.js`, RULED `not_moved` under OQ-F, so both have failed since the CARVE COMMIT and removing `views/dispose.js` from their copy lists would not make either run — they are slice S8's, and `.github/workflows/validate.yml` records that by name. RULED Q4 produces one named behaviour change: now that the shell ACTS on `requires`, `gate.bar`, `gate.workbench.create`, `gate.workbench.session` and `gate.dispose` declare NO requirement, because requiring `actions.gate` would delete the read-only gate surface — and, for `gate.dispose`, the refusal tray — on every HOSTED plane. Five node probes moved with their modules to openXdox-code#18 rather than being deleted. Landing authority: **Brett Heap's word, 2026-09-13 — "merge #1023, #18 and #20 when green"** (relayed by the orchestrator, session openXfactory-4). Gate evidence: destination gate above, re-run from openxFactory main `ee251d6c` against this head (whose carve manifest, admissions and verifier are byte-identical to openxFactory `origin/main` `04340d77`); `validate` SUCCESS at `5c6f762` (run 34787811773, check run 103806385253), the one required check in this repository's ruleset; 21 review threads / 0 unresolved; Copilot re-reviewed at every head after `gh pr ready` and after each of the round-4, round-5 and round-6 fixes; Sourcery review skipped (budget) = advisory; SonarCloud success and advisory either way. The narrowed `validate` list was also run locally exactly as CI runs it (`--noconftest`): 253 passed, 1 xfailed, 0 failed.
…his leg does not have (#19) Lane: openxfactory-4 Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: #656 comment 5649985838. RULED 2026-09-13 at #656 comment 5656343213 (Brett Heap, by interactive multi-choice) — "the path constant moves, the file does not". Spec: openDox-spec docs/front-end-package-boundary.md § 1.2(d) and § 5 row S8 @ 7d12428c. LEG A of § 3.4 slice S8, the shed half. Lands AFTER openxFactory#1025, the annotation that declares every line these edits touch, and after S5 leg A (#18, landed c1ad341), which this branch merged in. FORTY-FOUR OF FORTY-SIX BUNDLE PATHS STOP NAMING A DIRECTORY THIS LEG DOES NOT HAVE. 46 ROOT SPELLINGS over 31 files name REPO_ROOT / "src" / "openxdox" / "web" — 22 files resolving a concrete views/<name>.js module under it, 9 passing the root to serve_mod.build_server as a serve root — and the carve's import rewrites edit class is what pointed them at the wrong leg. 44 move. TWO stay, named rather than silently skipped: tests/test_gate_console.py:58, because S5 leg A places src/openxdox/web/views/gate.js at this leg, and tests/tools/playwright-smoke.py:282, a TOOL outside validate's list rather than a suite. Both stayers are byte-identical to main at this head. ONE site is ADDED, deliberately: tests/test_renderer.py:49's OWN_VIEWS, which reads this column's own swb-session.js out of this leg's package data. RE-DERIVED AT LANDING, AND ONLY THE COUNT MOVED. The rounds on the PR said "31 files, 47 sites; 46 move; the 47th". Under an instrument NAMED so it can be re-run — 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 and never a worktree — openXdox-code main c1ad341 carries 46 spellings over 31 files and this head carries 4 over 4: openDox-spec#11 (boundary-note amendment #3)'s own second-instrument table, reproduced here on the nose. TWO of the 46 stay, not one — the missed one is the TOOL at tests/tools/playwright-smoke.py:282, outside validate's list — so 44 move. NINE files use the root as a serve root, not eight, the same tool being the ninth; with the 22 that resolve a concrete views/<name>.js module under it that is the 31, as 22 + 9. The 22 is NOT a correction of § 1.2(d)'s 23: amendment #3 recovered that instrument and reproduced the 23 exactly at the census tree, and the 22 is the subset that ALSO roots at src/openxdox/web — the round-2 sentence had conflated the two sets. The round-2 "47 path sites" is left attributed rather than restated, because a root spelled once carries several derived sites and neither total corrects the other; the STAYER count, by contrast, is wrong under every instrument. Nothing in the tree changed and nothing was re-gated: validate run 34785404471 at 080dcfc stands unchanged. THE FILES DO NOT MOVE, AND THAT IS A MEASUREMENT. § 5's S8 row infers the 23 go to the leg the census says owns each bundle file; an ast walk of every module-level Import/ImportFrom says the inference holds for NONE of them — every one imports a real openxdox module (generator, snapshot_registry, gate_console, gate_routes, doxbench_scope, round_trip), and RULED OQ-G's TEST HOMES rule places a mixed file HERE for exactly that reason. Moved the other way each fails on its first import line, in the direction tests/test_dependency_direction.py exists to refuse. WHERE THE BUNDLE ACTUALLY IS. tests/opendox_bundle.py — a CREATED file (RULED OQ-C, admitted by name in openxFactory 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 identical skip S5 landed at this leg in tests/test_gate_loop_probes.py::_opendox_bundle. composed() builds RULED Q5's composed root for the four suites that assert across the seam by calling the assembly hook itself (openxdox.web_assets.install_view_modules()), so it cannot drift from it. WHY validate IS NOT UN-NARROWED FURTHER, measured rather than asserted: every one of the 31 files still errors at COLLECTION on src/openxdox/generator.py:66 from doc_health import corpus, an openxFactory-only package present at neither leg, sitting ahead of this repair in the import order — 57 collection errors across the tree, 873 errors past them. RULED Q-L8 (b') waits on the BUILD arc (§ 3.5/3.6). The list went from 6 files to 15 (4 shape assertions, S5's 2, S8's 9) and from 154 passed / 16 skipped to 301 passed, 23 skipped. ONE SUITE RULED TO RETIRE, NOT REPAIRED AND NOT DELETED. tests/test_staging_workbench.py:1985 copies views/intent-feed.js into its ending-replay harness — a RULED OQ-F not_moved row present at neither leg, whose surface S2 replaced with views/intent-binding.js. re_destined: to: openxfactory is not expressible (to is held to the CLOSED destinations: keys; openxFactory is the SOURCE), and deleting an arrived row has no form at all. RULED 5656343213: it RETIRES at this leg as a declared act citing OQ-F, under a retired: row form registered as the NEXT carve-floor act (CLAIMED at #656 comment 5656690570). It lands here untouched and narrowed out of validate, named RETIRING. Plain gate: validate run 34785404471 SUCCESS at 080dcfc; 5 review threads / 0 unresolved. The branch already contained openXdox-code main (c1ad341, S5 leg A #18) before landing, so no merge was owed here. Reproduced locally under the workflow's own invocation, file list read out of the workflow rather than retyped: 301 passed, 23 skipped. COPILOT'S REVIEW IS THE REVIEW OF THIS TREE, AND ITS EIGHT SUPPRESSED COMMENTS ARE ANSWERED IN PUBLIC at openXdox-code#19 comment 5690504939. Its last review sits at 582ae21 and this head at 080dcfc, which is the SAME TREE (ae0e126 at both — the merge brought an origin/main the branch already contained and changed no file), so the review covers what lands. One finding, eight times: tests/opendox_bundle.py's module-level skip suppresses bundle-independent tests in the file that imports it. Measured: NOT ONE of the eight files it names is in this leg's validate list, and every one of the eight ERRORS AT COLLECTION today on doc_health (2) or ideation_dashboard (6) — before the bundle import is reached — so the skip suppresses nothing that runs and a lazy lookup would change no verdict at this head. Of the fifteen files the list does name, exactly ONE takes the module-level skip (tests/test_doxbench_mutation_boundary.py, 1 skip). Inside that file the finding has real content — 14 of its 20 tests name none of the five bundle-derived module constants — and it is REGISTERED for a later declared act, not dismissed: this slice's scope is RULED to the path constant (5656343213), the module-level form is slice S5's landed precedent at this leg, and the skip clears at the pin bump its own reason names. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tree (split-opendox § 8.9 residue (i)-(iii)) (#28) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) ## What this repairs The archived openxFactory `split-opendox-two-layer-product` booked three carve defects in this leg's snapshot validation at `tasks.md` § 8.9 (amendment #6, RULED Q-P3 (a), openxFactory #656 comment `5728856581`), "owed to a follow-up act with its own claim". The box took its `[~]` DEFERRED marker at the archive, by RULED `5778397686`. This PR is that act. RULED at openxFactory #656 comment [5815412869](opensoft/openXfactory#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](opensoft/openXfactory#656 (comment)): - **Q-XDV1 (a):** `CONTRACTS_DIR` comes from the environment. The assembly root's export of it is a separate openRepoShape act, not this PR. - **Q-XDV4 (a):** the two new suites stay OFF `validate.yml`'s named list. The three defects: - **(i)** `scripts/validate-ideation-dashboard-contracts.py`: `SCHEMAS_DIR` resolved to `ROOT / "contracts" / "schemas"`, a directory this leg does not have, "so as carved the validator cannot run from anywhere". - **(ii)** `src/openxdox/snapshot.py`: `VALIDATOR_RELPATH` named `openxFactory/scripts/validate-ideation-dashboard-contracts.py`, which openxFactory shed at `cc4ae9d3`. - **(iii)** `find_validator` walked every parent of its start (or of the cwd) and adopted whatever enclosing checkout still carried a pre-shed copy: "a reader adopting its enclosing tree". **This lands AFTER opensoft/openXfactory#1153** (RULED Q-L1, `5642758731`: the row annotation for an edit to an arrived file lands first). **#1153 LANDED** as `1d14fee6`. Against openxFactory `main` at `1d14fee6`, `verify-carve-arrival.py --destination openxdox_code --phase B` with the six replicas answers **OK** for this head `3f32cb5d`: 96 rows arrived, 87 declared-edit rows within their lines, 3 unapplied, 135 files with none undeclared, 34 declared admissions used. Before #1153, `main`'s manifest refused this leg with `arrival-digest-mismatch` at `src/openxdox/snapshot.py`. **Land it by squash, the way #16–#27 landed.** Both admissions' `since:` is `45825ff7`, this branch's first commit, which introduced both suites (`git log --diff-filter=A` on this branch). That stays true through a squash, as it does for the 17 existing admissions that name a pre-squash branch commit. It would stop being true only if this branch's history were rewritten, so it must not be. **This does NOT discharge openxFactory#1144 (`add-neutral-product-standalone-operability`) task 7.3.** That box's FALSIFIED BY asks the INSTALLED distribution to find its own validator from a `start` outside the product. This PR's `find_validator` answers `None` for such a start. So when phase 2 realizes 7.3, it revisits `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`, and the holder is taking that tension to Brett as a phase-2 question. The arrived `tests/test_snapshot_validation_launch.py` belongs to the same revisit (Copilot, round 2). It still writes its stub validator at `aggregation / VALIDATOR_RELPATH` and launches from the corpus root outside this product, so under this confinement its launch would report validation SKIPPED. It cannot be collected in this repository at the base or at this head: the pinned openDox-code `5c137a90`'s `serve.py` imports `ideation_dashboard`, which is not installed here. It is also not among `validate.yml`'s named files, so no gate's outcome moves. Nothing changes for openDox-code's two live callers of `find_validator`, which are `workbench.validate_manifest` → `find_validator(path.parent)` and `cli._locate_validator` → `find_validator(written.parent) or find_validator(repo_root)`. Both pass a start outside this product. Both already get `None` at `main`, because the old relpath names the shed path. They still get `None` here. ## Before → after (re-cut on `main` `626f2c8d`; the four files are byte-identical to the helper bank's first cut `d3a90748` on `ab04453d`, and `#26`/`#27` touched none of them) | | before (`626f2c8d`) | after | | --- | --- | --- | | (ii) `VALIDATOR_RELPATH` | `openxFactory/scripts/validate-ideation-dashboard-contracts.py` (absent everywhere since `cc4ae9d3`) | `scripts/validate-ideation-dashboard-contracts.py`, relative to this product's root | | (iii) the product nested under a pre-shed openxFactory checkout | adopts the parent's validator | never looks up: the validator used is always the product's own. A dangling-edge snapshot is `not-conformant`, and `validate_or_raise` raises | | (i) validator in the openXdox assembly root (`2f3f857d`, `code` at the test tree), `CONTRACTS_DIR=$PWD/spec/contracts` | rc=2 in every case: `ERROR harness failure: … code/contracts/schemas/ideation-dashboard-snapshot.schema.yaml` not found | snapshot example rc=0; `negative/snapshot-dangling-document-edge` rc=1 (1 error); `snapshot-index` example rc=0 | | (i) the same without `CONTRACTS_DIR` | rc=2, as above | rc=2, now naming the channel: `… is not carried under …/code/contracts/schemas (this tree carries no contracts/ and CONTRACTS_DIR is not set; export it as the spec leg's contracts directory)` | | the arrived, unedited `tests/test_snapshot.py`, in that assembly root with `CONTRACTS_DIR` | 3 failed / 14 passed | **17 passed** | ## How - **(ii) and (iii).** - `product_root()` is fixed `parents[2]` arithmetic on the module's own path, confirmed by an explicit marker: the `src/openxdox/` layout and a `pyproject.toml` naming `openxdox`. - `find_validator(start=None)` keeps its signature, because openDox's `consumer_reach` binds it by name. It now CONFINES: a `start` outside the product answers `None`, a `scripts/` link that resolves out of the tree is refused, and neither the cwd nor the snapshot's own directory is a search root any more. - A validator from anywhere else must be passed explicitly (`validator=`). - **(i).** - A resolved `schemas/` that carries NONE of the ten, or none at all, is refused before any mode runs: harness failure, exit 2 (`87e627c`, Copilot round 2). Otherwise an empty registry let a directory sweep that met no recognized instance exit 0 having loaded no schema. - An own `contracts/` or `contracts/schemas/` that resolves OUT of the tree is refused before any directory is chosen, whatever it reaches: a directory with `schemas/`, one without, or nothing, since a dangling link counts too (`3f32cb5d`, Copilot round 3). Otherwise a valid `CONTRACTS_DIR` let such a link pass unread. - The validator reads this tree's own `contracts/` when the tree carries `contracts/schemas/`. That covers the pre-shed layout and openxFactory's `doxbench_contracts._composed_validator` farm, both unchanged. - Otherwise it reads the directory **`CONTRACTS_DIR`** names. That is the channel the assembly root's `AGENTS-shape.md` declares for a contract the code reads but does not own: "the code leg's tooling now takes `CONTRACTS_DIR` from the environment … rather than each script guessing at `../`". - Nothing above the script's own root is read by position. - The registry loads the family schemas the resolved directory carries; three of the ten live in openXdox-spec since the carve. An instance of any other kind is refused with exit 2 and never passed. The refusal names the missing schema and the directory it read. For a possibles-register section, whose kernel stays with openxFactory, it is the registry's own `Unresolvable` naming that schema. openXdox's root `Makefile` is a digest-pinned copy of openRepoShape's scaffold template. It does not export `CONTRACTS_DIR` today, so in the assembly root the validator still refuses by default, but it now says which variable supplies the contracts. Whether the root should carry that export is a shape question for openRepoShape (Q-XDV1 (a)), not this PR. ## Tests Two created suites, both `--noconftest`-safe, each copying the REAL module or script into a `tmp_path` layout: - `tests/test_snapshot_validator_home.py`, 12 tests. - (ii): the relpath and the own-tree answer. - (iii): none of these is ever adopted: an enclosing pre-shed validator, a pre-shed corpus, the cwd, a `start` outside the product, an installed copy, a `pyproject.toml` naming another distribution, and an escaping `scripts/` link. - The signature is kept. - `tests/test_validator_schema_home.py`, 12 tests: - runs with `CONTRACTS_DIR` (exit 0); - a dangling edge is a finding (exit 1); - an uncarried kind is refused by name (exit 2); - both carved path constants follow the declared directory; - the refusal names the channel; - a declared directory without `schemas/` is refused; - an enclosing assembly root is never read by position; - a composed family's own tree still wins over `CONTRACTS_DIR`; - an own `contracts/` that is a LINK out of the tree is refused, with or without `CONTRACTS_DIR` (added at `0a1963f8` on Copilot's review); - a real `contracts/schemas/` of LINKED files (openxFactory's composed farm) is still the tree's own (a guard, same round); - no mode passes having loaded no schema: both sweeps, `--transition` and the default, with nothing resolved or with a `schemas/` of unrelated files, all exit 2 (added at `87e627c` on Copilot's review; it fails at `0a1963f8`, where the empty sweep exits 0); - an escaping own link is refused whatever it reaches: `contracts/` dangling, `contracts/` to an outside directory without `schemas/`, and `schemas/` dangling out of a real `contracts/`, each with and without `CONTRACTS_DIR` (added at `3f32cb5d`; it fails at `87e627c`, where the dangling link with `CONTRACTS_DIR` exits 0). | measurement (python 3.12.3, pytest 8.4.2; venv from `pip install -e ".[test]"` as `validate.yml` installs, plus a second venv adding rfc3339-validator where noted) | `626f2c8d` | this head (`3f32cb5d`) | | --- | --- | --- | | **the required check replicated**: the 16 named files, `--noconftest`, no rfc3339-validator, as on the runner | 564 selected / 558 passed / 6 skipped / 0 / 0, **pin HOLDS** (floors ≥564, ≥558, ==6) | 564 / 558 / 6 / 0 / 0, **pin HOLDS** | | the two created suites, with rfc3339-validator | 21 failed / 3 passed (the residues, the two link cases, the no-schema guard and the new marker's API; the 3 passes are guards) | **24 passed** | | the two created suites, CI venv (no rfc3339-validator) | 11 failed / 1 passed / 1 skipped | 12 passed / 1 skipped (`test_validator_schema_home.py` skips at module level) | | whole `tests/`, `--noconftest`, `--continue-on-collection-errors`, per-test JUnit diff | 174 F / 830 P / 10 S / 128 E of 1142 (with the two suites copied in) | 152 F / 852 P / 10 S / 128 E of 1142. **22 outcomes change, all fail → pass**: the 21 new-suite tests that fail on the base and `tests/test_snapshot.py::test_find_validator_locates_pinned_checkout`. **0 regressions.** The 128 collection errors (`No module named 'ideation_dashboard'` / `'doc_health'`) are carve residue on both sides | ## Not in this PR - **The named list** (Q-XDV4 (a)). Both suites exercise carved modules, which RULED Q-L8 (b′) keeps off `validate.yml`'s list. `test_validator_schema_home.py` would also report as one module-level skip on a runner without rfc3339-validator (+1 against `EXPECT_SKIPPED == 6`). - **rfc3339-validator is not declared** in `pyproject.toml`, yet the validator exits 2 at its FormatChecker guard without it. That is reported here, not fixed. - **`tests/test_validate_ideation_dashboard_contracts.py`** keeps openxFactory's `parents[2]`, so it names the directory above this repository. That is another row's path constant, reported and not fixed. - **The pin moves**, which are separate owed acts in the forced order: - first, the openXdox root's code pin (the `code` gitlink, `contracts/code-pin.yaml` `commit:` and `tree_sha256`, `contracts/manifest.yaml` and CHANGELOG, in the shape of openXdox#17/#18) at this PR's LANDED sha; - then openxFactory's openXdox pin, with the consumer updates it makes due (`test_dashboard_source_seal.py` asserts the old walk; `nightly_lane.py` calls `find_validator(agg_root)`). ## Review rounds - **Round 1** (Copilot at `45825ff7`), fixed at `0a1963f8`. An own `contracts/` or `contracts/schemas/` that is a LINK out of the tree is refused with exit 2, with or without `CONTRACTS_DIR`. A real directory of linked schema files is still the tree's own. - **Round 2** (Copilot at `0a1963f8`), fixed at `87e627c`. With no schema carried, a directory sweep that met no recognized instance exited 0 having loaded nothing. `build_registry` now refuses first. This also corrects my round-1 answer, which called that exit 0 pre-existing: measured, the base `626f2c8d` exits 2 there. The launch-harness finding is answered in its thread; it belongs to the #1144 task 7.3 revisit described above, and is not a change here. - **Round 3** (Copilot at `87e627c`), fixed at `3f32cb5d`. The escaping-link check used to run only when `contracts/schemas/` was a directory, so a dangling link, or a link to an outside directory without `schemas/`, passed unread whenever `CONTRACTS_DIR` was valid. Both names are now checked as they resolve, before any directory is chosen. All eight probe cases exit 2; the composed farm still exits 0. - **No round moves openxFactory#1153's window.** Against the carve blob, the diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822, plus insertions beside 94 and 237. `verify-carve-arrival.py --phase B`, with the six replicas, answers `OK` for `3f32cb5d` against the LANDED `main` `1d14fee6` (87 declared-edit rows within their lines, 34 admissions used). The two admissions' `since` stays `45825ff7`, the suites' introducing commit. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tes again (plan 038) (#42) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 6013609326) Arc: neutral-product-standalone-operability ## T023, U-4: `swb-session.js` spells the model's two names at its call sites again (plan 038, feature `038-opendox-document-tool-self-maintenance`) After set met: T004 (opensoft/openXfactory#1245) landed as 260234b5 at 2026-10-06T14:31Z. Base brought up to date with main (T020 #39 c6d15b2, then T024 #38 8b64fae) by two merge commits; CI green at e8a067f; the composed falsifier was measured at c3c6a47, before the merges, and was not re-run (the merges brought only T020's host registration and T024's shim; INFERRED, not measured: the composed falsifier reads the same at the new head). ### Contract, from `tasks.md` - **Realizes**: 12.5 (part). - **Falsifier**: the 2 nodes, composed, quoted. - **Ruled**: R2Q8. (The entry names no Decisions line.) - **After**: T004. - **Files**: openXdox-code `src/openxdox/web/views/swb-session.js`, plus ONE new test file, `tests/test_swb_session_transport.py`. The test file is not in the task's `tasks.md` entry: lane openxfactory-4 added it to T023's Files by its ruling on Copilot's first finding on this PR (`lane4-to-lane3.log`, 12:52:51Z, "FIX-NOW, as in T022 (a)"; recorded on #656 in lane 4's latest comment). No protected suite is edited, and the file is not one of the 16 `HOST_PLANE_SUITES`. ### What and why `submitSession` took its two model calls from locals, `const headersOf = bound ? bound.consoleHeaders : consoleHeaders;` and `const repairWith = ...`, called as `headersOf(caps)` and `repairWith(send, repair)`. That is the `bound`-namespace refinement of Copilot review round 3, which arrived with the S5 carve in #18. `tests/test_session_confinement.py` pins both write transports (`swb-session.js` and `swb-create.js`) to the literal spellings `headers: consoleHeaders(caps)` and `withConsoleRepair(send, repair)`, so two nodes went red in the composed run. The pre-shed openxFactory copy spelled both exactly; `swb-create.js` still does. The trace is lane 3's R2-INV-P4F part, Group J. The fix shadows the two module-level names inside `submitSession` instead of respelling the call sites: ```js const MODULE_TRANSPORT = { consoleHeaders: (...args) => consoleHeaders(...args), withConsoleRepair: (...args) => withConsoleRepair(...args), }; // inside submitSession: const { consoleHeaders, withConsoleRepair } = bound || MODULE_TRANSPORT; // headers: consoleHeaders(caps), ... return withConsoleRepair(send, repair); ``` With a `bound` namespace the calls go to it, as before. With none, `MODULE_TRANSPORT` reaches the CURRENT install at call time, exactly as the two module-level consts do. The comment above it does not quote the pinned needles, because a needle quoted in its own source satisfies itself; each pinned needle occurs once in the file, in code (counted). ### The new test file, `tests/test_swb_session_transport.py` The pinned spellings are text assertions, so they cannot tell the right model from the wrong one. Two node probes run the shipped module out of the composed bundle and assert on the request that reaches the injected fetcher: - **bound**: two `firstEditTransport`s over two models that differ in exactly `consoleHeaders` and `withConsoleRepair`, both built before either is called; each request must carry its own model's header (from its own `caps`) and go through its own model's repair policy. - **unbound**: a mounted session form, submit pressed; the request must carry the header the mounted model's `consoleHeaders` built and go through its `withConsoleRepair`. (The outcome panel the column writes after the request needs the shell's `page-overlay` host, which a stub DOM lacks, so the handler rejects after the fetcher is called; the probe records that and asserts on the request only.) Both pass at main's own code (checked in the base clone), so they describe the behaviour the respelling preserves. They run in the lone CI form too: no openxFactory module, node only, as `test_gate_loop_probes.py` does. ### The falsifier **Base measured**: openXdox-code `56e1c238` (origin/main), openDox-code `a9ac96f9` (plain install, `--no-deps`, over openXdox's pin, as R2-INV-P4F did), openxFactory `92010d3e` with `openDox`, `openXdox` and `openXwallet` initialized recursively and its `scripts/` on `PYTHONPATH` (R1Q23 (a)'s form). Python 3.12.3, pytest 8.4.2, the CI install command (`python -m pip install -e ".[test]"`). **Head**: `c3c6a47` (the fix is `f19e05c`; the test file is `c3c6a47`). Run with `FORCE_COLOR`, `CLICOLOR` and `COLORTERM` unset and `TERM=dumb`. RED at main (`56e1c238`), composed: ``` FAILED tests/test_session_confinement.py::test_the_renderer_presents_the_console_token_from_the_capability_probe FAILED tests/test_session_confinement.py::test_the_renderer_repairs_a_stale_token_by_re_reading_it_never_by_reloading 2 failed in 0.45s ``` (each: `AssertionError: swb-session.js`, from `'headers: consoleHeaders(caps)' in body` at `:290` and `'withConsoleRepair(send, repair)' in body` at `:383`) GREEN at head `c3c6a47`, same environment: ``` PASSED tests/test_session_confinement.py::test_the_renderer_presents_the_console_token_from_the_capability_probe PASSED tests/test_session_confinement.py::test_the_renderer_repairs_a_stale_token_by_re_reading_it_never_by_reloading 2 passed in 0.67s ``` ### What else reads `swb-session.js`, and did not move Every test file in the tree (`tests/test_*.py` and `tests/integration`, named on the command line so the declared exclusion does not drop them), composed as above, run SERIALLY on one idle container with `--continue-on-collection-errors` (`test_gate_console.py` fails to collect in both, for want of `scripts/proposal-support.py`): | | nodes | failed | errors | passed | skipped | |---|---|---|---|---|---| | main `56e1c238` | 3671 | 550 | 94 | 3021 | 6 | | head `c3c6a47` | 3673 | 548 | 94 | 3025 | 6 | Compared node by node: the 3671 ids at main all appear at the head, and EXACTLY TWO of them change status, both red to green, the two above. The two extra nodes are the new file's, both passing. Nothing goes green to red. The suites that read `swb-session.js`, red nodes at main and at the head: `test_gate_loop_probes.py` 0 / 0, `test_renderer.py` 25 / 25, `test_doxbench_save.py` 3 / 3, `test_session_confinement.py` 20 / 18 (the two above), `test_staging_workbench.py` 63 / 63, `test_doxchat_model_intake.py` 10 / 10, `test_doxbench_transport.py` 6 / 6, `test_assembled_bundle.py` 4 / 4, `test_doxbench_scope.py` 1 / 1, `test_gate_loop_views.py` 0 / 0. The three suites the trace names read 28 red on both sides, the same node ids, as the trace's trial found. Earlier pairs, run overlapping and while the container was out of process slots, showed `Resource temporarily unavailable` and `can't start new thread` errors in git-fixture and thread-spawning suites; they were discarded and re-run serially after the container was restarted, which is the pair above. ### Mutants of the fix Spelling mutants, killed by the pinned nodes (composed, over `test_session_confinement.py`, `test_gate_loop_probes.py`, `test_doxbench_save.py` and `test_renderer.py`, compared with the head's own red set): | Mutant | Result | |---|---| | M1: respell the `headers:` call as `(bound ? bound.consoleHeaders : MODULE_TRANSPORT.consoleHeaders)(caps)` (behaviour kept) | KILLED: both target nodes go red (the stale-token node pins the same headers spelling) | | M2: respell the return as `(bound ? bound.withConsoleRepair : MODULE_TRANSPORT.withConsoleRepair)(send, repair)` | KILLED: the repairs-a-stale-token node goes red | Behaviour mutants, which keep every pinned spelling and which only the new file can kill (run composed AND in the lone CI venv, same result in both): | Mutant | Killed by | |---|---| | M3: drop `bound ||`, so the module pair is always used | `test_js_each_built_transport_sends_through_its_own_models_header_and_repair` (1 failed, 1 passed) | | M4: `MODULE_TRANSPORT.consoleHeaders` calls `withConsoleRepair` | `test_js_a_mounted_form_sends_through_the_mounted_models_header_and_repair` (1 failed, 1 passed) | | M6: `MODULE_TRANSPORT.withConsoleRepair` calls `consoleHeaders` | `test_js_a_mounted_form_sends_through_the_mounted_models_header_and_repair` (1 failed, 1 passed) | Before the new file, M3 and M4 survived every committed suite (the finding on the first head). ### Other gates - **CI form, lone** (`python -m pytest -q --deselect "$LEFT_OUT"` from the root, the CI venv, no `PYTHONPATH`) at `c3c6a47`: `1097 passed, 4 skipped, 1 deselected`; the workflow's triple reads `selected=1101 passed=1097 skipped=4 failures=0 errors=0`, which meets its pins (floors 1099 / 1095, skipped exactly 4, 0 / 0). At `f19e05c` and at main it read 1099 / 1095. - **Protected suites:** `python3 scripts/protected_suites.py --landings=<both commits> --suites=<the 98 tests/test_*.py at origin/main>` prints `ok: 0 protected edit(s), each entered and holding`, with and without `--chains`. The new file is not in `HOST_PLANE_SUITES`. - **Already red at main, composed, not from this change:** `tests/test_dependency_direction.py::test_first_attribute_access_refuses_and_names_the_layering` (the T024 writer attributes it to `ideation_dashboard` being importable when composed; I did not trace it); red in both the base and head runs. - **CI at the head:** `validate` pass and `SonarCloud Code Analysis` pass (2 of 2) at `c3c6a47`. - **Copilot:** two reviews, one per head. At `f19e05c8` (review 5428398958): 1 finding, that no committed test distinguishes the bound and unbound transports. Fixed by `c3c6a47`; thread answered and resolved. At `c3c6a470` (review 5428827782, COMMENTED, body "Changes recommended"): 2 findings, both on the new file. - "the declared one-file scope": this body said one file and "no test is added"; the body is corrected (Files above), the ruling that widened Files is cited, and the thread is answered and resolved. - "update the workflow coverage floors": see below. An accepted limit, answered and resolved. - 0 unresolved threads at the head. The holder rules on the "Changes recommended" label. - Holder ruling #656 `6017860539`: both Copilot findings, the "Changes recommended" label included, are ACCEPTED as they stand; the CI floors are left to T029. - **At the new head `e8a067f3`** (two update-branch merges of `main`, both merge commits: `3b6cd13b` took T020 #39 `c6d15b27`, then `e8a067f3` took T024 #38 `8b64fae0`): every check-run completed success; Copilot review 5432366190, state COMMENTED, "Approval recommended", `Findings: None` (requested through the reviewer API after about 10 minutes without an auto-review); 3 review threads in all, all resolved, 0 unresolved, none new. Against `c3c6a470` the merges changed only `tests/conftest.py`, `tests/test_host_plane.py` and `scripts/ideation_dashboard/session_git.py`, the files of T020 and T024. - **SonarCloud:** the `SonarCloud Code Analysis` check passes (quality gate); I did not list individual issues. ### What is NOT done - **The CI floors are not raised** (`MIN_SELECTED` / `MIN_PASSED` in `.github/workflows/validate.yml`, 1099 / 1095; this PR's head selects 1101 and passes 1097). `validate.yml` is not in T023's Files, plan 038 gives its floors in this repository to no task (T017 and T051 re-pin openDox-code's), and the open sibling PRs that add tests (#39, #40, #41) would collide with this one on the same two lines. Floors are minimums, so the check passes and the margin is two wider than it was. The workflow's own comment says the commit that adds a test SHOULD raise them with the reason; whether and in which PR is for the holder to sequence. - The other groups of R2-INV-P4F's one-off bucket (H, L, T, W, S) are other tasks. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>



Lane: openxfactory-4-opendox-extraction
§ 3.4 slice S5, leg A — the gate loop leaves openDox's bundle and becomes a contribution openXdox supplies.
openDox-spec
docs/front-end-package-boundary.md§ 5 row S5 @7d12428c: "The four class-B files and all 13 route constants — now all declared in class-B files — move behind a binding openXdox supplies; a student install comes up with no gate bar, no dispose tray, no session verbs, and no 404."The contract is openXdox-spec
docs/gate-loop-view-contract.md@d73767b7. Its § 8 Q1–Q12 were RULED by Brett Heap on 2026-09-12 at openxFactory#656 — 5648044785 (Q5, Q1, Q3), 5648049748 (Q2, Q4, Q7, Q8), 5648065587 (Q9, Q10, Q11, Q12).Paired with openDox-code #20 (the shell half), which now targets
main— its stack landed (#17 squashed, #16 before it) and it has merged the landed base in. Neither lands alone: the shell stops shipping these six modules in the same act that this leg starts shipping them.This branch has merged
origin/main(slice S6's/sourcepair, openXdox-code #17).decision → ruling → where in code
domregions;shellregions stay caller-drivenshellregion, so the pass never reaches them (view_extensions.pyVIEW_BINDING_SPECS;test_every_binding_is_class_b_optional_and_shell_region). The pass itself is openDox's.exportsexportson all six specs;isGateBearingandfirstEditTransportnamed (test_the_two_reaches_the_shell_makes_past_a_mount_are_named)mount(host, snapshot, ctx)gate.js:mountGateBar,gate-lens.js:mountLensGate,gate-projects.js:mountProjectCommissions,dispose.js:mountRefusalPanel,swb-create.js:mountCreateAffordance(+openCreateDialog),swb-session.js:mountSessionAffordances. The gate bar's declared exception ends here.requiresnames dotted/capabilitiespathsrequiresper spec, argued per binding (test_the_bindings_that_degrade_to_a_descriptor_require_nothing)web_assets.install_view_modules()+[tool.setuptools.package-data]; fallbackserve_views.ViewModuleRoutesExtensionview_extensions.BUNDLE_REACH+test_the_bundle_reach_is_exactly_declaredview_extensions.STYLE_RESIDUErecords the measurement and the floor constraint (below)page-overlayis the declared page-level hostdispose.jsmountRefusalPanel/refusalPanelHost/resetRefusalPanel; nodocument.bodyin code (test_the_refusal_panel_mounts_into_a_declared_region)test_this_column_names_neither_unhosted_region)firstEditTransportis a declared non-mount exportgate.workbench.session'sexports; the reach and the refusal-shaped fallback are openDox's halfViewBindingErrorcaught separatelyapp.js'srender()catch)dispose.jsGATE_PROMOTE_TO_STAGING_ROUTE/GATE_RESEARCH_BRIEF_ROUTE/GATE_DERIVE_POSSIBLES_ROUTE/GATE_DEMOTE_ROUTE+VERB_ROUTE; declared ongate.disposeSeventeen routes declared — § 1.2(c)'s thirteen constants plus Q12's four literals — and every one of them sits under
serve_gate.ACTIONS_GATE_PREFIX, which is this column's own. Class B is exempt from the ownership refusal by construction, andtest_the_column_collects_through_openDox_beside_its_own_routescollects the bindings against this column's real contributed routes to prove it.SIX modules, not four — and why
S4 (openDox-code #17) split four of the thirteen gate constants into two new class-B modules,
views/gate-lens.jsandviews/gate-projects.js, whose own header says in as many words "AT S5 THIS FILE LEAVES THE BUNDLE." Leaving them behind would leave theirgate.lens/gate.projectsentries in openDoxapp.js's CORE arm — and § 4.5 assertion 2's six remaining gate sites are those entries'routes:declarations. The two S4 modules are CREATED files with no carve row, so only the original four are re-destinations.The assembly hook
openxdox.web_assets.install_view_modules(web_dir)copies the six modules into<web_dir>/views/— the one directoryopendox.serve.build_server(web_dir=…)serves, and the directory./views/<file>resolves to against the bundle root. It refuses rather than creating aweb_diror aviews/that is not there: a bundle with no openDox in it is an assembly error, and the first symptom of creating one would be a page that never loads.overwrite=Falserefuses an existing file, for an installer that wants to know the bundle was clean.The declared hosted fallback (
openxdox.serve_views) is for a deployment that serves openDox'sweb/read-only. Six exact GET bindings, never a/views/prefix — openDox consults contributed routes before its static fallback, so a prefix would make this column answer for the shell's own modules. An assembly runs one mechanism or the other, never both.Student-install proof
This leg ships no shell, so the proof is openDox-code #20's:
tests/test_gate_loop_contributed.py::test_a_student_install_comes_up_with_no_gate_loop_and_no_404. What this leg proves is the other side of the same sentence — that the six modules and their seventeen routes are here, declared, and reachable only through a contribution.Copilot round 2 on the shell half — what came here
openDox-code #20's round-2 review found that three probe files and one source-grep suite in that bundle still copied or read modules this slice moves. A behaviour proof that stays in the repository the behaviour left is a proof of nothing, so what is still true of these modules is asserted here, on the precedent slice S4's five node probes set one slice ago:
tests/test_gate_loop_probes.pygains slice S2's dispose-tray probes (24a5fab): the composed module graph resolving with and without a contributed intent feed, and the tray rendering its three verdict buttons with no chips when none is contributed and real chips — written BY the contributed module, not a look-alike — when one is. Slice S2's ownwalk()-able DOM shim comes with them, because re-expressing the assertions against a different shim would be rewriting the proof while claiming to move it. They run against an ASSEMBLED bundle, so./helpers.jsand./intent-binding.jsresolve the way they resolve in a composed install. ONE fact moved with them, RULED counterpart Q6: the chip renderer arrives inopts.intentbeside the emitter, supplied by the shell.tests/test_gate_loop_views.pygains the five statements that quoteviews/swb-create.jsas text (1da808c) — the relocated actions host, its two appends, themethod: "POST"count that IS the "never a second write path" assertion, and the tile path's untouchedcreate documentlabel — with the browser-measured finding they were written for. openDox-code Remove the ending replay from test_staging_workbench.py: a declared edit, because a partial retirement has no form (RULED openxFactory#656 comment 5656343213) #20 keeps everything in that test aboutviews/staging-workbench.jsandstyles.css, and declares the edit in the annotation payload.ANNOTATION OWED
scripts/verify-carve-arrival.py --destination openxdox_code --dest-root <this leg> --source-repo <openxFactory@b075fd91> --phase B— run against a probe tree placed from the carve commit so that only THIS slice's files can refuse (the leg's own tree refuses earlier onsrc/openxdox/gate_console.py, a § 4.4 undeclared edit that predates this slice and is openxFactory#1009/#1010's neighbourhood, not S5's). Ten refusals, verbatim, one per run with the previous admitted:The verifier names its own governed remedy: "add
{path: <path>, reason: <why>, since: <leg commit>}underdestinations.openxdox_code.created, alphabetically by path, as a reviewed one-line diff" indocs/opendox-carve-admissions.yaml. Tencreated:admissions are owed at openxFactory. This lane does NOT author that annotation: openxFactory#1009 (S6) and #1010 (S4) are still open, and the orchestrator sequences the annotations after them.And four RE-DESTINATIONS are owed, which is a different act.
views/gate.js,views/dispose.js,views/swb-create.jsandviews/swb-session.jseach carry a manifest row whosedestinationisopendox_code(scripts/ideation_dashboard/web/views/<file>→src/opendox/web/views/<file>). Moving them here is a RE-DESTINATION under the form RULED Q6 of the boundary note (5648044785) — an optionalre_destined: {from, from_path, to, to_path, ruling, note}on a moved row — which is being built in parallel and is NOT edited by this lane:scripts/ideation_dashboard/web/views/gate.jsopendox_code→src/opendox/web/views/gate.jsopenxdox_code→src/openxdox/web/views/gate.jsscripts/ideation_dashboard/web/views/dispose.jsopendox_code→src/opendox/web/views/dispose.jsopenxdox_code→src/openxdox/web/views/dispose.jsscripts/ideation_dashboard/web/views/swb-create.jsopendox_code→src/opendox/web/views/swb-create.jsopenxdox_code→src/openxdox/web/views/swb-create.jsscripts/ideation_dashboard/web/views/swb-session.jsopendox_code→src/opendox/web/views/swb-session.jsopenxdox_code→src/openxdox/web/views/swb-session.jsviews/gate-lens.jsandviews/gate-projects.jsare slice S4's CREATED files and carry no row, so they move free — they need acreated:admission here and no re-destination. The verifier calls the other half of that move by name at the shell leg: those two admissions go STALE atopendox_codeand must be REMOVED there in the same diff, or the admissions file keeps claiming a file that leg no longer carries is a file that leg created.RE-MEASURED AT THIS HEAD, and both destinations answer
OK. Ninecreated:admissions are needed here —src/openxdox/serve_views.py,view_extensions.py,web_assets.py,web/views/gate-lens.js,web/views/gate-projects.js,tests/test_gate_loop_probes.py,tests/test_gate_loop_views.py, plus the two PRE-EXISTING gaps this slice did not create (tests/conftest.py,tests/session_fixtures.py). The four re-destined rows' declared-edit line lists are BYTE-FOR-BYTE unchanged from the first measurement:gate.js[136, 137, 138, 139, 140, 142, 145, 163, 166, 174, 175, 182],dispose.js[29, 30, 51, 53, 54, 55, 69, 184, 212, 213, 396],swb-create.js[29, 30, 31, 33, 162, 345, 346, 367, 368, 369, 370],swb-session.js[69, 70, 71, 72, 73, 74, 75, 77, 190, 573, 574, 579, 582, 596, 601, 609]. Three PRE-EXISTINGarrival-undeclared-editrefusals at this destination (gate_console.py,generator.py,tests/ideation-dashboard/test_generator.py) are NOT this slice's and must not be absorbed silently.Register
5648044785is the BOUNDARY NOTE's Q6, there_destined:form). The reach is declared and tested here rather than assumed away.opendoxpin bump is owed at landing. This leg pinsopendox @ a99eba03, which predates the view registry entirely. The three materialization assertions SKIP — never fail — until the pin names an openDox carrying § 3.4 slice S5.profile_openxfactory.pyowes one line. The composite profile this estate registers lives at openxFactoryscripts/; it gainsVIEW_EXTENSIONS = view_extensions.VIEW_EXTENSIONSbeside itsROUTE_EXTENSIONStuple. That is the assembly's act, not this leg's.fetchescapes the write path in four of this column's six modules —views/gate.js's ratify listener,views/dispose.js's sharedpost(),views/swb-create.js'ssubmitCreate,views/swb-session.js's session submit (andviews/gate-lens.js'sdispatch) — leaving a control disabled and no visible refusal when the gate server is unreachable. Four of those five are ARRIVED files, and the flagged lines are byte-identical to the carve commit (difflibmaps every one into anequalopcode againstb075fd91dc8f). Normalizing a rejection into{ok: false, message}is new BEHAVIOUR, which is in none of RULING OQ-1's three declared-edit classes (import rewrites | path constants | adapter calls), so declaring it would mean inventing a class.views/gate-lens.jsis a CREATED file and could take the fix alone — which is exactly why it should not, since fixing one of six leaves the column inconsistent about its own transport contract. One defect, one act, once the vocabulary question is ruled. RULED BY THE LANE, 2026-09-13: out of S5's scope — the code is arrived and byte-identical to the carve, and RULING OQ-1's three edit classes do not admit a behaviour change here. The five threads are resolved on that word and the item is REGISTERED onopensoft/openxFactory#656for a later declared act; it lives here so it stays visible after the threads close.gate.disposerequires NOTHING, and the correction is Copilot's. The first shape of this PR declaredrequires: ["actions.gate"]on it besidegate.lensandgate.projects. That was a regression:views/dispose.jsis the one binding of the six serving TWO mutually exclusive transports — the local executing gate (actions.gate, loopback) and the hosted intent plane (actions.intent, since openDox'sserve.pycomputesintent = not loopback) — and openDox'sviews/wheel.jsmounts its tray whengateCapable(caps) || intentCapable(caps). Requiring the gate maderesolveViewanswernullon every hosted plane and took the tray, its chips andpanelEntry's refusal surface with it: a capability declaration deleting the surface it was meant to describe, which is the exact defect the gate bar's own transitional declaration already was. Fixed at2ca488a, with a test that states the reason and checks it against the module.firstEditTransportnow keeps the model it validated instead of reading the module-level install: it is the one export in that file reached through the REGISTRY rather than through a mount, so the function it returns OUTLIVES the call that built it, and a second mount re-pointing the global would have shaped and read one editor's Save with another's model.submitSessiontakes the bound namespace as its last argument so the headers and the console repair come from it too. Andtests/test_gate_console.pyquotedscripts/ideation_dashboard/cli.pywhereviews/gate.js'sCLIconstant was repointed tosrc/opendox/cli.pyby the CARVE's own declaredpath constantsedit — that row already declares lines[58, 1627, 1785, 1786], which is exactly the three expectations repointed, so the migration is completed with no new declaration owed.styles.cssis amoved_verbatimcarve row whose declared-edit vocabulary is the closed listimport rewrites | path constants | adapter calls; "a stylesheet block leaves for another leg" is in none of them. It needs there_destined:form RULED Q6 of the boundary note (5648044785), being built in parallel, or a ruling of its own.Refs opensoft/openXfactory#656
🤖 Generated with Claude Code