Repository navigation
Description
Problem Description
In src/devops_cli/roadmap/stage/stage_eval_gates.py, _path_gate calls check_proposal without passing issue_body.
check_proposal executes check_gates, which evaluates every gate in ProposalGate including ProposalGate.CRITERIA.
When issue_body is empty, criterion_problems cannot verify whether criteria entries come from person-written issue text.
Any rule that rejects unknown criteria then fails in _path_gate for plans that have criteria.
The evaluation system defines separate gates for PATHS and CRITERIA.
_path_gate couples paths evaluation to criteria checking and creates false failures.
Reproduction Steps
- Add an unknown-criterion check to
criterion_problems. - Run
_path_gateon a plan with valid criteria and an issue body. - Observe
_path_gatefailing on criteria problems because it passed an emptyissue_bodystring.
Expected vs Actual Behavior
Expected: _path_gate verifies repository paths and delta rules, or passes the case issue body to check_proposal.
Actual: _path_gate runs criteria checks with an empty issue body and rejects plans with valid criteria.
Environment Diagnostics
- DevOps CLI Version: 0.83.2
- Python Version: 3.14.10
- OS & Architecture: Linux x86_64
- Execution Environment: Local Workstation / CI
Logs, Traces, or Terminal Output
def _path_gate(plan: PlanUnderTest) -> list[str]:
return check_proposal(
plan.proposal,
plan.known,
plan.tree,
requirements=plan.requirements,
search_evidence=plan.search_evidence or None,
)Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Proposed design
Problem statement
The _path_gate function calls check_proposal without the issue body. check_proposal runs the criteria rule, so the PATHS gate can refuse a plan that has valid criteria. The fix passes the issue body for a plan that has a criteria list, and an empty body for a recorded plan that has none.
Acceptance criteria
Requirement: Paths gate passes the issue body
The _path_gate function SHALL pass the issue body of a mapped plan to check_proposal.
Scenario: Mapped plan with a criteria list
- WHEN
_path_gateruns on aPlanUnderTestwhosemappedflag is true and whoseissue_bodyholds the issue text. - THEN
check_proposalreceives that issue body and the gate returns no problem for a valid criterion.
Requirement: Paths gate uses an empty body for a recorded plan
The _path_gate function MUST pass an empty issue body to check_proposal when the plan has no criteria list.
Scenario: Recorded plan without a criteria list
- WHEN
_path_gateruns on aPlanUnderTestwhosemappedflag is false. - THEN
check_proposalreceives an empty issue body and the gate does not refuse the plan for a missing criterion source.
Requirement: Regression test covers the paths gate
The change SHALL add a test that proves the paths gate passes the issue body of a mapped plan.
Scenario: Unit test for the paths gate
- WHEN The test suite runs
tests/roadmap/stage/test_roadmap_stage_eval_gates.py. - THEN The test asserts that
_path_gatereturns no problem for a mapped plan with a valid criterion and a non-empty issue body.
Requirement: Criteria gate stays separate
The GATES table SHALL keep GateName.PATHS and GateName.CRITERIA as separate entries.
Scenario: Gate table
- WHEN The stage gates load.
- THEN
GATESholds onePATHSentry and oneCRITERIAentry.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this need: the defect is in the project's own _path_gate call. The change edits one call argument and adds one test. It builds no new tool or library.
Key questions
- How should
_path_gateavoid the false criteria failure?: Passissue_body=plan.issue_body if plan.mapped else ""tocheck_proposal, and keep the criteria rule incheck_proposal. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_gates.py, openspec/changes/3391-refuse-criteria-entries-not-in-the/design.md]- Chosen: Pass the issue body for a mapped plan. The criteria rule needs the issue text to tell a person-written criterion from an unknown one.
- Rejected: Remove the criteria rule from
check_proposal. The job needs the criteria check, and a separateCRITERIAgate already exists for it. - Rejected: Pass the issue body for every plan. A recorded plan has no criteria list, so the rule would refuse a plan that was never asked for one.
- Which test file proves the paths gate passes the issue body?: Add the regression test to
tests/roadmap/stage/test_roadmap_stage_eval_gates.py, the test module for the stage gates. [sources: tests/roadmap/stage/test_roadmap_stage_eval_gates.py, src/devops_cli/roadmap/stage/stage_eval_gates.py] - Should the change add a new replay gate for this defect?: No. The defect is a false failure in the existing
PATHSgate, so the fix changes_path_gateand adds no gate. (best practice) [sources: src/devops_cli/roadmap/stage/stage_eval_gates.py]- Chosen: Reuse the
PATHSgate. The gate already owns thecheck_proposalcall, and the defect is a wrong argument in that call. - Rejected: Add a new gate. A new gate would duplicate the
PATHSgate and add a defect type for a bug that has no new defect type.
- Chosen: Reuse the
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-10: none.
Tool: none found.
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The bug causes incorrect rejections of valid plans in the evaluation pipeline but does not block the system entirely.Correct evaluation results matter for trust in the gate system, but the impact is limited to plans with criteria.The fix is to pass issue_body or restrict the gate set in one function call.Both touch criteria validation in check_proposal, but #3391 adds a rule to refuse unknown criteria while the candidate removes the paths gate's incorrect call into criteria checks.devops-cli-service commentedon Nov 8, 2026
Status set to Ready at c8990be (see proposed design in issue body).
devops-cli-service commentedon Nov 10, 2026
Alternatives check: none
Reason: The issue is a bug in the project's own
_path_gatecall, where it passes noissue_bodytocheck_proposal. The one search returned only generic input-validation pages. No external tool or library can fix an internal argument in one function, so none applies.Tool: none found
Lacks:
_path_gateandcheck_proposalcouplingSearches run:
Checked on 2026-11-10. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Released in v0.159.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.159.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 23:51 UTC