Abstract
On March 31, 2026, a packaging error in Anthropic's Claude Code npm release exposed approximately 512,000 lines of production TypeScript — the agentic harness responsible for context management, compaction, memory consolidation, and session governance. Buried in the source was an internal bug report: 1,279 sessions with up to 3,272 consecutive compaction failures per session, wasting approximately 250,000 API calls per day globally. The fix was three lines. This paper is about the structural condition that made the fix necessary — and the governance architecture that prevents it. The Anti-HAL architecture (Mohan, February 2026) identified the structural requirement before the disclosure: a system that has only one state — continue — is dangerous at any capability level, regardless of alignment. The Claude Code architecture is that system in production. This paper operationalizes the Anti-HAL architecture as the Solvency Transport Protocol (STP), demonstrates five structural gaps verified absent in the production codebase, and validates the forward pass mechanism across three independent datasets spanning 20 years. Five structural gaps are identified and closed: (1) no principled halt pathway — the retry cap is empirical, not structural; (2) no streaming write-back — autoDream's idle-period batch consolidation fails for continuous sessions; (3) no pre-turn admission cost — compaction failures are discovered after token consumption; (4) mutable axis mid-session — autoDream overwrites the reference frame, making the audit trail self-ratifying; (5) no cross-session causal reference — KAIROS acts on event presence, not structural warrant. The forward pass computes alpha = forward_Ω / causal_Ω from recursive structural descent floors, identifies constitutional parity between adjacent regimes when alpha → 1, and reports outcome variance σ² = k/(α−1)² as a continuous measure of structural uncertainty at every period boundary. Three independent validation runs — US market signals (11 periods, 2011–2026), European market signals using different instruments across the same periods, and US GFC signals (3 periods, 2007–2010) — independently identified repo2019→covid (US σ²=121.2, EU σ²=319,337) and bear2022→recovery2023 (US σ²=206.5, EU σ²=816.0) as constitutional parity transitions without coordination. A pre-registered prediction — that gfc_crash→gfc_recovery σ² would exceed 206.5 — was confirmed at σ²=281.8. Across all 23 period pairs in three runs, meeting points (σ² ≥ 38) and directional transitions (σ² ≤ 16) separated cleanly with no overlap. This gap is a native property of the CP equation, not a calibration artifact. The paper also presents: a security theorem establishing that co-location of auditor and executor with any threshold or branch condition in the enforcement function is a sufficient condition for the Adversa-class permission bypass, demonstrated against the leaked Claude Code source; a complete session lifecycle architecture including proactive respawn via the Context Transfer Protocol (CTP, Mohan 2026), adaptive context window sizing, and reference file management via structural table of contents; and a governed containment property showing that tampered continuity state becomes structurally expensive to sustain against live conversation, causing rising Ω debt and eventual NACK/FIN — making sustained deception an economically expensive attack surface. The STP kernel is open (doi:10.5281/zenodo.18901637). The forward pass is fully specified in this paper. The session lifecycle architecture is implementable from the specification. The Tier 3 recursive ingestion mechanism is available as a governed API.Also available at SSRN Abstract 6515858