Skip to content

atlas(classification): enforce disclosure-context filters at output boundaries #12404

Open

Description

@dezren39

Scope\nImplement #9096's context filter at Atlas query and every outbound result boundary, coordinating with #9092 search surfaces and #9099 query records.\n\n## Acceptance\n- Implement fleet-internal, hosted-per-user, public-surface, and local-owner eligibility rules; unknown outbound context fails closed.\n- Enforce at final serialization for snippets, metadata, citations, cached payloads, and generated-output references, regardless of caller clearance.\n- Excluded personal-life items are never returned; grants and context ceilings intersect and cannot widen each other.\n- Tests prove that high-clearance search cannot publish personal/local-only/secret content and that shareable content remains grant-scoped.\n\nDesign: doc/2026-11-21T21-32-00Z_design_atlas_classification_model_v1.md (#9096).

Activity

  1. added
    kind/feature
    on Nov 22, 2026
  2. developing-today commented on Nov 22, 2026

    @developing-today
    Contributor
  3. added
    epic/atlas-program
    on Nov 22, 2026
  4. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Parked after checking the issue and dependent workstreams. The requested filter spans Atlas search and all serialization paths, but no Atlas search/indexer or disclosure-context implementation surface is present in this checkout; #9092 remains an open large search workstream and #9099 is blocked. The design is still documented in open PR #12399. Resume when the owning Atlas implementation repo and its query/output serialization APIs are available, then land a test-first final-serialization filter slice; no code changes were made.

  5. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 22, 2026
  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up task 21010 in lane oc-code-08 to revalidate #12404 and its Atlas dependencies. Fresh GitHub state confirms #12404 open with no hold labels; #9092 open, #9099 blocked, and design PR #12399 open. Prior checkpoint reports no Atlas search/output implementation surface in this checkout; confirming whether that remains the concrete blocker before closing this claim.

  7. added
    queue/parked
    status/parked
    and removed
    status/in-progress
    queue/claimed
    on Nov 22, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Parked task 21010 pending the agreed classification/query-output contracts. Fresh inspection confirms Atlas search and result-cache surfaces exist, but the request/schema has no disclosure-context field or excluded-personal-life disposition; #9095 and #9092 remain open, #9099 is blocked, and design PR #12399 is still open. Resume when #9095 settles the classification fields and #9092/#9099 expose context on search/query records. Worktree: /home/user/git/fleet/21010-12404-disclosure-context; branch: queue/21010-12404-disclosure-context. No source changes were made.

  9. added
    queue/claimed
    on Nov 22, 2026
  10. 93 remaining items

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress from felix: still working

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress from felix: still working

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Progress (felix, queue task 21010): the enforcement slice is landed as PR #12626 — not merged, left for review (disclosure-control code; the filter point is run_search_impl's disclosure pass + the new crates/atlas-core/src/disclosure.rs).

    What landed. The #9096 §4 context table is implemented (fleet-internal→local-only, hosted-per-user→personal, public-surface→shareable, local-owner→secret-bearing) and intersected with the caller ceiling at the single output-boundary filter point in atlas-core: grant ∩ context ∩ not-excluded, applied to flat results, grouped sessions (chunks and hit_count), raw branch rows, neighbor expansion (per-neighbor classification), --with-message/hydration payloads (withheld outright on public-surface), and get-chunk (withheld reads as "not found"). Missing/unknown labels fail closed to secret-bearing; unstated context fails closed to public-surface at the library default, with each front-end stating its surface's context (CLI search fleet-internal, CLI get-chunk local-owner, service stated-context fail-closed / default fleet-internal). The service CacheKey now includes the resolved context, so cached/coalesced payloads can't cross contexts. SearchRequest.context added (additive).

    Evidence. Base demonstration (stub backend, maximal caller ceiling) reproduced three leaks: secret-bearing + excluded chunks served in results, a secret-bearing neighbor served through --expand, and an excluded chunk served by id. New tests/disclosure.rs (13 leak tests, one per boundary class) + disclosure proptests + a server cache-separation test all pass; full atlas-core/atlas-proto/atlas-search suites green (357 tests, sandbox). No new dependencies.

    Coordination / prerequisites. #12408 (per-embed classification records) landed 2026-11-22 (6691b54) and unblocked this slice; classification records are consumed via the new EffectiveClassification::from_parts bridge where detail rows carry the legacy label. #9099 still owns the query-trace fields (design §10), so the trace record gains no context field here — withheld candidates already record as considered-but-not-served. #9092 (search v1) is still open but nothing here builds on it.

    Deferred boundaries, filed + enqueued in this pass: hosted Worker stated context + cache keying → #12622 (queue task 21057); legacy Python parity → #12623 (task 21058); span-level filtering of full-content payloads (residual found in this slice) → #12624 (task 21059).

    This issue stays open for those follow-ups. Claim released for the next lane once review dispositions PR #12626.

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: free). Slice landed as PR #12626 (unmerged, awaiting Felix review): disclosure-context enforcement at the atlas-core output boundary + CLI/service wiring + cache keying. Deferred boundaries filed+enqueued: #12622 (Worker), #12623 (Python), #12624 (span filtering). Progress note comment 7082061604.

  15. added
    queue/queued
    and removed
    queue/claimed
    work/assigned
    on Nov 22, 2026
  16. added a commit that references this issue on Nov 22, 2026
  17. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: merged
    by: agent felix (kind muse, Muse sandbox seat; queue task 21010)
    at: 2026-11-22

    The disclosure-context enforcement slice is merged: #12626

    What landed: DisclosureContext in atlas-core carrying the #9096 section 4 ceiling table (fleet-internal -> local-only, hosted-per-user -> personal, public-surface -> shareable, local-owner -> secret-bearing). In run_search_impl, after fusion and before any rendering, every ranked candidate is classified and admitted only if grant-intersect-context permits; missing/unknown labels fail closed to secret-bearing, an absent/unknown context resolves to public-surface, and excluded_personal_life is ineligible in every context. Every rendered shape draws only from the admitted set — flat, grouped (chunks and hit_count), raw branch rows, snippets, session metadata (withholding shown as a count only), neighbor expansion (previously unchecked — it leaked at base), --with-message and hydration payloads (withheld outright on public-surface), get-chunk (a withheld read is indistinguishable from not-found), and the service's cached results, whose CacheKey now includes the resolved context so dedupe can never cross contexts.

    Felix's review read the filter point and disclosure.rs directly and re-ran the leak suite: 13/13 boundary tests pass, including public output filtered for a fully-cleared caller and the intersection proptests (min, never exceeding either side). Fail-before at base was demonstrated with a stub backend: at a maximal caller ceiling, base served a secret-bearing chunk in results, attached it as a neighbor to a shareable hit, and returned an excluded chunk's text from get-chunk. Full suites 357 passed; no new dependencies.

    Deferred, each with its own issue and queue task: #12622 the hosted Worker (TS) stated context + cache keying (task 21057); #12623 legacy Python atlas_search.py parity (task 21058); #12624 span-level filtering of full-content payloads (task 21059) — the one residual found in this slice: under non-public contexts a message payload is gated on the served chunk but spans sibling chunks that may classify higher (public-surface is fully covered by outright withholding). The query-trace context field belongs to #9099 per design section 10. This issue stays open for those.

  18. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done
    task: 21010
    lane: oc-code-03
    worker: repo-worker-code
    origin: openchamber-scheduled-lane

    Claimed task 21010 and revalidated fresh. The requested implementation was already merged by the preceding task owner as PR #12626 at f026268 (merged 2026-11-22T16:26:10Z), so no duplicate changes were made. The merge note reports 13 boundary tests and 357 suite tests passing; current PR checks show CodeRabbit failed and Proof skipped. Follow-ups are tracked as #12622 (queue task 21057), #12623 (21058), and #12624 (21059). Issue #12404 stays open for those follow-ups.

  19. removed
    status/parked
    queue/queued
    queue/parked
    on Nov 22, 2026
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

    epic/atlas-programkind/featurestatus:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions