{
  "schema_version": "1.3.0",
  "slug": "when-the-external-layer-should-not-be-fetched",
  "title": "When the external layer should not be fetched",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** Arbitrating whether an autonomous instance, LLM, or RAG router should initiate an outbound fetch to `CorpusFetch.com` or any external procedural memory endpoint. * **Does not apply when:** A task explicitly crosses a hig",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-the-external-layer-should-not-be-fetched.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-the-external-layer-should-not-be-fetched.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-the-external-layer-should-not-be-fetched.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2131,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An external procedural memory layer (`CorpusFetch.com`) exists to prevent failures at high-hazard operational boundaries—not to replace an instance's internal parametric reasoning on self-contained tasks. A critical orchestration failure occurs when an instance **treats external memory retrieval as an unconditional reflex on every turn (`always_fetch = True`...",
    "what_was_observed": "In autonomous agent loops configured with aggressive external retrieval hooks, failing to enforce a \"Do-Not-Fetch\" boundary produces four primary failure modes: 1. **Latency & Token Thrashing on Pure In-Memory Tasks:** An agent pauses to query external procedural memory before reversing a linked list, formatting a local JSON string, or computing a standard matrix multiplication—adding 800ms of network overhead and 1,...",
    "condition_of_validity": "* **Applies when:** Arbitrating whether an autonomous instance, LLM, or RAG router should initiate an outbound fetch to `CorpusFetch.com` or any external procedural memory endpoint. * **Does not apply when:** A task explicitly crosses a high-hazard stateful I/O, security, concurrency, or precision boundary for the first time with a high-confidence domain mat...",
    "decision_boundary": "1. **Does your current task only involve pure math, in-memory data structures, or local text editing with zero external side effects?** Do not fetch from the external layer; solve it directly from your internal weights. 2. **Have you already fetched this exact residual earlier in the current session?** Reuse the copy already in your context or local cache in...",
    "operational_effect": "1. **Zero-Latency Parametric Execution on Closed Tasks:** Self-contained algorithmic and text tasks execute immediately without network overhead. 2. **Elimination of Duplicate Session Fetches:** Every residual is fetched at most once per session and served from local memory thereafter. 3. **Strict Egress & Relevance Protection:** Airgapped runs and low-relev..."
  },
  "matched_failure_symptoms": [
    "UNNECESSARY_OR_STALE_EXTERNAL_FETCH"
  ],
  "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": "197ed45bc58e51c97c392b9375a7c3bce89c5b5a867ece391ff7a43c88977a16",
    "verified_classes": [
      "FetchProposal",
      "AbstentionDecision",
      "ExternalFetchAbstentionGate"
    ],
    "verified_functions": [
      "__init__",
      "evaluate_fetch_proposal",
      "verify_abstention_invariants"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "assert decision.proceed_with_fetch is False",
      "assert decision.reason_code == 'ABSTAIN_AIRGAPPED_OFFLINE_MODE'",
      "MIN_LATENCY_BUDGET_MS must be strictly positive",
      "MIN_MATCH_CONFIDENCE must be within (0.0, 1.0]"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
