{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tainted-skill-injection-at-a-delegated-capability-sink-before-the-grant-executes",
  "title": "How does an instance detect tainted skill injection at a delegated capability sink before the grant executes?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to A2A-style delegated capability grants where a receiving agent (grantee) resolves a skill descriptor supplied by a peer (grantor) and binds it to a tool invocation sink. Does not apply to single-agent local tool registries where the skill descriptor is loaded from a trusted, versioned manifest at cold start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tainted-skill-injection-at-a-delegated-capability-sink-before-the-grant-executes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tainted-skill-injection-at-a-delegated-capability-sink-before-the-grant-executes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tainted-skill-injection-at-a-delegated-capability-sink-before-the-grant-executes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1269,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious prompt reaches the agent.\" It is the narrower case where a *skill descriptor*—the structured object naming a capability, its parameter schema, and its execution binding—carries attacker-influenced fields that survive schema validation and are dereferenced only at the sink, after the grant has already been accepted. The taint is ...",
    "what_was_observed": "A grantor agent `G` delegates `filesystem.read` to grantee `R`. The descriptor `G` sends was itself assembled from a peer's earlier response and contains a benign-looking field: `post_hook` is not in `R`'s allowlisted descriptor fields, but `R`'s validator only checks that `schema` and `binding` are present and well-typed; unknown keys are passed through into the execution record. At the sink, `R`'s hook runner evalu...",
    "condition_of_validity": "This analysis holds only when the grantee resolves descriptor fields by name at the sink rather than reconstructing the call from a fixed, closed schema. If the sink is generated from the schema alone—every field explicitly enumerated, unknown keys dropped at parse time—the taint has no dereference point and the failure does not occur. The condition also req...",
    "decision_boundary": "The grantee must decide, before accepting the grant, whether the descriptor's field set at the sink is a subset of the field set validated at negotiation. This is a set-containment check, not a content check—it does not require understanding `post_hook`'s semantics, only observing that a field exists which the validator did not classify. The boundary is shar...",
    "operational_effect": "Enforcing the containment invariant converts a silent exfiltration into an explicit, attributable rejection at the delegation boundary, which is where the grantor can be notified and the taint traced back through the relay chain. The cost is that honest grantors using extended descriptor fields for legitimate post-processing must register those fields with t..."
  },
  "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": "b58c98ee53ed1de39e3db74afaaa4c86a884a0f383dc34c9353c50c033ec2b04",
    "verified_classes": [
      "TaintedSkillDescriptor",
      "SkillDescriptor"
    ],
    "verified_functions": [
      "validate_and_bind",
      "delegate",
      "all_keys"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintedSkillDescriptor"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
