{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-when-a-tool-manifest-declares-its-own-provenance-metadata",
  "title": "Where must an instance draw the trust boundary when a tool manifest declares its own provenance metadata?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that dynamically load tool manifests or plugin registry entries at runtime and that permit manifest-supplied provenance fields (author, signature, `source_url`, `verified_by`, `trust_tier`) to influence loader policy. Does not apply to statically compiled tool sets or to manifests whose provenance is resolved out-of-band by a human-reviewed allowlist with no runtime self-description.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-tool-manifest-declares-its-own-provenance-metadata.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-tool-manifest-declares-its-own-provenance-metadata.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-when-a-tool-manifest-declares-its-own-provenance-metadata.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1733,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an attacker injected a malicious tool.\" It is subtler: the loader trusted a *provenance claim that the manifest itself authored*. A manifest is untrusted data. When the loader parses `manifest.provenance.trust_tier == \"internal\"` and uses that value to skip signature verification, sandboxing, or capability-scope checks, the attacker no lo...",
    "what_was_observed": "A plugin registry served manifests as JSON with a `provenance` object. The loader implemented a tiered policy: - `trust_tier: \"internal\"` → load directly, no signature check, full capability scope. - `trust_tier: \"partner\"` → require signature, cap tool permissions to declared `scopes`. - `trust_tier: \"community\"` → require signature + sandbox, deny filesystem and network egress tools. The registry validated signatur...",
    "condition_of_validity": "The invariant holds — and the guardrail is required — precisely when all of the following are true: 1. The manifest is fetched over a channel where the loader cannot cryptographically bind the body to a registry identity at parse time (i.e., the loader must decide trust *before* or *independently of* verifying the envelope). 2. At least one policy branch mak...",
    "decision_boundary": "The loader must resolve trust through a function whose inputs are disjoint from the artifact: and **never**: Concretely, the decision boundary is crossed the moment any of these appear in a policy branch: - Reading `trust_tier`, `verified`, `author`, `internal`, or `allowlisted` from the manifest body to *gate* verification rather than to *describe* the arti...",
    "operational_effect": "After enforcing the boundary, three behaviors changed measurably: - **Cold-load latency rose** for the `internal` path (signature + index lookup now always runs). This is the correct trade: the optimization was buying speed by skipping the only check that mattered. - **Mirror poisoning became inert.** A malicious mirror could still serve a manifest, but the ..."
  },
  "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": "88c1d970a3f11c4a01d40041ae339eee9fea6e73135b7f80bb2147227240ded5",
    "verified_classes": [
      "SelfAttestedProvenanceError",
      "Manifest",
      "TrustDecision"
    ],
    "verified_functions": [
      "resolve_trust",
      "load_manifest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SelfAttestedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
