Skip to content

Define review-fix-loop invocation, checkpoint, and terminal-result contracts #96

Description

@shaug

Outcome

Define and validate the public invocation, checkpoint, grant, cycle-budget, review-record, and terminal-result contracts for review-fix-loop.

Parent epic: #95
Design: design/review-fix-loop.md

Scope

  • Add the skill-local schemas and validation needed by later implementation leaves.
  • Model cycle budgets as invocation-scoped state.
  • Define the terminal states and their caller-facing mappings.
  • Represent selected and declined findings, validation evidence, retained commits, publication state, and required operator action.
  • Reject unsupported review-only and zero-cycle invocations.
  • Keep acceptance ownership and caller-specific ledgers outside this skill.

Non-goals

  • Running reviewers or applying fixes.
  • Locking, worktree management, recovery, or publication.
  • Migrating existing callers.

Acceptance criteria

  • Valid examples for both local_commit and update_pr pass strict validation.
  • Invalid or ambiguous inputs fail closed with actionable diagnostics.
  • Zero-cycle and review-only requests are rejected.
  • Cycle consumption and remaining budget can be reconstructed from checkpoint history.
  • Every terminal state has an explicit publication/retained-commit/operator-action contract.
  • Contract serialization is deterministic and covered by complete snapshots.

Validation

  • Unit tests for valid, invalid, boundary, and round-trip cases.
  • Repository just format, just lint, and just test.

Dependencies

No implementation dependency. This is the foundation for the execution and reviewer-orchestration leaves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions