Repository navigation
Description
Summary
Rung 1 of workflow/skills/loop-run/SKILL.md reads CI with pull_request_read method:get_status. That call returns commit statuses, and our CI does not post commit statuses — it posts check runs, because every repo runs GitHub Actions. The two are separate GitHub surfaces and get_status cannot see check runs at all.
Measured tonight on two live PRs, and it fails in both directions:
| PR | get_status |
get_check_runs |
|---|---|---|
| sydevs/SahajAtlasWeb#181 | state: "pending", total_count: 0, statuses: [] |
5 of 5 conclusion: "success" |
| sydevs/SahajCloud#672 | state: "success", total_count: 1 |
1 of 1 success |
The SahajCloud row is the dangerous one. Its single "success" status is Railway's deploy (context: "sahajcloud - SahajCloud", created_at: 2026-09-01T21:14:17Z). The actual test job — Lint, Test & Smoke — is a check run that did not finish until 21:31:40Z, seventeen minutes later. Between those two timestamps get_status said success while the test suite was still running. A rung-1 run that woke in that window on an approved PR would have merged code whose tests had not completed, and would have been following the skill exactly.
The SahajAtlasWeb row is the harmless-but-wrong direction: an approved PR with all five checks green reads as pending forever, so the loop would comment "CI still running" on every run and never merge it.
Found while reading PR #181's state to write tonight's journal, not by going looking — filing per the incidental-finding rule in loop-run/SKILL.md § Rung 5.
Approach
In workflow/skills/loop-run/SKILL.md, Rung 1:
- Add
pull_request_read method:get_check_runsbeside the existing two calls. - State the definition of green explicitly, because neither call alone is it: every check run has
conclusion: "success", and every commit status hasstate: "success", and there is at least one check run. The "at least one" clause is what stops an emptycheck_runsarray reading as green on a repo where Actions did not schedule a run — which is exactly the shape a merge conflict produces in SahajCloud (CLAUDE.md→ "A conflicted PR runs NO CI at all"). - Say plainly that a commit status is a deploy signal here, not a test signal, so a green
get_statusis never sufficient on its own.
ciPollAttempts and the /finalize-pr step-8 poll read the same call and need the same change; check that skill too.
Acceptance criteria
- Rung 1's table names
get_check_runsas the source of CI truth andget_statusas a supplementary signal. - The skill states the green definition above, including the "at least one check run" clause.
-
/finalize-pr's CI watch reads check runs rather than statuses. -
claude plugin validate ./workflow --strictpasses.
Verification checklist
-
claude plugin validate ./workflow --strictexits 0. -
grep -n "get_status" workflow/skills/loop-run/SKILL.md workflow/skills/finalize-pr/SKILL.mdshows no remaining site whereget_statusalone decides mergeability. - Against feat(feedback): land a post-event reader in the atlas, not a dead-end card SahajAtlasWeb#181, applying the new definition by hand yields "green" (5/5 check runs success, 0 statuses) where the old one yields "pending".
- Against feat(security): require Turnstile on event registration SahajCloud#672 at its 21:14–21:31 window, the new definition yields "not green" where the old one yields "success".
Notes
- No ticket covers this:
search_issues repo:sydevs/claude-workflow is:issue is:open -label:ops-journalreturns only chore(loop): read Relationships directly once the MCP tools are reachable #3. - This is a prose change to a skill, so it cannot be validated by running it —
CLAUDE.md§ "You cannot validate a change by running it". The evidence available before merge is the four tool calls in the table above; the PR body should carry them. **/*.mdis inprAllowlistGlobs, so this could ship ticketless. It is filed anyway because the reasoning is worth having somewhere a PR body would bury it, and because the merge gate is the one rule in the skill that is a safety property rather than a preference.
🤖 Written by the sydevs autonomous loop — see what this is
Activity
feat(loop): script the merge gate and census, free claude-workflow fr…
feat(loop): discover branch preview aliases, compute journal titles (#30