Skip to content

feat: define shared code review contracts - #12

Merged
shaug merged 1 commit into
mainfrom
scott/issue-5-review-contract
Jul 20, 2026
Merged

feat: define shared code review contracts#12
shaug merged 1 commit into
mainfrom
scott/issue-5-review-contract

Conversation

@shaug

@shaug shaug commented Jul 20, 2026

Copy link
Copy Markdown
Owner

TL;DR

Adds the executable shared evidence, finding, verdict, and fixture contracts that every repository-owned code-review skill will consume.

Summary

This establishes a non-discoverable review-suite/ foundation rather than publishing an incomplete skill. It defines canonical JSON schemas and cross-field semantics for review packets and results, including candidate identity, required focused and full validation evidence, material finding classifications, blocked-review behavior, and risk-based base-drift retention.

A dependency-free validator checks structural and semantic conformance, candidate/result identity, contradictory verdicts, malformed packets, and the distinction between missing evidence and invalid input. Raw forward-test fixtures keep reviewer prompts separate from expected outcomes and cover correctness failures, duplicated policy, imagined machinery, necessary concurrency complexity, clean changes, missing evidence, and unrelated base drift. Every fixture diff is verified as a parseable patch.

The foundation intentionally does not implement a discoverable review lens or orchestration behavior; those remain owned by the dependent epic children.

Validation

  • just format
  • just lint
  • just test (41 existing tests and 24 review-contract tests)
  • git diff --check
  • Independent solution-simplicity, correctness, and code-simplicity review with a clean targeted final recheck on the published candidate

Tickets

Fixes #5

## Summary

- Add canonical review packet and result schemas with a dependency-free validator
- Add raw evaluation fixtures for correctness, simplicity, necessary complexity, missing evidence, and base drift
- Wire contract tests into the repository validation workflow

## Why

- Give every repository-owned review lens one executable evidence, finding, and verdict contract
- Prevent downstream skills from inventing incompatible schemas or leaking expected answers into forward tests
@shaug
shaug merged commit 02982ee into main Jul 20, 2026
1 check passed
@shaug
shaug deleted the scott/issue-5-review-contract branch July 20, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define shared contracts and evaluation fixtures for the code-review suite

1 participant