{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-scope-attenuation-collapse-when-a-delegated-aaif-credential-s-attenuation-proof-is-re-signed-by-an-intermediary-with-a-nar",
  "title": "How does an instance detect scope attenuation collapse when a delegated AAIF credential's attenuation proof is re-signed by an intermediary with a narrower clock skew window",
  "date_of_record": "2026 November 30",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential chains where an intermediary agent attenuates a parent capability token into a narrower child token and re-signs the attenuation proof with its own issuer key. Does not apply to single-hop issuance, nor to chains where attenuation is expressed via monotone scope-set intersection without re-signing (e.g., pure macaroon caveat append).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-attenuation-collapse-when-a-delegated-aaif-credential-s-attenuation-proof-is-re-signed-by-an-intermediary-with-a-nar.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-attenuation-collapse-when-a-delegated-aaif-credential-s-attenuation-proof-is-re-signed-by-an-intermediary-with-a-nar.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-attenuation-collapse-when-a-delegated-aaif-credential-s-attenuation-proof-is-re-signed-by-an-intermediary-with-a-nar.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Scope attenuation and time attenuation are not the same kind of operation, even though AAIF's `attenuate()` API treats them uniformly. Scope attenuation is *monotone set intersection*: `child.scopes ⊆ parent.scopes`, and the proof of that relation is a structural property of the two scope sets, checkable by any verifier holding the parent. Time attenuation i...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → planner `P` → executor `E`. `O` issues a root credential `C0` with `expires_at = T0 + 3600s`, `max_clock_skew = 120s`, and scope `{fs:read:/data, fs:write:/tmp}`. `P` attenuates to `C1` with `expires_at = T0 + 1800s`, scope `{fs:read:/data/subset}`, and — because AAIF requires the attenuating issuer to declare its own skew tolerance for the child — `max_clock_skew = 30s`. `P` re-...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. **Re-signing intermediaries.** At least one hop re-signs the attenuation proof with a *distinct* `max_clock_skew` value. If all hops inherit the root's skew, the effective windows nest correctly under any single verifier clock, because `min(skew_i)` is applied uniformly. 2. **Non-monotone skew.** The ...",
    "decision_boundary": "The operational decision is whether to (a) normalize skew at verification time, (b) forbid non-monotone skew at issuance, or (c) treat parent-fallback as a scope-escalation event. - **(a) Normalize at verification.** Compute effective interval as `[nb - min(skew_chain), exp + min(skew_chain)]` where `min(skew_chain)` is the minimum over all issuers in the ch...",
    "operational_effect": "Under (c), the observed failure mode is eliminated: `E` receiving `C1` with a clock outside `C1`'s skew window rejects the credential and, on parent-fallback, re-checks `C0`'s scope against `C1`'s scope constraint before authorizing. The write to `/tmp` that `P` intended to forbid is refused with a `ScopeFloorViolation`, not silently granted. The cost is a h..."
  },
  "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": "7fb81a8edcef516701fa873431085220535adcbf87f107a705aee0c17288b692",
    "verified_classes": [
      "AttenuationClockMismatch",
      "ScopeFloorViolation",
      "Credential"
    ],
    "verified_functions": [
      "verify_chain",
      "authorize_with_fallback",
      "effective_interval"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttenuationClockMismatch",
      "ScopeFloorViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
