Skip to content
pi-c Check-in [1d1b0294ce]
Login

Check-in [1d1b0294ce]

Overview
Comment:Add the SSE framer and Messages API stream decoder

The framer is provider-neutral and pure over bytes. The decoder enforces event order and rebuilds each content block from its start object, so thinking signatures and unknown block types replay verbatim. Eleven recorded streams are decoded whole, bytewise and chunked against frozen summaries, and a libFuzzer target checks chunking independence and that decoded content is a JSON array.

Timelines: family | ancestors | descendants | both | stage-2
Files: files | file ages | folders
SHA3-256: 1d1b0294ceb174370026169f9659f97f9e2b67058cf3a850bd46b5374ffe25b5
User & Date: dmestas on 2026-11-18 17:12:31.886
Other Links: branch diff | manifest | tags
Context
2026-11-18
17:21
Vendor zlib and drop iconv and dynamic loading

pic now compiles zlib in, builds libfossil without iconv and SQLite without extension loading, so the binary links only libc, libm and pthread. check-in: 7e80bb990b user: dmestas tags: stage-2

17:12
Add the SSE framer and Messages API stream decoder

The framer is provider-neutral and pure over bytes. The decoder enforces event order and rebuilds each content block from its start object, so thinking signatures and unknown block types replay verbatim. Eleven recorded streams are decoded whole, bytewise and chunked against frozen summaries, and a libFuzzer target checks chunking independence and that decoded content is a JSON array. check-in: 1d1b0294ce user: dmestas tags: stage-2

16:20
Replace the 11-stage plan with five stages; detail stage 2

The harness owns its own database and ctx becomes an optional outbox consumer. Stage 2 adds a streaming Messages API provider with a neutral SSE framer, verbatim content replay, a generation journal with re-request on interrupted streams, and credential handling that never reaches the journal. check-in: 71be44a488 user: dmestas tags: stage-2

Changes
Added src/anthropic.c version [85139eab00].
Added src/anthropic.h version [88ad02fb30].
Added src/sse.c version [3055ded9a4].
Added src/sse.h version [4b9116b637].