Repository navigation
Bump opendox pin to openDox-code 0b4e8bbf (§ 3.4 slice S8 leg B landed), and sweep the claims the old pin left true - #21
Conversation
…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>
Reviewer's GuideThe PR bumps Sequence diagram for validation after the openDox pin bumpsequenceDiagram
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
Flow diagram for the narrowed validation file listflowchart 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"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🔵 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
opendoxis older than the declared pin, butfind()only checks forweb/views/helpers.jsand never identifies the installed commit. A packaging regression at0b4e8bbfwould 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
a99eba03through S5 (#20), S7 (#21), and S8 (#23) before0b4e8bbf—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
0b4e8bbfwheel losesweb/, 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>
There was a problem hiding this comment.
🟡 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 requiredvalidatejob can still go green with a missing bundle/registry ifdirect_url.jsonis 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 callspytest.failwhen 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
…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>
There was a problem hiding this comment.
🟡 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.pybelow 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 forNone(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 validvcs_info.commit_id, missing/malformeddirect_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
…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>
…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>
There was a problem hiding this comment.
🟡 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 checkslen(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
There was a problem hiding this comment.
🔵 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 malformeddirect_url.jsonwith a 40-character non-hex (or non-Gitvcs_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 thatcommit_idmatches 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), butrequire()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>
There was a problem hiding this comment.
🟡 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 alen(commit) == 40expression, soinspect.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=unrecordedand 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 onlyview_extensionorexportsis 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 thisPackageNotFoundErroris raised byread_text(), not byimportlib.metadata.distribution("opendox"). Consequently the test named for an uninstalled package does not cover the distribution lookup failure path thatinstalled_commit()catches; make the monkeypatcheddistributioncallable itself raisePackageNotFoundError.
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
…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>
There was a problem hiding this comment.
🔵 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 butinstalled_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 returnNonewhen the file is unreadable, butPath.read_text(encoding="utf-8")can raiseUnicodeDecodeError, which is not anOSError. A malformed/non-UTF-8pyproject.tomlwould 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
Noneis 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" * 40and"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=1andCI=yesas true at lines 725-726, so saying that nothing besidesCI=trueis 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>
There was a problem hiding this comment.
🔵 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.pyandtest_gate_loop_probes.pyboth 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.urlcan legally carry a VCS fragment such asgit+https://.../openDox-code@<sha>#subdirectory=src, but thisfullmatchrequires the 40-hex commit to be the final characters and therefore returnsNonefor 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>
There was a problem hiding this comment.
🟡 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=srcand#egg=opendox&subdirectory=srcat 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). If0b4e8bbflosesweb/**, 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
…, 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>
There was a problem hiding this comment.
🟡 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 defaultrequire()path used by the module-scopeOPENDOX_WEBimports. A regression that stops forwarding the defaultmodule_level=Truewould leave the caller tests green; invokerequire()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
…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>
There was a problem hiding this comment.
🔵 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 importsOPENDOX_WEB, sopytest.failraises 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>
|
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Round 29 (review Fixed — Fixed, and it was this act's own prose. Round 28's new test said "the 29 Answered, not edited — Answered, not edited — Measured at 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. |
There was a problem hiding this comment.
🔵 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
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Round 30 (review 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 Nothing in the tree changed, so |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 21 hours and 19 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
… field later openXdox-code main took two commits under this branch — #21's `opendox` pin bump to openDox-code `0b4e8bbf` (§ 3.4 slice S8 leg B) and #20's ending-replay removal — and this pull request read CONFLICTING, which runs no required check at all. ONE FILE CONFLICTED, `src/openxdox/view_extensions.py`, and only its module docstring: #21 rewrote the lateness paragraph because the pin it names is no longer behind the view registry (`view_extension` is importable at `0b4e8bbf` and `ViewBinding` takes `exports`, so the three materialization assertions RUN instead of skipping), while this branch's copy still described the old pin and added `styles` to it. MAIN'S TEXT IS TAKEN — it is the corrected provenance — and this act's sentence is folded into it one field later: the `styles` field RULED Q7 adds lands in openDox-code's own Q7 leg (#27), which this pin does not yet name, which is why `views()` FEATURE-DETECTS it and why the four contributed sheets are INERT until the pin advances again. Nothing else in this file conflicted: `STYLE_RESIDUE`, the Q7 ruling-ledger line and the `open_coupling` register merged clean, and so did `pyproject.toml`'s package data and `tests/test_gate_loop_views.py`. MEASURED ON THE MERGED TREE with `.github/workflows/validate.yml`'s own pytest invocation, run exactly as the workflow runs it after `pip install -e ".[test]"`: **372 passed, 6 skipped**. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…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>




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.pyleavesvalidate.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 thevalidate.ymlblock that drops it — which already carried the measurement (thecollection error at
gate_console.py:63) and both grounds (the BUILD arc'sdefect under RULED Q-L8 (b′); the file being an arrived carve row whose edits are
declared at openxFactory).
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, andtests/test_gate_loop_probes.py'sbundlefixture.Measured after the citations went in: 332 passed / 6 skipped, unchanged — they
are comments.
What this is
One line of
pyproject.tomlmoves; every sentence in this repository that wastrue 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
f6f1b991caught it disagreeing withvalidate.yml's own record of the samething (thread
PRRT_kwDOUPv7_s6jBAXA, resolved). The workflow was right and thisline was stale; both now derive it the same way:
Seven files, +1914 / −86 (
git diff --shortstat main), and the shape of thatis 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:106pinsopendoxat openDox-code0b4e8bbf68fabfcd65d4f0d80e619c20a013e888—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 materializationassertions 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 suppressedfinding on openxFactory#1054, accurate and pre-existing: "a
pip installofthe pinned openXdox code cannot resolve an older
opendoxthan the lockstepcontract names." It was not fixable inside a pin-mechanics commit; this is
the declared act it was registered for.
What the new
opendoxcarries that the old one did notThree openDox-code landings sit between
a99eba03and0b4e8bbf, each recordedon openxFactory#656:
[tool.setuptools.package-data] opendox = ["web/**"]8efb3cf556567972991e46971356884980490b4e8bbf5690615323Measured directly in the installed wheel rather than inferred: at
a99eba03there is no
opendox/view_extension.pyand noopendox/web/; at0b4e8bbfboth 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.jsonasserted, so the number belongs to the commit named):a99eba03(before)0b4e8bbf, the bump alone (708591b)0b4e8bbf, current head894781eThe 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 → 6is not "seventeen skips cleared":probes. That is the bump's own effect.
tests/test_doxbench_mutation_boundary.py's module-level skip; at the new pinthat file becomes a collection error and leaves
validate.yml's list, so theskip 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:
a99eba030b4e8bbftests/test_gate_loop_views.pytests/test_gate_loop_probes.pytests/test_doxbench_mutation_boundary.pyThe 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 asthree,
3 passed in 0.11s.The six skips that remain are the three
*_seam.pysuites'doc_healthpairs. They are BUILD-arc (
split-opendox§ 3.5/3.6), and no pin bump touchesthem.
The one file that leaves
validate.yml's list, and why it is not this bump's defecttests/test_doxbench_mutation_boundary.pywas added to the required check byslice 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 onto its line 481
from openxdox import gate_console→src/openxdox/gate_console.py:63 from doc_health import corpus.doc_healthisopenxFactory's own corpus machinery, present at neither leg. Under the exact
invocation that is a collection error that interrupts the whole run:
It is dropped from the list, not repaired, on two grounds already written
into this workflow:
tests/test_doxbench_turns.pyis deliberately unnamed because "naming itwould 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. Thisfile now fails for exactly that reason and nothing else.
Deferring its
gate_consoleimport would be an undeclared edit to a declaredsurface, 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 oneline: the pin itself,
pyproject.toml:106. (At THIS head the same grep returns13 lines in 6 files and none in
pyproject.toml: every one is a provenancequotation 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 itis read at.) There is no lockfile, no
requirements*.txt, noconstraints*.txt,no test asserting the pin string (measured:
git ls-files | grep -iE "lock|requirements|constraints"is empty, and the onlyopenDox-code@referenceanywhere 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:
pyproject.toml.github/workflows/validate.ymltest_gate_loop_views.pyblock.github/workflows/validate.ymltest_gate_loop_probes.pyblock.github/workflows/validate.ymlsrc/openxdox/view_extensions.pyopendox.view_extensiondoes not exist there"tests/opendox_bundle.pyopendoxcarries no bundle"tests/opendox_bundle.py_REASONtests/test_gate_loop_probes.pytests/test_gate_loop_probes.pybundlefixture + its skiptests/test_gate_loop_views.py_view_extension_or_skip's two reasonsopendoxolder than the § 3.4 slice S3 view registry"; "the pin bump … is owed at landing"tests/test_dependency_direction.pyMUST_CONSUME_OPENDOXcommentopendoxolder than the view registry itself"tests/test_dependency_direction.pyOPENDOX_BACK_IMPORTSnote0f1f2e59; the same defect class Copilot found on #1054, found here by sweeping rather than by a later reviewEvery 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_pathamong the manifest's 92openxdox_coderows, 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=Aagrees: four at #18/S5,opendox_bundle.pyat #19/S8,test_dependency_direction.pyat #7/§ 4.1,validate.ymlat #1. So no edithere is an undeclared edit.
LEFT — true as written.
ViewContractUnsupported's docstring and bothGateLoopViews.views()refusalmessages ("Pin an openDox at or after the S5 view contract…"). They are about
whatever
opendoxan assembly installed, not about this leg's pin, andthat condition still exists — a consumer is free to pin an older openDox.
For the same reason the two skips in
_view_extension_or_skipand the one inthe
bundlefixture are kept, not deleted: they are the test-timecounterpart of that runtime refusal. Their reasons were the bug, not their
existence.
# noqa: E402 (skips where the pin carries no bundle)importcomments, 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.yamland comparing against the92 rows whose
destinationisopenxdox_code, all 29 are among them(
destination_pathmatch, not a name grep).tests/test_gate_loop_views.py:191'simportorskip("route_extension", reason="…supplied by the pinned opendox wheel")— verified importable at bothpins (
route_extension.pyis a top-level module of the wheel).The ratchet was re-measured, not carried forward
tests/test_dependency_direction.py'sOPENDOX_BACK_IMPORTSis a ratchet overthe pinned openDox, and the suite refuses a silent improvement as well as a
regression. Recomputed by
_back_import_census()against the newly pinned treeit 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 acrosstwo 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:a99eba030b4e8bbf(at9ff630d)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 collectionerror named above), and
diffof the two sorted collection-error lists returnsexactly 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 theBUILD arc's
doc_health/ideation_dashboardblockers, identical at both pins.Copilot round 1 — four suppressed comments, all accurate, all fixed at
4a7ccb2Review
5224499774at708591bbwas "🔵 Needs a closer look" with 0 threadsand 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 somewhereolder 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
0b4e8bbfitself ever stoppedshipping
web/**orview_extension, thirteen node probes, three materializationassertions 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.pygains
declared_pin()— the 40-hex out of this leg's ownpyproject.toml— andinstalled_commit()— out of the distribution's PEP 610direct_url.json, which aVCS install always records — and one decision that all three sites now use:
_REASONis deleted with the branch it served: the reason is now composed from whatwas just measured, so it cannot go stale the way the old string did.
test_gate_loop_views.py::_view_extension_or_skipdropspytest.importorskip,which is precisely the call that cannot tell the two cases apart.
Proved by simulating both regressions, not by argument:
opendox/web/removedopendox/view_extension.pyremovedand the SKIP path still behaves for a genuinely older consumer: against a venv
holding
a99eba03whilepyproject.tomldeclares0b4e8bbf, every reason reads"the installed distribution was built from a99eba03, while
pyproject.tomldeclares 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) across8efb3cf5(#20, S5 legB),
1e469713(#21, S7) and0b4e8bbf(#23, S8 leg B). Both counts are now statedso neither can be read as the other.
Copilot round 2 — two suppressed comments and one thread, all fixed at
7bd76b1Review
5224608579at4a7ccb2— "🟡 Changes recommended", 2 suppressedcomments + 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
validatejob could still go green with thebundle missing if
direct_url.jsonwere absent._absent()now splits that caseby path: under CI it FAILS, off CI it still skips. The split is not
arbitrary —
validate.ymlinstalls-e ".[test]"against a PEP 508 direct VCSreference and pip records
direct_url.jsonfor that every time, so on the requiredpath an unreadable provenance is itself the anomaly; on a developer box an editable
checkout or a hand-placed wheel lawfully has none.
under_ci()readsCI, which iswhat 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 1proved 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 livethere 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=trueas the runner has it:7bd76b1opendox/web/opendox/view_extension.pyUnder 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
296bda7Review
5224712952at7bd76b1, "🟡 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 changethe 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 realvcs_info.commit_id, an absentdirect_url.json, malformed JSON, a non-VCS(
archive_info) install, a commit id that is not 40 hex, and no distribution atall — 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.
tests/opendox_bundle.py:136NoneNonefail under CItests/opendox_bundle.py:115(thread…wED)tests/test_gate_loop_views.py:641(thread…wE8).github/workflows/validate.yml:203317 passed.github/workflows/validate.yml:203Both threads replied to and resolved (
discussion_r4027761575,discussion_r4027761841). Threads 3 / 0 unresolved.The review at
42741fd— three suppressed comments, all fixed at7c0a3b6One 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.jsoncarrying 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-hexcommit_id, and two moreparser 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 decisiontable 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=trueandopendox/webremoved, the thirteen probes are 13 errors, not 13 skips.
The review at
7c0a3b6— seven suppressed comments and a thread, all fixed at27a89fdReview
5225005282. Two are real test defects; six are prose I wrote in earlierrounds of this same review, promising outcomes the guard does not give.
Two test defects, both worth having found:
test_a_parser_regression_would_now_be_caught…asserted strings againstinspect.getsource(installed_commit). Once the implementation stoppedcontaining
len(commit) == 40, it passed only because an explanatory commentstill 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).
_with_dist(PackageNotFoundError(...))maderead_textraise, so the testnamed for an uninstalled package never exercised
distribution("opendox")failing — the call
installed_commit()actually guards. A new_with_no_distmakes 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.
opendox_bundle.pymodule docstring_absent()'s failure messagesubjectbundlefixture's branch comment_view_extension_or_skip's summary line (thread…AYwH)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=truewithopendox/webremoved gives 13 errors.Threads 5 / 0 unresolved.
One review was answered late, and that is recorded rather than hidden
Review
5224807459(at296bda7) was cut short by GitHub's secondary rate limiterbefore it could be read, and both of its findings were then fixed under later rounds
without being named. Both are closed:
installed_commit()only checkslen(commit) == 40… validate the characters(and normalize case)" — the character validation and the 40-character non-hex
regression case landed at
7c0a3b6; the normalization isb177eef. Bothreaders 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.
deleted at
27a89fd, where the same finding arrived again.The review at
27a89fd— thirteen suppressed comments, and the structure changed atf6f1b99Review
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 sitepoints at it rather than restating it:
require(),web(), the probes fixtureand 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 commitidentities 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'sdocstring 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()caughtOSError, butPath.read_text(encoding="utf-8")raisesUnicodeDecodeError, which is aValueError. A non-UTF-8pyproject.tomlwould have escaped the function entirelyand bypassed
_absent()'s unknown-provenance CI policy. Now caught with thefilesystem error.
Three contracts that were wrong about themselves: the unreadable-side skip
blamed the installation even when the install was fine and
pyproject.tomlwasthe unreadable side (now names whichever side is missing, with a new test);
installed_commit()'sNonemeant far more than "did not record one" (now "nousable provenance was read", with the list); and
under_ci()'s test docstringsaid "nothing else is treated as CI" while the body accepted
1,trueandyes.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=truewithopendox/webremoved → 13 errors).Copilot round 8 — four suppressed comments and the last open thread, all fixed at
399e2a9Review
5225285200atf6f1b991, "🟡 Changes recommended — Five final reviewcomments 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()returningNonewhen readingpyproject.tomlraises — and every test of the decision monkeypatches
declared_pin(), sodeclared=Nonehad only ever been supplied as an INPUT and never once produced bythe function. Two cases now drive it through a
Path.read_textpatch scoped topyproject.toml:test_declared_pin_is_none_when_the_read_raises(OSError) andtest_declared_pin_is_none_when_pyproject_is_not_utf_8(UnicodeDecodeError). Thesecond guards the bug found two rounds ago —
UnicodeDecodeErroris aValueError,not an
OSError— so theexceptclause 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 intoone. 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) andtests/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 atb177eefnever reached the inventory, and the paragraph under it numbered thedeleted 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 coverclaims removed, the same defect class caught incode rather than prose:
declared_pin()'s read,installed_commit()'s lookup and itsJSON 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()'sModuleNotFoundErrorstays— no test uninstalls
opendox.Measured at
399e2a9: the required invocation is 336 passed / 6 skipped (334before; 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
8b23f6fReview
5225684154at399e2a9, "🔵 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 stillopened 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.pyparse withast) and eleven import a runtimemodule —
test_domain_profile.pyon its § 4.4 grounds, plus ten carved suites thatRUN, 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 nothingabout 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 hasapplied 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 samereason. Measured:
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.pyis dropped fromvalidate.ymlratherthan repaired. Recorded at the
_absent()call site those annotations reach, with thecommands above, and registered as residue 4 below. Nothing is concealed by the wait:
a
# noqajustification is not the outcome, and the outcome those files get is composedfrom 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
24cd5f2Review
5225817509at8b23f6f, "🔵 Needs a closer look — Three moderate call-sitecoverage 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 nothingabout whether the three callers still ask it. Copilot's own sentence: "changing this
new call back to an unconditional
pytest.skipwould leave the 19 guard tests green whilethe
OPENDOX_WEBimporters silently skip under CI." That is the silent green this actexists 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:
tests/opendox_bundle.py::require(:375)find()→None,_STAGEDresettests/test_gate_loop_probes.py::bundle(:185)request.getfixturevalue("bundle")tests/test_gate_loop_views.py::_view_extension_or_skip(:669)ViewBindingwithoutexportsTwo details are load-bearing rather than incidental.
require()stages once perprocess, and every other suite in the run has already filled
_STAGED— withoutresetting it the test never reaches the branch and proves nothing. And making
from opendox import view_extensionraise needs both thesys.modulesentry set toNoneand the package attribute deleted; either alone leaves the import succeeding.The second views branch — the registry present, RULED Q2's
exportsfield gone — is theshape 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):
Copilot round 11 — seven suppressed comments and one thread, all answered at
cb84001Review
5225945364at24cd5f2: 🟡 "Final review comments include unresolved criticaland 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, andthe finding is exact. When
declared_pin()is the unreadable side andinstalled_commit()read fine, the message said "this run cannot say whichopendoxisinstalled" — 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 (declaredunreadable · 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 thesame wording (findings at
:77and 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 agetattrfor theANNOTATIONS but dereferenced the CLASS directly, so an assembly shipping the module
without
ViewBindingraisedAttributeErrorinstead of taking the declared FAIL/SKIP —and that assembly is exactly what
view_extensions.ViewContractUnsupportednames asunsupported ("an assembly that pins an openDox without
view_extension.ViewBinding",src/openxdox/view_extensions.py:110-112). The class is read withgetattrnow, missingis routed into
_absent(), and a new test drives it.3.
tests/test_gate_loop_views.py:834— the test bypassed the helper it tests. Theexportstest importedfrom opendox import view_extensiondirectly, so a consumer at adifferent commit without the module would have hit
ImportErrorinside the very test thatproves 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 grammarcomment are one edit.
_absent()compares identities and never asks git which camefirst — the docstring called
b*40 an "older assembly" and read "keeps still holds". Itis 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 pinnedcoverage, 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 openDoxPYTHON 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). Aregression 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; thedelta 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 / 615passed / 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:Copilot round 12 — five suppressed comments, no new thread, all fixed at
d8e8605Review
5226412781atcb84001: 🟡 "Two moderate caller-coverage gaps remain intests/test_gate_loop_views.py, alongside minor documentation inconsistencies." 7/7files, 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). Thepoint is the one round 10 made one level further in: "replacing this
_absent()call withan 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_OTHERand asserting the SKIP names both commits:test_a_ViewBinding_without_exports_SKIPS_for_a_different_installed_commitandtest_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 quotationof 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 aDIFFERENT 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 31now 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 thefinding is exact. "
git grep -n a99eba03returns exactly one line" was measured againstmain, then left unqualified while this very act added thirteen provenance quotations ofthat commit. Both measurements are stated now:
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 messagesays +1193: that shortstat was taken before the same commit's
validate.ymlcommentblock; 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
b22a6fdReview
5226574758atd8e8605: 🟢 "Approval recommended — The remaining comments aredocumentation wording corrections and do not block approval." 7/7 files, comments
generated 0 new, 2 suppressed, and one thread (
PRRT_kwDOUPv7_s6jDaA0) repeating thefirst of them. Nothing substantive was enumerated.
:833"keeps still holds" — round 11 replaced the phrase's neighbour and left theword 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-caseifstarting 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
a0eed16Review
5226685677atb22a6fd: 🔵 "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:1024quoted 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.pyas it was written;validate.yml's record blockcarries the total).
tests/test_gate_loop_views.py:787said the guard has TWO refusal branches. It hashad three since
cb84001— module absent ·ViewBindingabsent ·ViewBindingwithout RULED Q2's
exports. All three are listed now, each with the note that it isdriven 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
e6cd0e8Review
5226786313ata0eed16: 🔵 "One moderate parser-test coverage issue and twodocumentation 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 askedabout, and that is a real gap. Both fakes for
importlib.metadata.distributionansweredto any name, so a regression to
distribution("openxdox")— or to any other installeddistribution — would have read a STRANGER's
direct_url.json, compared that commit againstthis 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_otherrecords the lookupand asserts it is exactly
["opendox"].2.
validate.yml:72— the inventory this round-11 finding produced was itself halfwrong.
test_gate_loop_views.pynever callsfind(),require()or thebundlefixture: it imports
opendox_bundlefor_absent()— the CLASSIFIER — and reaches the pinthrough
opendox.view_extension. So ONE suite reads the pinned web bundle (probes) andTHREE 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 saidcb84001/ 346. Itsays
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
fd3af6aReview
5226898698ate6cd0e8: 🔵 "Broad dependency and validation changes withunresolved 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=Trueskips theIMPORTING MODULE" as though the flag governed every outcome. It scopes the skip and
nothing else:
pytest.failfails the test that reached the guard, whichever flag waspassed.
:434(web) closed with "skips whole" / "skips the three tests" under an openingthat had already delegated the outcome to
_absent(). The rule now names the SCOPE andleaves the outcome to the table.
:113said 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:38saidViewContractUnsupportednames theconsumer-behind-contract condition, full stop.
GateLoopViews.views()catches twoshapes — module absent (ImportError),
ViewBindingthat will not take this column's fields(TypeError) — and a module carrying no
ViewBindingat all still raisesAttributeErrorat
:411. The paragraph now says which shapes the runtime names, points at the test-timeguard that classifies the third since
cb84001, and points at this description's "Whatthis 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
de7d966Review
5227017752atfd3af6a: 🔵 "The broad dependency and validation changes, plusremaining 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.:1044recordedgrep -c '^def test_installed_commit'→ 10; the file holds 11.:898said the name-less fakes "would have left all ten parser tests green" — it nowsays every parser test THEN STANDING, all ten, and names the eleventh as the one this
finding produced.
:1068said "(25 and 6 as this was written)"; at this head it is 26 and 6, withthe breakdown measured rather than asserted — 11 decision/read cases, 11
installed_commitparser 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
8b9ece1Review
5227126546atde7d966: 🔵 "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 isthe 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
Nonefrom the same function, and nothing proved the policy still catchesit. Two tests, on a new
_with_pyproject_texthelper that lets the file read CLEANLY: thefunction returns
Nonefor a pyproject declaringopenDox-code@main, and_absent()thenFAILS under CI naming the declared side while still printing the installed commit.
2.
tests/opendox_bundle.py:15andvalidate.ymlcarried two different S8 censuses —47 sites and 46. openXdox-code#19's LANDING settled it (
main 0a0265f, "RE-DERIVED ATLANDING, 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 slashform, counted over the REVISIONS with
git grep, never a worktree — it is 46 spellingsover 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. Therecorded 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 thecurrent one) — 28 there (13 decision/read cases,
11
installed_commitparser tests, 4 call-site tests) plus 6 in the views file.Copilot round 19 — the parser finding with the widest blast radius, fixed at
2dfd669Review
5227217096at8b9ece1: 🟡 "The critical pin-parsing finding remains unresolved,along with a documentation nit." 7/7 files, one thread and one suppressed comment.
_PIN_REaccepted a 40-hex PREFIX of a longer ref, and that is a wrong-commit bug, not amissed one. With no delimiter after
{40}, any ref merely BEGINNING with forty hexcharacters —
…@<40-hex>dead,…@<40-hex>x— yielded that prefix as "the commit this legdeclares". 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 thatagainst 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'sdeclared_pin()read, and now this).The pattern ends
([0-9a-fA-F]{40})(?![0-9a-zA-Z]), so a continuing ref reads as no pinand takes the fail-closed path under CI. The class is
0-9a-zA-Zrather than hex on purpose:a branch ending in
xis no more a pin than one ending indead. 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:631still said "BOTH GUARDSARE 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 guardsuites 84 passed; whole tree 153 failed / 622 passed / 10 skipped / 128 errors,
failures/skips/errors unchanged. Diff vs
main: 7 files, +1438 / −86. Guard tests36 — 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
a9264b8Review
5227336506at2dfd669: 🟡 "An unresolved moderatedeclared_pin()parsing issueand 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 wrongSHAPE of guard.
…@<sha>-feature,…@<sha>/branch,…@<sha>_suffixand…@<sha>.1areall 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 canlegitimately follow the sha inside
pyproject.toml— and anything else means the refCONTINUES, so there is no pin on that line and
declared_pin()returnsNone, thefail-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.pywere wrong, and both are measured apart now.:413said 29 files carryfrom opendox_bundle import OPENDOX_WEB. The ANNOTATION is on29 files; that import form is on 26
(
grep -rln '^from opendox_bundle import OPENDOX_WEB' tests/ --include='test_*.py'), andthe other 3 —
test_doxbench_transport.py,test_session_confinement.py,test_staging_workbench.py—import opendox_bundleand callcomposed()at modulescope. Both forms are named.
:378said thirty suites take the module-level skip. It is twenty-nine — the same26 + 3 — and
test_doxbench_turns.pyis not among them: it callsweb()per test, whichis 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 — thisround 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, at52453afReview
5227455153ata9264b8: 🟡 "Unresolved moderate parsing findings remain intests/opendox_bundle.py, along with documentation and measurement nits." 7/7 files, onethread 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:
8b9ece1…@<sha>dead2dfd669-feature,/branch,_suffix,.1a9264b8,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 withtomllib, walksproject.dependencies, andfullmatches each requirement (minus any PEP 508 environmentmarker): 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.TOMLDecodeErrorjoinsOSErrorandUnicodeDecodeErrorin the same refusal — a file thatdoes not parse declares nothing and must fail closed, which is the
27a89fdfinding oneparser 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 percase, because a helper writing broken TOML would make
declared_pin()returnNonefor thewrong 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.py35 passed,test_gate_loop_probes.py13 passed) are708591b's pin-bump-only measurements, readas 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 intests/opendox_bundle.py's list above the working pattern, each labelled with the reviewthat found its hole. Replied and resolved.
Measured at
52453af: required invocation 355 passed / 6 skipped (353 before; thedelta 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 at18e8c12Review
5227561395at52453af: 🔵 "A moderate parser issue affecting valid SSH VCS URLsremains 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@, soopendox @ git+ssh://git@github.com/opensoft/openDox-code@<40-hex>— a PEP 508 declarationpip 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 underfullmatchit backtracks to the LAST@that leaves forty hexand 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:52said the bundle's arrival means "the suites that importOPENDOX_WEBrun instead of skipping".test_doxbench_mutation_boundary.pyimports ittoo, and with that skip gone it runs on to
gate_console→doc_healthandCOLLECTION-ERRORS — which is exactly why RULED
5700475319drops it from the list. Thesentence says the old missing-bundle skip no longer fires, and names that file.
tests/test_gate_loop_views.py:651still said "these two guards"; there have beenthree refusal branches since
cb84001, all enumerated below it.Measured at
18e8c12: required invocation 355 passed / 6 skipped, unchanged — around 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
OpenDoxstill is, at0e3922dReview
5227642836at18e8c12: 🔵 "Moderate issues remain in PEP 508 marker handling andcase-insensitive package-name parsing." 7/7 files, comments generated 0 new, threads
11 / 0. Two real parser defects, pulling in opposite directions.
requirement.split(";")[0]took the specand dropped the condition, so
opendox @ git+…@<sha> ; python_version < "3.0"— a line pipinstalls NOTHING from — read as "the commit this leg declares". Whatever
opendoxwasactually installed would then disagree with it and take the different-commit SKIP, over
a real regression.
_marker_holds()evaluates it withpackaging.markersnow, and anunevaluable marker reads as FALSE: a condition this environment cannot judge is not a
declaration this run can rely on, and every
Nonelands on the fail-closed path.this leg's own dependency census normalizes with
.lower()), and this estate spells itopenDoxhalf the time — soOpenDox @ git+…@<sha>read as no pin and failed the guardCLOSED 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 testdrives five — plain HTTPS, extras, an SSH url whose authority carries an
@, a truemarker, 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; thedelta 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 tests39 — 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
9ff630dReview
5227760657at0e3922d: 🟡 "One critical provenance-validation issue and twomoderate 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 SHASONLY, 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()nowrequires the declared url's repository to be openDox-code (case-insensitive;
.gitand RFC3986
;paramstolerated), and anything else reads as no pin, the fail-closed path. AFORK or MIRROR under another account still reads — an assembly may install openDox from its
own remote, which is the consumer RULED
5700475319protects — and five urls drive exactlythat line. Replied and resolved.
partition(";")truncated a legal url, the same root one level down: a semicolon is alegal URI path character, so
git+https://host/repo;component@<sha>lost its pin and theguard failed closed on a declaration pip installs.
packaging.requirements.Requirementparses 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.tomlwith a synthetic one declaring a DIFFERENT commit andasserts that commit comes back, which only a real read can do.
Measured at
9ff630d: required invocation 357 passed / 6 skipped (356 before; thedelta 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 tests40 — 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
e92fb06Review
5227875090at9ff630d: 🔵 "Two moderate review findings remain, alongside stalemeasurement 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 frompyproject.toml" for everyNonefromdeclared_pin(). Only TWO of its six states are afailed read; the other four — no
opendoxrequirement, a requirement that is not a 40-hexdirect 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 atdeclared_pin().tests/test_gate_loop_probes.py:1013— the unevaluable-marker case proved the wrongbranch.
this is not a markeris rejected byRequirement()outright, so the test neverreached
_marker_holds(). It uses a syntactically valid marker naming an unresolvablevariable now, and
_marker_holds()'s own three outcomes are asserted beside it.validate.yml's per-file figure fortest_gate_loop_probes.py(45 → 47 passed, and "thirty-two" → thirty-four guardtests in the same sentence), its parser inventory (five → seven legitimate
declarations: plain HTTPS · extras · SSH authority
@·;path parameter ·.gitsuffix· true marker · mixed-case name), and
opendox_bundle.py's "five review rounds, one pershape", 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 andthe review read the snapshot before it;
gh pr view 21 --json bodyat that head alreadycarried both figures. No edit owed, and it is recorded here rather than silently skipped.
Measured at
e92fb06: required invocation 357 passed / 6 skipped, unchanged — around 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
9ab8521Review
5228049032ate92fb06: 🔵 "The parser must support valid VCS URL fragments, andthe validation inventory needs the requested scope clarification." 7/7 files, comments
generated 0 new, threads 12 / 0, two suppressed — both accurate.
#subdirectory=srcread as NO pin.Requirement.urllegally carries pip'sdirect-reference fragment (
…@<sha>#subdirectory=src,#egg=opendox&subdirectory=src),which says nothing about which commit is declared, while
fullmatchrequired the forty hexto 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 akey=valuefragment: a bare
#featureis a ref continuation, not a fragment, and stays in the refusalloop.
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 arow in openxFactory's
docs/opendox-carve-manifest.yaml. The other eight are CREATEDfiles 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.pyis dropped rather than repaired and why the 29importer 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 twonew 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
5285cf2Review
5228136700at9ab8521: 🟡 "The provenance guard must validate the installeddistribution's repository source before treating a different commit as safe to skip."
7/7 files, comments generated 1, two suppressed — all three accurate.
PRRT_kwDOUPv7_s6jHESs,tests/opendox_bundle.py:400). Round 24 madedeclared_pin()refuse a pin at anotherproject, 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_idand droppeddirect_url.json'surl, so anopendoxbuilt from an unrelated repository at its own 40-hex commit still reached that skip. It
reads the
urlnow, through the same_names_opendox_code()the declared side uses, anda record naming another project is NO provenance — the fail-closed path under CI.
record carries no
@<ref>(PEP 610 keeps it inrequested_revision), so stripping at theLAST
@cutssh://git@github.com/opensoft/openDox-codedown tossh://gitand wouldhave 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, RULEDopenxFactory#656 comment 5700475319; what is refused is a different PROJECT. Two tests:
four refused sources (openXdox-code, openDox-spec, an
openDox-code-mirrorthat is its ownproject, a
file://wheel) and six that must still read (HTTPS,git+….git, SSH with agit@authority, a fork under another account, a third-party mirror, a#subdirectory=fragment).
validate.yml:355said SEVEN legitimate declarations where the test drives NINE — the#subdirectory=srcand#egg=opendox&subdirectory=srccases round 26 added one roundearlier never reached the inventory. Corrected, both named.
tests/test_gate_loop_probes.py:196's counterfactual read as a claim about the currentguard. 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; probes47 → 49 passed; views 41 passed, unchanged; guard tests 40 → 42;
grep -c '^def test_installed_commit' tests/test_gate_loop_probes.py11 → 13. Diff vsmain: 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, atca327c2Review
5228713458at5285cf2: 🟡 "The default module-level guard path lacks coverage, andseveral current validation counts are stale." 7/7 files, comments generated 2, two
suppressed. Three accurate; the fourth was already false when it was filed.
pass
module_level=False, because that is what a test function needs — while the 29OPENDOX_WEBimporters callrequire()with no argument at MODULE scope, where the skipmust carry
allow_module_level=Trueor pytest raises instead of skipping. A regression thatstopped 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 andasserts the raised
Skippedcarriesallow_module_level is True.test_declared_pin_is_none_…cases" and thereare 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 thesecond 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.
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 read42 at the moment of the review; the
40 / 357pairs still in it are inside sections headed"Measured at
9ff630d", "ate92fb06" and "at9ab8521" — each already scoped to thehead 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; probes49 → 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 vsmain: 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
894781eReview
5228827546atca327c2: 🔵 "Broad dependency, provenance, and validation changes withremaining 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 anyonehas offered.
require()'s docstring saidpytest.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_WEBline through PEP 562's__getattr__, or amodule-scope
composed()— the raise happens during COLLECTION and pytest reports that module asa 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_WEBimporters", collapsing the TWO annotated forms into one: the exact collapse the review of
2dfd669caught inopendox_bundle.py's annotation note. Measured —grep -rn 'skips where the pin carries no bundle' tests/ --include='test_*.py'→ 29 sites in29 files, of which 26 import
OPENDOX_WEB(__getattr__→ a barerequire()) and 3call
composed()(which calls a barerequire()of its own). The docstring names both forms now.ANSWERED, not edited:
test_installed_commit…tests" — there is nocontradiction. TWELVE cases cover the reading; the thirteenth,
test_installed_commit_asks_for_the_opendox_distribution_and_no_other, covers whichdistribution is asked for, which is what
_ASKED's own note exists to say. The twelve areenumerated in that paragraph and the
grep -cprinted beside it reports 13 by design.validate.yml:280mixes two different test lists" — it does, deliberately and in terms. Theblock 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 roundis 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
5228891702at894781e: 🔵 "The broad dependency, CI, provenance, and test changeswarrant 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 thelist. No tree change, no new head:
894781estands, andvalidateis SUCCESS there (run35155979036, 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:
Line 40 is
run: python -m pip install -e ".[test]", and this pull request does nottouch it. Measured, not asserted: it is byte-identical to
main, and the firstchanged hunk in this file begins at line 95 (
git diff origin/main...HEAD -U0 -- .github/workflows/validate.ymlreports hunks at +95, +111, +137, +175, −217 andnowhere 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.ymlat 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 anEDITABLE install (
-e .) of this package plus a PEP 508 direct VCS reference(
opendox @ git+https://…) — both are source installs by definition. Adding the flagwould make
validatefail to install anything at all. The install runs in GitHub's ownephemeral 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:
MAJORcode smells attests/test_gate_loop_probes.py:695,:728and:808, allthe 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
42741fdrather than argued with. 26 passed in that file either way.SonarCloud is advisory here;
validateis this leg's only required check, and it isSUCCESS at this head.
What this does NOT do, by name
validateany further. RULED Q-L8 (b′) still holdsthe rest of the tree out, and this act narrows it by one file for that same
ruling's reason.
opensoft/openDox,opensoft/openXdoxand 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.
tests/test_doxbench_mutation_boundary.py,tests/test_doxbench_turns.pyor any other arrived carve row.README.md's line 40-43, which still saysvalidate"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'sown copy of that sentence IS corrected here — see round 9 — because this act
already edits that file;
README.mdit does not.)ViewBindingfinding.src/openxdox/view_extensions.py:411buildsview_extension.ViewBinding(**spec)and catches
TypeErroronly, so an assembly whoseview_extensioncarries noViewBindingraisesAttributeErrorthere instead of theViewContractUnsupportedits own docstring promises for that case(
:110-112). This act fixed the TEST guard Copilot reviewed; the runtime file isnot among this PR's seven and a pin bump is not where a materialization path
changes behaviour. Registered here for a later declared act.
# 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), 0of 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 bean undeclared edit to a declared surface, which is the same ground on which
test_doxbench_mutation_boundary.pyis dropped rather than repaired. Copilotround 9's finding; recorded at the
_absent()call site those annotations reach,and owed to a later declared act.
Gate
validateis this leg's only required check. Local evidence above; CI evidenceat the head of this PR.
🤖 Generated with Claude Code