Skip to content

Implement review-fix-loop reviewer isolation and complete-review orchestration #98

Description

@shaug

Outcome

Implement complete-review orchestration with fresh read-only reviewer subagents by default and an explicit in-agent override.

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

Scope

  • Resolve requested review lenses and require a complete review result for each cycle.
  • Use a fresh aggregate-review subagent by default when the host supports subagents.
  • Allow nested lenses to share that aggregate-review subagent.
  • Reinforce read-only behavior in prompts, allowed operations, evidence collection, and result validation.
  • Support in-agent review only through an explicit invocation override.
  • Normalize findings for deterministic selection and checkpointing.

Non-goals

  • Building new review lenses that are not already available.
  • Applying fixes inside reviewer agents.
  • Locking, promotion, or publication.

Acceptance criteria

  • Default-capable hosts create a fresh reviewer subagent for every complete review.
  • Reviewer instructions explicitly prohibit worktree mutation and implementation.
  • Reviewer output is rejected if required lenses or evidence are incomplete.
  • Nested lens execution can share one aggregate-review subagent without weakening completeness.
  • In-agent execution occurs only when explicitly requested and is recorded in the result.
  • Tests detect attempted reviewer mutation and fail the cycle closed.

Validation

  • Unit and integration tests for lens resolution, reviewer freshness, mutation detection, incomplete output, and explicit override behavior.
  • Repository just format, just lint, and just test.

Dependencies

Blocked by the contract leaf.

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