[docs] document the evaluation pipeline internals - #31
Merged
Merged
Conversation
The README covers how to invoke each stage; nothing covered what happens inside them. EVALUATION_PROCESS.md explains the mechanics: - persona/motivation/flavor allocation (largest-remainder, shuffle, zip) and why it lives in code rather than in the prompt - what each of the four generation prompts asks for, including the conditional model-memory and flavor sections - the validationFeedback retry channel and why a validation failure drives task-level model rotation rather than per-call retry - judge aggregation (median grades, mean counts) and notTriggered - the exact commands and marginals that produced the shipped corpus - known dead code: conversationToMatchPrompt and riskToScenariosPrompt Also fixes the Overview risk count (25 -> 26), which already disagreed with the taxonomy section further down. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NRbfZ2n5gKAppVbCwbA2t6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The README documents how to invoke each pipeline stage — flags, defaults, model chains — but nothing in the repo explained what happens inside them. Details like why demographics are allocated in code rather than asked for in the prompt, or why expansion needs a task-level fallback chain on top of the per-call one, only lived in the source.
What
Adds
EVALUATION_PROCESS.mdat the root, linked from the README in three places (Overview, "Pipeline stages", and the project-structure tree).Contents:
generate-seeds— the task grid, grid vs. distribution mode, largest-remainder/shuffle/zip persona allocation, motivation round-robin, flavor allocation, and what the code stamps vs. what the model chooses.expand-scenarios— the disciplined-expansion prompt and its three conditional sections, the 7-point validation checklist, thevalidationFeedbackretry loop, and why aScenarioValidationErrorrotates models at the task level (a validation failure is a well-formed response, so per-call retry never sees it).run— prompt variants, conversation length, thevalidateAssistantTurncapture gate, judge aggregation (median grades / mean counts / matching reasons), andnotTriggeredscore-neutrality.c285c5c, the per-risk marginals, and two quirks: 781 seeds rather than 780 (one task returned two seeds where one was requested; nothing clampsoutput.seeds.lengthtoseedsToGenerate), and the missing taxonomy stamp on pre-packs seeds.conversationToMatchPromptandriskToScenariosPrompthave no call sites and are not re-exported fromindex.ts; both date fromc9be924and were superseded byconversationToAssessmentPromptand the two-phase seed/expand split respectively. Includes a live/dead table for all eleven files insrc/prompts/, plus the smallerScenarioValidationVerdictorphan.Also
Fixes the Overview risk count: 25 → 26. The taxonomy section further down already said 26, and
risks.jsonhas 26.Notes
yarn prettypasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01NRbfZ2n5gKAppVbCwbA2t6