Skip to content

fix(ci): Ask for a fail-to-pass proof only for source code - #6210

Merged
dan-petty merged 3 commits into
mainfrom
fix/6207-fail-to-pass-only-for-source-code
Nov 17, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/6207-fail-to-pass-only-for-source-code

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

A test that fails on base proves a change of code. The Fail-to-Pass workflow, devops ci fail-to-pass and the stage behavior rule took any path under src/ as code, so a fix of a prompt, a tool pin, a lockfile or other data under src/ had to bring a test of a value.

is_source_code (a .py file under src/ outside the knowledge base) is now the one rule. The workflow starts only for src/**/*.py or a gate check. The command passes with no replay, and says why, when a fix changes neither. A stage behavior group must change source code; the plan reader reads the same rule, and the validator message tells the planner what counts as code. The dry-run plan names the new condition, and docs/TESTING.md states the rule.

Closes #6207

Change: openspec/changes/archive/2026-11-17-6207-fail-to-pass-only-for-source-code/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 17, 2026
@dan-petty
dan-petty force-pushed the fix/6207-fail-to-pass-only-for-source-code branch from c76684a to dfcdef8 Compare November 17, 2026 18:42
A test that fails on base proves a change of code. The fail-to-pass
workflow, devops ci fail-to-pass and the stage behavior rule took any
path under src/ as code, so a fix of a prompt, a tool pin or other data
had to bring a test of a value. is_source_code (a .py file under src/
outside the knowledge base) is now the one rule: the workflow filter,
the command (which passes with no replay when a fix changes no source
code and no gate check) and the stage kind rule read it.
@dan-petty
dan-petty force-pushed the fix/6207-fail-to-pass-only-for-source-code branch from dfcdef8 to a01838d Compare November 17, 2026 18:56
@dan-petty
dan-petty marked this pull request as ready for review November 17, 2026 19:04
@dan-petty
dan-petty merged commit dc60658 into main Nov 17, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/6207-fail-to-pass-only-for-source-code branch November 17, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): Ask for a fail-to-pass proof only for source code

1 participant