Skip to content

feat(testing): add refactor-step and first-test settings to /testing:write #9664

Description

@kyle-sexton

Refs: #7581

Problem

Two owner decisions made /testing:write behaviors into settings: the TDD Refactor step and which test comes first (user flow or unit). Neither setting exists. plugins/testing/skills/write/context/write.md hard-codes the user-flow-first rule. The K36 probe (#9573) found the Refactor step ran in 0 of 16 with-skill runs, and the owner decided (2026-10-24, recorded on #9534) to keep the step's default on and make it checkable.

Fix

  • Add keys tdd_refactor_step (on|off, default on) and first_test (user-flow|unit, default user-flow), repo scope, resolved through testing's existing config cascade (resolve-config.sh), with no userConfig option.
  • write/SKILL.md and context/write.md read the resolved values and name the layer that set them.
  • With tdd_refactor_step: on, the skill reports a Refactor checkpoint after green (what it tidied, or why nothing needed it), so a skipped step shows.
  • The PR body carries the probe result line from test(testing): add the K36 eval and the refactor-step probe for /testing:write #9573.

Acceptance criteria

  • plugins/testing/schemas/testing.schema.json has both keys with their defaults
  • resolve-config.test.sh covers each key's default, a team layer and a rejected value, and passes
  • The write evals gain one case per setting value plus one that checks the Refactor checkpoint is reported; /evals:validate exits 0
  • docs/conventions/config-cascade/README.md lists both keys
  • The PR body has the Probe result: line

Activity

  1. added
    status: ready
    on Oct 24, 2026
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

    status: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions