1---2name: ai-evaluation-and-data-flywheel3description: Use when designing evaluation, failure analysis, feedback capture, regression datasets, synthetic data controls, and data flywheels for AI-assisted research and agentic workflows.4---56# AI Evaluation And Data Flywheel78<!-- dual-compat-start -->910## Use When1112- Use when improving AI-assisted research workflows, agent prompts, retrieval, tool use, or model selection.13- Use when building eval datasets, failure taxonomies, feedback loops, or regression tests.14- Use when agent outputs must improve through measured evidence rather than intuition.1516## Do Not Use When1718- The task is a one-off research answer.19- There is no repeatable workflow to evaluate.2021## Evaluation Intake Guidance2223- Workflow under test, expected outputs, failure examples, user feedback, source material, and acceptance criteria.24- Metrics that matter: correctness, citation integrity, cost, latency, coverage, and usability.2526## Evaluation Core Method27281. Define the task class and quality criteria.292. Collect representative examples and known failures.303. Build a small regression set before changing prompts or tools.314. Measure correctness, source integrity, tool failure, cost, and latency.325. Tag failures by cause: retrieval, reasoning, tool, prompt, source, or format.336. Improve the workflow and rerun the same examples.347. Add production feedback to the eval set after human review.3536## Quality Standards3738- Evaluation examples are representative, not cherry-picked.39- Source-integrity failures are tracked separately from prose quality.40- Improvements are measured against a stable baseline.41- Synthetic data is labelled and does not replace real failure cases.4243## Evaluation Pitfalls4445- Changing prompts without evals.46- Treating polished prose as correctness.47- Measuring only pass/fail when failures need categories.48- Adding user feedback without verification.4950## Evaluation Deliverables Guidance5152- Eval set.53- Failure taxonomy.54- Regression report.55- Data flywheel plan.5657## Evidence Produced5859| Category | Artifact | Format | Example |60|---|---|---|---|61| Correctness | Eval set | JSON/Markdown | Input, expected checks, source material |62| Release evidence | Regression report | Markdown table | Baseline, change, result, failure tags |6364## References6566- Load `references/eval-flywheel.md` for eval structure and failure tags.6768<!-- dual-compat-end -->6970## Companion Skills7172## Capability Contract7374Evaluation is read-only by default. Capturing feedback or changing datasets, prompts, models, production traffic, or release gates requires explicit authority and versioned rollback evidence.7576## Degraded Mode7778Without executable models or representative data, return an evaluation design and mark performance, regression, and safety outcomes `not assessed`.7980## Decision Rules8182| Choice | Action | Failure/risk avoided |83|---|---|---|84| Failure is reproducible | Add a minimal versioned case | Anecdote-driven tuning |85| Synthetic case lacks provenance | Quarantine it | Contaminated benchmark |86| Regression gate fails | Block release | Known quality regression |8788## Flywheel Failure Modes8990- Optimising one headline score; retain slice metrics.91- Training on the test set; separate datasets.92- Adding unverified synthetic examples; record provenance.93- Erasing failures after fixes; retain regression cases.94- Mutating production from an evaluation run; require authority.9596## Worked Example9798A citation error becomes a versioned regression case with expected evidence fields before any prompt change is accepted.99100## Companion Skills101102- `agentic-research-operations` supplies agent workflow design.103- `validation-contract` supplies release evidence standards.104- `source-verification` supplies citation-integrity checks.105106## Inputs107108| Input | Source/provider | If absent |109|---|---|---|110| Evaluated workflow, failure taxonomy, representative cases | Product owner and verified run logs | Stop scoring and return an evaluation-design gap |111| Versioned prompts, models, datasets, and expected outcomes | Evaluation registry | Quarantine results whose tested configuration cannot be identified |112113## Workflow1141151. Define the decision, failure taxonomy, slices, and release threshold before running cases.1162. Execute representative cases and preserve raw outputs with configuration identifiers.1173. Stop when provenance is missing, test data leaks into training, or a release gate fails.1184. Recover by quarantining contaminated cases, restoring clean versions, and rerunning the affected slices.1195. Add reproducible failures to the regression set only after human verification.120121## Outputs122123| Artefact | Consumer | Acceptance condition |124|---|---|---|125| Evaluation report and versioned regression set | AI workflow owner and release reviewer | Every metric maps to cases, slices, configuration, expected result, and observed result |126127## Anti-Patterns128129- Optimising one headline score. **Fix:** retain failure slices and guardrail metrics.130- Training on the test set. **Fix:** enforce versioned separation and contamination checks.131- Adding unverified synthetic cases. **Fix:** record provenance and human acceptance.132- Deleting fixed failures. **Fix:** keep them as regression cases.133- Mutating production during evaluation. **Fix:** require separate deployment authority and rollback evidence.