Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions docs/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3511,6 +3511,17 @@
"null"
]
},
"draft_hold": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/RunDraftHold",
"description": "Set when the run finished and its pull request is still a draft: why,\nand what to do about each reason. A held run is also `needs_input`,\nwith `waiting_on` naming the pull request. Null once the pull request\nis ready or closed."
}
]
},
"duration_s": {
"description": "How long the run took, in seconds.",
"examples": [
Expand Down Expand Up @@ -4137,6 +4148,82 @@
],
"type": "object"
},
"RunDraftHold": {
"description": "Why a finished run's pull request is still a draft, with what to do\nabout each reason. A finished run never leaves its pull request a draft\nwithout one of these.",
"properties": {
"kind": {
"description": "`held` (a person must deal with a reason; the run is `needs_input`),\n`waiting` (CoderHelm waits for something that settles by itself and\nchecks again), or `failed` (CoderHelm decided it was ready but GitHub\nrefused every try to mark it).",
"examples": [
"held"
],
"type": "string"
},
"pr_number": {
"description": "The pull request.",
"examples": [
318
],
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reasons": {
"description": "Each reason, with what to do about it.",
"items": {
"$ref": "#/components/schemas/RunDraftHoldReason"
},
"type": "array"
},
"since": {
"description": "When it was first held for these reasons (RFC 3339).",
"examples": [
"2026-11-06T22:17:25Z"
],
"type": [
"string",
"null"
]
},
"summary": {
"description": "The run page's line, ready to show.",
"examples": [
"Finished, but pull request #318 stays a draft: Security items are open under Open items. Fix them on this branch (CoderHelm checks again on the next push), or delete each security line once a person has checked it."
],
"type": "string"
}
},
"required": [
"kind",
"summary",
"reasons",
"pr_number"
],
"type": "object"
},
"RunDraftHoldReason": {
"description": "One reason a pull request stays a draft.",
"properties": {
"todo": {
"description": "What to do about it.",
"examples": [
"Fix them on this branch (CoderHelm checks again on the next push), or delete each security line once a person has checked it."
],
"type": "string"
},
"what": {
"description": "What holds it.",
"examples": [
"Security items are open under Open items"
],
"type": "string"
}
},
"required": [
"what",
"todo"
],
"type": "object"
},
"RunNote": {
"description": "A note the run wrote while it worked.",
"properties": {
Expand Down
1 change: 1 addition & 0 deletions docs/incidents.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pipeline still calls it there.
| p. `p_finished_work_loop` | A small ticket finished its 11 tasks, then spent 2.5 hours and $41.96 with no pull request: each 15-minute step re-ran the checks before the pull request from nothing and started fresh fix rounds. | The draft pull request opens before the proof check, the rules and the review, which then can't block it. A check runs once on a head and keeps its rounds across steps. A run with no real progress (tasks, the pull request, CI green, fewer findings) ends one way: a draft with Open items, waiting on a person. |
| q. `q_run_ceiling` | The same bug had been fixed in one loop at a time. | A run has an absolute ceiling on passes, continuations, worked time and spend that only a person's Retry renews, held at the worker's one entry point, at every model call, and by the stuck-run sweep, each without the others. |
| r. `r_github_limit` | A fix round hit GitHub's hourly limit. 29 writes and the diff came back "403 rate limit exceeded", and the run ended "the coder wrote no file ... That is CoderHelm's miss". | GitHub refusing for a while (its rate limit, a 5xx, no answer) never ends a run and is never blamed on the coder. The model is told the run pauses, the pass ends, and the run goes on as itself at GitHub's reset, with its page saying when. The wait adds no step and no pass. Writes GitHub rejected for a real reason are reported with that reason. A review waits for the reset without spending its retries. |
| s. `s_silent_draft` | A new-feature run finished with CI green and CoderHelm's review approving, and its pull request stayed a draft. Four of CoderHelm's own sandbox checks had failed on the head, the mark-ready step returned without a word, and the run page said completed. The same day, mark-ready messages that hit GitHub's rate limit were dropped and five more pull requests stayed drafts. | One decision settles every pull request a finished run leaves, on every path. With CI green and the review approving, CoderHelm's own sandbox failures and checklist items never hold the draft: the pull request is marked ready with them under Open items. A hold that remains names each reason and what to do at the top of the description, at warn in the log, and on the run, which is `needs_input` while a person must act. A mark-ready GitHub refuses is tried again after its reset, a bounded number of times, and the last refusal is recorded on the run. A sweep decides again for finished runs left a draft with no recorded reason, respecting a person's draft and a closed pull request. |

## Adding a case

Expand Down
Loading
Loading