Skip to content

release-tag-publication keeps the findings a later Skip used to discard (#766) - #871

Merged
brettheap merged 6 commits into
mainfrom
fix/release-tag-publication-late-skips
Sep 9, 2026
Merged

brettheap merged 6 commits into
mainfrom
fix/release-tag-publication-late-skips

Conversation

@brettheap

@brettheap brettheap commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

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_repo answers Skip | list[Finding] (scripts/doc_health/release_tag_publication.py:1140), and fam_release_tag_publication branches on isinstance(outcome, Skip) — so no return in this module carries a skip beside findings. Three arms inside the grading loop return Skip(...) below the loop's first findings.append, and a return discards findings whole:

  • :1405 — _tag_state answers unlistable for 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_tip cannot 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-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 (PR #753, merge f756a91f), the established-absence info a promoted AND requires 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:

FAILED test_an_unlistable_ref_keeps_the_record_it_had_already_established
FAILED test_an_unresolvable_declaring_commit_keeps_what_it_had_established
FAILED test_an_unlistable_superseding_ref_keeps_the_earlier_bundles_error
FAILED test_the_family_reports_beside_the_skip_what_the_skip_carried

And it was observed live on this repository, unforced. One --single-repo . run during this work met a transient ls-remote failure and reported, at the unfixed module:

### release-tag-publication

Skipped: fix-766: the published refs for contract-v1.22 could not be consulted

— the contract-v3.5 distance warning and the contract-v2.6 SPENT info that 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

_PartialSkip is a Skip by inheritance carrying findings; _skip(reason, findings) returns the byte-identical plain Skip where nothing was established, so the arms that carry nothing are unchanged down to their type. The three sites pass findings. 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 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, so continue would 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 proposed

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

  • Version control cannot answer — "the family MUST report a skip naming which of those it was" → still reported, in the words it already had. A partial skip is still counted in skips, so the family-level Skip on len(skips) == len(scoped) is untouched.
  • The cut-time check cannot ask the family's question — "the cut-time check MUST fail closed" → validate-release-tag-gate.py:321-329 runs this family over one repository and refuses at gate-unaskable on isinstance(outcome, Skip). A lone partially-skipping repository still yields a family-level Skip, so the enforcing moment still fails closed. Pinned by test_a_partial_skip_still_counts_as_a_skip_so_the_gate_still_fails_closed.
  • The changelog cannot be read at the published tip — the amended 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-repo run — the family still answers with a bare family-level Skip and 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 to len(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 -q

result
before 1648 passed
after 1655 passed (+7, all new)

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

- [warning] contracts/manifest.yaml — contract-v3.5 is declared and has no published annotated tag, 1 first-parent landing(s) after the commit that declared it
- [info] contracts/releases/contract-v2.6.digests.yaml — contract-v2.6 is declared SPENT: … contract-v3.0 … superseded it …

Identical before and after, all three rounds — as predicted: this repository reaches none of the three arms on a healthy run, and a --single-repo run is the shape the disclosed residue covers. (An earlier unpaired pass disagreed only because origin/main advanced past contract-v3.5's declaring commit mid-measurement and because of the transient ls-remote failure 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-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, 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_suite still appends the Skip to RunResult.skips and now also extends RunResult.findings with getattr(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.py is byte-unchanged against origin/main; it calls the family directly — never run_suite — refuses at gate-unaskable on isinstance(outcome, Skip) and reads only .reason, and _PartialSkip is a Skip by inheritance, so the cut-time check goes on failing closed. getattr rather than an attribute read is deliberate: the base Skip has family and reason and 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_findings and test_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 an info per skipping repository ("not checked: <reason>", the line that keeps a per-repository skip from being silently omitted), so results is never empty at the all-skipped return: carrying results there made every wholly-unaskable run a carrying skip whose "findings" were its own skip notes, and since run_suite now counts and ranks whatever a skip carries, a --single-repo run 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. established accumulates only what partial outcomes carried and is the only thing the family-level Skip takes (return _skip("; ".join(skips), established)); results is unchanged, so the partial path does not move; where nothing was established _skip answers the byte-identical plain Skip the 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 what established holds. Pinned by test_a_wholly_unaskable_family_manufactures_no_findings (two plainly-unaskable repositories, asserted on the TYPE, since run_suite reads getattr(out, "findings", ()) and the base Skip has no such attribute) — red against 8c265e8a with exactly the shape the P2 named.
result
pytest tests/doc-health -q before round 2 1656 passed (baseline re-measured after merging origin/main 17167481)
after the runner half (8c265e8a) 1658 passed (+2)
after the P2 narrowing (4e748f06) 1659 passed (+1)
pytest tests/doc-health/test_release_tag_gate.py -q 24 passed

Round-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, because report.render prints Skipped: <reason> and no rows for any family in skips. 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), and report.py is 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:

  • Preserve findings established before a repository-level skip in release-tag publication checks, including when the entire family returns a skip.
  • Propagate findings carried by family-level skips through suite execution so they remain available to report generation.

Enhancements:

  • Keep partial skips compatible with existing skip handling and fail-closed gate behavior while distinguishing partially evaluated repositories in their reporting.

Tests:

  • Add regression coverage for all affected skip paths, family-level propagation, plain-skip compatibility, gate fail-closed behavior, and unchanged wholly-skipped wording.

Brett Heap and others added 2 commits September 9, 2026 18:09
…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]>
Copilot AI lite review requested due to automatic review settings September 9, 2026 22:10

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

@codex review

@sourcery-ai

sourcery-ai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Reviewer's Guide

The 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 skip

sequenceDiagram
    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
Loading

Flow diagram for release-tag publication skip handling

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

File-Level Changes

Change Details Files
Preserve findings when repository grading must return a skip partway through the bundle loop.
  • Introduce _PartialSkip, a Skip subtype carrying previously established findings, plus _skip to retain the original plain Skip shape when no findings exist.
  • Use the carrying skip for unlistable bundle refs, unlistable superseding refs, and unresolved declaring commits while retaining repository-level stop behavior.
scripts/doc_health/release_tag_publication.py
Report carried findings alongside partial-skip diagnostics without changing skip accounting or fail-closed behavior.
  • Keep the original skip reason and count partial skips toward the family-level all-skipped result.
  • Emit carried findings under the same repository and use distinct action text that no longer claims the repository was wholly unevaluated.
  • Continue using the plain wholly-skipped wording when no findings were established.
scripts/doc_health/release_tag_publication.py
Add regression coverage for all affected skip paths and compatibility contracts.
  • Test preservation for unlistable refs, unlistable superseding refs, and unresolved declaring commits.
  • Test family-level reporting of both the skip and carried findings.
  • Pin plain Skip typing, lone partial-skip gate failure, and unchanged wholly-skipped wording.
tests/doc-health/test_release_tag_publication.py

Assessment against linked issues

Issue Objective Addressed Explanation
#766 Ensure findings accumulated before any of the three late skip paths in check_repo are preserved and reported alongside the skip, including the established changelog-absence finding. ✅
#766 Propagate partial-skip findings through fam_release_tag_publication without losing the skip signal, while preserving fail-closed behavior for the cut-time gate. ✅
#766 Provide the successor normative-spec packet resolving the conflict, either by qualifying the requirement or fully documenting the widened partial-skip contract and its family-level semantics. ❌ The PR explicitly makes no changes under openspec/. It implements the code behavior and tests, but does not update the Release-tag publication requirements or document the selected remedy. Additionally, when every repository in scope partially skips, the family still returns a bare family-level Skip, so carried findings are not exposed beyond that family result; the PR discloses this as an intentional residue rather than resolving the broader contract.

Possibly linked issues


Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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 (a Skip subclass) 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_repo to return _skip(..., findings) so prior findings survive.
  • Extend fam_release_tag_publication to 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Brett Heap and others added 3 commits September 9, 2026 18:33
… 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]>
…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]>
Copilot AI review requested due to automatic review settings September 9, 2026 22:55
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

