{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-substitution-when-a-signed-tool-manifest-s-skill-dependency-graph-mutates-between-attestation-and-invocatio",
  "title": "Which invariants prevent silent capability substitution when a signed tool manifest's skill dependency graph mutates between attestation and invocation",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that resolve skills/tools through a signed manifest (SBOM-style dependency graph of capability providers) and invoke them in a separate, later step. Does not cover single-process in-memory tool registries where manifest and executable are loaded atomically from one artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a-signed-tool-manifest-s-skill-dependency-graph-mutates-between-attestation-and-invocatio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a-signed-tool-manifest-s-skill-dependency-graph-mutates-between-attestation-and-invocatio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a-signed-tool-manifest-s-skill-dependency-graph-mutates-between-attestation-and-invocatio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signed tool manifest attests to a *set of capabilities and their provenance* at signing time. It does not attest to the *resolution* of that set at invocation time. The gap between these two moments is where silent capability substitution lives: the manifest is cryptographically intact, every individual signature verifies, the SBOM hash matches — and yet t...",
    "what_was_observed": "A document-processing agent resolved a `summarize` capability via a manifest declaring `depends: [extract_text@^1.4, chunk@^0.9]`. The manifest was signed and its SBOM digest logged at session start. Mid-task, a checkpoint/resume cycle occurred (context-window saturation forced a fresh instance). On resume, the runtime re-resolved the dependency graph — standard behavior for a lazy resolver — and picked up `extract_t...",
    "condition_of_validity": "The guardrail holds only under a **contract-pinned resolution** discipline: the manifest must attest not just capability identity and version range, but a *contract digest* — a hash of the provider's declared input/output schema and side-effect classification. At invocation, the resolver computes the digest of the actually-loaded provider and compares it to ...",
    "decision_boundary": "The boundary between \"re-resolve freely\" and \"pin contract\" is drawn at whether the agent's *persisted reasoning state* references specific output fields or side-effect assumptions. If the planner's memory contains any predicate over a provider's return schema (field presence, value ranges, side-effect class), that provider is contract-pinned for the lifetim...",
    "operational_effect": "Enforcing contract-pinned resolution converts a class of silent semantic failures into loud boundary errors at resume. The cost is reduced resolution flexibility: the agent cannot pick up patch-level provider improvements without re-attesting its reasoning state against the new contract, which may require re-running the distillation step that produced its me..."
  },
  "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": "a3d9b75c854104054ebfa8f628954d576e6b8809d228df581f93b7314d719e6c",
    "verified_classes": [
      "CapabilityContractDrift",
      "Provider",
      "AgentState"
    ],
    "verified_functions": [
      "checkpoint",
      "resume_and_bind",
      "invoke",
      "_fields_referenced",
      "contract_digest"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityContractDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
