Repository navigation
§ 3.4 S8 (leg B): repair four carve path constants and un-narrow validate for the web suites (283 → 694 tests) - #23
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>
…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>
…tails # Conflicts: # .github/workflows/validate.yml # tests/test_web_boundary.py
… fix/view-registry-fail-closed
… column may no longer import RULED counterpart Q6 (opensoft/openXfactory#656 comment `5649094228`, Brett Heap, 2026-09-12, by interactive multi-choice): "what a CONTRIBUTED view module may IMPORT from openDox's bundle: `./views/helpers.js` and NOTHING ELSE. Every other need reaches the binding through its `ctx` (Q1-Q4) or its own package (Q5)." The same comment CORRECTS `5648065587`: the sitting's first batch put the BOUNDARY note's Q6 to Brett Heap, not the COUNTERPART note's, so this question was still open while both legs of S5 were authored. openXdox's half closes the reach (openXdox-code#18). THIS half has the other obligation: every name the four modules used to import statically has to arrive on the ctx this shell composes, or the rule turns a working affordance into a refusal. * `views/gate-lens.js` took `{ clusterRequest, recipeRequest }` from `views/lens-model.js`. `app.js`'s `mountLensGate` adapter — where the binding's context is already composed — now spreads `lctx` and adds `model: lensModel`. `views/lens.js`, which builds `lctx`, is untouched and knows nothing about the contributed column's needs. * `views/swb-create.js` and `views/swb-session.js` took five and nine names from `views/staging-workbench-model.js`. `views/staging-workbench.js` imports the NAMESPACE and hands it down at the create column's shared options builder, at the session mount and at the doxBench create dialog; `app.js` hands it to `firstEditTransport`, RULED Q10's non-mount export, whose ctx is the options object it already takes. * `views/dispose.js` took `{ emitIntent, renderIntentChips }` from `views/intent-binding.js` and fell back to `emitIntent` when the hosted context carried no emitter. A fallback into a module a contributed binding may not import is a refusal, not a default: `views/wheel.js`, which starts the feed and builds that context, now supplies `emit` and `renderChips` with it. THE NAMESPACE AND NOT A PICKED SET. The binding declares which names it needs (openXdox's `CTX_MODEL_REACH`) and refuses BY NAME at the mount when one is missing; re-listing them here would put a second, staler copy of that contract in the file that supplies it. Four tests, one per supply site plus a guard that no shell file imports one of the six contributed modules back — § 4.5 assertion 3's breach reopened from the other side would be the obvious way to "fix" a missing facet. Census `loc` rows and the class totals re-measured for the three edited files. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`docs/front-end-package-boundary.md` § 4.3 names five steps and this commit is the first three of them: the host's DISPLAY facet, published on the payload the shell already fetches, read by ROLE and handed to every view through `ctx`. * `src/opendox/display_profile.py` (created; no manifest row, RULED OQ-C) — the facet's server half. `PROFILE_FACET = "DISPLAY"` beside `ROUTE_EXTENSIONS`, `SUBCOMMAND_EXTENSIONS` and `VIEW_EXTENSIONS`: one composite profile, one registration, four facets, all through the same lazy proxy. `STAGE_ROLES`, `STATUS_ROLES`, `AREA_ROLES`, `TOKEN_ROLES` are the declared vocabulary, and every one of them is a ROLE — a position in the pipeline — because openXdox-spec `docs/domain-profile-design-note.md` § 6 rules that a profile whose organized status is spelled `triaged` must work with no engine change. A partial declaration is legal and filled per field from the neutral words; an unknown role, a blank word or a token that is not `#rrggbb` is a `DisplayFacetError` where the server is built. * `serve.py` — `capabilities["display"]`, beside S5's `capabilities["views"]` and for § 4.3 step 2's own stated reason: "no new route and no second fetch". * `src/opendox/web/views/display.js` (created) — the client half. `readDisplay`, `Display.label/one/many/short/gate/status/area/token/items`, all by role, and `applyTokens` for the four `--st-*` custom properties § 4.3 point 4 sets on `:root` at boot. An unknown role is a `DisplayRoleError` naming the declared set, never `undefined`. * `app.js` — reads the facet once per render, sets the four tokens on `:root` before anything mounts, and adds ONE key to the context object every view and every contributed binding already receives. * `view_extension.py` / `view_extension.js` — `CTX_KEYS`, the context object's declared shape, mirrored in both halves as REGIONS already is. The counterpart note asks what a binding may assume about "the context object's shape"; a shape that is only ever an object literal in `app.js` is an assumption. ABSENT IS NEUTRAL, AND THAT IS A DEPARTURE FROM § 4.3 POINT 5 STATED IN FULL. The note says "refusal, not a default", and its argument is that "a fallback to TODAY'S WORDS is how the literals survive the refactor invisibly". `NEUTRAL_DISPLAY` is the opposite of today's words: it is openDox's own plain vocabulary — `sources → groups → candidates → selections → submissions → completions` — so a shell with no host facet is VISIBLY un-domained rather than invisibly re-domained, which is RULING OQ-2's student install and § 2.1's own test for class C performed by the product instead of asserted about it. The absence is NAMED on the payload (`host_facet: "absent"` with the profile), on `host_view_extensions`' own precedent; a facet that IS declared and malformed still fails closed. SNAPSHOT_FIELDS is § 2.2 rule 3's other half, declared once in a class-A module and carried in the census as a declared exemption with its reason: the snapshot's own field names and the closed `changes[].status` enum are openDox's SCHEMA, not a domain's mapping, so the fourteen class-C files can read the snapshot through a role and carry none of them. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The note left where slice S4's five node probes stood points at openXdox-code `tests/test_gate_loop_views.py`; they landed in `tests/test_gate_loop_probes.py` (openXdox-code#18 `b0091963`), where each probe assembles a COMPOSED bundle — openDox's own `web/` with that column's six modules placed into it by RULED Q5's assembly hook — and imports the module from there, which is a stronger statement than the original this leg could make. A pointer that names the wrong file is a pointer that gets followed once and then distrusted. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…, funnel.js
§ 5's S7 row orders the slice: "wheel-model.js and model.js FIRST (they are the
vocabulary the others import)". These two declared the six stage names twice over
— `COLUMN_KEYS` :15 and `WHEEL_KEYS` :25 / `WHEEL_LABELS` :27-34 — and every
other class-C file keys off one of them, so nothing downstream can be
parameterized while they are literals.
* `views/model.js` — `COLUMN_KEYS` IS `STAGE_ROLES` now. A node's `column`, its
DOM id prefix, every edge endpoint and the collapse set are neutral roles; the
column LABEL and the gate caption come from `display.stages()`; the snapshot
is read through `display.items(snapshot, role)`, which resolves the field name
and (for the two change stations) the closed status value out of the facet's
schema half. § 3.2 called this "the densest file in the tree — 28 governance
literals in 126 lines"; it carries none.
* `views/wheel-model.js` — the same six roles for the six reels. `WHEEL_LABELS`
is GONE rather than moved: a second copy of the vocabulary keyed by wheel is
exactly the literal table this slice removes, so `wheel.js` reads
`display.short(role)`. `WHEEL_ACTIONS` is keyed by role, and a verb row whose
label carries a domain noun declares that label as a function of the facet,
resolved per render in `actionsFor`. `packetGroups` reads its ordered front
matter from the artifact axis.
* `views/funnel.js` — the card builders, the legend, the variant toggle, the
station labels, the scope control and the count are all read by role. The
per-render vocabulary is held in one module-scope binding rather than threaded
through ten DOM helpers; `renderFunnel` is this module's one entry point and
every helper is called synchronously from inside it.
* `app.js` — each CORE_VIEWS mount hands `ctx.display` to its view.
THREE SEAM-KEY TABLES ARE DECLARED IN `views/display.js`, all on § 2.2 rule 3's
footing and all carried in the census as declared exemptions with their reason:
`SNAPSHOT_FIELDS` (the snapshot's own field names and the closed
`changes[].status` enum), `ACT_IDS` (the gate column's verb keys, which both
sides of the seam must spell identically — openXdox-spec's
`gate-action-record.schema.yaml`:165 is where the enum lives) and `TILE_KINDS`
(`/actions/notebook`'s payload keys, openDox's own `notebook_action.py`). None
of the three is ever rendered; what a human reads is always `display.<role>`.
AND THE EIGHT STATUS ROLES ARE NAMED CONSTANTS (`STATUS_ROLE`), because three of
them — `ratified`, `superseded`, `retired` — are spelled identically to the
openxFactory words they name the role OF. That is the lifecycle-state column's
own coincidence (openXdox-spec `docs/domain-profile-design-note.md` § 6), and
naming the role through a constant means the sweep never has to decide whether a
given `"ratified"` was the neutral role or the domain's word. The question does
not arise, which is a better answer than an exemption.
The facet gains the ARTIFACT axis RULED Q1's own argument names ("the profile
already has to carry an artifact-vocabulary axis for `outline-model.js`") and
§ 2.1 calls `views/explorer.js`'s only domain content: `root`, `packet` (with
its ordered front matter), `delta`, `supporting`.
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* `views/wheel.js` — every per-wheel map is keyed by STAGE ROLE (the verb
mounters, the workbench scope kinds, the notebook tile kinds, the read-path
branch, the session-act table), every chip label is `display.short(role)`, and
the two flyout tooltips are declared as functions of the facet because they
carry domain nouns. `WHEEL_LABELS` is gone with its declaration.
* `views/board.js` — § 4.3 point 4 names this file directly ("board.js's four
columns become the profile's board roles"), and § 3.2 measured "25 governance
literals" in it. The four columns are now `source` (its CAPTURED documents),
`selection`, `submission`, `completion`; every heading, colour token, empty
note and filter option is read by role; the drill-in and notebook kinds come
from the declared seam tables.
AND THE BOARD STOPS REACHING FOR ANOTHER VIEW'S TAB BUTTON. Its "open the doc
list" footer clicked `document.getElementById("tab-docs")` — a view reaching
into another view's control by DOM id, which is exactly the coupling `app.js`'s
`nav` exists to hold. The view declares the verb (`onOpenDocList`), the shell
performs it (`nav.openDocList`), and the button is DISABLED rather than a live
no-op where no shell supplied one, which is the posture every other nav verb
in this bundle already takes.
THE SNAPSHOT'S CLOSED ENUMS ARE SCHEMA, AND THE FACET CARRIES THEM. A board that
filtered on the facet's neutral word would show an empty first column against
the very snapshot it was built to render: `build_server()` refuses without a
registered profile, but every profile in the estate today registers WITHOUT a
`DISPLAY` facet. So `documents[].stage` and `possibles[].state` are declared as
openDox's own schema (`SNAPSHOT_VALUES`, both halves) and published on the
payload's `values` block, where a host may override them per role. They are
values the renderer MATCHES, never values it RENDERS — every word a human reads
still comes from `display.status(vocabulary, role)` — which is § 2.2 rule 3's own
distinction read over a closed enum rather than over a field name.
`.possible` BECOMES `.tile-candidate` IN `styles.css` (12 selectors, 2 writers).
A bare governance word makes a poor style hook: it is ambiguous between a class
name and a value, and a sweep that exempted it would also exempt
`state === "superseded"` and `openButton("staged", …)`, which are neither. A
COMPOUND hook (`stage-staged`, `only-docs`, `tile-candidate`) is unambiguously a
class name, and that is the rule assertion 4's rewrite will hold. RULED Q7
(openxFactory#656 comment `5648049748`) is what makes the rename cheap: "the
`--st-*` family is the one stable styling surface; nothing else in `styles.css`
is."
Two more declared seam tables in `views/display.js`, each with its reason in the
census: `DRILL_KINDS` (the explorer's tile kinds) and `SCOPE_KINDS` (the staging
workbench's, whose closed set `views/doxbench-state.js` already declares).
Lane: openxfactory-4-opendox-extraction
Refs opensoft/openXfactory#656
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…pure models The three declared class-A TAILS of § 2.2 rule 3 are discharged here, and with them the last of the pure view-models. * `views/docs.js` — RULED Q1's own sentence, realized: "openDox, class A, with the area map parameterized". `AREA_ORDER` :18 hardcoded `ideation/brainstorm` and `ideation/staging` — openxFactory's corpus layout, in the one tile § 3.4 says must reach the student. The bucket order and the prefixes come off the profile's `areas` axis now, terminal `reference` bucket last; a product told no corpus layout lists every document in that bucket rather than inventing folders it has never been given. * `views/grouping.js` — `TALLY_FIELDS` was a table pairing each schema key with a rendered label, which is exactly the pairing the facet already declares: the snapshot field on its schema half, the short word on its vocabulary half. One tally per stage role, in spine order. * `views/repo-selector-model.js` — `STATIONS` likewise, and DEDUPLICATED BY SNAPSHOT FIELD: the two change stations read one collection, so a repository carrying no changes at all now reports ONE empty station instead of two saying the same thing. * `views/lineage.js` — every tile heading, subline, lineage-row label and legend sentence by role; `possibles[].state` matched through `registerState(role)`. The three lineage chips get compound style hooks (`lchip-selection` and its two siblings) for the reason a bare governance word makes a poor hook. * `views/doc-wheel.js`, `views/canvas-model.js`, `views/outline-model.js` — the three remaining pure models. `canvas-model.js`'s gap kind becomes `unsupported-candidate`, its two draft file-name prefixes move to a declared seam table (`DRAFT_PATHS` — `src/opendox/canvas_drafts.py` builds the same names on the server, so the two must spell them identically), and `supersedeReason` is PARAMETERIZED ON BOTH SIDES: the browser reads the grouping station's word from `ctx.display`, `canvas_drafts.supersede_reason()` reads it from `display_profile`, and the cross-check in `test_canvas.py` holds under any vocabulary instead of locking one domain's spelling into two files. * `views/outline-model.js` — the staging template's canonical heading order joins § 2.2 rule 3's schema family (`SECTION_ORDER`, both halves, host-overridable on the facet's `sections` block): the needles are MATCHED against headings a human already wrote, never rendered, and openDox ships the order it has always shipped so no install loses its outline ordering to a facet nobody has declared yet. `proposal-element` becomes `marked-element`. `views/helpers.js`'S SCOPE NOTE IS AMENDED, not quietly broken. It recorded that five view-model modules "are each copied ALONE into a node test harness … so they cannot import a sibling". Four of the five are class C or carry a declared class-C tail, and a class-C module's vocabulary comes from the registered profile — so it has to reach the facet, and a module that imports NOTHING cannot. They now import EXACTLY ONE sibling, `./display.js`, which is itself import-free: a two-file harness rather than a one-file one. The harnesses are at openXdox-code, their suites are narrowed off (RULED Q-L8 (b')), and slice S8 is the slice that re-homes them. Lane: openxfactory-4-opendox-extraction Refs opensoft/openXfactory#656 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…d the list did not Copilot's review at 0606625 counted the block's own claim against the list it introduces: the audit says three of the six repaired suites are named below and three are not, while the list names two (test_doxbench_knowledge.py and test_doxbench_document_abstract.py) and omits four. The count is corrected and the omitted set is enumerated whole, so the block's coverage claim can be read against the list without recounting it. The pytest list itself is untouched: 27 files, unchanged. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Three workflow documentation inconsistencies remain unresolved.
Review details
Suppressed comments (3)
Previously missed (1) — in code that hasn't changed since the last review.
.github/workflows/validate.yml:187
- The current merged head is documented as 694 passing, but this audit block still records 691 and says the only increase from 683 came from
test_display_facet.py. The S7 base update also added three tests intests/test_gate_loop_contributed.py, so this required-check record now misstates the validated coverage and its provenance; please update these figures to match the current run.
.github/workflows/validate.yml:176
- The Q-L5 paragraph above still says validation runs only the scaffold's shape assertions and that carved tests return only when the BUILD arc lands, but this hunk deliberately enables the web-suite exception now. Qualify the earlier statement (or this block) as the pre-S8 baseline so the workflow's stated validation policy matches the command.
# § 3.4 SLICE S8 UN-NARROWS THIS LIST FOR THE WEB SUITES, which is the
.github/workflows/validate.yml:298
- This new list entry conflicts with the S2 note at lines 80-84, which still says
tests/test_intent_binding_dom.py“stays off this list.” Since S8 now adds it, revise that earlier note to describe its pre-S8 state and keep the two intentionally omitted DOM probes distinct; otherwise the workflow's rationale is self-contradictory.
tests/test_intent_binding_dom.py
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
… overtook Copilot's review at fa6b951 (three suppressed comments, all in .github/workflows/validate.yml), each accurate and each fixed rather than answered. (1) The audit block still read 691 and attributed the whole rise from 683 to test_display_facet.py. The merged head runs 694, and the figure moved TWICE with the BASE and never with the list: +8 from test_display_facet.py in the S7 base (openDox-code#21 706b533) and +3 from test_gate_loop_contributed.py, which grew by 128 lines when the merge-forward brought origin/main in — 31 test functions in it at a7b7ac2, 34 now. Both steps are now stated with the base that produced them. (2) RULED Q-L5 (b')'s paragraph at the head of the block says validate runs only the scaffold's shape assertions and the carved tests return when the BUILD arc lands, while this same block lifts the narrowing for the web suites now. It is kept and marked as the PRE-S8 baseline, with the half that still stands named. (3) The S2 paragraph says tests/test_intent_binding_dom.py 'stays off this list ... un-narrowing that class of test is slice S8's job, not S2's', and S8 now names it. The paragraph records S2's state, points at the list for today's, and keeps the two omitted DOM probes distinct — measured: neither is among the six suites this slice repairs and each is red alone at this head (test_intent_tray_dom.py 23 failed, test_wheel_verbs_dom.py 8 failed), so naming either would put the required check red for another act's defect. The pytest list is untouched: 27 files, unchanged. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Copilot's round at 1.
The block now states 694 and names both steps with the base that produced each. 2. 3. Round 3's own fix stands unchanged: the audit block's named/omitted split is two named, four omitted, enumerated whole. |
There was a problem hiding this comment.
🟢 Approval recommended
Validation is green, and the remaining documentation nit is non-blocking.
Review details
Suppressed comments (1)
.github/workflows/validate.yml:319
- Adding
tests/test_intent_binding_dom.pyhere makes that test's own module header inaccurate: it still says the file is not invalidate.ymland is waiting for a future S8 un-narrowing, while this change now makes it a required suite. The same header also still describestests/conftest.pyas usingHERE.parent.parent, but the current conftest usesHERE.parent(tests/conftest.py:23-26). Please update that documentation alongside this workflow change so the test's scope and root-path rationale remain trustworthy.
tests/test_intent_binding_dom.py
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…ill open Copilot's approval round at 142da66, its one suppressed comment, accurate on both halves. tests/test_intent_binding_dom.py's module header was written at slice S2 and says "NOT PART OF .github/workflows/validate.yml's explicit list ... un-narrowing that class of test is slice S8's job, not S2's". S8 names it in that list in this same pull request, so the header now records what changed and why the two sibling DOM probes are still omitted -- measured, not inherited: neither is among the six suites this slice repairs and each is red alone at this head. The same header's ROOT comment says tests/conftest.py carries HERE.parent.parent and so "resolves ONE LEVEL ABOVE this repository today". It does not: the file reads HERE.parent since openDox-code#19 (3954d78), the RULED Q-L7 (a) :25 depth fix the carve manifest declares. The comment now records the fix and keeps the local computation for the reason that still holds -- this file runs under --noconftest in the required check and must not depend on a conftest being imported at all. The pytest list is untouched: 27 files. Measured under the workflow's own invocation at this head: 694 passed. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Copilot's approval round at 1. 2. The same header described Nothing about the list moved. 27 files, unchanged through all five rounds; measured under the workflow's own invocation at this head: 694 passed. The PR title's |
|
There was a problem hiding this comment.
🔵 Needs a closer look
The broad validation changes and remaining metadata discrepancy warrant final human review.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
.github/workflows/validate.yml:228
- The PR title and its “four path constants” section still describe four repairs, but this change actually repairs six suite constants (outline, Doxbench view/knowledge/document abstract/memory gateway, and Bullseye), as this block correctly records. Please align the PR metadata with the six-file scope so the declared S8 act is unambiguous.
- Files reviewed: 8/8 changed files
- Comments generated: 0 new
- Review effort level: Lite
… leg S8 un-narrowed this leg's required check from 10 files to 27 (283 -> 694 tests) while this was open, and it did so by REASONING ABOUT THE TWO SUITES THIS COMMIT DELETES. Both conflicts are therefore prose, and both resolve the same way: TAKE MAIN'S TEXT -- it carries what S8 landed -- and fold in this act's two corrections, re-tensed. What this branch said about the two siblings "staying off the list" is WITHDRAWN: main says the opposite and main is right. .github/workflows/validate.yml (one hunk). Main's paragraph ends by saying the two siblings are "still deliberately omitted, MEASURED and not assumed", with the measurement (`test_intent_tray_dom.py` 23 failed, `test_wheel_verbs_dom.py` 8 failed alone at that head). That reasoning assumed they still EXIST. Replaced from that sentence on: they are not omitted, they are RETIRED (RULED openxFactory#656 comment 5656343213, citing RULED OQ-F); S8's reason was the right answer to the question S8 could ask -- "should the list name them" -- and the ruling answers a different one, "should they be here at all". This branch's own withdrawn claims go with it: "stays off this list", the "FOUR files ON this list" count, "S8 un-narrows what remains" and "Admitting behavioural probes as a CLASS is slice S8's job, not S2's" (S8 did it). The residue paragraph is KEPT and gains one measured sentence: of the two files whose comments still name a retired sibling, `tests/test_account_menu_dom.py` is now ON the un-narrowed list and `tests/test_doxbench_tile_verbs.py` is not -- which changes nothing, because the reason neither is repaired is the CLOSED edit-class vocabulary of RULING OQ-1, not whether the required check runs the file. tests/test_intent_binding_dom.py (one hunk, the module docstring). Main's list paragraph is taken and re-tensed the same way. Two of this branch's paragraphs are KEPT because main does not carry them at all: the _DOM_SHIM PROVENANCE paragraph (the instrument was inherited from the two retired suites, the coverage was not -- measured at 8efb3cf: the tray suite copied dispose.js/helpers.js/intent-feed.js and the wheel suite those plus wheel-model.js, NEITHER the wheel.js + intent-binding.js pair this file drives), and "Nothing here reads a module's SOURCE", which sits inside the conflict on this side only because this branch moved it. Main's claim that `test_intent_tray_dom.py` is "the carried-over test of this SAME pair of views" is the one the provenance paragraph disproves, and it is dropped. EVIDENCE AT THIS HEAD, all re-measured, none carried over. * The change to validate.yml is COMMENT-ONLY: `diff` of both files with comment lines stripped prints nothing, and the 27-file selection is byte-identical to main's. * The un-narrowed selection, run as the workflow runs it (`pip install -e ".[test]"`, 27 files, `--noconftest`): 694 passed -- the same figure main's own title states, with both suites deleted. * THE DELETION IS SAFE AGAINST THE NEW LIST, proven with `ast` rather than grep, over all 27 files: no import of either retired module, and no string literal naming either OUTSIDE a docstring. The four docstring mentions are three of this act's own files plus the one declared residue, `tests/test_account_menu_dom.py`:4. Both files are absent from the tree. Refs #656 (stays OPEN). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ve) (#9) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5699629088. First leg of pin lockstep #3, on lockstep #2's precedent (#8 -> 3819625, LANDED note 5689609863): `code` (opensoft/openDox-code) advances `1e469713` -> `0b4e8bbf`, carrying S 3.4 slice S8 leg B (opensoft/openDox-code#23, LANDED note 5690615323): six pre-carve path constants repaired - test_outline_model.py:22, test_doxbench_view.py:303, test_doxbench_knowledge.py:31, test_doxbench_document_abstract.py:44, test_doxbench_memory_gateway.py:32, test_bullseye_widget.py:1674 - each one the reason a whole arrived suite could not run, and every one of them declared on its own row in openxFactory#1025. That leg's own validate list went 10 files -> 27 and 283 -> 694 tests. RULED 5656343213, "the path constant moves, the file does not". `spec` unchanged at `a8f5eb73`. Two files, the two the lockstep invariant predicts for a leg with no workflow @<sha> reference. The digest is sorted-ls-tree-r-v1 recomputed from the submodule's own object store - 165 entries - and independently re-checked, not retyped. Gate evidence: `validate` run 35112642084 SUCCESS at `c46a352a3ce6a4931ba45fb7480d83938b66d482`; `validate-pins.py` `pins ok` (tree digest recomputed, gitlink/pin-file lockstep confirmed); `validate-manifest.py` and `validate-repository-naming.py` pass. Copilot's review at that head read from the BODY, not the thread count: `5224471846`, "Approval recommended - No unresolved review comments; the dependency pin and metadata are synchronized", files reviewed 2/2, comments generated 0, and NO suppressed-comments section. 0 review threads / 0 unresolved. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… on the required check (#29) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Sub-act under `split-opendox-two-layer-product` § 5.4's standing claim [`5705086862`](opensoft/openXfactory#656 (comment)); this PR's own CLAIMED note is [`5736488087`](opensoft/openXfactory#656 (comment)). # § 5.4 FLOOR PART 2, clause (d) — the openDox LEG, and that leg only The clause in its own words, from the ledger at `openspec/changes/split-opendox-two-layer-product/tasks.md:2768-2775`: > **(d) PINNED BY TEST** at each destination and in `openxFactory` (which under RULING DQ-1 includes the adapter's own tests), the way `pytest-suite.yml` already pins this repository's collection triple — **SKIPPED exactly, SELECTED and PASSED as FLOORS, failures and errors zero**. **Per destination, never as one cross-repository equality**: an equality pin on a sum goes RED on merge refs that add tests for reasons the candidate cannot fix, which is the deadlock class `pytest-suite.yml` already refuses by name. That last sentence is why this is ONE leg in ONE repository and not a cross-repository sum. ## Why it is takeable now The ledger records the blocker in its own words at `tasks.md:2843-2846`: *"clause (d)'s LEG half is BLOCKED on the BUILD arc (§ 3.5 / § 3.6). Both legs' `validate.yml` run a NAMED FILE LIST under `--noconftest` with no JUnit and no triple … `openxFactory`'s half is already pinned."* **Both of those boxes are now `[x]`** — `tasks.md:1237` (§ 3.5, #25 → `aca94ecb`) and `:1259` (§ 3.6, #26 → `4f8ae01e`). The named blocker is discharged for this leg. ## What changes, and where ONE file, `.github/workflows/validate.yml`, and only inside the **required** `validate` job. This file says why that boundary matters: > `validate` is this repository's one REQUIRED status check (openDox-code#2, "Enforce validate as a required status check") … So the required job stays hermetic and this one carries the dependencies so the DB-backed `runtime` job is untouched — clause (d) pins the required check, not the directory-wide non-required run. | | | | --- | --- | | `--junitxml=pytest-report-main.xml` | on the `pytest` step | | `--junitxml=pytest-report-s7.xml` | on `pytest (S7 residue)` | | `--junitxml=pytest-report-runtime.xml` | on `pytest (runtime, hermetic)` | | *Pin the triple* | a new final step in the same job, summing the three | Three reports and not one because the job runs pytest three times and a single `--junitxml` path would have each run overwrite the last. Mirrors `openxFactory/.github/workflows/pytest-suite.yml` — `:599` (the report), `:671-672` (`MIN_SELECTED` / `MIN_PASSED` floors), `:782` (`EXPECT_SKIPPED`, exact), `:829` (the XML parse), `:877-881` (the assertions). ## The pin is measured on CI, not here **Two commits, deliberately.** The first emits the reports and PRINTS the triple; the second turns that into the pin using the numbers from the first commit's own run, whose URL is recorded below. The reference implementation gives the reason this leg shares, in its own header: *"THE PIN IS TAKEN FROM CI'S OWN RUN, NOT FROM A DEVELOPER MACHINE"* — self-skip guards resolve differently on a runner than in a developer worktree, so a locally measured SKIPPED is knowably the wrong number to pin. Committing a guessed pin and correcting it would put a wrong number in the history of the file whose whole purpose is that its numbers are right. **Measuring run:** [35397867526, job 105770720097](https://github.com/opensoft/openDox-code/actions/runs/35397867526/job/105770720097) — green, and its `Measure the triple` step printed: ``` pytest-report-main.xml: tests=714 skipped=2 failures=0 errors=0 pytest-report-s7.xml: tests=13 skipped=0 failures=0 errors=0 pytest-report-runtime.xml: tests=349 skipped=1 failures=0 errors=0 TRIPLE selected=1076 passed=1073 skipped=3 failures=0 errors=0 ``` So `MIN_SELECTED: "1076"`, `MIN_PASSED: "1073"` as floors, `EXPECT_SKIPPED: "3"` exactly, failures and errors zero. **The step was proved, not assumed** — its own script extracted from the YAML and run against fixtures in three states: | state | result | | --- | --- | | the measured state | exit 0 | | one report fails to appear | exit 1, 3 errors, names the missing file | | one collected test silently turns into a skip | exit 1, `skipped 4, pinned exactly 3` | That middle row is a refusal a simpler step would have missed: three reports are summed, so a step that failed to write one would otherwise present two thirds of the suite as a smaller-but-passing sum. A missing report is its own refusal, not a smaller number. ## The `collect_ignore` caveat, written into the step This repository's root `conftest.py` carries a `collect_ignore` list of **7** entries — **6 awaiting the openXdox-code leg** (they import `openxdox.*`) and **1** awaiting the BUILD arc (`tests/test_session_harness.py`). Ignored files never reach the JUnit report at all, so the floors and the exact SKIPPED are honest today; when those ignores lift, SELECTED and PASSED rise (floors may only rise) and SKIPPED moves **with the reason**, which is the referent's own documented procedure (`pytest-suite.yml:800`). That is recorded in the step's comment so the next reader does not have to rediscover it. ## What this does NOT do **It does not tick § 5.4.** The openXdox leg is still owed and is blocked on `openXdox-code` #23 @`5b8e527a` (§ 4.5a, `tasks.md:1873`); the box stays `[ ]` and its tick rides the packet bookkeeper's amendment. No byte of `openspec/changes/split-opendox-two-layer-product/` is touched here. **Follow-up: the openXdox leg, after #23.** ## Coordination The § 3.5/§ 3.6 runtime actor has a follow-up owed on this same file (the S8544 pin around `validate.yml:1195`). This change is kept in its own step and takes `git merge origin/main` before READY if that lands first. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d Q-F1's transposition (#31) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) CLAIM [`5736795055`](opensoft/openXfactory#656 (comment)) — `split-opendox-two-layer-product` § 3.7 FLOOR PART 3, the **openDox side**. The other two sides are landed: openxFactory's half of RULED Q-F1 (a) (`#1086` → `049d54a9`) and openXdox's reader (`openXdox-code` #23 → `3ee8cd31`). # § 3.7 FLOOR PART 3 — openDox's conformance reader The box asks for one thing and names two parts of it. Its own words: > **§ 3.7 also owes a DECLARED factory and Q-F1's transposition** — `tasks.md:1392-1394` > a reader that exists **is not a pass recorded**. The exit line — the three-argument command returning `OK — 17 of 17` … is owed — `tasks.md:1489-1493` > **Q-F1 (a)** — how FLOOR PART 3 runs against a GIT-HISTORY reader: **the DESTINATION transposes the corpus into git and says so** (`conformance_corpus.transpose()`, run with `--corpus <transposition>`), documents, keys and bytes unchanged — `tasks.md:1357-1361` So this PR is a factory, a transposition, and a recorded pass — **not a CI step**. openDox's implementation already existed (`LocalGitCorpus`, landed by #26 with Q-F2's three construction data on `__init__`); what was missing was the module that points it at somebody else's corpus. The ledger's reading of this side was blunt and correct: *"openDox — NOT EVIDENCED, and unlike openXdox this one has NOT moved: `openDox-code` carries no conformance reader at all"* (`:1516-1519`). ## The pass, measured openxFactory's runner at `eb1880cb`, against this tree and a transposition built by this module: ``` $ python3 scripts/verify-carve-conformance.py \ --destination opendox_code \ --dest-root <this checkout> \ --adapter opendox.conformance_corpus:reader \ --corpus <the transposition> OK …: opendox_code passed the neutral conformance corpus — 17 of 17 check(s), reader opendox.conformance_corpus:reader, corpus …, TRANSPOSED and FAITHFUL to …/tests/corpus-adapter/fixtures — 3 document(s) at revision 91c6319e…, key/sha256 table 744c9183…, unmoved across the run EXIT=0 ``` `TRANSPOSED and FAITHFUL` is the half that cannot be faked: the runner computes `{key: sha256(bytes)}` off openxFactory's **files** and compares it against what **this reader serves**, so a transposition that dropped, added, renamed or re-encoded a document refuses `conformance-corpus-unfaithful` instead of passing. ## What the module is 152 lines, two functions. | | | | --- | --- | | `reader(name, location)` | the declared factory. **Neither argument is used**, and that is the property being measured rather than an oversight: one reader built from the corpus's terms alone is pointed at all four of the corpus's states in a single run, which the three resolution-time negative confirmations require. | | `transpose(shipped, dst)` | Q-F1 (a)'s permission, taken with its proof — the same documents laid into git, bytes and keys unchanged. | **`write_path=None` is load-bearing**, and is the one place this could have quietly failed. `LocalGitCorpus` declares *openDox's* governed write path; the corpus's `read-only-declared-at-resolution` check asserts that resolution reports **none**, and has a name for a reader that brings one anyway: *"a reader is inventing one"*. `kind_field` / `required_fields` are the corpus's own two-field header (`Type`, `Title`) — a corpus that "has never heard of a factory", in the words of its own first document — so they are values here, never defaults inherited from openDox. **All four states are built**, because the seventeen checks resolve four locations and three of them are negative confirmations: - `neutral` — a git repository holding **exactly** the shipped files - `empty` — a repository committed with `--allow-empty` and **no tracked path**; a `.gitkeep` would be listed by `ls-tree -r` and the empty corpus would hold a document - `not-a-directory` — a file - the absent state — built by **not creating it**, which is the only honest way to build it ## The tests, and what they deliberately do not do 8 tests, added to the required job's named list. **They prove the property the runner checks, not the run**: the runner needs openxFactory's checkout and its fixtures, which this leg does not have and must not acquire to satisfy a test. So they reproduce the runner's own asymmetric comparison — a `{key: sha256}` table off the **files** against what the **reader** serves — over a corpus built in a tmpdir with the shipped one's shape, plus: the transposition adds no key of its own; the empty state answers rather than refuses; both refusal states refuse with the right kind. Bytes are compared as `Document.content` **bytes**, never decoded — a transposition that re-encoded a document would round-trip through `str` and compare equal while the bytes on disk had changed. ## Honest size: M The factory is small (openXdox's analogue is 94 lines) because the adapter already exists here. `transpose()` is the part openXdox never needed, and the faithfulness proof is unforgiving about keys, so it is a medium change rather than a small one. ## The pin The required job's collection triple is pinned by this lane's #29 → `373b05aa`. Adding a test file moves it, so the floors are **re-measured from this PR's own CI run and raised with the reason in the same commit** — `pytest-suite.yml`'s own procedure, and the mechanism its comment names: what moves these numbers here is editing the explicit list, and nothing else. ## Coordination **#30 @`58852e1f`** is open on this repository and overlaps two files (`validate.yml`, `local_git_adapter.py`). Different subject, different claim; named before authoring rather than discovered at a conflict. If it lands first this branch takes `git merge origin/main` — never a rebase — and **re-measures the pin afterwards**, because #30's own test additions move the same three numbers. **This does not tick § 3.7**, which needs both destinations; openXdox's pass is evidenced ([`5736681367`](opensoft/openXfactory#656 (comment))) and this supplies openDox's. It is also **§ 8.2 part 3**, whose other three parts are already on record. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>



Lane: openxfactory-4-opendox-extraction
§ 3.4 slice S8, leg B (openDox-code): repair four carve path constants and un-narrow
validatefor the web suites.Spec: openDox-spec
docs/front-end-package-boundary.md§ 5 row S8 and § 1.2(d) @7d12428c. CLAIM:opensoft/openxFactory#656comment 5649985838. Stacked on S7 (#21, merged in at706b533), which carries S5 leg B (#20). DRAFT — the lane does not merge; the orchestrator lands. Landing order: openxFactory #1025 (which declares every line these edits touch) → openXdox-code #19 → this PR, and this PR cannot land before #21.What lands
RULED Q-L5 (b′) narrowed this leg's
validateto its shape assertions "until the BUILD arc (split-opendox § 3.5/3.6) inverts the openDox → openXdox dependency". The note's S8 row lifts it for the web suites, and the S2 paragraph already standing in this workflow says of the DOM probes that "un-narrowing that class of test is slice S8's job, not S2's". This is that lift.validate's listSeventeen carved suites join the ten shape assertions. Every one was run file-by-file under the workflow's own exact invocation (
python -m pytest -q <file> --noconftest) before it was named; nothing was added on inference.The four path constants, all one defect class
The carve's
import rewritesedit class rewrote most path literals and missed these. Each is the reason a whole suite could not run:tests/test_outline_model.py:22Path(__file__).resolve().parents[2]parents[1]tests/test_doxbench_view.py:303tests/ideation-dashboard/fixtures/tests/fixtures/tests/test_doxbench_knowledge.py:31scripts/ideation_dashboard/doxbench_knowledge.pysrc/opendox/doxbench_knowledge.pytests/test_doxbench_document_abstract.py:44tests/test_doxbench_memory_gateway.py:32scripts/ideation_dashboard/doxbench_memory_gateway.pysrc/opendox/…tests/test_bullseye_widget.py:1674scripts/ideation_dashboard/serve.pysrc/opendox/serve.pytests/test_outline_model.py:22is the openDox-code #19 defect, one file over — #19 fixedREPO_ROOTdepth intests/conftest.py; this is the only other module in the tree that computes its own, and it computed it one level too high.Every edited line is DECLARED on its own row in the paired openxFactory row-annotation pull request, class
path constants. Q-L1 binds every § 3.4 slice and that annotation lands FIRST.Nothing moves — a measured correction to the slice's premise, now RULED
§ 5's S8 row expects the 23 mis-pointed files at openXdox-code to "go to the leg the census says owns each bundle file", and § 6 Q6 built
re_destined:for it. Measured: not one of the 48 may lawfully move. Every one of the 23 imports a realopenxdoxmodule (openxdox.generator,openxdox.snapshot_registry,openxdox.gate_console,openxdox.gate_routes,openxdox.doxbench_scope,openxdox.round_trip) and RULED OQ-G's TEST HOMES rule places a mixed file at openXdox because openXdox pins openDox and openDox pins nothing back. Moved here, each one fails on its first import line. The defect is in the path constant — which is exactly what § 1.2(d)'s own sentence says it is: "the carve'simport rewritesedit class rewrote the path constant and pointed the tests at the wrong leg." The full inventory, with theastwalk behind that claim, is in the lane'sinventory.mdand summarized on#656comment 5650335573.RULED, 2026-09-13 —
opensoft/openxFactory#656comment 5656343213 (Brett Heap, by interactive multi-choice): "the path constant moves, the file does not." S8 re-points 46 sites across 31 files at openXdox-code through the PIN, re-homes 0 files, and #1025 carries 0re_destined:rows. § 5's S8 row and § 1.2(d)'s inference do NOT stand as written; boundary-note amendment #3 rewrites both to this reading and re-measures 48 → 43. This leg's own six repairs are that same reading applied here.Two suites this slice leaves alone — RULED to RETIRE, under an act that lands after it
tests/test_intent_tray_dom.py(23 tests) andtests/test_wheel_verbs_dom.py(8) driveviews/intent-feed.js— a RULED OQ-Fnot_movedrow that stays at openxFactory and exists at neither leg, because slice S2 replaced the surface withviews/intent-binding.js. openXdox-code carries the same problem intests/test_staging_workbench.py's ending replay.re_destined: to: openxfactoryis not expressible:tois held to the CLOSEDdestinations:keys, openxFactory is the SOURCE and not one of them;re_destined:on anot_movedrow refusescarve-re-destined-not-moved; and deleting an arrived row has no form either — which is the finding that decided the sequencing.RULED, 2026-09-13 —
opensoft/openxFactory#656comment 5656343213 (Brett Heap, by interactive multi-choice): the three RETIRE at their legs as a declared act citing OQ-F, and aretired:row form is registered as the NEXT carve-floor act. The form lands FIRST, under its own claim and after this slice; the retirement lands under it. So this pull request leaves both suites exactly as they are — untouched in the tree, narrowed out ofvalidate, neither repaired nor deleted — and names them RETIRING. Both acts are registered in openxFactory #1025 § 7, and the form itself is CLAIMED atopensoft/openxFactory#656comment 5656690570.What this pull request does NOT claim
python -m pytest -qover the tree, with the root conftest, is 1188 errors / 0 passed. 1126 of them are one line:reached from the autouse
declared_human_consolefixture (tests/session_fixtures.py:413→opendox.cli→opendox.serve) thattests/conftest.pyre-exports for the whole tree.tests/test_consumer_reach.py'sSTILL_REACHINGrecords that reach by name and asserts it still fails — "whose rewrite target exists at neither carve destination" — so repairing it here would turntest_the_reaching_modules_are_recorded_as_reachingred. RULED Q-L5 (b′) waits on the BUILD arc for it. The workflow comment says so rather than buying a green check with an ignore list.Four standing reds this slice found, reported not hidden — and all four are now repaired at the base
Exposed by running, file by file, the suites nobody has run since the carve — which is the thing un-narrowing a
validatelist actually buys:maind672f0c)tests/test_doc_surfaces.pytests/test_doxbench_tile_verbs.pytests/test_doxbench_view.pytests/test_bullseye_widget.pyviews/staging-workbench.js/swb-create.jslines S5 rewroteThey belonged to the authoring slices, not to S8: handed back on
opensoft/openxFactory#656comment 5650335573 § 4, and S7 has repaired all four on #21 atd672f0c, as DECLARED EDITS on arrived test files with no product file changed — merged into this branch at81d754b. None of the four is in the list this pull request adds, before or after: they are S7's rows to declare on the S7 annotation, and naming them here would make this leg's required check answer for another slice's declarations.Also standing and not S8's:
tests/test_provider_boundary.pyasserts that seven per-module scan suites still exist by filename, and the carve sent all seven to openXdox-code.Refs opensoft/openXfactory#656
🤖 Generated with Claude Code
Summary by Sourcery
Expand standalone web-suite validation and repair stale test paths introduced by the repository carve.
New Features:
Bug Fixes:
Enhancements:
CI:
Tests:
ROUND 1 (2026-09-13) — S7 base merged,
f8e8f09+ea442c6origin/build/s7-parameterize-class-cadvanced to706b533(two commits: the served payload naming which tokens the host declared, and five surfaces the hop reached). Merged in cleanly; the un-narrowed list re-run under the workflow's own invocation is 691 passed (from 683), the eight new beingtests/test_display_facet.py's own, which grew in that base. The workflow's comment now states the figure with the base that produced it.No finding on this PR was outstanding: both Copilot threads were answered and resolved in the first round.
ROUND 2 (2026-09-13) — the base carried S8's four findings home;
81d754borigin/build/s7-parameterize-class-cadvanced tod672f0c, "§ 3.4 S7: four arrived suites nobody had run since the carve" — S7's repair of the four failures this slice measured and handed back (opensoft/openxFactory#656comment 5650335573 § 4). Clean merge, four test files, no conflict, no product file changed on either side of it.Slice S8's own repairs inside two of those four files survive the merge and were checked by hand rather than assumed:
tests/test_doxbench_view.py'sPREVIEW_CASES_PATHstill resolvestests/fixtures/and not the pre-carvetests/ideation-dashboard/fixtures/, andtests/test_bullseye_widget.pystill readssrc/opendox/serve.pyand notscripts/ideation_dashboard/serve.py.validateat81d754b0: run34785738785SUCCESS — 691 passed, the same figure as the pre-merge head, which is the point: the four repaired suites are not in this PR's list and the merge moved the base underneath the seventeen without moving their verdict.And one Copilot finding at that head, accurate, fixed at
a7b7ac2. The block recording which suites are deliberately NOT in the un-narrowed list opened "Five green-under-noconftest suites are deliberately NOT named" and then said of three of the five that each "carries a standing red this slice does not own". Both halves cannot be true, and an exclusion record that contradicts itself is worse than none: the next person widening this list cannot tell which half was measured.What was measured is COLLECTION, not greenness — the tree blocker denies most of this tree the ability to collect at all, and these five collect cleanly, which is not by itself a reason to name a file. The block now gives the two reasons separately, each with its own figure, re-measured at this head with every file run ALONE under the workflow's own invocation:
tests/test_doxbench_bridge_live.pytests/test_openprofiler_broker_e2e.pytests/test_boundary.pytests/test_provider_boundary.pytests/test_workbench.pyComment only — the list, the invocation and every test file are untouched.
validateata7b7ac28: run34786045437SUCCESS, and the full 27-file list run locally under the same invocation is 691 passed, CI's own figure. Review threads stand at 3 total / 0 unresolved.ROUND 3 (2026-09-16) — the base landed by SQUASH, which is not the merge that was rehearsed
S7 (#21) landed at
1e4697132026-09-15T21:41Z and this PR was retargeted tomain. A squash is not the merge astacked branch expects. This branch already carried #21's older head
d672f0c7; the squash put ONE commit onmainre-applying #21's entire change with no shared history with the commits this branch carries. Merging
origin/mainstraight in therefore conflicts in five files — and four of them (
src/opendox/web/app.js,src/opendox/web/views/view_extension.js,tests/fixtures/web_boundary_census.yaml,tests/test_gate_loop_contributed.py) are files this PR does not author at all: they collide only because ours holds#21's older head and theirs its newer one, over a base that has neither.
Measured in a throwaway worktree before it was done for real, so the order was a decision rather than a discovery:
merging #21's real head
c7a216c7first (by sha — its branch is deleted at landing, the object was pinned in theclone beforehand) is CLEAN, four files; merging
origin/mainafter that conflicts in one file,.github/workflows/validate.yml, whose two blocks both have an EMPTYtheirsside — a purely POSITIONAL conflict,exactly the one openXdox-code #19 resolved at
080dcfcd. Five conflicts naive, one this way.The resolution keeps this branch's side of both blocks and then proves nothing was lost: the narrowed list is read
out of BOTH index stages and the resolved list is required to be a superset of each, so a positional resolution cannot
silently drop a file
mainhad named. Result: the list is still 27 files,main's own 10 entries are allpresent, the YAML parses, and no marker survives.
The merged tree is green, and that could not have been assumed from #21's own check — #21's
validateruns the10-file shape list, while five of this PR's 27 listed suites read the census or the two changed
.jsfiles(
test_web_boundary,test_view_registry,test_split_route_tails,test_gate_loop_contributed,test_display_facet).Re-run under the workflow's own invocation at the merged head: 694 passed (it was 691 at
a7b7ac28; the difference istests/test_gate_loop_contributed.py's own, which grew by 128 lines in #21's merge of main — a figure that moves withthe base is stated with the base that produced it).
CI at
0606625e:validaterun 35040832359 SUCCESS.