Round 2 pushed at 8c265e8a: the P1 on release_tag_publication.py:1632 is taken in full (11c2954a makes the all-skipped family return carry the findings; 8c265e8a makes run_suite extend the run findings from a carrying skip while still appending the skip). validate-release-tag-gate.py is byte-unchanged and still refuses at gate-unaskable. pytest tests/doc-health -q: 1656 -> 1658 passed.

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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]>
Copilot AI review requested due to automatic review settings September 9, 2026 23:20
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

Round 2 second pass pushed at 4e748f06: the P2 on release_tag_publication.py:1649 is taken — the family-level skip now carries only what partial outcomes ESTABLISHED (established, a second list rather than a filter), so a wholly-unaskable family answers the byte-identical plain Skip it always did and nothing manufactured reaches the headline count or the Ranked Plan; the P1 topology stays fixed. pytest tests/doc-health -q: 1659 passed. Gate script byte-unchanged, its 24 tests green.

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 4e748f0654

ℹ️ 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".

@brettheap

Copy link
Copy Markdown
Contributor Author

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.

@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

FROZEN + LANDING PROVENANCE — 2026-09-09T23:47:01Z. Head 4e748f06 (round 1 d4ddde14; skip carries findings 11c2954a; runner extends them 8c265e8a; Codex P2 narrowing 4e748f06). Brett's words: "#766 plain fix" (21:3xZ) and "Land 871 when green" (23:31Z). Guard on live values: six required checks SUCCESS on 4e748f06; merge-master-approval = SUCCESS; unresolved review threads 0 (Codex P1 + P2 TAKEN); closingIssuesReferences = #766 and the body's only closing keyword names exactly that; no openspec/changes/ file touched; no other lane's LANDING open; main 8480378a (decided=success@1716748 pending=1) — main advanced after the green run by two commits touching only an openspec tasks.md, zero overlap with this PR's four files, GitHub reports MERGEABLE. Bench: Codex round 3 on 4e748f06 "Didn't find any major issues"; Copilot "Approval recommended"; Sourcery budget-exhausted (absence). Disclosed residue, not fixed here: report.py renders no rows under a skipped family's own heading (pre-existing, outside the fix's surface). validate-release-tag-gate.py unchanged and still refuses at gate-unaskable on any Skip. Admin merge with provenance: authored as brettheap, self-approval cannot clear the review requirement (B2 pattern).

@brettheap
brettheap merged commit 9c0e2cd into main Sep 9, 2026
14 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

LANDED — lane openxfactory-1, 2026-09-09T23:47:13Z, PR #871 → 9c0e2cda on opensoft/openxFactory main. Origin #766: CLOSED.

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

Copy link
Copy Markdown
Contributor Author

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").

brettheap added a commit that referenced this pull request Sep 16, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants