Skip to content

review-dispatch: retire the unused speckit-testreview command and test mode #1173

Open

Description

@jflowers

Problem

#1172 gave .opencode/commands/speckit.testreview.md back to gaze. Gaze created the command (gaze d677298), and gaze init writes and refreshes it. uf had copied it in 223fab18 and later forked it so it used the review-dispatch plugin. That fork and the Go contract tests pinning it are gone, so nothing in uf calls the review-dispatch plugin with command: "speckit-testreview" any more.

The plugin, its tests and the schemas still support that command:

  • Plugin: .opencode/plugins/review-dispatch/index.ts and its scaffold mirror internal/scaffold/assets/opencode/plugins/review-dispatch/index.ts. Both have:
    • "speckit-testreview" in the command enums of the plan, finalize and consolidate tool schemas
    • the test mode and the TestReviewResultSchema (kind: "test-review")
    • the "speckit-testreview": { modes: ["test"], kind: "test-review" } entry in the command map
    • the test-review case in workflowKind()
    • the test-review-scope eligibility rule that limits test review to divisor-testing
  • Schemas (schemas/, .uf/schemas/ and internal/scaffold/assets/uf/schemas/):
    • review-dispatch/v1.0.0.schema.json: the speckit-testreview command, the test mode, the conditional branch for that command, and $defs/testReviewResult
    • review-dispatch-failure/v1.0.0.schema.json: the speckit-testreview command and the test mode
  • Tests:
    • .opencode/test/finalize-review-dispatch.test.ts: the test-review verdict mapping cases
    • .opencode/test/fixtures/review-dispatch/consolidation-cases.json: the test-review template and its three mapping cases
    • .opencode/test/golden-output-shape.test.ts: the speckit.testreview.md:<line> site entries and the acquire_sibling_evidence / prepare_lesson_learning cases labelled with them. Those line numbers point into a file uf no longer owns.
    • internal/schemas/review_dispatch_test.go: the speckit-testreview / test / test-review workflow-verdict case

Proposed change

Remove support for the speckit-testreview command and the test mode from the plugin and its tests. Change the golden-output sites to point at a command uf still owns, or drop them.

Schema compatibility needs a decision. review-dispatch v1.0.0 is a published schema. Removing an enum value from it means review-dispatch artifacts already written with command: "speckit-testreview" would stop validating against v1. Options:

  1. Keep accepting the value in the v1 schemas so old artifacts still validate, and remove it only from the plugin's input enums, which decide what can be written from now on.
  2. Bump the schema version and keep v1 as the version for reading old artifacts.

Option 1 is probably enough, since the uf repo was the only writer.

Done when

  • The plugin no longer accepts speckit-testreview or the test mode, and both plugin copies stay byte-identical.
  • Schema handling follows the option chosen above, with a test for it.
  • No test refers to speckit.testreview.md except the check that uf never embeds it.
  • The plugin and Go test suites pass.

🤖 Generated with Claude Code

Activity

  1. added
    refactor
    on Nov 17, 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

    refactor

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions