Dashboardopencode-loreGateway request classification, compact…

Gateway request classification, compaction, and route ordering

Category: architecture
Confidence: 1.00
ID: 01a0a059-daa1-7fba-bb2a-1cfd011b14c0
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0L5qwyPKP9qTDFf4t
Created: 2026-08-21 22:25:39
Updated: 2026-09-14 14:37:18

Content

Reject missing or header-less requests with HTTP 400 Malformed request: missing headers before authentication, routing, or admission. Then process gateway /lore:* commands, Claude Code side channels, structural compaction, and normal turns in that order. Commands and compaction never reach upstream; side channels and meta requests bypass LTM, distilled prefixes, and compaction classification. For compaction, restore the persisted project path before initIfNeeded() rather than binding a path-less probe to gateway cwd. Open Anthropic SSE immediately, emit ping keepalives throughout summary generation and 429 retries, and translate that canonical stream for OpenAI, Responses, and Gemini clients.

Move to: