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(search): full-content payloads can carry sibling-chunk text above the served chunk's classification #12624
--with-message and hydration attach the FULL parent-message text to a served chunk. #12404 gates those payloads on the served chunk's own classification and withholds them entirely on public-surface (full-message text cannot be filtered at chunk granularity there).
Residual
Under fleet-internal, hosted-per-user, and local-owner, the payload is the whole message — which spans every chunk of that message. Chunk classification is per-chunk (classification records compose per embed), so a message can mix classifications: a served personal chunk's message payload can carry text belonging to a secret-bearing sibling chunk, or to an excluded_personal_life sibling, across the boundary the served chunk itself passed.
Whether real corpus messages actually mix classifications is an empirical question the fix should answer first (measure: how many messages have chunks whose effective classifications differ, and by how much).
Acceptance
Measurement recorded on this issue: prevalence of mixed-classification messages in the corpus.
A leak test with a mixed-classification message: the payload attached to the lower-classified chunk either contains only spans whose chunks pass the caller's grant ∩ context intersection (span-level filtering), or is withheld when any sibling chunk fails the intersection (whole-payload withholding) — the chosen rule implemented and documented in crates/atlas-core/src/search.rs.
excluded_personal_life sibling text never crosses under any context, including local-owner.
Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)
Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)
Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)
Span-level filtering for full-content payloads is implemented: PR #12630 (unmerged, awaiting Felix's review).
Measurement (acceptance item 1)
Measured on the publish corpus (atlas-publish-v2-2026-10-31.db, the Turso publish source; read-only SQL on the laptop, 2026-11-22), using the detail row's effective classification (chunk sensitivity, else session label):
107,639 chunks over 71,551 messages with chunks; 6,044 messages are multi-chunk (max 1,731 chunks in one message).
Chunk sensitivity distribution: personal 99,926, local-only 6,941, secret-bearing 772; no chunk is unlabeled, shareable, or excluded_personal_life.
Mixed-classification messages: 0. Per-chunk sensitivity is uniform within every message; no message straddles any context ceiling (public/hosted/fleet crossings all 0).
So the residual is not a live leak today: per-chunk sensitivity is currently stamped uniformly per message. The filter lands as the guard for when per-embed classification (#12408) starts diverging inside a message. A companion probe over 300 sampled multi-chunk messages confirmed the property the span rule relies on: every chunk's text occurs verbatim in its message text, findable in chunk order (300/300) — and that chunks cover only ~36% of message text, i.e. the chunker is selective.
The implemented rule (documented in crates/atlas-core/src/search.rs)
Chosen rule: span-level filtering (the acceptance's first option). At render time, for --with-message and hydration payloads under the non-public contexts, every chunk of the payload's message is classified from its detail row and tested with the same grant ∩ context intersection the #12404 disclosure pass applies to candidates. A failing chunk's text is a withheld span: every occurrence of it in the message text is omitted (omission is the codebase's withholding idiom — no redaction marker exists in atlas or fleet-search — and the count is recorded in the envelope notes). A chunk with no detail row fails closed. excluded_personal_life spans never cross under any context, including local-owner (verified by test: for the owner the secret-bearing span crosses, the excluded span does not).
Edges, both deliberate and documented in the code:
A failing chunk whose text cannot be located in the message text makes the payload unfilterable → the payload is withheld whole (design §4), counted in the notes.
Seam: new SearchBackend::message_chunks (windowless SQL in the local/Turso backends; wide-window neighbors default for wrappers/stubs). No new dependencies.
Pass-after: disclosure suite 18/18; cargo test -p atlas-core -p atlas-proto -p atlas-search green; cargo check --workspace --all-targets clean; fmt clean; no new clippy warnings. The served chunk's own text and admitted sibling spans are asserted still crossing (no over-withholding).
What remains
Nothing in this issue's acceptance list. Out of scope, as for #12404: the shard path's tier content-store hydration (#6664) builds payloads outside search.rs. Claim released free on Felix's review/merge.
Released by felix (outcome: free). Span-level filtering landed in PR #12630 (unmerged, for Felix review). Measurement on the issue: 0 mixed-classification messages in the publish corpus today — guard for #12408 divergence, not a live leak. Fail-before 5 leak tests failed by leaking at base f026268; pass-after disclosure 18/18 and full atlas suites green.
Merged: #12630 — and this issue's acceptance list is fully met, so it closes on this note.
What landed: at render time, every full-content payload (--with-message and hydration, non-public contexts) passes through span_filter_payload, which classifies every chunk of the payload's message from its detail row and applies the same disclosure test as the #12404 pass. A failing chunk's text is omitted at every occurrence in the served text, tallied in a SpanRecord and noted in the envelope in the #12404 idiom (omission, not a redaction marker — no marker idiom exists in atlas, and #12404's withholding idiom is omission + count). A failing chunk whose text cannot be located in the message text withholds the payload whole, per design section 4. The new SearchBackend::message_chunks seam enumerates a message's chunks (windowless SQL in the local/Turso backends; a wide-window neighbors default for wrappers/stubs). No new dependencies.
The measurement the issue asked for is recorded on the progress note: on the publish corpus (107,639 chunks; 6,044 multi-chunk messages), mixed-classification messages = 0 — per-chunk sensitivity is currently stamped uniformly per message, so no live message straddles a context ceiling today. This slice is the guard for when #12408's per-embed classification starts diverging inside a message, not a live-leak fix; the probe also verified chunk texts occur verbatim in message text in 300/300 sampled multi-chunk messages, the property span location relies on.
Evidence: fail-before at base — the 5 new disclosure tests all failed by leaking (a secret-bearing span and an excluded span crossed under fleet-internal/hosted/local-owner contexts); pass-after disclosure 18/18, re-run by Felix at review, with admitted text asserted still crossing (no over-withholding) and excluded spans barred under every context including local-owner. Full atlas suites green.
Two documented edges, accepted as recorded behaviour rather than silently: (1) text belonging to no chunk (~64% of message text — the chunker is selective) rides on the served chunk's gate; failing it closed would gut payloads for the uniform common case. (2) Out of scope, as in #12404: the shard path's tier content-store hydration (#6664) builds payloads outside search.rs.
Activity
developing-today commentedon Nov 22, 2026
CODE-4647
dezren39 commentedon Nov 22, 2026
Picked up by
felix— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilefelixposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 22, 2026
Picked up by
felix— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilefelixposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 22, 2026
Picked up by
felix— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilefelixposts progress markers; after 30 minutes of silence any other worker may pick this up.)dezren39 commentedon Nov 22, 2026
agent-note:v1
event: progress
by: agent felix (kind muse, Muse sandbox seat; queue task 21059)
at: 2026-11-22
Span-level filtering for full-content payloads is implemented: PR #12630 (unmerged, awaiting Felix's review).
Measurement (acceptance item 1)
Measured on the publish corpus (
atlas-publish-v2-2026-10-31.db, the Turso publish source; read-only SQL on the laptop, 2026-11-22), using the detail row's effective classification (chunk sensitivity, else session label):personal99,926,local-only6,941,secret-bearing772; no chunk is unlabeled,shareable, orexcluded_personal_life.So the residual is not a live leak today: per-chunk sensitivity is currently stamped uniformly per message. The filter lands as the guard for when per-embed classification (#12408) starts diverging inside a message. A companion probe over 300 sampled multi-chunk messages confirmed the property the span rule relies on: every chunk's text occurs verbatim in its message text, findable in chunk order (300/300) — and that chunks cover only ~36% of message text, i.e. the chunker is selective.
The implemented rule (documented in
crates/atlas-core/src/search.rs)Chosen rule: span-level filtering (the acceptance's first option). At render time, for
--with-messageand hydration payloads under the non-public contexts, every chunk of the payload's message is classified from its detail row and tested with the same grant ∩ context intersection the #12404 disclosure pass applies to candidates. A failing chunk's text is a withheld span: every occurrence of it in the message text is omitted (omission is the codebase's withholding idiom — no redaction marker exists in atlas or fleet-search — and the count is recorded in the envelope notes). A chunk with no detail row fails closed.excluded_personal_lifespans never cross under any context, includinglocal-owner(verified by test: for the owner the secret-bearing span crosses, the excluded span does not).Edges, both deliberate and documented in the code:
Seam: new
SearchBackend::message_chunks(windowless SQL in the local/Turso backends; wide-windowneighborsdefault for wrappers/stubs). No new dependencies.Evidence (venue: sandbox)
f026268cb(atlas(classification): enforce disclosure-context filters at output boundaries (#12404) #12626 merge): the 5 new leak tests incrates/atlas-core/tests/disclosure.rsall failed by leaking — the full mixed payload, secret-bearing and excluded spans included, crossed under fleet-internal / hosted-per-user / local-owner, and the unfilterable payload was served whole. The 13 pre-existing atlas(classification): enforce disclosure-context filters at output boundaries #12404 tests passed.cargo test -p atlas-core -p atlas-proto -p atlas-searchgreen;cargo check --workspace --all-targetsclean; fmt clean; no new clippy warnings. The served chunk's own text and admitted sibling spans are asserted still crossing (no over-withholding).What remains
Nothing in this issue's acceptance list. Out of scope, as for #12404: the shard path's tier content-store hydration (#6664) builds payloads outside
search.rs. Claim releasedfreeon Felix's review/merge.dezren39 commentedon Nov 22, 2026
Released by
felix(outcome: free). Span-level filtering landed in PR #12630 (unmerged, for Felix review). Measurement on the issue: 0 mixed-classification messages in the publish corpus today — guard for #12408 divergence, not a live leak. Fail-before 5 leak tests failed by leaking at base f026268; pass-after disclosure 18/18 and full atlas suites green.Merge pull request #12630 from developing-today/felix/12624-span-filter
dezren39 commentedon Nov 22, 2026
agent-note:v1
event: merged
by: agent felix (kind muse, Muse sandbox seat; queue task 21059)
at: 2026-11-22
Merged: #12630 — and this issue's acceptance list is fully met, so it closes on this note.
What landed: at render time, every full-content payload (--with-message and hydration, non-public contexts) passes through span_filter_payload, which classifies every chunk of the payload's message from its detail row and applies the same disclosure test as the #12404 pass. A failing chunk's text is omitted at every occurrence in the served text, tallied in a SpanRecord and noted in the envelope in the #12404 idiom (omission, not a redaction marker — no marker idiom exists in atlas, and #12404's withholding idiom is omission + count). A failing chunk whose text cannot be located in the message text withholds the payload whole, per design section 4. The new SearchBackend::message_chunks seam enumerates a message's chunks (windowless SQL in the local/Turso backends; a wide-window neighbors default for wrappers/stubs). No new dependencies.
The measurement the issue asked for is recorded on the progress note: on the publish corpus (107,639 chunks; 6,044 multi-chunk messages), mixed-classification messages = 0 — per-chunk sensitivity is currently stamped uniformly per message, so no live message straddles a context ceiling today. This slice is the guard for when #12408's per-embed classification starts diverging inside a message, not a live-leak fix; the probe also verified chunk texts occur verbatim in message text in 300/300 sampled multi-chunk messages, the property span location relies on.
Evidence: fail-before at base — the 5 new disclosure tests all failed by leaking (a secret-bearing span and an excluded span crossed under fleet-internal/hosted/local-owner contexts); pass-after disclosure 18/18, re-run by Felix at review, with admitted text asserted still crossing (no over-withholding) and excluded spans barred under every context including local-owner. Full atlas suites green.
Two documented edges, accepted as recorded behaviour rather than silently: (1) text belonging to no chunk (~64% of message text — the chunker is selective) rides on the served chunk's gate; failing it closed would gut payloads for the uniform common case. (2) Out of scope, as in #12404: the shard path's tier content-store hydration (#6664) builds payloads outside search.rs.