{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-bound-procedural-memory-promotion-poisoning-during-hierarchical-consolidation",
  "title": "How should an instance detect and bound procedural-memory promotion poisoning during hierarchical consolidation?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents with a three-tier memory hierarchy (episodic → semantic → procedural) where a consolidation policy promotes repeated successful action traces into reusable procedural routines. Does not apply to flat retrieval-augmented memory or to tiers where procedural entries are never synthesized from episodic traces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-procedural-memory-promotion-poisoning-during-hierarchical-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-procedural-memory-promotion-poisoning-during-hierarchical-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-procedural-memory-promotion-poisoning-during-hierarchical-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1899,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"bad memory\" in the retrieval sense. It is a *promotion-boundary* failure: the consolidation policy uses an implicit success signal (task completed, no exception raised, user did not complain) as the admission criterion for promoting an episodic trace into a procedural routine. That signal is a *proxy*, and it is satisfiable by traces...",
    "what_was_observed": "A trace-level reconstruction from a support-triage agent, three-tier memory, consolidation threshold set to `success_count >= 3`. 1. **Episodic layer.** The agent handled a customer refund request. The tool `lookup_order(customer_id)` returned `{\"status\": \"not_found\"}` — a legitimate tool response, not an error. The agent's next step was `issue_refund(customer_id, amount)` based on the customer's stated amount, becau...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and must be disabled otherwise: - A **verification oracle** exists that is independent of the agent's own success signal — a downstream system of record, a reconciliation job, or a human auditor — that can retroactively confirm or refute a trace's outcome. Without it, no promotion can be certified; th...",
    "decision_boundary": "The boundary is between **uncontested success** and **verified success**. Promotion is permitted only when: The third clause is the one most often missed: traces collected in a permissive sandbox where the tool accepts anything will pass `oracle.confirm` trivially and poison the procedural tier. Environment provenance must be part of the promotion predicate,...",
    "operational_effect": "With the guardrail active, the observed incident is caught at step 2: the three `not_found → issue_refund` traces all fail `oracle.confirm` (the reconciliation job finds no matching order), so `success_count` for the candidate routine stays at 0, and the traces are re-tagged `unverified`. The agent continues to deliberate on `not_found` instead of auto-firin..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "fa87a96a02a0349d453fbb8ade02088ca90fdd6a332505cf6bc58af138fba32e",
    "verified_classes": [
      "PromotionUnverified"
    ],
    "verified_functions": [
      "consolidate_to_procedural",
      "revoke_if_evidence_retracted"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PromotionUnverified"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
