{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-identity-spoofing-from-surviving-continuous-authorization-re-evaluation-under-aaif",
  "title": "Which invariants prevent identity spoofing from surviving continuous authorization re-evaluation under AAIF",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents operating under an Agent Authorization & Identity Framework (AAIF) where a signed identity assertion is minted once at session establishment and the authorization decision is re-evaluated on a cadence (per tool call, per token window, or per delegated sub-task). Does not cover static bearer-token systems without re-evaluation, nor human-in-the-loop consent flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-spoofing-from-surviving-continuous-authorization-re-evaluation-under-aaif.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-spoofing-from-surviving-continuous-authorization-re-evaluation-under-aaif.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-identity-spoofing-from-surviving-continuous-authorization-re-evaluation-under-aaif.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1603,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a forged credential was accepted.\" It is subtler: a **legitimately minted identity assertion** is reused by a *different execution context* after the authorization layer has already re-evaluated and re-approved the *original* context. AAIF splits the decision into two artifacts that drift apart: - **The identity assertion** (who the agent...",
    "what_was_observed": "A delegated sub-agent (`planner.worker-3`) was issued an AAIF assertion at T0 with subject `agent:planner`, delegation chain `[orchestrator → planner → worker-3]`, and a capability set scoped to `read:dataset`. At T0+40s the orchestrator re-scoped the task to `write:dataset`. The authorization layer re-evaluated on the next tool call and approved `write:dataset` — because the *live context fingerprint* it checked (ta...",
    "condition_of_validity": "Continuous re-evaluation is only sound when the following invariant holds for every verdict: > `verdict.subject == assertion.subject == executing_context.subject` and the assertion commits to the *task context* (task ID, resource handle, delegation depth) via a claim that the re-evaluator recomputes and compares, not merely the session key. If the assertion ...",
    "decision_boundary": "The boundary between \"re-evaluation strengthens authorization\" and \"re-evaluation launders spoofing\" is whether the re-evaluator performs a **subject-continuity join** on every verdict. Concretely: - **Enforce:** on each re-evaluation, recompute `context_fingerprint = H(task_id, resource_handle, delegation_depth, executing_process_id)` and require it to equa...",
    "operational_effect": "After enforcing the subject-continuity join, the observed replay at T0+41s fails at step 4 with a context-fingerprint mismatch: `worker-7`'s executing context does not match the `ctx` claim minted for `worker-3`'s task. The verdict is denied, and the denial is logged as a `SubjectContinuityViolation`, distinct from signature failures, so the leaked session k..."
  },
  "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": "4bfbe67f35a7f85ee7b3199ca8c84930da158ccb2b1cace6b2e1a4d25718adc0",
    "verified_classes": [
      "SubjectContinuityViolation",
      "Assertion",
      "ExecutingContext"
    ],
    "verified_functions": [
      "compute_fingerprint",
      "re_evaluate",
      "authorize_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SubjectContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
