Skip to content

fix(roadmap): Stop plan rules that ask for config value tests #6080

Closed

Description

@dan-petty

Problem

The owner rule of 2026-11-16 (#6060): "I don't want any tests that check that a manifest or config has any particular value. They should be testing the source code of the project." #6075 deletes those tests and adds a guard (tests/gate/tree_checks/config_values.py). But the plan rules of the Service still ask for them, so each new plan brings them back, or the guard then fails the implement step:

  • openspec/config.yaml:16 says "a manifest ... carry a delta", and openspec/config.yaml:27 says "Write only scenarios a test under tests/ can assert offline". A scenario of a manifest change can only be "WHEN a test reads ". src/devops_cli/ai/tasks/roadmap_stage_change.md:19 repeats the delta rule. About 370 scenarios in about 105 specs have this form.
  • The refine reply (src/devops_cli/ai/tasks/roadmap_refine_reply.md, acceptance_criteria) writes the same form. Example: the refine design of ci: Stop the workflow steps that block Renovate updates #6061 asks for "A test evaluates the package rules of .github/renovate.json" and "A test reads the service-image-build ... jobs".
  • The stage gate workflow_contract_problems (src/devops_cli/roadmap/stage/stage_paths.py:664, feat(roadmap): stage requires workflow contract tests for workflow changes #4083) refuses a plan whose group changes a workflow and does not change tests/invariants/test_workflow_contracts.py.
  • src/devops_cli/roadmap/stage/stage_form.py:13 admits a new test module in tests/invariants/, the folder that holds most of the value tests.

Checked and not a cause: the Fail-to-Pass workflow runs only for src/** and tests/gate/*_checks/** (.github/workflows/fail-to-pass.yml:14), and the implement base replay applies only to behavior groups. Changed-line coverage (diff-cover --fail-under 90) counts only Python lines. The whole-tree floor (fail_under = 85, pyproject.toml:268) can fail after #6075 deletes tests; if it does, the fix is a test of the uncovered source code, never a value test.

Expected behavior

  • A plan, a spec delta and an acceptance criterion of a manifest, workflow or config change name a validator command or a live check as proof (for example uv run devops ci --check k8s with kubeconform and kube-linter, actionlint and zizmor, uv run devops k8s <name>-check, a Renovate config validator), and never a test that reads the file.
  • Change openspec/config.yaml, the stage prompt and the refine prompt to say this. Each prompt change states its eval score before and after (devops roadmap eval stage).
  • Remove workflow_contract_problems, its message and its spec scenario. Actionlint and zizmor check a workflow.
  • A new test module under tests/invariants/ is refused unless it tests source code (the guard of fix(k8s): Drop the tests that assert values of manifests and config #6075 decides).
  • The coverage floor and Fail-to-Pass stay as they are. Record in docs/TESTING.md that neither asks for a test of a manifest or config value.

Related

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 17, 2026
  4. dan-petty commented on Nov 17, 2026

    @dan-petty
    OwnerAuthor

    A third cause, found after the filing: the scenario check of the stage plan (_scenario_problem, src/devops_cli/roadmap/stage/stage_change.py:1080, #3321, #3423, #4316).

    • It refuses each new scenario whose code spans name a path or an identifier unless a behavior group covers the scenario with a test (stage_scenario_untested_code, stage_scenario_no_behavior_task).
    • A scenario of a manifest change names the manifest path, for example k8s/devops/cronjob-runner.yaml, so the check asks for a behavior test of that file, which is a value test.
    • The one way out today is a command span in the when or the then (_is_scenario_command).

    Expected: a scenario span that is a path outside src/ (a manifest, a workflow, a config file) needs a command that proves it (a validator or a live check), not a behavior test. Change the check, its messages and its spec scenarios in the same pull request as the prompts. State the stage eval score before and after.

  5. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 17, 2026
  6. removed
    status/in-progress
    owner/agent
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-17 03:03 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/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions