Sandcastle reworks PRs with failing CI #20
Labels
No labels
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Extend the
.sandcastleplanning loop so it looks at open pull requests, not just new issues, and prioritises fixing PRs whose CI is red before starting fresh work.End-to-end behaviour:
tea pulls list, which exposes acifield) and treats a PR as needing rework when its CI status isfailure. It emits these as PR-rework items, distinct from new-issue items, and lists them first.nix develop .#ci -c just check), fix it, push the branch, and post a short comment summarising the fix.ready-for-humanthroughout; there is no relabel on the CI path. After the fix push CI re-runs, and the livecifield governs re-pick: while CI ispendingthe PR is not re-selected, and a renewedfailureis re-attempted on later iterations until it passes or the loop hits its iteration cap.Detection scope for this slice is CI only (
ci == "failure"). The changes-requested signal is #21, which adds aready-for-agentlabel to PRs via a workflow plus a matching planner arm — that label machinery is out of scope here.Note: issues and PRs share one index space, but
tea issue listandtea pulls listare separate endpoints, so PR labels never leak into the new-issue query.Acceptance criteria
failure.ready-for-human).docs/agents/triage-labels.mdand themain.mtsheader comment reflect the new PR-rework path.Blocked by
None - can start immediately.