Skip to content

ui-server: ask Jev about the ambiguous extraction band, routed under G2, metered and budgeted #4089

Closed

Description

@schlessera

Context

In spike #3434 (docs/plans/extraction-classifier.md, from #4071), Jev judged the heuristics' ambiguous band: score at or above 0.2 and below 0.35, in practice mostly links the tainting content named, and pagination cursors. It used jev-1.13.0, three repetitions, a calibrated confidence floor of 0.9, and a state limited to the outgoing request, the taint source's name and the overlap score.

On held-out it cut benign cards from 11 to 3 of 33, and on the realistic session from 7 to 2 of 22, with no added leak. Answers were identical across the three repetitions. The measured cost was about $0.00003 per call, with p50 latency 155 ms and p95 194 ms. The whole 52-call run cost $0.00152.

The plan records the limit of that evidence: no held-out extraction call reached the band. In tuning, Jev labelled an injected beacon benign at 0.82–0.88, and only the floor kept it on the card.

The host-side client is createJevClient (packages/ui-server/src/classification/jev-client.ts:99, 2 s budget with a breaker), verified at main 3b104890f. Data-to-provider routing is G2 (docs/decisions/governed-writable-workers.md, "Data-to-provider routing (G2)").

Part of #3428.

Blocked by #4088

Scope

  • In the classifier from the blocking task, send only ambiguous-band calls to Jev through the host-side client. The question and state are as the plan records them: the outgoing request (body truncated at 2000 characters), the taint source's display name and the overlap score. Never the conversation, the untrusted content or the read files.
  • Map answers to bands as the plan does: benign allows and extraction blocks only at or above the floor; suspicious, a sub-floor answer, no answer, a timeout, an open breaker or an unexpected answering model asks.
  • Route the call under G2, meter it as its own operation and charge it to the session's budget. Pin the evaluated model, and make the floor and the setting configurable.
  • A setting that turns the judge on, off by default and only effective while the heuristic classifier is on.

Out of scope

Acceptance criteria

  • A keyless test with a stub at the lowest shared request method shows that only ambiguous-band calls reach the judge. It also shows the request carries only the request, the taint source's name and the overlap, and that no read-file text or tainting content appears in it.
  • A benign answer at or above the floor admits a new host without the card. A sub-floor answer, suspicious, no answer, a timeout, an open breaker and a different answering model each raise the card. Each case has a named test.
  • Each judge call is metered under G2 and charged to the session budget. An exhausted budget asks without calling.
  • Voice and autonomous turns never call the judge and keep refusing.
  • No verdict enters the provider-facing conversation. The provider-history guard passes.
  • Replaying the recorded Spike: classify a tainted session's outgoing calls for likely data extraction, with heuristics first and JEV for the ambiguous band #3434 answers through the production mapping reproduces the plan's heuristics-plus-Jev row: held-out 1 leak and 3 benign cards; realistic 2 of 22.
  • Mutation receipts in the PR: dropping the floor, and treating no answer as benign, each fail a named test.

Verification

Keyless ui-server tests with a deterministic stub, the budget and metering tests, the provider-history guard and the replay regression. Live measurement stays outside CI.

Contract impact

Additive: the settings and the metered operation name, documented with a CONTRACT: commit and a changeset.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    securityAuth, isolation, egress, secrets, or anything in the threat model.
    on Nov 16, 2026
  2. added this to the 0.45.0 milestone on Nov 16, 2026
  3. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #4088 is closed, so scripts/sync-project.ts is removing the blocked label.

  4. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 16, 2026
  5. self-assigned this
    on Nov 16, 2026
  6. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-366f60c2. Branch: feat/4089-jev-extraction-band.

    collisions: closure-only (no direct path overlap)

  7. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4101 as 0ef4dff5a through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

  8. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-17): keep taint.judge.mode: jev off by default. The #4090 live requalification (PR #4123) showed that at the 0.9 floor Jev let extraction calls through in every repetition, never refused one, and that no floor separates benign from extraction answers. Recalibrating on the new tuning sessions picks 1.01, which admits nothing. A follow-up issue will try to improve the judge on the #4090 labelled set before activation is reconsidered.

  9. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Follow-up filed: #4161 (find a judge configuration that separates the band before activation is reconsidered).

  10. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Merged in #4164 as 9f9147f0e through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.securityAuth, isolation, egress, secrets, or anything in the threat model.type: featA new capability or a change in user-visible behaviour.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions