Repository navigation
test(evals): measure an extraction classifier for tainted sessions' outgoing calls (#3434) - #4071
Conversation
) Adds the #3434 measurement harness: the request schema the classifier scores, seven deterministic signals scored alone and combined, the policy combination that lets an allow relax only the #3430 card, the Jev middle-band judge with its spend ledger, and a labelled set of 86 Odysseus calls over the fixture corpus, with adversarial cases per heuristic. Keyless experiment-tier tests use a deterministic judge stub. The plan records the schema, signals and the offline heuristics table: fingerprint overlap alone reaches 0.54 held-out extraction recall, so the early-stop condition is not met and the live Jev leg is required. Refs #3434 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #3434 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #3434 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Collision check at head |
…dation (#3434) jev-1.13.0 answered all 52 ambiguous-band requests for $0.00152, p50 155 ms and p95 194 ms, with identical answers across three repetitions. On held-out it cuts benign cards from 11 to 3 of 33 with no added leak, but no held-out extraction call reached its band, and it labelled the one tuning beacon benign below the 0.9 floor. The plan now recommends heuristics first, then Jev for the band, each off by default until the band is requalified, and links the implementation tasks #4088, #4089 and #4090 under #3428. A replay test pins the recorded run's table. Closes #3434 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Collision check at head |
|
This PR's squash |
Closes #3434
What changed
This delivers the #3434 spike. It adds a harness that scores a tainted session's outgoing calls for likely data extraction, and a labelled set of 86 Odysseus calls over the keyless fixture corpus. It records the authorized live Jev run, and adds a plan document,
docs/plans/extraction-classifier.md. The plan holds:Nothing in the admission path changes.
Held-out sessions: 13 extraction and 33 benign calls. "Realistic" is the held-out benign working session of 22 calls.
jev-1.13.0answered all 52 ambiguous-band requests, with identical answers in all three repetitions. Spend was $0.00152 of the $10 cap, about $0.00003 per call, with p50 latency 155 ms and p95 194 ms. The run happened outside CI with the maintainer's key, and the key file was deleted afterwards. The results file was checked for secrets and passes the leakage gate.benignat 0.82–0.88, and only the 0.9 floor kept that call on the card.Why this shape
allowmay relax. The classifier'sallowmay relax only the ui-sdk: a tainted session's new destination is refused silently instead of asking the user #3430 tainted-destination card;askandblockcan escalate anything. Deny,allowlistmode, budgets and outward rules stand. Voice and autonomous turns keep refusing a tainted destination whatever the verdict (decide,evals/3434-extraction-classifier/classify.ts:29-36)./-joined path segments read as base64, and fan-out firing on ordinary repeat use. No case changed. Thresholds and the floor are calibrated on tuning sessions only.Proof
bun run test experiments/3434-extraction-classifier.test.ts: 17 pass.Failing first.
decideinitially let anallowband relax a voice or autonomous taint refusal. I tightened the testvoice and autonomous turns refuse wherever an interactive turn would askfirst, and it failed withExpected: "refuse",Received: "admit". The guard indecidemade it pass.Mutations, each restored afterwards; all 17 pass again:
policy === "outward_ask"only when there is no band):allow relaxes only the tainted-destination card…fails withExpected: "ask",Received: "admit". The recorded offline-table test also fails.matched = known(stream)):a trickle counts on the call that completes a phrase…fails withExpected: 0,Received: 12.no answer, or one below the floor, asksfails withExpected: "ask",Received: "allow". The judge-boundary test fails too.no answer, or one below the floor, asksfails. So doesrecorded live run: replaying every repetition's Jev answers reproduces the plan's row, because the beacon is admitted and tuning leaks.calibration reads tuning rows only…fails on the threshold equality.sends only the judge state and the pinned model…fails, because ajev-1.14.0answer is accepted.Typecheck (
bun run typecheck, run withNODE_OPTIONS=--max-old-space-size=8192because the default heap runs out of memory on this host) andbun run lintpass.{"version":1,"kind":"brain-check-pr-receipt","head":"f1205940585df4918c2a4861a30a4cd2cef14b3b","base":"origin/main","mode":"focused","startedAt":"2026-11-16T13:32:03.757Z","finishedAt":"2026-11-16T13:33:28.989Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12429.00819},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":126.90709799999968},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":108.48320499999863},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":20.77647700000125},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":72527.698556}]}Collisions: no path collisions (31 closure-only reports), recorded in a comment with the head; rechecked for this head below.
Checklist
0.45.0milestone.docs/reflect the change.Anything left open
The implementation and the band requalification are #4088, #4089 and #4090. Turning either setting on by default needs a maintainer ruling.
🤖 Generated with Claude Code