Repository navigation
Description
Problem Statement
GitHub will merge a pull request into release/* or main with failing or missing CI:
- The
mainruleset (21466414) hasrequired_status_checks: []. - The
releaseruleset (23059172) has no status-check rule at all. Both rulesets carry CodeQLcode_scanning,code_quality, and acode_coveragerule that nothing feeds. - Classic branch protection returns 404 for both branches.
Merge safety therefore rests on agents running devops pr check-readiness, which passes when a head SHA has no check runs and no statuses: _failing_check_runs returns two empty lists and _check_run_blockers reports nothing (src/devops_cli/commands/pr.py:1343-1405).
That state is common:
- The repository has 0 Actions secrets, so
.github/workflows/update-prs.yml:72and:80fall back toGITHUB_TOKEN; the workflow's permissions arecontents,pull-requestsandissueswrite (:45-48), and no workflow hasactions: write(grep -n 'actions:' .github/workflows/*.ymlfinds onlycodeql.yml:39 actions: read). - Pushes made with
GITHUB_TOKENare not guaranteed to start workflows. On PR fix(k8s): integrate monitoring telemetry and fix dashboard metrics (#825) #828, two of the bot's merge commits (8675ec1, 700385d) have 0 check runs, while a later one (d259b97) got the full set; the result is inconsistent. - With required checks on, strict or not, a PR whose head is a bot commit without runs would wait on checks that never start, until someone pushes by hand. feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 closes that gap before this item turns the requirement on.
Two more problems:
.github/branch-protection.yml:8-16, 24-32declares acicontext that no job emits (the jobs are namedStatic AnalysisandTests & Coverage,.github/workflows/ci.yml:26,72), plusrequired_approving_review_count: 1and code-owner review rules a solo owner cannot satisfy on their own PRs.devops gh branch-protection syncwould apply them through the classic protection API (src/devops_cli/github/branch_protection.py:139,384), while its help text says it manages "rulesets" (src/devops_cli/lang/en/help.py:811-815); no code undersrc/devops_clicalls the rulesets API.- The verification policy lives only in issue text, and assessments keep re-proposing rejected options: no pasted logs (feat(github): pr readiness requires an issue-linked, completed task file #704), no per-check scoping (chore(ci): per-check input scoping — investigated, not building #405), test selection stays advisory (feat(cli):
devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406).
All of the last 100 merged PRs were green at merge, so this does not change disciplined work. It makes the rule binding before the unattended roadmap service (#741, #752, #981) arrives.
Proposed Solution
The owner's sequence D3 (2026-10-01) stands, with one correction accepted on 2026-10-02 (Q2): step 2 is a code change that must merge and be verified live before step 4 can be turned on, so it is its own item, #984. This item is steps 3, 4 and 5.
- fix(ci): only collaborators can trigger pr updates with
/updateor/synccomments #754 lands, restricting who can triggerupdate-prs.yml. - feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 (v0.2.27, after fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754 and refactor(ci): github ci runs the gate throughdevops cifrom one check table #843):devops pr update --dispatch-cidispatchesci.ymlon each head it updates, andupdate-prs.ymlgainsactions: write. - Pending a person: one bot-updated PR is confirmed to get fresh
Static AnalysisandTests & Coverageruns on its new head; with feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 in place those areworkflow_dispatchruns on the head branch. - Pending a person (owner settings): require
Static AnalysisandTests & Coverage(GitHub Actions source, strict) on both rulesets. On the release ruleset, setdo_not_enforce_on_create. Todaydevops release prcreates the branch locally and pushes a version-bump commit that has no check runs (src/devops_cli/commands/release.py:1177-1178,:812-829,git push -u origin <branch>at:823;:1577pushes tags only). fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 (v0.2.26, before this item) changes that command to pushchore/cut-vX.Y.Zonly, so by the time this step runs nodevopscommand pushes torelease/*; the branch is created by hand (or by feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740, undelivered, no milestone), anddo_not_enforce_on_createis what keeps that creation push unblocked. If the owner prefers not to set it, the proof is the nextrelease/*branch created by hand with the rule in place. Remove the inertcode_coveragerule from both rulesets. - This item's pull request:
- deletes
.github/branch-protection.yml; - keeps
devops gh branch-protection audit|syncfor classic protection, with help text (help.py:811-815) saying it manages classic branch protection and does not cover rulesets, and regeneratesdocs/commands/gh.mdanddocs/CLI_REFERENCE.mdfrom it; - adds
docs/adr/0004-ci-is-the-authoritative-gate.mdin the shape of ADR 0001-0003 (title statement,## Considered Options,## Consequences), recording: the two required checks, strict mode, the route (update-prs.ymlrunsdevops pr update --dispatch-ci,actions: writeis held only by that job, and the allowlist invariant intests/test_architectural_invariants.pythat feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 adds guards it) with the machine-account token kept out of Actions, owner decision D6 (automatic Copilot review runs on pull requests intomainonly, for the token budget; docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840 writes the same inAGENTS.md, replacingAGENTS.md:263), and the rejected options no pasted logs (feat(github): pr readiness requires an issue-linked, completed task file #704), no per-check scoping (chore(ci): per-check input scoping — investigated, not building #405), test selection advisory (feat(cli):devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406); - adds CONTEXT.md entries for Gate, Check and Required check, each with an Avoid line (CONTEXT.md has none of these today);
- adds
changelog.d/842.mdanddocs/agent/tasks/task-842-required-ci-checks.md, which quotes thegh apiruleset output from step 4.
- deletes
Owner decisions (2026-10-01), kept on record because they replace any matching proposed answer:
- D3, the order. Do not enable required checks until step 3 succeeds: fix(ci): only collaborators can trigger pr updates with
/updateor/synccomments #754, then bot updates start CI (feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984), then one bot-updated PR is confirmed to get fresh runs, then the required checks (strict) on both rulesets withdo_not_enforce_on_createon release or proof thatdevops releasestill works, then delete.github/branch-protection.yml. - D3 step 2, the route. Dispatch: update-prs dispatches
ci.ymlfor each branch it updates. The ADR 0002 machine-account token stays only in the cluster Secret that feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 deploys and is not stored as an Actions secret, so the privileged token lives in one place.
Owner decision (2026-10-02, Q2): #842 keeps steps 3-5; #984 holds step 2 and sits between #754 and #842 in v0.2.27.
Scope
In this item: the step 5 pull request, with steps 3 and 4 recorded as Pending a person: bullets with their exact commands in the task file. One pull request.
Not in this item: the dispatch code (step 2), which is #984; it depends on #754 and #843 and lands before this item. The parts of the original body that described step 2 (the PROJECT_TOKEN option, "ci.yml gains that trigger") are superseded by the owner's dispatch decision and by ci.yml:16, which already has workflow_dispatch.
Constraints:
- No privileged token or permission goes into
update-prs.ymlbefore fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754 (owner D3; fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754's own decision says it lands before update-prs is given any privilege). The one permission that follows,actions: write, arrives with feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984, not here. - Job names stay stable: refactor(ci): github ci runs the gate through
devops cifrom one check table #843 pinsStatic AnalysisandTests & Coveragein itsci.ymlparity test. - This pull request does not touch
.github/workflows/ci.ymlortests/test_architectural_invariants.py; feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 owns those edits. - Tests run offline; nothing in the pull request calls GitHub.
CHANGELOG.mdanddocs/ROADMAP.mdare not edited;changelog.d/842.mdcarries the entry.
Key Questions
All answered.
- Token or dispatch? Answered (owner, 2026-10-01): dispatch.
update-prsdispatchesci.ymlfor each branch it updates (feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984); the machine-account token lives only in the cluster Secret from feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741. - Order? Answered (owner D3, Q2): fix(ci): only collaborators can trigger pr updates with
/updateor/synccomments #754, then feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984, then this item. Required checks are not enabled until one bot-updated PR gets fresh runs. Step 5 follows step 4. - Which checks? Answered:
Static AnalysisandTests & Coverage, strict. refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 pins these job names in its parity test; they stay stable. - Release branch creation? Answered: set
do_not_enforce_on_createon the release ruleset. D3 offered that or proof thatdevops release prstill pushes a newrelease/*branch; the proof no longer tests this ruleset, because fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 (v0.2.26, before this item) makesdevops release prpushchore/cut-vX.Y.Zonly (its body says so of this item's steps). The creation push of arelease/*branch then comes from a person (or feat(github): current release admission, cap, descoping and stall rules (devops roadmap reprioritize) #740 when it lands) and carries a commit with no check runs, which is the case that parameter exists for. Today's creation push atrelease.py:823is the same case. - Remove the
code_coveragerule now? Settled from the original condition ("unless the changed-line coverage item feeds it"): the only candidate is the roadmap entry "Changed-Line Coverage and Vanished-Test Report Against the Merge Base" (docs/ROADMAP.md:1013, P2, no issue), whose deliverable is a diff-cover report insidedevops ciand never mentions the ruleset rule. Nothing feeds the rule on either ruleset, so step 4 removes it from both; whoever delivers that entry adds the rule back together with what feeds it. - Fold step 2 into fix(ci): only collaborators can trigger pr updates with
/updateor/synccomments #754 or make it a new item? Answered (owner Q2, 2026-10-02): a new item, feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984. fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754's owner decision D3 ("lands before update-prs is given any privileged token") rules out shippingactions: writein fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754's pull request. - Where does the dispatch live, and how does it target the new head? Answered in feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984: the dispatch lives in_update_single_prbehind--dispatch-ci, whichupdate-prs.ymlpasses; it polls the head SHA (6 attempts, 5 s apart) and dispatches on the head branch only once the SHA changed, dispatching nothing otherwise.
Acceptance Criteria
-
rg -n 'branch-protection.yml' --glob '!CHANGELOG.md' --glob '!docs/ROADMAP.md' --glob '!docs/agent/tasks/task-114-*'matches only the command's default path (src/devops_cli/commands/gh.py:1646,1699,src/devops_cli/github/branch_protection.py:80), the generateddocs/commands/gh.mdanddocs/CLI_REFERENCE.md, andtests/test_github_branch_protection.py:68.CHANGELOG.mdanddocs/ROADMAP.mdare never edited in an item pull request, and task-114 is a historical record (Status: Done). -
uv run devops gh branch-protection --helpsays the command manages classic branch protection and does not cover rulesets; a CliRunner test intests/test_github_branch_protection.py(which already invokes theghapp at:349) asserts the help text containsclassicandrulesets. No test covers this help text today. -
uv run devops gh branch-protection audit --repo dan-petty/devops-cliwith no--policy-filereportsBranch protection policy file not found(branch_protection.py:82-87) rather than a traceback;test_load_branch_protection_policies_missing_file(tests/test_github_branch_protection.py:82-85) still passes. -
docs/adr/0004-ci-is-the-authoritative-gate.mdexists, has the sections of ADR 0001-0003 (statement,## Considered Options,## Consequences), names both required checks, strict mode, thedevops pr update --dispatch-ciroute withactions: writeheld only by theupdate-prs.ymljob and guarded by feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984's allowlist invariant, D6 (Copilot review on pull requests intomainonly;rg -n 'main' docs/adr/0004-ci-is-the-authoritative-gate.mdshows the sentence), and the rejected options feat(github): pr readiness requires an issue-linked, completed task file #704, chore(ci): per-check input scoping — investigated, not building #405 and feat(cli):devops ci testselects tests from a coverage index built on demand bydevops ci coverage --build-index#406.uv run devops docs checkpasses (it is thedocsrow ofuv run devops ci,src/devops_cli/commands/ci.py:442-448). - CONTEXT.md has Gate, Check and Required check entries with Avoid lines:
rg -n -A2 '^\*\*(Gate|Check|Required check)\*\*:' CONTEXT.mdprints three entries, each followed by an_Avoid_:line. No test reads CONTEXT.md today (rg -l CONTEXT.md tests/prints nothing), and this item adds none. -
changelog.d/842.mdexists anduv run devops pr check-readinesspasses on the pull request with noCHANGELOG.mdordocs/ROADMAP.mdchange. -
docs/agent/tasks/task-842-required-ci-checks.mdpassestests/test_agent_task_files.py(issue link, no pull request field, no unchecked box). -
git diff main...HEAD --stat -- .github/workflows/ci.yml tests/test_architectural_invariants.pyprints nothing; those files belong to feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984. -
uv run devops cipasses offline. - Pending a person (after feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 merges): a bot update after a release-branch merge produces freshStatic AnalysisandTests & Coverageruns on the PR head. Commands:gh pr view <n> --json headRefOid --jq .headRefOid, thengh api repos/dan-petty/devops-cli/commits/<sha>/check-runs --jq '.check_runs[].name'; both names appear.gh run list --workflow ci.yml --event workflow_dispatch --branch <head> --limit 3shows the dispatched run on the head branch. Output pasted into the task file. - Pending a person:
gh api repos/dan-petty/devops-cli/rulesets/21466414andgh api repos/dan-petty/devops-cli/rulesets/23059172each show arequired_status_checksrule listing both contexts withstrict_required_status_checks_policy: true, and nocode_coveragerule; the release ruleset showsdo_not_enforce_on_create: true, or the next bullet proves creation works. Output pasted into the task file. - Pending a person: a throwaway PR with a failing test shows
gh pr view <n> --json mergeStateStatus --jq .mergeStateStatusasBLOCKED. - Pending a person (only when
do_not_enforce_on_createis not set): the nextrelease/*branch is created by hand (git push -u origin release/vX.Y.Zfrom themaintip) with the rule in place, andgh api repos/dan-petty/devops-cli/branches/release/vX.Y.Z --jq .nameprints it.devops release pris not the proof: after fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982 it pusheschore/cut-vX.Y.Z, notrelease/*.
Out of Scope
- The dispatch code in
devops pr updateand theactions: writepermission onupdate-prs.yml: feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 delivers both, with its offline tests and the allowlist invariant. - Storing any token as an Actions secret (owner decision 2026-10-01).
- Renaming the
Static AnalysisandTests & Coveragejobs (refactor(ci): github ci runs the gate throughdevops cifrom one check table #843 pins them). - Changing what
devops pr check-readinesstreats as a blocker when a head has no runs; with required checks on, GitHub blocks that merge itself. - Making CI cover bubblewrap confinement (refactor(ci): ci installs nothing on the runner, and live bubblewrap tests skip where bwrap is missing #832 moves those tests to the devcontainer).
- The changed-line coverage integration (
docs/ROADMAP.md:1013) and any rule that would feedcode_coverage. - Porting
devops gh branch-protectionto the rulesets API.
Dependencies
- Depends on fix(ci): only collaborators can trigger pr updates with
/updateor/synccomments #754 (v0.2.27, step 1): restricts who can triggerupdate-prs.ymlbefore the workflow gains any privilege; fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754's own D3 says it lands first. - Depends on feat(ci):
devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 (v0.2.27, step 2, which depends on fix(ci): only collaborators can trigger pr updates with/updateor/synccomments #754 and refactor(ci): github ci runs the gate throughdevops cifrom one check table #843): the dispatch code andactions: writethat step 3 verifies live; feat(ci):devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 lands before this item. - Depends on refactor(ci): github ci runs the gate through
devops cifrom one check table #843 (v0.2.26): it rewrites thestaticandteststeps ofci.ymland pins the job names this item requires in its parity test (its body names chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842 as relying on them). - Overlaps feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 (v0.2.26): the machine-account token lives in the Secret feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 creates from the keyring (
devops-cliin namespacedevops, keyGH_TOKEN), and nowhere else. - Overlaps feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752 (v0.2.26): the unattended service whose merges this gate binds. - Overlaps fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 (v0.2.26): after itdevops release prpusheschore/cut-vX.Y.Z, neverrelease/*, so step 4 settles ondo_not_enforce_on_createand nodevops releaserun proves anything about the release ruleset; its body names this item's release-branch steps as superseded. - Overlaps docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 (v0.2.27): it writes D6 (Copilot review on pull requests intomainonly) intoAGENTS.md; ADR 0004 records the same decision so the two agree (its body names chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842 for this). - Overlaps fix(telemetry): grafana aggregate lines sum and average the lines shown, read as dashed reference lines, and reach calls in flight #970 and fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (backlog) only in CONTEXT.md: additive, different sections.
- Design: ADR 0002 (
docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md).
Order: #843 (v0.2.26) -> #754 -> #984 -> #842.
Finding from the v0.2.25 release PR (2026-10-03): Copilot re-reviews the whole release diff on every push
Problem (added). D6 keeps automatic Copilot review on pull requests into main only, for the token budget. The main ruleset's copilot_code_review rule has review_on_push: true (read through the rulesets API on 2026-10-03). A release PR into main receives a push each time an item PR merges into the release branch, so Copilot reviewed the whole release diff again on each push and opened new threads each pass: three passes on #1089, each adding threads on code the previous pass had already covered. Every pass spends the token budget D6 protects and adds threads that block merge (required_review_thread_resolution: true).
Acceptance criteria (added).
- The
mainruleset's Copilot rule setsreview_on_push: false, so Copilot reviews a release PR once when it is opened or marked ready, and a person (ordevops pr ready) requests a re-review on purpose. ADR 0004 records this beside D6. - The ruleset change is a person's step (rulesets are owner settings, as in this item's sequence); the PR records the before and after
copilot_code_reviewparameters read withgh api repos/{owner}/{repo}/rulesets/<id>. - If
devops pr readyrequests the Copilot review, a test with a fake client shows it requests exactly one review per call and none on later pushes.
Key question (added). Keep review on push and dismiss stale threads instead? (proposed) No. Re-reviewing the full diff is the cost D6 avoids; one review at ready time, plus deliberate re-requests, keeps the gate and the budget.
Readiness check (2026-10-04)
Re-checked at b61e5a0 (release/v0.2.26). #843, #741 and #982 are merged. #754 and #984 are open and earlier in v0.2.27, as order D3 requires. One owner decision is open (last section).
Corrected locations (under src/devops_cli/ unless stated):
commands/pr.py:_failing_check_runsis at:1346,_check_run_blockersat:1376..github/workflows/ci.yml:Tests & Coverageis at:46(was:72);Static Analysisis still at:26.- The default policy path is at
commands/gh.py:1560and:1613(were:1646and:1699).github/branch_protection.py:80, its missing-file error:82-87and the classic API calls:139and:384are unchanged. At HEAD, the first criterion'srgmatches exactly these, plus the generateddocs/commands/gh.mdanddocs/CLI_REFERENCE.mdandtests/test_github_branch_protection.py:68. - The branch-protection help strings are at
lang/en/help.py:864-872(were:811-815). - Release push path after fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982:devops release prrunscut_release(commands/release.py:1328) and force-pushes onlychore/cut-vX.Y.Z(:1072).- Tags are pushed at
:1854. - The citations
release.py:1177-1178,:812-829,:823and:1577are gone.
Stale premise: a devops command does create release/*. #740 is closed (v0.2.25), not "undelivered, no milestone". When a release starts, devops roadmap reprioritize creates release/vX.Y.Z at the default branch's head. It does this through POST repos/{repo}/git/refs (roadmap/reprioritize.py:1612-1619, roadmap/github_store.py:1092-1101), as the machine account. Step 4's answer stands: do_not_enforce_on_create keeps that creation unblocked, and it now protects an unattended job rather than a hand push.
- Step 4's fallback proof, needed only when
do_not_enforce_on_createis not set, is the nextrelease/*branch thatdevops roadmap reprioritizecreates with the rule in place. Read it back withgh api repos/dan-petty/devops-cli/branches/release/vX.Y.Z --jq .name.
A test reads CONTEXT.md now. tests/test_roadmap_lifecycle_properties.py:1131-1141 collects terms from lines matching ^\*\*Term\*\*:$, so "No test reads CONTEXT.md today" is stale.
- The Gate, Check and Required check entries use exactly that form: the term alone on its line, ending in
:, then the definition, then_Avoid_:. The existing test keeps passing, and this item still adds no test.
devops pr ready requests no Copilot review at HEAD. rg 'requested_reviewers|copilot-pull-request-reviewer|--add-reviewer' src/devops_cli finds nothing. The criterion "If devops pr ready requests the Copilot review..." therefore has nothing to test, and no code change follows from the 2026-10-03 finding: re-reviews are a person's request.
Open owner decision. The 2026-10-03 key question ("Keep review on push and dismiss stale threads instead?") is marked "(proposed)" and has no recorded owner answer. It changes what the reviewed gate covers: with review_on_push: false, item PRs merged into the release branch after the release PR opens get no automatic Copilot pass. Recommended: accept review_on_push: false, for the token budget D6 protects. ADR 0004's sentence on this and the step-4 ruleset change wait on the answer.
Owner decision (2026-10-04)
The owner accepted the recommendation in the readiness check above; the 2026-10-03 key question is answered "No".
- The
mainruleset's Copilot rule setsreview_on_push: false. Copilot reviews a release PR once, when it is opened or marked ready, and each re-review is requested on purpose by a person. - Accepted trade-off: item PRs merged into the release branch after the release PR opens get no automatic Copilot pass.
- ADR 0004 records this decision and the trade-off beside D6. The step-4 ruleset change no longer waits on an answer.
Amended criterion. The conditional criterion "If devops pr ready requests the Copilot review, a test with a fake client shows ..." is replaced by:
-
devops pr readyrequests no Copilot review, and this item adds no code that requests one; re-reviews are a person's request. At merge,rg 'requested_reviewers|copilot-pull-request-reviewer|--add-reviewer' src/devops_clifinds nothing.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 1, 2026
Placement (2026-10-01): v0.2.27. Value High, Effort Medium. Not Ready yet.
Checked against
release/v0.2.24at d38251e. What stops it being Ready:/updateor/synccomments #754.devops pr updateuses the async update-branch API (pr.py:1595-1660), so how does the dispatch wait for or target the new head? update-prs.yml would needactions: write, which no workflow has today. Should the dispatch live in the workflow or indevops pr update?dan-petty commentedon Oct 3, 2026
The machine-account token now lives in Secret
devops-cli(namespacedevops, keyGH_TOKEN), created by #741 from the keyring.chore(github): required CI checks bind merges into release and main (#…
dan-petty-bot commentedon Oct 6, 2026
What changed
#1251, merged into
release/v0.2.27as 20525df.11 file(s) changed.
How it was verified
Check runs at c79063c:
Acceptance Criteria of
docs/agent/tasks/task-842-required-ci-checks.md:rg -n 'branch-protection.yml' --glob '!CHANGELOG.md' --glob '!docs/ROADMAP.md' --glob '!docs/agent/tasks/task-114-*'matches only allowed code defaults and reference documentation.devops gh branch-protection --helpspecifies that the command manages classic branch protection policies and does not cover rulesets; tested via CliRunner intests/test_github_branch_protection.py.devops gh branch-protection audit --repo dan-petty/devops-clireportsBranch protection policy file not foundwith no traceback when policy file is absent; tested via CliRunner intests/test_github_branch_protection.py.docs/adr/0004-ci-is-the-authoritative-gate.mdexists in ADR 0001–0003 format recording the required checks, strict mode, dispatch route, token boundary, D6 Copilot review policy, and rejected options.CONTEXT.mdcontainsGate,Check, andRequired checkentries with_Avoid_:lines conforming to lifecycle property invariants.devops docs check.changelog.d/842.mdcreated.docs/agent/tasks/task-842-required-ci-checks.mdpassestests/test_agent_task_files.py.git diff origin/release/v0.2.27...HEAD --stat -- .github/workflows/ci.yml tests/test_architectural_invariants.pymakes no edits to CI workflow or architectural invariants.uv run devops ci.devops pr update --dispatch-cistarts ci.yml on each branch it updates, and only update-prs.yml may holdactions: write#984 merges): A bot update after a release-branch merge produces freshStatic AnalysisandTests & Coverageruns on the PR head.gh pr view <n> --json headRefOid --jq .headRefOidgh api repos/dan-petty/devops-cli/commits/<sha>/check-runs --jq '.check_runs[].name'gh run list --workflow ci.yml --event workflow_dispatch --branch <head> --limit 3required_status_checkswithStatic AnalysisandTests & Coveragein strict mode, withoutcode_coverage, and withdo_not_enforce_on_create: trueon release.gh api repos/dan-petty/devops-cli/rulesets/21466414gh api repos/dan-petty/devops-cli/rulesets/23059172gh pr view <n> --json mergeStateStatus --jq .mergeStateStatusasBLOCKED.mainruleset's Copilot rule setsreview_on_push: false.gh api repos/dan-petty/devops-cli/rulesets/21466414feat(release): v0.2.27 (#1257)