Repository navigation
ci(cora): run Cora Review on PRs into main again so a release sync is skipped by proof (#1022) - #1333
Merged
Merged
Conversation
… skipped by proof (#1022) The skip by tree identity is on develop (#1279) but did nothing because the trigger listed develop only since #1021. List main again: a release sync is skipped green with a visible notice, anything else aimed at main is reviewed. Release flow text in AGENTS.md and CONTRIBUTING.md follows.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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.
What
Cora Reviewtriggers on pull requests intomainagain (branches: [develop, main]). The skip by tree identity for a release sync (scripts/cora-release-sync.sh, merged in #1279) now has an effect: a PR fromchore/release-*intomainthat is one commit on the tip ofmainwith the tree of adevelopcommit ends green with "skipped, tree identical to develop at "; any other PR intomaingets the normal review.Why
#1021 (2026-11-20) took
mainout of the trigger because a Cora pass over a whole release range cannot finish. #1279 added the proof that makes a skip safe, but left the trigger alone, so the skip never ran. The owner decided on 2026-11-28 to listmainagain. Closes #1022Changes
.github/workflows/cora-review.yml: trigger[develop, main]; the comments say why; the skip step's summary line says "holds nothing that did not land ondevelopthrough its required checks and its review process" (the earlier "every file was reviewed" overstated it: docs-only PRs skip review ondevelop).AGENTS.md("Release flow (chore: release v0.12.0 to main #1021, ci(cora): skip Cora Review on a release sync PR whose tree is identical to develop #1022)"),CONTRIBUTING.md("Release sync PRs"),CHANGELOG.md: the text follows the trigger. They state the downside openly: a PR fromdevelopitself (notchore/release-*) is reviewed in full and can end red on a large range;Cora Reviewis not a required check onmain, and "require branches to be up to date" is not enabled onmain, so check that by hand.Known downside, accepted by the owner's decision: a release cut from
developinstead ofchore/release-*, or a second commit on the release branch, runs the full review and may end red ("Review could not complete"). Cut releases fromchore/release-*.Testing
scripts/test-cora-release-sync.sh: all cases passed (second commit, differing file, extra file, other head branch, other base, fork or deleted fork, missing or local-only develop refs, shallow clone,refs/replace, the 200-commit window). The workflow YAML parses;scripts/arch-check.sh: ok. The workflow itself cannot run before it is ondevelop(the workflow file of apull_requestrun comes from the merge ref), so the first real release sync is the first live test; if it does not skip, the review runs (fail closed).chore/release-xwith extra commits, merge ref versus head sha, retarget and main moving after the job ran, replace refs, shallow clone, who can push todevelop(no bypass actors, non-fast-forward and PR-only), script read fromdevelopand not from the PR, expression injection (every${{ }}sits inenv:), no new exposure of secrets, OIDC orpull-requests: writefor PRs intomain(fork PRs get none). Its wording fixes (summary text, "already reviewed" softened, the up-to-date setting named as not enabled) are in this PR. Residuals named in the docs: the skip protects against accidents, not against a writer who edits the workflow in a PR; a tree equal to an olderdevelopcommit (rollback) qualifies inside the 200-commit window.scripts/review-local.sh --agent, a fresh read-only agent answered the prompts): 1 minor finding (a stale "every file was reviewed" sentence in CONTRIBUTING) plus one stale CHANGELOG sentence, both fixed; no finding on the workflow.mainruleset so the "main moved after the job ran" residual disappears.