Repository navigation
The CI watch hands each Inherited failure its Base branch checks, and the Base fix reads none itself - #364
Merged
Conversation
The CI watch reads the Base branch commit's checks once and returns, beside the branch's own and the Inherited failures, the Base branch's checks behind them. The Base fix module builds its issue body and the `Base check:` advice from those, and reads no checks itself. The split is one function in the CI watch, with unit tests on plain check lists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The split takes the Base branch checks as a plain list, empty with no Base branch commit, and the Base fix's doc comment reads cleanly again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The CI watch reads the Base branch commit's checks once, decides the Inherited failures by its one name rule, and hands back the Base branch's own checks behind them. The Base fix module builds its issue body and its
Base check:advice from those, and reads no checks from GitHub.Repair loop ci::watch(head, base_commit) github::checks_on(head) github::checks_on(base_commit) - partition → FailedChecks { own, inherited } + split(failed, on_base) → FailedChecks { own, inherited, on_base } - base_fix.fix(…, base_commit, &failed.inherited) - failed_on_base: github::checks_on(base_commit) again, second name rule - advice_on: "could not read the checks on <base>" on error + base_fix.fix(…, base_commit, &failed) + issue_body(failed.on_base) + advice_on(failed.on_base), which can't failFailedChecks.on_baseis documented with its invariant: every check in it failed on the Base branch commit and shares its name with an Inherited failure, and it is empty exactly wheninheritedis.Evidence
After: five unit tests on
ci::splituse plain check lists:cargo test: all 32 test binaries pass.tests/ci.rs,tests/base_fix.rs,tests/spec_run.rsandtests/architect_run.rswere not edited.UPDATE_PROMPTS=1 cargo test prompts_pageleavesprompts/unchanged.cargo clippy --all-targetsis clean.Merge Danger
Door: two-way
An in-process refactor. It changes nothing written on GitHub, and the Base fix issue's title and body are the same as before.
Blast Radius: small
A Run that fails on Inherited failures no longer reads the Base branch commit's checks a second time. That removes the "could not read the checks on " progress line, and nothing reads that line.
Unaddressed findings
Standards
inheritedandon_baseas a nestedInherited { on_head, on_base }type. Skipped because the issue's Decisions explicitly chose "a third list on the existing failed-checks result, rather than a new nested type", so that every current reader keeps readingownandinheritedas they are. The invariant is documented on the field.BaseFix::fixtakes the wholeFailedChecksbut reads onlyinheritedandon_base. Skipped because the issue decided that "Starting a Base fix takes the whole failed-checks result, not two slices", so the invariant between the two stays inside one value.Spec
on_basecheck reuses the head-style URL helper. Skipped because it is harmless: the CI-fix Repair prompt never readson_base, and the generated page is unchanged.Closes #362
🤖 Generated with Claude Code