Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
708591b
Bump opendox pin to openDox-code 0b4e8bbf (§ 3.4 slice S8 leg B lande…
brettheap Sep 16, 2026
4a7ccb2
Copilot round 1: a missing bundle or registry at the DECLARED pin now…
brettheap Sep 16, 2026
7bd76b1
Copilot round 2: unknown provenance FAILS on the required path, the p…
brettheap Sep 16, 2026
296bda7
Copilot round 3: the PEP 610 parser gets its own tests, and three doc…
brettheap Sep 16, 2026
42741fd
SonarCloud, advisory: split three composite assertions in the new pro…
brettheap Sep 16, 2026
7c0a3b6
Copilot at 42741fd: a 40-character non-hex id is no longer a commit, …
brettheap Sep 16, 2026
27a89fd
Review at 7c0a3b6: a test that asserted source text is gone, the unin…
brettheap Sep 16, 2026
4652d55
Cite RULED openxFactory#656 comment 5700475319 where each decision is…
brettheap Sep 16, 2026
a256f68
Re-wrap the ruling citations and drop the last unprovable "older"
brettheap Sep 16, 2026
b177eef
Normalize a commit id's case before comparing it, the last open item …
brettheap Sep 16, 2026
f6f1b99
Review at 27a89fd: one table, one home — every paraphrase of the guar…
brettheap Sep 16, 2026
399e2a9
Review at f6f1b991: the two FAILURES are two different claims, and de…
brettheap Sep 16, 2026
8b23f6f
Review at 399e2a9: the required check's scope stated where a reader s…
brettheap Sep 16, 2026
24cd5f2
Review at 8b23f6f: the three CALL SITES that route a missing subject …
brettheap Sep 16, 2026
cb84001
Review at 24cd5f2: the CI failure names WHICH side it could not read,…
brettheap Sep 16, 2026
d8e8605
Review at cb84001: both new caller branches take their ruled SKIP too…
brettheap Sep 16, 2026
b22a6fd
Review at d8e8605 (approval recommended): the two wording nits, and t…
brettheap Sep 16, 2026
a0eed16
Review at b22a6fd: two section headers that counted, and both counts …
brettheap Sep 16, 2026
e6cd0e8
Review at a0eed16: the parser now asserts WHICH distribution it asked…
brettheap Sep 16, 2026
fd3af6a
Review at e6cd0e8: four sentences that promised a SKIP where the guar…
brettheap Sep 16, 2026
de7d966
Review at fd3af6a: the three counts the round before it made stale, e…
brettheap Sep 16, 2026
8b9ece1
Review at de7d966: the regex MISS in declared_pin() is driven at last…
brettheap Sep 16, 2026
2dfd669
Review at 8b9ece1: a 40-hex PREFIX of a longer ref is not a pin, and …
brettheap Sep 16, 2026
a9264b8
Review at 2dfd669: a positive terminator for the pin, because refusin…
brettheap Sep 16, 2026
52453af
Review at a9264b8: declared_pin() PARSES pyproject.toml, because four…
brettheap Sep 16, 2026
18e8c12
Review at 52453af: an SSH declaration has an `@` in the authority, an…
brettheap Sep 16, 2026
0e3922d
Review at 18e8c12: a marker that is FALSE is not a declaration, and a…
brettheap Sep 16, 2026
9ff630d
Review at 0e3922d: the requirement is PARSED by packaging, and the pi…
brettheap Sep 16, 2026
e92fb06
Review at 9ff630d: the CI failure stops blaming the file for four sta…
brettheap Sep 16, 2026
9ab8521
Review at e92fb06: pip's direct-reference FRAGMENT is legal after the…
brettheap Sep 16, 2026
5285cf2
Review at 9ab8521: the provenance check covers the INSTALLED side too…
brettheap Sep 16, 2026
ca327c2
Review at 5285cf2: the DEFAULT require() path is driven, and two inve…
brettheap Sep 16, 2026
894781e
Review at ca327c2: a FAIL reached during an import is a collection er…
brettheap Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 228 additions & 14 deletions .github/workflows/validate.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ requires-python = ">=3.12"
# PR) — and not an arbitrary choice: `Draft202012Validator`, the name
# `gate_console.py:563` imports, was added in jsonschema 4.18.0.
dependencies = [
"opendox @ git+https://github.com/opensoft/openDox-code@a99eba03e31a0aee1cc15a061fdf718cc88a2c44",
"opendox @ git+https://github.com/opensoft/openDox-code@0b4e8bbf68fabfcd65d4f0d80e619c20a013e888",
"PyYAML>=6.0",
"jsonschema>=4.18",
]
Expand Down
33 changes: 27 additions & 6 deletions src/openxdox/view_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,33 @@
repository that PINS openDox conforms without inheriting from it.

WHY THE BINDINGS ARE DECLARED AS DATA AND MATERIALIZED LATE. This leg pins
`opendox` by commit (`pyproject.toml`), and the pinned commit is older than the
view registry itself — `opendox.view_extension` does not exist there, and the
`exports` field RULED Q2 adds is newer still, landing in openDox-code's own S5
leg. Importing either at module-import time would make this module unimportable
under its own declared dependency and would put this leg's `validate` red for a
reason that has nothing to do with this column. So `VIEW_BINDING_SPECS` below is
`opendox` by commit (`pyproject.toml`). Until 2026-09-16 that pin named
`a99eba03` and this paragraph said the pinned commit "is older than the view
registry itself — `opendox.view_extension` does not exist there, and the
`exports` field RULED Q2 adds is newer still". THAT IS NO LONGER TRUE, and the
old wording is quoted here as provenance rather than deleted: the pin now names
openDox-code#23 (`0b4e8bbf`, § 3.4 slice S8 leg B), where `view_extension` is
importable and `ViewBinding` takes `exports` — measured, and the three
materialization assertions in `tests/test_gate_loop_views.py` run and pass
against it instead of skipping.

THE LATENESS STAYS, for the reason that outlives any one pin: an ASSEMBLY
chooses the `opendox` this module runs under, not this file, and a consumer
that pins an openDox behind the view contract must still be able to IMPORT this
module — an import-time reach would make it unimportable under THAT consumer's
pin and would put its `validate` red for a reason that has nothing to do with
this column. `ViewContractUnsupported` below is what names that condition where
`GateLoopViews.views()` CATCHES it, and that is two shapes, not three: the
`view_extension` module absent (ImportError) and a `ViewBinding` that does not
take this column's fields (TypeError). A module that carries no `ViewBinding` at
all still raises `AttributeError` at the constructor below — the class docstring
names that assembly as unsupported, and the runtime does not yet classify it.
The TEST-time guard does (`tests/test_gate_loop_views.py::_view_extension_or_skip`,
which reads the class with `getattr` and hands the shape to
`tests/opendox_bundle.py::_absent`); the runtime catch is registered in this pull
request's "What this does NOT do" rather than smuggled into a pin bump. Caught at
the review of `e6cd0e8` on openXdox-code#21, which was right that these lines
promised more than the code below does. So `VIEW_BINDING_SPECS` below is
plain data — the same JSON shape the manifest crosses the process boundary as —
and `GateLoopViews.views()` materializes it through whatever `opendox` the
ASSEMBLY installed, at the one moment an assembly exists to have installed one.
Expand Down
576 changes: 548 additions & 28 deletions tests/opendox_bundle.py

Large diffs are not rendered by default.

38 changes: 30 additions & 8 deletions tests/test_dependency_direction.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,15 @@ def test_every_deferred_cross_package_reach_out_of_src_is_known() -> None:
# as `serve_gate.py` contributes its routes to the `route_extension` one, so
# it belongs on this list for the same reason: a contribution surface that
# stops consuming openDox has forked it. Its reach is DEFERRED (inside
# `GateLoopViews.views()`) and deliberately so — this leg pins an `opendox`
# older than the view registry itself, and an import-time reach would make
# the module unimportable under its own declared dependency. The census
# below counts a deferred reach, which is what makes that lawful here.
# `GateLoopViews.views()`) and deliberately so. This comment used to give
# the reason as "this leg pins an `opendox` older than the view registry
# itself" — true of `a99eba03`, no longer true since the 2026-09-16 bump to
# `0b4e8bbf` (openDox-code#23), where `opendox.view_extension` is
# importable. The deferral stays on the reason that outlives any one pin: an
# ASSEMBLY chooses the openDox this module runs under, and an import-time
# reach would make the module unimportable under a consumer pinned behind
# the view contract. The census below counts a deferred reach, which is what
# makes that lawful here.
"src/openxdox/view_extensions.py",
)

