Skip to content

§ 3.4 RULED Q7: the gate loop's stylesheets arrive with the bindings that own them - #22

Merged
brettheap merged 13 commits into
mainfrom
build/q7-binding-stylesheets
Sep 18, 2026
Merged

brettheap merged 13 commits into
mainfrom
build/q7-binding-stylesheets

Conversation

@brettheap

@brettheap brettheap commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. openxFactory #1068 chore/q7-css-extraction-declared-edits — the Q-L1 row annotation. LANDED 24f7a213: it is what makes the openDox-code leg's 89 removed lines a DECLARED edit instead of an arrival-undeclared-edit refusal, and it carries the created-file admissions for both legs.
  2. openDox-code DISPLAY: the completion stage's item nouns read "implemented item(s)" (RULED openxFactory#656 comment 5801057769) #27 build/q7-binding-stylesheets — the ViewBinding.styles slot, the <link> injection, and the 59 rule blocks leaving src/opendox/web/styles.css. LANDED 5c137a90.
  3. the pin advance — openXdox-code Bump opendox pin to openDox-code 5c137a90 (§ 3.4 RULED Q7 landed), and sweep the claims the old pin left true #24, LANDED b98e1965 (2026-09-17): pyproject.toml goes 0b4e8bbf → 5c137a90, so the pinned ViewBinding carries styles. This line read "openXdox-code's pyproject.toml pins opendox @ …@a99eba03, which has no styles field" when the order was written — two pins ago.
  4. openXdox-code build/q7-binding-stylesheets — the four sheets beside the modules. It FEATURE-DETECTS the pinned ViewBinding, 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 .css files are created files admitted by step 1's annotation, and its sheets are live at the pin this branch now carries.

MERGED MAIN b98e196 INTO THIS BRANCH at b52fc10 — 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's styles sentence 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):

  1. FOUR sheets for six bindings stands — a single styles specifier, href de-duplication LOAD-BEARING. Refused: a tuple-valued styles with a seventh shared sheet; six sheets duplicating the eleven blocks both workbench modules name.
  2. The 13 NON---st- custom properties MOVE VERBATIM, with the coupling REGISTERED BY MEASUREMENT in openxdox.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#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, 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 .token only inside a literal SHAPED like a selector with the dot in selector POSITION — so "e.g. Field Pilots", "gate.lens: ..." and btn.title = "... this staging topic " stop naming g, lens and topic. 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'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 CLOSED WHILE THIS PR WAS OPEN, and the posture that handled it
stays. ViewBinding.styles landed in openDox-code's own Q7 leg (5c137a90) and
openXdox-code#24 brought it here, so specs_for()'s feature detection is now
THE PLAIN PATH at the declared pin rather than a fallback. Measured in a venv at
5c137a9049600afbcf93b2ac26baf3d229755f95 (PEP 610 direct_url.json read back
to prove which commit is installed — pip install -e . does not refetch an
unchanged-version git dependency): dataclasses.fields(ViewBinding) carries
styles; all six specs cross whole; five name a sheet and gate.lens names
none because it owns no selector; GateLoopViews().views() materializes those
six bindings with those six values. THE DROP IS KEPT for the case that outlives
any one pin — 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. Against a ViewBinding without
the field, specs_for() still returns six specs of which none carries it and
the 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 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 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, 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 ViewBinding takes styles and must carry no such attribute where it
does 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, 6
skipped
. The same invocation on origin/main b98e196, in a separate
worktree and a separate venv: 360 passed, 6 skipped — thirteen tests added
here and not one skip; the six are the pre-existing doc_health seam 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, 23
skipped" at the pin and the validate.yml list this branch opened on; both have
moved 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 until
openDox-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 pin
here, 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 .css files,
are openxFactory's row annotation, which lands FIRST (RULED Q-L1, #656
comment 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:

  • Bundle each contributed view binding’s stylesheet with the package and associate bindings with four shared or dedicated CSS assets.
  • Serve and assemble JavaScript and CSS view assets through both the bundled deployment path and the hosted fallback, using the appropriate content types.

Bug Fixes:

  • Prevent stylesheet assets from being omitted during package installation or hosted fallback serving, which previously could leave mounted panels unstyled.

Enhancements:

  • Support bindings against both current and older ViewBinding contracts by feature-detecting the optional styles field and degrading to unstyled panels when unavailable.
  • Add coverage for asset declarations, package data, stylesheet ownership, CSS safety, fallback MIME types, assembly behavior, and style-contract compatibility.

Build:

  • Include web/views/*.css in the packaged distribution data.

CI:

  • Expand validation checks to cover the four contributed stylesheets and the updated asset and binding contracts.

Deployment:

  • Copy all declared CSS and JavaScript assets into the assembled web bundle and expose exact routes for each hosted asset.

Tests:

  • Increase the gate-loop view validation coverage with stylesheet census, coupling, delivery, and compatibility assertions.

…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>
Copilot AI lite review requested due to automatic review settings September 16, 2026 15:02
@sourcery-ai

sourcery-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Reviewer's Guide

Implements 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 serving

flowchart 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"]
Loading

File-Level Changes

Change Details Files
Ships contributed binding stylesheets as declared package assets alongside the view modules.
  • Adds four CSS sheets for the gate, projects, dispose, and shared workbench bindings.
  • Adds CSS files to setuptools package data and validates the on-disk asset set against the declared set.
  • Copies modules and stylesheets together into the assembled web bundle.
pyproject.toml
src/openxdox/web_assets.py
src/openxdox/web/views/gate.css
src/openxdox/web/views/gate-projects.css
src/openxdox/web/views/dispose.css
src/openxdox/web/views/swb.css
Associates binding declarations with their owning stylesheets while remaining compatible with the older pinned ViewBinding API.
  • Adds styles paths to five bindings, intentionally leaves gate.lens without a sheet, and shares swb.css between the two workbench bindings.
  • Feature-detects the styles dataclass field and drops only that field for older pins; exports remains a required compatibility contract.
  • Updates STYLE_RESIDUE with the measured extraction census, coupling counts, and discharge metadata.
src/openxdox/view_extensions.py
tests/test_gate_loop_views.py
Extends the hosted fallback route to serve stylesheet assets with the correct media type.
  • Routes all declared JavaScript and CSS assets through the fallback handler.
  • Maps .js to text/javascript and .css to text/css.
  • Tests exact route coverage and content-type selection.
src/openxdox/serve_views.py
tests/test_gate_loop_views.py
Adds validation for stylesheet ownership, safety, and compatibility guarantees.
  • Checks every declared sheet is packaged and every packaged sheet is declared.
  • Checks bindings name the expected sheets, sheets do not declare --st-* tokens, and coupling counts remain fixed.
  • Rejects remote assets and @import usage and tests both old and new ViewBinding shapes.
tests/test_gate_loop_views.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 while module_path() fails in the deployed package and all four stylesheets are missing; add a wheel/install check that asserts every VIEW_SHEET_NAMES file 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_module is not exercised: this assertion only checks the CTYPES table, while the handler probe below requests gate.js and never a .css asset. A regression could therefore still pass while serving a stylesheet with the JS content type (or wrong bytes); add a /views/gate.css probe and assert module_source("gate.css") with CSS_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 @IMPORT or URL(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.

Comment thread src/openxdox/serve_views.py Resolved
…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>
Copilot AI review requested due to automatic review settings September 16, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 as module(s). When overwrite=False finds an existing gate.css, that message is misleading; make it say asset(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>
Copilot AI review requested due to automatic review settings September 16, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 styles is not exercised by the suite: the real test_the_facet_conforms_to_the_view_extension_protocol is skipped on this leg's old pin and only asserts id/routes/exports/requires when it runs, while test_the_styles_field_is_dropped_for_a_pin_that_cannot_express_it calls specs_for() against stubs rather than ViewBinding(**spec). Add a materialization assertion (or a stubbed ViewBinding integration 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-cactions deliberately 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-chelp and .swb-creq were 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>
Copilot AI review requested due to automatic review settings September 16, 2026 15:51
brettheap and others added 2 commits September 16, 2026 15:53
…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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 .js and .css assets through CTYPES, but its docstring still promises only an exact /views/<module>.js response. 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

Copilot AI review requested due to automatic review settings September 16, 2026 16:02
…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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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_NAMES entry (six .js modules plus four .css sheets), 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>.js response, but this changed branch also serves declared .css assets 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.css verbatim, 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 contradict STYLE_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

Copilot AI review requested due to automatic review settings September 16, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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_NAMES makes the module-level contract above inaccurate: serve_views.py:20-22 still says there are “Six EXACT bindings” and “exactly the six paths,” but this function now returns ten routes (six .js plus 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(), and served_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.js now 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 on name in VIEW_SHEET_NAMES so 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.fnmatch treats / as an ordinary character, so this guard would accept a pattern such as web/*.css for web/views/gate.css even though a package-data glob at web/*.css does 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>
Copilot AI review requested due to automatic review settings September 16, 2026 17:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

  • sources now 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-wide ViewAssetError contract; 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 to asset so 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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The changes span assets, runtime compatibility, deployment, and validation, warranting final human review.

Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap marked this pull request as ready for review September 16, 2026 22:45

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Copilot AI review requested due to automatic review settings September 17, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

brettheap added a commit that referenced this pull request Sep 17, 2026
…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>
brettheap added a commit that referenced this pull request Sep 17, 2026
…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>
Copilot AI review requested due to automatic review settings September 17, 2026 17:16
…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>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

MAIN MERGED IN, NOT REBASED — 262ba369 → b52fc107 → d825f68e. openXdox-code#24 landed the pin advance 0b4e8bbf → 5c137a90 (openDox-code#27's ViewBinding.styles), this PR went CONFLICTING/DIRTY, and this repository requires an up-to-date branch, so git fetch && git merge origin/main is the route and a rebase never is.

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 whole (the a99eba03 wording kept as provenance, the 0b4e8bbf correction, the crossing of 0e65b5f8 (openDox-code#24) to 5c137a90, the 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, and the reading is this act's.

The question the bump raises, answered by measurement

Is specs_for()'s feature detection still needed now that the pin carries the field, or does it become the plain path? Measured in a venv at 5c137a9049600afbcf93b2ac26baf3d229755f95, with 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:

measurement result
dataclasses.fields(ViewBinding) id region module entry view_class routes exports requires optional styles
specs_for(ViewBinding) 6 specs, all crossing whole; five name a sheet — gate.bar ./views/gate.css, gate.projects ./views/gate-projects.css, gate.dispose ./views/dispose.css, gate.workbench.create and gate.workbench.session ./views/swb.css; gate.lens names none (it owns no selector)
GateLoopViews().views() materializes those six bindings with those six values — the sheets are LIVE
specs_for(<dataclass without the field>) 6 specs, 0 carrying styles — the drop path intact

THE 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, one branch not taken. The drop is kept for the case that outlives any one pin — 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; unstyled panels are degraded, absent panels are deleted.

Prose the bump falsified, corrected in the merge commit

Three claims were true when written and are claims about what is installed TODAY, not 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: the three live materialization assertions read region, routes, exports, requires and the manifest ids — never the SHEET — so the stubs are still the only thing driving the constructor from BOTH ViewBinding shapes.

One figure the merge made false (d825f68e)

validate.yml's figure block said tests/test_gate_loop_views.py is "41 passed / 0 skipped" "at the head". 41 is MAIN's number (git show origin/main:tests/test_gate_loop_views.py | grep -c '^def test_' → 41); on this branch the same invocation reads 53 passed / 0 skipped, because RULED Q7's twelve sheet assertions live in that file. Both numbers are named now rather than one replaced. The sibling probes figure (50 / 0) was re-measured on this tree and is unchanged — this branch adds no test there.

Proof at this head

.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 — twelve tests added here and not one skip. The six are the pre-existing doc_health seam skips (test_evidence_provenance_surface_seam.py:51, test_model_scenario_workbench_seam.py:64, test_role_authority_projection_seam.py:46); the three view-extension guards that skipped at a99eba03 RUN. CI at d825f68e: validate SUCCESS, SonarCloud quality gate passed, review threads 1 / 0.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 pins opendox to 5c137a90 in pyproject.toml:106, and the added styles path 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 opendox to 5c137a90 in pyproject.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 StubBinding with a styles field, so it can pass even if the declared opendox pin loses that field: specs_for() would then take its compatibility branch and silently mount every panel unstyled. The existing installed-pin materialization checks only exports, not styles, so please add an assertion against the pinned ViewBinding (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

Copilot AI review requested due to automatic review settings September 17, 2026 17:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 installed ViewBinding does not carry or serialize styles, leaving the four links inert. Add a real-pin assertion that each materialized binding's styles matches 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_NAMES to VIEW_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 the ViewBinding supplied by the declared pin. The existing real materialization test checks ids, regions, routes, exports, and requires but never checks styles, 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>
Copilot AI review requested due to automatic review settings September 17, 2026 17:42
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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-live is not present in the pinned openDox styles.css that 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

@brettheap

brettheap commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Round 11 at 62ab031, one suppressed finding — gate.css:44's .gatebtn-live. REFUTED BY MEASUREMENT; no edit.

The finding says "gatebtn-live is not present in the pinned openDox styles.css that this PR claims to extract verbatim (the original gate block ends at .gatebar-cmd)". It is present. The premise is a LOCALITY read, and this rule does not sit next to the gate block:

$ git -C openDox-code show 0b4e8bbf:src/opendox/web/styles.css | grep -n 'gatebar-cmd\|gatebtn-live'
798:.gatebar-cmd { font-family: var(--mono); … }
1317:.gatebtn-live { border-color: var(--good); }

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:

  1. It is in the pinned census. openxFactory tests/carve_manifest/fixtures/q7-css-census-0b4e8bbf-0a0265f7.json carries it twice — gatebtn-live is one of the 54 gate-exclusive classes, and one of the 59 exclusive blocks is exactly {"selector": ".gatebtn-live", "at_rule": null, "start": 1317, "end": 1317, "reads_st_token": false, "declares_st_token": false}. So it is inside the 59-block / 89-line window, not outside it.
  2. It LEFT. openDox-code#27 (5c137a90) removes that line: git diff 0b4e8bbf 5c137a90 -- src/opendox/web/styles.css contains -.gatebtn-live { border-color: var(--good); }, and at 5c137a90 the file carries neither .gatebtn-live nor .gatebar-cmd.
  3. It arrived VERBATIM. styles.css:1317 at 0b4e8bbf and src/openxdox/web/views/gate.css:44 on this branch are byte-identical: .gatebtn-live { border-color: var(--good); }.
  4. Its one coupling is the REGISTERED one. var(--good) is one of the 13 non---st- custom properties the four sheets read — measured on this tree, ['--blocked', '--blocked-bg', '--border', '--faint', '--faint-ink', '--good', '--good-bg', '--ink', '--mono', '--muted', '--panel', '--picked', '--sans'], exactly the number STYLE_RESIDUE["open_coupling"]["non_token_custom_properties_read"] pins and test_the_non_token_coupling_is_the_number_the_residue_records asserts. That register exists because RULED #656 comment 5700475319 ordered those 13 MOVED VERBATIM with the coupling registered by measurement.

Taking the suggestion would delete a rule the carve moved: .gatebtn-live would then exist in neither repository, the gate's live-session button would lose its border colour, and this leg's own suite would go red on the sheets-carry-the-blocks-the-residue-counts assertion. So: no edit, and the finding is answered where it was raised rather than folded into a head move.

CI at 62ab031: validate SUCCESS (17:43:32Z), SonarCloud success, review threads 1 / 0. validate.yml's own invocation locally: 373 passed, 6 skipped.


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 9e179851d8d0607a0a102b0f59a4c5aa on both sides; styles.css at the PINNED 5c137a90 carries zero occurrences of gatebtn-live, gatebar-cmd or even gatebtn — every one of those gate rules left). One citation is added, because "declared" is checkable at a stronger place than the census:

docs/opendox-carve-manifest.yaml on openxFactory main (landed as #1068 → 24f7a213) carries the row scripts/ideation_dashboard/web/styles.css → opendox_code:src/opendox/web/styles.css, disposition: moved_with_declared_edit, whose second edit is noted "§ 3.4 RULED Q7 — THE CSS EXTRACTION … 59 rule blocks — 89 carve-commit lines, 88 of them DELETED and one REPLACED IN PLACE — leave this file for the four sheets openXdox-code ships beside the modules that own them". Its lines: list has 89 entries, and at the carve commit b075fd91dc8fced8e1373825ba80220c33536bae:

scripts/ideation_dashboard/web/styles.css:777   .gatebar-cmd  { … }     -> 777  in the declared 89: True
scripts/ideation_dashboard/web/styles.css:1296  .gatebtn-live { … }     -> 1296 in the declared 89: True

So the rule is not "outside the stated 89-line/59-block carve" — it is line 1296 of that very list, and .gatebar-cmd, the rule the review read the gate block as ending at, is line 777 of the same list. The two are 519 lines apart in the source and adjacent in gate.css because RULED Q7 groups by the BINDING that owns the selectors, not by where they happened to sit in a 2,574-line sheet. scripts/verify-carve-arrival.py --destination opendox_code reads that list, which is why openDox-code#27 could land its removal at all: an undeclared line there is an arrival-undeclared-edit refusal.

No edit, for the same reason as above: deleting .gatebtn-live would leave a DECLARED carve line arriving nowhere.

@brettheap
brettheap merged commit fa792cb into main Sep 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants