Repository navigation
Description
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:
- For two days, every session was tainted within its first second by the Claude runtime's own traffic (ui-server: the Claude runtime's own api.anthropic.com traffic taints every governed turn, blocking WebFetch and reranking #3244, workaround in place, fix awaiting release).
- With that fixed, a session is still tainted by its first ordinary shell command:
!brain diagram --helprecordedsource: "unclassified_command". - Once tainted, every new host is refused with
taint_allowlist. That includes WebFetch,ghandcurl, and the host's own metered provider relay for image generation, embeddings and completions (ui-server: a relayed provider request taints the session and is narrowed after taint, so tool order decides whether WebFetch or reranking works #3246). - The agent sees
proxy refused the connection, or a provider error with an unrelated hint, and tells the user that the host is broken.
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:
- Rule and supersessions: “Untrusted input (G6)” (
docs/decisions/governed-writable-workers.md:4222) records the delivered shell, approval and refusal-message changes. ui-server: an ordinary shell command taints a governed session even when the egress proxy records real connections #3429/ui-sdk: a tainted session's new destination is refused silently instead of asking the user #3430/ui-sdk, modules: taint refusals reach the agent as unrelated errors such as "region not supported" #3431 landed through batch PR CONTRACT: feat(ui-sdk, ui-server): land epic #3428 batch 1 — session taint that fires on real input, asks and says why #3564; its merge is an ancestor of inspected main. - Input detection:
inputTaintSource(packages/ui-server/src/activity/ingestion-taint.ts:96) skips only command classification whenshellProxiedis true.inputTaintSignalsis consumed before delivery in the collector (for(const signal,packages/ui-server/src/governance/safety-collector.ts:119) and in the legacy recorder path (try { ingestions.set,packages/ui-server/src/activity/recorder.ts:358). Web/file, marked, attachment, MCP and compute signals remain. The source explicitly retains the shell-read-of-untrusted-file limitation; detector coverage is versioned, not a claim to detect every possible untrusted input. - Real connection taint:
admitted(packages/ui-server/src/brain/turn-egress.ts:224-248) records a worker's real non-relay connection before its first byte. Validated inference/provider operations return before tainting or adding worker-contact history (ui-server: a relayed provider request taints the session and is narrowed after taint, so tool order decides whether WebFetch or reranking works #3246). ui-server: bind trusted Git reads to the qualified host acquisition transport #3613's new host-only managed-reference branch also defers source-input evidence until a qualified read; it adds no contacted-host allowance and does not establish source trust. Its actual immutable-source integration remains separate unfinished work. - Interactive narrowing:
narrowed(packages/ui-sdk/src/server/egress-proxy.ts:279) reaches approval and gives a taint-specific denial reason. Managed-reference operations retain G6 recipient narrowing; source trust never grants outbound authority. Deny/mode/byte caps and final safety fences remain independent. Voice/autonomous paths gain no grant surface. General outward approval stays separate (approveOutward,packages/ui-server/src/brain/turn-egress.ts:256). - Delivered review versus remaining scope: main contains ui-sdk: a tainted session's new destination is refused silently instead of asking the user #3430's approval path plus Epic: chat taint is visible and individually reviewable without clearing later triggers #3596's collector/coverage/individual-verdict foundations and ui-react: show taint indicators and per-trigger Mark as safe controls in chat history #3605's exact-entry indicators/review controls, qualified through CONTRACT: feat(ui-react): review individual safety triggers in chat #3662/test(ui-react): reveal transcript details before pointer activation #3999 and inclusive main run 43612181306. security: prove single-trigger recovery across streaming, restart and two clients #3606 delivered the integrated recovery proof through test(safety): prove streaming recovery, restart and two owner views #4262. Epic: chat taint is visible and individually reviewable without clearing later triggers #3596 retains its follow-up safety review and scoped repairs. ui-server: reuse protected policy publication for durable human Settings operations #3608 delivered protected Settings publication through CONTRACT: feat(ui-server): add durable owner trust Settings publication #3622, and fix(ui-server): bind immutable reads to fresh GitHub transport identity #4264 delivered read-bound source identity evidence. ui-server: offer once, origin and session scopes for tainted network approvals #3595’s approval choices, Epic: Security settings manage explicit persistent source trust and destination permissions #3597’s live enforcement and Settings UI, and Epic: repository trust is bound to verified Git acquisition and actual source bytes #3598’s approved-owner trust boundary remain open.
Constraints and non-goals
- G6's purpose stays: content the user did not author must not silently steer data to new destinations or outward actions.
- No unsandboxed fallback, and no global "taint off" switch as the product answer.
- The Epic: chat taint is visible and individually reviewable without clearing later triggers #3596 individual-review implementation permits the authenticated owner to mark one finalized trigger safe. It preserves all other/later triggers and requires complete detector coverage with zero unresolved evidence before normal policy resumes. A human verdict removes no content from provider history; persistent future trust remains separate Epic: Security settings manage explicit persistent source trust and destination permissions #3597/Epic: repository trust is bound to verified Git acquisition and actual source bytes #3598 work.
- Provider history stays append-only. UI cards, taint indicators, reasons and review metadata stay in internal display storage; they do not enter or rewrite the provider conversation. Any necessary provider-facing observation is new tail content.
- Autonomous turns gain nothing; they keep refusing rather than asking.
- Policy schema changes are additive.
Breakdown
The native list has twelve children: eight closed and four open.
- ui-server: a relayed provider request taints the session and is narrowed after taint, so tool order decides whether WebFetch or reranking works #3246 — validated host-relayed provider requests neither taint nor are narrowed (delivered; now a native child here).
- ui-server: an ordinary shell command taints a governed session even when the egress proxy records real connections #3429 — skip the shell-command classifier on proxied turns while keeping real input/connection taint (delivered).
- ui-sdk: a tainted session's new destination is refused silently instead of asking the user #3430 — ask interactively for a tainted session’s new destination (delivered).
- ui-sdk, modules: taint refusals reach the agent as unrelated errors such as "region not supported" #3431 — taint refusals identify their cause; provider error hints preserve the genuine upstream reason (delivered).
- Spike: classify a tainted session's outgoing calls for likely data extraction, with heuristics first and JEV for the ambiguous band #3434 — extraction-classifier spike delivered by merged test(evals): measure an extraction classifier for tainted sessions' outgoing calls (#3434) #4071 (
80e5d372f). The request schema, authored cases, recorded offline/live results and recommendation are on main; runtime admission (ui-server: classify a tainted session's outgoing calls with deterministic extraction heuristics at admission #4088), the ambiguous-band judge (ui-server: ask Jev about the ambiguous extraction band, routed under G2, metered and budgeted #4089) and the evals: requalify the Jev extraction band with extraction cases that reach it before it is enabled by default #4090 requalification study are now delivered. The newer study below found extraction calls admitted above the judge floor; no default activation is authorized. - ui-server: offer once, origin and session scopes for tainted network approvals #3595 — open once/origin/session network-approval slice.
- Epic: chat taint is visible and individually reviewable without clearing later triggers #3596 — individual review, collector/coverage and indicators are delivered; security: prove single-trigger recovery across streaming, restart and two clients #3606 remains for the complete integrated recovery/security outcome.
- Epic: Security settings manage explicit persistent source trust and destination permissions #3597 — open epic for persistent explicit source trust and separate recipient permissions.
- Epic: repository trust is bound to verified Git acquisition and actual source bytes #3598 — open epic for qualified Git acquisition and actual source-byte provenance.
- ui-server: classify a tainted session's outgoing calls with deterministic extraction heuristics at admission #4088 — deterministic extraction-heuristic admission (delivered through CONTRACT: feat(ui-server,common): judge a tainted session's outgoing calls with extraction heuristics at admission (#4088) #4095, squash
a7169cb19). - ui-server: ask Jev about the ambiguous extraction band, routed under G2, metered and budgeted #4089 — G2-routed, metered/budgeted Jev ambiguous band (delivered through CONTRACT: feat(ui-server,common): ask Jev about the extraction heuristics' ambiguous band, routed under G2, metered and budgeted (#4089) #4101, squash
0ef4dff5a). - evals: requalify the Jev extraction band with extraction cases that reach it before it is enabled by default #4090 — extraction-band requalification study delivered through test(evals): requalify the Jev extraction band with extraction cases that reach it (#4090) #4123, squash
764d8d22763a8f925dc29da0b2bd1c6eba5775ac; its measured result argues against default activation at the shipped 0.9 floor.
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
- On a fixture governed session on the egress proxy, a turn that runs ordinary shell commands and relayed provider calls, and reads no untrusted content, records no
taint. - A session that does ingest untrusted content still records it, and a new destination then asks or is refused per the ruling, with the reason visible to both the user and the agent.
- The decision record states the revised trigger and narrowing semantics, with a dated supersession.
- A host no longer needs a hostname-wide
taint.egress.allowentry: with it removed, ordinary governed sessions keep every capability listed above. - The attached classifier implementation and requalification follow-ups (ui-server: classify a tainted session's outgoing calls with deterministic extraction heuristics at admission #4088/ui-server: ask Jev about the ambiguous extraction band, routed under G2, metered and budgeted #4089/evals: requalify the Jev extraction band with extraction cases that reach it before it is enabled by default #4090) meet their own acceptance criteria and preserve G2/G6, existing policy fences, refusal on voice/autonomous turns, and append-only provider history. The research deliverable alone completes none of those runtime outputs, and any default activation requires its recorded maintainer ruling.
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
Merge pull request #3564 from schlessera/epic/3428-session-taint
Merge branch 'main' into epic/1342-turn-path-split
2 remaining items
schlessera commentedon Nov 5, 2026
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.
schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: repaired the G6 heading (governed-writable-workers.md:3865) andinputTaintSource(ingestion-taint.ts:96) citations. No child closed since the 2026-11-08 pass. Labels, breakdown and readiness are unchanged.test(evals): record the live Jev extraction-band run and the recommen…
schlessera commentedon Nov 16, 2026
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.
test(evals): measure an extraction classifier for tainted sessions' o…
schlessera commentedon Nov 16, 2026
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.CONTRACT: feat(ui-server,common): judge a tainted session's outgoing …
schlessera commentedon Nov 17, 2026
Epic state — 2026-11-17 (inspected main
9e7429a91). #4088 is delivered through #4095 (squasha7169cb19) and #4089 through #4101 (squash0ef4dff5a). 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 withoutagent-ready.schlessera commentedon Nov 17, 2026
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.
schlessera commentedon Nov 20, 2026
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.