EvaluatorOptimizer
Generate-evaluate-refine loop
Mechanism
A two-role Loop to Optimize a solution where a Generator produces output and an Evaluator critiques it, providing structured feedback. The feedback is fed back to the Generator for refinement. Loop continues until the Evaluator approves or max iterations reached. The Evaluator can be the same model with a different Context, or a separate model. It invokes a MetaCheck to ensure the scoring Criteria remain consistent across optimization cycles.
Invariants
- Feedback loop converges
- Optimizer improves score on Evaluator metric
Signature
- Optimize(Loop)
Preconditions
- Initial solution
- Modification operator
- Scoring function
Postconditions
- High-quality solution found
Failure modes
- Evaluation Drift: Evaluator criteria shift across iterations.
- Cosmetic Changes: Generator makes superficial edits that don't address feedback.
- Evaluator Capture: Generator learns to game the evaluator's criteria.
Where this came from
—
Builds on
Identity
- Ref:
EvaluatorOptimizer#ae09 - Hash: sema:EvaluatorOptimizer#mh:SHA-256:ae098f2db7c18e00fa1dea16a305133a0778bd157652d5ee42b65f3bf86eef83
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository