feat(viewer): approaches view — offline synthesis of strategies tried#19
Merged
Conversation
Adds /setup/{label}/run/{idx}/approaches, modeled on AlphaEvolve's
AI-overview tab but built as a pure offline disk reader (no LLM at render
time). Two sections:
- "The ideas that worked": the new-best lineage — each step that set a
new best, with its one-line hypothesis. Read top-to-bottom it's the
chain of ideas that actually moved the score.
- "Techniques the AI kept trying": salient technique phrases repeated
across the HMRD notes, ranked by how often a phrase coincided with a
new best, then by how widely it was tried. Prefers 2-word phrases
(named techniques like "local search"), drops generic standalone words
and unigrams already covered by a kept phrase.
Honestly framed as a term map, not semantic clustering. Degrades
gracefully: empty-states when a run left no notes, no step improved, or
phrasing didn't repeat (e.g. circle runs whose seed is already near
optimal). The dashboard gains an "approaches: strategies tried" link.
Helpers (_first_sentence, _extract_techniques) import without the viewer
extra and are unit-tested directly; an app test covers the page + link.
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.
Viewer roadmap item D. Adds an approaches view at
/setup/{label}/run/{idx}/approaches, modeled on AlphaEvolve's AI-overview tab — but built as a pure offline disk reader (no LLM at render time, consistent with the rest of the viewer).Two sections
Honest by construction
Framed in-page as a term map, not semantic clustering. Degrades gracefully with explicit empty-states when a run left no notes, no step improved on the seed, or phrasing didn't repeat — e.g. circle-packing runs whose initial program is already near-optimal correctly show "No step improved on the starting program's score" rather than a fabricated lineage.
Verification
_first_sentence,_extract_techniques) import without the viewer extra and are unit-tested directly (ranking, generic-word/singleton filtering, sentence truncation); an app test covers the page + dashboard link.🤖 Generated with Claude Code