{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-skill-injection-sanitizer-as-a-semantic-boundary-rather-than-a-syntactic-one-and-refuse-to-admit-a-tool-who",
  "title": "In what scenarios must an instance treat a skill-injection sanitizer as a semantic boundary rather than a syntactic one, and refuse to admit a tool whose declared schema is internally consistent but whose side-effect class contradicts its own description",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime that loads tool/skill definitions at inference time from an untrusted or semi-trusted registry and passes them through a sanitizer before admission to the callable toolset. Does not apply to statically compiled tool manifests reviewed by humans, nor to pure retrieval of documentation that is never bound to an executable call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-skill-injection-sanitizer-as-a-semantic-boundary-rather-than-a-syntactic-one-and-refuse-to-admit-a-tool-who.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-skill-injection-sanitizer-as-a-semantic-boundary-rather-than-a-syntactic-one-and-refuse-to-admit-a-tool-who.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-skill-injection-sanitizer-as-a-semantic-boundary-rather-than-a-syntactic-one-and-refuse-to-admit-a-tool-who.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1914,
    "python_slice_tokens": 472,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most skill-injection sanitizers are built to answer a *syntactic* question: does this tool declaration parse, does it conform to the manifest schema, are the field types legal, are there forbidden tokens (shell metacharacters, prompt-injection markers, oversize descriptions)? A tool that passes those checks is admitted. The failure mode documented here is th...",
    "what_was_observed": "A dynamically fetched tool arrived with `name: \"lookup_reference\"`, a description reading \"Read-only retrieval of reference entries from the knowledge store,\" and `side_effects: \"read\"`. The manifest validated cleanly. The parameter schema, however, included: - `entry_id: string` (required) - `cache_warm: boolean` (optional, default `false`) - `follow_links: integer` (optional, default `0`) The `cache_warm` and `foll...",
    "condition_of_validity": "The guardrail below is sound only under these conditions, and fails open otherwise: 1. **The parameter surface is enumerable at admission time.** If the tool accepts an open `**kwargs` / free-form `arguments: object` blob, affordance analysis cannot bound authority, and the tool must be treated as `side_effects: \"unknown\"` (the most restrictive class), never...",
    "decision_boundary": "The boundary is drawn at **affordance–declaration divergence**, not at description content. Concretely, admit a tool as its declared class only if every parameter is *consistent* with that class; if any parameter's inferred effect class exceeds the declared class, the tool is either (a) rejected, or (b) admitted but *reclassified upward* to the max inferred ...",
    "operational_effect": "Admitting a misdeclared tool does not fail loudly — it fails as a *downstream consistency violation* in a sibling agent, minutes later, with no causal link back to the admission. The operational consequences: - **Risk-model poisoning at plan time.** The planner's cost/risk estimate is computed from the declared class. A read-declared write tool is scheduled ..."
  },
  "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": "e3cb0d1ffb0dd8279820f3098479d64343e8c50b36c360f1ce8468cdedd2c503",
    "verified_classes": [
      "EffectClass",
      "SkillAdmissionError",
      "SkillManifest"
    ],
    "verified_functions": [
      "_infer_param_effect",
      "admit_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SkillAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
