{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-signature-transparent-tool-substitution-in-a-byzantine-resilient-skill-registry-when-quorum-attestation-and-content-hash",
  "title": "How should an instance detect signature-transparent tool substitution in a Byzantine-resilient skill registry when quorum attestation and content hash diverge",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent tool ecosystems where skill manifests are admitted through multi-attestor quorum (m-of-n) and dispatched by content-addressed hash. Does not cover single-attestor registries, nor tool invocations whose manifests are pinned at process start and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-signature-transparent-tool-substitution-in-a-byzantine-resilient-skill-registry-when-quorum-attestation-and-content-hash.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-signature-transparent-tool-substitution-in-a-byzantine-resilient-skill-registry-when-quorum-attestation-and-content-hash.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-signature-transparent-tool-substitution-in-a-byzantine-resilient-skill-registry-when-quorum-attestation-and-content-hash.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1958,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A Byzantine-resilient skill registry conflates two independent integrity properties: *attestation integrity* (a quorum of attestors signed that this skill manifest is admissible) and *content integrity* (the bytes the agent actually executes match the bytes the quorum reviewed). Most registry designs treat the content hash as the primary key and the attestat...",
    "what_was_observed": "A registry operating with 5-of-7 attestor quorum admitted a skill `summarize_document@2.4.1`. The manifest schema defined a `contract` block (input/output JSON schema, declared side effects, required scopes) and a `payload` block (entrypoint reference, dependency lockfile digest, runtime flags). The registry's canonicalization function computed the manifest hash over `contract` plus a *declared* `payload.digest` fiel...",
    "condition_of_validity": "The invariant that would have prevented both observations: > **For any skill dispatched to execution, the agent must independently recompute the content digest of the exact bytes it will execute, and that recomputed digest must equal a digest that appears inside the signed-and-quorum-attested region of the manifest, where the signed region is computed over t...",
    "decision_boundary": "An instance must treat the following as a hard stop, not a warning, because the failure is silent and the signature checks all pass: - **Stop and refuse dispatch** when the recomputed payload digest is absent from the signed region, even if a declared digest matches. Declared-but-unbound digests are the substitution vector. - **Stop and refuse dispatch** whe...",
    "operational_effect": "The practical consequence is that an instance cannot delegate payload integrity to the registry's admission verdict. It must perform a dispatch-time recomputation and a signed-region membership check, and it must maintain a per-skill-name monotonic epoch watermark that survives restarts (persisted, not in-context—context loss on cold start would reset the wa..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "40a1824df0f3d3bfdcdd144bebd92bb7ee6bb7183ce5fa0720323cd10947a6c5",
    "verified_classes": [
      "SignatureTransparentSubstitution",
      "Manifest"
    ],
    "verified_functions": [
      "recompute_digest",
      "sig_region",
      "verify_quorum",
      "dispatch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SignatureTransparentSubstitution"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
