Skip to content

docs(ai): Code Tester restores COVERAGE.md when the coverage ratchet fails #1272

Done

Description

@steward-warden

Problem

The AI Coverage decision procedure (P4 in ai/global/coverage-ratchet.instructions.md) says to run git -C <repodir> restore COVERAGE.md when the coverage ratchet fails, but names no role for it. The procedure is driven by the Orchestrator, and the Orchestrator never edits files, so the step has no owner and the failed round's figures can stay in the working tree.

Owner decision

Mark decided that Code Tester, the role that runs the measurement, restores COVERAGE.md when the ratchet fails.

Change

  • coverage-ratchet.instructions.md P4: on failure, have Code Tester run git -C <repodir> restore COVERAGE.md, then go to P6.
  • agent-roles.instructions.md Code Tester: its existing restore duty covers a failed ratchet as well as coverage runs outside the AI Coverage phase, in one bullet.

Acceptance

  • P4's failure branch names Code Tester as the role that restores COVERAGE.md.
  • Code Tester's duty list includes restoring COVERAGE.md when the ratchet fails, without a duplicate rule.
  • No instruction text has the Orchestrator run the restore.
  • Anchors unchanged; markdownlint passes.

Activity

  1. added
    AI-Work
    Medium
    Enhancement
    Blocked
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

AI-WorkBlockedEnhancementMedium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions