Spec Delta
2 KB - Открыть исходный файл
Purpose
Evaluation scores a change, a skill, or a draft skill against example inputs with a separate judge, and applies a minimum-score gate before acceptance or promotion.
ADDED Requirements
Requirement: Eval file format
An eval SHALL be a Markdown file in .flywheel/evals/<skill>/ whose frontmatter id equals the file
name, skill equals the folder name and exists in the skill library, kind is behavioral or
regression, min_score is in (0, 1], and listed fixtures exist; its body MUST contain the sections
Input, Expected Behavior, and Scoring Criteria in that order.
Scenario: Missing section
- GIVEN an eval without a
## Scoring Criteriasection - WHEN
flywheel.py checkruns - THEN it reports the missing section
Scenario: Missing fixture
- GIVEN an eval that lists
fixtures/input.txtand that file does not exist - WHEN
flywheel.py checkruns - THEN it reports that the fixture was not found
Requirement: Generator isolation and a separate judge
Each eval SHALL be run by a fresh generator that receives only the skill text, the Input, and the fixtures, and SHALL be scored by the judge agent, never by the generator.
Scenario: Running an eval
- GIVEN an eval with expected behavior and scoring criteria
- WHEN the evaluate skill runs it
- THEN the generator prompt contains neither the Expected Behavior nor the Scoring Criteria
Requirement: Stable score and gate
The score of an eval SHALL be the mean of at least two judge samples (three when they differ by more
than 0.2), and the gate SHALL pass only when every eval meets its min_score, the eval count meets
eval.min_evals for a promotion, and there are no constitution violations.
Scenario: One eval below its minimum
- GIVEN three evals with mean scores 0.9, 0.85, and 0.6 and min_score 0.8
- WHEN the gate is applied
- THEN the gate fails and the report names the failing eval
Requirement: Results are recorded
Each run SHALL write results/<date>-<eval-id>.md next to the evals with the scores, the judge
agent and model, the notes, and the date.
Scenario: Results written
- GIVEN a completed eval run
- WHEN the evaluate skill finishes
- THEN a results file exists for each eval that was run