Repository navigation
§ 3.4 RULED Q7: the gate loop's stylesheets arrive with the bindings that own them - #22
Conversation
…that own them RULED Q7 (Brett Heap, 2026-09-12, `opensoft/openXfactory#656` comment `5648049748`): *"a contributed binding's CSS lives WITH THE BINDING, in its own sheet."* Slice S5 recorded the extraction as owed and BLOCKED in `view_extensions.STYLE_RESIDUE`; this is the half that receives it. THE BYTES. Four sheets under `src/openxdox/web/views/`, beside the modules they belong to, shipped by the same package-data glob (`web/views/*.css` added) and placed into openDox's one `--web-dir` by the same assembly hook (RULED Q5). Every rule in them left openDox's `src/opendox/web/styles.css` VERBATIM. FOUR SHEETS FOR SIX BINDINGS, and both departures from one-each are MEASURED, not chosen. `gate-lens.js` owns no selector of its own — its plan-panel controls reuse the shell's shared `.cbtn`/`.lens` chrome — so `gate.lens` names none, and an empty sheet shipped for symmetry would be a file nothing declares. The two workbench bindings name the SAME sheet because eleven of `swb.css`'s nineteen blocks are named by both modules; openDox's registry dedupes the injected `<link>` by resolved href, which is what makes the shared naming correct rather than merely tolerated, and it is the only shape that neither duplicates those eleven into two files (two authorities for one rule set) nor makes one optional binding depend on another's sheet. THE CENSUS, RE-MEASURED at openDox-code `0b4e8bbf` and openXdox-code `0a0265f7` rather than carried forward: 54 exclusive classes over 59 rule blocks, 22 shared. `STYLE_RESIDUE`'s `51 / 24` at `cb343ae8` reproduces EXACTLY under the same tool's literal-only scan — and the 51 was three short, because `.dispose-accepted`, `.dispose-rejected` and `.dispose-deferred` are built by `"disposebtn dispose-" + v.outcome` (`dispose.js`:275) and no literal search can see them. `STYLE_RESIDUE` now records the DISCHARGE, with `blocked_by: None` asserted rather than deleted, so a successor that re-blocks this work has to say so in the test. THE PIN GAP, HANDLED AS SLICE S5 HANDLED ITS MIRROR. `ViewBinding.styles` lands in openDox-code's own Q7 leg and this leg pins an older `opendox`, so `specs_for()` DROPS the field where the installed dataclass does not carry it: the column mounts unstyled rather than refusing, because unstyled panels are degraded and absent panels are deleted — `gate.dispose`'s own `requires` note's argument. `exports` is deliberately NOT treated this way: an undeclared reach is a refusal RULED Q2 asks for, so a pin that cannot express it stays `ViewContractUnsupported`. The pin bump that follows openDox-code's Q7 leg turns the sheets on with no edit here. THE HOSTED FALLBACK carries the sheets too (`VIEW_ASSET_NAMES`), with `text/css` beside `text/javascript`: a browser in standards mode DROPS a stylesheet served as anything else, and the symptom is an unstyled panel with no error event at all. THE PROOF, on `validate.yml`'s existing list: every declared sheet ships and every shipped sheet is declared, each binding names the sheet carrying its own selectors, no contributed sheet DECLARES an `--st-*` token (it reads three and writes none — `views/display.js`'s `applyTokens` is the one authority), the non-token coupling is COUNTED and pinned at thirteen, no sheet reaches a remote asset or `@import`, and the pin gap is driven against two stub `ViewBinding` shapes so both pins are asserted from either. `validate.yml`'s exact invocation at this commit: 307 passed, 23 skipped. WHAT THIS DOES NOT DO. It changes no module byte and no binding's routes, exports or `requires`. The sheets are inert until openDox-code's Q7 leg lands and this leg's pin advances. The declared-edit window for the 89 carve-commit lines the blocks left on, and the admissions for the four created `.css` files, are openxFactory's row annotation, which lands FIRST (RULED Q-L1, `#656` comment `5628560136`). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Reviewer's GuideImplements RULED Q7 by packaging four binding-owned stylesheets, declaring them on the appropriate view bindings, installing them with the JavaScript modules, and serving them through the hosted fallback with the correct MIME type. The implementation remains inert on the current older openDox pin by feature-detecting ViewBinding.styles, while extensive tests enforce asset completeness, ownership, extraction accounting, styling constraints, and pin compatibility. Flow diagram for binding asset assembly and fallback servingflowchart TD
Specs["Binding specs declare styles"] --> Assets["VIEW_ASSET_NAMES combines JS and CSS"]
Assets --> Install["install_view_modules(web_dir)"]
Install --> Served["One views/ bundle"]
Served --> Links["Registry injects deduplicated stylesheet links"]
Assets --> Fallback["view_module_bindings()"]
Fallback --> MIME["_serve_contributed_view_module\nCTYPES selects MIME by suffix"]
MIME --> Browser["Hosted browser receives CSS as text/css"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
Moderate gaps remain in installed-package verification, CSS serving coverage, and stylesheet policy scans.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds four binding-owned gate-loop stylesheets, packages and serves them with the view assets, and supports older bindings without a styles field.
Changes:
- Adds and packages four contributed CSS files.
- Extends asset assembly and hosted fallback serving with CSS MIME handling.
- Adds stylesheet declarations, compatibility logic, and validation coverage.
File summaries
| File | Summary | Review notes |
|---|---|---|
tests/test_gate_loop_views.py |
Validates CSS assets, declarations, coupling, and compatibility. | Add CSS handler coverage and harden inline-token and case-insensitive policy scans. |
src/openxdox/web/views/swb.css |
Adds binding-owned workbench styles. | Reviewed. |
src/openxdox/web/views/gate.css |
Adds binding-owned gate styles. | Reviewed. |
src/openxdox/web/views/gate-projects.css |
Adds binding-owned project styles. | Reviewed. |
src/openxdox/web/views/dispose.css |
Adds binding-owned disposal styles. | Reviewed. |
src/openxdox/web_assets.py |
Declares and assembles web assets. | Reviewed. |
src/openxdox/view_extensions.py |
Associates stylesheets with bindings and handles older pins. | Reviewed. |
src/openxdox/serve_views.py |
Serves JavaScript and CSS assets with appropriate MIME types. | Add a declared CSS fallback probe asserting bytes and content type. |
pyproject.toml |
Includes CSS files in package data. | Add an installed-wheel check for packaged stylesheets. |
Review details
Suppressed comments (4)
pyproject.toml:151
- The asset tests read directly from
src/openxdox/web/views, so they do not verify this package-data pattern in an installed wheel. A typo here would leave the source checkout tests green whilemodule_path()fails in the deployed package and all four stylesheets are missing; add a wheel/install check that asserts everyVIEW_SHEET_NAMESfile is present after packaging.
openxdox = ["web/views/*.js", "web/views/*.css"]
tests/test_gate_loop_views.py:225
- The new CSS branch in
_serve_contributed_view_moduleis not exercised: this assertion only checks theCTYPEStable, while the handler probe below requestsgate.jsand never a.cssasset. A regression could therefore still pass while serving a stylesheet with the JS content type (or wrong bytes); add a/views/gate.cssprobe and assertmodule_source("gate.css")withCSS_CTYPE.
assert serve_views.CTYPES == {".js": serve_views.JS_CTYPE,
".css": serve_views.CSS_CTYPE}
assert "text/css" in serve_views.CSS_CTYPE
tests/test_gate_loop_views.py:786
- CSS at-rules and the
url()function are case-insensitive, but both checks here only recognize lowercase spellings. A future@IMPORTorURL(https://...)would evade this test and violate the stated no-import/no-remote-asset policy; make these matches case-insensitive.
assert "@import" not in body, name
for url in re.findall(r"url\(([^)]*)\)", body):
assert not re.match(r"\s*['\"]?(https?:)?//", url), (name, url)
tests/test_gate_loop_views.py:718
- This scan only matches
--st-*declarations at the start of a line. A valid one-line rule such as.x { --st-custom: value; }would therefore pass even though it violates the one-authority token rule; match declarations after{or;so the guard covers the inline syntax used throughout these sheets.
written = re.findall(r"^\s*(--st-[A-Za-z0-9_-]+)\s*:", _sheet_body(name),
re.M)
- Files reviewed: 9/9 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…check the wheel pattern
FOUR FINDINGS, ALL TAKEN, EACH WITH THE MUTATION THAT PROVES THE REPAIR.
1. THE `.css` BRANCH OF THE HOSTED FALLBACK WAS NEVER EXERCISED. The suite
asserted the `CTYPES` table and then probed `/views/gate.js` only, so a
regression in the suffix lookup, in `module_source`'s bytes or in
`CSS_CTYPE` would have passed while every hosted stylesheet went out as
`text/javascript` — which a browser in standards mode answers by DROPPING
the sheet, with no error event and an unstyled panel as the only symptom.
The probe now requests `/views/gate.css` and asserts its bytes and
`text/css`, and then walks every one of `VIEW_SHEET_NAMES` head-only.
MUTATION: hard-code `JS_CTYPE` in the handler -> the probe fails naming both
types.
2. `@import` AND `url()` ARE CASE-INSENSITIVE IN CSS, and the policy scan was
not: `@IMPORT` and `URL(HTTPS://…)` are valid CSS and both walked past a
lowercase match, which is the whole § 4.4 vendor policy this test states.
Both matches are folded now, scheme included, and the fold itself is
asserted. MUTATION: append `@IMPORT url("HTTPS://cdn.example/x.css");` to a
sheet -> the scan fails naming it.
3. THE `--st-*` GUARD ONLY SAW A DECLARATION AT THE START OF A LINE, and these
sheets are written one rule per line, so `.x { --st-proposed: red; }`
declares a token after a `{` and a second after a `;` and the guard saw
neither. It now matches the three contexts a declaration can follow (start,
`{`, `;`) and NOT `(`, which is what bounds a `var()` READ — the exact
distinction RULED Q7 draws between the one stable styling surface and a
second authority for it. A new test drives the scanner against both shapes.
MUTATION: add `.x { --st-proposed: red; }` to `gate.css` -> the guard fails
naming the token.
4. NOTHING CHECKED `pyproject.toml`'s PACKAGE-DATA PATTERN. Every asset test
reads `src/openxdox/web/views/` directly, so dropping `web/views/*.css`
would leave this suite green and the built wheel carrying four bindings
whose sheets cannot load — the day `module_path()`'s refusal message is
written for. The patterns are now read from the real file and matched
against `VIEW_ASSET_NAMES`, with the `web/views/` prefix DERIVED from
`VIEW_MODULE_DIR` rather than spelled again, and the test skips on an
installed tree that has no `pyproject.toml` to read. MUTATION: drop the
`*.css` pattern -> the test fails naming `web/views/gate.css`.
`validate.yml`'s exact invocation at this commit: 309 passed, 23 skipped.
Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
It spans asset packaging, serving, binding compatibility, and multiple stylesheets; final human review is warranted.
Review details
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
src/openxdox/web_assets.py:130
- The new asset path now accepts
.css, but this failure still calls a missing stylesheet a "declared view module". When the CSS package-data entry is absent, the resulting diagnostic points operators toward the wrong asset type; please make the error say "view asset" (or otherwise distinguish sheets).
src/openxdox/web_assets.py:196
- The collision path now covers CSS as well as JavaScript (
VIEW_ASSET_NAMES), but its refusal still describes the files asmodule(s). Whenoverwrite=Falsefinds an existinggate.css, that message is misleading; make it sayasset(s)and avoid calling a single colliding asset a second copy of the whole gate loop.
collisions = [target_dir / name for name in VIEW_ASSET_NAMES
if (target_dir / name).exists()]
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
…answer for sheets too TWO FINDINGS, BOTH TAKEN, AND BOTH ARE ABOUT A DIAGNOSTIC POINTING AN OPERATOR AT THE WRONG LINE. 1. `module_path()` ANSWERS FOR SHEETS NOW AND ITS REFUSAL STILL SAID "declared view module". The message names the exact `pyproject.toml` package-data line to add, so calling a missing `gate.css` a module sends the reader to `web/views/*.js` — the pattern that is already there. It says "declared view asset", and the package-data line it quotes now carries both patterns. It also gains the sentence the CSS case needs: a missing MODULE is a binding that cannot mount, and RULED Q7 makes a missing SHEET the quieter defect — the binding mounts and paints unstyled, a degrade rather than a refusal, which is exactly why the wheel is where it has to be caught. 2. THE COLLISION REFUSAL CALLED A COLLIDING SHEET "a second copy of the gate loop". The sweep covers `VIEW_ASSET_NAMES` since this act, so one existing `gate.css` is not the whole column arriving twice. It reads "this column's asset(s)" and "a second placement of this column or a name collision with openDox's own bundle". BOTH ARE ASSERTED, not just written: `test_an_undeclared_module_name_is_refused` now drives an undeclared SHEET name (`gate-lens.css` — the sheet `gate-lens.js` deliberately has none) and requires "view asset" in the refusal, and the overwrite test now seeds the collision with a SHEET rather than a module and requires "asset(s)". Each assertion fails against the wording this commit replaces. `validate.yml`'s exact invocation at this commit: 309 passed, 23 skipped. 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 moderate findings and one nit remain unresolved.
Review details
Suppressed comments (4)
src/openxdox/view_extensions.py:488
- The new-pin branch that actually materializes
stylesis not exercised by the suite: the realtest_the_facet_conforms_to_the_view_extension_protocolis skipped on this leg's old pin and only asserts id/routes/exports/requires when it runs, whiletest_the_styles_field_is_dropped_for_a_pin_that_cannot_express_itcallsspecs_for()against stubs rather thanViewBinding(**spec). Add a materialization assertion (or a stubbedViewBindingintegration test) that verifies the new shape receives the expected stylesheet values; otherwise a regression in this call path can leave the sheets inert while the current tests remain green.
return tuple(view_extension.ViewBinding(**spec)
for spec in specs_for(view_extension.ViewBinding))
src/openxdox/web/views/swb.css:13
- The extraction note says every selector's classes are exclusive to this column, but
.swb-draftchrome .swb-cactionsdeliberately includes the openDox-owned host-context class.swb-draftchrome; the residue table even records that host context. Please correct this statement to describe the mixed host-context exception, otherwise the sheet's ownership documentation contradicts the recorded census.
(RULED Q-L1's form, `#656` comment `5628560136`). What selects them is
measured, never chosen: each selector's every class is named by this
column's six modules and by no file of openDox's own bundle
(`measure-css-census.py`, the BROAD scan).
src/openxdox/web/views/swb.css:64
- These two selectors make the four sheets contain 61 CSS rule blocks, while
STYLE_RESIDUE["rule_blocks_moved"]and the corresponding test pin 59. Both.swb-chelpand.swb-creqwere also removed from openDox's source stylesheet, so they are part of this extraction; please reconcile the census/description (or explicitly document and test why they are excluded) so the audit record cannot silently disagree with the shipped bytes.
.swb-chelp { display: block; font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.swb-creq {
margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em;
text-transform: uppercase; color: var(--picked); cursor: help;
}
tests/test_gate_loop_views.py:782
- This assertion only hard-codes the binding-to-href map; it never checks that the sheet actually contains the selectors for that binding. Swapping two sheet bodies, or leaving one empty while preserving the names, would keep all of these tests green but render the contributed panels with the wrong/missing styling. Add a selector census or equivalent content-to-binding assertion for the new CSS assets.
by_id = {spec["id"]: spec.get("styles", "") for spec in SPECS}
assert by_id == {
"gate.bar": "./views/gate.css",
"gate.lens": "",
"gate.projects": "./views/gate-projects.css",
"gate.dispose": "./views/dispose.css",
"gate.workbench.create": "./views/swb.css",
"gate.workbench.session": "./views/swb.css",
}
for spec in SPECS:
sheet = spec.get("styles", "")
if not sheet:
continue
assert sheet.startswith("./views/") and sheet.endswith(".css"), sheet
assert sheet[len("./views/"):] in web_assets.VIEW_SHEET_NAMES, sheet
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
…n rule Copilot round 3 on the paired annotation (openxFactory #1068) bounded the census's bare-class-literal rule by POSITION — a literal names a class after `(`, after `,`, after an assignment `=`, or as the value of a class-naming key such as this column's own `dispose.js`:202-206 outcome table, and nowhere else. `why` was counted shared only because a module here carries it as a value in a non-class position; it is openDox's alone. RE-DERIVED from the same run, not adjusted to match it: this column's own half is UNCHANGED at 54 exclusive classes over 59 blocks and 89 lines — so not one sheet byte and not one declared line moves — and the shared half is 21. The same re-derivation lands in openDox-code's `SHARED_CLASSES` and in the annotation's manifest note. `validate.yml`'s exact invocation at this commit: 309 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…he new-pin branch, and stop the headers contradicting the census THREE FINDINGS, ALL TAKEN, EACH WITH ITS MUTATION. 1. **THE SHEETS CARRY 61 RULE BLOCKS AND THE RECORD SAID 59.** Counted off the shipped bytes: `dispose.css` 24, `gate-projects.css` 10, `gate.css` 7, `swb.css` 20. The 59 are the EXCLUSIVE blocks; the other two are the file's only MIXED rules, handled rather than exempted — one selector list SPLIT (openDox keeps `.filterpop[hidden]`, this column re-states the gate half) and `.swb-draftchrome .swb-cactions` MOVED WHOLE. `STYLE_RESIDUE` records both now (`mixed_blocks_handled: 2`, `rule_blocks_in_sheets: 61`) and a new test COUNTS the shipped blocks, asserts `59 + 2 == 61`, and checks each mixed rule is in the sheet the record says. (The review attributed the two extra to `.swb-chelp` / `.swb-creq`; those are among the 59. The count was right and the arithmetic is now written down.) MUTATION: delete `.swb-draftchrome .swb-cactions` from `swb.css` -> the count test fails at 60. 2. **THE NEW-PIN BRANCH WAS NEVER EXECUTED.** `GateLoopViews.views()` is where `specs_for()`'s answer becomes real bindings, and nothing drove it with a `ViewBinding` that HAS `styles`: the live materialization test skips on this leg's old pin, and the `specs_for` test drives the filter, not the constructor. A regression between the two — a spec the filter kept that the constructor drops — would have left the sheets inert with every test green. Two tests now drive `views()` through a STUB `opendox.view_extension`, one with the field and one without, so BOTH pins are executed on this leg today rather than waiting for the bump: the new pin materializes the six declared `styles` values and reaches every sheet this column ships; the old one materializes the whole column with no `styles` attribute at all. MUTATION: blank `gate.workbench.*`'s `styles` -> three tests fail. 3. **EVERY SHEET HEADER CONTRADICTED THE CENSUS IT CITED.** They said each selector's classes are this column's own and by no file of openDox's — while `swb.css` carries `.swb-draftchrome .swb-cactions`, whose ancestor is openDox's draft chrome and which `STYLE_RESIDUE` already recorded as host context. All four headers now declare that exception, name where it is recorded, and name the census tool as it is COMMITTED (`scripts/measure_opendox_css_census.py`) rather than as it was drafted. A test asserts all four. `validate.yml`'s exact invocation at this commit: 313 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e with the coupling registered, and the four-sheet shape Both halves of this act that were put to Brett Heap are now RULED, and the record must say so where the decision is made rather than only in a pull request that will be squashed away. **RULED openxFactory#656 comment `5700475319` (Brett Heap, 2026-09-16, by interactive multi-choice):** 1. THE 13 NON-`--st-` CUSTOM PROPERTIES these sheets read — which RULED Q7's own sentence says are not a stable styling surface — **MOVE VERBATIM, and the coupling is REGISTERED BY MEASUREMENT**: `STYLE_RESIDUE["open_coupling"]`, asserted by this leg's own suite. The alternatives put beside it (widen the stable surface by ruling; a second declared token family for contributed chrome; defer to the BUILD arc) were not taken. The citation sits on the `open_coupling` entry itself, with the alternatives named, because the entry is the thing a successor will read. 2. THE MEASURED SHAPE STANDS: **FOUR sheets rather than six, a single `styles` specifier, href de-duplication LOAD-BEARING.** The alternatives — a tuple-valued `styles` with a seventh shared sheet, or six sheets duplicating the eleven blocks both workbench modules name — were not taken. Cited on the `Q7` line of this module's ruling ledger and on `VIEW_SHEET_NAMES`' own note in `web_assets.py`, which are the two places the shape is declared. A test pins both citations, so a successor that changes either decision has to move the ruling reference with it rather than leave a sentence attributing its own choice to Brett. No figure, no sheet byte and no binding moves. `validate.yml`'s exact invocation at this commit: 313 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-cutting asset, serving, and compatibility changes warrant final human review.
Review details
Suppressed comments (1)
src/openxdox/serve_views.py:99
- The handler now serves both
.jsand.cssassets throughCTYPES, but its docstring still promises only an exact/views/<module>.jsresponse. Update that contract to mention a declared asset (JavaScript or CSS), otherwise this new CSS path is documented as unsupported and future changes may reintroduce a JS-only assumption.
if name not in web_assets.VIEW_ASSET_NAMES:
# Not this column's to answer. 404 rather than falling through:
# the dispatcher already decided this route is ours, and serving
# openDox's bundle from here would be the fork the seam prevents.
self.send_error(404, "not found")
return
suffix = name[name.rfind("."):]
self._serve_bytes(web_assets.module_source(name), CTYPES[suffix],
head_only)
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
…ets too Copilot round 3, the one finding of that review not already taken. `_serve_contributed_view_module` has served `.js` AND `.css` since RULED Q7 gave this column sheets, and its docstring still promised "one exact `/views/<module>.js`". A contract that documents the live CSS path as unsupported is how a later change reintroduces a JS-only assumption without contradicting anything written down — and the symptom of that regression is a stylesheet served as `text/javascript`, which a browser in standards mode DROPS with no error event and an unstyled panel as the only sign. The docstring names a declared ASSET, the two branch points carry the reason, and a test asserts the docstring mentions both suffixes. No route, no binding and no byte moves. `validate.yml`'s exact invocation at this commit: 313 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Address the moderate selector-level validation gap in gate-projects.css; documentation nits also remain.
Review details
Suppressed comments (4)
src/openxdox/serve_views.py:109
- This implementation now registers one exact route per
VIEW_ASSET_NAMESentry (six.jsmodules plus four.csssheets), but the module-level contract above still says “Six EXACT bindings” and “exactly the six paths”. That statement is now false and can make a route audit miss the stylesheet fallback; update that documentation to describe all declared assets (ten paths).
suffix = name[name.rfind("."):]
# ONE MEDIA TYPE PER SUFFIX, from the declared table: a browser in
# standards mode DROPS a stylesheet served as `text/javascript`, with no
# error event and an unstyled panel as the only symptom.
self._serve_bytes(web_assets.module_source(name), CTYPES[suffix],
head_only)
src/openxdox/serve_views.py:99
- The handler's docstring still describes only an exact
/views/<module>.jsresponse, but this changed branch also serves declared.cssassets and selects their media type. Leaving the old contract in place makes the new stylesheet fallback easy to misread; update it to describe a declared asset and its suffix-dependent response.
"""
path = self.path.split("?", 1)[0].split("#", 1)[0]
prefix = f"/{web_assets.BUNDLE_SUBDIR}/"
name = path[len(prefix):] if path.startswith(prefix) else ""
# DECLARED ASSETS, modules and sheets alike: `VIEW_ASSET_NAMES`, not
# `VIEW_MODULE_NAMES`, since RULED Q7 sends a binding's sheet with it.
if name not in web_assets.VIEW_ASSET_NAMES:
# Not this column's to answer. 404 rather than falling through:
# the dispatcher already decided this route is ours, and serving
src/openxdox/web/views/gate-projects.css:10
- The header says every rule in this sheet was left in
styles.cssverbatim, but the.projectform.projectpanel[hidden]rule is the gate half of the original mixed selector.filterpop[hidden], .projectform.projectpanel[hidden]; this sheet necessarily restates only one side. Please qualify the header so it does not contradictSTYLE_RESIDUE["mixed_blocks_handled"]and the actual extraction.
EVERY RULE HERE LEFT openDox's `src/opendox/web/styles.css` VERBATIM, and
the manifest row that carries that file declares the lines they left on
(RULED Q-L1's form, `#656` comment `5628560136`). What selects them is
src/openxdox/web/views/gate-projects.css:44
- The new stylesheet tests only count rule blocks (and spot-check the two mixed rules), so a dropped selector can be replaced by an unrelated 61st block and all of the current assertions still pass. Because this extraction is explicitly required to preserve the measured selector ownership, add a selector-level comparison against the CSS census/source (or a checked-in selector manifest) so missing or changed blocks fail validation.
.projectform.projectpanel {
position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
display: flex; flex-direction: column; gap: 6px; min-width: 260px;
background: var(--panel); border: 1px solid var(--border);
border-radius: 4px; padding: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Two moderate findings remain regarding the missing-asset diagnostic and package-glob regression guard; two documentation nits also remain.
Review details
Suppressed comments (4)
Previously missed (1) — in code that hasn't changed since the last review.
src/openxdox/serve_views.py:124
- Expanding this generator to
VIEW_ASSET_NAMESmakes the module-level contract above inaccurate:serve_views.py:20-22still says there are “Six EXACT bindings” and “exactly the six paths,” but this function now returns ten routes (six.jsplus four.css). Please update that surrounding fallback documentation so it does not describe the CSS routes as unsupported.
src/openxdox/web_assets.py:166
- The assembly now copies both JavaScript and CSS assets, but the surrounding public docs still call the package contents and helpers "modules" (including
ViewAssetError,module_source(), andserved_path()). A caller reading this API would not know that CSS is a supported asset type; please align those docstrings/module documentation with the new asset contract.
def install_view_modules(web_dir: str | Path, *,
overwrite: bool = True) -> tuple[Path, ...]:
"""THE ASSEMBLY HOOK. Copy this column's view ASSETS into openDox's bundle.
Modules AND the sheets RULED Q7 sends with them, by one act: a bundle
carrying this column's modules and not its sheets is a gate loop that
mounts unstyled, which is a half-assembly and not a lawful deployment.
src/openxdox/web_assets.py:141
- This suffix is appended for every missing asset, so a missing
gate.jsnow reports “A MISSING SHEET” and says the binding will mount unstyled even though the JavaScript module itself cannot load. Keep the generic missing-asset diagnostic for JS, or branch this detail onname in VIEW_SHEET_NAMESso the operator guidance matches the failed asset.
"MISSING SHEET is the same defect in the quieter direction: the "
"binding mounts and paints unstyled, which RULED Q7 treats as a "
"degrade and not a refusal, so the wheel is where it has to be "
"caught")
tests/test_gate_loop_views.py:762
fnmatch.fnmatchtreats/as an ordinary character, so this guard would accept a pattern such asweb/*.cssforweb/views/gate.csseven though a package-data glob atweb/*.cssdoes not cover the nested file. That can leave the wheel missing the sheet while this regression test stays green; use a path-aware match for the package-relative path.
assert any(fnmatch.fnmatch(rel, pattern) for pattern in patterns), (
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
…s path-aware COPILOT ROUND 7 ON #22 — four findings, all in the review BODY as suppressed comments with no thread, plus the census figure this column records moving under openxFactory #1068's round-5 repairs. TAKEN — THE DIAGNOSTIC SAID THE WRONG DEFECT. `module_path` appended one "A MISSING SHEET ... mounts and paints unstyled" sentence to every missing asset, so an operator hunting a missing `gate.js` was told the binding would mount unstyled — the sheet's symptom, not the module's. A missing MODULE means a binding that cannot be mounted and must not look registered; a missing SHEET is the same defect in the quieter direction. The refusal branches on `name in VIEW_SHEET_NAMES` and says the one that happened. TAKEN — THE WHEEL GUARD WAS BLIND TO THE ONE DECLARATION IT EXISTS TO CATCH. `fnmatch.fnmatch("web/views/gate.css", "web/*.css")` is TRUE — `*` there matches `/` like any other character — while a package-data pattern of `web/*.css` does NOT cover a file one directory down. The guard would have passed a declaration that leaves every sheet out of the built wheel. Matching is SEGMENT BY SEGMENT now, with `**` the only segment that spans separators, and the test asserts its own blind spot is gone: `not _covers("web/*.css", "web/views/gate.css")` beside the two that must hold. TAKEN — TWO CONTRACTS THAT STILL SAID "MODULE" AFTER RULED Q7 MADE CSS AN ASSET. `serve_views.py`'s header said "Six EXACT bindings ... exactly the six paths" while `view_module_bindings()` returns one per `VIEW_ASSET_NAMES` — ten. It now states the RULE (exact bindings, never a `/views/` prefix) and takes the count from `VIEW_ASSET_NAMES`, because a number written down twice is a number that goes stale, which is exactly what happened. `web_assets.py`'s module docstring, `ViewAssetError`, `module_source` and `served_path` now say ASSET — module or sheet — and say why the `module_*` spellings are kept: they are the seam openDox's registry and this column's route extension import, and a rename is its own act. STYLE_RESIDUE'S SHARED COUNT IS 18, NOT 21. openxFactory #1068's round 5 narrowed the census's gate-side scan again: a `.token` counts only inside a literal SHAPED like a selector with the dot in selector POSITION, and an assignment only where the target is class-named. `g` (`"e.g. Field Pilots"`, gate-projects.js), `lens` (`"gate.lens: ..."`, gate-lens.js) and `topic` (`btn.title = "commission proposal authoring for this staging topic "`, dispose.js:402) were shared only through those false reads. WHAT LEAVES IS UNCHANGED and the residue's own assertions say so: 54 exclusive classes, 59 blocks moved, 2 mixed handled, 61 in the sheets. GATE: `validate.yml`'s exact pytest line -> 313 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Update the asset-copy diagnostic to say “view assets”; the remaining test-name comments are minor nits.
Review details
Suppressed comments (3)
src/openxdox/web_assets.py:256
sourcesnow includes CSS files, so a copy failure for a stylesheet reaches this message, which still says only “view modules.” That mislabels the new asset path and conflicts with the asset-wideViewAssetErrorcontract; make the diagnostic say “view assets.”
sources = [(name, module_path(name)) for name in VIEW_ASSET_NAMES]
tests/test_gate_loop_views.py:150
- This test now installs and verifies
VIEW_ASSET_NAMES, including the four CSS files, but its name still says it places every module. Rename the test to describe assets so a future CSS-only failure is not misread as a module failure.
assert [p.name for p in placed] == list(web_assets.VIEW_ASSET_NAMES)
for path, name in zip(placed, web_assets.VIEW_ASSET_NAMES):
tests/test_gate_loop_views.py:200
- The test now verifies an undeclared stylesheet as well as undeclared JavaScript names, but the test name still says only
module. Rename it toassetso the test's scope matches the behavior it guards.
with pytest.raises(web_assets.ViewAssetError) as undeclared:
web_assets.module_path("gate-lens.css")
- Files reviewed: 9/9 changed files
- Comments generated: 0 new
- Review effort level: Lite
… guard COPILOT ROUND 7 ON #22 — three body findings, all taken; the same repair as the round before it, carried into the three places it had not reached. * THE COPY FAILURE. `sources` is `VIEW_ASSET_NAMES`, so a `shutil.copyfile` failure on a stylesheet raised a `ViewAssetError` that said the assembly step "copies this column's view modules" — the one sentence an operator reads when a read-only bundle refuses a sheet. It says ASSETS now, and names the sheets as RULED Q7's. * `test_the_assembly_hook_places_every_module_in_the_bundle` -> `..._every_asset_...`: it installs and verifies all ten of `VIEW_ASSET_NAMES`, and a CSS-only failure under the old name reads as a module failure. * `test_an_undeclared_module_name_is_refused` -> `test_an_undeclared_asset_...`: its body already asserts the refusal for `gate-lens.css` and that the wording says ASSET. No other file names either test. GATE: `validate.yml`'s exact pytest line -> 313 passed, 23 skipped. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 4 hours by commenting @sourcery-ai review. Upgrade to get a review now.
… field later openXdox-code main took two commits under this branch — #21's `opendox` pin bump to openDox-code `0b4e8bbf` (§ 3.4 slice S8 leg B) and #20's ending-replay removal — and this pull request read CONFLICTING, which runs no required check at all. ONE FILE CONFLICTED, `src/openxdox/view_extensions.py`, and only its module docstring: #21 rewrote the lateness paragraph because the pin it names is no longer behind the view registry (`view_extension` is importable at `0b4e8bbf` and `ViewBinding` takes `exports`, so the three materialization assertions RUN instead of skipping), while this branch's copy still described the old pin and added `styles` to it. MAIN'S TEXT IS TAKEN — it is the corrected provenance — and this act's sentence is folded into it one field later: the `styles` field RULED Q7 adds lands in openDox-code's own Q7 leg (#27), which this pin does not yet name, which is why `views()` FEATURE-DETECTS it and why the four contributed sheets are INERT until the pin advances again. Nothing else in this file conflicted: `STYLE_RESIDUE`, the Q7 ruling-ledger line and the `open_coupling` register merged clean, and so did `pyproject.toml`'s package data and `tests/test_gate_loop_views.py`. MEASURED ON THE MERGED TREE with `.github/workflows/validate.yml`'s own pytest invocation, run exactly as the workflow runs it after `pip install -e ".[test]"`: **372 passed, 6 skipped**. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…views()` does not feature-detect it until #22 Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Both findings of the round-1 review are accepted as FACT errors in text this pull request itself wrote, and both are corrected at the site rather than argued in a description. 1. `src/openxdox/view_extensions.py` said the new pin's `styles` field "is the one this column's `views()` feature-detects". IT IS NOT, at this head. `views()` below materializes `VIEW_BINDING_SPECS` unchanged; no spec in this tree names `styles`; no branch asks whether the installed `ViewBinding` has it. The feature detection is openXdox-code#22's `specs_for()`, which reads `dataclasses.fields(binding_cls)` and drops `styles` for an assembly whose pin is behind Q7 — measured by diffing `main` against that branch. The paragraph now says the field is carried as AVAILABLE, names #22 as where it is read, and names the review that caught the overclaim, the way this file already records the `e6cd0e8` catch one paragraph down. 2. `tests/test_gate_loop_views.py`'s bumped docstring left a 114-character line — the longest in the file, and mine: the replacement joined a sentence without re-wrapping. Re-wrapped to the file's convention; the longest line this pull request adds is now 77. Measured after both: the required invocation is 360 passed / 6 skipped, unchanged, in the same `5c137a90` venv (`direct_url.json` asserted). They are comments. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d sweep the claims the old pin left true (#24) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: openxFactory#656 comment 5699629088 (pin lockstep #3's claim, which covers this leg's pin advances) — and openxFactory#656 comment 5699629486 (Q7's own claim), because this advance is the thing openXdox-code#22 waits on. RULED: openxFactory#656 comment 5700475319 (Brett Heap, 2026-09-16) — the decisions this tree already carries and this bump does not disturb. ## What this is **One line of `pyproject.toml` moves**, and every sentence in this repository that was true only because of the line it replaced moves with it. Six files, **+42 / −24** (`git diff --shortstat main`): the pin, and five files of prose and comments. Not one line of executable code changes — the review round below is what the extra six insertions are. `pyproject.toml:106` pins `opendox` at openDox-code `5c137a9049600afbcf93b2ac26baf3d229755f95` — `main`, § 3.4 **RULED Q7** (openDox-code#27, landed 2026-09-17 16:36:31Z) — replacing `0b4e8bbf68fabfcd65d4f0d80e619c20a013e888` (§ 3.4 slice S8 leg B, openDox-code#23, pinned here by #21 on 2026-09-16). The advance crosses **two** landings, not one: * **openDox-code#24 → `0e65b5f8`** — the two intent-feed DOM suites retired at that leg (RULED openxFactory#656 comment 5656343213, citing OQ-F). * **openDox-code#27 → `5c137a90`** — § 3.4 RULED Q7: a contributed binding's CSS leaves the shared `styles.css` for the binding's own sheet. ## What the new `opendox` carries that the old one did not Measured in a venv at each pin, not read off the upstream description. `dataclasses.fields(opendox.view_extension.ViewBinding)`: ``` 0b4e8bbf: id region module entry view_class routes exports requires optional 5c137a90: id region module entry view_class routes exports requires optional styles ``` `styles` is the field this column's `GateLoopViews.views()` **feature-detects** for RULED Q7's contributed stylesheets in **openXdox-code#22** (`262ba369`, READY, and this pin is all it still needs). From the other side of the same act, openDox's own `web/styles.css` shrinks **145,821 → 139,502 bytes**: the binding CSS leaving the shared sheet. ## The measurement, which is not the expectation The leg's own required invocation — `.github/workflows/validate.yml`'s 14 files under `--noconftest` — run on **this** tree in **two fresh venvs**, one per pin, with `direct_url.json` asserted in each so every number belongs to the commit named: | | `0b4e8bbf` (old pin) | `5c137a90` (new pin) | |---|---|---| | required invocation | **360 passed, 6 skipped** | **360 passed, 6 skipped** | | `test_gate_loop_views.py` | 41 passed | 41 passed | | `test_gate_loop_probes.py` | 50 passed | 50 passed | | `test_dependency_direction.py` | 16 passed | 16 passed | Whole tree, both venvs, `pytest -q --noconftest --continue-on-collection-errors tests/`: **153 failed, 629 passed, 10 skipped, 128 errors at both pins** — character for character the same four numbers. No new failure and no new collection error anywhere in this repository; the 153 and the 128 are the BUILD arc's `doc_health` / `ideation_dashboard` blockers, identical at both. **The CI baseline says the same thing.** `validate` runs on `pull_request` only, so `main` files no run of its own; its tree's run is the one on the pull request that produced it. | run | head | reported | |---|---|---| | `35226334545` (#20 → `main` `589adee7`) | main's tree, old pin | **360 passed, 6 skipped** | | `35248736400` / `35249287252` (this PR) | new pin | **360 passed, 6 skipped** | | `35231367938` (#22, `262ba369`) | old pin + Q7 `views()` | 372 passed, 6 skipped | **360, not 372.** 372 is the shape of #22's merge-main run, and #22 is not in `main`; its `views()` is what consumes `styles`. This bump adds a field this leg does not use **yet**, and nothing on the required list depends on it until #22 lands. That is the honest shape of the act, and it is stated here so that the number in the workflow comment and the number in this description are derived the same way rather than carried. **The ratchet is re-measured, not carried.** `_back_import_census()` against the newly pinned tree returns exactly `OPENDOX_BACK_IMPORTS`' five rows, **0 import-time / 19 deferred** — unchanged now across five openDox-code landings (`a99eba03 → 8efb3cf5 → 1e469713 → 0b4e8bbf → 0e65b5f8 → 5c137a90`). ## The sweep, whole repository `git grep -c 0b4e8bbf` read **18 hits in 7 files** before this commit and **15 in 6** after. **Nine** of them stated what *is* pinned, and all nine moved: * `pyproject.toml` — the pin itself. * `src/openxdox/view_extensions.py` — the *"the pin now names"* paragraph, which also gains the `styles` field and its Q7 role. * `tests/test_dependency_direction.py` — *"the pin has moved **twice** since"* → three; *"the pin names `0b4e8bbf` as of 2026-09-16"* → `5c137a90` as of 2026-09-17; and the landing range, now five. * `tests/test_gate_loop_views.py` — two *"if `0b4e8bbf` lost `view_extension`"* readings, now the declared leg. * `tests/test_gate_loop_probes.py` — the declared-leg counterfactual. * `.github/workflows/validate.yml` — *"names `0b4e8bbf` since 2026-09-16"* → *"named `0b4e8bbf` from 2026-09-16 and names `5c137a90` from 2026-09-17"*. The **15** that stay are statements about a named commit or a dated act — the S8 pin-bump-only measurement pair at `708591b`, the retired `_REASON` wording, the dated bump narratives — and several now hold the old sha beside the new one as the chain. The workflow still parses (`yaml.safe_load`). ## Lane protocol `git diff --name-only main` returns the six files above: **no `openspec/changes/` path and no README OpenSpec Records block**, so **Rule 6's landing window does not apply** to this pull request. Measured, not assumed. Draft until its gates are green and the review rounds are answered. The lane does not merge; it hands over a READY head. ## Review rounds **Round 1 — `ea6991b` → `b21793f`.** Two findings, both FACT errors in text **this pull request wrote**, both fixed at the site rather than argued here. * *"a docstring claims `views()` already feature-detects `ViewBinding.styles`, but the implementation does not"* — **right, and it mattered.** At this head `views()` is `tuple(view_extension.ViewBinding(**spec) for spec in VIEW_BINDING_SPECS)`; no spec names `styles` and no branch asks for it. The detection is #22's `specs_for()` (`fields = {f.name for f in dataclasses.fields(binding_cls)}`), so the sentence described *that* pull request in the present tense inside *this* one. The paragraph now carries the field as AVAILABLE, names #22 as where it is read, and names the review that caught it. * *"one updated docstring line is unwrapped"* — right, and mine: the replacement joined a sentence without re-wrapping, leaving the file's longest line at 114 characters. Re-wrapped; the longest line this branch adds is now **77**. Measured after both: **360 passed / 6 skipped**, unchanged, locally and in CI (`35249287252`). They are comments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e detection becomes its plain path openXdox-code main took the pin ADVANCE under this branch — #24 moved `opendox` from openDox-code `0b4e8bbf` to `5c137a90` (§ 3.4 RULED Q7, the leg that ADDS `ViewBinding.styles`) and swept the claims the old pin left true — and this pull request read CONFLICTING, which runs no required check at all. This repository requires an up-to-date branch, so the merge is the route and never a rebase. ONE FILE CONFLICTED, `src/openxdox/view_extensions.py`, and only its module docstring — the same paragraph that conflicted at the previous bump. MAIN'S PIN AND PROVENANCE TEXT IS TAKEN: the `a99eba03` wording kept as provenance, the `0b4e8bbf` correction, the crossing of `0e65b5f8` (openDox-code#24) to `5c137a90`, and the `styles`-absent-then-present measurement. ONE SENTENCE OF MAIN'S COULD NOT SURVIVE VERBATIM — "NOTHING IN THIS FILE READS THAT FIELD YET ... The feature detection is openXdox-code#22's `specs_for()` ... that pull request is READY and this bump is the one thing it waits on" — because it is main's truth and this branch's falsehood: this branch IS that pull request. It is FOLDED, not dropped: the bump itself read nothing (the review of `ea6991b` was right to check that), and the reading is this act's. MEASURED IN A VENV AT THE PIN THIS MERGE BRINGS, with `opendox` force-reinstalled at `5c137a9049600afbcf93b2ac26baf3d229755f95` and PEP 610 `direct_url.json` read back to prove which commit is installed — `pip install -e .` does NOT refetch an unchanged-version git dependency, which is how a first reading of this measured `styles` ABSENT at a pin that carries it: dataclasses.fields(ViewBinding) -> id region module entry view_class routes exports requires optional styles specs_for(ViewBinding) -> 6 specs, five naming a sheet gate.bar ./views/gate.css gate.lens (names none: it owns no selector of its own) gate.projects ./views/gate-projects.css gate.dispose ./views/dispose.css gate.workbench.create ./views/swb.css gate.workbench.session ./views/swb.css GateLoopViews().views() materializes those six bindings with those six values, and `specs_for(<a dataclass without the field>)` still returns 6 specs of which 0 carry `styles`. THE FEATURE DETECTION STAYS AND THE BEHAVIOUR IS IDENTICAL EITHER WAY: at this pin the detection IS the plain path — `dataclasses.fields()` finds `styles`, every spec crosses whole, and the four contributed sheets are LIVE rather than inert. The drop is the branch NOT taken here, and it is kept for the reason the whole module materializes late: an ASSEMBLY chooses the `opendox` this column runs under and may pin BEHIND Q7, where handing `styles` to the constructor raises the `TypeError` `ViewContractUnsupported` names for `exports`. Deleting it would trade a branch nobody executes at this pin for a refusal under a consumer's pin, and unstyled panels are degraded where absent panels are deleted. THREE PIECES OF PROSE WERE TRUE WHEN WRITTEN AND ARE NOT NOW, corrected in this same commit because each is a claim about what is installed TODAY rather than provenance: `specs_for()`'s "RULED Q7's `styles` FIELD IS NEWER THAN THE PIN"; `test_a_pin_that_carries_styles_materializes_the_declared_sheets`'s reason for its stub ("because the pin bump that brings the real one is a later act"); and `test_the_styles_field_is_dropped_for_a_pin_that_cannot_express_it`'s "the one this leg pins today, which has no `styles`". Each keeps its old wording quoted where the wording is the provenance. BOTH STUB TESTS STAY: they drive the constructor from BOTH `ViewBinding` shapes, and the three live materialization assertions in the same file read region, routes, exports, requires and the manifest ids — never the SHEET — so the stubs are still the only thing holding the constructor's behaviour for a binding that carries the field. NOTHING ELSE CONFLICTED. `STYLE_RESIDUE`, the Q7 ruling-ledger line, the `open_coupling` register, `pyproject.toml`'s package data and the four `web/views/*.css` files merged clean, and main's own sweep of `tests/test_dependency_direction.py`, `tests/test_gate_loop_probes.py`, `tests/test_gate_loop_views.py` and `.github/workflows/validate.yml` came across untouched. MEASURED ON THE MERGED TREE with `.github/workflows/validate.yml`'s own pytest invocation, run exactly as the workflow runs it after `pip install -e ".[test]"`: **372 passed, 6 skipped**. The same invocation on `origin/main` (`b98e196`), in a separate worktree and a separate venv: **360 passed, 6 skipped** — this branch adds twelve tests and not one skip. The six skips are the pre-existing `doc_health` seam skips (`tests/test_evidence_provenance_surface_seam.py:51`, `tests/test_model_scenario_workbench_seam.py:64`, `tests/test_role_authority_projection_seam.py:46`); the three view-extension guards that skipped at `a99eba03` RUN. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ead, 53 at this branch's `.github/workflows/validate.yml`'s figure block said "the review rounds then added six guard tests to this file, so under the same invocation at the head it is 41 passed / 0 skipped". MEASURED: 41 is main's number (`git show origin/main:tests/test_gate_loop_views.py | grep -c '^def test_'` -> 41) and 53 is this branch's — RULED Q7's twelve sheet assertions join that file here, and `python -m pytest -q tests/test_gate_loop_views.py --noconftest` on this tree reads **53 passed / 0 skipped**. So "at the head" read FALSE on the branch that carries the twelve, which is the head a reader of this file has. Both numbers are named rather than one replaced, because this is the third time the sentence has moved: it was written for the pin-bump-only pair at `708591b`, labelled after the review of `a9264b8` read that pair as current, and carried across two pin bumps and this merge. The sibling figure for `tests/test_gate_loop_probes.py` (50 passed / 0 skipped) is UNCHANGED and was re-measured on this tree — this branch adds no test to that file. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) MAIN MERGED IN, NOT REBASED — ONE FILE CONFLICTED, The question the bump raises, answered by measurementIs
THE DETECTION STAYS AND THE BEHAVIOUR IS IDENTICAL EITHER WAY. At this pin the detection is the plain path: Prose the bump falsified, corrected in the merge commitThree claims were true when written and are claims about what is installed TODAY, not provenance: One figure the merge made false (
|
There was a problem hiding this comment.
🔵 Needs a closer look
Update the pin and landing-order documentation, and verify styles against the installed pinned ViewBinding.
Review details
Suppressed comments (3)
pyproject.toml:151
- The PR description still says this is step 4 with sheets inert until a later pin advance from
a99eba03, but this checkout already pinsopendoxto5c137a90inpyproject.toml:106, and the addedstylespath is therefore live rather than inert. Please update the landing-order and activation claims (or revert the pin if that sequencing is intentional), otherwise the deployment instructions misstate when these assets take effect.
openxdox = ["web/views/*.js", "web/views/*.css"]
src/openxdox/view_extensions.py:43
- The PR description says this step's sheets remain inert until a later pin advance, but this branch already pins
opendoxto5c137a90inpyproject.toml, and this new text explicitly says the four sheets are LIVE at that pin. Please update the landing-order description (or adjust the pin before merging) so it accurately states whether this PR is inert and what must land first.
dataclass has no such field. MEASURED IN A VENV AT THIS PIN: it has one, so
nothing is dropped, every binding that owns selectors declares its sheet, and
the four contributed stylesheets are LIVE rather than inert — which is what
this bump was the one thing they waited on.
tests/test_gate_loop_views.py:963
- This test only substitutes a local
StubBindingwith astylesfield, so it can pass even if the declaredopendoxpin loses that field:specs_for()would then take its compatibility branch and silently mount every panel unstyled. The existing installed-pin materialization checks onlyexports, notstyles, so please add an assertion against the pinnedViewBinding(or a sibling test using_view_extension_or_skip()) to make the required check verify that the sheets are live at this pin.
import types
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Add real pinned-path style assertions and correct stale asset-count documentation.
Review details
Suppressed comments (5)
Previously missed (1) — in code that hasn't changed since the last review.
src/openxdox/view_extensions.py:569
- The Q7 path is only exercised with a locally defined
StubBinding; the real pinned integration test still checks only region/routes/exports/requires (tests/test_gate_loop_views.py:1184-1188). This can pass even if the installedViewBindingdoes not carry or serializestyles, leaving the four links inert. Add a real-pin assertion that each materialized binding'sstylesmatches its spec (and the collected manifest if applicable), while retaining the stubs for old-pin compatibility.
.github/workflows/validate.yml:168
- This updated test-count paragraph still sits in a contract description that says the package contributes six modules and that the fallback claims six exact paths, while this PR changes the fallback and assembly to ten assets (six JS plus four CSS). The required workflow's human-readable scope is now inconsistent with what it executes; update the surrounding counts/wording.
# added six guard tests to this file, so under the same invocation it is
# 41 passed / 0 skipped at MAIN's head — and 53 passed / 0 skipped at
# THIS branch's, where RULED Q7's twelve sheet assertions join it. Both
src/openxdox/serve_views.py:132
view_module_bindings()now returns one route for all ten assets, but the extension docstring still describes folding “six static GETs” into the gate route extension. That public documentation undercounts the CSS routes introduced here; make the wording generic or update the count.
for name in web_assets.VIEW_ASSET_NAMES
src/openxdox/web_assets.py:236
- After this preflight changed from
VIEW_MODULE_NAMEStoVIEW_ASSET_NAMES, the explanation immediately above still says a later collision leaves “six” or “three” modules. The loop now covers ten assets, including CSS, so the comment misstates the partial-install/collision behavior; update it to say assets or remove the hard-coded counts.
collisions = [target_dir / name for name in VIEW_ASSET_NAMES
if (target_dir / name).exists()]
tests/test_gate_loop_views.py:952
- This new test exercises
specs_for()only with a locally defined stub, not with theViewBindingsupplied by the declared pin. The existing real materialization test checks ids, regions, routes, exports, and requires but never checksstyles, so an incorrect pin or a regression that drops the field before construction would still leave this leg green while all four sheets are inert. Add a pinned-path assertion that the real bindings carry the expected style values, while retaining this stub for old-pin compatibility.
`GateLoopViews.views()` is where `specs_for()`'s answer becomes real
bindings, and nothing ELSE drives it with a `ViewBinding` that HAS
`styles`: the three live materialization assertions below read region,
routes, exports, requires and the manifest ids — never the SHEET — and the
`specs_for` test drives the filter and not the constructor. So a regression
between the two — a spec the filter kept that the constructor drops — would
leave the sheets inert with every test green.
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
…eets made stale (Copilot round 10, five suppressed findings)
Copilot's review of `d825f68` carried five suppressed comments and no new ones.
All five are TAKEN; two of them are one finding stated twice.
1+5. THE Q7 PATH WAS DRIVEN ONLY BY STUBS (`view_extensions.py:569`,
`tests/test_gate_loop_views.py:952`). TRUE, and this branch's own docstring said
so: the live materialization assertions read region, routes, exports, requires
and the manifest ids and NEVER the sheet, so a pin that stopped carrying
`styles`, or a `specs_for()` that stopped handing it over, would leave all four
contributed sheets inert with every test green. Now asserted at the DECLARED
pin, in two places and with BOTH BRANCHES ASSERTING so nothing passes by being
skipped past:
* `test_the_pinned_binding_class_answers_for_the_sheets_or_for_none` — through
`_view_extension_or_skip()`, so an assembly that installs a DIFFERENT openDox
still classifies as it always did. Where the installed `ViewBinding` takes
`styles`, the six materialized bindings must carry this column's four sheets
at the declared positions (`gate.lens` empty, both workbench bindings on
`./views/swb.css`) and the named set must be exactly
`web_assets.VIEW_SHEET_NAMES`; where it does NOT, no binding may carry the
attribute at all — the degrade `specs_for()` exists to produce.
* `test_the_column_collects_through_openDox_beside_its_own_routes` — the same
pair of branches on the MANIFEST, which is the JSON openDox's registry
injects `<link>` elements from. A `styles` that reaches the binding and not
the manifest is four inert sheets with every other assertion green.
MEASURED at `5c137a90`: both entries carry the declared values
(`manifest["views"][0]["styles"] == "./views/gate.css"`, `gate.lens` `""`).
MUTATION-PROVED: forcing `specs_for()` down its drop path at this pin fails
both, with the messages they carry ("the pinned `ViewBinding` takes `styles`,
so every binding that owns selectors must reach this column's own sheet").
The stubs STAY, exactly as the review asked.
2. `.github/workflows/validate.yml:168` — the contract paragraph still said the
hosted fallback "claims six EXACT paths" while this PR takes it to TEN. TRUE:
`len(web_assets.VIEW_ASSET_NAMES) == 10` (six `.js`, four `.css`). The sentence
now names the SOURCE rather than a second copy of the number.
3. `src/openxdox/serve_views.py:132` — the class docstring folded "six static
GETs" while `view_module_bindings()` returns one per ASSET. TRUE, and the module
docstring one screen above already carries the rule that explains it: "a number
written down twice is a number that goes stale". The count is
`VIEW_ASSET_NAMES`' and is no longer spelled in the second place.
4. `src/openxdox/web_assets.py:236` — the collision sweep's narrative still said
"a LATER module ... this column's six", and the resolve-first narrative "three of
this column's six modules", while both loops now read `VIEW_ASSET_NAMES`. TRUE:
both re-worded to assets, each keeping its old wording as the provenance of when
it was true.
AND THE FIGURE THIS COMMIT MOVES: `tests/test_gate_loop_views.py` goes 53 -> 54
under `validate.yml`'s own invocation, so the figure block is re-stated at 54
(41 at main's head plus thirteen sheet assertions). The whole list:
**373 passed, 6 skipped** — one more than `b52fc10`'s 372, and the six are the
same pre-existing `doc_health` seam skips.
Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
There was a problem hiding this comment.
🔵 Needs a closer look
A moderate issue remains in gate.css regarding the unmeasured gatebtn-live rule.
Review details
Suppressed comments (1)
src/openxdox/web/views/gate.css:44
gatebtn-liveis not present in the pinned openDoxstyles.cssthat this PR claims to extract verbatim (the original gate block ends at.gatebar-cmd). This introduces an extra, unmeasured CSS rule outside the stated 89-line/59-block carve; either remove it or explicitly update the extraction/measurement contract and its tests to admit the new styling.
.gatebtn-live { border-color: var(--good); }
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Round 11 at The finding says " 519 lines apart. That is exactly why the census is by CLASS and never by locality — a gate-owned rule may sit anywhere in a 1,300-line sheet, and a contiguous-block reading is the failure mode the tool exists to replace. The four other measurements, each at the cited revisions:
Taking the suggestion would delete a rule the carve moved: CI at ADDENDUM 2026-09-18T09:5xZ — re-measured from scratch in fresh clones, and the rule is DECLARED BY LINE NUMBER in the landed floor. The four measurements above reproduce exactly (byte identity md5
So the rule is not "outside the stated 89-line/59-block carve" — it is line 1296 of that very list, and No edit, for the same reason as above: deleting |



Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Refs #656 (stays OPEN).
CLAIM: 5699629486 (openxFactory#656 comment 5699629486)
LANDING ORDER — this act is four pull requests and THE FIRST THREE HAVE LANDED:
chore/q7-css-extraction-declared-edits— the Q-L1 row annotation. LANDED24f7a213: it is what makes the openDox-code leg's 89 removed lines a DECLARED edit instead of anarrival-undeclared-editrefusal, and it carries the created-file admissions for both legs.build/q7-binding-stylesheets— theViewBinding.stylesslot, the<link>injection, and the 59 rule blocks leavingsrc/opendox/web/styles.css. LANDED5c137a90.b98e1965(2026-09-17):pyproject.tomlgoes0b4e8bbf→5c137a90, so the pinnedViewBindingcarriesstyles. This line read "openXdox-code'spyproject.tomlpinsopendox @ …@a99eba03, which has nostylesfield" when the order was written — two pins ago.build/q7-binding-stylesheets— the four sheets beside the modules. It FEATURE-DETECTS the pinnedViewBinding, which is why it was safe to land at any point after 1; with 3 landed and merged in here, the sheets are LIVE rather than inert.THIS PR IS STEP 4, and steps 1–3 are landed: its four
.cssfiles are created files admitted by step 1's annotation, and its sheets are live at the pin this branch now carries.MERGED MAIN
b98e196INTO THIS BRANCH atb52fc10— merge, never rebase, and this repository requires an up-to-date branch, so it is the only route. ONE FILE CONFLICTED,src/openxdox/view_extensions.py, and only its module docstring: main's pin and provenance text is TAKEN, and this act'sstylessentence is folded into it. The one sentence of main's that could not survive verbatim is "NOTHING IN THIS FILE READS THAT FIELD YET … that pull request is READY and this bump is the one thing it waits on" — main's truth and this branch's falsehood, because this branch IS that pull request; the bump itself read nothing, and the reading is this act's.RULED openxFactory#656 comment
5700475319(Brett Heap, 2026-09-16, by interactive multi-choice) — the two questions this act put to him, both answered as this act already does them, and both now CITED where the decision is stated (a decision recorded without its ruling reads, one act later, as the author's preference):stylesspecifier, href de-duplication LOAD-BEARING. Refused: a tuple-valuedstyleswith a seventh shared sheet; six sheets duplicating the eleven blocks both workbench modules name.--st-custom properties MOVE VERBATIM, with the coupling REGISTERED BY MEASUREMENT inopenxdox.view_extensions.STYLE_RESIDUE["open_coupling"], asserted by openXdox-code's suite. Refused: widening the stable surface by ruling; a second declared token family; deferring to the BUILD arc.RULED Q7 (Brett Heap, 2026-09-12,
opensoft/openxFactory#656comment5648049748): "a contributed binding's CSS lives WITH THE BINDING, in its ownsheet." Slice S5 recorded the extraction as owed and BLOCKED in
view_extensions.STYLE_RESIDUE; this is the half that receives it.THE BYTES. Four sheets under
src/openxdox/web/views/, beside the modules theybelong to, shipped by the same package-data glob (
web/views/*.cssadded) andplaced into openDox's one
--web-dirby the same assembly hook (RULED Q5).Every rule in them left openDox's
src/opendox/web/styles.cssVERBATIM.FOUR SHEETS FOR SIX BINDINGS, and both departures from one-each are MEASURED,
not chosen.
gate-lens.jsowns no selector of its own — its plan-panel controlsreuse the shell's shared
.cbtn/.lenschrome — sogate.lensnames none, andan empty sheet shipped for symmetry would be a file nothing declares. The two
workbench bindings name the SAME sheet because eleven of
swb.css's nineteenblocks are named by both modules; openDox's registry dedupes the injected
<link>by resolved href, which is what makes the shared naming correct ratherthan merely tolerated, and it is the only shape that neither duplicates those
eleven into two files (two authorities for one rule set) nor makes one optional
binding depend on another's sheet.
THE CENSUS, RE-MEASURED at openDox-code
0b4e8bbfand openXdox-code0a0265f7rather than carried forward: 54 exclusive classes over 59 rule blocks, 18
shared (18, NOT 21: Copilot's rounds 5-6 narrowed the census's gate-side scan again — an assignment counts only where the target is class-named, and a
.tokenonly inside a literal SHAPED like a selector with the dot in selector POSITION — so"e.g. Field Pilots","gate.lens: ..."andbtn.title = "... this staging topic "stop namingg,lensandtopic. WHAT LEAVES IS UNCHANGED: the same 54 gate-exclusive classes, the same 59 blocks at the same extents, the same 89 lines — a class moving from SHARED to openDox's own is a class that stays either way).STYLE_RESIDUE's51 / 24atcb343ae8reproduces EXACTLY under thesame tool's literal-only scan — and the 51 was three short, because
.dispose-accepted,.dispose-rejectedand.dispose-deferredare built by"disposebtn dispose-" + v.outcome(dispose.js:275) and no literal search cansee them.
STYLE_RESIDUEnow records the DISCHARGE, withblocked_by: Noneasserted rather than deleted, so a successor that re-blocks this work has to say
so in the test.
THE PIN GAP CLOSED WHILE THIS PR WAS OPEN, and the posture that handled it
stays.
ViewBinding.styleslanded in openDox-code's own Q7 leg (5c137a90) andopenXdox-code#24 brought it here, so
specs_for()'s feature detection is nowTHE PLAIN PATH at the declared pin rather than a fallback. Measured in a venv at
5c137a9049600afbcf93b2ac26baf3d229755f95(PEP 610direct_url.jsonread backto prove which commit is installed —
pip install -e .does not refetch anunchanged-version git dependency):
dataclasses.fields(ViewBinding)carriesstyles; all six specs cross whole; five name a sheet andgate.lensnamesnone because it owns no selector;
GateLoopViews().views()materializes thosesix bindings with those six values. THE DROP IS KEPT for the case that outlives
any one pin — an ASSEMBLY chooses the
opendoxthis column runs under and maypin BEHIND Q7, where handing
stylesto the constructor raises theTypeErrorViewContractUnsupportednames forexports. Against aViewBindingwithoutthe field,
specs_for()still returns six specs of which none carries it andthe column mounts unstyled rather than refusing. The behaviour is identical
either way: same code, one branch not taken. Unstyled panels are degraded and
absent panels are deleted —
gate.dispose's ownrequiresnote's argument.exportsis deliberately NOT treated this way: an undeclared reach is a refusalRULED Q2 asks for, so a pin that cannot express it stays
ViewContractUnsupported.THE HOSTED FALLBACK carries the sheets too (
VIEW_ASSET_NAMES), withtext/cssbeside
text/javascript: a browser in standards mode DROPS a stylesheet servedas anything else, and the symptom is an unstyled panel with no error event at
all.
THE PROOF, on
validate.yml's existing list: every declared sheet ships andevery shipped sheet is declared, each binding names the sheet carrying its own
selectors, no contributed sheet DECLARES an
--st-*token (it reads three andwrites none —
views/display.js'sapplyTokensis the one authority), thenon-token coupling is COUNTED and pinned at thirteen, no sheet reaches a remote
asset or
@import, and the pin gap is driven against two stubViewBindingshapes so both pins are asserted from either, AND — since Copilot's round 10 —
at the DECLARED PIN itself, in two places and with both branches asserting: the
six materialized bindings must carry this column's four sheets where the
installed
ViewBindingtakesstylesand must carry no such attribute where itdoes not, and the same pair of branches is asserted on the MANIFEST, which is
the JSON openDox's registry injects
<link>elements from. Mutation-proved:forcing
specs_for()down its drop path at this pin fails both.validate.yml's exact invocation at this commit (62ab031): 373 passed, 6skipped. The same invocation on
origin/mainb98e196, in a separateworktree and a separate venv: 360 passed, 6 skipped — thirteen tests added
here and not one skip; the six are the pre-existing
doc_healthseam skips(
test_evidence_provenance_surface_seam.py:51,test_model_scenario_workbench_seam.py:64,test_role_authority_projection_seam.py:46). This figure read "313 passed, 23skipped" at the pin and the
validate.ymllist this branch opened on; both havemoved since.
WHAT THIS DOES NOT DO. It changes no module byte and no binding's routes,
exports or
requires. This sentence read "the sheets are inert untilopenDox-code's Q7 leg lands and this leg's pin advances"; both landed
(
5c137a90, openXdox-code#24) and the merge at this head is what brings the pinhere, so the sheets are LIVE — and no byte of this column's modules changed to
make them so. The declared-edit window for the 89 carve-commit
lines the blocks left on, and the admissions for the four created
.cssfiles,are openxFactory's row annotation, which lands FIRST (RULED Q-L1,
#656comment
5628560136).🤖 Generated with Claude Code
Summary by Sourcery
Ship the gate loop’s contributed stylesheets alongside their owning bindings across packaged, assembled, and hosted deployments.
New Features:
Bug Fixes:
Enhancements:
Build:
CI:
Deployment:
Tests: