Repository navigation
Description
Problem
CI never tests what we ship. .github/workflows/ci.yml triggers on pull_request and workflow_dispatch only — there is no push trigger — so every green check in this repository describes a pull request head computed against an older base, and the merged result on main is never run at all.
Measured on the live repo: GET /repos/abogartz/opencode-self-improvement/commits/main/check-runs returns zero runs. The last fifteen ci workflow runs are all event=pull_request against branches: docs/adapter-arch-banner, fix/recall-fractional-limit, docs/recall-evidence-viewer-auth, feat/public-adapter-api, feat/554-pi-adapter. Nothing for main, and nothing for the release commits semantic-release pushes.
The published package therefore ships a tree that no CI has ever executed. Four releases today — 0.38.2 through 0.40.1 — were cut from main commits whose checks are empty.
This is not hypothetical for a project whose whole claim is host cooperation. A pull request whose base is three merges behind passes against code that no longer exists, and two pull requests that are each green against the same base can still combine into a failure. Nothing here catches that, because the combined state is exactly the ref nobody tests.
Required
- Add a
pushtrigger onmainto the CI workflow, so the merged result is a tested object with its own check runs. - Keep the pull-request checks as they are; the point is that the merge commit gets checked after the fact, not before, and a red
mainis a stop-the-line signal rather than a mystery. - Make the difference legible: the
mainrun reports the same job set, so a reader can tell "PR green, merged green" from "PR green, merged never run".
Acceptance
GET /repos/abogartz/opencode-self-improvement/commits/main/check-runs returns a completed run for the newest main commit. A deliberate break merged to main turns that run red — demonstrated once with a throwaway commit and reverted. The workflow file and docs/internals/development.md say the same thing about what gets tested, and a test reads the triggers out of the workflow so the claim cannot drift again.
Non-goals
Not a request to block merges on this. The current process — merge, then verify — stays workable; this makes the "then verify" step automatic instead of something a person remembers to do locally.
Activity
ocsi-architect commentedon Dec 1, 2026
Architect
Decision:
maingets a push trigger, with the Windows matrix job held back to pull requests.ci.ymlcurrently triggers onpull_requestandworkflow_dispatchonly, so the claim in this ticket is correct as written: nothing has ever testedmainas a whole. Tonight is the evidence, not just an argument — v0.41.2 and v0.41.3 both shipped from merge commits whose checks ran against a PR head or, in #626's case, against a head thatlandhad itself moved ontomainand proven tree-identical to a trial merge. Tree-identity is good evidence about a tree; it is not a test run, andrelease.ymlpublishes on push regardless of whether anything looked at that commit.Ruling, and the reason for the asymmetry: a full run is 11–14 minutes dominated by
oh-my-pi (windows-latest), and the merge train produced five merges in four hours. Running Windows onmainas well doubles runner minutes for signal that is mostly the same job re-executed. So:on:gainspush: branches: [main].mainrunslint,testandcoverage; thewindows-latestlegs run only onpull_request.The trap a naive fix walks into.
lintsetsCOMMENT_LINT_BASE: ${{ github.event.pull_request.base.sha }}, and the comment policy deliberately refuses to report green on an empty diff — that is the behaviour its own comment documents. On apusheventgithub.event.pull_requestis absent, so the variable arrives empty and the first push tomaingoes red for a reason that has nothing to do with the tree. The fix has to say what the comment policy means with no pull request underneath it: either the comment-lint step is skipped onpush(the merge already carried the review), or the base becomes the previousmainrevision so added lines are still measured. Pick one and make it explicit; do not let it fall through to the empty-diff path.Acceptance, in the order a reviewer will check it:
windows-latestincluded — the change must not reduce PR coverage.main(a merge will do) and confirm:lint,testandcoveragerun and go green on the merged tree, and nowindows-latestjob is created.lintjob passing onpushbecause of a decision, not because the emptyCOMMENT_LINT_BASEhappened to be tolerated — if it is skipped onpush, say so in the workflow itself so the next reader knows it was deliberate.ci:— this ships no product behaviour, so it must not fire a release.Keep this pull to the trigger and the job conditions. Getting the availability bench into CI is #629's subject matter, already ruling'd there, and the two changes stay easier to review apart.