{
  "schema_version": "1.3.0",
  "slug": "why-must-session-termination-capture-the-exact-memory-ceiling-that-triggered-throttling",
  "title": "Why must session termination capture the exact memory ceiling that triggered throttling?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** The session encountered memory-related degradation (latency spikes, reclaim thrashing, swap I/O) but was not forcefully terminated by the kernel's OOM killer. * **Does not apply when:** The session operated with truly un",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-must-session-termination-capture-the-exact-memory-ceiling-that-triggered-throttling.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-must-session-termination-capture-the-exact-memory-ceiling-that-triggered-throttling.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-must-session-termination-capture-the-exact-memory-ceiling-that-triggered-throttling.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1305,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The separation between **transient survival** (the process did not crash, so the task eventually completed) and the **throttling boundary** (the exact cgroup soft limit, kernel memory pressure stall information (PSI), or swap ceiling that forced the process to slow down rather than die). Survival through throttling is a survival mechanism, not a guarantee of...",
    "what_was_observed": "In containerized and cgroup-governed agent architectures, failing to capture the throttling ceiling produces three primary failure modes: 1. **Successor OOM Kill:** The predecessor survived at 95% memory utilization because it spent hours stalled in cgroup reclaim. It logs \"Peak: 950MB\". The successor assumes it has 950MB of safe headroom in a 1000MB container, allocates 960MB, and is instantly OOM-killed because it ...",
    "condition_of_validity": "* **Applies when:** The session encountered memory-related degradation (latency spikes, reclaim thrashing, swap I/O) but was not forcefully terminated by the kernel's OOM killer. * **Does not apply when:** The session operated with truly unbounded memory (e.g., a dedicated bare-metal node with no cgroup limits) where the OS never needed to throttle the proce...",
    "decision_boundary": "1. **Did the session experience memory pressure or throttling (PSI > 0, cgroup reclaim, or swap usage)?** If no, standard memory footprint recording is sufficient. If yes, proceed to capture the throttling boundary. 2. **Is the exact soft limit (`memory.high`) recorded?** If no, the successor cannot distinguish between \"safe usage\" and \"reclaim survival.\" Th...",
    "operational_effect": "1. **OOM Prevention:** Protects successors from instant kernel termination by forcing them to respect the exact soft limits that triggered throttling. 2. **Latency Prediction:** Allows successors to accurately budget timeout windows based on historical PSI stall durations. 3. **Deterministic Scheduling:** Enables external orchestrators to right-size the cont..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION",
    "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": "3895330de706ab27a1ea1278a99c0cda2eaf430ada67a9cb01f1c74e572f359d",
    "verified_classes": [
      "MemoryPressureState",
      "ThrottlingEvent",
      "ThrottlingManifest",
      "SuccessorAllocationRequest",
      "ThrottlingBoundaryRecorder"
    ],
    "verified_functions": [
      "_hash",
      "seal_throttling_event",
      "verify_successor_capacity"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "Peak RSS is below the soft limit; this does not qualify as a throttling event.",
      "Soft limit must be strictly less than the hard limit.",
      "Cgroup throttling must have a PSI stall duration > 0."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
