Repository navigation
Description
Problem or Motivation
The plan for #3236 (PR #3248) required that the audit "passes with a confinement entry for each path-like parameter" of every tool of CONST_MCP_EXPOSURE_TABLE. A census of the published schemas finds 60 tools with a path-like parameter. The plan listed three. The tasks, if built as written, would fail on the first run of the audit, or would need a long exempt list. The plan also scoped the work to three tools that no role table holds, and the issue asked for the tools of the role tables.
A requirement or a scenario that says "every X" or "no X" makes a claim about a set. No gate asks the plan to count the set.
Proposed Solution & Architectural Design
- When a requirement or a Criteria line uses "every", "all" or "no" with a noun, the plan gives in Feasibility the command that counts the set and its output (the size of the set and the members that break the claim).
- When the count is above zero for a claim of "no", the plan either narrows the claim or names the follow-up issue for the rest under Workflow follow-up.
- The plan stage prompt asks for the set that the issue names (here, the tools of a role table), and not the set of the examples.
Target Subsystem
The plan stage and check_proposal of devops roadmap; openspec/config.yaml proposal rules.
Source: #3248
Scope from #3325
The same class occurs when a plan adds a guard over a set. In #3230 the issue asked that no tool publishes a free-text sink parameter (env, values, value, data) with no allowlist entry. Plan PR #3283 defined the guard and its tests, and it never evaluated the live FastMCP inventory. It omitted k8s_diff_helm.values, so the guard test would fail at implementation. The plan of #3230 now names that entry (openspec/changes/3230-decide-the-free-text-mcp-parameters/proposal.md:15).
Replace item 1 of the proposed solution with one prompt rule. The planner cannot run a command (src/devops_cli/ai/tasks/roadmap_stage_change.md:9), so the rule must not ask for a command output that nobody produced:
- A claim about every member of a set, or a new guard over a set, gives a count from a tool of the plan run (
references) or from a probe line. - When no tool can count the set, the plan says that the count is unverified. It makes the census command the
verifyof its first group, and the implementation stops when the result differs from the plan. A census of published schemas needs a running program, soreferencescannot give it. - The plan decides each member that the count finds: removed, restricted, or allowlisted with a reason. The plan check or the verification reports a member with no decision.
- A count above zero for a claim of no members narrows the claim or names a follow-up issue (item 2 stays).
- The set is the set that the issue names, not the set of its examples (item 3 stays).
Do not build a word gate. every and no are common in requirements. Add the rule to src/devops_cli/ai/tasks/roadmap_stage_change.md, with a case in tests/roadmap/test_roadmap_stage_prompt_rules.py. Look at the rule again when #3242 delivers a run tool, because that tool is the later route to a real census.
No open tool reconciles a CLI schema with a project guard. The earlier estimate for a check in devops roadmap stage was about 15k tokens and 1 hour, and the prompt rule costs less.
Proposed design
Problem statement
A claim about every member of a set needs a count, and no gate asks the plan for one. The plan for #3236 named three tools of a set of 60, and the guard of #3230 missed k8s_diff_helm.values. The planner cannot run a command, so the rule uses a tool of the plan run or a probe line. The change adds one prompt rule, its config rule and its test, and it adds no word gate.
Acceptance criteria
Requirement: Count of a claimed set
The stage prompt SHALL ask the plan to give a count of the set that a claim about every member covers, from the references tool or from a probe line.
Scenario: The prompt states the count rule
- WHEN the test reads
src/devops_cli/ai/tasks/roadmap_stage_change.md - THEN the prompt holds
gives a count from a tool of the plan run or from a probe line
Requirement: Unverified count
The stage prompt SHALL ask the plan to say that the count is unverified when no tool can count the set, and to make the census command the verify of its first group.
Scenario: No tool counts the set
- WHEN the test reads the stage prompt
- THEN the prompt holds
the count is unverified,census commandandverify of the first group
Requirement: Decision for each member
The stage prompt SHALL ask the plan to decide each member that the count finds as removed, restricted, or allowlisted with a reason.
Scenario: A member has no decision
- WHEN the test reads the stage prompt
- THEN the prompt holds
removed, restricted, or allowlisted with a reasonanda member with no decision
Requirement: Narrow a claim of no members
The stage prompt SHALL ask the plan to narrow a claim of no members whose count is above zero, or to name a follow-up issue.
Scenario: The count of a claim of no members is above zero
- WHEN the test reads the stage prompt
- THEN the prompt holds
narrows the claimandfollow-up issue
Requirement: The issue's set
The stage prompt SHALL ask for the set that the issue names, and not the set of its examples.
Scenario: The issue gives examples of a larger set
- WHEN the test reads the stage prompt
- THEN the prompt holds
the set that the issue namesandnot the set of its examples
Requirement: Proposal rule holds the count
The proposal rule of openspec/config.yaml SHALL hold the count rule, so the config and the prompt give one rule.
Scenario: The prompt and the config keep one phrase
- WHEN the test reads
openspec/config.yamland the stage prompt - THEN both files hold
gives a count from a tool of the plan run or from a probe line
Requirement: No word gate
The change MUST NOT add a word rule to check_proposal.
Scenario: A plan uses the word every in a requirement
- WHEN
check_proposalruns on a plan whose requirement text holdseveryand whose paths exist at the staged commit - THEN it returns no problem that names the word
Requirement: Spec delta for roadmap-stage
The change SHALL add one requirement to the roadmap-stage spec delta for the count rule of the stage prompt.
Scenario: The change validates
- WHEN
uv run devops openspec checkruns on the change - THEN the change validates and its
specs/roadmap-stage/spec.mdholds the new requirement
Requirement: Prompt-rules test holds the rule
The test module tests/roadmap/test_roadmap_stage_prompt_rules.py SHALL assert each phrase of the new rule.
Scenario: The prompt holds every phrase of the rule
- WHEN
uv run devops ci test tests/roadmap/test_roadmap_stage_prompt_rules.pyruns - THEN the test passes, and each phrase of the rule has an assertion in the test module
Existing Tool Considered
No check has run. No open, maintained tool covers the need. No tool reconciles a CLI schema with a project guard. No linter can count the members of a set that only a running program produces. The change builds no code that it keeps: it adds one prompt rule, one config rule and their test. A check in devops roadmap stage was estimated at about 15k tokens and 1 hour, and the prompt rule costs less.
Key questions
- How does the plan count a set that a claim covers, when the planner cannot run a command?: The stage prompt gives the rule. A claim about every member of a set gives a count. A new guard over a set gives a count too. The count comes from a tool of the plan run (
references) or from a probe line. When no tool can count the set, the plan says that the count is unverified. The plan makes the census command theverifyof its first group. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md, openspec/config.yaml, tests/roadmap/test_roadmap_stage_prompt_rules.py]- Chosen: Prompt rule with a count from a tool or a probe line. The planner cannot run a command, so a command output in the plan would be invented.
- Rejected: Prompt rule that demands a command output. The planner cannot run a command, so the output would be unverified.
- Rejected: A word gate in
check_proposal.everyandnoare common in requirements, so the gate would refuse valid plans.
- What does the plan do for each member that the count finds?: The plan decides each member: removed, restricted, or allowlisted with a reason. A member with no decision fails the plan check or the verification. (best practice) [sources: openspec/changes/3230-decide-the-free-text-mcp-parameters/proposal.md:15, src/devops_cli/ai/tasks/roadmap_stage_change.md]
- Chosen: A decision for each member. The plan then leaves no member unhandled; the guard of feat(security): decide the free-text MCP parameters that can carry a secret #3230 missed
k8s_diff_helm.values. - Rejected: An exempt list for the members that break the claim. A long exempt list hides the members that no one decided.
- Chosen: A decision for each member. The plan then leaves no member unhandled; the guard of feat(security): decide the free-text MCP parameters that can carry a secret #3230 missed
- What does the plan do when a count is above zero for a claim of no members?: The plan narrows the claim or names the follow-up issue for the rest under
## Workflow follow-up. (best practice) [sources: openspec/config.yaml, src/devops_cli/ai/tasks/roadmap_stage_change.md]- Chosen: Narrow the claim or name a follow-up issue. The config already puts the work that the item will not do under
## Workflow follow-up. - Rejected: Keep the claim as written. The audit then fails on its first run, as it would have in fix(mcp): read-only tools take paths that reach the server file system #3236.
- Chosen: Narrow the claim or name a follow-up issue. The config already puts the work that the item will not do under
- Which set does the plan count?: The set that the issue names, and not the set of its examples. (best practice) [sources: openspec/config.yaml, src/devops_cli/ai/tasks/roadmap_stage_change.md]
- Chosen: The set that the issue names. The plan of fix(mcp): read-only tools take paths that reach the server file system #3236 counted the three examples and missed the 60 tools of the role tables.
- Rejected: The set of the examples. It leaves the rest of the set with no decision.
- Does the change add a check to
check_proposal?: No. The change adds no word rule tocheck_proposal. The census is theverifyof the first group, and the implementation stops when its result differs from the plan. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, tests/roadmap/test_roadmap_stage_prompt_rules.py]- Chosen: Prompt rule only. The plan check reads text, and a word rule cannot tell a claim about a set from a common use of
every. - Rejected: A word gate in
check_proposal. It refuses valid plans and needs an exempt list. - Rejected: A check that runs the census. The check runs offline and reads no program, so it cannot count a runtime schema set.
- Chosen: Prompt rule only. The plan check reads text, and a word rule cannot tell a claim about a set from a common use of
- Where does the rule live, and which test holds it?: The rule goes in
src/devops_cli/ai/tasks/roadmap_stage_change.md. The same phrase goes in the proposal rule ofopenspec/config.yaml. The test moduletests/roadmap/test_roadmap_stage_prompt_rules.pyasserts it. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md, openspec/config.yaml, tests/roadmap/test_roadmap_stage_prompt_rules.py]- Chosen: Prompt rule, config phrase and a phrase test. The prompt is the copy that the planner reads, and the test module already pins prompt phrases.
- Rejected: A rule in
openspec/config.yamlonly. The planner reads the prompt, so the rule would not reach the plan. - Rejected: A test of a model run. The test must assert the rule offline, and a model run gives no stable result.
- Does the change need a spec delta?: Yes. The prompt changes what the stage job plans, and the
roadmap-stagespec holds the prompt rules. The change adds one ADDED requirement. (best practice) [sources: openspec/config.yaml, openspec/specs/roadmap-stage/spec.md]- Chosen: Add one requirement to the roadmap-stage spec. The config says a message or behavior that a consumer observes carries a delta, and the roadmap-stage spec already holds the prompt rules.
- Rejected: Set
skip_specs: true. The stage job plans different content, and the spec holds the prompt rules.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-06: none.
Tool: none found.
Activity
dan-petty commentedon Nov 2, 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.(roadmap)scope of the title gives the scope.It improves plan accuracy but does not block a release or fix a live defect.It catches a recurring class of unverified universal claims in plans.It adds one check rule to check_proposal and one prompt instruction.Both add a validation gate on plan claims in the stage job, but #3266 checks tool-call claims while this checks set-count claims.devops-cli-service commentedon Nov 3, 2026
Refine cannot set this item to Ready at d895bae 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.
devops-cli-service commentedon Nov 5, 2026
Status set to Ready at ce689f4 (see proposed design in issue body).
devops-cli-service commentedon Nov 6, 2026
Alternatives check: none
Tool: none found
Lacks:
roadmap_stage_change.md,openspec/config.yamlandtests/roadmap/test_roadmap_stage_prompt_rules.py.Searches run:
Sources:
Checked on 2026-11-06. A person decides what this means for the item. The check changes no label and closes no issue.
[-]feat(roadmap): a plan claim about every member of a set cites a count of the set[/-][+]feat(roadmap): Add a set count to every-member plan claims[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 65 characters, and the limit is 60. The type and the scope stay.
feat(roadmap): a plan claim about every member of a set cites a count of the setfeat(roadmap): Add a set count to every-member plan claimsdevops-cli-service commentedon Nov 7, 2026
Staged: branch
feat/3304-add-a-set-count-to-every, draft pull request #3963. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
The runs of the planner and the review made 22 model request(s), and used 1552190 input tokens and 40396 output tokens. The tool calls, in order:
read_spec({"capability":"roadmap-stage"})read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md"})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py"})read_file({"path":"openspec/config.yaml"})search_code({"text":"census"})search_code({"text":"gives a count"})search_code({"text":"the set that the issue names"})search_code({"text":"counts a text in every file of the commit"})search_code({"text":"quote the probes"})search_code({"text":"Feasibility"})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":190,"end_line":400})read_file({"path":"src/devops_cli/ai/tasks/roadmap_stage_change.md","start_line":22,"end_line":120})search_code({"text":"yaml.compose"})read_file({"path":"tests/commands/test_openspec_scaffold.py"})references({"name":"roadmap_stage_change.md"})search_code({"text":"### Requirement: The stage prompt"})read_file({"path":"openspec/specs/roadmap-stage/spec.md","start_line":1600,"end_line":1650})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":470,"end_line":560})read_file({"end_line":470,"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py","start_line":390})read_file({"end_line":175,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":140})search_code({"text":"roadmap_stage_change"})search_code({"text":"STAGE_EVAL_TRIGGER_PATHS"})search_code({"text":"STAGE_EVAL_REPLAY"})read_file({"end_line":840,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":790})read_file({"end_line":475,"path":"tests/roadmap/stage/test_roadmap_stage_form.py","start_line":425})search_code({"text":"what_changes"})search_code({"text":"def what_changes_problems"})search_code({"text":"unlisted"})read_file({"end_line":40,"path":"openspec/changes/3427-refuse-a-group-verify-that-runs/design.md","start_line":1})search_code({"text":"_STAGE_EVAL_SCORE_WORDS"})read_file({"end_line":300,"path":"tests/roadmap/stage/test_roadmap_stage_kind.py","start_line":255})search_code({"text":"_SHARED"})search_code({"text":"count of a"})search_code({"text":"judges no word"})search_code({"text":"### Requirement: The plan check"})search_code({"text":"scenario"})read_file({"end_line":940,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":836})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_prompt_rules.py"})read_spec({"capability":"roadmap-stage"})search_code({"text":"eval stage"})search_code({"text":"_SHARED"})Tool calls: read_file=16 (empty=0), read_spec=2 (empty=0), references=1 (empty=0), search_code=22 (empty=4)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
docs(openspec): plan #3304 Ask the plan for a count of a claimed set
docs(openspec): plan #3304 Ask the plan for a count of a claimed set (#…
feat(roadmap): add a set count to every-member plan claims (#3304)
devops-cli-service commentedon Nov 8, 2026
Released in v0.86.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.86.0
devops-cli-service commentedon Nov 8, 2026
Live since 2026-11-08 00:33 UTC