Repository navigation
§ 3.4 S5 (leg B): the shell contributes the gate loop — six class-B modules leave, the registry mounts, requires acts, ViewBindingError surfaces (RULED Q1–Q12) - #20
Conversation
… halves of one seam
openDox-spec `docs/front-end-package-boundary.md` § 4.1 asks for the front-end
analogue of `route_extension.collect_bindings`, and this is it — the AUTHORITY
in Python, its MIRROR in the language the shell is written in, and one
vocabulary held across both.
THE PROBLEM, in the note's own measurement: `src/opendox/web/` is "42 blobs,
30,585 lines, and NO package boundary at all", while the Python side has
answered the same question three times — a contributed ROUTE
(`route_extension`), a late REACH into the consumer (`consumer_reach`), and a
registered PROFILE (`domain_profile` + `profile_proxy`). § 4.1's instruction is
to reuse those shapes rather than invent a fourth, so:
route_extension.RouteBinding -> ViewBinding
route_extension.collect_bindings -> collect_view_bindings
consumer_reach.route_column -> resolveView / requireView
profile_proxy.profile_openxfactory -> host_view_extensions
`src/opendox/view_extension.py` is the authority. `ViewBinding` is frozen and
validated where it is CONSTRUCTED, `RouteBinding.__post_init__`'s discipline;
`ViewExtension` is a `runtime_checkable` Protocol and NOT an ABC, for
`RouteExtension`'s reason — an extension authored in the repository that PINS
this one must conform WITHOUT inheriting from anything here, since nominal
conformance would make the seam the dependency it was drawn to remove.
`collect_view_bindings()` flattens contributed bindings into ONE mount order and
refuses four things: a non-conforming extension, a `views()` that yields
anything else, two bindings claiming one (region, id) slot, and a non-class-B
binding declaring a route another column contributed.
THE FOURTH REFUSAL IS RULED Q3 MADE EXECUTABLE (#656 comment 5642758731): "a
route constant travels with the binding that calls it, never with the model that
declares it". It is derived from the assembly rather than asserted about it — the
caller passes the `RouteBinding`s another column actually CONTRIBUTED, because a
literal ownership table here would be a second copy of the routing that drifts
the moment a column adds a route. Class B is exempt BY CONSTRUCTION: a gate-loop
binding naming a gate route is the boundary working (§ 4.5 assertion 2).
ORDER IS DECLARATION ORDER, FLAT, and the difference from `collect_bindings` is
argued rather than inherited: that function re-orders exact before prefix
because an HTTP dispatcher consults its table until something matches. Nothing
here is consulted that way — a panel mounts into the ONE region it names, and
two panels in one region are a refused collision rather than a race — so
re-ordering would only take away the one thing declaration order is good for.
THE HOST FACET, AND TWO ABSENCES WITH TWO ANSWERS. `host_view_extensions()`
reads `VIEW_EXTENSIONS` off the ONE registered profile through the SAME lazy
proxy `build_server()` reads `ROUTE_EXTENSIONS` through (RULED ASK-2 option (2)).
NO HOST AT ALL REFUSES: `ProfileNotRegistered` is a `RuntimeError` and passes
through untouched, which is ASK-2's "refusal, not a default". A HOST WITHOUT THE
FACET gets an EMPTY CONSUMER COLUMN: `ProfileFacetMissing` subclasses
`AttributeError` precisely so `getattr(..., default)` answers, and the empty
answer is correct where an empty `ROUTE_EXTENSIONS` would be a defect — a server
missing its contributed ROUTES looks fine until a path 404s, whereas a shell
with no contributed PANELS is the shell this leg ships today. Refusing there
would impose a flag day on every host that has not yet grown the facet, which is
every host, today. AND THE ABSENCE IS NAMED, NEVER SILENT: `view_manifest()`
carries `host_facet` = "declared" | "absent" with the facet and profile names,
which is § 4.3 point 5's "renders its region empty WITH A NAMED REASON" applied
to a facet.
`src/opendox/web/views/view_extension.js` is the mirror, named by the note's own
S3 row (every other module in that folder is kebab-case; this one is spelled
like the two Python files it mirrors, because three files and one seam should
have one spelling). It reads the manifest back out of `/capabilities` and
applies the SAME four refusals to it, so both halves check the same thing
against the same facts. `lookupView` is the OPTIONAL reach (null, and the caller
decides what absence means); `requireView` is the REQUIRED one (a refusal that
names the layering, `consumer_reach`'s posture); `resolveView` loads the
binding's module at first use and refuses a binding whose named export is
missing, because a binding that cannot be mounted must not look registered.
A malformed manifest REFUSES while an absent one is an empty column: failing
closed is the only safe answer for a payload that decides which code the shell
imports, and § 4.4's vendor policy is why the module specifier is held to a
bundle-relative './…js' — a contributed binding is exactly the hole "no CDN, no
remote script" would otherwise leak through.
BOTH FILES ARE CREATED, NOT ARRIVED: neither has a row in openxFactory's
`docs/opendox-carve-manifest.yaml`, which is what Q-L1 means by "new files are
created, not arrived". The census row in `tests/test_consumer_reach.py` lands in
this same commit because it is a claim about this module — `opendox.view_extension`
imports NOTHING from `openxdox` and reads the host's facet through the proxy, so
it belongs in `NEUTRAL_MODULES` and not in `STILL_REACHING`, and the lawful
direction is that the column CONTRIBUTING a view imports this module rather than
the other way round.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… a registry lookup § 4.1 names this edit by line number: "app.js stops importing class-B modules directly. Its line 43 becomes a lookup in the collected bindings, and a shell built with no gate binding registered renders the tab strip WITHOUT the gate bar rather than failing to load." That is what this commit does, and nothing else. THE HARDCODED `TABS` TABLE BECOMES THE CORE ARM OF THE REGISTRY. `CORE_VIEWS` holds the same seven views as `ViewBinding`s and is collected through `collectViewBindings()` alongside whatever the consumer column contributed — the same order and the same SINGLE collection `serve.build_server()` uses for routes, and for the same reason: a collision between a contributed panel and one of the shell's own must be refused before anything mounts, rather than discovered as a panel that silently never rendered. A core binding declares its `module` and `entry` truthfully even though it also carries a `mount` closure, because a CONTRIBUTED binding carries only those two and is loaded through `resolveView()` — the core arm always holds its own view modules statically, since they are the product. THE TAB STRIP IS DERIVED FROM THE REGISTRY, not declared beside it. A tab is simply a binding that declared a `control`; a binding with no control — the gate bar, and every overlay binding after it — is in the collected order and is not a tab, which is why the filter is one expression in `initTabs` and not a second list to keep in step. THE GATE BAR IS A BINDING NOW: class B, `optional: true`, declaring `/actions/gate/ratify` as RULED Q3's "a route constant travels with the binding that calls it". Three things are true that were not true before. A shell assembled without it renders the viewer with NO GATE BAR instead of failing to load — `views/viewer.js` already tolerates a null `mountGate` (`const mountGate = o.mountGate || null`), so the absence was always representable downstream and was simply unreachable from here, and no second file is touched. `gate.js`:120's route says in one checkable place whose it is. And the entry sits in the CORE arm TRANSITIONALLY: slice S5 moves the four class-B files behind a binding openXdox supplies, at which point this entry is deleted and the identical binding arrives through `contributedViewBindings()` with nothing else in this file changing — which is the test of whether the seam was drawn in the right place. `routes` IS DELIBERATELY UNDECLARED ON EVERY CORE TAB BINDING and that is not an omission. Q3 makes `routes` a declaration of OWNERSHIP, not a transitive inventory of every path a module's import graph happens to touch. Exactly one core binding owns a route that way today: `gate.bar`. The census's eighteen remaining route-ownership breaches are FILE-level facts (§ 4.5 assertion 2), measured by slice S1's `tests/test_web_boundary.py` and cleared by S4 and S6; declaring them here would encode S4's answers before S4 has done its work, and would refuse this very assembly, since `/source/` is a contributed prefix today. THE COLLECTED REGISTRY IS HANDED TO EVERY VIEW as the context key `views`, so an OPTIONAL contributed panel is asked for by id — `lookupView(ctx.views, "…")`, null when the column that supplies it is not installed. Slice S2's intent chips are the first such reader: `wheel-intent` and `dispose-intent` are declared regions already, so S2 adds an optional binding and two `lookupView` calls and touches nothing here. The consumer column is read out of the `/capabilities` payload this render already fetched (§ 4.3's "no new route and no second fetch"). It is EMPTY at this slice and on every static image, so the shell renders exactly as it did before — the note's S3 row in its own words: "nothing is contributed yet, so the shell renders exactly as today with an empty extension tuple". The server-side line that publishes a manifest (`capabilities["views"] = view_manifest(...)`) is slice S5's, inside `serve.py`'s own declared-edit window, which the in-flight ASK-7 act owns this hour. `index.html` IS NOT TOUCHED. A `data-region` attribute would be a second spelling of an id the shell already carries, and an added attribute is in none of the RULED `edit_classes` (`import rewrites | path constants | adapter calls`), so declaring it would mean inventing an edit class rather than using one. The id is the declaration; the registry's `REGIONS` table plus a drift test against the shell's existing ids is what makes it a contract. Q-L1: `src/opendox/web/app.js` is an ARRIVED file. Its 37 edited lines are declared on its row of openxFactory's `docs/opendox-carve-manifest.yaml` by openxFactory PR #1001, which lands FIRST — one `import rewrites` line (43) and 36 `adapter calls` lines. `verify-carve-arrival.py`'s `_check_declared_lines` over all 123 `opendox_code` rows against this branch: app.js DECLARED, 60 verbatim rows byte-identical, 0 refusals. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ommit
50 assertions over the seam, and the file is added to `validate`'s explicit
`--noconftest` list in THIS commit rather than a later one — the discipline
§ 4.5 states for slice S1 ("added to that list in the SAME commit") and the one
its three neighbours already keep: `test_leg_shape.py`, `test_consumer_reach.py`
and `test_profile_registration.py` each arrived that way. A test that is not in
the list is not run, and a seam nobody runs is a description.
WHAT IS ASSERTED, in six groups.
1. A malformed binding refuses WHERE IT IS DECLARED and the message says why —
parametrized over every field: the id grammar, an undeclared region, a module
specifier that is root-relative / absolute / climbs out of the bundle with
`..`, an entry that is a callable rather than the NAME of an export, an
unknown class, non-tuple routes, a route not rooted at '/'.
2. Collection: a non-conforming extension names the member it lacks; two
bindings in one (region, id) slot refuse and the message names BOTH modules;
one id in two different regions is NOT a collision; the core arm comes
through an EMPTY consumer column unchanged; and collecting nothing at all is
an empty tuple rather than a refusal, which is this slice's own case and
every static image's.
3. RULED Q3, executable: a class-A binding declaring a gate route another column
contributed is REFUSED, and the refusal quotes the rule. Class C and the
transitional `?` are in scope too (§ 4.5 assertion 2's "class A, class C AND
the transitional `?`, which is where most of the breaches actually sit"); a
class-B binding declaring the SAME route is allowed, because a gate-loop
binding naming a gate route is the boundary working. With no contributed
routes nothing can breach — there is nothing to breach.
4. The host facet through the ONE registered profile: the facet comes off it; a
host WITHOUT the facet contributes an empty column; NO host at all REFUSES
rather than answering empty (ASK-2's "refusal, not a default"); and importing
the registry resolves no profile at all, which is the whole value of the lazy
proxy. The manifest declares its `schema_version` and `kind` and NAMES the
absence rather than being silent about it.
5. Drift, so the two halves cannot diverge: both declare the same regions in the
same order and the same classes; every "dom" region is an element
`index.html` actually carries (the id IS the declaration — this is what makes
the unedited shell a contract rather than an assumption); no "shell" region
pretends to have one; every core tab binding names a dom region, or it would
be a blank tab; `app.js` no longer imports the gate module, declares the gate
bar as an OPTIONAL class-B binding, and wires the doc list through the
registry.
6. The JavaScript half driven by the REAL file under `node`, skipped and never
failed where node is absent: the core arm collects with an empty consumer
column; a slot collision and a contributed gate route both refuse; a
malformed `/capabilities` manifest refuses while an absent one is an empty
column; ONE VIEW WIRED END TO END — `resolveView` loads the real
`views/docs.js` from its binding and hands back the `renderDocs` export; a
contributed panel mounts into its region under a minimal DOM; an absent
OPTIONAL binding is null and an absent REQUIRED one refuses; and a "shell"
region asked for a standing element refuses rather than returning a null the
caller would read as "the column is not installed".
One of the drift assertions is a REAL DEFECT kept as a test rather than a
memory: the client's slot key joins a binding's region and id with a separator
neither can contain, and that separator was first written as a LITERAL NUL BYTE
in the source instead of as the six-character escape sequence a JavaScript
string literal spells it with. Everything parsed and every
other assertion passed — but `git`, `grep`, `file(1)` and every diff viewer
classify a file containing a NUL as BINARY, so the module would have reached
review as an unreadable blob. A separator that cannot occur in a region or an id
is right; spelling it as a raw byte is not. The check reads BYTES, because
reading the file as text is exactly what hides it.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…at could inject a tab, an entry that could not be called Copilot's review of PR #14, all three accepted and each kept as a test. 1. A DECLARATION DEFECT MUST NOT DEPEND ON THE TYPE OF WHAT IT REFUSES. `REGIONS` is a dict, so `<unhashable> not in REGIONS` raised `TypeError` out of the hash BEFORE `ViewBinding.__post_init__` could raise the `ViewBindingError` this module promises for every declaration defect — a caller written to catch the one refusal class would have met an exception it never agreed to handle. The type is now checked before the membership, on `region` and on `view_class` both; the second cannot raise today (a tuple membership test does not hash) and is guarded anyway, because relying on `VIEW_CLASSES` staying a tuple is exactly the quiet dependency this work exists to end. 2. A CONTRIBUTED ENTRY MAY NOT CARRY THE CORE ARM'S OWN TWO FIELDS. `contributedViewBindings` passed manifest entries straight to `viewBinding`, which accepts and preserves `mount` and `control`. `control` is what makes a binding a TAB, and a contributed entry arrives as JSON and cannot carry the `mount` FUNCTION the tab router calls — so a manifest declaring a `control` would have put an entry in the tab strip whose `mount` is `undefined`: the tab renders, and the click that selects it throws. Refused where the payload is READ rather than ignored, because ignoring it is a crash with a delay on it, and `view_manifest()` emits neither field, so no honest payload is refused by this. Malformed REFUSES while absent is an empty column — the rule that already governs the rest of the manifest. 3. PRESENT IS NOT MOUNTABLE. `resolveView` checked only that the entry NAME existed on the module's namespace, so a module exporting it as a string, an object or a `null` handed back a binding that looked resolved and threw a raw `TypeError` from inside whatever tried to mount it — the "dangling import a thousand lines from the call" this seam exists to replace. The entry must now be a function, and the refusal distinguishes "not exported" from "exported as something that cannot be called", because those are different defects in the contributing column. Five new assertions, in the groups they belong to: an unhashable `region` (as a list and as a dict) and an unhashable `view_class` refuse as `ViewBindingError`; a contributed entry carrying `control` or `mount` refuses while the same entry without them is collected; and an entry exported as a non-function refuses at resolution. `tests/test_view_registry.py` is 55 assertions; `validate`'s four files are 127. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…uter's field names
`tests/test_bullseye_widget.py` asserts `app.js`'s shape by QUOTING ITS LINES
BACK, so the view registry's `view` -> `region` rename invalidates three of its
quotations the moment it lands. They are migrated in the SAME act that
invalidated them, which is the only time anyone can be sure the migration is a
rename and not a behaviour change:
:900 classList.toggle("lensfull", target.view === "view-lens")
:1781 storeTab(target.view);
:1785 const remembered = TABS.find((t) => t.view === storedTab());
`.view` -> `.region` in all three, and nothing else on any line. The assertions'
MEANING is unchanged: the lens still takes the whole page, the tab is still
remembered on every activation, and it is still restored only to a view this
plane actually has. The tab router simply calls the field `region` now, because
a binding's mount point is what that string always was.
THE SUITE IS RED TODAY FOR AN UNRELATED REASON — it imports through
`src/opendox/serve.py`, which still reaches `ideation_dashboard`, a module the
§ 3 carve removed — and it is not in `validate`'s narrowed list. Neither fact
makes a stale assertion acceptable: slice S8 re-homes these 48 test files and
un-narrows `validate`, and an assertion describing a shape that no longer exists
is precisely the rot that slice would then have to discover and date. Copilot
found two of the three on PR #14; a sweep of every assertion in the leg that
quotes `app.js` found the third, and found no others anywhere in the suite.
Q-L1: `tests/test_bullseye_widget.py` is an ARRIVED file, already
`moved_with_declared_edit` for its `path constants` line 40. The three lines are
declared as `adapter calls` on the same row by openxFactory PR #1001 — the same
act that declares `app.js`'s 37 — and each is a single-line REPLACE at the carve
numbering, so exactly three lines are declared and no neighbour is.
`verify-carve-arrival.py`'s `_check_declared_lines` over all 123 `opendox_code`
rows: both rows DECLARED, 60 verbatim rows byte-identical, 0 refusals.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
S1 landed tests/test_web_boundary.py, tests/fixtures/web_boundary_census.yaml and an explicit-test-list addition to .github/workflows/validate.yml on main while this leg was in flight. The only textual conflict is validate.yml's pytest invocation; resolved as the UNION of both slices' comment blocks and both new test files (tests/test_web_boundary.py then tests/test_view_registry.py), in landing order S1 then S3. S1's census fixture and test module arrive unmodified from main in this commit; the semantic follow-up they need (a census row for S3's new file) is the next commit, not this one. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
S1's census could carry no row for views/view_extension.js because the note
measured the tree before S3's file existed; the merge alone left
test_every_web_file_is_classified_exactly_once failing. Classified A: no
import (so it cannot trip assertion 3), no governance literal (out of
assertion 4's class-C/tail scope regardless), and its one route-shaped
string -- 'gate.bar' in a doc comment -- is an id, not a /actions/... path,
so assertion 2's patterns do not match it. app.js's own row `loc` moves
1155 -> 1282 with the registry wiring; the header totals move with both
rows (43 files, 31,134 lines).
Assertions 2 and 3's xfail `reason=` strings are corrected to the counts
this tree actually measures post-merge, on the module's own stated
"fidelity over tidiness" convention rather than left to cite a shape that
no longer exists:
* assertion 3 (relative import / class boundary): 7 sites -> 6. S3 closes
app.js:43 -> views/gate.js, the shell's one direct class-B import and
exactly the edge slice S3 exists to close. The other 4 class-boundary
sites and the 2 unresolved intent-feed sites are untouched, so the
assertion stays red and the marker stays valid.
* assertion 2 (route ownership): 18 sites -> 20. S3's CORE_VIEWS
`gate.bar` entry declares `routes: ["/actions/gate/ratify"]` (RULED Q3:
a route constant travels with the binding that calls it) -- a real
breach by this assertion's own rule while that entry sits in app.js
(class A) rather than views/gate.js (class B, exempt by construction).
Transitional by the same design the CORE arm itself is: slice S5
deletes this entry from app.js when the binding moves behind a
host-supplied contribution. app.js's other two projection-route sites
shift line number (183/184 -> 195/196) with the file's growth; same two
`/source/` literals, untouched otherwise.
Neither assertion XPASSes -- both stay xfail(strict=True), which is the
thing this commit exists to keep true. Full leg validate invocation
(tests/test_leg_shape.py, tests/test_consumer_reach.py,
tests/test_profile_registration.py, tests/test_web_boundary.py,
tests/test_view_registry.py --noconftest): 129 passed, 3 xfailed, 0 failed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
view_extension.js
* manifestRoutes(): a PRESENT manifest whose contributed_routes is not an
array (or missing) now refuses instead of silently reading back [] --
view_manifest() always emits this field as an array, so anything else
there cannot be trusted for the ownership check it exists to carry.
Absence of the WHOLE manifest is still an empty column, unchanged.
* resolveView(): a rejected `await import(...)` (missing file, syntax
error) is now caught and refused as a ViewBindingError naming the
binding id and module path, instead of leaking a native error with
neither.
view_extension.py
* ViewBinding.entry is now held to the same ASCII identifier grammar
views/view_extension.js's viewBinding() checks (_ENTRY), not Python's
own str.isidentifier() -- the two disagreed in both directions
("$mount" valid JS, invalid Python identifier; "café" valid Python
identifier, invalid per the client's ASCII-only regex), so a binding
could be constructed on one side and refused on the other.
* collect_view_bindings() now checks views is callable and views() a
list/tuple before entering the loop. isinstance(extension,
ViewExtension) is a runtime_checkable Protocol check and verifies only
that the name exists; `views = 1` or `views()` returning None both
passed it and then raised a raw TypeError, never the ViewBindingError
every other declaration defect in this module promises.
Ten new tests (2 Python parametrized + 2 single + 2 JS, tests/test_view_-
registry.py), the census loc for views/view_extension.js corrected for its
growth (422 -> 455) with the header totals moving the same amount. Full
leg validate invocation: 139 passed, 3 xfailed, 0 failed -- the three S1
xfails unaffected (app.js untouched this round; both created files this
commit touches carry no manifest row, RULED OQ-C).
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…e scope The one remaining PR #14 thread (tests/test_view_registry.py:132): this repository ships no `package.json`, so `_run_node`'s harness and the real `view_extension.js`/`docs.js` (native `export`/`import`, no bundler) have no declared module format. Node decides ambiguous `.js` files via `--experimental-detect-module` (default ON since Node ~20.10, unflagged by Node 22+): it reparses a file as ESM the moment it sees module syntax, and warns `To eliminate this warning, add "type": "module" to .../package.json`. Verified by hand and does not reproduce today: neither locally (Node v22.22.2) nor in the actual `validate` run for this head (34702880356, Node 24 per the runner's own deprecation notice) does any node-based test fail -- both pass because the heuristic is on by default there. It is still a real gap, not a false positive: importing the unmodified `view_extension.js` with `--no-experimental-detect-module` (simulating an older Node, or the flag disabled) fails outright, proven both by hand and by the new regression test below (confirmed red on the pre-fix tree, green after). Fix: an explicit `package.json` (`"type": "module"`) at the repository root -- an ancestor of `src/opendox/web/**/*.js` for Node's module-scope lookup, but deliberately NOT inside `src/opendox/web/`, which `tests/fixtures/web_boundary_census.yaml` classifies file-by-file (verified `test_every_web_file_is_classified_exactly_once` still passes unchanged) -- plus one written into every `_temp_bundle()` copy, since `tmp_path` sits outside the repository tree and the root file is not its ancestor. New test `test_js_module_scope_holds_without_node_s_detection_heuristic` imports both the real registry and a `_temp_bundle` copy under `--no-experimental-detect-module` and asserts a clean import -- the positive assertion that the module format is now a stated fact rather than a Node default that a future version, downgrade or flag could change again. Verified: full `validate` invocation (5 files, --noconftest) 140 passed, 3 xfailed -- same xfail set as before (S1's three strict xfails, untouched by this change). Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
S2 (#15, "the intent chips become an optional contributed binding") landed on main while this leg was in flight and flipped PR #14's mergeStateStatus to DIRTY/CONFLICTING. Two textual conflicts, both resolved as the UNION of both slices' content rather than by picking a side: - `.github/workflows/validate.yml`: both the comment block (S2's paragraph then S3's, plus a one-line note that S3's registry test now carries its own package.json fix) and the pytest file list (`test_intent_binding_shape.py` then `test_view_registry.py`) keep both slices' additions. - `tests/fixtures/web_boundary_census.yaml`: both slices' own "a 43rd file" paragraphs are kept verbatim (each counts its own addition against the shared a99eba0 base, independently, and neither claim was wrong on its own branch), plus a new RECONCILED paragraph giving the combined total now that both land in one tree -- A 22 files/12,398 lines, B 4/1,597, C 14/11,854, ? 4/5,432, total 44/31,281 -- verified against the merged file's own rows (`sum(row["loc"] ...)` by class), not hand-arithmetic left unchecked. `views/dispose.js` and `views/wheel.js` (S2's two other touched files) are unchanged in `loc` on both branches, so B/C totals carry over unmodified. All other files (src/opendox/cli.py, src/opendox/serve.py, src/opendox/web/views/dispose.js, src/opendox/web/views/wheel.js, the new views/intent-binding.js, tests/test_intent_binding_dom.py, tests/test_intent_binding_shape.py) arrive unmodified from main. Verified: full `validate` invocation (6 files, --noconftest) 148 passed, 3 xfailed -- the same three S1 strict xfails, same reasons, confirmed still XFAIL rather than flipped XPASS by S2's edits. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… mount, view-registry isolation
tests/test_doc_surfaces.py
* test_the_doc_tab_is_wired_to_the_one_cross_view_jump located the docs
tab's block by the pre-S3 `{ tab: "tab-docs"` shape, which no longer
exists in app.js now that the binding is `{ id, control, region }`
(§ 3.4 S3). `app.split(...)[1]` on the absent literal raised IndexError
before the renderDocs assertion ever ran. Migrated to split on the
registry shape (`{ id: "docs.list", control: "tab-docs",
region: "view-docs",`) -- the same one-token-class migration the three
test_bullseye_widget.py `.view` -> `.region` quotations already took in
this PR (09b42f5).
src/opendox/web/app.js
* The viewer's `mountGate` adapter called a hard-coded
`gateView.exports.mountGateBar` instead of the RESOLVED binding's own
declared `entry` export. `resolveView()` already validates that
`binding.entry` names a callable export of `binding.module`; a
contributed `gate.bar` binding declaring a different entry name would
pass that validation and then either mount the wrong function or throw
on `undefined` here, because validation and mounting consulted two
different names. Now
`gateView.exports[gateView.binding.entry](host, gctx, { caps })` --
one token changed. New
test_app_js_mounts_the_gate_bar_through_its_declared_entry
(tests/test_view_registry.py, S3-created) pins the new expression and
asserts the old hard-coded call is absent, as a regression guard.
tests/test_view_registry.py
* Normal (non-`--noconftest`) pytest loads the root conftest.py, which
registers an empty `_SuiteProfile` at collection time -- a test process
is a host like any other. This module never cleared that ambient
registration before asserting against a clean slate:
`registered()`'s `domain_profile.register()` raised AlreadyRegistered
against the suite's own profile (reproduced in isolation running
test_the_facet_comes_off_the_one_registered_profile alone), and
test_no_host_at_all_refuses_rather_than_answering_empty's
`assert not domain_profile.is_registered()` saw it registered and
failed (also reproduced in isolation; the full-file run happened to
pass it only as a side effect of the PRECEDING test's fixture teardown
unregistering the conftest profile after its own registration attempt
raised). New autouse `_empty_registry`, mirroring
test_profile_registration.py's fixture of the same name: save whatever
profile is registered (or None), unregister, yield, restore in
teardown. Both tests now pass standalone and in any order.
Verified: narrowed validate (5 files, --noconftest) 82 passed, 3 xfailed,
unchanged. `node --check src/opendox/web/app.js` clean.
Normal invocation of both touched files still cannot reach any of these
three assertions: `ideation_dashboard` is genuinely absent from this leg by
design (pyproject.toml's own dependency note -- it is a cross-column reach
the BUILD arc removes), and the root conftest's autouse
`declared_human_console` fixture imports `opendox.cli` -> `opendox.serve`,
which imports it at module level. Every test in both files errors at
fixture setup on that ModuleNotFoundError before reaching either file's
body, unchanged by this commit (78 errors before and after -- the
pre-existing 77 plus one new test, same reason). Verified instead with a
scratch-only, uncommitted `ideation_dashboard` stub that satisfies the
import chain with no behavioural stand-in beyond existing, plus isolated
per-test and per-line checks against the real files; the PR thread replies
give the exact commands and tallies.
Also found, NOT fixed here (out of this round's scope and reported to the
orchestrator separately): tests/conftest.py's
`REPO_ROOT = HERE.parent.parent` is off by one directory now that the carve
flattened `tests/ideation-dashboard/` to `tests/` -- it resolves one level
above this repository's own root. That is a second, independent reason
most of test_doc_surfaces.py (and, by the same `REPO_ROOT` import, roughly
three dozen other test files) cannot reach a green normal invocation right
now; it masks nothing this commit fixes, and none of this commit's new or
changed assertions depend on it.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… the bindings that call them RULED Q3 (opensoft/openXfactory#656 comment 5642758731, Brett Heap, 2026-09-12): "a route constant travels with the binding that calls it, never with the model that happens to declare it." openDox-spec `docs/front-end-package-boundary.md` § 5's S4 row is the PRECONDITION for S5: only 3 of the 13 gate-route constants were declared in class-B files; the other 10 sat in `views/lens-model.js`, `views/repo-selector.js` and `views/staging-workbench-model.js`, and the gate loop cannot be contributed until its route table stops living outside class B. THE THIRTEEN TAILS, and where each went: views/lens-model.js "?" -> A (1070 -> 1075) LENS_SAVE_ROUTE :1036, LENS_CLUSTER_ROUTE :1037 -> views/gate-lens.js (NEW, class B) with the execute affordance, the organizer-evidence form and the outcome panel that call them. The model is pure and import-free again and names no route another column declares. views/repo-selector.js "?" -> A (889 -> 814) :33 /snapshot-index.json -> views/projection-index.js (NEW, class B), reached LATE by a dynamic import inside `fetchIndex` (§ 4.2's own guard, not a ViewBinding — an index fetch mounts no panel and occupies no region) :34 /actions/refresh stays class A: BOTH legs declare a handler :38 /project-register.json stays class A: openDox's own :39 create-project, :43 edit-project -> views/gate-projects.js (NEW, class B), ONE binding carrying the create form and the membership-edit commission :46 /actions/apply-register-edits -> LEFT THE BUNDLE ENTIRELY, with the "⟳ apply N pending" button that reached it. RULING DQ-1 keeps that lane at openxFactory and § 2.2 rule 1 says no class here can ever own it. Commissions still record and still badge as pending; what is gone from this bundle is the button that ran the fulfilment. views/staging-workbench-model.js "?" -> A (C tail) (1949 -> 1943) :543 CREATE_ROUTE -> views/swb-create.js; :817/:818/:821/:822/:826 with the SESSION_ROUTES table and sessionRoute() -> views/swb-session.js. No new file: both are class B already and were always the only callers. REACHED THROUGH THE S3 REGISTRY, NEVER AN IMPORT. `app.js` resolves `gate.lens` and `gate.projects` once per render exactly as it resolves `gate.bar`, and hands each view an already-bound mount or null. Null is what a student install is: the lens plan panel stays plan-only and the selector renders picker + refresh, with no 404 and no dead control. Two new "shell" regions (`lens-gate`, `repo-projects`) are declared in BOTH halves of the registry, in order, so the drift test holds them together. CENSUS AND ASSERTIONS (tests/fixtures/web_boundary_census.yaml, tests/test_web_boundary.py): * the three SPLIT rows are re-classified A with their real post-split line counts; three new class-B rows; `loc` refreshed on every file this slice touched; per-class `totals:` now declared and re-derived from the rows. * ASSERTION 1 gains its post-S4 cutoff (§ 4.5 point 1): any row still "?" or "SPLIT" fails, except what `declared_transitional_rows` names — views/lens.js alone, with the ruling gap and what would discharge it. * ASSERTION 2: all twelve SPLIT-file sites are CLEAN. views/lens.js's two openxFactory-lane sites become the standing DECLARED exception § 4.5's own last paragraph states ("they never entered it"), keyed by route and never by line. Measured residue 10, re-derived and written into the marker: 6 gate-prefix sites, every one of them a class-B binding's `routes:` declaration in app.js's CORE arm (:589/:601 S3's gate.bar, :624/:625/:630 S4's two), all transitional and closing together at S5 when those entries leave for contributedViewBindings(); plus the 4 /source/ sites RULED Q4 re-homes at S6. * the three xfail markers gain `raises=AssertionError` (S1 register nit 1) — a strict xfail with no `raises` tolerates any exception, so a malformed fixture would have read as the expected failure. Assertion 3's stale count (6, measured on the S3 branch before the S2 merge) is re-measured to 4; S4 adds none. The other two S1 nits — the exemption test checking text presence rather than a declaration, and the row-level `exempt:` not being cross-checked — are assertion 4's own and are left to S7. Two dead parameters did not travel with the code they were passed to: `mountCreateProject`'s `projects` and `commissionEdit`'s `control` were never read by either body. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…te's list
`tests/test_web_boundary.py` alone cannot tell this slice apart from a slice
that DELETED the thirteen route constants: its census assertion measures that
no file outside class B names another column's route, which is equally true of
a bundle whose gate verbs no longer work. `tests/test_split_route_tails.py` is
the other half, in the same `--noconftest` shape as its five neighbours:
* every one of the eleven moved constants declared in the class-B file that
CALLS it, and the literal gone — not copied — from the file it left, with
no surviving `export const` that a re-export shim could hide behind;
* `/actions/refresh` measured to have STAYED class A (§ 3.3 puts it under
openDox; a slice that swept every route out of the selector would pass
every other assertion here);
* `/actions/apply-register-edits` measured absent from EVERY file of the
bundle, with the apply button's own class, because "leaves the bundle
entirely" is a statement about all of it;
* app.js's `gate.lens` / `gate.projects` entries and the modules they name
declaring the SAME routes — the declaration is necessarily written twice,
since app.js is class A and may not import a class-B module to read them,
and this is what keeps the two copies honest through S5's move into
contributedViewBindings();
* the ten moved gate routes present as a SET in some class-B module, beside
the three that were already there — which is § 5's S4 precondition for S5
stated as an assertion;
* no class-A/C file reaching the three new modules through a static import,
measured on the three files this slice rewired (assertion 3 is xfail today
and could not have reported a new breach);
* and under node, against the REAL bundle files by absolute path rather than
a copy: the lens gate posting the route its plan kind names (with the
organizer evidence collected first for add-as-cluster), rendering the
engine's refusal verbatim and re-arming; the project commissions posting
both gate routes and carrying the project id, retiring the create form on
a landed commission and restoring the control on a refused edit; the
snapshot-index read degrading to null for a 404, a thrown fetch and never
throwing; and the selector's own `fetchIndex` still reaching the route it
no longer names, through the late import(), resolved once.
Named on `validate`'s explicit list in the SAME commit, on slice S1's own
precedent — a test file this leg does not name is a test file it does not run.
Refs opensoft/openXfactory#656
Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…to build/s4-split-route-tails Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ready does S3's Copilot re-review (#14, `e176947`) replaced `gateView.exports.mountGateBar(...)` with `gateView.exports[gateView.binding.entry](...)`: a contributed binding NAMES its entry in the manifest, and reading a hardcoded export name here would silently ignore the name it declared — the binding would resolve, the mount would be `undefined`, and the panel would fail at the click rather than at assembly. The same is true of S4's two mounts, so they read the declared entry too. Census `loc` for app.js refreshed with the change (1331 -> 1337) and the declared totals re-derived. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ry instead of coercing it Copilot found this on openDox-code #16, a thread on `view_extension.js:358` left for its owner (S3's view registry, `views/view_extension.js`): `contributedViewBindings`'s caller, `manifestRoutes()`, validated only that `contributed_routes` was an array, and `ownershipBreach()` read a contributed entry's `is_prefix` with a truthy check (`claimed.is_prefix && route.startsWith(pattern)`). Neither refused an ENTRY that was individually malformed — missing a string `pattern`, or carrying `is_prefix` as something other than a real boolean (including simply absent) — so a manifest like that rode through as if it were valid, and a truthy-but-wrong-type `is_prefix` (or a missing one, which is falsy) was silently read as "not a prefix" rather than refused. `view_extension.py`'s own note on "MALFORMED... REFUSES" is the rule this breaks: a payload this seam cannot reason about must fail closed, the same way `viewBinding()` already does for every OTHER shape defect in a contributed entry. THE FIX, both halves in `view_extension.js` alone: * a new `requireRouteShape(claimed)` — one shape check for a single contributed-route entry, shared by both callers so a malformed entry refuses at whichever of the two sees it first. * `manifestRoutes()` now runs it over every entry once the array check passes, instead of only checking the array's own type. * `ownershipBreach()` now calls it too, so `is_prefix` refuses when it is not a strict boolean, rather than falling through the old truthy check. PYTHON MIRROR PARITY. `view_extension.py`'s `_route_ownership_breach` reads `is_prefix` as `bool(getattr(contributed, "is_prefix", False))` — a coercion, not a refusal — but that is safe ONLY because its `contributed_routes` arrive as already-constructed `RouteBinding` objects, and `RouteBinding.__post_init__` (`route_extension.py`) has already refused a non-bool `is_prefix` at construction, before `_route_ownership_breach` ever runs. The JS mirror has no such upstream gate: its `contributed_routes` arrive as raw JSON off `/capabilities`, so this fix is deliberately stricter than the literal Python line it mirrors, matching what construction-time validation already guarantees on the Python side. TESTS (`tests/test_view_registry.py`), node-driven against the real file per its own `_run_node` pattern: extended `test_js_manifest_routes_refuses_a_malformed_contributed_routes_field` with an entry missing `pattern` and an entry with a non-boolean `is_prefix`, both inside an otherwise well-formed array; added `test_js_ownership_check_refuses_a_non_boolean_is_prefix_rather_than_coercing_it` covering a missing `is_prefix`, a non-boolean truthy one, and — so the fix does not over-refuse — a well-formed `true` (still breaches) and `false` (still resolves). Confirmed both fail against the pre-fix code and pass against the fix. `tests/fixtures/web_boundary_census.yaml`: `views/view_extension.js` grew 463 -> 499 lines; `loc` and the class-A `totals:` are re-derived and updated to match (`test_web_boundary.py`'s own drift check), with a note recording what changed and why. `app.js` is untouched — nothing here needed it. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tails Resolves conflicts limited to S4's own additions layered on S3's landed content: validate.yml's S4 pytest entry, view_extension.py/.js REGIONS (lens-gate, repo-projects), app.js's two new gate mounts, and the census/ xfail narratives. Also collapses a duplicate views/view_extension.js census row (S3's pre-merge 455-loc row vs S4's reconciled 463-loc row) introduced by the add/add conflict on that file, updating its note to chain the S3->S4 loc growth; totals now re-derive exactly (A 25/16293, B 7/2174, C 14/11854, ? 1/1435 = 47 files/31756 loc). tests/conftest.py's REPO_ROOT depth fix (#19) arrives from main unchanged. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…al (Copilot) Copilot review round on PR #17: assertion 2's declared exception list (route_ownership_exceptions) was consumed by _excepted_routes without any check that an entry names a real census row, carries a reason/until, or that its routes are still actually present in the file -- unlike declared_transitional_rows, which already has test_the_declared_transitional_rows_are_real_and_still_transitional. The fixture's own comment above route_ownership_exceptions already claimed "each route is checked to be really present in the file it exempts"; this was aspirational until now. Adds test_the_route_ownership_exceptions_are_real_and_still_present, on the same pattern as its assertion-1 sibling. Verified it catches a stale route (mutation test: renamed a declared route to a nonexistent literal, confirmed the new assertion fails, restored the fixture byte-identical). Narrowed validate: 181 passed, 3 xfailed (was 180/3). Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…egistry-fail-closed Reconciles the one conflict, in tests/fixtures/web_boundary_census.yaml's views/view_extension.js row: #17's branch had just gained the missing "455 -> 463 on S4" narrative sentence (a duplicate-row cleanup fix) while this branch had already appended its own "463 -> 499 on this fix (Copilot, PR #16)" continuation from the pre-cleanup 463 note. Spliced both narrative additions into one chained note (422->455->463->499) and kept loc: 499, which matches the file's actual line count. Re-verified: totals re-derive exactly (A 25/16329, B 7/2174, C 14/11854, ?/1435). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… the registry The openDox half of slice S5 (openDox-spec `docs/front-end-package-boundary.md` § 5 row S5 @ `7d12428c`). The contract is openXdox-spec `docs/gate-loop-view-contract.md` @ `d73767b7`, § 8 Q1-Q12 RULED by Brett Heap 2026-09-12 at opensoft/openXfactory#656 comments `5648044785`, `5648049748`, `5648065587`. Paired with openXdox-code#18, which supplies what this removes. WHAT LEFT: `views/gate.js`, `views/dispose.js`, `views/swb-create.js`, `views/swb-session.js`, `views/gate-lens.js`, `views/gate-projects.js` — six and not four, because S4 split four of the thirteen gate constants into two NEW class-B modules and `gate-lens.js`'s own header says "AT S5 THIS FILE LEAVES THE BUNDLE". With them go the three CORE-arm bindings and every gate route literal in the shell. WHAT EACH RULING PUT WHERE * Q1 `views/view_extension.js` `mountContributedViews()` — one mount pass over every contributed binding whose region is a `dom` region; `shell` regions stay caller-driven, which is why this column's own six are untouched by it. * Q2 `exports` on `ViewBinding` in BOTH halves, validated the way `entry` is, and `resolveView` now hands back a namespace BOUNDED by the declaration — a reach for an undeclared name refuses, naming both. * Q3 every contributed mount is `mount(host, snapshot, ctx)`; app.js's three adapters and staging-workbench.js's four call sites carry the new shape. * Q4 `unmetRequirement` / `requirementRefusal` / `probeCapabilityPath` — dotted paths into `/capabilities`, evaluated at every named resolve and in the mount pass; unmet + optional is an empty region with a NAMED reason, unmet + required refuses. * Q8 `page-overlay`, a shell region app.js builds (index.html is a `moved_verbatim` carve row and cannot grow an element), plus `workbench-create` / `workbench-session` for the workbench's two caller-built hosts — added with the bindings that mount into them, on slice S4's own precedent. * Q10 app.js:57's `firstEditTransport` import is GONE: reached off the `gate.workbench.session` binding, with `refusalTransport()` — a refusal in the shape `runSave` understands — when no column is registered. * Q11 `render()` catches `ViewBindingError` separately; a registry refusal is no longer framed as a snapshot defect. * Q12 no gate route literal survives anywhere in this bundle. ASSERTION 3 IS GREEN AND ITS MARKER IS OFF: 7 at S1 -> 6 at S3 -> 4 at S2 -> 0 here. All four were the gate loop's own, and each closed by the module LEAVING — `views/wheel.js` and `views/staging-workbench.js` read the declared namespaces the shell resolved, through null columns that make every affordance unoffered where openXdox is not registered. ASSERTION 2 is 10 -> 4: the six CORE-arm gate sites cleared, the four `/source/` sites are slice S6's on its own branch, so that marker stays. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
TWO THINGS. THE ONE LINE SLICE S3 BUILT BOTH ENDS OF AND DID NOT WRITE. `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. `opendox/view_extension.py` named this line and the slice that owes it: "S5, the slice at which a contribution first EXISTS to deliver, joins them." No new route and no second fetch — it rides on the payload `views/notebook.js`'s `probeCapabilities()` already fetches once at load, which is how a static image reads an empty consumer column and comes up. `tests/test_gate_loop_contributed.py`, on `validate`'s explicit list in the same commit. Its centre is the slice's own success test — `test_a_student_install_comes_up_with_no_gate_loop_and_no_404` — made of four separately-measured facts rather than one: none of the six modules is in the bundle or the census, nothing imports one (so the module graph resolves without them, which is § 1.2(b)'s blank-page failure mode closed), no gate route literal survives anywhere for anything to request, and each affordance is UNOFFERED rather than undefined because the two class-C files read null columns whose capability predicates answer false. Node-driven against the real `views/view_extension.js`: the declared namespace refusing an undeclared reach (Q2), a declared export the module lacks refusing at resolve, `requires` unmet answering null for an optional binding and refusing for a required one with the path and the probed value named (Q4), and the generic mount pass mounting a `dom`-region binding with `mount(host, snapshot, ctx)`, leaving a `shell` region alone, and writing a NAMED reason into the region of an unmet optional (Q1). ONE LANGUAGE CONSTRAINT RECORDED RATHER THAN WORKED AROUND: a module namespace's exports are non-configurable, so the Proxy invariants forbid `has` / `ownKeys` / `getOwnPropertyDescriptor` from hiding one — a `has` trap answering false throws `TypeError` and would break the caller instead of refusing it. The declared namespace therefore refuses on the REACH, through `get` alone, which is exactly what RULED Q2 calls the defect. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reviewer's GuideThis stacked S5 leg removes all six gate-loop class-B modules and their route literals from the shell bundle, publishes and resolves their replacement view bindings through the registry, enforces declared exports and capability requirements, mounts contributed DOM views generically, and proves both the composed seam and a gate-free student install. Sequence diagram for registry-based gate renderingsequenceDiagram
participant Shell as app.js render()
participant Caps as /capabilities
participant Registry as view_extension.js
participant Column as Contributed gate column
participant UI as Shell and DOM hosts
Shell->>Caps: probeCapabilities()
Shell->>Registry: collectViewBindings(...)
Shell->>Registry: resolveView(bindings, id, capabilities)
Registry->>Registry: unmetRequirement(binding, capabilities)
alt optional requirement unmet
Registry-->>Shell: null
Shell->>UI: render without gate surface
else binding available
Registry->>Column: import module and validate exports
Registry-->>Shell: declared namespace
Shell->>Column: mount(host, snapshot, ctx)
Registry-->>UI: mountContributedViews(...)
end
Flow diagram for gate-free student installationflowchart TD
Install[Student install] --> Bundle[Shell bundle without six class-B modules]
Bundle --> Graph[Static module graph resolves]
Graph --> Probe["/capabilities probe"]
Probe --> Resolve[Optional gate bindings resolve to null]
Resolve --> NoGate[No gate bar, dispose tray, or session verbs]
Resolve --> No404[No gate route literal remains, so no gate 404]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…y to copy into MEASURED, not suspected: `setuptools` puts `*.py` into a wheel and nothing else unless a package declares otherwise, and this `pyproject.toml` declared nothing — so `pip install opendox` produced a package with no `opendox/web/` at all. An INSTALLED openDox could not serve the dashboard; only a source checkout could, and nothing noticed because every consumer to date has been an editable install. Same class of defect as RULED Q-L8 (a)'s `py-modules` gap, one directory over. SLICE S5 IS THE SLICE THAT HAS TO CLOSE IT. RULED Q5 (openxFactory#656 comment 5648044785) makes the composed deployment assemble the bundle — openXdox ships its six view modules as package data and the install copies them into openDox's one `--web-dir`. A wheel with no `web/` gives that copy nowhere to land, which would force every composed install onto the hosted GET fallback by a packaging omission rather than a deployment choice. `pyproject.toml` is a CREATED file (RULED OQ-C): no carve-manifest row. 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 mounting, capability-validation, manifest-diagnostic, hosted-disposal, and critical test-dependency issues remain.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Moves the six gate-loop modules behind host-supplied view bindings while allowing installations without the contributed column to load gracefully.
Changes:
- Adds registry resolution, capability handling, mounting, refusal handling, and manifest publication.
- Removes gate-loop modules, static imports, and route declarations from the shell bundle.
- Updates boundary tests, census data, intent checks, and CI coverage.
File summaries
| File | Summary |
|---|---|
tests/test_web_boundary.py |
Updates boundary, import, and route assertions. |
tests/test_view_registry.py |
Tests registry validation, namespaces, capabilities, and mounting. |
tests/test_split_route_tails.py |
Reflects relocated route declarations. |
tests/test_intent_binding_shape.py |
Updates intent-binding shape checks. |
tests/test_gate_loop_contributed.py |
Adds contributed gate-loop and student-install coverage. |
tests/fixtures/web_boundary_census.yaml |
Updates bundle census data. |
src/opendox/web/views/wheel.js |
Uses the contributed disposal namespace. Moderate (1 vote): hosted intent deployments lose the disposal UI because it requires actions.gate. Critical (1 vote): existing DOM probes still import the deleted views/dispose.js. |
src/opendox/web/views/view_extension.js |
Implements client-side registry behavior. Moderate (2 votes): non-callable declared exports can resolve and later fail with TypeError. Moderate (1 vote): non-dotted capability requirements can bypass capability checks. |
src/opendox/web/views/swb-session.js |
Routes session behavior through injected bindings. |
src/opendox/web/views/swb-create.js |
Removes the contributed create module. |
src/opendox/web/views/staging-workbench.js |
Uses injected workbench gate columns. |
src/opendox/web/views/gate.js |
Removes the contributed gate-bar module. |
src/opendox/web/views/gate-projects.js |
Removes the contributed projects module. |
src/opendox/web/views/gate-lens.js |
Removes the contributed lens module. |
src/opendox/web/views/dispose.js |
Removes the contributed disposal module. |
src/opendox/web/app.js |
Resolves bindings and wires shell adapters. Moderate (3 votes): page-overlay refusal rendering lacks its host. Moderate (1 vote): later shell mounts erase contributed views. Moderate (1 vote): hosted intent rendering disables gate.dispose. |
src/opendox/view_extension.py |
Defines and serializes view bindings. Moderate (1 vote): malformed non-dotted requires values are accepted and can bypass capability checks. |
src/opendox/serve.py |
Publishes the view manifest. Moderate (2 votes): an empty registered VIEW_EXTENSIONS facet is incorrectly reported as absent. |
.github/workflows/validate.yml |
Runs the contributed-view validation suite. |
Review details
Suppressed comments (6)
src/opendox/serve.py:1576
profile_openxfactoryis the lazy_LateProfile; its dunder guard makesgetattr(profile_openxfactory, "__name__", None)returnNonewithout resolving the registered profile. Consequently every server-generated manifest leaveshost_profileunset, so the named host/facet diagnostic described byview_manifest()is lost. Resolve the registered profile and usedomain_profile.name_of(...)(or otherwise pass its actual name) here.
host_profile=getattr(profile_openxfactory, "__name__", None),
src/opendox/view_extension.py:438
- This newly serialized
requiresfield can carry the malformed("actions",)value because the Python declaration validation accepts any non-empty string. The JavaScript probe then treats the wholeactionsobject as a satisfied requirement, bypassing a missing/falseactions.gate; enforce the dotted-path grammar in the Python declaration as well as in the client reader.
"exports": list(self.exports),
"routes": list(self.routes),
"requires": list(self.requires),
"optional": self.optional,
src/opendox/web/app.js:1087
- This pass runs before
initTabs()andmountExplorer(), but those later mounts clear their roots (initTabscalls the selected core view andmountExplorerstarts withcontainer.innerHTML = ""). Any contributed binding targeting a declared DOM region such asview-docsorexplorer-rootis therefore mounted and then erased, so the generic Q1 path cannot leave a panel visible in the real shell. The mount lifecycle needs to be coordinated with the core/lazy mounts (or contributed regions need independent hosts).
const contributedMounts = await mountContributedViews(
views, snapshot, { caps, nav: null, views },
{ capabilities: probedCaps });
src/opendox/web/app.js:1053
- On a hosted plane
probedCapshasactions.gate === falseandactions.intent === true, so the contributedgate.disposebinding'srequires: ["actions.gate"]resolves tonull. That disables the entire disposal column, even thoughwheel.jsexplicitly enters its hostedintentCapablebranch andserve.pydefines the intent plane as the identical disposal tray. Make this binding available for hosted intent rendering (lettinggateCapable()control only the local transport), or provide a separate hosted binding.
const disposeView = await resolveContributed("gate.dispose");
src/opendox/web/views/view_extension.js:466
requiresis validated earlier only as a non-empty string, but this new probe treats every value as a dotted capability path. A manifest usingrequires: ["actions"]passes that validation and reaches the truthyactionsobject here, so it mounts even whenactions.gateis false or missing. Reject non-empty dotted identifier paths in both halves before probing/publishing the manifest.
export function probeCapabilityPath(capabilities, path) {
let cursor = capabilities;
for (const segment of String(path).split(".")) {
if (cursor === null || cursor === undefined || typeof cursor !== "object") {
return undefined;
src/opendox/web/views/wheel.js:1539
intentCapable(caps)is true on hosted deployments (actions.intent: true,actions.gate: false), butapp.jsresolvesgate.disposewith theactions.gaterequirement, so this path receivesNO_DISPOSE_COLUMN; itsmountDisposeTrayandpanelEntryare no-ops. Hosted users therefore get no promised intent tray or refusal chips. Make the disposal UI available under the intent capability as well, or pass a separate intent-only disposer.
if (key === "possibles" && focus && (disposeColumn.gateCapable(caps) || intentCapable(caps))) {
const item = wheelByKey("possibles").items[focus.i];
const hosted = !disposeColumn.gateCapable(caps) && intentCapable(caps);
- Files reviewed: 20/20 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
Eight unresolved findings remain, including critical lifecycle, test-collection, and capability-validation issues.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
Previously missed (1) — in code that hasn't changed since the last review.
src/opendox/serve.py:1576
profile_openxfactoryis the lazy_LateProfile, whose__getattr__deliberately refuses dunder reads, sogetattr(profile_openxfactory, "__name__", None)returnsNoneinstead of resolving the registered profile. Every published manifest therefore loseshost_profile, despite the registry contract promising a named host for diagnosing an absent or empty facet. Resolve the actual profile and name it via the shared profile-naming helper before serializing.
src/opendox/serve.py:1575
host_view_extensions()returns()both when the profile lacksVIEW_EXTENSIONSand when it explicitly declares an empty facet, so this truthiness check serializesVIEW_EXTENSIONS=()ashost_facet: "absent". The manifest contract documentsdeclaredversusabsentas distinct states (including a host that contributes no panels); determine presence separately from the tuple's contents.
host_facet="declared" if view_extensions else "absent",
src/opendox/web/app.js:1075
- This only creates the
page-overlayhost; it never invokes the resolvedgate.disposeentry. SincemountContributedViews()intentionally skipsshellregions,mountRefusalPanelnever records this host, so a laterpanelEntry/gate refusal reaches the contributed module with no host and throws instead of rendering the refusal panel. Call the binding's declared entry here whendisposeViewis present.
ensurePageOverlayHost();
src/opendox/web/app.js:1087
- This generic mount pass runs before
mountExplorer()and beforeinitTabs()lazily renders the core views. Both the explorer and each core tab clear their root on mount, so a contributed binding targetingexplorer-rootor anyview-*DOM region is mounted and then immediately erased (and a hidden tab will erase it later on first activation). Mount contributed DOM bindings after their owning core root is initialized, or integrate the pass with each root's mount lifecycle.
const contributedMounts = await mountContributedViews(
views, snapshot, { caps, nav: null, views },
{ capabilities: probedCaps });
- Files reviewed: 20/20 changed files
- Comments generated: 4
- Review effort level: Lite
…tails # Conflicts: # .github/workflows/validate.yml # tests/test_web_boundary.py
…ches visible text THE MERGE: base #20 moved to `f5003ef` (its round-3 fixes — the per-region contributed pass bound to THIS render's signal, the Q11 refusal frame re-inserting `#loadstatus`, and `host_profile_name` replacing a dunder read the lazy proxy could only ever answer `None` for). Two conflicts, both taken as THEIRS with this slice's addition folded in: `app.js`'s contributed pass keeps `signal` AND `display`, and `serve.py`'s `display` block now names the profile through `view_extension.host_profile_name` for exactly the reason leg B's own block does — `host_facet: "absent"` was never NAMED, which is the one fact the named absence exists to carry. THE FAMILY, in one sentence: after the facet was installed, the value a view MATCHED on went through it and the value a view SHOWED A HUMAN did not. Thirteen sites, all fixed, and the fix is one mechanism rather than thirteen. * `views/display.js` gains three accessors that do the whole hop in one call — `documentStageWord(value)`, `registerStateWord(value)`, `changeStatusWord(value)` — value → role → the registered domain's word, with the RAW VALUE returned where no declared role carries it, because an enum value this shell has never been told about is the generator's news and rendering it verbatim is honest. `changes[].status` is not a `SNAPSHOT_VALUES` table — it is declared on the two change STATIONS — so `CHANGE_STATUS_ROLE` declares that one fixed relation (a change at the submission station is open; at the completion station, completed) as the eighth seam table. * THE RULE APPLIED EVERYWHERE, and the discipline is the same each time: the GROUPING KEY, the FILTER VALUE and the `dataset.*` attribute stay the raw enum — that is what makes two documents the same stage — and only the WORD goes through the facet. `board.js`'s footer breakdown · `lineage.js`'s `stageSubline` and the `+N other` remainder · `doc-wheel.js`'s tile sub-line · `docs.js`'s row `where` text and stage-filter LABELS (values unchanged) · `funnel.js`'s change pill, `docCard` meta and stage-filter labels · `wheel-model.js`'s candidate sub-line and its synthesized placeholder's noun · `canvas.js`'s gap prompt and both sides of the supersession arrow. * THE SEED STATE IS ONE DECLARATION IN THREE PLACES, and it used to be three literals: `canvas-model.js`'s `REGISTER_SEED_STATE`, `canvas_drafts.py`'s `"latent"`/`"superseded"`, and the browser's matching. A host override of `values.register_state` split them apart — the browser matched the declared vocabulary while the server wrote openDox's, so a newly drafted possible was invisible to the very install that created it. `canvas_drafts.register_state(role)` is the server half and `seedState(display)` the client one; `buildCanvasModel`, `listCanvasClusters` and `composerPlan` take the facet so the seed travels. * THE STATS STRIP RENDERS AFTER THE PROBE. It drew in the synchronous block before `probeCapabilities()` was awaited — so the ONE always-visible surface in the shell kept openDox's neutral words for the life of the page however the host spelled its stations, while every other view read the declared vocabulary. It now mounts beside `applyShellVocabulary`, on the same footing as its neighbours, and `renderStats` takes the facet. * THE DUPLICATE `"?"` KEY, and why it kept coming back: `sync-census.py` rewrote the `totals:` block with `(?: .*\n)+`, and the last totals line has no trailing newline (the text was partitioned on `\nfiles:\n`), so the old line survived the rewrite and the new block duplicated it — twice, both times as a merge artefact. The tool is fixed AND `tests/test_web_boundary.py` now loads the census through a loader that REFUSES a duplicate mapping key: `yaml.safe_load` silently keeps the last value, so a declaration that says two things read as unambiguous. A loader catches this class; a reviewer does not. Narrowed validate: 282 passed, 0 xfailed. Assertion 4 stays at 0 violations. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… — 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
…bytes as package data, the assembly seam (#18) Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5648073924. **§ 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 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` (Q5, Q1, Q3), `5648049748` (Q2, Q4, Q7, Q8), `5648065587` (Q9–Q12), with the counterpart-Q6 correction at `5649094228`. SIX ViewBindings, not four: `gate.js:mountGateBar`, `gate-lens.js:mountLensGate`, `gate-projects.js:mountProjectCommissions`, `dispose.js:mountRefusalPanel`, `swb-create.js:mountCreateAffordance` and `swb-session.js:mountSessionAffordances` — slice S4's two new class-B modules say in their own headers that they leave the bundle here, and leaving them would have left their `gate.lens` / `gate.projects` entries in openDox's CORE arm. Every binding names a **`shell`** region, so RULED Q1's generic `dom` mount pass never reaches them; RULED Q3's ONE signature `mount(host, snapshot, ctx)` is applied to all six and **the gate bar's declared exception ends here**; RULED Q2's `exports` namespace names `isGateBearing` and `firstEditTransport`; RULED Q4's `requires` are dotted `/capabilities` paths, argued per binding; RULED Q8 makes `page-overlay` the declared page-level host, so no `document.body` survives in `dispose.js`; RULED Q12's four computed routes are declared as their LITERALS. Seventeen routes in all — § 1.2(c)'s thirteen constants plus Q12's four — every one under this column's own `serve_gate.ACTIONS_GATE_PREFIX`. RULED Q5's assembly seam: `openxdox.web_assets.install_view_modules(web_dir)` copies the six modules into the one `<web_dir>/views/` that `opendox.serve.build_server` serves, shipped as `[tool.setuptools.package-data]`, with `serve_views.ViewModuleRoutesExtension` as the fallback. It REFUSES rather than creating a `web_dir` or a `views/` that is not there — a bundle with no openDox in it is an assembly error, not a partial install to continue past. **Pairs with opensoft/openDox-code#20** (the shell half). Neither leg lands alone: the shell stops shipping these six modules in the same act that this column starts shipping them. **The annotation this leg was owed has LANDED FIRST, as RULING Q-L1 requires:** opensoft/openXfactory#1023 → `ee251d6c54b7e16728f2648c71faa90d6be76496`, carrying the FOUR RE-DESTINATIONS under the form RULED Q6 (`gate.js`, `dispose.js`, `swb-create.js`, `swb-session.js` from `opendox_code` to `openxdox_code`, each row's own `destination` untouched), the seven `created:` admissions this column needed, and sixteen declared-edit entries over eleven rows. Measured from that landed main against this head: `verify-carve-arrival.py --destination openxdox_code --phase B` answers **OK — 96 rows arrived, 9 digests verified, 83 declared-edit rows within their lines, 123 files with NONE undeclared, 4 rows RE-DESTINED HERE (RULED Q6), 22 declared admissions used** — once the three PRE-EXISTING `arrival-undeclared-edit` rows that predate this slice (`gate_console.py`, `generator.py`, `tests/ideation-dashboard/ test_generator.py`, openXdox-code #14's § 4.4 code half and #16's RULING-C2 follow-up) are remedied in a SCRATCH manifest, never the repository's. They are listed, not absorbed, and they still owe an annotation of their own. Register, carried forward rather than passed over: * **The `opendox` pin bump is owed.** This leg pins `opendox @ a99eba03`, which predates the view registry, so the three materialization assertions SKIP — never fail — until the pin names an openDox carrying § 3.4 slice S5. * **`profile_openxfactory.py` owes one line** at openxFactory: `VIEW_EXTENSIONS = view_extensions.VIEW_EXTENSIONS` beside its `ROUTE_EXTENSIONS` tuple. The assembly's act, not this leg's. * **The gate column's transport-failure handling is a defect this slice cannot take.** Copilot found, correctly, that a rejected `fetch` escapes the write path in four of the six modules; four of those are ARRIVED files whose flagged lines are byte-identical to the carve commit, and normalizing a rejection into `{ok: false, message}` is new BEHAVIOUR, which is in none of RULING OQ-1's three declared-edit classes. RULED BY THE LANE, 2026-09-13: out of S5's scope. Five threads resolved on that word and REGISTERED on #656 for a later declared act. * **RULED Q7's CSS extraction is owed** for the same reason: "a stylesheet block leaves for another leg" is in none of OQ-1's three classes. Copilot rounds 1–3, all fifteen threads answered and resolved. The sharpest finding was its own correction of this PR's first shape: `gate.dispose` declared `requires: ["actions.gate"]`, which made `resolveView` answer `null` on every HOSTED intent plane and deleted the refusal tray the declaration was meant to describe — fixed at `2ca488a` with a test that states the reason. Round 3 took two more: a built `firstEditTransport` now keeps the model it validated instead of reading the module-level install (it is the one export reached through the REGISTRY rather than a mount, so it outlives the call that built it, and a second mount would have shaped one editor's Save with another's model), and `tests/test_gate_console.py`'s three expectations were repointed to `src/opendox/cli.py` — lines the carve row already declares at `[58, 1627, 1785, 1786]`, so no new declaration was owed. Gate evidence: destination gate above; `validate` SUCCESS at `7b86350a` (run 34727512041), the one required check; 15 review threads / 0 unresolved; Sourcery review skipped (budget) = advisory.
There was a problem hiding this comment.
🟡 Changes recommended
A critical aborted-render race and several moderate integration issues remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (4)
src/opendox/web/app.js:1491
- An aborted tab pass can still reject (for example when its dynamic module import fails) after a newer render starts. This unconditional catch then writes that stale refusal into the current
#loadstatus, so a healthy newer render is presented as an assembly failure. Report it only when this render's signal is still live.
mountContributedInto([region]).catch(reportAssemblyFailure);
src/opendox/web/app.js:1109
- The registry contract makes
binding.entrythe mount export, but this adapter dropscreateView.binding.entryandsessionView.binding.entrybeforestaging-workbench.jscalls hardcodedmountCreateAffordanceandmountSessionAffordances. A valid contributed binding whose declared entry uses another name passesresolveBinding()yet is never mounted, unlike the other adapters that invokeexports[binding.entry]; thread the declared entries through to the workbench.
const workbenchGate = {
create: createView ? createView.exports : null,
session: sessionView ? sessionView.exports : null,
};
src/opendox/web/app.js:1093
- The six optional bindings are resolved with six sequential dynamic-import awaits, so the first render waits for a module-load turn for each contributed file before mounting the core views. These resolutions are independent; resolving them with
Promise.allavoids a startup waterfall.
gateView = await resolveContributed("gate.bar");
src/opendox/web/views/view_extension.js:692
resolveBinding()returns an outer{binding, exports}object, so awaiting it does not probe this inner namespace proxy forthen; the async thenable check applies to the outer object. As written, a module can export an undeclared callable namedthenand this proxy will expose it, contradicting Q2's declared-namespace boundary. Let the normalallowedcheck handle stringthenand keep only the symbol pass-through here.
if (typeof property === "symbol" || property === "then") {
return Reflect.get(target, property, receiver);
- Files reviewed: 22/22 changed files
- Comments generated: 1
- Review effort level: Lite
…ng mounts nothing Copilot's round-4 finding on `src/opendox/web/app.js`, and it is the same defect round 3 fixed one layer in. The six contributed resolves — `gate.bar`, `gate.lens`, `gate.projects`, `gate.dispose`, `gate.workbench.create`, `gate.workbench.session` — each await a dynamic import, and EVERYTHING after 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 resumes after the awaits and mounts its stale snapshot into the page the newer render owns. `mountContributedViews`'s own signal check (round 3) 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. Its ERROR path stops with it: `reportAssemblyFailure` is a closure of ONE render and the per-region pass hands it rejections 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, describing a column probed for a repository no longer on screen. `tests/test_gate_loop_contributed.py` gains `test_a_render_that_lost_its_scope_while_resolving_mounts_nothing`, which pins the guard's POSITION rather than its presence: after the last of the six resolves, and before the namespace hand-down, the page-overlay host and `mountExplorer` — the three orderings the finding turns on. The boundary census's `app.js` row moves 1584 -> 1602 loc (class-A total 16918 -> 16936) with the reason in its note, as every previous round of this PR recorded its own. Destination gate re-run from openxFactory main @ee251d6c (the landed S5 annotation, #1023): `verify-carve-arrival.py --destination opendox_code --phase B` answers OK — 119 rows arrived, 66 declared-edit rows within their lines, 4 re-destined away and verified vacated. The guard falls INSIDE `web/app.js`'s already-declared edit lines, so no annotation amendment is owed. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate review comments remain in fail-closed capability handling and exception-safe host-profile diagnostics.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
src/opendox/view_extension.py:657
- This comment says
VIEW_EXTENSIONS = Noneis a malformed declaration, but the implementation immediately below treatsNoneas("absent", ()), and the added regression test codifies that behavior. Please make the comment match the acceptedNonespelling (or reject it consistently); the current contradiction makes the facet-presence contract ambiguous.
src/opendox/view_extension.py:719
host_profile_name()documents and tests a never-raises diagnostic, but thisgetattris outside the exception handler. A registered profile is intentionally not type-checked, so a profile/proxy whoseresolveproperty raises can abortbuild_server()while publishing/capabilities; keep the attribute lookup inside the existingtryso this helper returnsNoneas promised.
resolve = getattr(profile, "resolve", None)
try:
resolved = resolve() if callable(resolve) else profile
- Files reviewed: 22/22 changed files
- Comments generated: 1
- Review effort level: Lite
…t requirement, not a bypass
Copilot's round-5 finding on `src/opendox/web/views/view_extension.js`, and it is
this file contradicting its own contract. RULED Q1's generic pass read
const unmet = capabilities === undefined
? null : unmetRequirement(binding, capabilities);
so a caller that omitted the payload skipped RULED Q4's gate entirely: a REQUIRED
binding with an unmet requirement was imported and MOUNTED, which is the one
outcome the ruling says must refuse ("unmet + required REFUSES"), and an OPTIONAL
one mounted where it should have rendered its region empty with a named reason.
The contract it contradicts is fifteen lines into this file's own Q4 block: "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', which is exactly what
an unmet requirement is." `undefined` for the WHOLE payload says that about every
path at once. It is also the posture `probeCapabilityPath` was rewritten into at
round 2, when an inherited `toString` met a requirement no payload carries: a gate
reading data this shell did not write fails CLOSED.
`unmetRequirement(binding, capabilities)` is now evaluated unconditionally.
Production behaviour is unchanged — `app.js`'s `mountContributedInto` has always
passed `{ capabilities: probedCaps, regions, signal }` — so what this closes is the
seam a later caller, a probe or a contributed column's own harness would have found
open.
`tests/test_gate_loop_contributed.py::test_js_a_pass_with_no_capabilities_payload_
refuses_instead_of_mounting` drives the real registry under node with NO payload:
the optional binding is skipped for `requires` with the probed value reported as
"not carried at all" rather than as a falsy verdict, and the required one raises
`ViewBindingError` naming the binding and the path. Neither is mounted. The test was
checked against the OLD read and fails there, so it pins the behaviour rather than
restating it.
The boundary census's `views/view_extension.js` row moves 841 -> 850 loc (class-A
total 16936 -> 16945) with the reason in its note.
Destination gate re-run from openxFactory main @ee251d6c: `verify-carve-arrival.py
--destination opendox_code --phase B` answers OK with identical figures — 119 rows
arrived, 66 declared-edit rows within their lines, 4 re-destined away and verified
vacated. `views/view_extension.js` is slice S3's CREATED file and the census fixture
is a declared one, so no annotation amendment is owed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Resolve the critical stale-render and moderate binding-slot issues before approval.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (3)
Previously missed (1) — in code that hasn't changed since the last review.
src/opendox/view_extension.py:657
- The sentinel comment contradicts the implementation and the test below:
host_view_facet()treatsVIEW_EXTENSIONS = Noneas the accepted absent spelling, not as a malformed declaration. Please update this comment so maintainers do not “fix” the code back to the behavior the new contract explicitly avoids.
src/opendox/web/app.js:1092
- This lookup is by
idalone even though the registry deliberately permits the same id in different regions and defines a binding's slot as(region, id)(view_extension.js:232-235). A host can therefore publish twogate.bar(or another shell id) bindings in different regions;lookupView()returns whichever comes first, and the shell mounts that module into its hard-coded host without checking the declared region. Resolve each shell binding by its expected(region, id)slot, or refuse ambiguous shell ids, so a malformed contribution cannot silently select the wrong column.
resolveView(views, id, { capabilities: probedCaps });
src/opendox/web/views/view_extension.js:726
- This contract comment says there are “three shell regions,” but
REGIONScurrently declares eight shell regions, includingpage-overlay,workbench-create, andworkbench-sessionplus the intent and gate hosts. The implementation correctly skips every shell region viaREGIONS[binding.region], so update the wording to “the shell regions” rather than documenting a stale count.
// openxFactory#656 comment 5648044785, Brett Heap, 2026-09-12: "the shell
// MOUNTS contributed bindings generically: one mount pass over every
// contributed binding whose region is a `dom` region; the three `shell` regions
// stay caller-driven (the gate bar's pattern)."
- Files reviewed: 22/22 changed files
- Comments generated: 1
- Review effort level: Lite
…ss stops too
Copilot's round-6 finding on `src/opendox/web/app.js`, and it is round 4's finding
one and two awaits further down. Round 4 stopped the render that lost its scope
between the six contributed resolves and the first thing it mounts. But RULED Q1's
generic pass is itself AWAITED twice more — after `mountExplorer()` and after
`mountStagingWorkbench()`, which is where Copilot's round 2 put it — and each of
those awaits is a dynamic `import()` per contributed binding:
await mountContributedInto(["explorer-root"]);
await mountContributedInto(["staging-workbench-root"]);
`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 strips `#loadstatus`. On a repository switch during one of
those imports that removal lands on the NEWER render's loading state, and the stale
render's workbench and tab strip land on top of the new one's.
So the same stop the six resolves got, at both awaits. The rule this file already
follows everywhere else — a continuation honours the signal it was handed — applied
to the two remaining stretches of `render()` that await before they write.
The third call of the same pass, the tab router's `onRegionRendered` hook, is
deliberately NOT awaited (it runs from a click handler, round 2), so its scope check
is its rejection path's: `reportAssemblyFailure`'s own guard, added at round 4. That
is why four `if (signal.aborted) return;` sites is the whole census and not five.
`tests/test_gate_loop_contributed.py::test_a_render_that_lost_its_scope_while_
mounting_writes_nothing_below` pins each stop BETWEEN its own pass and the next
thing this render writes (`mountStagingWorkbench`, `mountRepoSelector`), and both
above `status.remove()`. Round 4's test now pins the census at four rather than two
and names what each one is. Both were checked against the OLD read and fail there,
so they pin the behaviour rather than restating it.
The boundary census's `app.js` row moves 1602 -> 1618 loc (class-A total 16945 ->
16961) with the reason in its note.
Destination gate re-run from openxFactory main @ee251d6c (whose carve manifest,
admissions and verifier are byte-identical to origin/main @04340d77): `verify-carve-
arrival.py --destination opendox_code --phase B` answers OK with identical figures —
119 rows arrived, 52 digests verified, 66 declared-edit rows within their lines, 4
re-destined away and verified vacated. The two guards fall INSIDE `web/app.js`'s
already-declared edit lines, so no annotation amendment is owed and #1023 stands as
landed.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
There was a problem hiding this comment.
🔵 Needs a closer look
One or more issues must be addressed before approval.
Review details
Suppressed comments (3)
src/opendox/view_extension.py:657
- This comment contradicts the implementation and its new regression test:
host_view_facet()explicitly treatsVIEW_EXTENSIONS = Noneas("absent", ()), soNoneis a supported empty spelling rather than a malformed declaration. Please update the comment to describe the sentinel as distinguishing a missing facet from the acceptedNonevalue, so extension authors are not given the opposite contract.
#: The sentinel that is NOT a facet value. `None` cannot serve: a profile is
#: free to declare `VIEW_EXTENSIONS = None` and that is a MALFORMED declaration
#: rather than an absent one, which is a distinction this seam exists to keep.
src/opendox/web/app.js:1092
- These resolves validate only the exports named by each external manifest, so a malformed
gate.barbinding can pass with its entry while omittingisGateBearing. The shell then reaches that missing name later fromonOpenFile/the asyncrenderViewerpath, after this render'stry/catchhas finished and without an awaited caller; the proxy'sViewBindingErrorbecomes an unhandled rejection instead of reachingreportAssemblyFailureand the Q11 refusal surface. Preflight the shell's required namespace here or route late namespace failures through the same assembly-error handler.
const resolveContributed = (id) =>
resolveView(views, id, { capabilities: probedCaps });
src/opendox/web/views/view_extension.js:692
- This exemption lets an undeclared
thenexport bypass the Q2 namespace boundary.resolveView()resolves to{ binding, exports: proxy }, so callers accessresolved.exports.thenafter awaiting the wrapper; they do not await the proxy itself and do not need thenable assimilation. A contributed module that exportsthencan therefore be called without being declared or refused. Keep only the symbol pass-through here (and update the adjacent rationale/test), or otherwise handle assimilation on the wrapper rather than exposing an undeclared string export.
if (typeof property === "symbol" || property === "then") {
return Reflect.get(target, property, receiver);
- Files reviewed: 22/22 changed files
- Comments generated: 0 new
- Review effort level: Lite
…o S7 Leg B landed as a SQUASH (`8efb3cf`), so `origin/main` and this branch share only the pre-leg-B base `05bbde8` and git cannot see that main's one commit IS the leg-B commits this branch already carries. Merging the leg-B tip first -- whose tree is byte-identical to `8efb3cf`'s (`git diff 5c6f762 origin/main` is empty) -- gives the forward merge its true base `011c3be`, which this branch last took leg B at. Three commits arrive: rounds 4, 5 and 6. ONE conflict, `tests/fixtures/web_boundary_census.yaml`, in exactly the three hunks the pre-clear simulated (#656, this slice's ledger): `totals.A` and the `loc`/`note` of the two rows rounds 4-6 touched. `src/opendox/web/app.js` and `src/opendox/web/views/view_extension.js` auto-merge -- the rounds edit regions this slice did not. Resolved as the UNION, then RE-MEASURED rather than transcribed: * both notes take leg B's, which is a strict superset -- this branch's note for each of the two is a literal PREFIX of it (1603 of 2640 chars for app.js, 1875 of 2315 for views/view_extension.js), because this slice bumped their `loc` without appending a transition and leg B appended rounds 4/6 and round 5. * every `loc` re-measured the way `test_every_web_file_is_classified_exactly_once` measures it (`text.count("\n")`) over the MERGED files: `app.js` 1618 -> 1719, `views/view_extension.js` 850 -> 877. No other row moved. * `totals.A` re-derived the way `test_the_declared_totals_are_re_derived_from_the_rows` derives it (sum over the class's rows): {files: 25, loc: 16961} -> {files: 26, loc: 17883}. The 26th class-A file is this slice's admitted `views/display.js`. Both arithmetics cross-check: 17883 = this branch's 17840 + leg B's rounds 4-6 (+34 app.js, +9 view_extension.js), and 1618+101 = 1719, 850+27 = 877 where 101 and 27 are this slice's own additions to the two files. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tree this merge records is BYTE-IDENTICAL to its first parent (`git diff --cached HEAD` was empty at the resolution), because main's content is already fully contained here: 1. `git diff 5c6f762 origin/main` is EMPTY -- main's one commit since `05bbde8` is #20's squash and its tree equals the leg-B tip's tree. 2. `git merge-base --is-ancestor 5c6f762 HEAD` holds -- the previous commit merged that very tip. git cannot see (1)+(2) on its own: a squash gives main a single parent at `05bbde8`, so the three-way merge takes the PRE-leg-B base and reports eight conflicts in files where this slice edited a region leg B also edited. Every one is that artefact, not a real divergence, so each resolves to `--ours` -- which already carries both sides -- and the result is proved by the empty diff above rather than asserted. What this buys: main becomes an ancestor, so #21's diff against main is this slice's own delta and nothing of leg B's. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…arameterized) (#8) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5656720756. First leg of pin lockstep #2, on pin lockstep #1's precedent (#7 -> 7cf6c14): `code` (opensoft/openDox-code) advances `05bbde80` -> `1e469713`, carrying S 3.4 S5 leg B (opensoft/openDox-code#20 -> 8efb3cf5, the shell contributes the gate loop; RULED Q1-Q12) and S 3.4 S7 (opensoft/openDox-code#21 -> 1e469713, class C parameterized plus the four arrived Act-1 suites). `spec` unchanged at `a8f5eb73`. Two files, the two #7 predicts; the digest is sorted-ls-tree-r-v1 recomputed from the submodule's own object store, not retyped. Gate evidence: `validate` SUCCESS at `f4e89880b237291790eb8e40ec9499df47893b01` (base confirmed `main`); `scripts/validate-pins.py` recomputes the tree digest and confirms gitlink/pin-file lockstep (`pins ok`); `validate-manifest.py` and `validate-repository-naming.py` also pass; 0 review thread(s), 0 unresolved. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>



Lane: openxfactory-4-opendox-extraction
§ 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; 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).BASE IS NOW
main, and the stack is gone. #17 (slice S4) landed tomainas a SQUASH (69d2760) and #16 (slice S6) landed before it. This branch has mergedorigin/fix/view-registry-fail-closed, which had already mergedorigin/maininto itself — a superset of main carrying the base branch's own resolution of the squash, rather than eight add/add conflicts re-resolved against a history with no shared ancestor.ONE THING RIDES IN ON THIS PR THAT IS NOT SLICE S5'S, and it should be read before landing: #18 (the S3 fail-closed follow-up,
requireRouteShape) was merged intobuild/s4-split-route-tailsAFTER #17 had already been squashed tomain, so its content is not onmain—git show origin/main:src/opendox/web/views/view_extension.js | grep -c requireRouteShapeanswers0. It is in this branch's history and lands with it. There is no other open PR carrying it.Paired with openXdox-code #18, which supplies what this removes; neither lands alone.
decision → ruling → where in code
dom-region contributed bindingsviews/view_extension.jsmountContributedViews(), with aregionsbound;app.js'smountContributedInto()runs it per region, after that region's core render — aftermountExplorer(), aftermountStagingWorkbench(), and through the tab router'sonRegionRenderedhook on a tab's first render (Copilot round 2: everydomregion is a root its core renderer CLEARS, and a non-initial tab renders lazily).shellregions stay caller-driven, which is why this column's own six are untouched by itview_extension.pyViewBinding.exports(+ its four refusals);views/view_extension.jsviewBinding()anddeclaredNamespace()—resolveViewhands back a namespace bounded by the declarationmount(host, snapshot, ctx)app.js's three adapters (mountGate,mountLensGate,mountProjectGate) andviews/staging-workbench.js's four call sitesrequiresnames dotted/capabilitiespaths, acted onviews/view_extension.jsprobeCapabilityPath/unmetRequirement/requirementRefusal/regionReason;resolveView(bindings, id, {capabilities})at every named resolve inapp.jsserve.build_server()publishes the manifest so the contributed column can arrivepage-overlayis the declared page-level hostREGIONSin both halves;app.jsPAGE_OVERLAY_REGION+ensurePageOverlayHost()— the shell builds it, becauseindex.htmlis amoved_verbatimcarve row that cannot grow an elementtests/test_gate_loop_contributed.py::test_the_two_unhosted_regions_stand_declared_and_unread— declared in both tables, no host element, no reader in codefirstEditTransportas a declared non-mount exportapp.js:57's static import is gone; reached offgate.workbench.session, withrefusalTransport()— a refusal in the shaperunSaveunderstands — when the column is absentViewBindingErrorcaught separatelyapp.jsrender()'s catch: "This shell was assembled with a contributed view column it cannot use (…). The snapshot is fine — the assembly is not"dispose.js; no gate route literal survives anywhere in this bundle (test_no_file_of_this_bundle_declares_a_gate_route)Also here, and it is the line slice S3 built both ends of and deliberately did not write:
serve.build_server()now setscapabilities["views"] = view_extension.view_manifest(...), collected from the host'sVIEW_EXTENSIONSfacet against the routes this assembly contributed.view_extension.pynamed the line and the slice that owed it. No new route and no second fetch.SIX modules, not four
S4 split four of the thirteen gate constants into two NEW class-B modules,
views/gate-lens.jsandviews/gate-projects.js, whose own header says "AT S5 THIS FILE LEAVES THE BUNDLE." § 5's S5 row moves "the four class-B files and all 13 route constants", and § 4.5 assertion 2's six remaining gate sites were precisely theroutes:declarations of the three CORE-arm bindings those modules back. Leaving two behind would have left the assertion at 6.assertion 2 / assertion 3
/source/sites cleared when S6 landed)origin/maincame inAssertion 2 reaches zero at this slice, which is the slice its own marker named. 18 at S1 → 20 at S3 → 12 measured / 10 in scope after S4 → 8 measured / 6 in scope once S6 is also applied (RULED Q4 makes
/source/openDox's own fixed core arm, so naming it is the boundary working — no file changed, the ROUTE moved) → 0 here. The last six were one family in one place:app.js's CORE arm, thegate.bar/gate.lens/gate.projectsentries, each a class-B binding'sroutes:declaration sitting in a class-A file. They closed the way the census row predicted.The arithmetic on 3: 7 at S1 → 6 at S3 → 4 at S2 → 0 here. All four were the gate loop's own, and each closed by the module LEAVING:
views/wheel.js(8 names) andviews/staging-workbench.js(9 names across two modules) read the declared namespaces the shell resolved, through null columns whose capability predicates answerfalse.views/lens.js's two openxFactory-lane sites remain assertion 2's declared exception (route_ownership_exceptionsin the census), untouched.Student-install proof
tests/test_gate_loop_contributed.py::test_a_student_install_comes_up_with_no_gate_loop_and_no_404— four separately-measured facts, so a failure names which one broke:app.js's CORE arm;NO_DISPOSE_COLUMN,NO_CREATE_COLUMN,NO_SESSION_COLUMN, each answeringfalseto its capability predicate.Narrowed
validatelocally at the merged head: 246 passed, 1 xfailed (the new file is on the list in the same commit, beside slice S6'stests/test_source_core_arm.py).ANNOTATION OWED
scripts/verify-carve-arrival.py --destination opendox_code --dest-root <this leg> --phase B, run against a probe tree placed from the carve commit so that only THIS slice's changes can refuse. Nine refusals, verbatim, isolated one file at a time:Four of them are the RE-DESTINATIONS.
views/gate.js,views/dispose.js,views/swb-create.jsandviews/swb-session.jseach carry a manifest row whosedestinationisopendox_code; they are atopenxdox_codenow. That is 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.The other five are Q-L1 declared-edit work:
serve.pygains two lines outside its declared window (the manifest publication),app.jsandviews/wheel.jsare edited outside theirs,views/staging-workbench.jsis amoved_verbatimrow with no declared-edit window at all, andtests/test_gate_loop_contributed.pyis a created file owed acreated:admission atdestinations.opendox_code.created.This lane does NOT author the openxFactory annotation — the orchestrator sequences it. openxFactory #1010 (S4) has LANDED; #1011 (the
re_destined:form this payload depends on) is still open.THE PAYLOAD IS BUILT AND PROVED, not proposed. Re-measured at this head against a fresh read-only openxFactory clone carrying #1011's branch with main merged in: both destinations answer
OKat phase B and the manifest validates green. Round 2 moved four things and nothing else —web/app.jsgains sixadapter callslines (879, 880, 1060, 1061, 1113, 1114, the per-region mount pass),views/wheel.jsgains two (1223, 1224, the action row'soptscarrying the column),tests/ideation-dashboard/test_bullseye_widget.pygains a NEW declared-edit entry of eight lines (1465, 1509–1515, the five statements that quoteviews/swb-create.js, travelling with the module on THIS ROW'S OWN slice-S3 precedent), and twoopendox_codeadmissions go STALE (views/gate-lens.js,views/gate-projects.js— CREATED files that move to the other destination'screated:list). The aggregate delta is unchanged:moved_verbatim161 → 160,moved_with_declared_edit157 → 158, re-destined 0 → 4, rows 456 → 456.Copilot, round 2 — eight findings taken, two threads left open
Ten unresolved threads; every one was verified against the code before it was answered.
Taken (
91bb516,bd94aa7):requiresprobe reads inherited membersrequires: ["toString"]resolved to a function and MET a requirement no payload carriesentryis", andentryis present AND callable — a stringfirstEditTransportwould have thrown from inside a click handlertypeofand the rulingbinding.idregion + id), so a second region's panel would mount the FIRST binding's moduleresolveBinding()resolves the binding the caller already holdsdomregion is a root its renderer CLEARS, and a non-initial tab renders lazily — a valid panel was mounted and then erasedonRegionRenderedhook; the Q11 frame is a named function so a late refusal is framed, not an unhandled rejectionVIEW_EXTENSIONStruthiness read as presenceVIEW_EXTENSIONS = ()was published as a host that never grew the facetview_extension.host_view_facet()answers presence and value in one readwheel.js/staging-workbench.jshold their columns in moduleletsconsts; the wheel's module-level mounter table takes the column throughopts.disposetest_bullseye_widget.pystill readsviews/swb-create.jstests/test_gate_loop_views.py; declared in the annotation payloadtest_intent_binding_dom.pystill copiesviews/dispose.jstests/test_gate_loop_probes.py— S2's own DOM shim carried across, run against an ASSEMBLED bundleFive new regression cases in
tests/test_gate_loop_contributed.py, plus four ported probes and one ported assertion block at openXdox-code #18.LEFT OPEN, against slice S8 — the threads at
views/wheel.js:82 andtests/test_gate_loop_contributed.py:612, fortests/test_intent_tray_dom.pyandtests/test_wheel_verbs_dom.py:views/intent-feed.js, RULEDnot_moved(OQ-F) and therefore never carved into this leg — so both have failed since the carve commit, before this slice existed, and removingviews/dispose.jsfrom their copy lists would not make either run.tests/is collectable by a plainpytest tests/today:conftest.py→session_fixtures.py→opendox.serve→ the still-presentideation_dashboardback-import errors at SETUP for every file,tests/test_web_boundary.pyincluded. That is RULED Q-L5 (b′), and it is whyvalidateruns a narrowed--noconftestlist..github/workflows/validate.ymlrecords of these two files BY NAME that "un-narrowing that class of test is slice S8's job".Both are ARRIVED files, so touching them costs a declared edit against a closed vocabulary. Declaring one to make no difference to a file that still cannot run is worse than leaving the record to say what is true. (Both threads were auto-resolved by the round-3 review as it superseded its own round-2 comments; the answers stand in them, and the item is recorded here so it stays visible.)
Copilot, round 3 — three taken, two refuted
Two of the three were created by round 2's own fix, which is what a third round is for.
host_profileis alwaysnull— the lazy proxy refuses every dunder BY DESIGN, sogetattr(profile, "__name__", None)could only answer the defaultview_extension.host_profile_name()resolves the profile and names it throughdomain_profile.name_of(), the namerprofile_proxy's own refusal quotes. The manifest's named absence needs the name to say "a host IS registered"mountContributedViewsreads the rendersignalbefore considering a binding and again after the importrender()ends withstatus.remove(), so the Q11 surface was blank exactly where round 2 made it newly reachable. The shell remembers where#loadstatussat and puts it back —index.htmlcannot grow a second hostmountProjectGateshadows the snapshot(host, pctx)and passeshost, snapshot, pctx— the outer render snapshot, in RULED Q3's order. Executed at openXdox-code#18'stest_js_the_project_commissions_post_both_gate_routesweb/**is not recursive**inpackage_dataarrived in setuptools 62.3.0 and this leg declaressetuptools>=68. A realpython -m buildpackages 40 entries underopendox/web/, 36 underopendox/web/views/. The smoke check asked for is added, and it holds the pattern and the floor to each otherThree new regression cases. Narrowed
validatelocally: 250 passed, 1 xfailed.Register
src/opendox/web/styles.cssis amoved_verbatimcarve row whose declared-edit vocabulary is the closed listimport rewrites | path constants | adapter calls, and "a stylesheet block leaves for another leg" is in none of them — the same wall slice S6 met on one test file and withdrew from. Measured: 51 classes exclusive to the six modules, 24 shared with modules that stay (view_extensions.STYLE_RESIDUEat openXdox-code View registry: refuse a malformed contributed-routes column instead of coercing it (S3 follow-up; fails closed per § 4.1) #18). It needs there_destined:form or a ruling of its own.requires: ["actions.gate"]while nothing read it. Now that the shell acts onrequires, the contributedgate.bar,gate.workbench.createandgate.workbench.sessiondeclare no requirement — each renders a CLI descriptor without the capability, and requiring it would delete the read-only gate surface on every hosted plane.gate.lensandgate.projectsmount a live control or nothing, and declareactions.gate.gate.disposedeclares none either, and that is Copilot's round-2 correction on the paired PR: it is the one binding serving TWO mutually exclusive transports — the local executing gate and the HOSTED intent plane (intent = not loopbackinserve.py) — andviews/wheel.jsmounts its tray whengateCapable(caps) || intentCapable(caps), so requiringactions.gatewould have answerednullon every hosted plane and taken the tray, its chips andpanelEntry's refusal surface with it.gate-lens.js/gate-projects.jsare ported to openXdox-code View registry: refuse a malformed contributed-routes column instead of coercing it (S3 follow-up; fails closed per § 4.1) #18, not deleted: dropping behavioural coverage in a refactor slice is how a move that passes every shape assertion silently breaks a verb.Refs opensoft/openXfactory#656
🤖 Generated with Claude Code
Summary by Sourcery
Move the gate loop behind contributed view bindings and make the shell safely discover, mount, and operate optional view columns through the registry.
New Features:
Bug Fixes:
Enhancements:
Build:
CI:
Deployment:
Tests:
Chores: