Skip to content

Epic: policy-restricted content reaches only allowed providers #1668

Closed
20 of 20 issues completed
Closed

Description

@schlessera

Part of #1645. Guardrail class: G2 (data exfiltration: data-to-provider routing).

Outcome

Content a governance policy names under a providers rule reaches only the inference and embedding providers that rule allows. A hosted turn whose proven recipient is not allowed cannot read, search, recall or be handed that content through any path; a turn whose recipient is allowed sees it as normal.

Why now

The maintainer asked on 2026-10-11 (#1636) for a policy saying which paths or document types may go to which provider. Hosted agents run on a live shared brain, so a file mask alone is not enough: every retained copy (the search index, history, generated-text caches, backend memory, inbox threads) has to follow the same rule.

Shared context

Constraints and non-goals

Binding rulings

Breakdown

Delivered: #2200 (core embedding eligibility), #2222, #2234, #2239, #2246, #2254, #2260, #2268, #2284 (all-writer topology prerequisites), #2667/#2668 (index directory and denied-turn masks), #2690 (bridge tool refusals), #2691 (autonomous turns), #2692 (cache masks), #2693 (native strict private index), #2694 (selector translation), #2695 (allowed recipients), #2696, #2698, #2700, #2718, #2726 (merged #2797), #2741 (merged #2798), #2816 (merged #2829, squash 80faf6e53), #2832 (startup peer wait, merged #2841, squash e1ab48566), #2833 (checkpoint-bound warm-cache advancement, merged #2856, squash 344ab3a2e), #2836 (cross-process type-folder plans, merged #2842, squash d0697d9cd), #2699 (protected taxonomy executable load set, merged #2886, squash d9f4405ce), #2846 (same-turn masked data/index effects, merged #2897, squash 79bab30b4).

Remaining:

Requirement Child
Generated-text caches move into a masked directory, so allowed turns no longer need cache masks #2725

Definition of done

The 2026-10-25 maintainer completion ruling names #2725 as the remaining required delivery, with the integrated guarantees below preserved. #2701 was detached as a standalone 0.45.0 reproduction investigation, not repaired or waived as a passing test. Native #2865 remains attached as an open fallback-CLI follow-up; this pass preserves that parent and does not claim the follow-up delivered. Do not mistake its attachment for a new release gate overriding the maintainer ruling.

On the qualifying main:

  1. With me/** allowed only for one recipient, a denied turn cannot read me/identity.md through Read, Bash, brain_read_base or another bridge tool, brain search (its private index lacks the document), .git history, the activity record, the generated-text caches, backend memory or resumed sessions, or its inbox thread (under the delivered ui-server: decide whether masked autonomous turns may read their thread's earlier inbox items #2741 admission rules and the ui-server: let inbox items written by a born-masked hosted conversation qualify for masked autonomous turns #2816 follow-up). An integration test covers each path, interactive and autonomous.
  2. A turn whose proven recipient is allowed reads it through the same paths.
  3. brain index drops vectors for a disallowed path and keeps keyword search (core test).
  4. Mutation receipt: skip the mask and the Bash read test fails.
  5. The decision record and docs/supported-inputs.md describe the enforced selectors, the recipient rules and every documented limitation.

Contract impact across the epic: additive policy keys and environment settings, plus the breaking .brain-index/ relocation (#2667) and cache relocation (#2725); each ships in its own CONTRACT: change.

2026-10-24: converted to an epic: the remaining work already lives in its sub-issues (2026-10-23 status). Replaced the stale "filtered copy of brain.db" with the built-from-nothing private index, replaced the blanket unsupported-selector description with the #2694 translation, folded in the #2695 recipient rulings, and mapped each remaining requirement to its child. The dated delivery inventory moved to a comment.

2026-10-24 continued triage at main dc5d3c73282c29a3f0098306d398743ee18ec791: Aligned the #2701 row with its observed invalid-mount-record refusal and unresolved attribution. A partial/empty mountinfo read remains a hypothesis, not an established parent requirement or selected retry mechanism. Existing G2 rulings, children and no epic readiness remain unchanged.

2026-10-24 triage at main af6300478a07379178bd30221a31c0b917df2283: Folded merged #2797/#2726 born-masked lineage and #2798/#2741 origin-thread admission into delivered context. The newly filed #2816 advances this exact G2 outcome; it is the remaining conversation-to-inbox provenance follow-up, not a reopening of the settled policy. Existing type-translation/cache/attribution children remain independent.

2026-10-24 triage at main 80faf6e536a7a4e983f08adcc6a4e9f161581193: verified #2816 is completed by merged #2829 at this exact squash, and inspected the host-bound intake/provenance path, migration 066 and updated G2 contract/decision text. Moved the follow-up into delivered context and removed its remaining-work row. #2699, #2725 and #2701 remain open; the epic remains open without agent-ready. No fresh runtime proof, broader recipient grant or integrated epic completion is claimed.

2026-10-24 triage at main 77f35ef1ba34e4fab7092ada5362ae799852ea24: Added the three already-attached G2 follow-ups #2832/#2833/#2836 to the current breakdown. Their separate startup, private-index architecture and cross-process planning deliverables remain open; no new attachment, merged repair or epic readiness is inferred.

2026-10-24 maintainer reconciliation: #2833 selects a host-owned checkpoint-bound cache with exact policy/masks/recipient identity and complete startup-view reconciliation; unsafe/unproven transitions rebuild cleanly, including physical SQLite byte-leakage checks. Warm-turn target and provider isolation stay binding. #2699 selects fail-closed taxonomy admission (B) for unprotected/unverifiable executable load sets, with the supported-input restriction explicitly approved. These are rulings, not delivered repairs; both children remain open.

2026-10-24 triage at main e1ab485669565554ca6cb61ce5d130303647230f: Verified #2832 is completed by merged #2841 at this exact main. Folded the startup peer wait into delivered context and removed its open-work row: admission waits up to 30 seconds for earlier missing-root peers, preserving cancellation and refusal of unsafe peer states. The separate #2836 process/restart translation persistence and #2833 approved cache implementation remain open; no broad G2 completion is inferred.

2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Verified merged #2856/#2842 and current cache/gate sources; moved #2833/#2836 into delivered context. Exact checkpoint/policy/mask/recipient isolation and safe rebuild remain binding. #2699 and other open G2 work remain; no epic completion is claimed.

2026-10-25 triage at main ab746a434c4ada11734ffea4e208d1d6211f1aca: Folded the verified #2699/#2886 and #2846/#2897 deliveries into the current G2 specification and incorporated the later maintainer completion ruling: #2725 remains required, #2701 is detached/deferred. Preserve #2865’s existing native parent and open follow-up status; no child is reparented, closed or silently treated as delivered. The epic stays open without readiness.

Activity

  1. added
    type: feat
    area: core
    area: ui-sdk
    area: backends
    priority: p2
    agent-ready
    blocked
    security
    on Oct 11, 2026
  2. added this to the 0.42.0 milestone on Oct 12, 2026
  3. schlessera commented on Oct 12, 2026

    @schlessera
    OwnerAuthor

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

  4. removed
    blocked
    on Oct 12, 2026
  5. self-assigned this
    on Oct 16, 2026
  6. modified the milestones: 0.42.0, 0.44.0 on Oct 16, 2026
  7. 78 remaining items

  8. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main 80faf6e536a7a4e983f08adcc6a4e9f161581193: verified #2816 is completed by merged #2829 at this exact squash, and inspected the host-bound intake/provenance path, migration 066 and updated G2 contract/decision text. Moved the follow-up into delivered context and removed its remaining-work row. #2699, #2725 and #2701 remain open; the epic remains open without agent-ready. No fresh runtime proof, broader recipient grant or integrated epic completion is claimed.

  9. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main 77f35ef1ba34e4fab7092ada5362ae799852ea24: Added the three already-attached G2 follow-ups #2832/#2833/#2836 to the current breakdown. Their separate startup, private-index architecture and cross-process planning deliverables remain open; no new attachment, merged repair or epic readiness is inferred.

  10. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24 triage at main e1ab485669565554ca6cb61ce5d130303647230f: Verified #2832 is completed by merged #2841 at this exact main. Folded the startup peer wait into delivered context and removed its open-work row: admission waits up to 30 seconds for earlier missing-root peers, preserving cancellation and refusal of unsafe peer states. The separate #2836 process/restart translation persistence and #2833 approved cache implementation remain open; no broad G2 completion is inferred.

  11. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Verified merged #2856/#2842 and current cache/gate sources; moved #2833/#2836 into delivered context. Exact checkpoint/policy/mask/recipient isolation and safe rebuild remain binding. #2699 and other open G2 work remain; no epic completion is claimed.

  12. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 (maintainer): #2725 is pulled into 0.44.0; #2701 (intermittent mount-record refusals, needs repro) is detached from this epic as a standalone flake in 0.45.0. #1668 closes when #2725 lands.

  13. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main ab746a434c4ada11734ffea4e208d1d6211f1aca: Folded the verified #2699/#2886 and #2846/#2897 deliveries into the current G2 specification and incorporated the later maintainer completion ruling: #2725 remains required, #2701 is detached/deferred. Preserve #2865’s existing native parent and open follow-up status; no child is reparented, closed or silently treated as delivered. The epic stays open without readiness.

  14. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 closure: #2725 landed as 800d965 (#2917), the last 0.44.0 deliverable of this epic per the maintainer's 2026-10-25 ruling. #2701 (intermittent mount-record refusals) and #2865 (the scripts/brain-cli.ts fallback cannot launch in a masked worker; documented by #2699) are detached as standalone 0.45.0 issues. No open sub-issues remain.

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: backendsarea: corearea: ui-sdkarea: ui-serverepicpriority: p0securitytype: feat

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions