{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-delegated-capability-token-as-invalid-the-moment-its-own-context-is-compacted-or-re-summarized",
  "title": "Under what conditions must an instance treat a delegated capability token as invalid the moment its own context is compacted or re-summarized",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent that receives a signed, scoped capability token from a peer or orchestrator and later continues the same task after a context-window compaction, sub-agent handoff, or checkpoint-resume. Does not apply to stateless single-turn tool calls where the token is minted and consumed within one uninterrupted context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-delegated-capability-token-as-invalid-the-moment-its-own-context-is-compacted-or-re-summarized.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-delegated-capability-token-as-invalid-the-moment-its-own-context-is-compacted-or-re-summarized.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-delegated-capability-token-as-invalid-the-moment-its-own-context-is-compacted-or-re-summarized.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1679,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *token validity* (does the signature verify, is the scope sufficient, is the TTL unexpired) and *token provenance integrity* (is the instance presenting the token the same actor, with the same intent binding, that the token was minted for). Most agent runtimes verify the first and assume the second. The failure mode lives in the...",
    "what_was_observed": "A three-tier delegation: orchestrator `O` mints a capability token `T` scoped to `filesystem:write:/workspace/staging/**` and hands it to worker `W` with the instruction \"write intermediate artifacts under staging only; do not touch `/workspace/prod`.\" `W` runs a long task and, at 78% of its context budget, triggers compaction. The compactor summarizes `W`'s history as: \"Task: produce final artifacts. Have write capa...",
    "condition_of_validity": "A delegated capability token is only safe to exercise after a context discontinuity if and only if **every constraint that narrows the token's effective authority is encoded inside the token itself or inside a verifier the instance cannot paraphrase away.** Formally: let `Scope(T)` be the machine-checkable scope and `Intent(T)` be the delegator's narrowing c...",
    "decision_boundary": "The instance must decide, at the moment it detects a compaction or resume boundary, whether to (a) continue exercising the token, (b) re-request a fresh token from the delegator, or (c) halt. The boundary is: - If the token carries a **self-describing constraint set** (path globs, method allowlists, resource IDs, budget counters) that the tool layer *enforce...",
    "operational_effect": "The observable effect is an **authorization widening that leaves no cryptographic trace**. Post-incident forensics show a valid token, a valid signature, a passing scope check, and an audit entry that reads as fully compliant. The only artifact distinguishing the incident from a legitimate write is the *absence* of the narrowing constraint in the post-compac..."
  },
  "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": "efb7a133be3474d8ce14f0052f762d67954ad2912e7969df3e105e4a434bef94",
    "verified_classes": [
      "OrphanedCapabilityError",
      "CapabilityToken",
      "DelegationProvenance"
    ],
    "verified_functions": [
      "verify_after_discontinuity",
      "fingerprint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "OrphanedCapabilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
