Skip to content

Runs settle their own open items before finishing - #649

Merged
nambok merged 2 commits into
mainfrom
settle-open-items
Nov 13, 2026
Merged

nambok merged 2 commits into
mainfrom
settle-open-items

Conversation

@nambok

@nambok nambok commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

A run could finish with open items on its pull request that it was able to settle itself: a check that never ran, an audit nobody ran, a claim written before any check, the same missing fact listed twice, and a checklist that does not apply to upkeep work. A run now settles its own open items before it finishes, and only items that need a person stay, each with its reason.

Changes

  • New settle stage on the single-repository and multi-repository paths. Each open item is classified: CoderHelm runs it in its sandbox, it does not apply to this run, CI settles it, or only a person can settle it.
  • What CoderHelm can run (the repository's checks, the package manager's audit after a dependency change) runs in one sandbox build. With too little time left in the step, the run continues in a fresh step that resumes at the checks gate.
  • A check refused for lack of time is recorded as owed and run by the settle stage; the coder is no longer told to finalize unverified.
  • A dependency change is always audited by its package manager, and the remaining counts are quoted on the pull request with the commit they were read on.
  • A failing result on a dependency run takes out the newest verified set of bumps and reruns the checks; any other run gets a fix round with the real output.
  • Open items are stamped with the head they were written on. A run about to finish with items from an earlier head goes back to its checks first, once per head.
  • Duplicate items collapse to one, and an end-to-end checklist is not raised for upkeep work.
  • Lockfiles are regenerated once per state of the branch.

Verification

  • cargo fmt --check --all and cargo clippy -p common -p worker --all-targets -- -D warnings: clean.
  • cargo test -p worker: 1,631 passed. cargo test -p common --lib: 2,095 passed.
  • New incident test ah_open_items_settled reproduces the five open items from a dependency update run.
  • Not run locally: the gateway build. Not verified on a live run.

@nambok
nambok merged commit 8f306c4 into main Nov 13, 2026
10 checks passed
@nambok
nambok deleted the settle-open-items branch November 13, 2026 16:30
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.

1 participant