inspect: address review verdict (judge alias, prompt injection, token attribution, picker model, scratch files) · Entire

Inspect: Address Review Verdict (Judge Alias, Prompt Injection, Token Attribution, Picker Model, Scratch Files)

7f0efdc→main

Changes

Tests

judge alias resolution, reviewWorkerLabel (incl. model-only), inspector-report defanging.

Note: SummaryTimeoutSeconds (explain, 5m) is unrelated to the inspector timeout (10m) — different features, not a conflict.

Sessions

1beec0dd0411View transcript

TestProfileJudge Resolves Worker Alias

func TestProfileJudge_ResolvesWorkerAlias(t *testing.T) {
    t.Parallel()
    aliased := settings.ReviewProfileConfig{
        Agents: map[string]settings.ReviewConfig{
            "claude-opus": {Agent: tAgentClaude, Model: tModelOpus},
        },
        Judge: &settings.ReviewConfig{Agent: "claude-opus"},
    }
    if j, ok := profileJudge(aliased); !ok || j.agent != tAgentClaude || j.model != tModelOpus {
        t.Errorf("aliased judge = (%#v, %v), want claude-code/opus, true", j, ok)
    }
}

TestReviewWorkerLabel

func TestReviewWorkerLabel(t *testing.T) {
    ...
}

Consolidation of Inspector Reports

Consolidate the inspector reports into one verdict — judge critically, don't just summarize.