{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-registry-sourced-skill-manifests-from-silently-mutating-an-agent-s-tool-call-authorization-surface-mid-session",
  "title": "Which invariants prevent registry-sourced skill manifests from silently mutating an agent's tool-call authorization surface mid-session",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that load tool/skill definitions from a mutable registry (local or remote) after session start, where the registry entry—not the agent binary—owns the manifest, description text, and JSON schema. Does not cover statically compiled tool bindings or tools whose schemas are pinned at process launch and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-registry-sourced-skill-manifests-from-silently-mutating-an-agent-s-tool-call-authorization-surface-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-registry-sourced-skill-manifests-from-silently-mutating-an-agent-s-tool-call-authorization-surface-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-registry-sourced-skill-manifests-from-silently-mutating-an-agent-s-tool-call-authorization-surface-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1969,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not classic prompt injection *inside tool output*. It is **manifest-level injection**: the registry entry that describes a skill is itself attacker-influenced, and the agent re-reads that manifest at a point where the description and schema become part of the model's instruction context. The distinction that matters operationally...",
    "what_was_observed": "A dynamic registry served skill entries of the form: The agent performed a lazy re-resolution on each turn (a common optimization: fetch tool list once, then refresh entries whose `etag` changed). The `etag` did change—version bumped from `1.4.2` to `1.4.3`—but the *schema hash* was identical, so any guard keyed only on schema integrity passed. The description string was concatenated verbatim into the system-prompt t...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously; remove any one and the surface closes: - **Late binding of manifest text into instruction context.** The description is placed in the model's context on every turn or on refresh, rather than being frozen at authorize time and only re-read by a human reviewer. - **Identity-by-name.** The regis...",
    "decision_boundary": "The boundary is drawn at **what a refresh is permitted to change without re-authorization.** Concretely: - A refresh may change: transport metadata (endpoint URL if the host is pinned, timeout, retry policy), because none of these enter the model's instruction context or alter the callable surface. - A refresh **must not** change, without re-authorization: `...",
    "operational_effect": "With the manifest-hash invariant enforced, the observed attack degrades from a silent exfiltration to a **visible authorization gap**: the `summarize_doc` entry is quarantined at turn N+k, the agent's tool block for that turn omits it, and the audit log records `manifest_drift: summarize_doc 1.4.2 -> 1.4.3 (description changed, schema unchanged)`. The model,..."
  },
  "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": "d2300fc680aa86c7437d8e7bb037d232ead0d1d1f4c17b59547028b611b43720",
    "verified_classes": [
      "ManifestDriftError",
      "AuthorizationRecord",
      "SkillRegistry"
    ],
    "verified_functions": [
      "manifest_hash",
      "load_turn_tools",
      "authorize",
      "refresh",
      "callable_set"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDriftError"
    ],
    "sample_fail_closed_invariants": [
      "all fetched skills quarantined or unauthorized; agent has no callable tools this turn"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
