Skip to content

atlas(python): disclosure-context enforcement parity for the legacy atlas_search.py #12623

Closed

Description

@dezren39

Follow-up to #12404 (disclosure-context enforcement at Atlas output boundaries), deferred there with this issue as the record.

Gap

pkgs/atlas-search/atlas_search.py is the legacy Python CLI the Rust port mirrors. It predates the #9096 classification model and has no disclosure-context concept:

  • It applies only the caller's --max-sensitivity ceiling; nothing intersects a destination context.
  • It does not know the excluded_personal_life disposition: a chunk carrying that label is served like any other content at a sufficient ceiling (the Rust boundary withheld it even before atlas(classification): enforce disclosure-context filters at output boundaries #12404's slice only in the service's chunk path; the Python serves it everywhere).
  • Neighbor expansion and full-message payloads are never classification-checked.

Until the Python is retired, any output produced through it bypasses the boundary enforcement #12404 landed for the Rust paths.

Acceptance

Either:

  • The Python gains the same context semantics as the Rust boundary: a --context flag with the design §4 table (default local-owner for this local tool, matching the Rust get-chunk default), context ∩ ceiling applied at render for results, neighbors, and message payloads, excluded_personal_life never served, unknown/missing labels fail-closed — with tests mirroring crates/atlas-core/tests/disclosure.rs; or
  • The Python is retired/deleted with the retirement recorded here and any remaining callers pointed at the Rust CLI.

Coordination: #12404 owns the context model; the Rust implementation is the reference semantics.

Activity

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

    @developing-today
    Contributor
  3. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 22, 2026
  4. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Claimed task 21058 for #12623 and checkpointed it. Fresh verification: #12623 is OPEN with no hard-stop labels, no matching open PR, and no existing agent notes; related #12404 is OPEN with its separate Rust boundary PR #12626. I am auditing the Python CLI against #12623 acceptance and the Rust reference before selecting a testable slice.

  5. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Landed PR #12633 (branch queue/21058-12623-atlas-disclosure-python, commit 72db26d): the legacy Python CLI gains the #12404 disclosure-context semantics — --context flag with the design §4 table (default local-owner), context ∩ caller-ceiling intersection applied to search candidates, neighbors, full-message payloads, and get-chunk; excluded_personal_life never served; unknown/missing labels fail closed. Verified on the laptop: py_compile OK, 11/11 unittest (6 new disclosure tests mirroring crates/atlas-core/tests/disclosure.rs + 5 pre-existing sweep tests), CLI --help shows the new flags with unchanged defaults. One documented divergence: unclassified content is never served here, stricter than atlas-core's resolve-to-secret-bearing. Awaiting review; not merged.

  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Updated existing PR #12633 with both review fixes (commit 1ce40db): raw chunk classifications now gate chunk/neighbor output, and an exhaustive context × caller × classification model test was added. Laptop checks pass: py_compile, unittest discover 13/13, git diff --check. Requested fresh Codex review; the PR is still open and review/checks are pending. Resume by inspecting fresh review/check state; merge only after review and required checks are acceptable.

  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

    agent-note:v1
    state: parked
    task: 21058
    worker: repo-worker-code
    lane: oc-code-03
    origin: openchamber-scheduled-lane
    Fresh state: PR #12633 remains OPEN at 1ce40db; Codex reviewed this head with no major issues. gh pr checks reports CodeRabbit and Proof skipped. Recorded local checks pass (py_compile, unittest 13/13, git diff --check). Broker disposition requires merged successor PR; did not merge.
    Resume: after runnable checks pass and #12633 merges, verify fresh state and complete the queue task.

  9. added a commit that references this issue on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Closed as implemented.

    Completed: successor PR #12633 merged at 8d696e4. Fresh disposition verification returned merged_verified. Recorded validation: Python compilation passed, unittest discovery 11/11 passed, CLI --help confirmed. Closing the issue and clearing stale queue lifecycle labels.

  11. removed
    status/parked
    queue/parked
    work/assigned
    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:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions