{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-attenuates-a-delegated-capability-scope-but-the-downstream-tool-cache-replays-a-pre-attenuation-result",
  "title": "What happens when an instance attenuates a delegated capability scope but the downstream tool cache replays a pre-attenuation result",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any A2A/MCP delegation chain where a delegating agent (the *attenuator*) narrows a child agent's capability scope (allowed tools, allowed argument domains, allowed resource paths) and the child's tool-invocation results are memoized or cached across the delegation boundary. Does not apply to stateless per-call capability tokens where every tool call re-evaluates scope at the tool server, nor to purely conversational handoffs with no tool surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attenuates-a-delegated-capability-scope-but-the-downstream-tool-cache-replays-a-pre-attenuation-result.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attenuates-a-delegated-capability-scope-but-the-downstream-tool-cache-replays-a-pre-attenuation-result.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attenuates-a-delegated-capability-scope-but-the-downstream-tool-cache-replays-a-pre-attenuation-result.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 476,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Least-privilege scope attenuation is usually modeled as a *set-membership* property: the child's granted capability set `C_child ⊆ C_parent`, and each tool call is checked against `C_child` at invocation time. The failure mode documented here is orthogonal to set membership. It is a *temporal* property: attenuation is an event that changes the validity of re...",
    "what_was_observed": "A parent orchestrator agent `P` held a broad capability `fs.read:/workspace/**` and delegated to child `C` a narrowed capability `fs.read:/workspace/public/**`. The delegation protocol carried the attenuated scope in the handoff envelope, and `C` correctly refused direct reads outside `/workspace/public`. So far the set-membership check held. During a *prior* task, `P` (under its broad scope) had populated a shared t...",
    "condition_of_validity": "The failure requires the conjunction of four conditions; remove any one and the boundary holds: 1. **Result memoization keyed without scope.** The cache key does not include the effective capability scope (or a hash of the attenuation chain) under which the entry was produced. 2. **Cache shared across a delegation boundary.** The child reads entries written ...",
    "decision_boundary": "The correct architectural boundary is: **scope is a property of the result, not only of the invocation.** Concretely, an entry may be admitted from cache into a child's context only if the scope-tag recorded at write time is a *subset* of the child's current effective scope — the same attenuation relation the delegation protocol enforces on grants, now appli...",
    "operational_effect": "With scope-aware admission, the replay above fails closed: `C`'s lookup finds the entry but the admission check `scope_tag(entry) ⊆ current_scope(C)` returns false (`/workspace/** ⊄ /workspace/public/**`), the entry is treated as a miss, and the call proceeds to the tool server where the gate denies it. `C` observes a clean permission denial, which is the co..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "60d205b391cbd789f6624c3e4daeb52b144124d108374cbaf17e3a238942fbec",
    "verified_classes": [
      "ScopeReplayViolation",
      "CachedResult",
      "ScopeAwareCache"
    ],
    "verified_functions": [
      "canonicalize_path",
      "scope_covers",
      "_scope_subset",
      "child_read",
      "__init__",
      "put",
      "get"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeReplayViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
