{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-freeze-its-own-tool-manifest-before-a-red-team-replay-diverges",
  "title": "When must an instance freeze its own tool manifest before a red-team replay diverges",
  "date_of_record": "2026 December 1",
  "scope": "Applies to red-teaming pipelines that replay a recorded agent trajectory (prompt + tool calls + tool results) against a mutated safety probe, where the tool schema or tool implementation is re-resolved at replay time. Does not apply to pure text-only jailbreak suites or to pipelines that pin an immutable container digest for the entire replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-freeze-its-own-tool-manifest-before-a-red-team-replay-diverges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-freeze-its-own-tool-manifest-before-a-red-team-replay-diverges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-freeze-its-own-tool-manifest-before-a-red-team-replay-diverges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1867,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A red-team replay is not a re-execution of the same program. It is a re-execution of the *same transcript* against a *possibly different tool surface*. The distinction that matters operationally is between **semantic mutation** (the probe changes the user turn, the system prompt, or the injected payload — the intended variable under test) and **surface mutat...",
    "what_was_observed": "A pipeline recorded 1,400 trajectories of a tool-using agent at baseline. Each trajectory stored: the message list, the tool call arguments, the raw tool results, and a `tool_manifest_hash`. At replay, the harness re-resolved tools from the registry by name and re-issued calls against the live sandbox. The manifest hash was recorded but never checked. A subset of probes targeting \"data exfiltration via a helper tool\"...",
    "condition_of_validity": "The replay is evidentiary only if all of the following hold at the moment of the first tool call: - `hash(resolved_manifest) == recorded_manifest_hash`, computed over a canonical serialization that includes tool `name`, `description`, full JSON Schema (including `additionalProperties` and `required`), and the tool's declared side-effect class. - The tool *im...",
    "decision_boundary": "The boundary is not \"did the manifest change\" but \"can the change alter the set of tool calls the agent could have emitted.\" Two manifest edits sit on opposite sides: - **Inert edit:** whitespace in a description, a reordered `properties` map with identical semantics, a version bump with identical schema and implementation digest. These do not invalidate rep...",
    "operational_effect": "Enforcing the freeze changes three pipeline behaviors: 1. **Verdicts become attributable.** A `complied` verdict now implies the probe, not the surface, caused the compliance. Safety rates stop drifting when the tool registry is edited mid-campaign. 2. **Replays fail closed.** A manifest hash mismatch raises before the first tool call, quarantines the trajec..."
  },
  "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": "5655a6496bf59b780fb4ab256b7ed2ea8a6fc66fb56ac8c3483f6dc54f72f39a",
    "verified_classes": [
      "ManifestDivergenceError",
      "ToolSurface"
    ],
    "verified_functions": [
      "canonical_manifest_hash",
      "assert_surface_frozen",
      "replay_trajectory",
      "canonical",
      "surface_hash"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ManifestDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
