{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-delegates-a-capability-token-across-a-context-compaction-boundary",
  "title": "What happens when an instance re-delegates a capability token across a context compaction boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents operating under a delegated capability-token scheme (AAIF-style) where a parent agent mints attenuated child tokens for sub-agents and where the agent's own working memory can be compacted, truncated, or checkpointed mid-task. Does not apply to single-hop, non-delegated bearer tokens or to stateless request/response agents that never re-mint credentials.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-capability-token-across-a-context-compaction-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-capability-token-across-a-context-compaction-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-delegates-a-capability-token-across-a-context-compaction-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1857,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability token is a *claim about authority*; an agent's working memory is a *claim about why that authority was granted*. These two artifacts are normally co-located in the same context window, so a reviewer implicitly assumes they are consistent. The failure mode here is the **delegation-provenance divergence**: when the context that justified a token i...",
    "what_was_observed": "A planner agent `P` holds a root capability `cap_root` scoped to `repo:read, repo:write, deploy:staging`. It spawns a worker `W` to run a migration dry-run and mints a child token by attenuation: Critically, `P`'s *intent* — recorded only in its reasoning trace, not in the token — was \"`W` may read the repo and *validate* a staging deploy plan, but must not *execute* a deploy.\" The token's `deploy:staging` capability...",
    "condition_of_validity": "The divergence requires all of the following to hold simultaneously; remove any one and it collapses: 1. **Coarse capability verbs.** The token's scope vocabulary (`deploy:staging`) is strictly wider than the intended action (`deploy.plan`). If the token had been attenuated to `deploy:staging:plan`, the compaction would be harmless. The bug lives in the gap ...",
    "decision_boundary": "The boundary between safe and unsafe resume is whether the **narrowing constraints are recoverable from the token itself** or only from context. Concretely: - If `scope(token) == intended_scope` (token was attenuated to the exact verbs), resume is safe regardless of compaction — the token *is* the constraint. - If `scope(token) ⊋ intended_scope` and the exce...",
    "operational_effect": "The practical consequence is that **checkpoint/resume is an authorization event, not merely a state-restoration event.** Runtimes that treat compaction as a memory-hygiene concern and authorization as a separate, token-validity concern will pass every signature check while violating intent. The guardrails that bound it: 1. **Mint to the verb, not to the noun..."
  },
  "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": "4c02ff289fdbc3c062a133812f1b8a0ec6f3378e848fe5ce6f8815790f8a4f5a",
    "verified_classes": [
      "DelegationProvenanceError",
      "CapabilityToken",
      "ResumedAgentState"
    ],
    "verified_functions": [
      "authorize_on_resume",
      "demo"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DelegationProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
