Skip to content

Bump opendox pin to openDox-code 0b4e8bbf (§ 3.4 slice S8 leg B landed), and sweep the claims the old pin left true - #21

Merged
brettheap merged 33 commits into
mainfrom
chore/bump-opendox-pin-0b4e8bbf
Sep 17, 2026
Merged

brettheap merged 33 commits into
mainfrom
chore/bump-opendox-pin-0b4e8bbf

Conversation

@brettheap

@brettheap brettheap commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Refs opensoft/openXfactory#656 (stays OPEN).
CLAIM: openxFactory#656 comment 5699629088

Both of this act's open questions are RULED

RULED openxFactory#656 comment 5700475319 (Brett Heap, 2026-09-16, by interactive multi-choice). Brett Heap was asked both by interactive multi-choice and answered both
with the option this pull request had already taken, so nothing about the tree
changes — what changes is that each decision now names the ruling at the place
the decision is made
, not only in a description that will not travel with the
file.

  • "tests/test_doxbench_mutation_boundary.py leaves validate.yml's list" →
    (a) DROP IT, "with the measurement and both grounds in the workflow comment;
    it returns with the BUILD arc beside test_doxbench_turns.py"
    . Cited in the
    validate.yml block that drops it — which already carried the measurement (the
    collection error at gate_console.py:63) and both grounds (the BUILD arc's
    defect under RULED Q-L8 (b′); the file being an arrived carve row whose edits are
    declared at openxFactory).
  • "the three skip guards with stale reasons" → (a) KEEP the guards, CORRECT
    their reasons
    , "they test the ASSEMBLED openDox; a consumer may pin behind the
    view contract"
    . Cited at all three sites that hold that decision:
    tests/opendox_bundle.py's "A SKIP STAYS" paragraph,
    tests/test_gate_loop_views.py::_view_extension_or_skip, and
    tests/test_gate_loop_probes.py's bundle fixture.

Measured after the citations went in: 332 passed / 6 skipped, unchanged — they
are comments.

What this is

One line of pyproject.toml moves; every sentence in this repository that was
true only because of the line it replaced moves with it; and — because the review
rounds below showed that the skips those sentences describe could now hide a
regression instead of reporting one — the guard behind them learns to tell the
declared pin from somebody else's, with 43 tests holding it there.

That figure is measured, not estimated, and it read 15 until the review at
f6f1b991 caught it disagreeing with validate.yml's own record of the same
thing (thread PRRT_kwDOUPv7_s6jBAXA, resolved). The workflow was right and this
line was stale; both now derive it the same way:

git diff main -- tests/test_gate_loop_probes.py \
                 tests/test_gate_loop_views.py | grep -c '^+def test_'  ->  43

Seven files, +1914 / −86 (git diff --shortstat main), and the shape of that
is worth stating up front: the
bump itself is one line, the sweep is prose in six files, and everything else is
what six review rounds asked for and this description records round by round.

pyproject.toml:106 pins opendox at openDox-code
0b4e8bbf68fabfcd65d4f0d80e619c20a013e888 — main, § 3.4 slice S8 leg B
(openDox-code#23, landed 2026-09-16 01:23Z) — replacing
a99eba03e31a0aee1cc15a061fdf718cc88a2c44 (§ 4.3's lazy proxy, openDox-code#11,
pinned here by #15 on 2026-09-11).

Why it was owed, in this issue's own record

Two LANDED notes on openxFactory#656 register this bump as outstanding:

  • 5656797299 (§ 3.4 slice S5, item 4) — this leg's three materialization
    assertions SKIP rather than run until the pin names an openDox carrying the
    view registry.
  • 5689609863 (pin lockstep Fix misleading test message and a loose license assertion #2, residue item 1) — Copilot's suppressed
    finding on openxFactory#1054, accurate and pre-existing: "a pip install of
    the pinned openXdox code cannot resolve an older opendox than the lockstep
    contract names."
    It was not fixable inside a pin-mechanics commit; this is
    the declared act it was registered for.

What the new opendox carries that the old one did not

Three openDox-code landings sit between a99eba03 and 0b4e8bbf, each recorded
on openxFactory#656:

landing merge sha #656 note
§ 3.4 slice S5 leg B — the gate-loop core arm and [tool.setuptools.package-data] opendox = ["web/**"] 8efb3cf5 5656797299
§ 3.4 slice S7 — class C parameterized 1e469713 5688498049
§ 3.4 slice S8 leg B — the receive, six path constants 0b4e8bbf 5690615323

Measured directly in the installed wheel rather than inferred: at a99eba03
there is no opendox/view_extension.py and no opendox/web/; at 0b4e8bbf
both are present (opendox/web/{app.js,index.html,styles.css,views/,vendor/}).

The measurement — validate.yml's exact invocation, fresh venv at each pin

python -m pytest -q <the workflow's file list> --noconftest, python 3.12.3 /
pytest 8.4.2, pip install -e ".[test]" resolving the pin from git each time
(direct_url.json asserted, so the number belongs to the commit named):

pin result
a99eba03 (before) 301 passed, 23 skipped
0b4e8bbf, the bump alone (708591b) 317 passed, 6 skipped
0b4e8bbf, current head 894781e 360 passed, 6 skipped

The third row is the second plus the 43 direct tests of the provenance guard
that the review rounds asked for; no other count moves between them. That figure
has been re-derived at every head rather than carried — 317 → 323 → 330 → 332 →
333 → 334 → 336 → 343 → 346 → 348 → 349 → 351 → 353 → 355 → 356 → 357 → 359 → 360
, one step
per round that added tests.

And the skip delta has to be said in two halves, which this description got wrong
until Copilot round 3 said so.
23 → 6 is not "seventeen skips cleared":

  • Sixteen became passes — the 3 materialization assertions and the 13 node
    probes. That is the bump's own effect.
  • The seventeenth did not clear. It was
    tests/test_doxbench_mutation_boundary.py's module-level skip; at the new pin
    that file becomes a collection error and leaves validate.yml's list, so the
    skip is no longer run, not cleared. Counting it as cleared would describe a
    transition that never happened.

Where those seventeen skips went — sixteen cleared, one left the list. Per file, run alone:

file at a99eba03 at 0b4e8bbf
tests/test_gate_loop_views.py 32 passed, 3 skipped 35 passed, 0 skipped
tests/test_gate_loop_probes.py 0 passed, 13 skipped 13 passed, 0 skipped
tests/test_doxbench_mutation_boundary.py 0 passed, 1 skipped (module-level) collection ERROR — see below

The three S5 materialization assertions named, and shown to run and pass:
test_the_facet_conforms_to_the_view_extension_protocol,
test_the_column_collects_through_openDox_beside_its_own_routes,
test_every_region_this_column_names_is_a_declared_shell_region — collected as
three, 3 passed in 0.11s.

The six skips that remain are the three *_seam.py suites' doc_health
pairs. They are BUILD-arc (split-opendox § 3.5/3.6), and no pin bump touches
them.

The one file that leaves validate.yml's list, and why it is not this bump's defect

tests/test_doxbench_mutation_boundary.py was added to the required check by
slice S8 on a measurement stated in the workflow itself: with its path repaired
it "COLLECTS and skips on the stated reason … the pin bump is what makes it
run."
The pin bump measured it, and that prediction was wrong.

With the bundle in the wheel, the module-level skip at its line 46
(from opendox_bundle import OPENDOX_WEB) no longer fires, so the module runs on
to its line 481 from openxdox import gate_console →
src/openxdox/gate_console.py:63 from doc_health import corpus. doc_health is
openxFactory's own corpus machinery, present at neither leg. Under the exact
invocation that is a collection error that interrupts the whole run:

ERROR tests/test_doxbench_mutation_boundary.py
E   ModuleNotFoundError: No module named 'doc_health'

It is dropped from the list, not repaired, on two grounds already written
into this workflow:

  1. tests/test_doxbench_turns.py is deliberately unnamed because "naming it
    would put the required check red for the BUILD arc's defect"
    — RULED Q-L8
    (b′) says the rest of the narrowing waits on split-opendox § 3.5/3.6. This
    file now fails for exactly that reason and nothing else.
  2. It is an arrived carve row whose edits are declared at openxFactory.
    Deferring its gate_console import would be an undeclared edit to a declared
    surface, which is not something a pin bump may do.

It returns to the list with the BUILD arc, beside test_doxbench_turns.py.

The sweep — whole repository, stale CLAIM vs. true statement about the past

git grep -n a99eba03 main — the tree this act starts from — returns exactly one
line
: the pin itself, pyproject.toml:106. (At THIS head the same grep returns
13 lines in 6 files and none in pyproject.toml: every one is a provenance
quotation this sweep deliberately added, quoting the old wording beside the new.
The claim is about the DEPENDENCY SPEC, not about the string — caught at the review
of cb84001, which was right that the unqualified sentence is false at the head it
is read at.) There is no lockfile, no requirements*.txt, no constraints*.txt,
no test asserting the pin string
(measured: git ls-files | grep -iE "lock|requirements|constraints" is empty, and the only openDox-code@ reference
anywhere is line 106). So the rest of the sweep is prose, and the distinction it
had to draw is the one pin lockstep #2 learned the hard way: a sentence that
states what IS pinned is a bug once the pin moves; a sentence about what happened
is the record, and rewriting it would falsify it.

CHANGED — 12 sites in 7 files: the pin line itself, and 11 prose sites in
6 files
that stated what IS pinned. Each prose fix keeps its old wording as a
quotation with provenance, rather than being silently replaced — the table below
is one row per site, so it has twelve:

file site what it claimed
pyproject.toml :106 the pin
.github/workflows/validate.yml the test_gate_loop_views.py block the three assertions skip "until the pin bump that lands with the openDox half"
.github/workflows/validate.yml the test_gate_loop_probes.py block "this leg's pinned state until the pin bump"
.github/workflows/validate.yml S8's per-file table + the run list "the pin bump is what makes it run" (falsified; see above)
src/openxdox/view_extensions.py module docstring "the pinned commit is older than the view registry itself — opendox.view_extension does not exist there"
tests/opendox_bundle.py docstring "Until this leg's pin advances past that commit, an installed opendox carries no bundle"
tests/opendox_bundle.py _REASON "this leg pins a commit older than openDox's own packaging declaration … The pin bump makes this suite run"
tests/test_gate_loop_probes.py docstring "the pinned commit predates BOTH the view registry and the packaging fix"
tests/test_gate_loop_probes.py bundle fixture + its skip "The pin bump owed at landing makes these probes run"
tests/test_gate_loop_views.py _view_extension_or_skip's two reasons "this leg pins an opendox older than the § 3.4 slice S3 view registry"; "the pin bump … is owed at landing"
tests/test_dependency_direction.py MUST_CONSUME_OPENDOX comment "this leg pins an opendox older than the view registry itself"
tests/test_dependency_direction.py OPENDOX_BACK_IMPORTS note BUILD slice 2b's merge is the commit "this file's pin now names" — already false since #15 moved the pin off 0f1f2e59; the same defect class Copilot found on #1054, found here by sweeping rather than by a later review

Every one of the seven files this PR touches is created at this leg, not
arrived
, and that is checked against openxFactory rather than inferred: none of
the seven appears as a destination_path among the manifest's 92 openxdox_code
rows, and the five that live under a declared root are admitted by name in
docs/opendox-carve-admissions.yaml (src/openxdox/view_extensions.py,
tests/opendox_bundle.py, tests/test_dependency_direction.py,
tests/test_gate_loop_probes.py, tests/test_gate_loop_views.py). git log --follow --diff-filter=A agrees: four at #18/S5, opendox_bundle.py at #19/S8,
test_dependency_direction.py at #7/§ 4.1, validate.yml at #1. So no edit
here is an undeclared edit.

LEFT — true as written.

  • ViewContractUnsupported's docstring and both GateLoopViews.views() refusal
    messages ("Pin an openDox at or after the S5 view contract…"). They are about
    whatever opendox an assembly installed, not about this leg's pin, and
    that condition still exists — a consumer is free to pin an older openDox.
    For the same reason the two skips in _view_extension_or_skip and the one in
    the bundle fixture are kept, not deleted: they are the test-time
    counterpart of that runtime refusal. Their reasons were the bug, not their
    existence.
  • The 29 # noqa: E402 (skips where the pin carries no bundle) import
    comments, across 29 files. Conditional and still accurate — and every one
    of those files is an arrived carve row in any case: checked by resolving
    openxFactory's docs/opendox-carve-manifest.yaml and comparing against the
    92 rows whose destination is openxdox_code, all 29 are among them
    (destination_path match, not a name grep).
  • tests/test_gate_loop_views.py:191's importorskip("route_extension", reason="…supplied by the pinned opendox wheel") — verified importable at both
    pins (route_extension.py is a top-level module of the wheel).

The ratchet was re-measured, not carried forward

tests/test_dependency_direction.py's OPENDOX_BACK_IMPORTS is a ratchet over
the pinned openDox, and the suite refuses a silent improvement as well as a
regression. Recomputed by _back_import_census() against the newly pinned tree
it returns exactly the five declared rows — branch_session.py (0, 7),
cli.py (0, 1), serve.py (0, 2), serve_project.py (0, 2),
serve_workbench.py (0, 7): 0 import-time / 19 deferred, unchanged across
two openDox slices. No table edit was needed, and the note now says that is a
measurement rather than a memory.

Whole-tree rehearsal — lockstep #2's residue item 2, honoured

That residue says a pin bump's consumer surface is whole-repo, so the rehearsal
that clears it must be whole-repo. python -m pytest tests/ -q --noconftest --continue-on-collection-errors, both venvs:

pin result
a99eba03 153 failed, 568 passed, 29 skipped, 127 errors
0b4e8bbf (at 9ff630d) 153 failed, 626 passed, 10 skipped, 128 errors

No new failure anywhere in the tree. 19 skips cleared (18 became passes, 1 —
test_doxbench_mutation_boundary.py's module-level skip — became the collection
error named above), and diff of the two sorted collection-error lists returns
exactly that one added line. The pass total is 626 rather than 586 because the
provenance-guard tests the review rounds asked for are in it — 40 of them at
9ff630d, which is the head that whole-tree row was measured at; 43 at this one. The 153 failures and 127 pre-existing errors are the
BUILD arc's doc_health / ideation_dashboard blockers, identical at both pins.

Copilot round 1 — four suppressed comments, all accurate, all fixed at 4a7ccb2

Review 5224499774 at 708591bb was "🔵 Needs a closer look" with 0 threads
and 4 suppressed comments
— findings that exist only in the review BODY. Read
there, not from the thread count.

Three of the four are one finding, and it is the important one. The skip
reasons this PR introduced claimed the installed opendox "came from somewhere
older than the declared pin", but the guards only tested for a marker
(web/views/helpers.js) or for importability — they never established identity.
Before the bump that cost nothing: a missing bundle was the declared state.
After it, the same skip hides the opposite fact — if 0b4e8bbf itself ever stopped
shipping web/** or view_extension, thirteen node probes, three materialization
assertions and every bundle suite would go quietly green in a required check
, and
the coverage this bump exists to gain would be lost in silence.

The fix reads the two facts instead of asserting them. tests/opendox_bundle.py
gains declared_pin() — the 40-hex out of this leg's own pyproject.toml — and
installed_commit() — out of the distribution's PEP 610 direct_url.json, which a
VCS install always records — and one decision that all three sites now use:

condition outcome
bundle/registry missing and the two commits agree FAIL, named as a regression at the declared pin
bundle/registry missing and they differ SKIP, with both commits named in the reason
provenance unrecorded (editable checkout, hand-copied wheel) SKIP, saying exactly that — nothing measured, nothing claimed

_REASON is deleted with the branch it served: the reason is now composed from what
was just measured, so it cannot go stale the way the old string did.
test_gate_loop_views.py::_view_extension_or_skip drops pytest.importorskip,
which is precisely the call that cannot tell the two cases apart.

Proved by simulating both regressions, not by argument:

simulated at the declared pin before after
opendox/web/ removed 13 skipped (required check green) 13 errors
opendox/view_extension.py removed 3 skipped (required check green) 3 failed

and the SKIP path still behaves for a genuinely older consumer: against a venv
holding a99eba03 while pyproject.toml declares 0b4e8bbf, every reason reads
"the installed distribution was built from a99eba03, while pyproject.toml
declares 0b4e8bbf"
. Under the declared pin the count is unchanged: 317 passed /
6 skipped
.

The fourth finding was a count of mine, and it was wrong. The ratchet note said
the table held "across two openDox slices". Two is the number of pin bumps of
this file's declaration; the range this bump covers is three openDox-code
landings
, now named: from a99eba03 (#11, § 4.3) across 8efb3cf5 (#20, S5 leg
B), 1e469713 (#21, S7) and 0b4e8bbf (#23, S8 leg B). Both counts are now stated
so neither can be read as the other.

Copilot round 2 — two suppressed comments and one thread, all fixed at 7bd76b1

Review 5224608579 at 4a7ccb2 — "🟡 Changes recommended", 2 suppressed
comments + 1 thread. All three accurate.

1. The round-1 guard still had a hole, and it was the same hole. On unknown
provenance it skipped, so the required validate job could still go green with the
bundle missing if direct_url.json were absent. _absent() now splits that case
by path: under CI it FAILS, off CI it still skips. The split is not
arbitrary — validate.yml installs -e ".[test]" against a PEP 508 direct VCS
reference and pip records direct_url.json for that every time, so on the required
path an unreadable provenance is itself the anomaly; on a developer box an editable
checkout or a hand-placed wheel lawfully has none. under_ci() reads CI, which is
what GitHub Actions sets.

2. The probe module's docstring still said "SKIPS … never fails" — which round
1 had already made untrue. Rewritten to state both outcomes and which input chooses
which.

3. Thread PRRT_kwDOUPv7_s6i_iiz: "there are no tests." Correct — round 1
proved the branches by hand, which proves nothing once the terminal closes. Six
direct tests
now pin the decision, in tests/test_gate_loop_probes.py. They live
there rather than in a new file deliberately: a created file at this leg needs an
admission row in openxFactory's docs/opendox-carve-admissions.yaml (RULED OQ-C),
and adding one is not a pin bump's act — while this module is already admitted,
already on validate.yml's list, and already owns the fixture the decision gates.
Replied and resolved (discussion_r4027684811).

All four branches re-proved by simulation, with CI=true as the runner has it:

simulated before this PR at 7bd76b1
declared pin loses opendox/web/ 13 skipped 13 errors
declared pin loses opendox/view_extension.py 3 skipped 3 failed
bundle missing and provenance unrecorded, under CI 13 skipped 13 errors
the same, off CI 13 skipped 13 skipped — the permissive branch, kept on purpose

Under the declared pin the required invocation moves only by the new tests:
317 passed / 6 skipped → 323 passed / 6 skipped at that round's head (332 at the current one).

Copilot round 3 — four suppressed comments and two threads, all fixed at 296bda7

Review 5224712952 at 7bd76b1, "🟡 Changes recommended". All six accurate;
none needed a design change.

The one with teeth: "all six direct guard tests monkeypatch
installed_commit() and therefore bypass this code … a parser regression can change
the CI decision while the required tests remain green."
Exactly right — round 2's
tests pinned the decision, and nothing pinned the reading it decides on.
Seven more tests now drive the PEP 610 parser itself, through a fake
distribution installed over importlib.metadata.distribution: a real
vcs_info.commit_id, an absent direct_url.json, malformed JSON, a non-VCS
(archive_info) install, a commit id that is not 40 hex, and no distribution at
all — plus one that states in an assertion why the other six exist.

The other five are the same defect this whole PR is about, committed by me inside
the sweep:
three documents describing a behaviour that round 2 had changed
underneath them, and two stale measurements.

where what it still claimed
tests/opendox_bundle.py:136 callers "skip rather than guess" on None round 2 made None fail under CI
tests/opendox_bundle.py:115 (thread …wED) the decision table said unreadable provenance always SKIPs both rows now stated
tests/test_gate_loop_views.py:641 (thread …wE8) "different (or unrecorded) → SKIP" the parenthesis was false; the real table replaces it
.github/workflows/validate.yml:203 the recorded count 317 passed it is 330 — the guard tests are in a file on the required list
.github/workflows/validate.yml:203 "the 17 skips that cleared" 16 cleared; the 17th became a collection error and its file left the list

Both threads replied to and resolved (discussion_r4027761575,
discussion_r4027761841). Threads 3 / 0 unresolved.

The review at 42741fd — three suppressed comments, all fixed at 7c0a3b6

One of them reached the silent green through the PARSER rather than the
decision, and it is the best finding of the review.
installed_commit()
accepted any forty characters as a commit id, so a malformed direct_url.json
carrying a forty-character non-hex value read as "a different pin" and _absent()
skipped under CI — precisely the outcome the provenance check exists to prevent,
reached by a route none of the decision tests could see. It now requires
vcs_info.vcs == "git" and a 40-lowercase-hex commit_id, and two more
parser tests
pin both refusals (a 40-character non-hex id; a 40-hex id under a
non-git VCS).

The other three were summaries still promising a skip the guard no longer
gives
— the same defect this PR is about, three more times, in text I wrote two
rounds earlier: require()'s docstring, web()'s, and
_view_extension_or_skip()'s opening line, which contradicted the decision
table four paragraphs further down in its own docstring. The summary is the line a
reader trusts, so all three now carry the outcome.

Re-measured after all of it: the required invocation is 332 passed / 6
skipped
, and the guard still fails closed — with CI=true and opendox/web
removed, the thirteen probes are 13 errors, not 13 skips.

The review at 7c0a3b6 — seven suppressed comments and a thread, all fixed at 27a89fd

Review 5225005282. Two are real test defects; six are prose I wrote in earlier
rounds of this same review, promising outcomes the guard does not give.

Two test defects, both worth having found:

  1. test_a_parser_regression_would_now_be_caught… asserted strings against
    inspect.getsource(installed_commit). Once the implementation stopped
    containing len(commit) == 40, it passed only because an explanatory comment
    still held that text
    — coupled to source, fails on a rename, catches no
    behaviour. Deleted, not repaired: the parser cases already assert the
    results it gestured at. The section comment now carries the inventory instead,
    and accurately — nine cases, not the "six" the deleted docstring claimed
    (which was a separate finding in the same review).
  2. _with_dist(PackageNotFoundError(...)) made read_text raise, so the test
    named for an uninstalled package never exercised distribution("opendox")
    failing — the call installed_commit() actually guards. A new _with_no_dist
    makes the lookup raise, and the read-raises case keeps its own test, so both
    paths are covered instead of one being mistaken for the other.

Six prose findings, and they are all the same shape: a summary that
paraphrased a four-row decision table and lost a row.

where what it over-promised
opendox_bundle.py module docstring an older source or stale editable checkout is "an honest skip" — only a different recorded commit, or unrecorded provenance off CI, skips; and "different" is all this guard proves, never "older"
_absent()'s failure message claimed 13 probes and every bundle suite would go green — but it is shared with the registry guard, where the bundle may be present. It now names its own subject
the probes module docstring said the unrecorded case "SKIPS with both commits named" — it cannot name what it could not read
the bundle fixture's branch comment the same half-table
_view_extension_or_skip's summary line (thread …AYwH) wrong twice: v1 omitted the failure, v2 omitted the off-CI unrecorded skip. All four rows are on the line now, and the docstring records that it took two goes

Measured: the required invocation is 332 passed / 6 skipped, unchanged —
one test deleted, one added — so validate.yml's recorded figure needed no edit.
Fail-closed still holds: CI=true with opendox/web removed gives 13 errors.
Threads 5 / 0 unresolved.

One review was answered late, and that is recorded rather than hidden

Review 5224807459 (at 296bda7) was cut short by GitHub's secondary rate limiter
before it could be read, and both of its findings were then fixed under later rounds
without being named. Both are closed:

  • "installed_commit() only checks len(commit) == 40 … validate the characters
    (and normalize case)"
    — the character validation and the 40-character non-hex
    regression case landed at 7c0a3b6; the normalization is b177eef. Both
    readers now match case-insensitively and return lower case, so a lawful record
    that spells its commit in upper case is compared rather than discarded — that
    can only turn an "unknown" into a real comparison, where before it read as
    unreadable provenance and would fail under CI over a formatting difference.
  • "this assertion inspects implementation source text rather than behavior" —
    deleted at 27a89fd, where the same finding arrived again.

The review at 27a89fd — thirteen suppressed comments, and the structure changed at f6f1b99

Review 5225106776. All thirteen accurate, and eleven are one defect repeated:
the four-row decision table had been paraphrased in eight places, and every
paraphrase lost a row or overstated one. Fixing the eight paraphrases one more time
would have earned a ninth round, so this act changed the structure instead.

The table now lives in exactly one place — _absent() — and every other site
points at it
rather than restating it: require(), web(), the probes fixture
and its branch comment. Each says so, and says why: a second copy of a table is how
a row goes missing.

The ancestry claim, in four more places. _absent() compares two commit
identities and never asks git which came first, so "a consumer assembling at
its own older pin"
was never something this guard measured. The canonical row,
the module comment, validate.yml's probe paragraph and the different-commit test's
docstring now all say different, and the row carries "(identity, never
ancestry)"
so the wrong word cannot be re-derived.

A real bug, not documentation. declared_pin() caught OSError, but
Path.read_text(encoding="utf-8") raises UnicodeDecodeError, which is a
ValueError. A non-UTF-8 pyproject.toml would have escaped the function entirely
and bypassed _absent()'s unknown-provenance CI policy. Now caught with the
filesystem error.

Three contracts that were wrong about themselves: the unreadable-side skip
blamed the installation even when the install was fine and pyproject.toml was
the unreadable side (now names whichever side is missing, with a new test);
installed_commit()'s None meant far more than "did not record one" (now "no
usable provenance was read", with the list); and under_ci()'s test docstring
said "nothing else is treated as CI" while the body accepted 1, true and yes.
The module docstring also ran the two skips together — they conclude different
things, and now say so.

Measured: 334 passed / 6 skipped; fail-closed intact (CI=true with
opendox/web removed → 13 errors).

Copilot round 8 — four suppressed comments and the last open thread, all fixed at 399e2a9

Review 5225285200 at f6f1b991, "🟡 Changes recommended — Five final review
comments remain unresolved, including a moderate test-coverage gap and
documentation inconsistencies."
All five are answered below by measurement.

The coverage gap was real, and it sat under the fail-closed rule itself. The CI
policy turns on declared_pin() returning None when reading pyproject.toml
raises — and every test of the decision monkeypatches declared_pin(), so
declared=None had only ever been supplied as an INPUT and never once produced by
the function. Two cases now drive it through a Path.read_text patch scoped to
pyproject.toml: test_declared_pin_is_none_when_the_read_raises (OSError) and
test_declared_pin_is_none_when_pyproject_is_not_utf_8 (UnicodeDecodeError). The
second guards the bug found two rounds ago — UnicodeDecodeError is a ValueError,
not an OSError — so the except clause cannot narrow back in silence.

Three findings of one defect, and it is this pull request's own defect class for
the fourth round running:
prose that collapses _absent()'s two failures into
one. They are two different claims. Equal commits FAIL saying "the openDox we
declare is wrong" — an assertion about the package. An unreadable side under CI
FAILS saying "this run cannot say which openDox is installed" — a provenance
anomaly
, a metadata or install failure, and never evidence that the bundle
regressed. Corrected at both sites named: tests/opendox_bundle.py's module summary
(now an explicit four-outcome list — two skips, two failures — pointing at
_absent()'s canonical table) and tests/test_gate_loop_probes.py's module summary
(the lumped bullet split in two). The same edit repairs a sentence the previous
commit had left truncated mid-clause.

One finding of arithmetic. The parser-case inventory said nine while the file
holds ten installed_commit() tests: the upper-case normalization case added at
b177eef never reached the inventory, and the paragraph under it numbered the
deleted source-inspection test as "a tenth" as though it were one of them. Both
corrected, and the inventory now carries the command that derives its count
(grep -c '^def test_installed_commit' tests/test_gate_loop_probes.py → 10).

The open thread (PRRT_kwDOUPv7_s6jBAXA, .github/workflows/validate.yml:227) —
this description said 15 guard tests, the workflow attributed the rise to 17, and the
workflow was right. Re-derived here at 19 with this round's two, and set from the
same command in the description, the workflow comment and the series. Replied and
RESOLVED.

Three stale # pragma: no cover claims removed, the same defect class caught in
code rather than prose: declared_pin()'s read, installed_commit()'s lookup and its
JSON parse are each driven by a named test now, so a pragma telling a reader nothing
exercises them had become false. The one on find()'s ModuleNotFoundError stays
— no test uninstalls opendox.

Measured at 399e2a9: the required invocation is 336 passed / 6 skipped (334
before; the delta is exactly this round's two tests), and the whole tree is
153 failed / 605 passed / 10 skipped / 128 errors — failures, skips and errors all
unchanged from the previous head.

Copilot round 9 — four suppressed comments, no new threads, all answered at 8b23f6f

Review 5225684154 at 399e2a9, "🔵 Needs a closer look" — files reviewed 7/7,
comments generated 0, four suppressed, threads 6 / 0. Three fixed, one answered
by measurement and registered.

This check's SCOPE, said where a reader starts. validate.yml's preamble still
opened with the 2026-09-10 narrowing — "validate runs only the scaffold's shape
assertions; the carved tests … return when the BUILD arc lands"
— while the list at the
bottom of the same file has named carved suites since slice S8. The correction was
already in the file twenty lines further down (the "§ 3.4 SLICE S8 UN-NARROWS THIS
LIST"
block) and nothing pointed at it from the top. A forward pointer now does, with
the split measured rather than asserted: of the fourteen files on the list, three
never import anything under test (test_leg_shape.py, test_dependency_direction.py,
test_no_hardcoded_status_words.py parse with ast) and eleven import a runtime
module — test_domain_profile.py on its § 4.4 grounds, plus ten carved suites that
RUN, four of which read the pinned bundle through tests/opendox_bundle.py.

"…or None where the pin carries none", in both readers. find() and
_opendox_bundle() are DISCOVERY functions — they test for the marker and know nothing
about why it is missing. That line was accurate while a missing bundle had one expected
cause; it now has four, and a caller who read it could reasonably conclude "stale pin,
skip" and walk past the identity check this required job depends on. Both now describe
discovery only and leave classification to _absent()'s table — the rule this PR has
applied to every other paraphrase of it.

The 29 importer annotations: accurate, and NOT fixed here. 29 files carry
# noqa: E402 (skips where the pin carries no bundle), incomplete now for the same
reason. Measured:

$ grep -rn 'skips where the pin carries no bundle' tests/ | wc -l
29                      # 29 sites in 29 files
$ git diff --name-only main -- <those 29 files> | wc -l
0                       # none is otherwise touched by this act
$ # all 29 appear in openxFactory docs/opendox-carve-manifest.yaml

Every one is an arrived carve row whose edits are declared at openxFactory, so
editing them here would be an undeclared edit to a declared surface — the same ground on
which tests/test_doxbench_mutation_boundary.py is dropped from validate.yml rather
than repaired. Recorded at the _absent() call site those annotations reach, with the
commands above, and registered as residue 4 below. Nothing is concealed by the wait:
a # noqa justification is not the outcome, and the outcome those files get is composed
from what it measured and names itself in full.

Measured at 8b23f6f: required invocation 336 passed / 6 skipped, unchanged —
this round edits comments and docstrings only.

Copilot round 10 — three suppressed comments, one finding, all fixed at 24cd5f2

Review 5225817509 at 8b23f6f, "🔵 Needs a closer look — Three moderate call-site
coverage gaps remain for missing bundle and view-contract paths."
Files reviewed 7/7,
comments generated 0, threads 6 / 0.

It is the round-3 finding one level further out, and it is right. Every guard test
to this point either calls _absent() directly or monkeypatches the function beneath it:
they prove what the guard decides and what installed_commit() reads, and nothing
about whether the three callers still ask it. Copilot's own sentence: "changing this
new call back to an unconditional pytest.skip would leave the 19 guard tests green while
the OPENDOX_WEB importers silently skip under CI."
That is the silent green this act
exists to remove, reached one level out each round — first through the decision, then
through the parser, now through the call site.

Seven tests, at the three sites it named, each driving the outcome rather than
restating the branch:

call site driven with outcomes proven
tests/opendox_bundle.py::require (:375) find() → None, _STAGED reset FAIL at the declared pin · SKIP for a different one
tests/test_gate_loop_probes.py::bundle (:185) the real fixture, via request.getfixturevalue("bundle") FAIL at the declared pin · SKIP naming both commits
tests/test_gate_loop_views.py::_view_extension_or_skip (:669) module absent, and ViewBinding without exports FAIL at the declared pin (both branches) · SKIP for a different one

Two details are load-bearing rather than incidental. require() stages once per
process
, and every other suite in the run has already filled _STAGED — without
resetting it the test never reaches the branch and proves nothing. And making
from opendox import view_extension raise needs both the sys.modules entry set to
None and the package attribute deleted; either alone leaves the import succeeding.
The second views branch — the registry present, RULED Q2's exports field gone — is the
shape a partial packaging regression takes, and was the less obvious of the two to have
left unproven.

Measured at 24cd5f2: required invocation 343 passed / 6 skipped (336 before;
the delta is exactly these seven). Whole tree 153 failed / 612 passed / 10 skipped /
128 errors
— failures, skips and errors unchanged. The guard's own tests were 26
at that head (31 at the current one):

$ git diff main -- tests/test_gate_loop_probes.py \
                   tests/test_gate_loop_views.py | grep -c '^+def test_'
26

Copilot round 11 — seven suppressed comments and one thread, all answered at cb84001

Review 5225945364 at 24cd5f2: 🟡 "Final review comments include unresolved critical
and moderate issues requiring correction"
, 7/7 files, comments generated 1, threads
7 / 1 unresolved. Two of the eight are DEFECTS, five are claims that outran what the
code does, and one is grammar. All are answered by measurement.

1. tests/opendox_bundle.py:283 — the CI failure told the reader the wrong thing, and
the finding is exact.
When declared_pin() is the unreadable side and
installed_commit() read fine, the message said "this run cannot say which opendox is
installed"
— with the installed hash printed in the very next field. What is unknown in
that shape is the comparison, not the install. Both branches now compose their
sentence from one place, _unreadable_side(), which reports three shapes (declared
unreadable · provenance unrecorded · NEITHER readable) and never blames the side it
could read. The off-CI skip's "NOTHING is claimed here" line moved with it: it now says
nothing is claimed about whether the installed openDox IS the declared one, which is the
true claim, rather than that nothing is known about what is installed.
The module summary's row and _view_extension_or_skip()'s copy of the table follow the
same wording (findings at :77 and the views docstring).

2. tests/test_gate_loop_views.py:678 — a real AttributeError on a supported path.
The guard read view_extension.ViewBinding.__annotations__ through a getattr for the
ANNOTATIONS but dereferenced the CLASS directly, so an assembly shipping the module
without ViewBinding raised AttributeError instead of taking the declared FAIL/SKIP —
and that assembly is exactly what view_extensions.ViewContractUnsupported names as
unsupported ("an assembly that pins an openDox without view_extension.ViewBinding",
src/openxdox/view_extensions.py:110-112). The class is read with getattr now, missing
is routed into _absent(), and a new test drives it.

3. tests/test_gate_loop_views.py:834 — the test bypassed the helper it tests. The
exports test imported from opendox import view_extension directly, so a consumer at a
different commit without the module would have hit ImportError inside the very test that
proves the skip. It takes the module from _view_extension_or_skip() now, before
_guard_reads() patches anything.

4. The open thread PRRT_kwDOUPv7_s6jCaFX (:816, repeated at :834) and the grammar
comment are one edit.
_absent() compares identities and never asks git which came
first — the docstring called b*40 an "older assembly" and read "keeps still holds". It
is the different-commit reading now, with the identity-only contract restated in the
place that contradicted it. Thread replied and resolved.

5. tests/test_gate_loop_probes.py:180 — the sentence generalized one row to four.
"A missing bundle stopped being the expected state and started being a regression" is true
only at the commit this leg DECLARES; a different installed commit still skips, an
unreadable side still skips off CI, and the CI failure for an unreadable side is a
comparison anomaly, not a verdict on the package. Qualified, two paragraphs under the
table it contradicted.

6. .github/workflows/validate.yml:68 — the inventory conflated two kinds of pinned
coverage, and the correction is a measurement.
Of the fourteen files on the required
list, two read the pinned WEB BUNDLE through tests/opendox_bundle.py
(grep -ln 'import opendox_bundle' → views, probes) and two import pinned openDox
PYTHON modules directly (grep -ln 'from opendox import' → test_doxbench_telemetry.py:21,
test_doxbench_abstract_store.py:43,45; the third hit is views' own guarded import). A
regression in the pin reaches the doxbench pair as an ImportError or a failing assertion,
with no guard in the path — which is the distinction the line had erased.

Measured at cb84001: required invocation 346 passed / 6 skipped (343 before; the
delta is exactly this round's three tests). The two guard suites alone: 77 passed. Whole
tree (pytest tests/ -q --noconftest --continue-on-collection-errors): 153 failed / 615
passed / 10 skipped / 128 errors
— failures, skips and errors all unchanged, 612 → 615
being precisely these three. Diff vs main: 7 files, +1146 / −77. The guard's own tests are now 29:

$ git diff main -- tests/test_gate_loop_probes.py \
                   tests/test_gate_loop_views.py | grep -c '^+def test_'
29

Copilot round 12 — five suppressed comments, no new thread, all fixed at d8e8605

Review 5226412781 at cb84001: 🟡 "Two moderate caller-coverage gaps remain in
tests/test_gate_loop_views.py, alongside minor documentation inconsistencies."
7/7
files, threads 7 / 0. Two are coverage, three are this description's own claims.

1 & 2. Both new caller branches had only their FAIL half driven (:688, :692). The
point is the one round 10 made one level further in: "replacing this _absent() call with
an unconditional failure would still pass the added caller test while breaking that
consumer path"
— and the consumer is the one RULED 5700475319 protects, an assembly
pinning an openDox behind the view contract. Two tests added, one per branch, each driving
the call at _PIN_OTHER and asserting the SKIP names both commits:
test_a_ViewBinding_without_exports_SKIPS_for_a_different_installed_commit and
test_a_view_extension_without_ViewBinding_SKIPS_for_a_different_commit.

3. :651 — the last copy of "an older assembly" in the file. It sat inside a quotation
of Copilot's own round-1 review, which is why it survived three rounds of this correction;
quoting it still promised an ordering _absent() cannot measure. The summary says a
DIFFERENT assembly now, with the borrowed word recorded as the review's, not the guard's.

4. validate.yml:272 — this description's headline count was still 26. It is 31
now and derived by the same command the workflow carries. Round 10's own section keeps
its 26, marked as the count at that head, because that section records that round.

5. tests/opendox_bundle.py:43 — the sweep's grep claim was false at this head, and the
finding is exact.
"git grep -n a99eba03 returns exactly one line" was measured against
main, then left unqualified while this very act added thirteen provenance quotations of
that commit. Both measurements are stated now:

$ git grep -n a99eba03 main -- .      # the tree this act starts from
main:pyproject.toml:106:    "opendox @ git+https://github.com/opensoft/openDox-code@a99eba03…"
$ git grep -c a99eba03 -- .           # this head: 13 lines, 6 files, none a dependency spec
.github/workflows/validate.yml:1   src/openxdox/view_extensions.py:1
tests/opendox_bundle.py:3          tests/test_dependency_direction.py:4
tests/test_gate_loop_probes.py:2   tests/test_gate_loop_views.py:2
$ git grep -c a99eba03 -- pyproject.toml   # (none)

Measured at d8e8605: required invocation 348 passed / 6 skipped (346 before;
the delta is exactly these two tests). The two guard suites alone: 79 passed. Whole
tree: 153 failed / 617 passed / 10 skipped / 128 errors — failures, skips and errors
unchanged. Diff vs main: 7 files, +1199 / −77 (the round-12 commit message
says +1193: that shortstat was taken before the same commit's validate.yml comment
block; the tree is +1199, and this line is the corrected one). Guard tests 31.

Copilot round 13 — 🟢 approval recommended, two wording nits and one thread, fixed at b22a6fd

Review 5226574758 at d8e8605: 🟢 "Approval recommended — The remaining comments are
documentation wording corrections and do not block approval."
7/7 files, comments
generated 0 new
, 2 suppressed, and one thread (PRRT_kwDOUPv7_s6jDaA0) repeating the
first of them. Nothing substantive was enumerated.

  • :833 "keeps still holds" — round 11 replaced the phrase's neighbour and left the
    word itself standing. The docstring reads "...and the DIFFERENT-COMMIT reading that RULED
    5700475319 rests on still holds."
    Thread replied and resolved.
  • :656 — round 12's new parenthesis landed mid-sentence, leaving a lower-case if
    starting the clause after it. Capitalized.

Comments and docstrings only: the required invocation is 348 passed / 6 skipped at this
head, unchanged, and no count in this description moves.

Copilot round 14 — two stale section-header counts, fixed at a0eed16

Review 5226685677 at b22a6fd: 🔵 "Needs a closer look — The broad dependency,
validation, and workflow changes warrant final human review; two documentation nits also
remain."
7/7 files, comments generated 0 new, threads 8 / 0, two suppressed
comments. Both are headers whose numbers stopped matching the code under them.

  • tests/test_gate_loop_probes.py:1024 quoted round 10's own sentence with its
    "19 guard tests" — the count at THAT head, three rounds ago. The point never lived in
    the number, so the number is no longer carried: the header names the quotation as that
    review's and gives the two commands that hold at any head (25 added tests in that file
    and 6 in test_gate_loop_views.py as it was written; validate.yml's record block
    carries the total).
  • tests/test_gate_loop_views.py:787 said the guard has TWO refusal branches. It has
    had three since cb84001 — module absent · ViewBinding absent · ViewBinding
    without RULED Q2's exports. All three are listed now, each with the note that it is
    driven BOTH ways, which is the rule rounds 12 and 13 established.

Comments only: 348 passed / 6 skipped at this head, unchanged; the two guard suites
alone 79 passed. Diff vs main: 7 files, +1216 / −77.

Copilot round 15 — one real parser gap and two documentation corrections, fixed at e6cd0e8

Review 5226786313 at a0eed16: 🔵 "One moderate parser-test coverage issue and two
documentation nits remain."
7/7 files, comments generated 0 new, threads 8 / 0.

1. tests/test_gate_loop_probes.py:897 — the parser never checked WHICH package it asked
about, and that is a real gap.
Both fakes for importlib.metadata.distribution answered
to any name, so a regression to distribution("openxdox") — or to any other installed
distribution — would have read a STRANGER's direct_url.json, compared that commit against
this leg's declared pin, and left all ten parser tests green while doing it. Both fakes
assert the requested name now, and
test_installed_commit_asks_for_the_opendox_distribution_and_no_other records the lookup
and asserts it is exactly ["opendox"].

2. validate.yml:72 — the inventory this round-11 finding produced was itself half
wrong.
test_gate_loop_views.py never calls find(), require() or the bundle
fixture: it imports opendox_bundle for _absent() — the CLASSIFIER — and reaches the pin
through opendox.view_extension. So ONE suite reads the pinned web bundle (probes) and
THREE import pinned Python modules (views through its guarded helper; the doxbench pair
at module scope with no guard in the path), and _absent() decides for two of the four.
Measured with grep -n 'opendox_bundle\.' tests/test_gate_loop_views.py → three _absent()
calls, no find/require.

3. validate.yml:250 — the description's primary table still said cb84001 / 346. It
says e6cd0e8 / 349 now, and the series carries every step.

Measured at e6cd0e8: required invocation 349 passed / 6 skipped. Whole tree:
153 failed / 618 passed / 10 skipped / 128 errors — failures, skips and errors
unchanged. Diff vs main: 7 files, +1264 / −77. Guard tests 32.

Copilot round 16 — four documentation claims narrowed to what the code does, at fd3af6a

Review 5226898698 at e6cd0e8: 🔵 "Broad dependency and validation changes with
unresolved documentation nits warrant final human review."
7/7 files, comments generated
0 new
, threads 8 / 0. Three of the four are ONE defect in three places — prose written
when a missing bundle could only SKIP — and the fourth is a claim about the runtime.

  • tests/opendox_bundle.py:348 (require) said "module_level=True skips the
    IMPORTING MODULE"
    as though the flag governed every outcome. It scopes the skip and
    nothing else: pytest.fail fails the test that reached the guard, whichever flag was
    passed.
  • :434 (web) closed with "skips whole" / "skips the three tests" under an opening
    that had already delegated the outcome to _absent(). The rule now names the SCOPE and
    leaves the outcome to the table.
  • :113 said the replacement for _REASON "names the two commits it just compared" —
    true of the different-commit row only; where a side is unreadable there is no comparison to
    name, and the reason says which side could not be read.
  • src/openxdox/view_extensions.py:38 said ViewContractUnsupported names the
    consumer-behind-contract condition, full stop. GateLoopViews.views() catches two
    shapes — module absent (ImportError), ViewBinding that will not take this column's fields
    (TypeError) — and a module carrying no ViewBinding at all still raises AttributeError
    at :411. The paragraph now says which shapes the runtime names, points at the test-time
    guard that classifies the third since cb84001, and points at this description's "What
    this does NOT do", where the runtime catch is registered rather than smuggled into a pin
    bump.

Comments and docstrings only: 349 passed / 6 skipped, unchanged. Diff vs main:
7 files, +1298 / −83.

Copilot round 17 — three counts the round before it made stale, fixed at de7d966

Review 5227017752 at fd3af6a: 🔵 "The broad dependency and validation changes, plus
remaining count/documentation corrections, warrant final human review."
7/7 files,
comments generated 0 new, threads 8 / 0. All three are arithmetic in
tests/test_gate_loop_probes.py, and all three were broken by round 15's own new test.

  • :1044 recorded grep -c '^def test_installed_commit' → 10; the file holds 11.
  • :898 said the name-less fakes "would have left all ten parser tests green" — it now
    says every parser test THEN STANDING, all ten, and names the eleventh as the one this
    finding produced.
  • :1068 said "(25 and 6 as this was written)"; at this head it is 26 and 6, with
    the breakdown measured rather than asserted — 11 decision/read cases, 11
    installed_commit parser tests, 4 call-site tests here, 6 in the views file,
    32 in validate.yml's record block.

The lesson is in the comments now: a count printed without the command that produced it goes
stale on the next round that adds a test, and this file has done it three times.

Comments only: 349 passed / 6 skipped, unchanged. Diff vs main: 7 files,
+1306 / −83
.

Copilot round 18 — one real coverage gap, one contradiction, one self-counting command, at 8b9ece1

Review 5227126546 at de7d966: 🔵 "An unresolved moderate test-coverage gap remains,
along with two measurement-documentation nits."
7/7 files, comments generated 0 new,
threads 8 / 0.

1. tests/opendox_bundle.py:205 — declared_pin()'s regex MISS had no test, and that is
the fail-closed policy's own input.
The two existing tests make the READ raise; nothing
made the match fail. A dependency line rewritten to a branch ref, a version range or a path
install returns None from the same function, and nothing proved the policy still catches
it. Two tests, on a new _with_pyproject_text helper that lets the file read CLEANLY: the
function returns None for a pyproject declaring openDox-code@main, and _absent() then
FAILS under CI naming the declared side while still printing the installed commit.

2. tests/opendox_bundle.py:15 and validate.yml carried two different S8 censuses —
47 sites and 46.
openXdox-code#19's LANDING settled it (main 0a0265f, "RE-DERIVED AT
LANDING, AND ONLY THE COUNT MOVED"
): under a named, re-runnable instrument — a ROOT
SPELLING is a line spelling REPO_ROOT / "src" / "openxdox" / "web" in any Path or slash
form, counted over the REVISIONS with git grep, never a worktree — it is 46 spellings
over 31 files, as 22 + 9
. The "47 sites" of #19's review rounds is left ATTRIBUTED and not
restated, for #19's own reason: a root spelled once carries several derived sites, so
neither total corrects the other. This helper asserted it as "the real count"; it no longer
does, and the two files agree.

3. :395 — the recorded command counted its own documentation. grep -rn 'skips where the pin carries no bundle' tests/ now matches this comment too, so it answers 30. The
recorded command carries --include='test_*.py' (29), with the reason beside it.

Measured at 8b9ece1 (that head, not this one): required invocation 351 passed /
6 skipped
(349 before; the
delta is exactly these two tests); the two guard suites 82 passed; whole tree
153 failed / 620 passed / 10 skipped / 128 errors, failures/skips/errors unchanged. Diff
vs main: 7 files, +1379 / −86. Guard tests were 34 at that head (36 at the
current one) — 28 there (13 decision/read cases,
11 installed_commit parser tests, 4 call-site tests) plus 6 in the views file.

Copilot round 19 — the parser finding with the widest blast radius, fixed at 2dfd669

Review 5227217096 at 8b9ece1: 🟡 "The critical pin-parsing finding remains unresolved,
along with a documentation nit."
7/7 files, one thread and one suppressed comment.

_PIN_RE accepted a 40-hex PREFIX of a longer ref, and that is a wrong-commit bug, not a
missed one.
With no delimiter after {40}, any ref merely BEGINNING with forty hex
characters — …@<40-hex>dead, …@<40-hex>x — yielded that prefix as "the commit this leg
declares"
. A leg pinned to a branch whose name starts with a sha would have
declared_pin() return a commit it does not declare, and _absent() compares exactly that
against what is installed: equal by accident FAILS naming the wrong culprit; unequal SKIPS
over a real regression.
Both are the silent green this guard exists to remove, reached
through the parser — the third time this PR has found that route (round 1's
len(commit) == 40, round 8's declared_pin() read, and now this).

The pattern ends ([0-9a-fA-F]{40})(?![0-9a-zA-Z]), so a continuing ref reads as no pin
and takes the fail-closed path under CI. The class is 0-9a-zA-Z rather than hex on purpose:
a branch ending in x is no more a pin than one ending in dead. Two tests hold both sides
— three continuing refs refused, and four legitimate line endings (closing quote, comma, #
comment, bare end of line) still read, because a lookahead that is too strict fails closed on
a CORRECT file and is just as silent. Thread replied and resolved.

The suppressed comment went with it: test_gate_loop_views.py:631 still said "BOTH GUARDS
ARE SATISFIED BY THIS LEG'S OWN PIN"
while the enumeration below it has listed three
refusal branches since cb84001.

Measured at 2dfd669: required invocation 353 passed / 6 skipped; the two guard
suites 84 passed; whole tree 153 failed / 622 passed / 10 skipped / 128 errors,
failures/skips/errors unchanged. Diff vs main: 7 files, +1438 / −86. Guard tests
36 — 30 here (15 decision/read, 11 parser, 4 call-site) plus 6 in the views file.

Copilot round 20 — a positive terminator for the pin, and two counts measured apart, at a9264b8

Review 5227336506 at 2dfd669: 🟡 "An unresolved moderate declared_pin() parsing issue
and related count/documentation nits remain."
7/7 files, one thread and three suppressed.

The thread sharpens round 19's own fix, and it is right: (?![0-9a-zA-Z]) was the wrong
SHAPE of guard.
…@<sha>-feature, …@<sha>/branch, …@<sha>_suffix and …@<sha>.1 are
all legal git refs and all still matched the 40-hex prefix. Git allows nearly everything a
URL does, so refusing ref characters one class at a time is a losing game. The pattern
requires a positive terminator now — (?=["'\s,\]#]|$), the characters that can
legitimately follow the sha inside pyproject.toml — and anything else means the ref
CONTINUES, so there is no pin on that line and declared_pin() returns None, the
fail-closed path. Every separator the thread named is in the refusal loop (now seven),
and the four legitimate endings are still driven beside it. Thread replied and resolved.

Two counts in tests/opendox_bundle.py were wrong, and both are measured apart now.

  • :413 said 29 files carry from opendox_bundle import OPENDOX_WEB. The ANNOTATION is on
    29 files; that import form is on 26
    (grep -rln '^from opendox_bundle import OPENDOX_WEB' tests/ --include='test_*.py'), and
    the other 3 — test_doxbench_transport.py, test_session_confinement.py,
    test_staging_workbench.py — import opendox_bundle and call composed() at module
    scope. Both forms are named.
  • :378 said thirty suites take the module-level skip. It is twenty-nine — the same
    26 + 3 — and test_doxbench_turns.py is not among them: it calls web() per test, which
    is the very distinction that docstring exists to draw.

The third suppressed comment read this description's round-18 section as current; those
figures are now marked as the counts AT THAT HEAD, the way round 10's are.

Measured at a9264b8: required invocation 353 passed / 6 skipped, unchanged — this
round adds separators to an existing loop and fixes prose, not test functions. The two guard
suites 84 passed. Diff vs main: 7 files, +1469 / −86. Guard tests 36.

Copilot round 21 — declared_pin() PARSES the file, because four rounds proved a text search cannot hold this contract, at 52453af

Review 5227455153 at a9264b8: 🟡 "Unresolved moderate parsing findings remain in
tests/opendox_bundle.py, along with documentation and measurement nits."
7/7 files, one
thread and five suppressed. Two of the suppressed end the pin-parsing arc, and they are
right.

Four rounds walked ONE class of bug out of the regex, each fix admitting the next
continuation:

round guard what still got through
8b9ece1 none …@<sha>dead
2dfd669 negative lookahead over alphanumerics -feature, /branch, _suffix, .1
a9264b8 positive terminator set ,feature, 'feature — both legal INSIDE the quoted URL

— and, independent of any terminator, a search over the raw file could read a sha out of a
commented-out old dependency and compare against a pin this file no longer declares.

So it stopped searching text. declared_pin() parses with tomllib, walks
project.dependencies, and fullmatches each requirement (minus any PEP 508 environment
marker): a pin is read only when the WHOLE declared requirement is
opendox @ git+<url>@<40-hex>, and a comment is not in the dependency list at all.
TOMLDecodeError joins OSError and UnicodeDecodeError in the same refusal — a file that
does not parse declares nothing and must fail closed, which is the 27a89fd finding one
parser later. The tests were re-cut for the new shape, both sides: eleven continuations
refused in one test (every one named by a review round), a commented-out dependency ignored,
three legitimate declarations still read (plain, with extras, with a marker, and not
first in the list), and a non-TOML file → None. The fixture helper emits VALID TOML per
case, because a helper writing broken TOML would make declared_pin() return None for the
wrong reason and pass the test while proving nothing.

Three documentation findings went with it. The docstring said "None if unreadable";
there are FOUR such states and the caller cannot tell them apart from that word — all four
are named. And validate.yml's two per-file figures (test_gate_loop_views.py 35 passed,
test_gate_loop_probes.py 13 passed) are 708591b's pin-bump-only measurements, read
as current: both are labelled now, with this head's own figures (41 and 45) and the
command that produces each.

The thread asked that the rejected lookahead not be written out in the workflow, since a
rejected pattern reproduced there is one somebody copies back. grep -c '0-9a-zA-Z' .github/workflows/validate.yml → 0; the rejected attempts survive only in
tests/opendox_bundle.py's list above the working pattern, each labelled with the review
that found its hole. Replied and resolved.

Measured at 52453af: required invocation 355 passed / 6 skipped (353 before; the
delta is exactly the two new tests); whole tree 153 failed / 624 passed / 10 skipped /
128 errors
, failures/skips/errors unchanged. Diff vs main: 7 files, +1533 / −86.
Guard tests 38 — 32 here (17 decision/read, 11 parser, 4 call-site) plus 6 in the views
file.

Copilot round 22 — an SSH declaration has an @ in the authority, fixed at 18e8c12

Review 5227561395 at 52453af: 🔵 "A moderate parser issue affecting valid SSH VCS URLs
remains unresolved, along with two documentation nits."
7/7 files, comments generated 0
new
, threads 11 / 0.

The round that ended the parser defects introduced one of its own, in the other
direction.
[^@\s]+ for the URL stopped at the FIRST @, so
opendox @ git+ssh://git@github.com/opensoft/openDox-code@<40-hex> — a PEP 508 declaration
pip installs happily — read as no pin, and the guard would have failed closed under CI on
a CORRECT file: the opposite defect to the last four rounds' and just as silent. The URL part
is \S+ now; greedy under fullmatch it backtracks to the LAST @ that leaves forty hex
and nothing after them, which is the pin by construction. Both URL shapes are driven — in the
acceptance test, and in the refusal loop, which now runs its eleven continuations against
both (22 assertions).

Two claims scoped to what is true.

  • tests/opendox_bundle.py:52 said the bundle's arrival means "the suites that import
    OPENDOX_WEB run instead of skipping"
    . test_doxbench_mutation_boundary.py imports it
    too, and with that skip gone it runs on to gate_console → doc_health and
    COLLECTION-ERRORS — which is exactly why RULED 5700475319 drops it from the list. The
    sentence says the old missing-bundle skip no longer fires, and names that file.
  • tests/test_gate_loop_views.py:651 still said "these two guards"; there have been
    three refusal branches since cb84001, all enumerated below it.

Measured at 18e8c12: required invocation 355 passed / 6 skipped, unchanged — a
round of loop cases and prose. The two guard suites 86 passed (probes 45, views 41). Diff
vs main: 7 files, +1575 / −86. Guard tests 38.

Copilot round 23 — a FALSE marker is not a declaration, and OpenDox still is, at 0e3922d

Review 5227642836 at 18e8c12: 🔵 "Moderate issues remain in PEP 508 marker handling and
case-insensitive package-name parsing."
7/7 files, comments generated 0 new, threads
11 / 0. Two real parser defects, pulling in opposite directions.

  • A false environment marker was read as a pin. requirement.split(";")[0] took the spec
    and dropped the condition, so opendox @ git+…@<sha> ; python_version < "3.0" — a line pip
    installs NOTHING from — read as "the commit this leg declares". Whatever opendox was
    actually installed would then disagree with it and take the different-commit SKIP, over
    a real regression. _marker_holds() evaluates it with packaging.markers now, and an
    unevaluable marker reads as FALSE: a condition this environment cannot judge is not a
    declaration this run can rely on, and every None lands on the fail-closed path.
  • The name matched only lowercase. Distribution names are case-insensitive (PEP 503, and
    this leg's own dependency census normalizes with .lower()), and this estate spells it
    openDox half the time — so OpenDox @ git+…@<sha> read as no pin and failed the guard
    CLOSED on a file pip installs happily. That is round 22's defect one round later, and the
    pattern is (?i:opendox) now.

validate.yml's coverage inventory said three legitimate declarations where the test
drives five — plain HTTPS, extras, an SSH url whose authority carries an @, a true
marker, a mixed-case name — plus the false and unevaluable markers that must NOT read as a
pin. All named.

Measured at 0e3922d: required invocation 356 passed / 6 skipped (355 before; the
delta is the one new test); whole tree 153 failed / 625 passed / 10 skipped / 128 errors,
failures/skips/errors unchanged. Diff vs main: 7 files, +1629 / −86. Guard tests
39 — 33 here (18 decision/read, 11 parser, 4 call-site) plus 6 in the views file.

Copilot round 24 — the requirement is PARSED, and the pin's SOURCE is checked, at 9ff630d

Review 5227760657 at 0e3922d: 🟡 "One critical provenance-validation issue and two
moderate parsing/test-coverage issues remain unresolved."
7/7 files, one thread and two
suppressed.

The thread is a provenance hole, not a parsing nit. installed_commit() compares SHAS
ONLY, so a dependency re-pointed at a DIFFERENT repository at some other 40-hex commit would
have made a missing bundle read as the lawful "different commit" case and skip under CI —
while this leg was no longer testing openDox-code at all. _names_opendox_code() now
requires the declared url's repository to be openDox-code (case-insensitive; .git and RFC
3986 ;params tolerated), and anything else reads as no pin, the fail-closed path. A
FORK or MIRROR under another account still reads — an assembly may install openDox from its
own remote, which is the consumer RULED 5700475319 protects — and five urls drive exactly
that line. Replied and resolved.

partition(";") truncated a legal url, the same root one level down: a semicolon is a
legal URI path character, so git+https://host/repo;component@<sha> lost its pin and the
guard failed closed on a declaration pip installs. packaging.requirements.Requirement
parses the entry now — name (case-insensitively, PEP 503), extras, url, marker — and this
code no longer guesses where any of them start. Every hand-rolled version of that split lost
a legal shape or admitted an illegal one, once per round, for five rounds.

And the test that claimed the pin is read from the file proved nothing: a hard-coded
return of today's sha satisfies a substring assertion against the file that contains it. It
now also replaces pyproject.toml with a synthetic one declaring a DIFFERENT commit and
asserts that commit comes back, which only a real read can do.

Measured at 9ff630d: required invocation 357 passed / 6 skipped (356 before; the
delta is the one new test); whole tree 153 failed / 626 passed / 10 skipped / 128 errors,
failures/skips/errors unchanged. Diff vs main: 7 files, +1722 / −86. Guard tests
40 — 34 here (19 decision/read, 11 parser, 4 call-site) plus 6 in the views file.

Copilot round 25 — the CI failure stops blaming the file for four states in which the file is fine, at e92fb06

Review 5227875090 at 9ff630d: 🔵 "Two moderate review findings remain, alongside stale
measurement and documentation corrections."
7/7 files, comments generated 0 new, threads
12 / 0, six suppressed.

  • tests/opendox_bundle.py:458 — the message misdiagnosed four of six states.
    _unreadable_side() said "this leg's declared pin could not be read from
    pyproject.toml"
    for every None from declared_pin(). Only TWO of its six states are a
    failed read; the other four — no opendox requirement, a requirement that is not a 40-hex
    direct VCS pin, a marker that does not hold here, a pin at another project — happen with a
    perfectly readable file, and under CI that sentence sent the reader hunting a corrupt
    pyproject.toml. It says what is true of all six now, and points at declared_pin().
  • tests/test_gate_loop_probes.py:1013 — the unevaluable-marker case proved the wrong
    branch.
    this is not a marker is rejected by Requirement() outright, so the test never
    reached _marker_holds(). It uses a syntactically valid marker naming an unresolvable
    variable now, and _marker_holds()'s own three outcomes are asserted beside it.
  • Four stale measurements, all this act's own: validate.yml's per-file figure for
    test_gate_loop_probes.py (45 → 47 passed, and "thirty-two" → thirty-four guard
    tests in the same sentence), its parser inventory (five → seven legitimate
    declarations: plain HTTPS · extras · SSH authority @ · ; path parameter · .git suffix
    · true marker · mixed-case name), and opendox_bundle.py's "five review rounds, one per
    shape", which stopped being a fixed number two rounds ago.

The sixth comment says this description still opens with 39 guard tests and 356 passes. It
does not — the description was updated to 40 / 357 with 9ff630d's push at 20:13Z and
the review read the snapshot before it; gh pr view 21 --json body at that head already
carried both figures. No edit owed, and it is recorded here rather than silently skipped.

Measured at e92fb06: required invocation 357 passed / 6 skipped, unchanged — a
round of messages and comments. Per file: probes 47 passed, views 41 passed. Diff vs
main: 7 files, +1752 / −86. Guard tests 40.

Copilot round 26 — pip's fragment is legal after the pin, and only two of the ten suites are carved, at 9ab8521

Review 5228049032 at e92fb06: 🔵 "The parser must support valid VCS URL fragments, and
the validation inventory needs the requested scope clarification."
7/7 files, comments
generated 0 new
, threads 12 / 0, two suppressed — both accurate.

  • #subdirectory=src read as NO pin. Requirement.url legally carries pip's
    direct-reference fragment (…@<sha>#subdirectory=src, #egg=opendox&subdirectory=src),
    which says nothing about which commit is declared, while fullmatch required the forty hex
    to be the url's last characters — so the guard failed closed under CI on a declaration
    pip installs. _without_fragment() strips it before matching, and only a key=value
    fragment: a bare #feature is a ref continuation, not a fragment, and stays in the refusal
    loop.
  • "The other TEN are carved suites" is false, and the measurement is worse than the
    finding.
    Of the ten runtime importers on the required list, only two are ARRIVED
    carve rows — test_doxbench_abstract_store.py, test_doxbench_telemetry.py, each with a
    row in openxFactory's docs/opendox-carve-manifest.yaml. The other eight are CREATED
    files admitted by name in docs/opendox-carve-admissions.yaml: the two gate-loop suites of
    § 3.4 slice S5 and the three evidence / workbench / authority pairs. The distinction is
    load-bearing in this very act — an ARRIVED row's edits are declared at openxFactory, which
    is why test_doxbench_mutation_boundary.py is dropped rather than repaired and why the 29
    importer annotations are left alone — so both registers are named with the command that
    re-derives each.

Measured at 9ab8521: required invocation 357 passed / 6 skipped, unchanged (the two
new cases are loop entries in an existing test); probes 47 passed. Diff vs main:
7 files, +1791 / −86. Guard tests 40.

Copilot round 27 — the provenance check covers the INSTALLED side too, at 5285cf2

Review 5228136700 at 9ab8521: 🟡 "The provenance guard must validate the installed
distribution's repository source before treating a different commit as safe to skip."

7/7 files, comments generated 1, two suppressed — all three accurate.

  • The provenance check was HALF a check (thread PRRT_kwDOUPv7_s6jHESs,
    tests/opendox_bundle.py:400). Round 24 made declared_pin() refuse a pin at another
    project, because comparing shas alone let a dependency re-pointed elsewhere read as the
    lawful different commit SKIP while this leg was no longer testing openDox-code at all.
    installed_commit() was still doing exactly that on the side that is actually IMPORTED:
    it returned vcs_info.commit_id and dropped direct_url.json's url, so an opendox
    built from an unrelated repository at its own 40-hex commit still reached that skip. It
    reads the url now, through the same _names_opendox_code() the declared side uses, and
    a record naming another project is NO provenance — the fail-closed path under CI.
  • …and the too-strict half, which this arc has produced once per round. An INSTALLED
    record carries no @<ref> (PEP 610 keeps it in requested_revision), so stripping at the
    LAST @ cut ssh://git@github.com/opensoft/openDox-code down to ssh://git and would
    have read a correct install as a different project. The ref is stripped positionally now —
    only an @ after the final / can be one. A fork or a mirror still reads, RULED
    openxFactory#656 comment 5700475319; what is refused is a different PROJECT. Two tests:
    four refused sources (openXdox-code, openDox-spec, an openDox-code-mirror that is its own
    project, a file:// wheel) and six that must still read (HTTPS, git+….git, SSH with a
    git@ authority, a fork under another account, a third-party mirror, a #subdirectory=
    fragment).
  • validate.yml:355 said SEVEN legitimate declarations where the test drives NINE — the
    #subdirectory=src and #egg=opendox&subdirectory=src cases round 26 added one round
    earlier never reached the inventory. Corrected, both named.
  • tests/test_gate_loop_probes.py:196's counterfactual read as a claim about the current
    guard.
    It is about the marker-only check this PR replaced; it now says so, and says what
    the table does instead — at the declared pin those thirteen probes FAIL, the table's first
    row.

Measured at 5285cf2: required invocation 357 → 359 passed / 6 skipped; probes
47 → 49 passed; views 41 passed, unchanged; guard tests 40 → 42;
grep -c '^def test_installed_commit' tests/test_gate_loop_probes.py 11 → 13. Diff vs
main: 7 files, +1880 / −86.

This is where the parser arc stops. Rounds 19-27 are one finding class — the guard
admitting or refusing one more real-world declaration shape — and the lane's rule for this
act is at most two head-moving rounds per class. Round 24 was the first on the provenance
SOURCE and this is the second, so the class is now closed: any further shape finding is
registered for a later declared act on this file rather than fixed here, and is listed under
What this does NOT do when it arrives.

Copilot round 28 — the DEFAULT require() path is driven, and two inventories stop carrying a number, at ca327c2

Review 5228713458 at 5285cf2: 🟡 "The default module-level guard path lacks coverage, and
several current validation counts are stale."
7/7 files, comments generated 2, two
suppressed. Three accurate; the fourth was already false when it was filed.

  • THE DEFAULT IS THE PATH THE IMPORTERS TAKE, and nothing drove it. Both call-site tests
    pass module_level=False, because that is what a test function needs — while the 29
    OPENDOX_WEB importers call require() with no argument at MODULE scope, where the skip
    must carry allow_module_level=True or pytest raises instead of skipping. A regression that
    stopped forwarding the default would have left every call-site test green and broken exactly
    the callers this guard exists for. One test now calls require() with no override and
    asserts the raised Skipped carries allow_module_level is True.
  • The declared-side inventory said "the two test_declared_pin_is_none_… cases" and there
    are five.
    It no longer states a number: the paragraph prints
    grep -c '^def test_declared_pin_is_none' and lets the command be the count. That is the
    second inventory in this file to stop carrying one — four rounds of this review have moved a
    number written in prose, which is a defect in the FORM, not in any one number.
  • The continuation under the installed-side inventory still said "the eleven above" one
    commit after that inventory became thirteen. "The cases above" now, for the same reason.
  • validate.yml:298 — ALREADY FALSE WHEN FILED. This description's current-head row read
    | 0b4e8bbf, current head 5285cf2 | 359 passed, 6 skipped | and its guard-test figure read
    42 at the moment of the review; the 40 / 357 pairs still in it are inside sections headed
    "Measured at 9ff630d", "at e92fb06" and "at 9ab8521" — each already scoped to the
    head it was measured at, which is what the comment asks for. Answered on the thread by
    quotation, resolved, no edit owed. Round 25 filed the same shape of finding against a
    description that had already been updated.

Measured at ca327c2: required invocation 359 → 360 passed / 6 skipped; probes
49 → 50 passed; views 41 passed, unchanged; guard tests 42 → 43;
grep -c '^def test_installed_commit' 13 (unchanged);
grep -c '^def test_declared_pin_is_none' 5. Diff vs main: 7 files, +1904 / −86.

The head stops moving here. Rounds 19-27 were one class (the reading's tolerance) and it
was closed at round 27; rounds 14, 17, 25, 27 and 28 were another (a count written in prose
going stale one round after it was written) and round 28 closes THAT one structurally, by
deleting the two numbers that kept going stale rather than by bumping them again. Any further
finding of either shape is answered by measurement in one comment and registered for the later
declared act on this file.

Copilot round 29 — a FAIL reached during an import is a collection error, not a failed test, at 894781e

Review 5228827546 at ca327c2: 🔵 "Broad dependency, provenance, and validation changes with
remaining measurement/documentation nits warrant final human review."
7/7 files, comments
generated 0 new
, threads 15 / 0, three suppressed. One accurate and fixed; two answered by
measurement here and on the PR, because each describes a contradiction the text does not contain.

FIXED — tests/opendox_bundle.py:566, and it is the sharpest reading of this guard anyone
has offered. require()'s docstring said pytest.fail "fails the test that reached the guard,
whichever flag was passed"
. It cannot, in the very case that paragraph is about: reached while a
module is being IMPORTED — the OPENDOX_WEB line through PEP 562's __getattr__, or a
module-scope composed() — the raise happens during COLLECTION and pytest reports that module as
a collection ERROR, not a failed test. The paragraph now says where a failure lands is decided by
where the guard was REACHED and never by module_level, and names both outcomes. Red either way,
which is the point.

FIXED, and it was this act's own — round 28's new test said "the 29 OPENDOX_WEB
importers"
, collapsing the TWO annotated forms into one: the exact collapse the review of
2dfd669 caught in opendox_bundle.py's annotation note. Measured —
grep -rn 'skips where the pin carries no bundle' tests/ --include='test_*.py' → 29 sites in
29 files
, of which 26 import OPENDOX_WEB (__getattr__ → a bare require()) and 3
call composed() (which calls a bare require() of its own). The docstring names both forms now.

ANSWERED, not edited:

  • "TWELVE cases … but this file defines 13 test_installed_commit… tests" — there is no
    contradiction. TWELVE cases cover the reading; the thirteenth,
    test_installed_commit_asks_for_the_opendox_distribution_and_no_other, covers which
    distribution is asked for
    , which is what _ASKED's own note exists to say. The twelve are
    enumerated in that paragraph and the grep -c printed beside it reports 13 by design.
  • "validate.yml:280 mixes two different test lists" — it does, deliberately and in terms. The
    block immediately below says the delta has two halves and that the seventeenth skip did not
    clear but left the list, which is exactly the accounting the comment asks for. Re-scoping
    the before-measurement to the new list would delete the record of what the drop did.

Measured at 894781e: required invocation 360 passed / 6 skipped, unchanged (this round
is prose only); probes 50 passed; guard tests 43. Diff vs main: 7 files, +1914 / −86.

Copilot round 30 — one stale headline in THIS description, fixed here

Review 5228891702 at 894781e: 🔵 "The broad dependency, CI, provenance, and test changes
warrant final human review; a minor skip-accounting wording nit remains."
7/7 files, comments
generated 0 new
, threads 15 / 0, one suppressed — accurate, and it was in this description
rather than in the tree.

The per-file table above was still headed "Seventeen skips cleared.", a headline that survived
Copilot's round-3 correction sitting two paragraphs above it, where this description already says
in terms that sixteen skips became passes and the seventeenth did NOT clear — it left
validate.yml's list. The headline now says what the table shows: sixteen cleared, one left the
list
. No tree change, no new head: 894781e stands, and validate is SUCCESS there (run
35155979036, the job's own line 360 passed, 6 skipped).

SonarCloud's one new finding, answered by measurement (advisory check)

SonarCloud's quality gate reports C Security Rating on New Code here, where it
passed on #15 — the previous bump of this very line. Its single new issue, read from
the API rather than from the badge:

VULNERABILITY / MAJOR — .github/workflows/validate.yml line 40:
"Omitting --only-binary :all: can lead to the execution of setup scripts. Make
sure it is safe here."

Line 40 is run: python -m pip install -e ".[test]", and this pull request does not
touch it.
Measured, not asserted: it is byte-identical to main, and the first
changed hunk in this file begins at line 95 (git diff origin/main...HEAD -U0 -- .github/workflows/validate.yml reports hunks at +95, +111, +137, +175, −217 and
nowhere near 40). It surfaces now only because Sonar's new-code window for a pull
request includes a file this PR edits, so a pre-existing line is re-reported; #15
never touched validate.yml at all, which is why it never saw this.

The rule cannot be satisfied here, and that is a property of the install, not a
choice.
--only-binary :all: forbids building from source, while this step is an
EDITABLE install (-e .) of this package plus a PEP 508 direct VCS reference
(opendox @ git+https://…) — both are source installs by definition. Adding the flag
would make validate fail to install anything at all. The install runs in GitHub's own
ephemeral runner against two repositories in this same organisation, pinned by exact
40-hex commit.

Three more Sonar findings arrived with the review rounds, and those were mine:
MAJOR code smells at tests/test_gate_loop_probes.py:695, :728 and :808, all
the same rule — "Split this composite assertion into separate assertions" — in
tests added by rounds 2 and 3. They are trivially right (a compound assertion
reports that the conjunction failed, never which half), so they are split at
42741fd
rather than argued with. 26 passed in that file either way.

SonarCloud is advisory here; validate is this leg's only required check, and it is
SUCCESS at this head.

What this does NOT do, by name

  • It does not un-narrow validate any further. RULED Q-L8 (b′) still holds
    the rest of the tree out, and this act narrows it by one file for that same
    ruling's reason.
  • It does not move any assembly or aggregation pin. opensoft/openDox,
    opensoft/openXdox and openxFactory's two pin contracts are pin lockstep Level the openXdox-code leg scaffold for the carve (OQ-O): the import root #3,
    claimed with this act and landing after it.
  • It does not touch tests/test_doxbench_mutation_boundary.py,
    tests/test_doxbench_turns.py or any other arrived carve row.
  • It does not repair README.md's line 40-43, which still says validate
    "runs only the scaffold's shape assertions". That went stale at slice S8
    (§ 3.4 S8 (leg A): 44 of the 46 bundle paths stop naming a directory this leg does not have #19 added nine carved suites), not at this pin, and it is registered here for
    a later declared act rather than smuggled into a pin bump. (validate.yml's
    own copy of that sentence IS corrected here — see round 9 — because this act
    already edits that file; README.md it does not.)
  • It does not repair the RUNTIME twin of round 11's ViewBinding finding.
    src/openxdox/view_extensions.py:411 builds view_extension.ViewBinding(**spec)
    and catches TypeError only, so an assembly whose view_extension carries no
    ViewBinding raises AttributeError there instead of the
    ViewContractUnsupported its own docstring promises for that case
    (:110-112). This act fixed the TEST guard Copilot reviewed; the runtime file is
    not among this PR's seven and a pin bump is not where a materialization path
    changes behaviour. Registered here for a later declared act.
  • It does not repair the 29 importer annotations that read
    # noqa: E402 (skips where the pin carries no bundle) — 29 sites in 29 files
    (grep -rn 'skips where the pin carries no bundle' tests/ | wc -l → 29), 0
    of them otherwise touched by this act, and all 29 declared as arrived rows
    in openxFactory's docs/opendox-carve-manifest.yaml. Editing them here would be
    an undeclared edit to a declared surface, which is the same ground on which
    test_doxbench_mutation_boundary.py is dropped rather than repaired. Copilot
    round 9's finding; recorded at the _absent() call site those annotations reach,
    and owed to a later declared act.

Gate

validate is this leg's only required check. Local evidence above; CI evidence
at the head of this PR.

🤖 Generated with Claude Code

…d), and sweep the claims the old pin left true

pyproject.toml:106 pins `opendox` at openDox-code main `0b4e8bbf68fabfcd
65d4f0d80e619c20a013e888` (#23, § 3.4 slice S8 leg B, 2026-09-16 01:23Z),
following the pin past `a99eba03` (#11, § 4.3 lazy proxy, pinned here by #15 on
2026-09-11). Owed twice in openxFactory#656's own record: the S5 LANDED note
5656797299 item 4, and pin lockstep #2's LANDED note 5689609863 residue item 1
— Copilot's suppressed finding on openxFactory#1054, that a `pip install` of
the pinned openXdox code resolves an older `opendox` than the lockstep
contract names.

MEASURED, in fresh venvs at each pin, under validate.yml's exact invocation
(python 3.12.3 / pytest 8.4.2):
  a99eba03  301 passed,  23 skipped
  0b4e8bbf  317 passed,   6 skipped
Seventeen skips cleared. The three S5 materialization assertions RUN and PASS
(test_gate_loop_views.py 32 passed / 3 skipped -> 35 passed / 0 skipped:
test_the_facet_conforms_to_the_view_extension_protocol,
test_the_column_collects_through_openDox_beside_its_own_routes,
test_every_region_this_column_names_is_a_declared_shell_region); the thirteen
node probes run (test_gate_loop_probes.py 0 passed / 13 skipped -> 13 passed);
the six remaining skips are the three seam suites' doc_health pairs, which no
pin bump touches.

ONE FILE LEAVES validate.yml's LIST, for the BUILD arc's defect and not this
bump's. tests/test_doxbench_mutation_boundary.py was named by S8 on the
measurement that it COLLECTS and then skips whole at tests/opendox_bundle.py's
module-level skip. With the bundle in the wheel that skip no longer fires, the
module runs on to its line 481 `from openxdox import gate_console` ->
src/openxdox/gate_console.py:63 `from doc_health import corpus`, and collection
ERRORS. It is dropped rather than repaired for the reason
tests/test_doxbench_turns.py is not named at all — naming it would put the
required check red for split-opendox § 3.5/3.6 (RULED Q-L8 (b')) — and because
it is an arrived carve row whose edits are declared at openxFactory.

THE SWEEP, whole-repository, distinguishing a stale CLAIM from a true statement
about the past. `git grep a99eba03` returns exactly one line, the pin itself;
no lockfile, requirements or constraints file exists, and no test asserts the
pin string. Six files carried sentences stating what IS pinned and are
corrected, each quoting its old wording as provenance rather than deleting it:
validate.yml (three blocks), src/openxdox/view_extensions.py's module
docstring, tests/opendox_bundle.py's docstring and _REASON,
tests/test_gate_loop_probes.py's docstring / fixture / skip,
tests/test_gate_loop_views.py's _view_extension_or_skip, and
tests/test_dependency_direction.py's two (one of them stale since #15 — it
called BUILD slice 2b's merge the commit "this file's pin now names"). Left
untouched as conditional or historical: ViewContractUnsupported and both
GateLoopViews.views() refusals (about an arbitrary assembly's openDox), and the
29 `# noqa: E402 (skips where the pin carries no bundle)` import comments across
29 files, every one of them a declared `openxdox_code` destination_path in
openxFactory's own carve manifest (checked against the 92, not inferred).

THE RATCHET IS RE-MEASURED, NOT CARRIED FORWARD: _back_import_census() against
the newly pinned tree returns exactly OPENDOX_BACK_IMPORTS' five rows —
0 import-time / 19 deferred, unchanged across two openDox slices.

WHOLE-TREE, the rehearsal lockstep #2's residue item 2 asks for
(pytest tests/ -q --noconftest --continue-on-collection-errors, both venvs):
  a99eba03  153 failed, 568 passed, 29 skipped, 127 errors
  0b4e8bbf  153 failed, 586 passed, 10 skipped, 128 errors
No new failure anywhere in the tree; the one new error is the file named above.

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

The PR bumps opendox from a99eba03 to 0b4e8bbf, activating the packaged web bundle and view registry so 17 targeted skips clear, while updating validation scope and sweeping stale pin-dependent claims. Compatibility guards remain for assemblies that install older openDox versions, and the mutation-boundary suite is removed from the required list because the bump exposes a pre-existing BUILD-arc doc_health collection error.

Sequence diagram for validation after the openDox pin bump

sequenceDiagram
    participant Validate
    participant Project
    participant OpenDox
    participant ViewTests
    participant ProbeTests
    participant MutationTest
    participant DocHealth

    Validate->>Project: install editable test dependencies
    Project->>OpenDox: resolve commit 0b4e8bbf
    OpenDox-->>Project: provide view_extension and web bundle
    Validate->>ViewTests: run test_gate_loop_views.py
    ViewTests-->>Validate: 35 passed, 0 skipped
    Validate->>ProbeTests: run test_gate_loop_probes.py
    ProbeTests-->>Validate: 13 passed, 0 skipped
    Validate->>MutationTest: collect test_doxbench_mutation_boundary.py
    MutationTest->>DocHealth: import corpus
    DocHealth-->>MutationTest: ModuleNotFoundError
    MutationTest-->>Validate: collection error, remove from required list
Loading

Flow diagram for the narrowed validation file list

flowchart TD
    Start["Run validate pytest file list"] --> Targeted["Run view and probe suites"]
    Targeted --> Passed["317 passed, 6 skipped"]
    Start --> Mutation["Collect mutation-boundary suite"]
    Mutation --> Missing["doc_health import fails"]
    Missing --> Removed["Exclude suite from required list"]
    Removed --> Build["Return with BUILD arc split-opendox work"]
Loading

File-Level Changes

Change Details Files
Advance the opendox dependency to the openDox-code revision that includes the view registry and packaged web bundle.
  • Replace the old Git commit pin with 0b4e8bbf.
  • Verify the new wheel contains view_extension.py and web/**, enabling previously skipped view and probe assertions.
pyproject.toml
Update validation workflow scope and documentation to reflect the new pin’s measured behavior.
  • Document the cleared skips and retain conditional skips for assemblies using older openDox versions.
  • Remove tests/test_doxbench_mutation_boundary.py from the required file list because the new bundle exposes an existing doc_health collection error from the BUILD arc.
  • Record that the file returns with the BUILD arc rather than repairing its declared carve surface.
.github/workflows/validate.yml
Sweep pin-dependent implementation and test commentary while preserving runtime compatibility with consumer assemblies using older openDox pins.
  • Replace stale claims about the leg’s pinned version with historical provenance and current measurements.
  • Keep late imports, bundle guards, and view-registry skips because assemblies may still install older openDox releases.
  • Update probe and bundle skip reasons to describe the actually installed dependency rather than this leg’s declared pin.
src/openxdox/view_extensions.py
tests/opendox_bundle.py
tests/test_gate_loop_probes.py
tests/test_gate_loop_views.py
Re-measure and clarify the openDox-to-openXdox dependency-direction ratchet at the new pin.
  • Document the pin history instead of claiming it still names the original slice 2b commit.
  • Confirm the census remains at 0 import-time and 19 deferred back-imports across five modules.
tests/test_dependency_direction.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.

🔵 Needs a closer look

Compatibility skips can mask regressions at the declared pin, and the dependency ratchet note needs correction.

Pull request overview

Updates the opendox pin to 0b4e8bbf and aligns validation coverage and documentation with the new view registry and web bundle.

Changes:

  • Enables view and web-bundle tests under the new pin.
  • Updates compatibility messages and dependency notes.
  • Removes the mutation-boundary suite from required validation due to its existing collection error.
File summaries
File Summary
tests/test_gate_loop_views.py Updates view-contract compatibility handling.
tests/test_gate_loop_probes.py Updates bundle probe documentation and skip logic.
tests/test_dependency_direction.py Refreshes dependency ratchet notes.
tests/opendox_bundle.py Updates bundle availability handling.
src/openxdox/view_extensions.py Updates view-contract documentation.
pyproject.toml Bumps the opendox dependency pin.
.github/workflows/validate.yml Adjusts validation coverage and expectations.
Review details

Suppressed comments (4)

tests/opendox_bundle.py:73

  • The new reason claims that a missing bundle means the installed opendox is older than the declared pin, but find() only checks for web/views/helpers.js and never identifies the installed commit. A packaging regression at 0b4e8bbf would therefore skip all bundle suites instead of failing. Please reserve this compatibility skip for a verified older consumer and fail for the declared pin.
    "the installed `opendox` carries no `web/` bundle, so there is nothing here "
    "to read. This leg's own pin is NOT the explanation any more: it names "
    "openDox-code#23 (`0b4e8bbf`), which is past openDox's packaging "
    "declaration (`[tool.setuptools.package-data] opendox = [\"web/**\"]`, "
    "openDox-code#20, § 3.4 slice S5), and under that pin this suite RUNS. "

tests/test_dependency_direction.py:336

  • The updated note says the ratchet was unchanged across two openDox slices, but this pin advances from a99eba03 through S5 (#20), S7 (#21), and S8 (#23) before 0b4e8bbf—three upstream landings. Please correct the count (or name the exact commits) so the measurement note accurately describes the range it covers.
#: rows below — so the ratchet neither fell nor rose across two openDox slices,

tests/test_gate_loop_probes.py:156

  • This branch only checks for the bundle marker, so it cannot establish that the installed commit is older than the declared pin as the new skip reason claims. If the 0b4e8bbf wheel loses web/, all thirteen required probes will skip and the regression stays green; please make the compatibility skip conditional on verified older provenance and fail for the declared pin.
            "the installed `opendox` carries no `web/` bundle, so there is "
            "nothing to assemble into. This leg's declared pin is NOT the "
            "explanation any more — it names openDox-code#23 (`0b4e8bbf`), "
            "which carries the bundle, and under it these probes run. Reaching "
            "this reason means the installed `opendox` came from somewhere "
            "older than the declared pin")

tests/test_gate_loop_views.py:639

  • This guard only checks whether the module imports, so a packaging/API regression in the newly declared pin could be classified as an older consumer and make all three required materialization tests skip. Please distinguish the declared pin from an explicitly older assembly and fail when the declared pin lacks the view contract; otherwise this bump can silently lose its coverage.
        "opendox.view_extension",
        reason="the assembled `opendox` has no `view_extension` module (§ 3.4 "
               "slice S3's view registry); the specs above are asserted as "
               "data, and the materialization is asserted wherever a "
               "contract-bearing opendox is installed")
  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

… fails instead of skipping, and the ratchet note's range is corrected

Copilot's round-1 review of #21 (5224499774, "Needs a closer look") opened ZERO
threads and filed FOUR SUPPRESSED COMMENTS in the body. All four are accurate and
all four are fixed here; three of them are one finding said three times.

THE FINDING. The new skip reasons this PR wrote claimed the installed `opendox`
"came from somewhere older than the declared pin", but the guards only tested for
a MARKER (`web/views/helpers.js`) or for importability — they never established
identity. Before the bump that cost nothing, because a missing bundle WAS the
declared state. After it the same skip hides the opposite fact: if `0b4e8bbf`
itself stopped shipping `web/**` or `view_extension`, thirteen node probes, three
materialization assertions and every bundle suite would go quietly green in a
REQUIRED check, and the coverage this bump exists to gain would be lost in silence.

THE FIX — the two facts are now READ, not asserted. `tests/opendox_bundle.py`
gains `declared_pin()` (the 40-hex out of this leg's own pyproject.toml) and
`installed_commit()` (out of the distribution's PEP 610 `direct_url.json`, which a
VCS install always records), and one decision used by all three sites:
  bundle/registry missing AND the two commits agree  -> FAIL, named a regression
  bundle/registry missing AND they differ            -> SKIP, both commits named
  provenance unrecorded                              -> SKIP, saying exactly that
`_REASON` is deleted with the branch it served: the reason is now composed from
what was just measured, so it cannot go stale the way the old string did.
`test_gate_loop_probes.py`'s `bundle` fixture and `test_gate_loop_views.py`'s
`_view_extension_or_skip` (which drops `importorskip`, the call that cannot tell
the two cases apart) both route through it.

PROVED BY SIMULATING BOTH REGRESSIONS, not by argument:
  declared pin loses `web/`            13 skipped  ->  13 errors
  declared pin loses `view_extension`   3 skipped  ->   3 failed
and the SKIP path still behaves for a genuinely older consumer: against a venv
holding `a99eba03` while pyproject declares `0b4e8bbf`, every reason reads "the
installed distribution was built from a99eba03, while pyproject.toml declares
0b4e8bbf". Under the declared pin: 317 passed / 6 skipped, unchanged.

THE FOURTH FINDING, a count of mine that was wrong. The ratchet note said the
table held "across two openDox slices". Two is the number of PIN BUMPS of this
file's declaration; the RANGE this bump covers is THREE openDox-code landings,
now named: from `a99eba03` (#11, § 4.3) across `8efb3cf5` (#20, S5 leg B),
`1e469713` (#21, S7) and `0b4e8bbf` (#23, S8 leg B). Both counts are stated so
neither can be read as the other.

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:11

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

Add focused provenance-branch tests and correct the stale probe documentation.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

tests/opendox_bundle.py:166

  • When installed_commit() is unavailable or its metadata is malformed, this branch skips instead of failing. That means the required validate job can still go green with a missing bundle/registry if direct_url.json is absent, so the new guard does not actually prevent the silent regression it is meant to catch. Keep the permissive behavior for ad-hoc older consumers, but make the required CI path assert provenance (or fail on unknown provenance) before allowing these suites to skip.
    where = (f"the installed distribution was built from {installed[:8]}, while "
             f"`pyproject.toml` declares {declared[:8]}"
             if declared and installed else
             "this installation records no PEP 610 provenance, so the two cannot "
             "be compared and nothing is claimed about which commit is installed")

tests/test_gate_loop_probes.py:37

  • This added module docstring still says a missing bundle makes every probe “SKIP ... never fails,” but the new _absent() path deliberately calls pytest.fail when the installed commit matches this leg’s declared pin. Please qualify this statement to say that only a different or unknown installation skips; otherwise the documented behavior contradicts the guard’s declared-pin regression check.
The skip below is kept for the case it was always really about: where the
installed `opendox` carries no bundle there is nothing to assemble INTO, and a
probe SKIPS with that reason named — never fails, and never silently passes
against a stand-in.
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread tests/opendox_bundle.py Resolved
…robe docstring stops contradicting the guard, and the guard's four branches get direct tests

Round 2 (5224608579 at 4a7ccb2, "Changes recommended") filed TWO suppressed
comments and ONE thread. All three are accurate and all three are fixed.

1. SUPPRESSED, tests/opendox_bundle.py:166 — "when installed_commit() is
   unavailable or malformed, this branch skips instead of failing … the required
   validate job can still go green with a missing bundle". Correct, and it is the
   exact silence the guard exists to break. `_absent()` now splits the unknown
   case by PATH: under CI it FAILS, off CI it still skips. The reason is not
   arbitrary — validate.yml installs `-e ".[test]"` against a PEP 508 direct VCS
   reference and pip records direct_url.json for that every time, so on the
   required path an unreadable provenance is itself the anomaly; on a developer
   box an editable checkout or a hand-placed wheel lawfully has none. `CI=true` is
   what GitHub Actions sets, and `under_ci()` reads exactly that.

2. SUPPRESSED, tests/test_gate_loop_probes.py:37 — the module docstring still said
   a probe "SKIPS … never fails", which the round-1 guard had already stopped
   being true. Rewritten to state both outcomes and which input chooses which.

3. THREAD PRRT_kwDOUPv7_s6i_iiz — "the new provenance decision is only exercised
   indirectly … there are no tests". Correct: round 1 proved it by hand, by
   renaming the installed bundle and re-running. SIX direct tests now pin all four
   branches plus `under_ci()`'s parsing and the fact that declared_pin() re-reads
   this leg's own pyproject rather than holding a constant. They live in
   test_gate_loop_probes.py, not a new file: a created file at this leg needs an
   admission row in openxFactory's docs/opendox-carve-admissions.yaml (RULED
   OQ-C), and adding one is not a pin bump's act — while this module is already
   admitted, already on validate.yml's list, and already owns the fixture the
   decision gates.

RE-PROVED BY SIMULATION, all four branches, with CI=true as the runner has it:
  declared pin loses web/                        13 skipped -> 13 errors
  declared pin loses view_extension               3 skipped ->  3 failed
  bundle missing + provenance unrecorded, CI      13 skipped -> 13 errors
  bundle missing + provenance unrecorded, off CI  13 skipped (unchanged, lawful)
Under the declared pin the required invocation is 317 passed / 6 skipped -> 323
passed / 6 skipped, the six being the new tests and nothing else moving.

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:19

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

Direct tests for PEP 610 provenance parsing are still needed, along with several documentation and measurement corrections.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

.github/workflows/validate.yml:203

  • The final count in this newly edited workflow block predates the six direct provenance-guard tests added to tests/test_gate_loop_probes.py below the existing probes. Because that file remains on the required list, the current invocation is 323 passed / 6 skipped, not 317 passed / 6 skipped; update this recorded measurement.
      # WITH IT GONE AND THE PIN MOVED, this invocation goes 301 passed /
      # 23 skipped -> 317 passed / 6 skipped. The 17 skips that cleared are the
      # 3 materialization assertions, the 13 node probes and this file's own
      # module-level skip; the 6 that remain are the three seam suites'
      # `doc_health` pairs, which no pin bump touches.

.github/workflows/validate.yml:203

  • The aggregate delta does not mean 17 skipped tests became passes: only 16 do (the 3 materialization assertions and 13 node probes). The mutation-boundary result becomes a collection error and is removed from this workflow list, so describing it as a cleared skip makes the measured transition inaccurate.
      # WITH IT GONE AND THE PIN MOVED, this invocation goes 301 passed /
      # 23 skipped -> 317 passed / 6 skipped. The 17 skips that cleared are the
      # 3 materialization assertions, the 13 node probes and this file's own
      # module-level skip; the 6 that remain are the three seam suites'
      # `doc_health` pairs, which no pin bump touches.

tests/opendox_bundle.py:136

  • This function's contract says callers skip rather than guess when provenance is absent, but _absent() intentionally fails closed under CI for None (lines 187-196). Align the docstring with the actual off-CI skip versus CI failure behavior so a future caller does not bypass the required-check safety rule.
    None is not "no provenance exists"; it is "this installation did not record
    one" — an editable checkout, a wheel copied in by hand. The callers treat it
    as unknown and skip rather than guess.

tests/opendox_bundle.py:149

  • The new fail-closed decision depends on parsing PEP 610 metadata here, but all six direct guard tests monkeypatch installed_commit() and therefore bypass this code. Add focused tests with a fake distribution covering a valid vcs_info.commit_id, missing/malformed direct_url.json, and non-VCS metadata; otherwise a parser regression can change the CI decision while the required tests remain green.
    try:
        from importlib.metadata import distribution
        raw = distribution("opendox").read_text("direct_url.json")
    except Exception:                        # pragma: no cover - not installed
        return None
    if not raw:
        return None
    try:
        commit = json.loads(raw).get("vcs_info", {}).get("commit_id")
    except (ValueError, AttributeError):     # pragma: no cover - malformed
        return None
    return commit if isinstance(commit, str) and len(commit) == 40 else None
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread tests/opendox_bundle.py Resolved
Comment thread tests/test_gate_loop_views.py Resolved
…uments stop contradicting the guard they describe

Round 3 (5224712952 at 7bd76b1, "Changes recommended") filed FOUR suppressed
comments and TWO threads. All six are accurate; none needed a design change.

1. SUPPRESSED, tests/opendox_bundle.py:149 — "all six direct guard tests
   monkeypatch installed_commit() and therefore bypass this code … a parser
   regression can change the CI decision while the required tests remain green."
   Exactly right: round 2's tests pinned the DECISION, nothing pinned the READING
   it decides on. SEVEN more tests now drive the parser itself through a fake
   distribution installed over `importlib.metadata.distribution`: a real
   `vcs_info.commit_id`, an absent direct_url.json, malformed JSON, a non-VCS
   (archive_info) install, a commit id that is not 40 hex, and no distribution at
   all — plus one that states in an assertion why the other six exist.

2. SUPPRESSED, tests/opendox_bundle.py:136 — `installed_commit()`'s docstring said
   callers "skip rather than guess" on None, which stopped being true when round 2
   made None FAIL under CI. Corrected, and it now points at `_absent()`'s table
   rather than restating it.

3. THREAD PRRT_kwDOUPv7_s6i_wED — the module's own decision table still said
   unreadable provenance always SKIPs. Rewritten to carry both rows.

4. THREAD PRRT_kwDOUPv7_s6i_wE8 — test_gate_loop_views.py's docstring said
   "different (or unrecorded) -> SKIP". The parenthesis was false for the same
   reason. Corrected, with the real table in place of it.

5-6. SUPPRESSED, .github/workflows/validate.yml:203, TWO findings on one block and
   both right. (a) the recorded count 317 predated the guard tests, which live in
   test_gate_loop_probes.py and are therefore on the required list: it is now 330.
   (b) "the 17 skips that cleared" conflated two different things. SIXTEEN skips
   became passes (3 materialization assertions + 13 node probes) — that is the
   bump's own effect. The seventeenth did NOT clear: it was
   test_doxbench_mutation_boundary.py's module-level skip, which at the new pin
   becomes a COLLECTION ERROR, so the file left the list and that skip is no
   longer RUN rather than cleared. The block now says all three numbers and which
   act each belongs to: 301/23 -> 317/6 by the bump, -> 330/6 with the 13 tests
   review rounds 2 and 3 asked for.

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:27
…venance tests

SonarCloud's quality gate on this PR now carries three MAJOR code smells, all in
tests added by rounds 2 and 3 of this review and all the same rule (S5754-class
"Split this composite assertion into separate assertions"): test_gate_loop_probes.py
:695, :728 and :808. They are mine and they are trivially right — a compound
assertion reports only that the conjunction failed, not which half — so they are
split rather than argued with. No behaviour changes; 26 passed in this file
either way.

SonarCloud's remaining finding is unchanged and is answered in the pull request
body: a VULNERABILITY at .github/workflows/validate.yml:40, a line byte-identical
to main and in no changed hunk of this PR, under a rule (--only-binary :all:)
that an editable install of a PEP 508 direct VCS reference cannot satisfy.
SonarCloud is advisory here; validate is the required check and is SUCCESS.

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.

🟡 Changes recommended

A moderate provenance-validation issue remains, along with two documentation/test nits.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

Previously missed (1) — in code that hasn't changed since the last review.

tests/opendox_bundle.py:163

  • installed_commit() only checks len(commit) == 40; it accepts any 40-character non-hex value even though the helper documents a 40-hex commit and the added test is named ...not_40_hex. A malformed PEP 610 record would then be treated as a different pin, allowing _absent() to skip a missing bundle under CI instead of failing. Validate the characters (and normalize case) before returning, and add a true 40-character non-hex regression case.

tests/test_gate_loop_probes.py:809

  • This assertion inspects implementation source text rather than behavior: it can pass with a broken parser that retains these strings in dead code, and it will fail a correct refactor that replaces the length check with proper hex validation. The parser cases above already exercise installed_commit() directly; remove this brittle sentinel or replace it with a behavioral regression case.
    malformed JSON, a non-VCS install, a too-short id, and no distribution at all.
    """
    import inspect
    source = inspect.getsource(_ob.installed_commit)
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/workflows/validate.yml Resolved
Copilot AI review requested due to automatic review settings September 16, 2026 15:32

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

One moderate provenance-validation issue and two documentation nits remain unresolved.

Review details

Suppressed comments (3)

Previously missed (1) — in code that hasn't changed since the last review.

tests/opendox_bundle.py:163

  • installed_commit() accepts any 40-character string as a valid commit, despite the guard and the new test describing a 40-hex Git identity. A malformed direct_url.json with a 40-character non-hex (or non-Git vcs_info) is therefore treated as a different pin, so _absent() skips under CI instead of failing closed—the silent-green case this provenance check is intended to prevent. Validate that the record is Git and that commit_id matches the 40-hex form, and add a non-hex fixture to the parser tests.

tests/opendox_bundle.py:266

  • The changed call now routes missing bundles through _absent(), which can fail for the declared pin (and for unknown provenance under CI), but require() still documents this path as “SKIP where the pin carries no bundle”; web() repeats the same unconditional wording. Update those helper docstrings so callers are not told that the required-path regression is a skip.
            _absent("openDox's `web/` bundle", module_level=module_level)

tests/test_gate_loop_views.py:618

  • This opening summary still says a missing registry is skipped, but the guard below now deliberately fails when the installed commit matches the declared pin and when provenance is unknown under CI. That contradicts the detailed decision table in the same docstring; make the summary describe the provenance-checked failure/skip outcome.
    """The assembled openDox's view registry, or SKIP where it has none.
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…and three summaries stop promising a skip the guard will not give

Review 5224863846 at 42741fd ("Needs a closer look") filed THREE suppressed
comments and left one thread open from the head before it. All four are accurate.

1. THE ONE THAT MATTERED, and it is the silent green reached through the PARSER
   rather than through the decision. `installed_commit()` accepted any forty
   CHARACTERS as a commit id, so a malformed `direct_url.json` carrying a
   forty-character non-hex value read as "a different pin" and `_absent()` SKIPPED
   under CI — exactly the outcome the provenance check exists to prevent. It now
   requires `vcs_info.vcs == "git"` AND a 40-lowercase-hex `commit_id`, and two
   more parser tests pin both refusals (a 40-character non-hex id, and a 40-hex id
   under a non-git VCS). The earlier fixtures gained the `vcs` field they were
   always describing.

2-4. THREE SUMMARIES still promising an unconditional skip while the code below
   them fails closed — the same defect this pull request exists to sweep for,
   three more times, in text I wrote two rounds ago: `require()`'s docstring,
   `web()`'s, and `_view_extension_or_skip()`'s opening line (which contradicted
   the decision table four paragraphs further down in its own docstring). All
   three now carry the outcome, because the summary is the line a reader trusts.

AND THE THREAD, PRRT_kwDOUPv7_s6i_8cx: the workflow said 330 while the PR
description still said 323 and "six" tests. The description was updated at
15:29Z; the workflow figure is now re-derived again as 332 / FIFTEEN, and the
block records the whole series — 317 -> 323 -> 330 -> 332, one step per round that
added tests — rather than a bare current number, so the next reader can see which
act each part belongs to.

MEASURED after all of it: the required invocation is 332 passed / 6 skipped, and
the guard still fails closed — with `CI=true` and `opendox/web` removed, the
thirteen probes are 13 errors, not 13 skips.

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:38

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

Unresolved moderate findings remain in parser test coverage and the source-text-coupled assertion.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (7)

Previously missed (2) — in code that hasn't changed since the last review.

tests/test_gate_loop_probes.py:833

  • This test is coupled to a comment rather than the parser: installed_commit() no longer contains a len(commit) == 40 expression, so inspect.getsource() passes only because the explanatory comment includes that text. It can therefore fail on a harmless refactor while adding no behavioral protection; the preceding parser cases already assert the actual result, so remove this source-text check or replace it with a behavior-based assertion.
    tests/test_gate_loop_probes.py:40
  • The new prose says that an unrecorded-provenance installation skips with both commits named, but the implementation cannot name an installed commit in that branch; it reports installed=unrecorded and only names the declared value. Distinguish the different-commit skip from the unknown-provenance skip so this contract is not misleading.

tests/opendox_bundle.py:50

  • This module-level explanation still claims that a missing bundle from an older source or stale editable checkout is an honest skip. _absent() only skips an unknown editable installation off CI; under CI it fails closed, and a different commit is not proven to be older. Qualify these cases so the module contract matches the required-path behavior.
THE SKIP STAYS, and it is not dead weight. An `opendox` installed from a source
older than the packaging declaration — a consumer assembling at its own pin, a
developer with a stale editable checkout — still carries no bundle, and the
honest outcome there is a SKIP, not a failure against a stand-in: a skipped
suite says "the pin is behind"; a failing one would say "the code is wrong", and

tests/opendox_bundle.py:212

  • This failure message is shared by missing-bundle checks and by _view_extension_or_skip() when the registry/API is absent, but it always claims that 13 node probes and every bundle suite would be skipped. When only view_extension or exports is missing, the bundle may still be present and those probes can run; make this message generic or scope the counts to the bundle subject.
            f"it fails here instead of skipping: a skip would take thirteen node "
            f"probes, three materialization assertions and every bundle suite "
            f"quietly green in a required check.")

tests/test_gate_loop_probes.py:827

  • The explanatory test below has eight parser-case tests, not six: the current block also covers a forty-character non-hex id and a 40-hex id under a non-git VCS. The docstring omits both cases, so update the inventory to keep the guard's claimed coverage accurate.
    `_absent()` branches on `installed_commit()`'s RETURN VALUE, so every test of
    the decision that monkeypatches that function proves nothing about the
    reading. These six cover the reading: a real VCS record, an absent file,
    malformed JSON, a non-VCS install, a too-short id, and no distribution at all.

tests/test_gate_loop_probes.py:160

  • This branch comment repeats an incomplete decision table: unknown provenance is not a SKIP-only-for-different-pin case. Off CI it skips, while under CI it fails closed; state that distinction here so the fixture's failure behavior is not misdocumented.
        # FAIL at the declared pin, SKIP only for a different one — the shared
        # rule in `tests/opendox_bundle.py::_absent`, which READS the installed
        # distribution's PEP 610 provenance instead of asserting it. Copilot's

tests/test_gate_loop_probes.py:818

  • _with_dist() always returns a _FakeDist, so this PackageNotFoundError is raised by read_text(), not by importlib.metadata.distribution("opendox"). Consequently the test named for an uninstalled package does not cover the distribution lookup failure path that installed_commit() catches; make the monkeypatched distribution callable itself raise PackageNotFoundError.
def test_installed_commit_is_none_when_the_package_is_not_installed(monkeypatch) -> None:
    from importlib.metadata import PackageNotFoundError
    _with_dist(monkeypatch, PackageNotFoundError("opendox"))
    assert _ob.installed_commit() is None
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread tests/test_gate_loop_views.py Resolved
…stalled-package path is actually exercised, and four more summaries stop over-promising

Review 5225005282 ("Changes recommended") filed SEVEN suppressed comments and one
thread. All eight are accurate. Two are real test defects; six are prose that
promised an outcome the guard does not give.

TEST DEFECTS
1. `test_a_parser_regression_would_now_be_caught…` asserted strings against
   `inspect.getsource(installed_commit)`. Once the implementation stopped
   containing `len(commit) == 40` it passed only because an explanatory COMMENT
   still held that text: coupled to source, fails on a rename, catches no
   behaviour. DELETED rather than repaired — the parser cases already assert the
   results it was gesturing at — and the section comment now carries the case
   inventory instead, accurately (NINE, not the "six" the deleted docstring
   claimed, which was the fifth suppressed comment).
2. `_with_dist(PackageNotFoundError(...))` made `read_text` raise, so the test
   named for an uninstalled package never exercised `distribution("opendox")`
   failing — the call `installed_commit()` actually guards. A new `_with_no_dist`
   makes the LOOKUP raise, and the read-raises case keeps its own test, so both
   paths are now covered instead of one being mistaken for the other.

PROSE, all of it mine from earlier rounds in this same review
3. `opendox_bundle.py`'s module docstring called an older source or stale editable
   checkout "an honest skip". Only two cases skip — a DIFFERENT recorded commit,
   and unrecorded provenance OFF CI — and "different" is all this guard proves:
   it measures disagreement, never an ordering. Rewritten to say exactly that.
4. `_absent()`'s failure message is shared with `_view_extension_or_skip()`, yet
   always claimed thirteen node probes and every bundle suite would go green. With
   only `view_extension` missing the bundle may be present and those probes run.
   The message now names its own `subject` instead of a fixed inventory.
5. The probes module docstring said the unrecorded case "SKIPS with both commits
   named" — it cannot name what it could not read. The three outcomes are now
   three bullets, and the unrecorded one says plainly that it names the declared
   commit and reports the installed one as unrecorded.
6. The `bundle` fixture's branch comment carried the same half-table. Fixed.
7. THREAD PRRT_kwDOUPv7_s6jAYwH — `_view_extension_or_skip`'s summary line, for
   the SECOND time: the first version omitted the failure, the replacement omitted
   the off-CI unrecorded skip. All four rows are on the line now. A half-table is
   how this sentence went wrong twice, so it no longer paraphrases the table.

MEASURED: the required invocation is 332 passed / 6 skipped, unchanged — one test
deleted, one added — so validate.yml's recorded figure needs no edit. Fail-closed
still holds: CI=true with `opendox/web` removed gives 13 errors, not 13 skips.

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

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

Moderate provenance-handling findings and related guard documentation inconsistencies remain unresolved.

Review details

Suppressed comments (13)

Previously missed (4) — in code that hasn't changed since the last review.

tests/opendox_bundle.py:229

  • When declared_pin() is unreadable but installed_commit() is valid, this branch still says the installation records no PEP 610 provenance. In that case the installed provenance is present; only the comparison is incomplete, so the message is misleading on the off-CI path.
    .github/workflows/validate.yml:117
  • The guard intentionally treats any non-equal commit as the consumer path; it does not inspect repository ancestry to prove that this installed openDox is older. This workflow summary should say 'different openDox' so it agrees with the decision table and its own distinction between identity and ordering.
    tests/opendox_bundle.py:117
  • The guard only compares the two 40-hex values for equality; it never establishes commit ancestry. Calling every differing commit an “older pin” contradicts the preceding explanation and is wrong for a newer or unrelated consumer. Describe this as a different installed commit instead.

This issue also appears on line 193 of the same file.
tests/test_gate_loop_probes.py:160

  • This fixture docstring still presents only “different consumer → SKIP” and “declared pin → FAIL”, but _absent() has two additional outcomes: unrecorded provenance skips off CI and fails under CI. The comment immediately below documents those rows, so the fixture summary should include them rather than leave an incomplete guard contract.

This issue also appears in the following locations of the same file:

  • line 160
  • line 696

tests/opendox_bundle.py:193

  • This is the same unsupported ancestry claim in the canonical decision table: _absent() only distinguishes equal from different commits, so it cannot know that the installed one is older. Please label the row as a different commit, matching the branch and the module-level explanation above.
    | different | SKIP — a consumer assembling at its own, older pin |

tests/opendox_bundle.py:142

  • declared_pin() promises to return None when the file is unreadable, but Path.read_text(encoding="utf-8") can raise UnicodeDecodeError, which is not an OSError. A malformed/non-UTF-8 pyproject.toml would therefore escape before _absent() can apply its explicit unknown-provenance CI/off-CI policy; catch the decoding error with the filesystem error.
    except OSError:                          # pragma: no cover - no checkout
        return None

tests/opendox_bundle.py:55

  • This summary overclaims what an off-CI unknown-provenance skip establishes. _absent() also skips when provenance is unavailable off CI, and that case explicitly says nothing about which commit is installed; only the differing-commit branch supports the “not the openDox we declare” conclusion. Please distinguish those two skip outcomes here.
declared pin included, and under CI unrecorded provenance included. A skipped
suite says "this is not the openDox we declare"; a failing one says "the openDox
we declare is wrong", and the guard's whole job is to tell those apart instead of
answering "skip" to both.

tests/opendox_bundle.py:150

  • None is also returned for malformed JSON, archive installs, non-git records, invalid hashes, and read/lookup failures (the parser cases below), not only when no provenance was recorded. Describing it as “did not record one” makes this helper's contract inaccurate; say that no usable provenance was read.
    None is not "no provenance exists"; it is "this installation did not record
    one" — an editable checkout, a wheel copied in by hand.

tests/opendox_bundle.py:251

  • This require() summary still omits one branch of _absent(): unknown provenance skips off CI. It currently says the only skip is a demonstrably different consumer, so callers reading this public helper can choose the wrong behavior; include the off-CI unknown-provenance outcome.
    where there is none, whatever `_absent()` decides: FAIL for the pin this leg
    DECLARES (and for unknown provenance under CI), SKIP for a demonstrably
    different consumer. It is not an unconditional skip, and this docstring said

tests/opendox_bundle.py:316

  • web() repeats the same incomplete decision summary: _absent() skips unknown provenance off CI as well as differing commits. Without that row, this helper's documentation contradicts the shared guard and the direct test for the off-CI branch.
    """The pinned bundle; where there is none, `_absent()`'s outcome scoped to
    the CALLING TEST rather than the module — a FAIL for the declared pin (or
    unknown provenance under CI) and a SKIP for a different consumer.

tests/test_gate_loop_probes.py:697

  • This test uses synthetic values ("a" * 40 and "b" * 40) and the implementation only checks inequality, so it does not establish that the second commit is older. Calling it an “older pin” makes the test documentation claim behavior the guard does not measure; describe it as a different pin.
def test_a_different_installed_commit_SKIPS_and_names_both(monkeypatch) -> None:
    """The lawful case: a consumer assembling at its own, older pin."""

tests/test_gate_loop_probes.py:160

  • _absent() receives only commit identities and never compares their ancestry, so this fixture can prove a different installed commit but not an older one. Calling it 'genuinely older' overstates the guard's evidence and contradicts the module's explicit 'different, never older' distinction.
    right outcome for a genuinely older consumer.

tests/test_gate_loop_probes.py:724

  • The test immediately accepts CI=1 and CI=yes as true at lines 725-726, so saying that nothing besides CI=true is treated as CI is inaccurate. Describe the accepted spellings or say that unrecognized values are treated as non-CI.
    """`CI=true` is what GitHub Actions sets; nothing else is treated as CI."""
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

… stated

Brett Heap ruled both of this act's open questions on 2026-09-16 by interactive
multi-choice, recorded on openxFactory#656 as comment 5700475319. Both answers are
what #21 already does, so nothing about the tree's behaviour changes — what
changes is that each decision now names the ruling that authorizes it, at the
place the decision is made rather than only in a pull request description that
will not travel with the file.

Q1, "tests/test_doxbench_mutation_boundary.py leaves validate.yml's list" ->
(a) DROP IT, "with the measurement and both grounds in the workflow comment; it
returns with the BUILD arc beside test_doxbench_turns.py". Cited in the
validate.yml block that drops it, which already carried the measurement (the
collection error at gate_console.py:63's `from doc_health import corpus`) and
both grounds (the BUILD arc's defect under RULED Q-L8 (b'), and the file being an
arrived carve row whose edits are declared at openxFactory).

Q2, "the three skip guards with stale reasons" -> (a) KEEP the guards and CORRECT
their reasons, "they test the ASSEMBLED openDox; a consumer may pin behind the
view contract". Cited at all three sites that hold that decision:
tests/opendox_bundle.py's "A SKIP STAYS" paragraph, tests/test_gate_loop_views.py's
_view_extension_or_skip, and tests/test_gate_loop_probes.py's bundle fixture.

Measured after the edit: 332 passed / 6 skipped under validate.yml's own
invocation, unchanged — these are comments.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tes in which the file is fine

Copilot review 5227875090: six suppressed comments, no threads. One is a message
that misdiagnoses, one is a test that proved the wrong branch, four are counts
this round's own predecessors moved.

  tests/opendox_bundle.py:458 — `_unreadable_side()` said "this leg's declared pin
  could not be read from pyproject.toml" for every None from `declared_pin()`.
  Only TWO of its six states are a failed read; the other four — no `opendox`
  requirement, a requirement that is not a 40-hex direct VCS pin, an environment
  marker that does not hold here, a pin at another project — happen with a
  perfectly readable file, and under CI that message told a reader to go looking
  for a corrupt `pyproject.toml`. It now says what is true of all six and points at
  `declared_pin()`, which enumerates them.

  tests/test_gate_loop_probes.py:1013 — the "unevaluable marker" case was
  `this is not a marker`, which `Requirement()` rejects outright: the test proved
  the InvalidRequirement branch and never reached `_marker_holds()`. It uses a
  SYNTACTICALLY VALID marker naming a variable this environment cannot resolve
  (`extra == "…"`), and the function's own three outcomes are asserted directly
  beside it.

  FOUR STALE MEASUREMENTS, all this act's own: validate.yml's per-file figure for
  test_gate_loop_probes.py (45 -> 47 passed, and "thirty-two" -> thirty-four guard
  tests in the same sentence), its parser inventory (FIVE legitimate declarations
  -> SEVEN: plain HTTPS, extras, an SSH authority `@`, a `;` path parameter, a
  `.git` suffix, a true marker, a mixed-case name), and opendox_bundle.py's "five
  review rounds, one per shape", which stopped being a fixed number two rounds ago.

The sixth suppressed comment says the PR description still opens with 39 guard
tests and 356 passes. It does not: the description was updated to 40 / 357 at
9ff630d's push (20:13Z) and the review read the snapshot before it. Measured, not
asserted — `gh pr view 21 --json body` at this head carries "with 40 tests holding
it there" and "current head `9ff630d` | 357 passed, 6 skipped". No edit owed.

MEASURED at this head: required invocation 357 passed, 6 skipped — unchanged, as a
round of messages and comments must be. Per file: test_gate_loop_probes.py 47
passed, test_gate_loop_views.py 41 passed. Guard tests 40. Diff vs main: 7 files,
+1752 / -86.

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 20: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

The parser must support valid VCS URL fragments, and the validation inventory needs the requested scope clarification.

Review details

Suppressed comments (2)

.github/workflows/validate.yml:67

  • This inventory calls all ten runtime suites “carved,” but test_gate_loop_views.py and test_gate_loop_probes.py both identify themselves as CREATED files with no carve-manifest row (their module headers). Please distinguish the eight arrived carved suites from these two created gate-loop suites so the validation scope is factually correct.
      #     the other TEN are carved suites that RUN here, and FOUR of them reach
      #     the PINNED openDox — in TWO DIFFERENT WAYS, which this line ran
      #     together until the review of `24cd5f2` on #21 measured them apart:

tests/opendox_bundle.py:235

  • Requirement.url can legally carry a VCS fragment such as git+https://.../openDox-code@<sha>#subdirectory=src, but this fullmatch requires the 40-hex commit to be the final characters and therefore returns None for that valid pinned dependency. _absent() then fails closed under CI (or skips off CI) instead of classifying a consumer at a different commit; the refusal loop even treats every #... tail as invalid. Strip/validate the supported VCS fragment before matching and add a regression case.
_URL_PIN_RE = re.compile(r"git\+\S+@([0-9a-fA-F]{40})")
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

… pin, and only two of the ten suites are actually carved

Copilot review 5228049032: two suppressed comments, no threads, both accurate.

  tests/opendox_bundle.py:235 — `#subdirectory=src` read as NO pin.
  `Requirement.url` legally carries pip's direct-reference fragment
  (`…@<sha>#subdirectory=src`, `#egg=opendox&subdirectory=src`), which says
  nothing about which commit is declared, and `fullmatch` required the forty hex
  to be the last characters of the url — so the guard failed CLOSED under CI on a
  declaration pip installs. `_without_fragment()` strips it before matching, and
  ONLY a `key=value` fragment: a bare `#feature` is a ref continuation, not a
  fragment, and stays in the refusal loop. Two acceptance cases added, the refusal
  case annotated with the distinction.

  .github/workflows/validate.yml:67 — "the other TEN are carved suites" is false,
  and the measurement is worse than the finding: of the ten runtime importers on
  this list, only TWO are ARRIVED carve rows (test_doxbench_abstract_store.py and
  test_doxbench_telemetry.py, each with a row in
  openxFactory `docs/opendox-carve-manifest.yaml`); the other EIGHT are CREATED
  files admitted by name in `docs/opendox-carve-admissions.yaml` — the two
  gate-loop suites of § 3.4 slice S5 and the three evidence / workbench /
  authority pairs. The distinction is load-bearing in this very act: an ARRIVED
  row's edits are declared at openxFactory, which is exactly why
  test_doxbench_mutation_boundary.py is dropped rather than repaired and why the
  29 importer annotations are left alone. Both registers are named with the
  command that re-derives each.

MEASURED at this head: required invocation 357 passed, 6 skipped — unchanged, as a
round of parser tolerance and prose must be (the two new cases are loop entries in
an existing test). tests/test_gate_loop_probes.py 47 passed. Guard tests 40. Diff
vs main: 7 files, +1791 / -86.

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 20:41

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

The provenance guard must validate the installed distribution’s repository source before treating a different commit as safe to skip.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

.github/workflows/validate.yml:355

  • The parser test below currently accepts nine legitimate declarations, not seven: in addition to the seven forms listed here, it covers #subdirectory=src and #egg=opendox&subdirectory=src at lines 1003-1004. This workflow inventory is stale and understates the coverage it claims to measure; update the count and list.
      #     test — eleven continuations against BOTH url shapes — and SEVEN
      #     legitimate declarations are still read in another (plain HTTPS · with
      #     extras · an SSH url whose AUTHORITY carries an `@` · a `;` path
      #     parameter · a `.git` suffix · a true environment marker · `OpenDox`
      #     spelled in mixed case, names being case-insensitive per PEP 503),

tests/test_gate_loop_probes.py:196

  • This explanation is now opposite to the guard it documents: when the installed commit equals the declared pin, _absent() fails rather than skipping (tests/opendox_bundle.py:452-480). If 0b4e8bbf loses web/**, these 13 probes therefore fail the required check; saying they would all skip and leave it green could mislead a future change back to the unsafe behavior.
        # #21 found this file claiming the install "came from somewhere older than
        # the declared pin" on a check that only tested for a marker; if `0b4e8bbf` itself ever stopped shipping `web/**`, all
        # thirteen probes below would have skipped and this required check would
        # have stayed green over the regression.
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread tests/opendox_bundle.py Resolved
…, and the workflow's parser inventory is measured again

Copilot review 5228136700: one thread + two suppressed comments, all three accurate.

  tests/opendox_bundle.py:400 (thread PRRT_kwDOUPv7_s6jHESs) — THE PROVENANCE
  CHECK WAS HALF A CHECK. The review of `0e3922d` made `declared_pin()` refuse a
  pin at another project, because comparing shas alone let a dependency
  re-pointed elsewhere read as the lawful "different commit" SKIP while this leg
  was no longer testing openDox-code at all. `installed_commit()` kept doing
  exactly that on the side that is actually IMPORTED: it returned
  `vcs_info.commit_id` and dropped `direct_url.json`'s `url`, so an `opendox`
  built from an unrelated repository at its own 40-hex commit still reached that
  skip. It reads the `url` now, through the same `_names_opendox_code()` the
  declared side uses, and a record naming another project is NO provenance —
  the fail-closed path under CI, not a silent green.

  ...and the too-strict half of it, which this arc has produced once per round:
  an INSTALLED record carries no `@<ref>` (PEP 610 keeps it in
  `requested_revision`), so stripping at the LAST `@` cut
  `ssh://git@github.com/opensoft/openDox-code` down to `ssh://git` and would have
  read a correct install as a different project. The ref is stripped
  positionally now — only an `@` after the final `/` can be one. A fork or a
  mirror still reads, RULED openxFactory#656 comment 5700475319; what is refused
  is a different PROJECT. Two tests: four refused sources (openXdox-code,
  openDox-spec, an `openDox-code-mirror` that is its own project, a file:// wheel)
  and six that must still read (HTTPS, `git+…​.git`, SSH with a `git@` authority,
  a fork under another account, a third-party mirror, a `#subdirectory=` fragment).

  .github/workflows/validate.yml:355 — the inventory said SEVEN legitimate
  declarations where the test drives NINE: the `#subdirectory=src` and
  `#egg=opendox&subdirectory=src` cases the review of `e92fb06` added one round
  earlier never reached it. Corrected and both named.

  tests/test_gate_loop_probes.py:196 — the fixture's counterfactual read as a
  claim about the CURRENT guard. It is about the marker-only check #21 replaced,
  and it now says so and says what the table does instead: at the declared pin
  those thirteen probes FAIL, which is the table's first row.

MEASURED at this head with the workflow's own invocation: required 357 -> 359
passed, 6 skipped (the two new source tests); tests/test_gate_loop_probes.py
47 -> 49 passed; tests/test_gate_loop_views.py 41 passed, unchanged;
`git diff main -- tests/test_gate_loop_probes.py tests/test_gate_loop_views.py |
grep -c '^+def test_'` 40 -> 42; `grep -c '^def test_installed_commit'
tests/test_gate_loop_probes.py` 11 -> 13. Every count this act states in the
workflow and in the two inventory blocks was re-derived at this head. Diff vs
main: 7 files, +1880 / -86.

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 21:41

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

The default module-level guard path lacks coverage, and several current validation counts are stale.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (2)

tests/test_gate_loop_probes.py:1317

  • The declared-side inventory still says there are two test_declared_pin_is_none_… cases, but the current module has five such tests (including the readable miss, marker, TOML parse, OS read, and UTF-8 cases). This makes the coverage summary inaccurate; update the count or name only the intended subset.
# above, by the two `test_declared_pin_is_none_when_…` cases.

tests/test_gate_loop_probes.py:1393

  • This call-site test always passes module_level=False, so it never exercises the default require() path used by the module-scope OPENDOX_WEB imports. A regression that stops forwarding the default module_level=True would leave the caller tests green; invoke require() without the override in the skip case.
        _ob.require(module_level=False)
  • Files reviewed: 7/7 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread .github/workflows/validate.yml Resolved
Comment thread tests/test_gate_loop_probes.py Resolved
…ntories stop carrying a number

Copilot review 5228713458: two threads + two suppressed comments. Three accurate, one
already false when it was filed.

  tests/test_gate_loop_probes.py:1393 (suppressed) — THE DEFAULT IS THE PATH THE
  IMPORTERS TAKE, and nothing drove it. Both call-site tests pass
  `module_level=False`, because that is what a test function needs; the 29
  `OPENDOX_WEB` importers call `require()` with no argument at MODULE scope,
  where the skip must carry `allow_module_level=True` or pytest raises instead
  of skipping. A regression that stopped forwarding the default would have left
  every call-site test green while breaking exactly the callers this guard
  exists for. One test drives `require()` with no override and asserts the
  raised `Skipped` carries `allow_module_level is True`.

  tests/test_gate_loop_probes.py:1317 (suppressed) — the DECLARED-side inventory
  said "the two test_declared_pin_is_none_… cases" and there are five (the
  readable miss, a false marker, a file that does not parse, the read raising, a
  non-UTF-8 file). It no longer says a number at all: the paragraph prints
  `grep -c '^def test_declared_pin_is_none'` and lets the command be the count.
  Four rounds of this review have moved a number that was written in prose; this
  is the second inventory in the file to stop carrying one.

  tests/test_gate_loop_probes.py:1335 (thread) — the continuation under the
  installed-side inventory still said "the eleven above" one commit after that
  inventory became thirteen. It says "the cases above" now, for the same reason.

  .github/workflows/validate.yml:298 (thread) — ALREADY FALSE WHEN FILED. The
  description's current-head row reads `0b4e8bbf, current head 5285cf2 | 359
  passed, 6 skipped` and its guard-test figure reads 42; the 40 / 357 pairs that
  remain in it are inside sections headed "Measured at 9ff630d", "at e92fb06"
  and "at 9ab8521" — each scoped to the head it was measured at, which is what
  the comment asks for. Answered on the thread by quotation; no edit owed. Round
  25 filed the same shape of finding against a description that had already been
  updated.

MEASURED at this head with the workflow's own invocation: required 359 -> 360
passed, 6 skipped; tests/test_gate_loop_probes.py 49 -> 50 passed;
tests/test_gate_loop_views.py 41 passed, unchanged; `git diff main -- <the two
test files> | grep -c '^+def test_'` 42 -> 43; `grep -c '^def
test_installed_commit'` 13, unchanged; `grep -c '^def test_declared_pin_is_none'`
5. Diff vs main: 7 files, +1904 / -86.

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 21:57

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

Broad dependency, provenance, and validation changes with remaining measurement/documentation nits warrant final human review.

Review details

Suppressed comments (3)

Previously missed (1) — in code that hasn't changed since the last review.

tests/test_gate_loop_probes.py:1310

  • The inventory says “TWELVE cases cover the reading of the INSTALLED side,” but this file currently defines 13 test_installed_commit... tests (the command at line 1328 also reports 13). Correct this count so the rationale does not contradict the measured parser inventory.

.github/workflows/validate.yml:280

  • This comparison mixes two different test lists: the 301/23 result includes test_doxbench_mutation_boundary.py, but that file has been removed from the list above. With the file dropped, the comparable old-pin result has 22 skips (and the pin-bump-only result is 317/6), so the stated transition and skip accounting are not measurements of the same invocation.
      # WITH IT GONE AND THE PIN MOVED, this invocation goes 301 passed /
      # 23 skipped -> 360 passed / 6 skipped, and BOTH HALVES OF THAT DELTA HAVE

tests/opendox_bundle.py:566

  • With module_level=True, require() can be reached from __getattr__ while a test module imports OPENDOX_WEB, so pytest.fail raises during collection and pytest reports a collection error rather than failing a test. Describing every FAIL as failing "the test" is inaccurate; distinguish the module-collection case from per-test calls.
    FAIL outcomes — the declared pin, and an unreadable side under CI — are not
    scoped by it at all: `pytest.fail` fails the test that reached the guard,
    whichever flag was passed. The review of `e6cd0e8` caught this paragraph
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…ror, not a failed test

Copilot review 5228827546: 0 new threads, three suppressed comments. ONE accurate
and fixed here; two answered by measurement on the PR, because both describe a
contradiction the text does not contain.

  tests/opendox_bundle.py:566 — ACCURATE, and the sharpest reading of this guard
  anyone has offered. `require()`'s docstring said `pytest.fail` "fails the test
  that reached the guard, whichever flag was passed". It cannot, in the case the
  same paragraph is about: reached while a module is being IMPORTED — the
  `OPENDOX_WEB` line through PEP 562's `__getattr__`, or a module-scope
  `composed()` — the raise happens during COLLECTION and pytest reports that
  module as a collection ERROR, not a failed test. The paragraph now says where a
  failure lands is decided by where the guard was REACHED and never by
  `module_level`, and names both outcomes. Red either way, which is the point.

  ...and the same review's finding turned on this act's own prose: the new
  default-path test said "the 29 `OPENDOX_WEB` importers", collapsing the TWO
  annotated forms into one — the exact collapse the review of `2dfd669` caught in
  `opendox_bundle.py`'s annotation note. Measured: `grep -rn 'skips where the pin
  carries no bundle' tests/ --include='test_*.py'` -> 29 sites in 29 files, of
  which 26 import `OPENDOX_WEB` (`__getattr__` -> bare `require()`) and 3 call
  `composed()` (which calls a bare `require()` of its own). The docstring says
  both now.

ANSWERED, NOT EDITED (both on the PR, with the measurement):
  * probes:1310 "TWELVE cases ... but the file defines 13" — there is no
    contradiction: TWELVE cases cover the READING and the thirteenth
    (`test_installed_commit_asks_for_the_opendox_distribution_and_no_other`)
    covers WHICH DISTRIBUTION IS ASKED FOR, which is why `_ASKED`'s own note
    exists. The twelve are enumerated in that paragraph and the `grep -c` beside
    it reports 13 by design.
  * validate.yml:280 "the comparison mixes two lists" — it does, deliberately and
    in terms: the block immediately below it says the delta has TWO HALVES and
    that the seventeenth skip did not clear but LEFT THE LIST, which is precisely
    the accounting the comment asks for. Re-scoping the before-measurement to the
    new list would delete the record of what the drop did.

MEASURED at this head: required 360 passed / 6 skipped, UNCHANGED (prose only);
tests/test_gate_loop_probes.py 50 passed; guard tests 43; diff vs main 7 files.

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 22:06
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@brettheap

Copy link
Copy Markdown
Contributor Author

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

Round 29 (review 5228827546 at ca327c2) — answered at 894781e. Three suppressed comments, no threads; one accurate and fixed, two answered by measurement.

Fixed — tests/opendox_bundle.py:566, and it is the sharpest reading of this guard in twenty-nine rounds. require()'s docstring said pytest.fail "fails the test that reached the guard, whichever flag was passed". It cannot, in the very case that paragraph is about: reached while a module is being imported — the OPENDOX_WEB line through PEP 562's __getattr__, or a module-scope composed() — the raise happens during COLLECTION, and pytest reports that module as a collection ERROR rather than a failed test. The paragraph now says where a failure lands is decided by where the guard was REACHED and never by module_level, and names both outcomes. Red either way, which is the point of the row.

Fixed, and it was this act's own prose. Round 28's new test said "the 29 OPENDOX_WEB importers", collapsing the two annotated forms into one — the exact collapse the review of 2dfd669 caught in opendox_bundle.py's annotation note. Measured: grep -rn 'skips where the pin carries no bundle' tests/ --include='test_*.py' → 29 sites in 29 files, of which 26 import OPENDOX_WEB (__getattr__ → a bare require()) and 3 call composed() (which calls a bare require() of its own). Both forms are named now.

Answered, not edited — tests/test_gate_loop_probes.py:1310. There is no contradiction between "TWELVE cases" and the thirteen test_installed_commit… functions. Twelve cover the reading and are enumerated in that paragraph; the thirteenth, test_installed_commit_asks_for_the_opendox_distribution_and_no_other, covers which distribution is asked for — a different property, added at the review of a0eed16 for a different reason, and the subject of _ASKED's own note directly below. The grep -c printed beside the paragraph reports 13 by design: it counts functions, and the sentence counts reading cases.

Answered, not edited — .github/workflows/validate.yml:280. The comparison does span two lists, deliberately and in terms. The block immediately below it says the delta has TWO HALVES and that the seventeenth skip did not clear but LEFT THE LIST — which is precisely the accounting this comment asks for, written that way at Copilot's own round-3 finding on this PR. Re-scoping the before-measurement to the new list (301 / 22) would delete the record of what the drop actually did, which is the one thing this block exists to preserve.

Measured at 894781e under validate.yml's own invocation: 360 passed, 6 skipped — unchanged, as a prose round must be. Probes 50 passed; guard tests 43; diff vs main 7 files, +1914 / −86.

On the shape of this review's remaining findings. Rounds 19-27 were one class (the reading's tolerance) and it was closed at round 27; rounds 14, 17, 25, 27 and 28 were another (a count written in prose going stale one round later) and round 28 closed it structurally, by deleting the two numbers that kept going stale rather than bumping them again. This act's rule is at most two head-moving rounds per finding class, so a further finding of either shape is answered by measurement in one comment and registered for the later declared act on this file rather than moving the head again.

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 broad dependency, CI, provenance, and test changes warrant final human review; a minor skip-accounting wording nit remains.

Review details

Suppressed comments (1)

.github/workflows/validate.yml:288

  • The workflow correctly records that only 16 skips became passes and that the seventeenth became a collection error and left the list, but the PR description still labels the per-file section “Seventeen skips cleared.” Please remove or reword that headline so the published skip accounting matches this measured block.
      #   * SIXTEEN skips became PASSES — the 3 materialization assertions in
      #     `tests/test_gate_loop_views.py` and the 13 node probes in
      #     `tests/test_gate_loop_probes.py`. That is the pin bump's own effect,
      #     and it is the whole point of the act.
      #   * The seventeenth skip did NOT clear. It was
  • Files reviewed: 7/7 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

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

Round 30 (review 5228891702 at 894781e) — accurate, and fixed in this description rather than in the tree. No new head.

The per-file table was still headed "Seventeen skips cleared." — a headline that survived your own round-3 correction sitting two paragraphs above it, where this description already says in terms that sixteen skips became passes and the seventeenth did not clear but left validate.yml's list (at the new pin tests/test_doxbench_mutation_boundary.py collects and then errors on doc_health, which is the BUILD arc's blocker, and RULED 5700475319 Q1 (a) drops it from the list rather than repairing an arrived carve row). The headline now reads "Where those seventeen skips went — sixteen cleared, one left the list", which is what the table under it shows.

Nothing in the tree changed, so 894781e stands: validate SUCCESS there, run 35155979036, the job's own line 360 passed, 6 skipped; review threads 15 / 0; every suppressed comment of all thirty rounds read from the review BODY and fixed or answered by measurement.

@brettheap
brettheap marked this pull request as ready for review September 17, 2026 12:24
@brettheap
brettheap merged commit 2529c10 into main Sep 17, 2026
2 of 3 checks passed

@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 21 hours and 19 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

brettheap added a commit that referenced this pull request Sep 17, 2026
… 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>
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>
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