Skip to content

ci(cora): run Cora Review on PRs into main again so a release sync is skipped by proof (#1022) - #1333

Merged
ajianaz merged 1 commit into
developfrom
ci/cora-review-main-release-sync
Nov 28, 2026
Merged

ajianaz merged 1 commit into
developfrom
ci/cora-review-main-release-sync

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What

Cora Review triggers on pull requests into main again (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 from chore/release-* into main that is one commit on the tip of main with the tree of a develop commit ends green with "skipped, tree identical to develop at "; any other PR into main gets the normal review.

Why

#1021 (2026-11-20) took main out 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 list main again. Closes #1022

Changes

  • .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 on develop through its required checks and its review process" (the earlier "every file was reviewed" overstated it: docs-only PRs skip review on develop).
  • 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 from develop itself (not chore/release-*) is reviewed in full and can end red on a large range; Cora Review is not a required check on main, and "require branches to be up to date" is not enabled on main, so check that by hand.

Known downside, accepted by the owner's decision: a release cut from develop instead of chore/release-*, or a second commit on the release branch, runs the full review and may end red ("Review could not complete"). Cut releases from chore/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 on develop (the workflow file of a pull_request run 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).
  • Independent read-only security review of the workflow change (a fresh agent, same model family): SECURE, no must-fix. Checked: fork PRs, same-repo chore/release-x with extra commits, merge ref versus head sha, retarget and main moving after the job ran, replace refs, shallow clone, who can push to develop (no bypass actors, non-fast-forward and PR-only), script read from develop and not from the PR, expression injection (every ${{ }} sits in env:), no new exposure of secrets, OIDC or pull-requests: write for PRs into main (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 older develop commit (rollback) qualifies inside the 200-commit window.
  • Cora as the agent's reviewer (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.
  • Review scope: the workflow and the docs; the CI Cora Review job is the merge gate.
  • Optional owner setting (not code): enable "require branches to be up to date" on the main ruleset so the "main moved after the job ran" residual disappears.

… 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.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit da8c108 into develop Nov 28, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(cora): skip Cora Review on a release sync PR whose tree is identical to develop

1 participant