Repository navigation
release-tag-publication keeps the findings a later Skip used to discard (#766) - #871
Conversation
…rd (#766) THREE ARMS INSIDE THE GRADING LOOP RETURNED A SKIP AND TOOK THE REPOSITORY'S FINDINGS WITH IT. `check_repo` answers `Skip | list[Finding]`, so a `return Skip(...)` below the loop's first `findings.append` discarded `findings` whole: `:1405` where a bundle's published refs are unlistable, `:1440` where the refs for a bundle NAMED as a superseding bundle are unlistable, and `:1490` where the earliest commit declaring a bundle cannot be resolved. What died there was the raw-HTML `error`, every accepted-SPENT `info`, every LIGHTWEIGHT or MISPLACED `error` raised for a bundle the loop reached BEFORE the failing one — and, since `amend-absent-changelog-is-an-answer`, the established-absence `info` a promoted `AND` requires be recorded "BESIDE the grading rather than INSTEAD of it". THE SKIP IS KEPT AND THE FINDINGS TRAVEL WITH IT. `_PartialSkip` is a `Skip` by inheritance carrying `findings`, and `_skip` returns the byte-identical plain `Skip` where nothing was established, so the arms that carry nothing are unchanged down to their type. `fam_release_tag_publication` records the reason exactly as before and reports the carried findings under the same repository; the wholly-skipped action line is unchanged, and a partial skip gets one that does not claim the repository went unevaluated. NO RATIFIED SENTENCE MOVES, WHICH IS WHY NOTHING UNDER `openspec/` IS TOUCHED. *Version control cannot answer* still gets its skip, in its own words. A partial skip is still counted in `skips`, so the family-level `Skip` on `len(skips) == len(scoped)` is untouched and `validate-release-tag-gate.py` — which runs this family over ONE repository — still refuses at `gate-unaskable`, as *The cut-time check cannot ask the family's question* requires. The amended `AND` and the skip scenarios are satisfied TOGETHER rather than in the alternative. THE RESIDUE IS DISCLOSED. Where the skipping repository is the only one in scope — the gate, and a `--single-repo` run — the family still answers with a bare family-level `Skip`. Widening THAT is the ruling #766 records as the wider remedy and is not taken here. Seven regression tests: one per arm over a repository that had established something, the family entry reporting both, and three controls that must not move — the plain `Skip` where nothing was carried, the gate's fail-closed on a lone partial skip, and the wholly-skipped action wording. The first four fail against the unfixed module. Refs #766 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…cation-late-skips
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-1 (openXfactory-1) @codex review |
Reviewer's GuideThe fix makes mid-loop repository skips carry findings already established before the failure, then reports those findings beside the existing skip reason while preserving repository-level stopping, family skip accounting, gate fail-closed behavior, and wholly-skipped compatibility; comprehensive regression tests cover the three failure arms and unchanged contracts. Sequence diagram for preserving findings on a repository skipsequenceDiagram
participant Family as fam_release_tag_publication
participant Check as check_repo
participant Git
participant Report as Results
Family->>Check: check_repo(repo, repo_path, git, threshold)
loop bundles in scope
Check->>Git: _tag_state(...) or distance_from_tip(...)
Git-->>Check: unlistable or unresolved
Check-->>Family: _PartialSkip(reason, findings)
end
Family->>Family: append outcome.reason to skips
Family->>Report: add skip finding and carried findings
Family-->>Family: preserve family-level Skip accounting
Flow diagram for release-tag publication skip handlingflowchart TD
A[check_repo grades bundles] --> B{Question becomes unaskable?}
B -- No --> C[Return findings]
B -- Yes, findings exist --> D[Return _PartialSkip with reason and findings]
B -- Yes, no findings --> E[Return plain Skip]
D --> F[fam_release_tag_publication records skip reason]
D --> G[Reports carried findings beside skip]
E --> H[Reports unchanged wholly-skipped action]
F --> I{All scoped repositories skipped?}
G --> I
H --> I
I -- Yes --> J[Return family-level Skip; gate fails closed]
I -- No --> K[Return aggregated findings]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped, preserves existing skip contracts via inheritance, and is backed by focused regression tests covering both the defect paths and key non-regression behaviors.
Pull request overview
This PR fixes a reporting-loss bug in the release-tag-publication doc-health family where a repository-level Skip returned from inside the bundle-grading loop discarded findings that had already been established earlier in the same check_repo run. The change preserves those earlier findings by carrying them alongside the skip, while keeping existing “skip semantics” intact for callers (including the fail-closed gate behavior).
Changes:
- Introduce
_PartialSkip(aSkipsubclass) plus_skip()helper to optionally attach already-established findings to a skip without changing skip type checks. - Update the three late-return skip arms inside
check_repoto return_skip(..., findings)so prior findings survive. - Extend
fam_release_tag_publicationto emit carried findings alongside the recorded skip-reason finding, and add regression tests covering each arm and key non-regressions (plain skip type, gate fail-closed, unchanged wholly-skipped wording).
File summaries
| File | Description |
|---|---|
| scripts/doc_health/release_tag_publication.py | Adds _PartialSkip/_skip and wires them into the three late-skip arms; updates family aggregation to report carried findings next to the skip reason. |
| tests/doc-health/test_release_tag_publication.py | Adds targeted regression tests ensuring late skips preserve established findings and that non-regression skip/gate behaviors remain unchanged. |
Review details
- Files reviewed: 2/2 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.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4d93e6583
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… them (#766) CODEX P1 ON PR #871, AND IT IS RIGHT ABOUT THE TOPOLOGY THAT MATTERS. `len(skips) == len(scoped)` is reached far more often than "nothing in scope was askable at all" suggests. `--single-repo` puts ONE repository in scope, and on the aggregation nightly NINE of the ten governed repositories skip for carrying no `contracts/manifest.yaml` at all — the state this module's own comment records at openxFactory #612 — so ONE flaky ref read on the tenth satisfies the condition and the whole family's report for that night was abandoned at this return. The first commit therefore repaired the loop and left the loss standing one layer up, in exactly the failure mode it was written for. THE ANSWER IS STILL A SKIP, WHICH IS THE PART THAT MUST NOT MOVE. `validate-release-tag-gate.py` refuses at `gate-unaskable` on `isinstance(outcome, Skip)` and goes on doing so unchanged, as *The cut-time check cannot ask the family's question* requires of the enforcing moment. `_skip` carries the findings on it rather than dropping them, so a consumer that fails closed on a skip is untouched and a consumer that renders the report has them in hand. WHAT REMAINS IS ONE LINE OUTSIDE THIS FIX'S AUTHORIZED SURFACE, and it is recorded rather than taken: `runner.py:247` appends a family-level `Skip` to `RunResult.skips` and extends no findings from it, so a carried set reaches the renderer only once that line also reads `out.findings`. It is disclosed on the pull request and left to the lane's word. Refs #766 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…cation-late-skips
…hem (#766) THE LAST LAYER THE LOSS HAD LEFT, AND IT IS THE ONE THE PREVIOUS COMMIT DISCLOSED. `run_suite` appended a family's `Skip` to `RunResult.skips` and extended `RunResult.findings` from nothing, so a `Skip` that CARRIES findings — `release_tag_publication._PartialSkip`, the shape the two commits before this one created for exactly the case where the question stops being askable after some repositories have already established something — died one line above the loop that had just been repaired to keep it. That line now also reads what the skip carries. THE SKIP STATE DOES NOT MOVE, WHICH IS THE PART THAT MATTERS TO ENFORCEMENT. The skip is still appended to `skips` exactly as before, and `validate-release-tag-gate.py` is byte-unchanged: it calls the family directly (never `run_suite`), refuses at `gate-unaskable` on `isinstance(outcome, Skip)` and reads only `.reason`, so the cut-time check goes on failing closed as *The cut-time check cannot ask the family's question* requires. `getattr(out, "findings", ())` rather than an attribute read is deliberate: the base `Skip` in `doc_health/__init__.py` carries `family` and `reason` and nothing else, so every other family's skip contributes an empty tuple BY CONSTRUCTION and no family but this one can report anything new because of this line. WHAT THE CARRIED FINDINGS NOW REACH, STATED EXACTLY. They are in `RunResult.findings`, so they reach the report's severity counts, its regression diff and its Ranked Plan — the rows a transient ref read used to erase from the night's report altogether. They do NOT appear a second time under the family's own heading in "## Findings By Family": `report.render` prints `Skipped: <reason>` there for any family in `skips` and no rows, which is a general, pre-existing report-contract rule about skipped families (its own comment argues it: a skipped family has a basis to state and no tally), and `report.py` is outside this fix's authorized surface. Disclosed on the pull request rather than widened here. TESTS. `tests/doc-health/test_suite.py` gains the two halves of the P1 and the control: `test_a_carrying_family_skip_contributes_the_skip_AND_its_findings` (the skip in `skips` with its reason, both carried findings in `findings`, and both rows present in a rendered report beside the skip line) and `test_a_plain_family_skip_still_contributes_nothing_but_the_skip` (a base `Skip`: findings empty). The first is RED against the unamended runner, the second passes before and after. `python3 -m pytest tests/doc-health -q`: 1656 -> 1658 passed. `python3 scripts/doc-health.py --single-repo . --family release-tag-publication`: byte-identical report before and after (this repository reaches no skipping arm on a healthy run). `tests/doc-health/test_release_tag_gate.py`: 24 passed. Refs #766 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-1 (openXfactory-1) Round 2 pushed at @codex review |
There was a problem hiding this comment.
🟢 Approval recommended
The change preserves existing skip semantics while adding well-scoped propagation of already-established findings, and it is backed by focused regression coverage across the affected layers (repo loop, family aggregation, and suite runner).
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0 new
- Review effort level: Lite
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c265e8a7e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
CODEX P2 ON PR #871, AND IT IS FACTUALLY RIGHT ABOUT THIS LOOP. The grading loop SYNTHESIZES an `info` for every skipping repository — "not checked: <reason>", the line that keeps a per-repository skip from being silently omitted — so `results` is NEVER empty at the `len(skips) == len(scoped)` return. Carrying `results` out on the family-level skip therefore made EVERY wholly-unaskable run a carrying skip whose "findings" were its own skip notes, and the previous commit's `run_suite` change counts and ranks whatever a skip carries: a `--single-repo` run over a repository that declares no bundle would have put a manufactured row in the headline count and the Ranked Plan for a question no repository was able to ask. THE FIX IS A SECOND LIST, NOT A FILTER. `established` accumulates only what partial outcomes carried (`getattr(outcome, "findings", ())` — what a repository had actually got to before its question stopped being askable) and is the only thing the family-level `Skip` takes. `results` is unchanged and still carries both kinds where the family returns a findings list, so the partial path — every topology where at least one repository was askable — is untouched. Where nothing was established, `_skip` answers the byte-identical plain `Skip(FAMILY, reason)` the family always did, so a wholly-unaskable run is byte-identical to the state before this pull request, and every reason is still recorded: by the family-level skip line itself, which is `"; ".join(skips)`. THE P1 IS STILL FIXED, which is the point of narrowing rather than reverting. In the topology the P1 named — nine of ten repositories skipping for no manifest and the tenth failing a ref read after establishing findings — the tenth's findings are exactly what `established` holds, so they still ride out on the skip and still reach the run's findings. TEST. `test_a_wholly_unaskable_family_manufactures_no_findings`: two repositories, both plainly unaskable (one declares no bundle, one has no resolvable published main), asserted on the TYPE — `type(out) is Skip` — because the type is what decides it (`run_suite` reads `getattr(out, "findings", ())`, and the base `Skip` has no such attribute), plus that both reasons are still in the family-level reason. RED against the previous commit with the exact shape the P2 described (`type(out)` was `_PartialSkip`, carrying the loop's own "not evaluated" note). `python3 -m pytest tests/doc-health -q`: 1658 -> 1659 passed. `tests/doc-health/test_release_tag_gate.py`: 24 passed. `scripts/validate-release-tag-gate.py`: byte-unchanged against `origin/main`. `python3 scripts/doc-health.py --single-repo . --family release-tag-publication`: byte-identical to the round-1 baseline report. Refs #766 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-1 (openXfactory-1) Round 2 second pass pushed at @codex review |
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped, preserves existing skip semantics, and is backed by targeted regression tests covering both the defect and key non-regression controls.
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Lane: openxfactory-1 (openXfactory-1) Brett's word 2026-09-09T23:31Z (multiple choice): "Land 871 when green" — the landing guard runs on the frozen head once Codex round 2 is dispositioned and the six required checks are green. |
|
|
Lane: openxfactory-1 (openXfactory-1) FROZEN + LANDING PROVENANCE — 2026-09-09T23:47:01Z. Head |
…-record: take #871's release-tag-publication change before opening the PR; no release-surface path moved on main MEASURED, NOT ASSUMED. `git diff --name-only 1716748 origin/main -- contracts/ docs/contract-versioning-policy.md docs/terminology-and-repo-topology.md docs/xfactory-domain-factory-model.md tests/intent-compliance/test_release_boundary.py` is EMPTY across the whole span since the integration point, so the re-formed candidate be77cb3 does not need re-forming and contract-v3.6 is still free on all three surfaces. WHAT MAIN CARRIES SINCE 1716748, first-parent: #871 `9c0e2cda` (release-tag-publication keeps the findings a later Skip used to discard — scripts/doc_health/release_tag_publication.py, runner.py and their tests, the very family the release-tag gate runs), #873 `8480378a` (tick bookkeeping in adopt-codexfactory-repository-identity) and #874 `bf803b55` (split-opendox FLOOR PART 2 restated). The brief named 9c0e2cd as the tip; main advanced to bf803b5 while this branch's full suite ran, and bf803b5 moves README.md and the split-opendox change directory only. The gates are RE-RUN at this merge under main's NEW gate code rather than carried over from the pre-merge readings. Lane: opsXfactory-1 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013yeStdjshnETAn94CE6Tgg
|
Lane: openxfactory-1 (openXfactory-1) The residue disclosed in this PR's landing provenance (report.py renders no rows under a skipped family's own heading) is FILED UNCLAIMED as #902 (2026-09-10T15:16Z, Brett Heap's word "file the two residues as unclaimed"). |
…er from failure in every leg read, and carry earlier findings past a late skip
The PR's own thesis, applied to the reads it had not reached: a git query
that CANNOT BE ANSWERED is a fact about the machine, and reporting it as an
ABSENCE states a fact about the release. Round 1 closed that at the leg's
object store and at the pinned commit; three reads past those probes still
failed open, and a fourth defect discarded findings the run had already
established. Ruling `findings/fix1051-round2.md`, four arms, all ACCEPT.
MEASURED FIRST, git 2.43.0, throwaway stores — the four shapes the new
discriminators turn on, quoted where the code reads them:
a path genuinely not in the tree
`rev-parse <commit>:<path>` exit 128, `fatal: path 'x' does not exist in
'HEAD'`; `git ls-tree <commit> -- <path>` EXIT 0 AND NO OUTPUT.
the commit's root tree object missing (`--filter=tree:0` clone, promisor
remote unreachable; or a pruned store)
`rev-parse` exit 128 again — `fatal: path 'leg' exists on disk, but not
in 'HEAD'`, the same empty stdout for the opposite fact; `ls-tree` exit
128 (`fatal: not a tree object`, or `could not fetch <tree> from
promisor remote`). `cat-file -e <commit>^{commit}` STILL EXITS 0, which
is why round 1's commit probe passes this straight through.
a subtree missing below a readable root tree
`ls-tree` exit 1, `error: Could not read <sha>` — while
`cat-file -e <commit>^{tree}` exits 0. That is why `ls-tree` is the
discriminator and the ruling's root-tree alternative is not: it passes
on a store that cannot answer for the path.
a blob the store cannot serve
`cat-file --batch` FAILS OUTRIGHT (exit 128) where a promisor remote is
configured and unreachable, and answers `<spec> missing` WITH EXIT 0
where nothing can fetch it — byte for byte what an absent path answers.
R1 `carved_reach.shed_commit_object` — the gitlink read. `_git_object_id`
returning nothing was read as "this commit records no such leg", so a leg
store with the commit and without its tree produced `None`, `(None, None)`,
and then a normative member reported ABSENT AT THE COMMIT. New
`_tree_entry_absent` asks `ls-tree`: exit 0 with no output is the tree's own
answer and still returns `None`; anything else — non-zero, or an entry
listed that `rev-parse` could not resolve — raises `CarveReachUnavailable`
naming the leg, the commit and git's own stderr.
R2 `carved_reach._git_text` — the flagged `read's` is gone. Reworded to "The
stripped stdout of one `git ...` read" rather than the literal `reads`
substitution, which would have left the sentence without a subject.
R3 `release_inventory._shed_member` — the reads after the probe.
`git.blobs_at(...) -> None` (git declined) and `tree_modes(...) -> None` (a
mode check that silently did not happen) no longer fail open, and a blob the
batch reports `missing` is put to the leg's TREE: listed there means a read
that FAILED, absent there means the leg answered and the member really is
gone — which still reports as drift, pinned by its own test.
R4 `release_inventory.check_repo` — a late skip no longer discards what the
earlier members established. The repository's carrying-skip form EXISTS
(`release_tag_publication._PartialSkip`, `#766`/PR #871) and is now promoted
to `doc_health.PartialSkip` beside `Skip`, the old name kept as the same
class object so every reference and test in the estate is unmoved. Members
are compared in sorted order, so the leg arm returns from the middle of the
comparison: it returns `_skip(reason, findings)`, plain where nothing was
established and carrying otherwise, and `fam_release_inventory_drift`
reports the `info` notice, the carried rows beside it, and — where every
repository in scope skipped, which `--single-repo` makes the everyday case —
a family-level skip that still carries them. The notice's action says PARTLY
evaluated when it carries, because "not evaluated" would be false of it.
TESTS, seven, on real git and real submodules two levels deep; six fail
against the reader they replace (verified by reverting both sources: the
only one that passes both ways is the negative control, which pins that a
READABLE leg not carrying the member is still reported ABSENT):
the tree probe separates a missing entry from an unreadable tree
a tree the store cannot read is a skip, not an absent gitlink
a leg store that cannot serve the blob is a skip, not an absence
a leg tree that lists a member it cannot serve is a skip
a member a READABLE leg does not carry is still reported absent
an unreadable leg does not discard the members already compared
a carrying skip is reported WITH its findings, not instead of them
The degraded stores are built rather than simulated: `--filter=tree:0` and
`--filter=blob:none` bare clones over `file://` (git ignores `--filter` on a
local-path clone and says so), with the promisor remote pointed at nothing
for the loud half and forgotten for the `missing`-with-exit-0 half.
VALIDATION. `tests/doc-health/test_release_inventory.py` 48 passed (41 + 7);
`tests/doc-health` 1835 passed; carve/pin suites 433 passed;
`tests/hermes_runtime_contracts` release-inventory + validator-CLI +
content-resolution 119 passed, 1 pre-existing environment failure
(`test_release_mode_field_is_preserved_on_the_real_repository
[--require-realization]`, a 30s subprocess timeout that reproduces
identically on the unmodified branch head). `doc-health --single-repo .
--family release-inventory-drift` reports 1 error + 3 info from the checkout
and byte-identically from a `git worktree` of it.
Lane: openxfactory-2
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>



Lane: openxfactory-1 (openXfactory-1)
Brett Heap's word, 2026-09-09 ~21:3xZ (multiple choice): "#766 plain fix". CLAIMED on the issue at 21:31Z. Nothing under
openspec/is touched — see Why no canon moves below.The defect
check_repoanswersSkip | list[Finding](scripts/doc_health/release_tag_publication.py:1140), andfam_release_tag_publicationbranches onisinstance(outcome, Skip)— so no return in this module carries a skip beside findings. Three arms inside the grading loopreturn Skip(...)below the loop's firstfindings.append, and areturndiscardsfindingswhole::1405—_tag_stateanswersunlistablefor a bundle in scope →Skip("<repo>: the published refs for <bundle> could not be consulted"):1440— the refs for a bundle NAMED as a superseding bundle are unlistable →Skip("<repo>: the published refs for <superseding>, named as <bundle>'s superseding bundle, could not be consulted"):1490—distance_from_tipcannot resolve the earliest commit declaring the bundle →Skip("<repo>: the earliest commit declaring <bundle> could not be resolved")What died on those returns: the raw-HTML
error, every accepted-SPENTinfo, every LIGHTWEIGHT or MISPLACEDerrorraised for a bundle the loop reached BEFORE the failing one — and, sinceamend-absent-changelog-is-an-answer(PR #753, mergef756a91f), the established-absenceinfoa promotedANDrequires be recorded "BESIDE the grading rather than INSTEAD of it". The shape is pre-existing and general; what made it a packet is that a promoted MUST now names the loss out loud.Confirmed by test before the fix was written. Four tests fail against the unfixed module:
And it was observed live on this repository, unforced. One
--single-repo .run during this work met a transientls-remotefailure and reported, at the unfixed module:— the
contract-v3.5distancewarningand thecontract-v2.6SPENTinfothat the same tree reports on every other run were both gone. One unlistable ref erased the family's whole report for the repository.The fix
_PartialSkipis aSkipby inheritance carryingfindings;_skip(reason, findings)returns the byte-identical plainSkipwhere nothing was established, so the arms that carry nothing are unchanged down to their type. The three sites passfindings.fam_release_tag_publicationrecords the reason exactly as before and reports the carried findings under the same repository; the wholly-skipped action line is byte-unchanged, and a partial skip takes one that does not claim the repository went unevaluated.The loop still stops at the failing bundle — a skip in this module is repository-level (
f"{repo}: …") and the family has no per-bundle skip channel, socontinuewould drop the reason the ratified scenario requires. Accumulate-and-return is what the loop's contract makes correct.Why no canon moves, and no
openspec/change is proposedTwo promoted MUSTs were in conflict on these arms and the code satisfied one by violating the other. The fix satisfies them together rather than in the alternative:
skips, so the family-levelSkiponlen(skips) == len(scoped)is untouched.validate-release-tag-gate.py:321-329runs this family over one repository and refuses atgate-unaskableonisinstance(outcome, Skip). A lone partially-skipping repository still yields a family-levelSkip, so the enforcing moment still fails closed. Pinned bytest_a_partial_skip_still_counts_as_a_skip_so_the_gate_still_fails_closed.AND: the established-absence fact "MUST be recorded BESIDE the grading rather than INSTEAD of it" → now honoured wherever the family reports findings at all.Residue, disclosed rather than hidden: where the skipping repository is the ONLY one in scope — the gate, and a
--single-reporun — the family still answers with a bare family-levelSkipand the carried findings go no further. That is deliberate (the gate must fail closed there), and widening it means ruling what a partial skip does tolen(skips) == len(scoped), which is remedy (1) of the issue and not taken on this fix's own authority. The nightly aggregation, where ten repositories are in scope, is where the fix takes effect — and is where the live loss above would have been carried.Test evidence
python3 -m pytest tests/doc-health -qSeven regression tests: one per arm over a repository that had established something, the family entry reporting both, and three controls that must NOT move — the plain
Skipwhere nothing was carried (type(out) is Skip), the gate's fail-closed on a lone partial skip, and the wholly-skipped action wording asserted verbatim. The three controls pass before AND after; the other four are red before.Local family run, before and after
python3 scripts/doc-health.py --single-repo . --family release-tag-publication, run paired and alternating, three rounds, module swapped between each:Identical before and after, all three rounds — as predicted: this repository reaches none of the three arms on a healthy run, and a
--single-reporun is the shape the disclosed residue covers. (An earlier unpaired pass disagreed only becauseorigin/mainadvanced pastcontract-v3.5's declaring commit mid-measurement and because of the transientls-remotefailure quoted above; hence the paired re-measurement.)Bench round 2
Codex P1 on
release_tag_publication.py:1632— Preserve carried findings when every repository skips — TAKEN, and it was right about the topology that matters.len(skips) == len(scoped)is reached far more often than "nothing in scope was askable at all" suggests:--single-repoputs ONE repository in scope, and on the aggregation nightly nine of the ten governed repositories skip for carrying nocontracts/manifest.yamlat all, so one flaky ref read on the tenth satisfied the condition and abandoned the family's whole report for the night. The first commit repaired the grading loop and left the loss standing one layer up — in exactly the failure mode it was written for. It is closed in two commits, which is also the residue the section above disclosed:11c2954a—scripts/doc_health/release_tag_publication.py: the all-skipped return is_skip("; ".join(skips), results), so the family-level answer carries what the repositories established.8c265e8a—scripts/doc_health/runner.py+tests/doc-health/test_suite.py:run_suitestill appends theSkiptoRunResult.skipsand now also extendsRunResult.findingswithgetattr(out, "findings", ()), so a carried set reaches the renderer instead of dying at the append.The skip state does not move, which is the half that had to stay put.
scripts/validate-release-tag-gate.pyis byte-unchanged againstorigin/main; it calls the family directly — neverrun_suite— refuses atgate-unaskableonisinstance(outcome, Skip)and reads only.reason, and_PartialSkipis aSkipby inheritance, so the cut-time check goes on failing closed.getattrrather than an attribute read is deliberate: the baseSkiphasfamilyandreasonand nothing else, so every other family's skip contributes an empty tuple by construction.Round-2 tests:
test_a_family_level_skip_still_carries_what_the_repositories_established(11c2954a);test_a_carrying_family_skip_contributes_the_skip_AND_its_findingsandtest_a_plain_family_skip_still_contributes_nothing_but_the_skip(8c265e8a). The carrying test is red against the unamended runner; the plain-skip control passes before and after. The local family run on this repository is byte-identical before and after round 2 — a healthy tree reaches no skipping arm.Codex P2 on
release_tag_publication.py:1649— Avoid manufacturing findings when every repository fully skips — TAKEN, and factually right about this loop. The grading loop SYNTHESIZES aninfoper skipping repository ("not checked:<reason>", the line that keeps a per-repository skip from being silently omitted), soresultsis never empty at the all-skipped return: carryingresultsthere made every wholly-unaskable run a carrying skip whose "findings" were its own skip notes, and sincerun_suitenow counts and ranks whatever a skip carries, a--single-reporun over a repository declaring no bundle would have put a manufactured row in the headline count and the Ranked Plan.4e748f06—scripts/doc_health/release_tag_publication.py+tests/doc-health/test_release_tag_publication.py: a second list, not a filter.establishedaccumulates only what partial outcomes carried and is the only thing the family-levelSkiptakes (return _skip("; ".join(skips), established));resultsis unchanged, so the partial path does not move; where nothing was established_skipanswers the byte-identical plainSkipthe family always did, and every reason is still recorded by the family-level skip line itself. The P1 stays fixed — in the nine-skip/one-carrier topology the carrier's findings are exactly whatestablishedholds. Pinned bytest_a_wholly_unaskable_family_manufactures_no_findings(two plainly-unaskable repositories, asserted on the TYPE, sincerun_suitereadsgetattr(out, "findings", ())and the baseSkiphas no such attribute) — red against8c265e8awith exactly the shape the P2 named.pytest tests/doc-health -qbefore round 2origin/main17167481)8c265e8a)4e748f06)pytest tests/doc-health/test_release_tag_gate.py -qRound-2 residue, disclosed rather than papered over: the carried findings now reach the report's severity counts, its regression diff and its Ranked Plan — the rows the transient read used to erase — but they do not ALSO appear under the family's own heading in
## Findings By Family, becausereport.renderprintsSkipped: <reason>and no rows for any family inskips. That is a general, pre-existing report-contract rule applying to every family equally (its own comment argues it: a skipped family has a basis to state and no tally), andreport.pyis outside this fix's authorized surface.Closes #766
🤖 Generated with Claude Code
Summary by Sourcery
Preserve established release-tag findings alongside skips so transient or unanswerable checks no longer erase valid report results.
Bug Fixes:
Enhancements:
Tests: