Repository navigation
Description
Out of scope
No Git path inference, implicit recipient grant, generic policy reload or retrospective source-wide clearing.
Context
Part of #3597.
prepareTurnEgress (packages/ui-server/src/brain/turn-egress.ts:94) already records independent proxy input occurrences and reads live effective taint. prepareOutwardPlan (packages/ui-sdk/src/server/outward-policy.ts:47) reads a live callback; inputTaintSource (packages/ui-server/src/activity/ingestion-taint.ts:99) is the ingestion boundary. #3595 tracks unmerged scoped-network approvals, not persistent trust; preserve current legacy grants and any advertised scoped-grant capability rather than assuming that work is released.
Read the reviewed implementation design and requested gpt-6-astra review/disposition. The plan and ADR are delivered at docs/plans/reviewable-session-safety.md and docs/decisions/session-safety-reviews.md. Source anchors were verified at main cb4236234. ROADMAP.md “What binds future work”, the provider-history decision, G6 and the protected policy-writer boundary apply.
Scope
- Apply incoming-content and explicit restricted-recipient capabilities independently to verified origin/tunnel provenance.
- Fence active admissions on a live trust revision after asynchronous waits; make successful rule removal visible before reporting enforced removal.
- Bind auto-trusted exposure decisions to rule/hash/revision and split or interrupt source streams crossing removal boundaries.
Acceptance criteria
- A verified future source match avoids a new unresolved input trigger; a source-only rule still asks before sending to that endpoint when another source tainted the chat.
- An explicitly reviewed recipient capability skips only the taint-network card and remains separate from ui-server: offer once, origin and session scopes for tainted network approvals #3595 once/origin/session grants.
- Redirects, different ports/subdomains, opaque CONNECT vs HTTPS and concurrent unrelated traffic do not borrow a grant.
- Removal/new-trigger/async-approval races revalidate immediately before irreversible dispatch; later streaming input cannot retain a removed source grant.
- Deny/allowlist, byte budgets, provider credentials and outward writes still enforce, and historical verdicts remain unchanged.
Verification
Real loopback proxy and bridge fixtures, write-worker race injection, active-turn rule changes, both keyless provider-history guards and guard-breaking mutations.
Every behavioral implementation needs meaningful failing-first/mutation receipts and the relevant real runtime/browser proof. Run contribution preflight before opening a PR; missing/cancelled selected hosted proof is not green. No tests may require an API key or external network.
Contract impact
Implement the reviewed optional schema/API/history additions and the relevant effective-taint behavior. Update integration contracts and API reports in the same implementing commit with CONTRACT metadata and a minor changeset. The G6 default/coverage and effective-state semantic break follows the recorded breaking-before-1.0 ruling and breaking label; preserve mixed-version fallback.
Triage 2026-11-05 at main 35217d283b849b5ef81700d5d4c2ec7486405d12: verified source anchors and the published plan/review, retained all still-open output dependencies and existing native parent, and classified this requested but unscheduled work as priority: p2 without inventing a release milestone. The brief is complete with no independent needs gap; agent-ready may coexist with blocked, and this issue remains unpickable until its named outputs exist.
2026-11-20 dependency reconciliation: #3608 delivered through #3622, squash 65883f2d5332220db8a17fd1ddba0f926a1888be, with passing exact-candidate run 44748884654 and automatic main run 44751827563; actual checkout identities and squash parent/tree verified. All three active prerequisites (#3607, #3608, #3602) are delivered and closed; removed their active declarations and the blocked label. Original scope and acceptance criteria are unchanged; this reconciliation claims no implementation of this issue.
2026-11-20 readiness refresh: origin/tunnel enforcement is independent of still-open repository transport #3613 (current identity slice #4264) and repository-rule enforcement #3615. This issue enables only exact web-origin/explicit-tunnel source and recipient capabilities; repository enforcement stays unavailable. No repository exemption or Git inference is included. The maintainer pre-1.0 semantic-break ruling in docs/decisions/session-safety-reviews.md applies.
Delivery and qualification — 2026-11-21
Delivered #3609 through PR #4270 (squash edf1a3b), admission-lock recovery #4405 (6baa116), and required socket-isolation fix #4409 (a09942a). All three squashes are ancestors of remote main. The final squash has parent 6baa116 and tree e6862593338dbb8158e352156995eb9c495034ec, exactly matching its qualified candidate checkout 9537702 from candidate run 44901588581.
Automatic push run https://github.com/schlessera/brain-kit/actions/runs/44903045249 completed successfully on that exact squash/tree. All 17 selected jobs passed: metadata/changeset, verify, pack, four unit shards, runtime, runtime_host, three browser shards, two layout shards, captures, endurance and the integrated aggregate. Actual verification/packaging checkout logs and all resource receipts match the squash. No selected job failed, was cancelled, was skipped or was missing.
The only skipped jobs are determinism and browser_determinism. These are expected push-event omissions, not retained runtime passes: scripts/ci-plan.ts:322-325 explicitly disables changed-test repetition for integrated main pushes, and .github/workflows/ci.yml:656 and :720 require the corresponding selection output to be true. The final metadata log reports cadence integrated; the selected aggregate passed. Repetition is pre-merge proof; it is not selected again on this main event.
Final runtime_host job 136843142232 passed every native cell. Claude uid1000 first/warm acknowledgement was 651.048 / 3595.219 ms; durable acknowledgement was 662.496 / 3601.223 ms. Claude uid0 warm acknowledgement/durable acknowledgement was 3597.572 / 3606.692 ms. Pi uid1000 warm was 4058.832 / 4060.669 ms; Pi uid0 cells were 4130.955 / 4137.789 ms and 4158.034 / 4161.946 ms. All completed under the ten-second bound. Artifact runtime-host-proof id 14706574908 retains the phase results. Hosted unit logs explicitly pass both provider-history guards, all ten installed-Claude delivery/retention cases, Pi native auth qualification, all three FULL-writer peer/independent-input variants, and the deterministic stale-socket/cancellation tests. No invalid local installed-Claude receipt is used.
Acceptance reconciliation:
- Verified future HTTP-origin/explicit-tunnel source matches retain immutable admission evidence and add no unresolved trigger; source-only trust still asks for recipient approval after independent taint. The origin-trust and session projection tests pass.
- Explicit recipient capability skips only the Network card; it does not bypass outward permission or other controls, and source trust does not manufacture a session recipient grant. Legacy grants remain compatible and explicit owner approvals remain independent.
- Exact scheme/host/port and real transport kind distinguish redirects, subdomains, other ports, managed HTTPS and opaque CONNECT. Concurrent card peers cannot borrow independent evidence or approval; the real FULL-writer peer test now passes on automatic main.
- Source removal, new input, asynchronous cards and durable-write waits revalidate at the final send fence. Rule-instance identity and per-chunk checks retire removed source streams, including independent publisher removal/recreation. Tests and restored guard mutations cover those orders.
- Deny/allowlist, shared byte ceilings, host-held provider credentials, outward writes and immutable historical verdicts retain their own enforcement. Full selected proxy/relay/history/browser/native proof passes. Per-operation HTTP sockets eliminate the required ui-server: completed egress cleanup resets a reused same-origin socket #4408 failure without retries, duplicate application sends or skipped fences.
The coordinator now reports red:false, open:null, last action clear on run 44903045249. Scoped runtime incident #4406 is closed, and #4408 is closed by #4409. Earlier red main runs remain failed historical evidence; they are not relabelled green. The original issue criteria are fulfilled. Repository identity/rule enforcement remains outside this origin/tunnel issue (#3613/#3615); accepted fail-closed/performance/proof follow-ups #4351, #4352, #4404 and #4407 and unrelated flake/receipt follow-ups remain tracked without waiving an original acceptance criterion.
Milestones read back as 0.45.0 on #3609, #4408, #4406 and all three delivering PRs. Closing #3609 permits removal of its satisfied dependency from #3610 and #3611; neither follow-on implementation is claimed here.
2026-11-21 completion reconciliation: checked all five original criteria against the delivered origin/tunnel implementation and complete selected hosted main proof, refreshed the current source anchor, and replaced the superseded draft-candidate status. No original criterion or repository-enforcement exclusion changed.
Activity
schlessera commentedon Nov 20, 2026
Unblocked: #3607, #3608, #3602 are closed, so
scripts/sync-project.tsis removing theblockedlabel.schlessera commentedon Nov 20, 2026
2026-11-20: all declared prerequisites (#3607, #3608, #3602) are delivered and closed. #3608's squash
65883f2d5332220db8a17fd1ddba0f926a1888behas passing exact-candidate and automatic-main qualification with actual checkout proof. Removed the satisfied dependency declarations and blocked label. Original scope/criteria remain; no runtime implementation is claimed here.schlessera commentedon Nov 20, 2026
Claim
origin-3609-20261120onfeat/3609-exact-origin-trust, starting from maincb4236234. All declared prerequisites are delivered; full issue/epic outcomes and binding safety/provider-history decisions reviewed. Verified and refreshed the three source anchors. Scope is exact web origins and explicit tunnel authorities; repository identity/read qualification and rule application remain #3613/#3615. Current collision scan is in progress; any overlapping proof closure will be recorded before submission. No existing historical trigger is cleared.schlessera commentedon Nov 20, 2026
Implementation candidate is draft #4270 at
6693089bb32fa6566e9c2e0a6ea89b87424f1879. Folded current scoped implementation and actual local receipts into the body. Exact-head preflight is green, and fresh independent review is requested through the coordinating parent. Complete selected hosted provider-history/native/runtime and eventual main qualification remain outstanding; the issue stays open and the claim remains active. Repository enforcement stays #3613/#3615.CONTRACT: feat(ui-server): enforce prospective exact-origin trust (#4270
schlessera commentedon Nov 21, 2026
PR #4270 merged as edf1a3b. Verified squash parent 134c0ee and tree 0ee7a15495b841b76cb2a3ff99d0e9c67e0f481f exactly match the qualified candidate checkout b33567b (run https://github.com/schlessera/brain-kit/actions/runs/44891660997). All selected candidate proof passed, including all eight unit shards, packaging, verification and changed-test/browser repetitions. Hosted logs explicitly show all ten installed-Claude delivery/retention cases, the Claude provider-history guard, all five Pi native-host-auth qualification cases and all four owner-revocation cases passing. PR and issue milestones read back as 0.45.0. The automatic squash main run https://github.com/schlessera/brain-kit/actions/runs/44893243438 is still in progress; leaving this issue open until its selected heavy/native categories and final aggregate qualify. Accepted deferrals remain in their filed follow-ups; no original criterion is waived.
schlessera commentedon Nov 21, 2026
Automatic squash main run 44893243438 has completed with failure. Its only failed execution category is runtime_host (job 136813739319): Claude uid1000 warm acknowledgement took 28,320 ms because the new turn-start trust refresh waited behind automatic indexing. The integrated aggregate also failed; all four unit shards, runtime, all three browser shards, both layout shards, captures, endurance, verify and pack passed. Determinism/browser-determinism are intentionally skipped on main. Binding triage fixes this regression through new draft PR #4405 at bcbc515; the merged #4270 branch is untouched. The remaining changed-policy contention case is filed as #4404 (p2, 0.45.0). #3609 stays open pending fix review and hosted recovery qualification.
schlessera commentedon Nov 21, 2026
Required enforcement follow-up #4408 is filed at p1, milestone 0.45.0: successful HTTP lifecycle cleanup can reset a socket already reused by a same-origin peer. The [200,502] FULL-writer regression reproduces at the #4405 parent; that refresh fix does not execute in the failing fixture. #3609 must remain open after #4405 lands until #4408 is independently reviewed, delivered and qualified. Existing origin/recipient acceptance criteria are not waived.
schlessera commentedon Nov 21, 2026
Delivered #3609 through PR #4270 (squash edf1a3b), admission-lock recovery #4405 (6baa116), and required socket-isolation fix #4409 (a09942a). All three squashes are ancestors of remote main. The final squash has parent 6baa116 and tree e6862593338dbb8158e352156995eb9c495034ec, exactly matching its qualified candidate checkout 9537702 from candidate run 44901588581.
Automatic push run https://github.com/schlessera/brain-kit/actions/runs/44903045249 completed successfully on that exact squash/tree. All 17 selected jobs passed: metadata/changeset, verify, pack, four unit shards, runtime, runtime_host, three browser shards, two layout shards, captures, endurance and the integrated aggregate. Actual verification/packaging checkout logs and all resource receipts match the squash. No selected job failed, was cancelled, was skipped or was missing.
The only skipped jobs are determinism and browser_determinism. These are expected push-event omissions, not retained runtime passes: scripts/ci-plan.ts:322-325 explicitly disables changed-test repetition for integrated main pushes, and .github/workflows/ci.yml:656 and :720 require the corresponding selection output to be true. The final metadata log reports cadence integrated; the selected aggregate passed. Repetition is pre-merge proof; it is not selected again on this main event.
Final runtime_host job 136843142232 passed every native cell. Claude uid1000 first/warm acknowledgement was 651.048 / 3595.219 ms; durable acknowledgement was 662.496 / 3601.223 ms. Claude uid0 warm acknowledgement/durable acknowledgement was 3597.572 / 3606.692 ms. Pi uid1000 warm was 4058.832 / 4060.669 ms; Pi uid0 cells were 4130.955 / 4137.789 ms and 4158.034 / 4161.946 ms. All completed under the ten-second bound. Artifact runtime-host-proof id 14706574908 retains the phase results. Hosted unit logs explicitly pass both provider-history guards, all ten installed-Claude delivery/retention cases, Pi native auth qualification, all three FULL-writer peer/independent-input variants, and the deterministic stale-socket/cancellation tests. No invalid local installed-Claude receipt is used.
Acceptance reconciliation:
The coordinator now reports red:false, open:null, last action clear on run 44903045249. Scoped runtime incident #4406 is closed, and #4408 is closed by #4409. Earlier red main runs remain failed historical evidence; they are not relabelled green. The original issue criteria are fulfilled. Repository identity/rule enforcement remains outside this origin/tunnel issue (#3613/#3615); accepted fail-closed/performance/proof follow-ups #4351, #4352, #4404 and #4407 and unrelated flake/receipt follow-ups remain tracked without waiving an original acceptance criterion.
Milestones read back as 0.45.0 on #3609, #4408, #4406 and all three delivering PRs. Closing #3609 permits removal of its satisfied dependency from #3610 and #3611; neither follow-on implementation is claimed here.
CONTRACT: chore: merge main into epic/4278-host-overhead (#4435)
CONTRACT: feat: measure a hosted turn's host overhead span by span an…