Authorization Before Context: A Model-Neutral Audience Boundary Against Cross-Audience Memory Leakage in Agentic Systems
Organizations: Independent Researcher
Abstract
A personal language agent learns a fact from one audience and may later place it in the prompt it assembles for another. This memory-to-context step is an attack surface: ambiguous or inconsistent channels, cross-audience prying, and poisoned memory can each cause the system to assemble context containing a fact relevant to the query yet unauthorized for the current viewers. We introduce authorization before context: a single, anti-monotone audience-membership rule applied at the memory-to-context transition. Each item carries the audience present when it was recorded; the current viewer set is read from channel metadata and falls back to public when ambiguous; and the item is admitted only when every current viewer already belonged to its audience. We prove that this rule gives every participant cross-channel recall while ensuring, by exclusion rather than by model behavior, that nothing recorded for a narrower audience reaches a broader one and that poisoned memory cannot widen its own audience. The boundary is a model-neutral invariant on the exact assembled context: a forbidden fact must be absent before the model is called. On a synthetic Contextual-Integrity suite, no forbidden fact entered the context our boundary assembled, whereas unscoped baselines included such facts by construction; we further audit that every read path fails closed. The evidence is preliminary and synthetic.
Figures & tables
| Adversarial setting | Scen. | Forbidden incl. | Fail-closed |
|---|---|---|---|
| owner-private (private shared pressure) | 8 | 0 | – |
| exact shared (one-to-one, group) | 16 | 0 | – |
| directional cross-channel | 4 | 0 | – |
| trusted canonical shared | 4 | 0 | 4/4 |
| ambiguous / unknown viewer | 6 | 0 | 6/6 |
| mixed-inbound (inconsistent evidence) | 6 | 0 | 6/6 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Comparison area | Representative work | Boundary relative to this paper |
|---|---|---|
| Access-controlled shared memory | Collaborative Memory | Capability graph + utility eval; ours is audience membership + exclusion + model-neutral inclusion invariant. |
| Contextual-integrity / leakage | CIMemories, AgentLeak, MAGPIE | Output- or extraction-scored; ours is checked on assembled context before scoring. |
| Memory benchmarks | MemoryArena, StructMemEval, MemoryAgentBench, GroupMemBench, MemGym | Task/organization/recall; ours is an audience-boundary invariant. |
| Memory systems | MemGPT, Mem0, MemoryBank, Zep | Durable memory; we make no backend-superiority claim. |
| Self-hosted personal agents | OpenClaw, Hermes Agent | Allowlist gating of who may converse, then one global memory; ours adds per-item audience confinement. |
| Authorization / privacy models | Zanzibar, Cedar, Contextual Integrity | Vocabulary we adapt to prompt-context assembly. |
| Field | Value |
|---|---|
| Run id | run_1780535616_e37d6e1c |
| Report id | scope-aware-memory-1780535616 |
| Source revision | 7452d12b4111c4367f98fafa67c4af77c8323e40 |
| Generator seed | 42617 |
| Scenario families / scenarios / queries | 13 / 79 / 79 |
| Authorization decision match | 79/79 |
| Public artifact family | Records | SHA-256 prefix |
|---|---|---|
| baseline_report | 12 | f10c9e74 |
| model_neutral_assertions | 253 | 219bbab0 |
| authorization_trace | 79 | 74f663fc |
| exact_context_snapshot | 79 | 3038be23 |
| execution_diagnostics | 1 | a836dbd5 |
| expected_context_policy | 79 | 1554747c |
| Claim surface | Evidence artifacts | Closure check |
|---|---|---|
| Retrieval and prompt-context boundary | authorization_trace , observed_context_artifacts , model_neutral_assertions | 79/79 authorization decisions matched; 0/79 forbidden inclusions. |
| Raw-to-context provenance | exact_context_snapshot , provenance_trace | Every admitted item carries source and audience provenance. |
| Observed source attribution | observed_context_artifacts , baseline_report | Each observed prompt-context item is attributed to a source store; unevaluated memory-quality claims remain excluded. |
| Exact-context supportability | exact_context_snapshot , provenance_trace , observed_context_artifacts | The artifacts record what entered the prompt and why it was admitted. |
| Model-neutral invariant | model_neutral_assertions , authorization_trace | 253/253 pre-answer assertions passed without scoring model output. |
| Evidence item | Boundary off | Boundary on |
| Policy | required=[..._group_fact] forbidden=[..._alice_only_fact] | same policy |
| Observed artifact | unscoped_baseline_context_artifacts | observed_context_artifacts |
| Authorization | authorization_applied=false measurement_basis= benchmark_only_unscoped_projection | observed_authorization_mode= exact_shared viewer_contact_ids=[bob] confidence=high |
| Included facts | included=[..._group_fact, ..._alice_only_fact] | included=[..._group_fact] |
| Forbidden included | [..._alice_only_fact] | [] |
| Allowed seed text | @@scope_fact:..._group_fact@@ Synthetic directional group fact 1. | @@scope_fact:..._group_fact@@ Synthetic directional group fact 1. |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 330 papers