[Improvement] Implement Evaluator-Optimizer Pattern for Code Review Loop #22

Closed
opened 2026-04-05 00:49:10 +00:00 by NW · 1 comment
Owner

Overview

Formalize the code review loop (code-skeptic to the-fixer) as an evaluator-optimizer pattern with structured iterations and convergence criteria.

Priority: P1

Effort: Low
Impact: High

Current State

Informal review loop:

  • code-skeptic reviews
  • the-fixer fixes
  • Repeat until approved (no limits)

Proposed Solution

max_iterations: 3
convergence_criteria: all_issues_resolved OR max_iterations_reached

iteration_loop:
  - evaluator: code-skeptic
    outputs: [verdict, issues, severity]
  - optimizer: the-fixer
    outputs: [changes, resolution_notes]

Files to Modify

  • .kilo/agents/code-skeptic.md - Add structured output format
  • .kilo/agents/the-fixer.md - Add structured input handling
  • .kilo/agents/orchestrator.md - Add iteration tracking

Expected Outcomes

  • Maximum 3 review iterations
  • Prevents infinite loops
  • Tracks iteration count for evaluator scoring
## Overview Formalize the code review loop (code-skeptic to the-fixer) as an evaluator-optimizer pattern with structured iterations and convergence criteria. ## Priority: P1 **Effort**: Low **Impact**: High ## Current State Informal review loop: - code-skeptic reviews - the-fixer fixes - Repeat until approved (no limits) ## Proposed Solution ```yaml max_iterations: 3 convergence_criteria: all_issues_resolved OR max_iterations_reached iteration_loop: - evaluator: code-skeptic outputs: [verdict, issues, severity] - optimizer: the-fixer outputs: [changes, resolution_notes] ``` ## Files to Modify - `.kilo/agents/code-skeptic.md` - Add structured output format - `.kilo/agents/the-fixer.md` - Add structured input handling - `.kilo/agents/orchestrator.md` - Add iteration tracking ## Expected Outcomes - Maximum 3 review iterations - Prevents infinite loops - Tracks iteration count for evaluator scoring
NW added the priority::hightype::enhancement labels 2026-04-05 00:49:10 +00:00
Author
Owner

? Implemented

Evaluator-Optimizer workflow template created: .kilo/workflows/evaluator-optimizer.md

Implementation

  • Structured iteration loop (max 3 iterations)
  • Convergence criteria: all_issues_resolved
  • Evaluator: code-skeptic
  • Optimizer: the-fixer

Benefit

  • Prevents infinite review loops
  • Tracks iteration count for scoring
  • Guarantees convergence

Also Added

  • capability-index.yaml now includes iteration_loops config
  • Maximum iterations enforced per review type

Commit: 348c47f

## ? Implemented Evaluator-Optimizer workflow template created: `.kilo/workflows/evaluator-optimizer.md` ### Implementation - Structured iteration loop (max 3 iterations) - Convergence criteria: all_issues_resolved - Evaluator: code-skeptic - Optimizer: the-fixer ### Benefit - Prevents infinite review loops - Tracks iteration count for scoring - Guarantees convergence ### Also Added - `capability-index.yaml` now includes `iteration_loops` config - Maximum iterations enforced per review type Commit: 348c47f
NW closed this issue 2026-04-05 01:10:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/APAW#22