Repository navigation
Description
Part of #1636. Guardrail classes: G2 (data exfiltration), G5 (outward actions) and G6 (untrusted input and persistence).
Outcome
Agent workers:
- see no brain secrets;
- reach the network only through a recorded, limitable proxy;
- send policy-restricted paths only to the providers the policy allows.
Outward actions taken in the user's name ask first unless the policy allows them. These include git push, GitHub posts, mail, bookings and payments. A session that ingested untrusted content runs under tighter egress and outward rules, and its steering writes are flagged.
Why now
#1636 ruling 4 asks for egress recording and limits. The maintainer's 2026-10-11 additions add outward actions, untrusted input and data-to-provider routing.
Shared context
- Decision:
docs/decisions/governed-writable-workers.md("Network egress", "Outward actions (G5)", "Untrusted input (G6)", "Data-to-provider routing (G2)", "Settled release defaults"). - The inference relay:
packages/ui-sdk/src/server/inference-relay.ts. Worker host masks:HOST_MASKS,packages/ui-sdk/src/server/worker-launcher.ts:179. - Remote git credentials are separated through the host-owned sync mirror (ui-server: brain sync pushes and fetches through a host-owned mirror, so no worker that reads the brain holds git credentials #1674). Production packaging of the separate-UID helper belongs to
schlessera/brain-hosting-template#18.
Constraints and non-goals
- No TLS interception.
- Inside the brain, nothing is outward.
- This epic does not widen autonomous authority.
- Off-proxy egress tightening for tainted sessions is not available and is documented as such.
Binding rulings
- Governed by default (2026-10-12, ruling): governed is the default even without the separate-UID helper, using mask-only protection with explicit host-status disclosure; the hosting template always supplies the helper.
- Separate-UID broker (2026-10-15, ui-sdk: record the approved cross-uid worker broker architecture #1894): an external broker/supervisor with narrow helper authority and option E best-effort recovery and reclamation limits.
- Egress activation (2026-10-22, #1665 ruling): default egress through the proxy and host relay only on hosts with managed native storage; other hosts keep no-proxy behaviour, reported inactive and documented. The later 2026-11-02 ruling closes backends: run the Claude turn egress relay on hosts without managed native storage #2654 as obsolete because supported hosts require managed native storage; ui-server: fail closed on the unreachable non-managed governed turn path and correct its docs #3314 delivers that cleanup.
/var(2026-10-22, ui-sdk: governed and strict workers can still reach host sockets under /var outside today's masks #2633 option A): governed, strict and maintenance workers mask all of/var, keeping required runtime inputs as explicit read-only binds.- Legacy host fallback (2026-10-22, ui-server: retain unsafe host-writer admission through actual descendant lifetime #2284 option c): never-governed host fallback refuses before spawn while provider folders are active, retained or unknown. A descendant of legacy work admitted before any folder policy existed is a documented limit.
- Pi relay (2026-10-23, on ui-sdk: give governed and strict workers a private network with a recorded, limitable egress proxy #1665): host
getAuthper dispatch, credential-shaped placeholders, exact-origin checks, and refusal before launch for unsupported credentials on managed storage. - Data-to-provider routing rulings live on Epic: policy-restricted content reaches only allowed providers #1668.
Breakdown
Delivered: #1664 (outward approval), #2673 (user-marked untrusted files, merged #3287 f7eb0e498, 0.45.0), #1665 (private network, egress proxy and host relays for Claude and Pi), #1666 (provider keys withheld from workers), #1667 (session taint), #1674 (sync mirror), #1677 and #1894 (separate-UID workers), #2633 (/var masks), #2284, #3792 (credential-free Jev reranking through the host relay, merged #4024 86003b261f, 0.45.0), and the native maintenance prerequisites (#2250, #2268, #2270, #2296, #2297, #2300, #2301, #2312, #2343, #2345, #2347, #2354). #1668 closed after its last required 0.44.0 delivery, #2725 in merged #2917 (800d965ba), under the explicit maintainer completion ruling; the mount-record and masked fallback-CLI investigations remain standalone 0.45.0 follow-ups #2701/#2865, not repaired by that closure.
Remaining:
- ui-server: the Claude runtime's own api.anthropic.com traffic taints every governed turn, blocking WebFetch and reranking #3244 — the runtime-traffic correction is delivered by merged fix(backend-claude): keep the runtime's own traffic off the turn proxy #3249 (
3b9f3e84bb0e33c0458a704462983725436ed8c0, milestone 0.45.0). The issue remains open only for its reserved human verification: a governed subscription-auth turn on managed native storage, with sanitized governance evidence showing no taint before a tool reaches a non-relay host. - Epic: session taint marks real untrusted input, and its restrictions are visible and decidable #3428 — child epic: session taint marks real untrusted input, and its restrictions are visible and decidable. Its current native children own the remaining trigger, disclosure, approval-scope and trust-review work.
The #3792 delivery retains host-held credentials, exact route/origin checks and reranking operation accounting; unpriced spend remains unknown. Its separately scoped maintenance-worker calls remain unchanged.
The #3443 epic batch is merged on main as 559fe7b4125b588c4efbef50cecb7a688e0006a4. It completes #2745's file-bind socket-walk correction, #3314's unreachable non-managed-path cleanup, and supporting #3246's approved provider-relay G5/G6 treatment and provider: true record. Their earlier integration-only and #3461 handoffs are historical. Source inspection confirms mount-point lstat, relay taint exclusion and provider connection tagging; it is not a new runtime qualification.
Closed without delivery: #2654 (relay on hosts without managed native storage) was closed as obsolete under the maintainer's 2026-11-02 ruling (option 1): since #1793 no supported host runs without the native manager, so the relay already covers every governed and strict Claude turn. Its cleanup is #3314.
Definition of done
- The egress measurement table is committed, and egress is recorded and limitable on supported managed-storage hosts for Claude and Pi. Unsupported/inactive conditions remain explicit; ui-server: fail closed on the unreachable non-managed governed turn path and correct its docs #3314 removes the unreachable supported non-managed-host description.
- A governed worker holds no provider credential its own inference does not need.
- Outward actions appear in the journal as irreversible and ask first unless the policy allows them.
- A tainted session runs under the tighter rules and flags its steering writes.
- Epic: policy-restricted content reaches only allowed providers #1668's definition of done is met.
2026-10-24: consolidated to the current outcome, rulings, remaining children and definition of done; #1665, #1666 and #1667 are closed, so the old prerequisite chain and stacked "Current" handoffs are gone. The dated handoffs moved to a comment.
2026-10-24 continued triage at main dc5d3c73282c29a3f0098306d398743ee18ec791: Refreshed HOST_MASKS to its declaration; all managed-storage egress, residual-disclosure, provider-routing and user-marked-input prerequisites remain. Existing child needs and deferred non-managed work stay scoped; no new worker or provider proof.
2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Refreshed moved current-source pointers by inspecting their named anchors. Historical receipts retain their source identities; scope, rulings, priorities and outstanding prerequisites are preserved. No runtime result or readiness is inferred from this navigation repair.
2026-10-24 triage at main e1ab485669565554ca6cb61ce5d130303647230f: Updated the active #2673 handoff to the new approved interaction while preserving all G6 policy/disclosure rulings. The child is implementation-ready; no taint-mark delivery or epic completion is claimed.
2026-10-25 triage at main c670449d3bf1b0639e50ce554d728961f4313add: Reconciled the recorded #1668 completion ruling with the delivered #2725 cache relocation and verified squash ancestry. Removed that closed child from remaining work while preserving standalone follow-ups, the native child history and the other open G6/socket/egress obligations. This does not close the parent or claim a new integrated test run.
2026-10-26 triage at main 2f10e0407769b685083c17a1c90bb43a060b94a0: Verified the moved current-source anchors after the writer and shell-startup changes and refreshed navigation. Historical receipts retain their source identities; scope, rulings and unresolved prerequisites are unchanged. No new runtime qualification is inferred.
2026-11-02 triage: attached #3244, #3246 as native children because their full egress/taint deliverables directly advance this epic’s controlled-egress outcome. Shared package/discovery alone was not the basis. Existing assignments, priorities, dependencies and milestone commitments are preserved. The runtime-traffic investigation and provider-relay policy ruling remain distinct; no fix, policy selection or epic readiness is claimed.
2026-11-02 delivery readback: reconciled #3244’s merged runtime-traffic slice and exact remaining needs: human action from its current body and maintainer receipt. Existing G6 policy and #3246’s separate unresolved ruling remain; this tracker update performs no provider or host verification.
2026-11-03 triage at main 3d3516a0247702560c09c5a0889bdec39b8313fb: Reconciled Remaining with the native children: #2654 closed as obsolete under the 2026-11-02 ruling, #3314 and child epic #3428 added, and #3246's two 2026-11-02 rulings folded in (its needs: decision is gone). #3244's open human verification and #2745 are unchanged. No epic completion is claimed.
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.
2026-11-05 triage at main 35217d283b849b5ef81700d5d4c2ec7486405d12: reconciled the current native open inventory, merged delivery and current source. Historical receipts retain their original identities; no new runtime/browser proof or epic completion is claimed.
Triage 2026-11-09 at main 9c7eb25825fdad5f4485db0df472188805edb450: Attached #3792 only after matching its complete credential-free worker/host-relay deliverable to controlled egress, and reconciled the active breakdown. Existing p0 ranking, initial milestone, child verification and no epic readiness are preserved.
2026-11-16 triage at main 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9: Reconciled #3792/#4024’s completed default-branch delivery. #3244’s publication/human verification and child epic #3428 remain the open native outcomes.
2026-11-17 triage at main 9e7429a914a8aaf5967f074fa9e09984968fc9dc: Verified and refreshed the moved active source pointers. Historical receipts, binding rulings and remaining child outcomes retain their existing scope; this source inspection supplies no new runtime qualification.
Activity
schlessera commentedon Oct 11, 2026
2026-10-11 triage: Classified the native child epic as feat and verified its source/draft provenance. Preserved its independently preparable work and real child prerequisites without inventing a need or epic readiness.
44 remaining items
schlessera commentedon Oct 24, 2026
2026-10-24 triage at main
e1ab485669565554ca6cb61ce5d130303647230f: Updated the active #2673 handoff to the new approved interaction while preserving all G6 policy/disclosure rulings. The child is implementation-ready; no taint-mark delivery or epic completion is claimed.schlessera commentedon Oct 25, 2026
2026-10-25 triage at main
c670449d3bf1b0639e50ce554d728961f4313add: Reconciled the recorded #1668 completion ruling with the delivered #2725 cache relocation and verified squash ancestry. Removed that closed child from remaining work while preserving standalone follow-ups, the native child history and the other open G6/socket/egress obligations. This does not close the parent or claim a new integrated test run.schlessera commentedon Nov 2, 2026
2026-11-02: #2673 has been delivered by #3287 (
f7eb0e498, 0.45.0), so it moves from Remaining to Delivered. The epic stays open for #2745, #2654, #3244 and #3246.schlessera commentedon Nov 3, 2026
2026-11-03 epic state. Open, in this order:
provider: truerecord, and implemented in open PR CONTRACT: fix(ui-server): exempt validated provider-relay requests from session taint (#3246) #3394 on the integration branch.Closed: #2654, as obsolete under the 2026-11-02 ruling.
Note for the maintainer: #3428's breakdown lists #3246, but #3246's native parent is this epic. This pass left it in place.
Merge pull request #3443 from schlessera/epic/1645-egress-controls
schlessera commentedon Nov 5, 2026
Epic state — 2026-11-05 triage. Merged #3443 is an ancestor of inspected main
35217d283b849b5ef81700d5d4c2ec7486405d12, completing the #2745 socket-walk correction, #3314 cleanup and supporting #3246 relay treatment. Current open native children are #3244 (reserved human verification) and #3428 (session safety). The body now reflects those deliveries; no new host/provider test or full-epic completion is claimed.schlessera commentedon Nov 16, 2026
Epic state — 2026-11-16. #3792 is delivered by #4024 (
86003b261f), verified on inspected main, and has moved out of Remaining. The current open native children remain #3244 and #3428; no new provider run or full security outcome is claimed.