Repository navigation
Covered runs continue in CoderHelm's own pull request; a person's is never touched - #489
Merged
Merged
Conversation
nambok
force-pushed
the
fix/covered-run-continues-own-pr
branch
from
November 6, 2026 14:44
1c295b2 to
bb5c6d4
Compare
…never touched A run whose ticket CoderHelm's own open pull request already covers no longer stops: it carries what that pull request lacks onto its branch, adds the ticket to its description and ends linked to it. The ticket's earlier pull request is marked superseded and closes only on a person's click. Only pull requests CoderHelm created are pushed to, edited or closed (common::own_pr, OwnPr), checked again at each write.
nambok
force-pushed
the
fix/covered-run-continues-own-pr
branch
from
November 6, 2026 14:53
bb5c6d4 to
dbae5fc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A run whose ticket an open pull request already covers no longer stops with only Open and Retry when that pull request is CoderHelm's own. It continues in it: what the run built goes onto that pull request's branch, its description gets a section for this ticket with what was carried over and what is still open, and the run ends linked to it. One pull request for the work, not two.
Only pull requests CoderHelm created are ever pushed to, edited or closed. A person's pull request is never touched: the run ends linked to it and says plainly that the person's pull request covers the ticket. This is enforced in code, not by convention.
The ticket's earlier CoderHelm pull request that the covering one makes redundant is marked superseded in its own description and on the run page, which offers "Close #N". It closes only on a person's click: no existing team setting lets CoderHelm close its own superseded pull requests (the only automatic close today is the separate "moved to another repository" case, which this does not change).
Changes
common::own_pr(new):judgedecides whether CoderHelm may change a pull request, from GitHub's answer at that moment. It must be open, opened by this app's bot (the exact login when known), on a branch in the repository and not a fork, and recorded by one of the team's runs. The worker and the gateway both use it.common::stop_rules::covering(new): the outcomes (continued,complete,person,busy,not_carried), the run record stored ascovered_by, the description section (replaced in place on a later run), the superseded line, and the run page and ticket notes.existing_work: the model's verdict now also lists what the pull request doesn't do yet for the ticket (missing). These are the open items the covered check names.worker/passes/covering.rs(new):OwnPrcan only be made byOwnPr::verify(a fresh read plusjudge), and each write checks again right before it happens. The covering branch only moves forward from the head it was read at, never with a force push. Pushes and description edits go only through it. Nothing in the covered path closes a pull request.restackfirst. A file both changed that can't be merged stops the carry-over, and nothing is pushed.run_guard::on_pass), so the loop guard and the run ceiling from Runs always end: PR before the checks, rounds that survive continuations, and a ceiling on every run #485 stop it first. It also claims the covering pull request's runs' writer slots (pr_holder), so two runs never write one branch. If that run is busy, nothing is written.passes/mod.rs):GitHubClient:fast_forward(lease plusforce: false) and a publicbot_login.RunCoveredBygainsown,outcome,carried,open_items,supersededandnote(OpenAPI regenerated). NewPOST /api/runs/:run_id/close-superseded(member+, in the runs capability). It closes the superseded pull request only when the covering one is CoderHelm's own and carries the change. It judges the pull request on GitHub first, comments, closes, then marks the record.selfhost/versions.json: dashboard pinned to506746110e88ee244de302a8bd83888ac2420535(the run page change, merged as Run page: a covered run shows what it carried and offers to close the superseded pull request coderhelm#326) withscripts/bump-dashboard.sh.Verification
cargo fmt --all --check,cargo clippy -p worker -p common -p gateway --all-targets -D warnings,cargo testfor worker, common and gateway.OwnPrforged for a person's pull request, a fork, or one no run recorded (as ifverifywere bypassed): push and edit are refused, with zero writes.OwnPrreaches the raw writes, nothing closes a pull request, andrun_guard::on_passand the writer claim come beforetake.fast_forward, compare, rebuild) were exercised through fakes only.