Skip to content

Promote correction/anti-parroting trace analysis to core (turn tagging + sub_trajectories) #429

Open

Description

@evekhm

The gap: the flagship anti-parroting capability — parroted vs recovered corrections detected from execution traces — lives entirely in scripts/quality_report.py: the LLM turn tagger (_tag_conversation_turns), the sub_trajectories derivation (parroted/recovered/not_recovered with turn spans), and _segment_trace_by_turns. Three surfaces depend on its OUTPUT shape (judge reports, skill_evolution's failure reclassification, the #395 host session schema), but no library surface produces it.

Proposal: a core correction_analysis module (or trace_evaluator extension) consuming identity-safe Trace objects (U1–U3) and producing identity-keyed correction segments — tagger, sub-trajectory derivation, trace segmentation — with the session-dict output shape (sub_trajectories, execution_sub_trajectories incl. per-segment trace, correction_boundaries, verifications int count) documented as the stable contract.

Why core: consumes core Traces, feeds core categorical results, and the parroting reclassification is the documented defense against fake successes. Precedent: #375 (U3) pulled trace_evaluator into the identity contract.

Scope note: larger than the sibling extractions (async tagging paths); the PR is staged after the golden-matching and rubrics extraction PRs establish the review pattern. Refs: #63, #395, #397.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions