Skip to content

Epic: session taint marks real untrusted input, and its restrictions are visible and decidable #3428

Open
8 of 13 issues completed

Description

@schlessera

Outcome

Session taint (G6) is a rare, meaningful state that marks a session which actually took in untrusted content. When taint restricts something, the user can see why and can decide. Ordinary governed chats are never tainted by their own commands or by the host's own capabilities. When a tainted session reaches a new destination, the user is asked rather than met with a silent refusal.

Why now

The original 0.44.0 report, before the deliveries below, observed taint in effectively every governed session:

A signal that fires on every session cannot tell a poisoned session from a clean one. A restriction that the user can neither see nor override reads as an outage. The original workaround was a hostname-wide taint.egress.allow, which is the opposite of what G6 intends.

Shared context

Current navigation verified at inspected main on 2026-11-20; original failure observations retain their recorded source identities:

Constraints and non-goals

Breakdown

The native list has twelve children: eight closed and four open.

The three extension epics retain their scoped foundation, implementation and integrated-proof requirements. The classifier research, #4088/#4089 runtime slices and #4090 requalification study are delivered as documented above. The open native outcomes are #3595, extension epics #3596/#3597/#3598, and #4161, the scoped judge-configuration follow-up. Their remaining implementation, investigation and integrated-proof criteria still apply. Explicit review cannot clear later triggers or unknown/incomplete occurrence history.

Definition of done

Triage 2026-11-03 (main 3d3516a02): added type: feat (the epic changes taint and refusal behaviour). Marked #3246 as a sibling rather than a child, and made the last definition-of-done bullet checkable without reference to a particular installation.

2026-11-04 triage at main 53b862123d7b8e4c9d039859fabdc9fc6ad4cd36: Refreshed the active named-source navigation after inspecting the current declarations; existing decisions, historical receipts, child prerequisites and readiness remain unchanged. No new runtime qualification or implementation is claimed.

Owner-reviewed safety extension (maintainer, 2026-11-05)

The maintainer requested trusted-origin and repository/organization CRUD, chat-entry taint indicators with hover/tap reasons, and Mark as safe that resolves only its selected trigger without clearing later inputs. Three native child epics now hold those separate outcomes: #3596 for individual review and detector coverage; #3597 for persistent source/recipient settings and optional future-rule review; #3598 for verified Git acquisition and source-byte provenance. Their reviewed design supersedes unconditional stickiness only at the qualified new capability boundary; no implementation is claimed by planning. Source trust and recipient permission are distinct. Open input cannot be cleared, and unknown legacy coverage cannot assert normal.

The requested gpt-6-astra review is recorded on #3596 together with the complete revised design. #3595 remains the separate once/origin/session network-approval slice; #3434 remains the independent extraction-classifier spike. Private configuration is not part of the public plan.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Verified the moved active source anchors and refreshed navigation. Historical measurements and source-bound failure receipts keep their identities; existing scope, rulings, needs, priority, assignment and release attribution are preserved. This source review supplies no new runtime qualification or epic completion.

2026-11-10 triage at main 3aadc8df5: repaired line citations that moved since the last pass (by named anchor). Scope, rulings, breakdown, labels and readiness unchanged.

2026-11-14 triage at main faa480e8c864d547cd8b4eb75965b7d609284770: Refreshed verified current-source pointers; historical receipts, decisions and remaining qualification requirements retain their identities.

2026-11-15 triage at main 3f8ff29341fbe25665cea42659f92e6f3d3ccef0: Reconciled delivered individual review and the new acquisition-only host branch against current source, while preserving the independent recipient restrictions and unfinished integrated/standing-trust/provenance outputs. No broader authority or completion is inferred.

2026-11-16 native-inventory reconciliation: #4088/#4089/#4090 were attached concurrently after the finite triage snapshot. Their bodies, labels, decisions and readiness are left for their own review; this update only keeps the selected parent’s native breakdown true. #3434 and its #4071 research remain separately evidenced; the new implementation/evaluation tasks do not establish shipped heuristics, Jev effectiveness, default activation or a broader authority grant. Preserve existing G2/G6, approval, metering, provider-history and qualification boundaries.

Extraction-classifier research delivered — 2026-11-16

#3434 is closed through merged PR #4071 at 80e5d372f96eaece849d0fdfac95f5a84925845c, the inspected main. The deliverable is Extraction classifier for tainted sessions, with the harness and stored runs in evals/3434-extraction-classifier/. This is research delivery, not a production admission change.

The recorded held-out set has 13 extraction and 33 benign calls. The baseline leaks 4 extraction calls with 19 benign cards; heuristics leak 1 with 11 cards; heuristics plus Jev leak 1 with 3 cards. All three Jev repetitions agree. These are authored-case observations: no held-out extraction call reached the judge's ambiguous band. Its tuning beacon was answered benign below the 0.9 confidence floor, which alone kept that case on the card. The known paraphrase, opaque-payload, beacon, encoding and judge-injection limits remain; the approval card is still a backstop, not evidence of a complete detector.

The recommendation and implementation boundaries (Recommendation, docs/plans/extraction-classifier.md:219-247) keep both prospective settings off by default: #4088 owns deterministic admission, #4089 owns the G2-routed, metered and budgeted judge, and #4090 owns band requalification before any default activation. Their briefs and recorded rulings remain authoritative; this reconciliation grants no new data flow or permission and supplies no new default-on decision.

Triage replayed every stored live answer through the source harness on Bun 1.4.4 at that SHA. All six configuration tables, calibrated thresholds and judge floor exactly matched the committed result; the replay attempted zero network calls. This is an offline consistency check of the recorded run, not a new provider measurement, independent safety qualification or production proof. The twelve native children and seven open outputs remain attached as before; no readiness, assignment or release attribution changes.

2026-11-17 triage at main 9e7429a914a8aaf5967f074fa9e09984968fc9dc: Refreshed verified active source navigation; historical receipts retain their source identities. Reconciled the runtime-follow-up summary with the already recorded #4088/#4089 deliveries; #4090 and the other native outcomes remain open. No new runtime qualification or readiness is claimed.

Extraction-band requalification study delivered — 2026-11-17

#4090 is closed through merged #4123, squash 764d8d22763a8f925dc29da0b2bd1c6eba5775ac, the inspected main. The new cases, production-classifier/judge replay and stored results live in evals/3434-extraction-classifier/; the measured result is recorded under “Requalifying the band (#4090)” (docs/plans/extraction-classifier.md:229-393), with the current recommendation at :395-425. The study adds three tuning and three held-out sessions; all thirty extraction calls reach the production ambiguous band. Its recorded live leg used jev-1.13.0 for three repetitions of 43 band calls (129 requests), costing $0.003798 within the existing $10 cap. This triage made no provider calls.

At the shipped 0.9 floor, two of fifteen held-out extraction calls were admitted in every repetition; two benign held-out links stayed on a card. No confidence floor separates the measured classes. The study therefore argues against turning the Jev judge on by default at that floor. The maintainer ruled on #4089 on 2026-11-17 to keep the Jev judge off by default. #4161 investigates candidate configurations on the existing labelled set. Any default activation needs a new ruling. Research delivery does not establish detector completeness or approve activation; G2/G6, voice/autonomous refusal, metering and append-only provider history remain binding. Candidate and post-merge proof retain their recorded ownership; this is source/tracker reconciliation, not independent hosted qualification.

2026-11-17 triage at main d974052166f335cbf57b385fddc13875da1b98de: Verified the named current declaration and refreshed its moved navigation. Historical source-bound receipts, scope and prerequisites retain their identities.

2026-11-20 triage — Folded the recorded default-off ruling and the existing #4161 child into the current epic state.

2026-11-20 triage — Reconciled delivered recovery proof, Settings publication and source identity evidence with main 63bb400b3. The five open native outcomes remain listed above.

Activity

  1. added
    area: ui-sdk
    area: ui-server
    priority: p1
    epic
    on Nov 3, 2026
  2. added this to the 0.45.0 milestone on Nov 3, 2026
  3. added
    type: feat
    on Nov 3, 2026
  4. added 2 commits that reference this issue on Nov 4, 2026
  5. 2 remaining items

  6. schlessera commented on Nov 5, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-05 (inspected main 35217d283b849b5ef81700d5d4c2ec7486405d12)

    #3429, #3430 and #3431 are on main through #3564; #3246 is also closed and is now a native child here. Five of nine children remain open: #3434, #3595 and #3596–#3598. The brief now separates delivered behavior from the proposed review/trust extension, preserves the known shell-file-read coverage gap and keeps display metadata outside provider history.

    This reconciles source and tracker state. It supplies no new runtime qualification, complete-epic proof or release commitment.

  7. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main 3aadc8df5: repaired the G6 heading (governed-writable-workers.md:3865) and inputTaintSource (ingestion-taint.ts:96) citations. No child closed since the 2026-11-08 pass. Labels, breakdown and readiness are unchanged.

  8. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-16. The native list gained #4088 deterministic admission heuristics, #4089 the routed/budgeted Jev ambiguous band and #4090 band requalification: twelve children, four closed and eight open. They arrived after this pass’s snapshot and were not themselves triaged. No default activation, implementation delivery or new policy approval is inferred.

  9. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Research delivery reconciliation — 2026-11-16. #3434 is delivered through #4071 at inspected main 80e5d372f; the parent now records five closed and seven open native children. The plan, harness and stored tables are on main, and an offline replay matched all three Jev repetitions without network calls. #4088/#4089/#4090 still own runtime implementation and requalification. No held-out extraction case reached the measured Jev band, so the result supplies no independent safety or default-activation approval. Existing G2/G6, voice/autonomous refusal, provider-history, assignment and release boundaries remain.

  10. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-17 (inspected main 9e7429a91). #4088 is delivered through #4095 (squash a7169cb19) and #4089 through #4101 (squash 0ef4dff5a). Both are ancestors of inspected main, and both issues are closed. The native list is now seven closed and five open: #3595, #3596, #3597, #3598 and #4090. Default activation still needs #4090's requalification and its recorded maintainer ruling. The definition-of-done bullet for the classifier follow-ups stays open until #4090 lands. The epic stays without agent-ready.

  11. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-17 (requalification delivery). #4090 landed through #4123, squash 764d8d22763a8f925dc29da0b2bd1c6eba5775ac, verified on inspected main. Eight of twelve native children are closed; #3595 and extension epics #3596/#3597/#3598 remain open with their own implementation and integrated-proof criteria.

    The study puts extraction cases inside the production ambiguous band. At the shipped 0.9 floor, two of fifteen held-out extraction calls were admitted in every repetition; the result argues against default activation. The active body now records the measured result and source. Activation still needs the maintainer ruling on #4089, and settings remain off by default. This triage made no provider calls and supplies no independent hosted qualification.

  12. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-20. #4090 is complete through #4123. The maintainer kept Jev off by default on #4089, recorded through #4164. #4161 owns the next bounded investigation. #3595 and the three extension epics retain their independent delivery criteria.

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

    area: ui-sdkarea: ui-serverepicpriority: p1type: feat

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions