Repository navigation
Description
Split from #4554.
devops ci fail-to-pass replays a changed module of tests/gate/<row>_checks/ with the row's gate runner, which prints one case ID per failure and a summary. Four gate modules print their own problem lines and no case ID or summary: tests/gate/ruff_config.py, tests/gate/construct_gate.py, tests/gate/startup_imports.py and tests/gate/swallowed_failures.py. A fix that changes only one of them has no replay, so the command exits 1 and the fix cites no pass. The change is deferred because those modules share no case format and no summary, so a replay needs one uniform output contract for them, which is a change of its own. Acceptance criteria: (1) a changed module of tests/gate/ that a devops ci row runs SHALL be replayed with that row against the base and head trees; (2) the command SHALL exit 0 when a problem line of the module appears on the base run and not on the head run; (3) the command MUST exit 1 when the module writes no problem line on the base run; (4) the report SHALL name the changed gate module and its problem line. The paths of .github/workflows/fail-to-pass.yml SHALL widen from tests/gate/*_checks/** to tests/gate/** when this lands.
Proposed design
Problem statement
devops ci fail-to-pass replays a changed module of tests/gate/<row>_checks/ with the row of that module. Four top-level gate modules print their own problem lines and no case ID or summary. A fix that changes only one of them gets no replay, so the command exits 1 and the fix cites no pass. This change gives those four modules one line-per-problem output contract and replays each changed module with its row on the base and head trees.
Acceptance criteria
Requirement: Changed gate module replayed
The devops ci fail-to-pass command SHALL replay a changed module under tests/gate/ with the devops ci row that runs it, against the base and head worktrees.
Scenario: Changed ruff configuration module
- WHEN A fix changes
tests/gate/ruff_config.pyand no other file. - THEN The dry run lists the row that runs
tests/gate/ruff_config.pyonce for the base worktree and once for the head worktree.
Requirement: One problem per line
Each of the four gate modules SHALL write every problem as one physical line on standard error.
Scenario: Start-up import problem with an embedded report
- WHEN A start-up import probe fails and its report holds a newline.
- THEN The standard error output of
tests/gate/startup_imports.pyholds one line for the problem and no embedded newline.
Requirement: Base-only problem proves the fix
The command SHALL exit 0 when a problem line of the changed module appears on the base run and not on the head run.
Scenario: Ruff configuration problem fixed
- WHEN The base run writes a line that starts with
ruff configuration:and the head run writes no line with that text. - THEN The command exits 0 and the report names
tests/gate/ruff_config.pyand that line.
Requirement: No base problem refuses the replay
The command MUST exit 1 when the changed module writes no problem line on the base run.
Scenario: Head-only problem
- WHEN The base run writes no problem line and the head run writes one.
- THEN The command exits 1 and the report says that the base run had no problem for the module.
Requirement: Report names the module and problem line
The report SHALL name the changed gate module and the problem line that the fix removes.
Scenario: Report content
- WHEN The command proves a fix with one base-only problem line.
- THEN The report holds the module path and the exact problem line.
Requirement: Workflow path filter widens
The paths filter of .github/workflows/fail-to-pass.yml SHALL match tests/gate/**.
Scenario: Workflow trigger
- WHEN A pull request changes only
tests/gate/startup_imports.py. - THEN The
pathslist holdstests/gate/**and no longer holdstests/gate/*_checks/**.
Requirement: Module with no row refuses
The command MUST exit 1 when no devops ci row runs the changed module.
Scenario: Helper module changed
- WHEN A fix changes
tests/gate/__init__.py. - THEN The command exits 1 and the report names the module as not run by a row.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers a replay of changed gate scripts. The project's own devops ci fail-to-pass command covers the _checks modules and lacks the top-level module replay and the one-line contract. Written cost to extend it: about 6 files and 350 lines, 12k tokens to build, 5k tokens a year to keep and fix, and one day of elapsed time.
Key questions
- Which of the four gate modules already print a prefixed problem line?:
tests/gate/ruff_config.pyprintsruff configuration: <problem>,tests/gate/construct_gate.pyprintsconstruct gate: <problem>, andtests/gate/startup_imports.pyprintsstartup imports: <problem>.tests/gate/swallowed_failures.pyprints the problem text with no prefix.startup_imports.pyandswallowed_failures.pycan print one problem over more than one physical line. [sources: tests/gate/ruff_config.py, tests/gate/construct_gate.py, tests/gate/startup_imports.py, tests/gate/swallowed_failures.py] - Which output contract lets the replay compare a problem without a case ID?: Each of the four gate modules writes one physical line on standard error for each problem and exits 1 when it writes one. The line keeps the module prefix. An embedded newline becomes a space. The replay compares the set of standard-error lines. (best practice) [sources: tests/gate/ruff_config.py, tests/gate/construct_gate.py, tests/gate/startup_imports.py, tests/gate/swallowed_failures.py]
- Chosen: One line per problem on standard error. It matches the three modules that already print a prefix and needs a small change to
swallowed_failuresandstartup_imports. - Rejected: A JSON mode on each module. It changes the row output, needs a parser for each module and makes a larger change.
- Rejected: Compare the whole standard-error text. A new problem can hide in a block that also holds a base problem.
- Chosen: One line per problem on standard error. It matches the three modules that already print a prefix and needs a small change to
- How does the command find the row that runs a changed gate module?: It matches the changed path against the
cmdof each check spec fromget_check_specs(). It runs that command in the base worktree and in the head worktree. When no row names the module, it exits 1 and names the module. (best practice) [sources: tests/gate/construct_gate.py, tests/gate/ruff_config.py]- Chosen: Match the path in the
cmdof a check spec. The row command is the command that CI runs, and the gate modules already readget_check_specorget_check_specs. - Rejected: A static table from module to row. It duplicates the row list and goes stale.
- Rejected: Run
pyteston the module. The four modules have no test functions and run as rows.
- Chosen: Match the path in the
- Which trees does the replay run?: It runs the row in a base worktree at
--baseand in a head worktree at the head commit. Each run imports the source of its own tree. (best practice) [sources: .github/workflows/fail-to-pass.yml, tests/gate/startup_imports.py]- Chosen: One worktree per tree. The existing requirements of
ci-fail-to-passsay that each gate row run imports the source of its tree. - Rejected: Run both in the current tree. The head source would answer for the base and hide the base problem.
- Chosen: One worktree per tree. The existing requirements of
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-20: none.
Tool: none found.
Reason: Searches returned only unrelated documentation pages and no open tool that replays a changed gate script across base and head worktrees and compares problem lines, so this stays a change to the project's own devops ci fail-to-pass.
Activity
devops-cli-service commentedon Nov 11, 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.Four gate modules need this replay, but the change is deferred and no user is blocked.A fix of one of the four gate modules can then cite a replay pass.It needs one uniform output contract for four modules, new replay logic and a workflow path change.The candidate is split from #4554; both extend 'devops ci fail-to-pass', but #4554 adds the k8s gate checks and the candidate replays four modules that print no case ID.devops-cli-service commentedon Nov 14, 2026
Status set to Ready at b15faab (see proposed design in issue body).
devops-cli-service commentedon Nov 14, 2026
Alternatives check: in-use
Reason: The web searches found only change-based test selectors (pytest-testmon, pytest-impacted, pytest-run-changed), which pick affected pytest tests by coverage or an AST/dependency graph; none replays a gate script as a CI row in base and head worktrees, compares its problem lines, or applies the base-only exit-code rule. The project's own
devops ci fail-to-passcommand already replays a changedtests/gate/<row>_checks/module with its row against base and head, but it does not cover the four top-level gate modules, their one-line output contract, or the widened workflow path filter, so it covers part of the need and the issue names it.The repository already uses this tool.
Tool: dan-petty/devops-cli (https://github.com/dan-petty/devops-cli)
Covers:
tests/gate/<row>_checks/with thedevops cirow that runs it, on base and head worktreesLacks:
tests/gate/ruff_config.py,tests/gate/construct_gate.py,tests/gate/startup_imports.pyandtests/gate/swallowed_failures.pydevops cirow whose command runs it.github/workflows/fail-to-pass.ymlpathsfilter still stops attests/gate/*_checks/**Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 20, 2026
The result in the alternatives block of the issue body changed. Before this check:
in-use, tool https://github.com/dan-petty/devops-cli. A person decides what the new result means for the item.Searches (6)
Searches run:
Sources:
devops-cli-service commentedon Nov 24, 2026
Plan state: branch
feat/4596-replay-a-changed-gate-module-that, draft pull request #6981. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat proposal (why): The plan repeats the issue's claim thatdevops ci fail-to-passexits 1 for a change to one of the four gate modules, but the command exits 0: a diff with no.pyundersrc/and notests/gate/*_checks/module setsneeds_proof=False, sosatisfiedis True and the report says the fix needs no failing test. The plan must also change that early return inrun_fail_to_passand the base requirement that states this pass, and it changes neither. Evidence: "SHALL pass with no replay, and SHALL say that the fix changes no source code and no gate check, when the diff from the merge base holds no.pyfile undersrc/outside the knowledge base and no check module oftests/gate/*_checks/"otherat tasks (3): The base run is the merge base with the head'stests/overlaid (materialise_base_with_head_tests), so the changed module undertests/gate/runs from the head's copy on both trees. A fix that changes only the module then writes the same problem lines on both runs, the command exits 1 with no base problem, and issue criteria 1 and 2 can never be met; the base run has to use the base's own copy of the module, as decision 3's detached worktree of each tree says. Evidence: "Run each changed module on the base tree with the tests of the head and on the head tree"spec_delta_wrongat spec ci-fail-to-pass (A changed top-level gate module is replayed with its row): The THEN of the scenario "The dry run lists the module runs" requires each module run to name the changed module, butplan_fail_to_passmakes no git call and prints placeholders (<gate row>,<changed gate check module>), and group 4's "one module request for each changed top-level gate module" cannot know the modules, so no test can assert that part of the THEN. Evidence: "the plan holds one module run for the base tree and one for the head tree, and each names that module"verify_format tasks (1): Group 1 changes the swallowed-failures output to one prefixed line per problem, but its verify runs the row on a clean tree, whereproblems()returns nothing and the row exits 0 whatever the new formatting does; group 2's--only startup-importsverify has the same gap, and neither group adds a test that exercises the one-line contract. Evidence: "uv run devops ci --check --only swallowed-failures"false_premiseat tasks (3): The plan changes only theneeds_proofearly return. The next guard,if not changed.test_files and not changed.gate_checks:insrc/devops_cli/ci/fail_to_pass.py, still returns a report before any module run, so a change to onlytests/gate/ruff_config.pyexits 1 with the no-tests message, names no module, and the module replay of group 4 never runs. Evidence: "Inrun_fail_to_pass, setneeds_proof=Falseonly when the diff holds no source code, no gate check and no module directly undertests/gate/, so the replay runs for a change to one of these modules."task_orderat tasks (4): Group 4's test needsreport.satisfiedto count a module replay and the report to name the module, but group 5 is the group that addsgate_modules,changed_gate_modulesand those messages, so group 4's verify fails until group 5 lands; group 3's test needs the same report field. Evidence: "Add the failing testtest_a_base_only_problem_line_of_a_changed_gate_module_proves_the_fixintests/ci/test_fail_to_pass.py: the base run oftests/gate/ruff_config.pywrites a problem line and the head run writes none, soreport.satisfiedis True, and a change that touches onlytests/gate/runner.pyexits 1 with the module named"false_premiseat spec ci-fail-to-pass (A changed module directly under tests/gate is replayed with its row): The added requirement says the head run is in a worktree of the head, but_head_treeyields the working tree for the default headHEAD, and the base requirement says a--head HEADrun happens in the working tree. The plan's own group 4 reuses_head_tree, so the scenario's head run is the working tree and not agate_headworktree. Evidence: "It SHALL run the module once in a worktree of the merge base and once in a worktree of the head"otherat tasks (5): Group 5 adds module requests toplan_fail_to_passand widens the message texts, but no task updates the existing tests intests/ci/test_fail_to_pass.pythat assert the plan line by line (assert lines[7] == "git worktree add --quiet --detach '<temp-dir>/tree' '<merge-base>'",assert lines[10:] == [...]) and the oldtests/gate/*_checks/message, so the group's own verifyuv run devops ci test tests/ci/test_fail_to_pass.pyfails. Evidence: "AddGATE_MODULE_REPLAYandEACH_GATE_MODULE_ROWand one module request for each changed module toplan_fail_to_pass"otherat tasks (5): The task adds one module run for each changed module to the plan, but its own new test and the spec delta require one run in the merge-base worktree and one in the head worktree, so the task does not say how many requests to add. Evidence: "AddGATE_MODULE_REPLAYandEACH_GATE_MODULE_ROWand one module run for each changed module toplan_fail_to_pass"devops-cli-service commentedon Nov 24, 2026
The stage job staged the plan of draft pull request #6981. The plan state comment of #6981 holds the branch, the task groups and the findings.
The runs of the planner and the review made 232 model request(s), and used 20748909 input tokens and 496011 output tokens. The tool calls, in order:
list_files({"directory":"src/devops_cli/ci"})file_symbols({"path":"src/devops_cli/ci/fail_to_pass.py"})read_file({"path":"tests/gate/runner.py"})read_file({"path":".github/workflows/fail-to-pass.yml"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":100,"end_line":300})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":355,"end_line":530})read_file({"end_line":700,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":581})read_file({"end_line":1010,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":905})read_file({"end_line":1110,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1010})read_file({"end_line":1260,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1110})search_code({"text":"swallowed_failures"})search_code({"text":"startup_imports"})search_code({"text":"ruff_config"})search_code({"text":"construct_gate"})read_file({"end_line":960,"path":"src/devops_cli/commands/ci.py","start_line":860})search_code({"text":"_python_check_cmd"})file_symbols({"path":"tests/gate/startup_imports.py"})file_symbols({"path":"tests/gate/swallowed_failures.py"})read_file({"end_line":575,"path":"tests/gate/startup_imports.py","start_line":516})read_file({"end_line":390,"path":"tests/gate/swallowed_failures.py","start_line":300})search_code({"text":"def main(argv"})read_file({"path":"tests/gate/construct_gate.py","start_line":560})read_file({"end_line":493,"path":"tests/gate/construct_gate.py","start_line":455})read_file({"end_line":24,"path":"tests/gate/charts.py"})search_code({"text":"CONST_GATE_ROW_SCRIPT"})search_code({"text":"CONST_FAIL_TO_PASS_GATE_ROW_SCRIPT"})read_file({"end_line":2645,"path":"src/devops_cli/config/constants.py","start_line":2625})read_file({"end_line":1150,"path":"src/devops_cli/commands/ci.py","start_line":1020})read_file({"end_line":1960,"path":"tests/ci/test_fail_to_pass.py","start_line":1820})file_symbols({"path":"tests/ci/test_fail_to_pass.py"})read_spec({"capability":"ci-fail-to-pass","requirement":"The check runs only for a fix that changes the code under src or a gate check"})read_spec({"capability":"ci-fail-to-pass","requirement":"A changed gate check is replayed with its row"})search_code({"text":"fail-to-pass.yml"})search_code({"text":"actionlint"})read_file({"end_line":99,"path":"src/devops_cli/ci/fail_to_pass.py"})search_code({"text":"fail_to_pass"})search_code({"text":"ci.fail_to_pass import"})search_code({"text":"fail_to_pass import"})read_file({"end_line":400,"path":"tests/ci/test_fail_to_pass.py","start_line":130})read_file({"end_line":1740,"path":"tests/ci/test_fail_to_pass.py","start_line":1641})list_files({"directory":"tests/gate"})search_code({"text":"tests.gate.swallowed_failures import"})search_code({"text":"tests.gate.startup_imports import"})read_file({"path":"tests/invariants/test_swallowed_failures_check.py","start_line":1,"end_line":60})read_file({"path":"tests/commands/test_cli_startup_imports.py","start_line":1,"end_line":45})read_spec({"capability":"ci-fail-to-pass","requirement":"A changed gate check is replayed with its row"})read_spec({"capability":"ci-fail-to-pass","requirement":"The check runs only for a fix that changes the code under src or a gate check"})list_files({"directory":"tests/gate"})file_symbols({"path":"src/devops_cli/ci/fail_to_pass.py"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":362,"end_line":520})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":597,"end_line":700})read_file({"path":".github/workflows/fail-to-pass.yml","start_line":1,"end_line":80})read_file({"path":"tests/gate/swallowed_failures.py","start_line":1,"end_line":60})search_code({"text":"def main"})read_file({"path":"tests/gate/startup_imports.py","start_line":1,"end_line":60})read_file({"path":"tests/gate/startup_imports.py","start_line":540,"end_line":600})read_file({"path":"tests/gate/swallowed_failures.py","start_line":330,"end_line":400})search_code({"text":"_python_check_cmd("})read_file({"path":"src/devops_cli/commands/ci.py","start_line":880,"end_line":960})read_file({"end_line":2650,"path":"src/devops_cli/config/constants.py","start_line":2618})list_files({"directory":"tests/ci"})search_code({"text":"Fail-to-Pass"})search_code({"text":"fail-to-pass"})list_files({"directory":"tests/invariants"})search_code({"text":"Fail-to-Pass Evidence"})search_code({"text":"fail-to-pass --base"})read_file({"end_line":200,"path":"tests/gate/ruff_config.py","start_line":186})read_file({"end_line":485,"path":"tests/gate/construct_gate.py","start_line":468})read_file({"path":"tests/invariants/test_swallowed_failures_check.py"})search_code({"text":"plan_fail_to_pass"})search_code({"text":"FailToPassReport"})read_file({"end_line":1150,"path":"src/devops_cli/commands/ci.py","start_line":1090})read_file({"end_line":1035,"path":"src/devops_cli/commands/ci.py","start_line":1018})list_files({"directory":"tests/lang"})search_code({"text":"fail_to_pass_"})read_file({"end_line":1250,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1090})list_files({"directory":"tests/gate/k8s_checks"})read_issue({"number":4554})references({"name":"tests/gate/*_checks"})references({"name":"startup imports:"})read_file({"end_line":1130,"path":"src/devops_cli/lang/en/help.py","start_line":1112})read_file({"end_line":2482,"path":"src/devops_cli/lang/en/messages.py","start_line":2455})search_code({"text":"GATE_MODULE_REPLAY"})read_file({"end_line":12,"path":"docs/commands/ci.md","start_line":1})search_code({"text":"name=\"docs\""})search_code({"text":"tests/gate/**"})search_code({"text":"is_gate_module"})search_code({"text":"gate_row_of_module"})search_code({"text":"GateModuleReplay"})search_code({"text":"GATE_MODULE_REPLAY"})search_code({"text":"_gate_module_lines"})search_code({"text":"CONST_FAIL_TO_PASS_GATE_ROW_EXIT_STATUSES"})references({"name":"gate_row_of_module"})references({"name":"GATE_MODULE_REPLAY"})references({"name":"is_gate_module"})references({"name":"GateModuleRun"})references({"name":"_gate_module_refusals"})references({"name":"EACH_GATE_MODULE_ROW"})read_file({"path":"src/devops_cli/config/constants.py","start_line":2625,"end_line":2650})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":360,"end_line":440})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":480,"end_line":650})read_file({"end_line":2665,"path":"src/devops_cli/config/constants.py","start_line":2610})read_file({"end_line":1160,"path":"src/devops_cli/commands/ci.py","start_line":880})read_file({"end_line":395,"path":"tests/gate/swallowed_failures.py","start_line":330})read_file({"end_line":600,"path":"tests/gate/startup_imports.py","start_line":520})read_file({"end_line":200,"path":"tests/gate/ruff_config.py","start_line":170})read_file({"end_line":485,"path":"tests/gate/construct_gate.py","start_line":455})read_spec({"capability":"ci-fail-to-pass"})list_files({"directory":"tests/gate"})read_spec({"capability":"ci-fail-to-pass","requirement":"A changed gate check is replayed with its row"})read_spec({"capability":"ci-fail-to-pass","requirement":"The check runs only for a fix that changes the code under src or a gate check"})read_file({"end_line":2490,"path":"src/devops_cli/lang/en/messages.py","start_line":2440})read_file({"end_line":1140,"path":"src/devops_cli/lang/en/help.py","start_line":1105})read_file({"end_line":1180,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1000})search_code({"text":"4554-fail-to-pass-skips-the-gate"})search_code({"text":"_unsatisfied_reasons"})search_code({"text":"4554"})read_file({"end_line":40,"path":"openspec/changes/archive/2026-11-12-4554-fail-to-pass-skips-the-gate/design.md","start_line":1})search_code({"text":"add_typer"})search_code({"text":"def run_check"})search_code({"text":"@app.command("})search_code({"text":"def fail_to_pass"})search_code({"text":"fail-to-pass"})search_code({"text":"get_check_specs()"})read_file({"end_line":1760,"path":"tests/ci/test_fail_to_pass.py","start_line":1633})read_file({"end_line":1155,"path":"src/devops_cli/commands/ci.py","start_line":1085})search_code({"text":"def _checks"})read_file({"end_line":130,"path":"tests/gate/runner.py","start_line":95})read_file({"end_line":760,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":626})search_code({"text":"dry_run"})search_code({"text":"for each row of a changed gate check"})search_code({"text":"<gate row>"})search_code({"text":"from tests.gate.ruff_selection import"})search_code({"text":"from tests.gate.k8s_render import"})read_file({"end_line":360,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":200})read_file({"end_line":3120,"path":"src/devops_cli/commands/ci.py","start_line":3040})search_code({"text":"swallowed_failures.problems"})search_code({"text":"from tests.gate.swallowed_failures import"})search_code({"text":"ci/ may not import"})search_code({"text":"from devops_cli.commands"})read_file({"end_line":1632,"path":"tests/ci/test_fail_to_pass.py","start_line":1490})read_file({"end_line":1290,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1178})search_code({"text":"gate_row_of_module"})search_code({"text":"is_gate_module"})search_code({"text":"_python_check_cmd("})read_spec({"capability":"ci-fail-to-pass","requirement":"A fix that changes no source code needs no failing proof"})search_code({"text":"tests/gate/*_checks/"})read_spec({"capability":"ci-fail-to-pass","requirement":"A fix that changes no source code needs no failing proof"})search_code({"text":"needs_proof"})search_code({"text":"materialise_base_with_head_tests"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":230,"end_line":420})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":420,"end_line":560})read_file({"end_line":700,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":558})read_file({"end_line":1120,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1000})read_file({"end_line":2660,"path":"src/devops_cli/config/constants.py","start_line":2625})read_file({"end_line":395,"path":"tests/gate/swallowed_failures.py","start_line":330})read_file({"end_line":580,"path":"tests/gate/startup_imports.py","start_line":535})search_code({"text":"format_over_ceiling_error"})search_code({"text":"swallowed_failures"})search_code({"text":"name=\"swallowed-failures\""})search_code({"text":"name=\"startup-imports\""})read_file({"end_line":2160,"path":"tests/ci/test_fail_to_pass.py","start_line":2055})read_file({"end_line":2500,"path":"src/devops_cli/lang/en/messages.py","start_line":2455})search_code({"text":"_unsatisfied_reasons"})read_file({"end_line":1275,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1210})read_file({"end_line":232,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":150})search_code({"text":"gate_module"})search_code({"text":"class ChangedTests"})list_files({"directory":"docs/commands"})references({"name":"tests/gate/*_checks"})list_files({"directory":"tests/ci"})read_file({"end_line":45,"path":"openspec/specs/ci-fail-to-pass/spec.md","start_line":1})read_file({"end_line":330,"path":"openspec/specs/ci-fail-to-pass/spec.md","start_line":295})read_file({"end_line":262,"path":"openspec/specs/ci-fail-to-pass/spec.md","start_line":200})search_code({"text":"### Requirement: A changed gate check is replayed with its row"})read_file({"end_line":140,"path":"openspec/specs/ci-fail-to-pass/spec.md","start_line":106})read_file({"end_line":30,"path":".github/workflows/fail-to-pass.yml","start_line":1})read_file({"end_line":195,"path":"CONTRIBUTING.md","start_line":180})list_files({"directory":"tests/gate"})search_code({"text":"_python_check_cmd("})read_file({"end_line":1130,"path":"src/devops_cli/lang/en/help.py","start_line":1114})read_file({"end_line":930,"path":"src/devops_cli/commands/ci.py","start_line":885})search_code({"text":"also_cmds"})search_code({"text":"fail_to_pass_no_source"})search_code({"text":"fail_to_pass_no_tests"})search_code({"text":"fail-to-pass.yml"})search_code({"text":"workflows/fail-to-pass"})search_code({"text":"tests/gate/*_checks/"})list_files({"directory":"tests/gate/k8s_checks"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":890,"end_line":930})read_file({"path":"tests/gate/swallowed_failures.py","start_line":352,"end_line":385})read_file({"path":"tests/gate/startup_imports.py","start_line":540,"end_line":575})read_file({"path":"src/devops_cli/commands/ci.py","start_line":210,"end_line":235})read_file({"path":"src/devops_cli/commands/ci.py","start_line":1024,"end_line":1032})search_code({"text":"fail_to_pass"})search_code({"text":"fail_to_pass_no_source"})search_code({"text":"A changed module under tests/gate/*_checks/ runs its gate row on"})search_code({"text":"swallowed-failures"})search_code({"text":"startup-imports"})file_symbols({"path":"src/devops_cli/ci/fail_to_pass.py"})list_files({"directory":"tests/gate"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":380,"end_line":420})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":486,"end_line":620})read_file({"end_line":1105,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1023})search_code({"text":"_python_check_cmd("})read_file({"end_line":2650,"path":"src/devops_cli/config/constants.py","start_line":2625})read_file({"end_line":905,"path":"src/devops_cli/commands/ci.py","start_line":885})read_file({"end_line":235,"path":"src/devops_cli/commands/ci.py","start_line":196})read_file({"end_line":200,"path":"tests/gate/ruff_config.py","start_line":180})read_file({"end_line":480,"path":"tests/gate/construct_gate.py","start_line":465})read_file({"end_line":580,"path":"tests/gate/startup_imports.py","start_line":540})read_file({"end_line":390,"path":"tests/gate/swallowed_failures.py","start_line":300})read_file({"end_line":1135,"path":"src/devops_cli/lang/en/help.py","start_line":1112})read_file({"end_line":2485,"path":"src/devops_cli/lang/en/messages.py","start_line":2455})read_file({"end_line":315,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":227})read_file({"end_line":1265,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1178})read_file({"end_line":95,"path":"tests/invariants/test_swallowed_failures_check.py","start_line":80})read_file({"end_line":2090,"path":"tests/ci/test_fail_to_pass.py","start_line":2070})read_file({"end_line":700,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":620})read_file({"end_line":740,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":700})read_file({"end_line":195,"path":"CONTRIBUTING.md","start_line":182})read_file({"end_line":402,"path":"docs/commands/ci.md","start_line":392})read_file({"path":"tests/gate/k8s.py"})read_file({"end_line":70,"path":"tests/gate/runner.py","start_line":1})read_file({"end_line":200,"path":"tests/gate/runner.py","start_line":150})read_file({"end_line":149,"path":"tests/gate/runner.py","start_line":95})search_code({"text":"fail_to_pass_no_source"})references({"name":"tests/gate/*_checks"})search_code({"text":"changes no source code (a .py file under src/ outside the knowledge base) and adds or changes no case"})search_code({"text":"needs_proof=False"})search_code({"text":"changed_source_files=()"})search_code({"text":"changes no source code"})read_spec({"capability":"ci-fail-to-pass"})read_spec({"capability":"ci-fail-to-pass","requirement":"A fix that changes no source code needs no failing proof"})read_spec({"capability":"ci-fail-to-pass","requirement":"A changed gate check is replayed with its row"})read_spec({"capability":"ci-fail-to-pass","requirement":"The check runs only for a fix that changes the code under src or a gate check"})read_file({"end_line":1022,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":947})search_code({"text":"Swallowed failures ratchet exceeded"})search_code({"text":"startup imports:"})list_files({"directory":"tests/gate/k8s_checks"})search_code({"text":"from devops_cli.ci.fail_to_pass import"})search_code({"text":"fail_to_pass"})search_code({"text":"changed_gate_checks"})search_code({"text":"gate_checks="})file_symbols({"path":"src/devops_cli/ci/fail_to_pass.py"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":960,"end_line":1120})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":227,"end_line":315})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":380,"end_line":520})read_file({"end_line":740,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":581})search_code({"text":"EACH_GATE_MODULE_ROW"})search_code({"text":"fail_to_pass_no_tests"})search_code({"text":"is_gate_module"})read_file({"end_line":1225,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1161})read_file({"end_line":2490,"path":"src/devops_cli/lang/en/messages.py","start_line":2455})search_code({"text":"_run_gate_row"})search_code({"text":"gate_row_argv"})read_file({"end_line":560,"path":"tests/ci/test_fail_to_pass.py","start_line":495})search_code({"text":"def test_run_fail_to_pass"})search_code({"text":"def _replay_of_test_mod"})search_code({"text":"class _FailToPassState"})read_file({"end_line":1120,"path":"tests/ci/test_fail_to_pass.py","start_line":1030})read_file({"end_line":300,"path":"tests/ci/test_fail_to_pass.py","start_line":141})read_file({"end_line":420,"path":"tests/ci/test_fail_to_pass.py","start_line":300})references({"name":"tests/gate/*_checks"})list_files({"directory":"tests/ci"})search_code({"text":"swallowed-failures"})search_code({"text":"CONST_GATE_DIR"})read_file({"end_line":2660,"path":"src/devops_cli/config/constants.py","start_line":2625})list_files({"directory":"tests/gate"})read_file({"end_line":30,"path":".github/workflows/fail-to-pass.yml","start_line":1})read_file({"end_line":190,"path":"CONTRIBUTING.md","start_line":185})read_file({"end_line":1126,"path":"src/devops_cli/lang/en/help.py","start_line":1118})search_code({"text":"ChangedTests("})search_code({"text":"changed_gate_checks"})list_files({"directory":"tests/gate/k8s_checks"})search_code({"text":"_python_check_cmd("})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":215,"end_line":260})file_symbols({"path":"src/devops_cli/ci/fail_to_pass.py"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1023,"end_line":1060})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1175,"end_line":1190})read_file({"path":"src/devops_cli/commands/ci.py","start_line":890,"end_line":900})read_file({"path":"src/devops_cli/config/constants.py","start_line":2620,"end_line":2650})read_file({"end_line":920,"path":"src/devops_cli/commands/ci.py","start_line":910})read_file({"end_line":606,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":595})read_file({"end_line":625,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":606})search_code({"text":"is_gate_module"})read_file({"end_line":24,"path":".github/workflows/fail-to-pass.yml","start_line":1})search_code({"text":"A changed module under tests/gate/*_checks/ runs its gate row on"})read_file({"end_line":235,"path":"src/devops_cli/commands/ci.py","start_line":225})read_file({"end_line":245,"path":"src/devops_cli/commands/ci.py","start_line":1145})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1000,"end_line":1060})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":225,"end_line":250})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":370,"end_line":400})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":490,"end_line":515})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":590,"end_line":620})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1170,"end_line":1195})read_file({"path":"src/devops_cli/config/constants.py","start_line":2615,"end_line":2650})read_file({"path":"src/devops_cli/commands/ci.py","start_line":885,"end_line":930})read_file({"path":"src/devops_cli/commands/ci.py","start_line":220,"end_line":240})search_code({"text":"_python_check_cmd("})list_files({"directory":"tests/gate"})read_file({"end_line":330,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":250})search_code({"text":"class ChangedTests"})search_code({"text":"gate_module"})search_code({"text":"is_gate_module"})search_code({"text":"EACH_GATE_MODULE_ROW"})read_file({"end_line":200,"path":"tests/ci/test_fail_to_pass.py","start_line":150})read_file({"end_line":395,"path":"tests/ci/test_fail_to_pass.py","start_line":360})read_file({"end_line":2095,"path":"tests/ci/test_fail_to_pass.py","start_line":2065})read_file({"end_line":1130,"path":"src/devops_cli/lang/en/help.py","start_line":1115})read_file({"end_line":2480,"path":"src/devops_cli/lang/en/messages.py","start_line":2450})search_code({"text":"gate_base"})search_code({"text":"gate_head"})search_code({"text":"_is_gate_row_run"})read_file({"end_line":345,"path":"tests/ci/test_fail_to_pass.py","start_line":262})read_file({"end_line":1730,"path":"tests/ci/test_fail_to_pass.py","start_line":1655})read_file({"end_line":1000,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":900})read_file({"end_line":590,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":560})read_file({"end_line":1160,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1060})read_file({"end_line":200,"path":"tests/gate/ruff_config.py","start_line":180})read_file({"end_line":485,"path":"tests/gate/construct_gate.py","start_line":465})read_file({"end_line":580,"path":"tests/gate/startup_imports.py","start_line":540})read_file({"end_line":385,"path":"tests/gate/swallowed_failures.py","start_line":300})read_file({"end_line":1150,"path":"src/devops_cli/commands/ci.py","start_line":1015})search_code({"text":"NOT_IN_RUNNER"})references({"name":"tests/gate/*_checks"})search_code({"text":"fail-to-pass.yml"})read_spec({"capability":"ci-fail-to-pass"})read_spec({"capability":"ci-fail-to-pass","requirement":"A fix that changes no source code needs no failing proof"})read_spec({"capability":"ci-fail-to-pass","requirement":"A changed gate check is replayed with its row"})read_spec({"capability":"ci-fail-to-pass","requirement":"The check runs only for a fix that changes the code under src or a gate check"})read_file({"end_line":760,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":620})search_code({"text":"plan_fail_to_pass"})search_code({"text":"GATE_REPLAY"})read_file({"end_line":1655,"path":"tests/ci/test_fail_to_pass.py","start_line":1520})read_file({"end_line":1537,"path":"tests/ci/test_fail_to_pass.py","start_line":1460})search_code({"text":"name=\"docs\""})read_file({"end_line":3050,"path":"src/devops_cli/commands/ci.py","start_line":3040})read_file({"end_line":1000,"path":"src/devops_cli/commands/ci.py","start_line":960})read_file({"end_line":1170,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1196})read_file({"end_line":360,"path":"tests/ci/test_fail_to_pass.py","start_line":346})read_file({"end_line":790,"path":"tests/ci/test_fail_to_pass.py","start_line":740})read_file({"end_line":1520,"path":"tests/ci/test_fail_to_pass.py","start_line":1505})search_code({"text":"from devops_cli.ci.fail_to_pass import"})search_code({"text":"ci.fail_to_pass"})read_file({"end_line":480,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":400})list_files({"directory":"tests/ci/__snapshots__"})search_code({"text":"fail_to_pass_no_tests"})read_file({"path":"tests/ci/__snapshots__/test_fail_to_pass.ambr","start_line":1,"end_line":80})search_code({"text":"snapshot"})search_code({"text":"assert lines["})search_code({"text":"tests/gate/*_checks/"})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":1440,"end_line":1600})search_code({"text":"fail_to_pass_no_source"})search_code({"text":"gate check module"})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":2030,"end_line":2110})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":2455,"end_line":2490})search_code({"text":"adds or changes no case of"})search_code({"text":"only deletes checks of"})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":735,"end_line":775})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":2140,"end_line":2180})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":596,"end_line":900})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":1584,"end_line":1680})search_code({"text":"plan_fail_to_pass"})search_code({"text":"fail_to_pass_no_tests"})read_file({"end_line":260,"path":"tests/ci/test_fail_to_pass.py","start_line":120})search_code({"text":"changed_tests"})search_code({"text":"monkeypatch.setattr(fail_to_pass"})search_code({"text":"def cli"})search_code({"text":"ChangedTests("})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":260,"end_line":420})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":1480,"end_line":1620})read_file({"path":"tests/ci/test_fail_to_pass.py","start_line":740,"end_line":790})read_file({"end_line":2180,"path":"tests/ci/test_fail_to_pass.py","start_line":2050})search_code({"text":"tests/gate/*_checks/"})references({"name":"tests/gate/*_checks"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":560,"end_line":700})search_code({"text":"a module of tests/gate/"})read_file({"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1160,"end_line":1215})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":2455,"end_line":2490})search_code({"text":"adds or changes no case of"})search_code({"text":"The fix changes no source code"})search_code({"text":"fail_to_pass_no_source"})search_code({"text":"it needs no test that fails on its"})search_code({"text":"A validator or a check command"})search_code({"text":"fail_to_pass_no_tests"})read_file({"end_line":400,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":225})read_file({"end_line":1120,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1000})search_code({"text":"def _replay_tests"})read_file({"end_line":980,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":900})read_file({"end_line":790,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":700})read_file({"end_line":1700,"path":"tests/ci/test_fail_to_pass.py","start_line":1615})search_code({"text":"fail-to-pass"})search_code({"text":"fail_to_pass"})read_file({"end_line":1160,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1120})read_file({"end_line":1260,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1215})read_file({"end_line":1300,"path":"src/devops_cli/ci/fail_to_pass.py","start_line":1260})search_code({"text":"it only deletes checks of"})list_files({"directory":"tests/ci/__snapshots__"})search_code({"text":"tests/gate"})read_file({"end_line":1155,"path":"src/devops_cli/commands/ci.py","start_line":885})read_file({"end_line":1160,"path":"src/devops_cli/commands/ci.py","start_line":1085})search_code({"text":"NOT_IN_RUNNER"})search_code({"text":"no source code"})search_code({"text":"source code (a .py file"})search_code({"text":"changed gate check module"})search_code({"text":"changed_gate_checks"})search_code({"text":"needs_proof"})read_file({"end_line":230,"path":"tests/ci/test_fail_to_pass.py","start_line":150})read_file({"end_line":330,"path":"tests/ci/test_fail_to_pass.py","start_line":230})Tool calls: file_symbols=8 (empty=0), list_files=20 (empty=0), read_file=198 (empty=2), read_issue=1 (empty=0), read_spec=17 (empty=0), references=13 (empty=6), search_code=153 (empty=14)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
The plan request held these comments of the item whole: #4596 (comment), #4596 (comment), #4596 (comment), #4596 (comment).
docs(openspec): plan #4596 Replay a changed gate module by problem li…
devops-cli-service commentedon Nov 25, 2026
Released in v0.216.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.216.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 06:00 UTC