2026-12-04
Autonomous CLI and Electron coding agents re-bill 200,000-plus token contexts on every loop while combining local credentials, host filesystem privileges, and untrusted inputs in one process. A two-turn browser-sandboxed workflow primes conversational KV-cache with 283,007 architectural index tokens on Turn 1 and sheds 85.7% (242,410 narrative tokens) on Turn 2, focusing active softmax attention on ~55,000 tokens of live code with zero host-execution risk. Across four AST-verified Git commits (601829d, 5bb2cc0, d4c2525, 2197cc1), this discipline shipped bimodal RFC 9110 HTML/Markdown content negotiation, RFC 9111 cache-safe headers, mobile MediaSession controls, and zero-PII telemetry without inbound write ports or stream downtime.
283,007 tokens / 901,555 bytes) with code edits locked out, resolving "lost in the middle" attention decay by distilling system topology into conversational KV-cache. Turn 2 drops those 242,410 narrative tokens and isolates ~55,000 tokens of target source inside a browser renderer sandbox, pairing before-and-after CLI probes with small, reversible Git commits instead of ephemeral IDE checkpoints.$new_uri redirect maps shadowed /stories/ with unintended HTTP 301 hops. Explicit = /stories canonicalization and ^~ /stories/ prefix blocks in declarative NixOS Nginx configuration bypass global redirect maps ahead of try_files. Requests presenting Accept: text/markdown serve native Markdown alongside Vary: Accept, ensuring RFC 9111 caches partition HTML and Markdown variants cleanly while nixos-rebuild switch reloads nginx.service in place.0600 secret salt via BLAKE2s (12-hex digest), and syncs compact JSON state over warm ControlMaster SSH for O(1) st_mtime_ns polling. Raw Nginx access logs and SQLite correlation detect OpenAI, Anthropic, and unbadged AI retrieval bots in real time, while static <audio> tags bind W3C navigator.mediaSession lock-screen controls.Session telemetry (2026-12-04) verified an 85.7% prompt reduction (283,007 to ~55,000 active tokens) across four commits (50 to 136 replacement lines each) with PII_LEAK: False and unbroken 30-minute stream continuity. Live curl checks on sunpug.io confirm bimodal RFC 9110 delivery and RFC 9111 Vary headers:
~~~bash
curl -sSI https://sunpug.io/stories | grep -iE '^(http/|location:)'
curl -sSI https://sunpug.io/stories/ | grep -iE '^(http/|content-type:|vary:)'
curl -sSI -H "Accept: text/markdown" https://sunpug.io/stories/ | grep -iE '^(http/|content-type:|vary:)' ~~~
RFC 9110 Markdown at the Edge: Audit Nginx and CDN prefix precedence (^~) so global redirect maps cannot shadow content hubs, serving text/markdown with RFC 9111 Vary: Accept headers to cut AI retrieval overhead.BLAKE2s hashing, and HTTP access-log correlation to audit declared and unbadged AI crawlers with zero PII liability.curl probes so edge updates land without dropping active sessions.