Expand Down Expand Up @@ -317,10 +322,27 @@ def test_the_doc_health_implementation_surface_is_exactly_declared() -> None:
#: The openDox -> openXdox back-imports, MEASURED at the commit this leg pins.
#:
#: LOWERED TO ZERO AT IMPORT TIME BY BUILD SLICE 2b — `opensoft/openDox-code`
#: #10, which this file's pin now names (`pyproject.toml`). **0 import-time /
#: 19 deferred over five modules**, from 9 / 19 at the head of that slice and
#: from the 13 / 19 over six modules that the census RULED 5626260214 called
#: "the 13-line openDox->openXdox inversion" stood at.
#: #10. **0 import-time / 19 deferred over five modules**, from 9 / 19 at the
#: head of that slice and from the 13 / 19 over six modules that the census
#: RULED 5626260214 called "the 13-line openDox->openXdox inversion" stood at.
#:
#: THE PIN HAS MOVED TWICE SINCE — two bumps of THIS file's own declaration,
#: `0f1f2e59` -> `a99eba03` (openXdox-code#15) and `a99eba03` -> `0b4e8bbf`
#: (this act) — AND THE TABLE HAS NOT. Measured, not assumed. (Two pin bumps,
#: three upstream landings: they are different counts of different things, and
#: both are stated here so neither can be read as the other.)
#: This note used to say slice 2b's merge was the commit "this file's pin now
#: names"; that stopped being true at openXdox-code#15 (`0f1f2e59` ->
#: `a99eba03`) and the sentence was not followed, which is the stale-claim class
#: this repository has since had to sweep for. The pin names `0b4e8bbf`
#: (openDox-code#23, § 3.4 slice S8 leg B) as of 2026-09-16, and
#: `_back_import_census()` recomputed against THAT tree returns exactly the five
#: rows below. THE RANGE THAT COVERS IS THREE openDox-code LANDINGS, not two, and
#: naming them is the correction Copilot's round-1 review of openXdox-code#21
#: asked for: from `a99eba03` (#11, § 4.3) this pin crosses `8efb3cf5` (#20,
#: § 3.4 slice S5 leg B), `1e469713` (#21, § 3.4 slice S7) and `0b4e8bbf` (#23,
#: § 3.4 slice S8 leg B). The ratchet neither fell nor rose across any of them,
#: and the numbers here are that measurement, not a carried-forward memory.
#:
#: THE WHOLE OF THE INVERSION IS GONE, which is worth stating plainly because
#: this table has never been able to say it before: no module of the pinned
Expand Down
Loading
Loading