Skip to content

Widen shadow eval trigger to capture 'Addie responded then human corrected' threads #3602

Closed

Description

@bokelley

Context

PR #3601 fixed the shadow evaluator to use the real prompt + production model and added a deterministic response-shape grader. But the trigger for entering the shadow corpus is still only the suppression path: `bolt-app.ts:4090` and `:4125` mark a thread `shadow_eval_status: pending` only when Addie was about to respond and humans answered first.

The load-bearing case Brian flagged on 2026-04-29 — Katie's registry question, where Addie did respond and Brian had to come back with a TLDR — never enters the corpus today. So even with the new shape grader, we won't catch the pattern in production threads.

What this issue covers

Add a second trigger path: flag a thread for shadow eval when Addie posted and a substantive human reply landed afterward (within some window, e.g., 6h).

Sketch

  • New `shadow_eval_trigger` field on the thread context: `'suppressed' | 'addie_corrected' | 'manual'`. Default `'suppressed'` when not set, so existing rows are unaffected.
  • New field `shadow_eval_actual_addie_response`: Addie's actual production response (only set when trigger is `'addie_corrected'`). Today only `shadow_eval_shadow_response` exists, generated counterfactually.
  • Capture path: either
    • Event-driven: on any new human message in `bolt-app.ts`, check whether Addie's last assistant turn in the thread is recent and substantive. If yes, queue for shadow eval with trigger `'addie_corrected'`. Pros: simple; cons: adds work to the hot path.
    • Periodic scan job: a cron-style job in `server/src/addie/jobs/` that queries `addie_threads` for threads where the last Addie turn was followed by a human turn within the last N hours and the thread isn't already pending. Pros: keeps the hot path clean; cons: adds another scheduled job.
  • The shadow evaluator job should treat both triggers uniformly when grading — the only difference is the comparison: for `'suppressed'`, compare shadow vs human; for `'addie_corrected'`, compare actual Addie vs human (and optionally re-generate a shadow as a third arm).
  • Selection-bias note: even with this widened trigger, the corpus is still selected for "Addie was wrong enough that a human corrected." We need a control sample of un-corrected threads where Addie posted and the conversation moved on cleanly, to detect when consolidation lifts the floor without breaking the ceiling. Out of scope for this issue but worth flagging.

Pre-reqs landed

Acceptance

  • A thread that matches the Katie/registry shape (Addie posts essay, human posts TLDR) gets flagged `shadow_eval_status: pending` automatically.
  • Shape grader runs on the actual Addie response, not just a re-generated shadow, when trigger is `'addie_corrected'`.
  • Existing `'suppressed'` flow still works.
  • Sample-size check: count of `'addie_corrected'` threads per week is in the right ballpark (10s-100s for a community Slack of this size).

Activity

  1. added
    addie
    on Apr 30, 2026
  2. bokelley commented on Apr 30, 2026

    @bokelley
    ContributorAuthor

    Brought into PR #3601 — done as part of the same cohesive change to the eval pipeline. The new shadow-corrected-capture job runs every 30 min and now captures the Katie pattern (Addie posted, human corrected) into the same shape-graded corpus the suppression trigger feeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    addie

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions