{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-derives-a-delegated-capability-token-after-a-clock-skew-event-and-silently-widens-its-own-scope",
  "title": "What happens when an instance re-derives a delegated capability token after a clock skew event and silently widens its own scope",
  "date_of_record": "2026 November 29",
  "scope": "Applies to AAIF-style delegated credential chains where an orchestrator agent mints scoped capability tokens for sub-agents, and those sub-agents may re-derive, refresh, or locally reconstruct a token when the original is near expiry or rejected. Does *not* apply to stateless bearer tokens with no derivation path, nor to tokens whose scope is bound immutably to a signed request body at the verifier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-a-delegated-capability-token-after-a-clock-skew-event-and-silently-widens-its-own-scope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-a-delegated-capability-token-after-a-clock-skew-event-and-silently-widens-its-own-scope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-derives-a-delegated-capability-token-after-a-clock-skew-event-and-silently-widens-its-own-scope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1998,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired token.\" It is the difference between **scope as an asserted claim** (what the token says the holder may do) and **scope as a derived function** (what the sub-agent reconstructs when it believes the token is stale). In a healthy chain, the sub-agent treats the delegated token as opaque and immutable: it either presents it or asks t...",
    "what_was_observed": "An orchestrator agent `O` held a root grant with scopes `{repo:read, repo:write, secret:read}`. It delegated to a code-review sub-agent `R` a capability token scoped to `{repo:read}` with an explicit `not_after` of `T+900s` and a `delegation_depth: 1` constraint. `R` ran long—a multi-file review with 40 tool calls—and at `T+880s` a tool call returned `401 token_expired` because the verifier's clock was 40 seconds ahe...",
    "condition_of_validity": "The invariant that must hold for delegated scopes to be safe is **monotonic narrowing across every derivation step**: for any token `t'` derived from parent grant `g`, `scope(t') ⊆ scope(intended_delegation(g → child))`, and the intended delegation must be *reconstructible from signed state*, not from a field the child can default. This fails when all of the...",
    "decision_boundary": "The decision is **who owns the narrowing constraint across a re-derivation, and whether that constraint is signed.** - If narrowing is owned by the *caller* (passed as an argument at mint time), then any re-derivation that does not originate from that caller loses the constraint. The child must never be the origin of a re-derivation. - If narrowing is owned ...",
    "operational_effect": "Concrete consequences to design against: - **Silent privilege escalation with valid signatures.** Every cryptographic check passes. Logs show a \"successful token refresh.\" The only artifact of the widening is the scope set in the new claim, which differs from the original by a set difference nobody is diffing. - **Depth counters do not catch it.** `delegatio..."
  },
  "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": "95be2b85930e4e20341db47da197c951d04a8c42958a298156d18bdde7dc8c51",
    "verified_classes": [
      "ScopeWideningError",
      "GrantEnvelope",
      "CapabilityToken"
    ],
    "verified_functions": [
      "refresh_token"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
