You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
atlas(python): disclosure-context enforcement parity for the legacy atlas_search.py #12623
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.
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.
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.
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.
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.
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.
Activity
developing-today commentedon Nov 22, 2026
CODE-4646
dezren39 commentedon Nov 22, 2026
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.
atlas(python): enforce disclosure-context ceilings in atlas_search.py (…
dezren39 commentedon Nov 22, 2026
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.
dezren39 commentedon Nov 22, 2026
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.
dezren39 commentedon Nov 22, 2026
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 checksreports 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.
Merge pull request #12633 from developing-today/queue/21058-12623-atl…
dezren39 commentedon Nov 22, 2026
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.