Repository navigation
Description
Problem
A pull request that the roadmap Service opens can merge in minutes. The Service made 34 plan pull requests with defects out of 37 on 2026-11-01, and no CI job looks at a plan before it merges. The first design of this issue was a commit status service-vetted, set by the independent review and required by a ruleset. It cannot be built: no review workflow exists in this repository, the independent review runs outside it, and the token of the Service App has no statuses permission. A ruleset also selects on ref_name only, so it cannot select a Service pull request by branch or label.
Expected
The workflow .github/workflows/pr-title.yml has a job plan-check for a docs(openspec) plan pull request of the Service. The job needs semantic-title, uses always() so that a failed title still reaches it, holds the permissions checks, contents and pull-requests (all read), and runs devops roadmap plan-check. Its condition selects the author devops-cli-service[bot] and a title that starts with docs(openspec): plan #. Any other pull request skips the job and passes. The job is advisory: it shows the form problems of a plan and claims no review. It posts no service-vetted status.
Acceptance criteria
- A test holds the needs,
always(), the permissions, the condition and the steps of the job. - A test runs the condition for a plan of the Service, and for an implement, a person, another bot and a release pull request.
- A test holds the login in the condition equal to the login of the Service App bot (
devops-cli-service[bot], from the pull request API of a real plan pull request). docs/roadmap/plan-check.mdanddocs/ROADMAP_WORKFLOW.mddescribe the job and say that it is advisory.
Existing Tool Considered
GitHub Actions and the existing command devops roadmap plan-check. They need no new tool. palantir/policy-bot could host a blocking gate, but it only consumes an approval and does not run the check. That gate is out of this scope.
Out of scope
- The status
service-vetted, and any gate that reads the independent review. A person decides where that review runs (see feat(roadmap): Add a draft PR evaluator for issue and rules #2867). - Making
Plan Checka required check. A person does this in the ruleset ofmain(ADR 0014), after the plan reader gives no false alarm.
Related
#2867 (where the independent review runs), #2877.
Alternatives check of 2026-11-05: partly.
Tool: palantir/policy-bot (https://github.com/palantir/policy-bot), Apache-2.0, last activity 2026-11-03, maintained.
Proposed design
Problem statement
A Service plan pull request can merge with defects and no check stops it. The service-vetted status poster in the original design cannot be built: no review workflow exists, the independent review runs outside the repository, and the Service App token is scoped to permissions that do not include statuses. This change adds an automated plan-check job for plan pull requests from devops-cli-service[bot] and defers the blocking gate to palantir/policy-bot.
Acceptance criteria
Existing Tool Considered
palantir/policy-bot (https://github.com/palantir/policy-bot), Apache-2.0, last activity 2026-11-03, maintained. It covers the blocking gate in part: it posts a status check on the pull request head commit that a repository ruleset can require, selects a pull request by label, author, title or changed files, resets the check to pending on a new push with invalidate_on_push, and runs as its own GitHub App. It lacks the independent review itself: it only consumes an approval review or comment from a configured user, team or organization, it does not run devops roadmap plan-check, and a person must write the policy file and add the check to the required checks of the ruleset. The plan-check job uses the existing devops roadmap plan-check command and the GitHub Actions check run, so it needs no new library. The original status poster would cost about 40k tokens and 2 hours to build; policy-bot removes that code.
Key questions
- Who makes
plan-checka required check?: A person, in practice the owner, changes themainruleset. ADR 0014 records that only a person changes the ruleset. Makeplan-checkrequired after the plan reader false alarms are fixed; until then the job stays advisory. (a person decides) [sources: docs/adr/0014-required-checks-gate-the-merge-and-the-pre-push-hook-runs-the-fast-static-checks.md:16, docs/ROADMAP_WORKFLOW.md:13] - Which open, maintained tool covers the blocking gate?: palantir/policy-bot (Apache-2.0, last activity 2026-11-03). It posts a required status check on the head commit, selects a pull request by author and title, resets on a push with
invalidate_on_push, and runs as its own GitHub App. It lacks the review itself: it consumes an approval from a configured user or team, does not runplan-check, and a person must write the policy file and add the check to the ruleset. The web search gave no result, so the tool facts stay as the alternatives check recorded them. (proposed)- Chosen: palantir/policy-bot. It covers the status check, the selection and the reset on a push, and it runs as its own GitHub App.
- Rejected: Build a status poster. The Service App token is scoped to permissions without
statuses. The poster costs about 40k tokens and 2 hours. - Rejected: No tool. The need has a maintained tool. A hand-built poster costs more.
Open questions
- Who makes
plan-checka required check? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(ci)scope of the title gives the scope.It prevents defective Service pull requests from merging but does not block the project or expose a security risk.It stops bad plans from merging and blocking later jobs, reducing rework for the team.The body estimates about 60 lines of status poster code, one test, and a ruleset change.Both concern review of Service pull requests before they proceed, but 2867 delivers the evaluation decision while the candidate delivers the merge-blocking enforcement via a status check and ruleset.devops-cli-service commentedon Nov 2, 2026
Refine cannot set this item to Ready at 11dc347 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
dan-petty commentedon Nov 4, 2026
Evaluation of 2026-11-04. This design cannot work as written, and a plan check does not replace the independent review.
What is wrong.
.github/workflowsholdsci,cleanup-devcontainer,clear-status,codeql,copilot-setup-steps,defect-pr-hardening-audit,fail-to-pass,pr-titleandrelease. A search of the repository findsservice-vettedonly in the archived plan of fix(roadmap): the implement job watch reads commit statuses, which the App token may not read #2877, and in no code and no workflow. The review exists only on the agent side, outside the repository.ref_nameonly, so a ruleset cannot select a pull request by head branch or by label.openspec/changes/archive/2026-11-03-2877-the-implement-job-watch-reads-commit/proposal.md:37).Keep this item for the independent review. The owner rule of 2026-11-01 asks for a review of each Service pull request, plan or implement.
devops roadmap plan-checkdoes not prove that. It builds no model client and it reports form. In the window 22 of 31 plan pull requests pass it with exit 0, and one of them, PR #3396, was later closed because its premise was false at the base. So no check namedservice-vettedcan rest on it, and the safe-and-vetted call stays with a person.Add a first step with an honest name.
plan-checkrunsdevops roadmap plan-checkon a plan pull request. It needs no model. It reports through the check run of the job.if:selects a Service plan pull request by author and title. A job that its condition skips reports Success (header of.github/workflows/fail-to-pass.yml), so other pull requests pass, also person and release pull requests. Confirm this on a test pull request first.Semantic PR titleor runs after it, because_check_problems(src/devops_cli/roadmap/plan_check.py:186-220) reports a problem when that check is missing or has not passed.plan_check.py:160-165returns a body problem when the body has noPlans #, so an implement pull request always fails.Open points.
### Dependenciesheading above the refine block with the number of the new issuefix(roadmap): the plan reader reports each bad plan with no crash, because plan-check gives false alarms today.x. Do not edit text inside the markers. A body edit starts a new refine round, and the cause of the stubs is unverified, so a new stub can follow.devops-cli-service commentedon Nov 5, 2026
Refine cannot set this item to Ready at e447ea2 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
plan-checka required check? (a person decides)dan-petty commentedon Nov 5, 2026
The premise of this item fails at origin/main. The item cannot be built as written.
Evidence:
The plan-check part of the refined design holds. The functions plan_check.py:186-217 and commands/roadmap.py:758 exist.
A person must decide the next step. Either accept a narrower plan-check job, or name the gate that the independent review drives.
devops-cli-service commentedon Nov 5, 2026
Alternatives check: partly
Tool: palantir/policy-bot (https://github.com/palantir/policy-bot)
Covers:
Lacks:
Searches run:
Sources:
Checked on 2026-11-05. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 5, 2026
Refine cannot set this item to Ready at d254410 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
plan-checka required check? (a person decides)devops-cli-service commentedon Nov 6, 2026
Refine cannot set this item to Ready at be8d18a until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
plan-checka required check? (a person decides)[-]feat(ci): a service-vetted status check blocks the merge of a Service pull request until the independent review passes[/-][+]ci(roadmap): run plan-check on each plan pull request of the Service[/+]dan-petty commentedon Nov 6, 2026
Answer from project standards, under the owner's instruction of 2026-11-05.
Question: Who makes
plan-checka required check?Answer: A person. Only a person changes the repository settings, and the required checks of
mainare a ruleset setting. The rule is ADR 0014 (docs/adr/0014-required-checks-gate-the-merge-and-the-pre-push-hook-runs-the-fast-static-checks.md, "Owner steps") andAGENTS.md("Only a person ... changes secrets, repository settings and hosts").Recommendation: Make
Plan Checka required check only after the plan reader gives no false alarm. Until then the job stays advisory. Keep this in mind: the check is a form check, so its pass does not mean that a plan is vetted. 22 of 31 plan pull requests passed it in one window, and one was later closed because its premise was false.Scope change. The gate
service-vettedcannot be built here, because the independent review runs outside this repository and the Service App token has nostatusespermission. So I re-scoped the issue (title and body) to the advisory jobplan-checkin.github/workflows/pr-title.yml. It needssemantic-title, usesalways(), holdschecks,contentsandpull-requestsread, and runsdevops roadmap plan-check. Noservice-vettedstatus is posted.Bot login. It is
devops-cli-service[bot]. I read it from the pull request API of the real plan pull request #3261 (user typeBot), and a test holds it equal to the login that the settings give for the slug of the Service App.The branch is committed locally; the pull request follows after the full checks.
ci(roadmap): run a plan check on each plan pull request of the Service
docs(openspec): give each task group a kind and a nested verification…
ci(roadmap): make the title workflow use managed Python
docs(openspec): archive the plan-check job change