Skip to content

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

Closed

Description

@dan-petty

Problem

Owner, 2026-11-17: "make sure you aren't writing tests for changes that aren't to src and fix fail to pass accordingly".

A test that fails on base is a proof only for a change of code. Today three places ask for one when the change is no code:

  • .github/workflows/fail-to-pass.yml runs for a fix pull request that changes any path under src/ outside the knowledge base. Prompts (src/devops_cli/ai/tasks/*.md), tool lockfiles and pins (src/devops_cli/tools_lock/), templates, design tokens, persona files and rule data are under src/ and are no code, so a fix that changes only them must bring a test that fails on base: a test of a value.
  • devops ci fail-to-pass reads no changed path outside tests/, so a local run or a job run asks for the same proof.
  • The stage rule changes_source (stage_change.py:588) lets a behavior group change only a non-code path under src/, such as a prompt, and the implement step then asks that group for a test that fails on base. plan_read.py:491 and the tuicr follow-up section (stage_change.py:3349) read the same rule.

Expected behavior

  • One definition of source code: a .py file under src/ outside src/devops_cli/ai/knowledge_base/.
  • The Fail-to-Pass workflow runs for a fix pull request that changes source code or a gate check module (tests/gate/*_checks/), and for no other.
  • devops ci fail-to-pass passes, and says why, when the diff changes no source code and no gate check.
  • A behavior group changes source code. A group that changes only a prompt, a lockfile, a template or other data under src/ is other (or manifest for a rule, dashboard or case file), with a validator command or a check command as its proof and no test that reads the file.
  • docs/TESTING.md and the stage prompt say the same.

Related

Activity

  1. added
    type/bug
    scope/ci
    source/agent
    status/new
    effort/medium
    value/high
    on Nov 17, 2026
  2. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P0-Critical. The check fails for valid non-code pull requests, causing CI to fail and blocking merges.
    • Related: fix(roadmap): keep no tool versions in runner_tools.py #5585, which asks for a different change. Both fix the fail-to-pass check triggering on non-code files under src/; the candidate broadens the scope to all non-code files and three code paths, while #5585 addresses only tools.lock.
  3. added
    priority/p0-critical
    status/in-progress
    and removed
    status/new
    on Nov 17, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 17, 2026
  5. removed
    status/in-review
    on Nov 17, 2026
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 19:36 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p0-criticalscope/cisource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions