Skip to content

feat(cli): tirith test — a policy test harness (skeleton) #301

Open

Description

@refeed

There is no way to assert that a policy does what its author thinks; verifying the examples means
hand-running one invocation per fixture and reading exit codes. Add a fixture convention —
<policy>.fails.json, <policy>.passes.json, <policy>.skips.json next to the policy — and a
runner: tirith test examples/ prints one ✓/✗ per (policy, fixture) with expected vs actual exit.
Land the skeleton in R1 so the R1 fixes ship with fixtures; the full version (CI wiring, docs) is
the R2 issue "complete the policy test harness". Nothing else on the roadmap compounds like this:
without it, community rules cannot be reviewed.

Activity

  1. added
    enhancement
    on Sep 3, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions