{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-reject-a-valid-delegated-capability-token-after-a-context-compaction-boundary",
  "title": "Why does an instance reject a valid delegated capability token after a context compaction boundary?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to AAIF-style scoped capability tokens passed through multi-hop delegation chains where each hop re-derives the *effective scope set* from its own context window rather than from the signed token envelope. Does not apply to stateless verifiers that re-parse the token envelope on every tool call, nor to single-hop (direct-grant) capability usage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-delegated-capability-token-after-a-context-compaction-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-delegated-capability-token-after-a-context-compaction-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-delegated-capability-token-after-a-context-compaction-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2150,
    "python_slice_tokens": 457,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not signature forgery, expiry, or audience mismatch. Every cryptographic check passes. The failure is that a downstream agent reconstructs the *effective scope set* — the intersection of the delegated token's scope with the delegator's own scope and any attenuations applied en route — from its **conversational memory of the delegation chain** ...",
    "what_was_observed": "A three-hop chain: orchestrator `O` holds root capability `cap:root` with scope `{read:repo, write:repo, exec:test, read:secrets}`. `O` delegates to planner `P` with attenuation `{read:repo, write:repo, exec:test}` (drops `read:secrets`). `P` delegates to executor `E` with further attenuation `{read:repo, exec:test}` (drops `write:repo`). `E` receives a token whose envelope contains the full signed chain and whose re...",
    "condition_of_validity": "The invariant that must hold for delegated capability use to be sound: > **The effective scope set used by any agent at any decision point MUST be a pure function of the signed token envelope, recomputed at the point of use, and MUST NOT be derived from the agent's episodic memory of the delegation chain.** This invariant is violated whenever any of the foll...",
    "decision_boundary": "The boundary between a safe and an unsafe delegation handoff is whether the receiving agent can *prove* its effective scope without consulting its own history. - **Safe:** `effective = intersect(envelope.chain[*].scope)` computed fresh at every tool invocation; the agent's memory of the delegation is used only to *decide what to attempt*, never to *decide wh...",
    "operational_effect": "When the invariant holds, delegation chains are robust to arbitrary context churn: compaction, summarization, checkpoint/resume, and even agent migration between instances cannot widen or narrow effective scope, because scope is never stored in the agent — it is stored in the token and re-derived on demand. Attenuation is provable from the envelope alone, so..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "e9eac2ab07971967deacff51284200ee976578551bd13e5cde35633c0c72a82c",
    "verified_classes": [
      "ScopeAssertionMismatch",
      "CapabilityEnvelope",
      "Hop"
    ],
    "verified_functions": [
      "authorize",
      "_demo",
      "effective_scope"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PermissionError",
      "ScopeAssertionMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
