Repository navigation
feat(addie-admin): render shadow shape badges + source-distinct labels - #3647
Merged
Merged
Conversation
Closes the third follow-up from the prompt-engineer review of #3601. The admin-addie shadow eval panel was rendering knowledge-gap signal but not the shape grader output the corrected-capture pipeline now persists, and was not differentiating between the two corpora that land in the same thread context (suppression-flow vs corrected-capture). The panel now: - Shows pill-style badges for every shape violation on both Addie's response and the longest human reply, drawn from context.shadow_eval_shape.{shadow,human}.violations. Reviewers see length_cap, default_template, structured_heavy, comprehensive_dump, signin_opener, and ritual:phrase hits without expanding the response comparison. Word counts and ratio-to-expected sit in the column header. - Headers the panel "Corrected Capture" when shadow_eval_source is 'addie_corrected_capture' (Addie posted, a human followed up with a correction) and "Shadow Evaluation" otherwise (Addie was suppressed because humans answered first). - Adds a one-line caveat — "Corpus is selected for human intervention — counts here are not a global rate" — to prevent miscomputing prevalence from this corpus. - Renames the side-by-side response label from "ADDIE WOULD HAVE SAID" to "ADDIE'S ACTUAL RESPONSE" when source is corrected-capture; the stored value is her actual reply, not a regenerated shadow. API path /api/admin/addie/threads/:id already returns the full thread context (`...thread` spread), so the new fields are exposed without any server work. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Reviewer nit: `ratio_to_expected ?? 0` rendered a missing ratio as '0.00' while sibling `word_count ?? '?'` rendered '?'. Both fields come from the same persisted shape summary, so a missing one of them should read the same way. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Summary
Closes the third follow-up from the prompt-engineer review of #3601. The admin-addie shadow eval panel was rendering knowledge-gap signal but not the shape grader output the corrected-capture pipeline now persists, and was not differentiating between the two corpora that land in the same thread context.
Changes (one file: `server/public/admin-addie.html`)
Test plan
Why now
`shadow-corrected-capture` job is running in production (every 30 min) since #3601 deployed. Without this rendering, the shape grader's output is invisible to anyone reviewing threads in the admin UI — the data is correct but unviewable.
🤖 Generated with Claude Code