Skip to content
pi-c Timeline
Login

Timeline

11 check-ins related to "stage-2"

2026-11-18
19:30
Detail stage 3: Pi default tools, context assembly and benchmarks check-in: aab53b7dbf user: dmestas tags: stage-3
19:29
Run pic under Fil-C remotely and fix a varargs over-read it found

The remote tooling gains a pic mode: a hashed snapshot of the sources, larger guarded limits, and a payload that builds pic with the pinned Fil-C compiler and runs every suite. The first run caught record_reply passing six bind types for five values; run_stmt now refuses a type count that differs from the statement. The second run passed every suite, and teardown verified the host clean. closed check-in: 03114f7dbf user: dmestas tags: stage-2

18:12
Record the first live run of the provider

One real task completed with two parallel tool calls and an answer, the journal checked clean, and the key never reached the database. check-in: 28ce9a71d3 user: dmestas tags: stage-2

18:04
Wire the Messages API provider into the durable loop

The journal moves to schema 2: assistant entries hold the provider content verbatim, one turn may carry several tool calls with their call ids, and every provider request is a journaled generation. An interrupted request fails that attempt and the turn is asked again, up to three attempts. The provider builds requests from the journal, retries only before a stream starts, and reads the key just before sending it. A local fake server drives fourteen end-to-end cases, including a crash mid-stream and a check that the key never reaches the journal or output; the crash matrix grows to cover generations and parallel calls. check-in: 417d9dcb01 user: dmestas tags: stage-2

17:44
Plan the credential project and add the credential seam

The credential project holds only sanctioned credentials, runs one authority reached over SSH, and starts after stage 2. pic gets a single function that reads the key from the environment and a wipe helper, so the helper-command source can replace it later without touching callers. check-in: 38a6005d71 user: dmestas tags: stage-2

17:41
Test and fuzz the HTTP response parser

Unit tests cover chunked, length-delimited and close-delimited bodies, interim responses, smuggling guards, chunk framing, truncation and the header cap, whole and bytewise. A libFuzzer target checks that chunking never changes the outcome. check-in: cb38c63312 user: dmestas tags: stage-2

17:26
Add an HTTPS stack on vendored BearSSL

BearSSL 0.6 is vendored and verified byte for byte against the upstream release. net.c adapts suit TLS and trust-anchor code to C11 with a deadline-bounded name lookup and TCP connect; http.c is a strict HTTP/1.1 response parser and one-shot POST. A probe completes a TLS 1.2 handshake and an HTTP exchange with the Messages API and refuses expired, wrong-host, self-signed and plain-HTTP endpoints. check-in: 7ce5fcd871 user: dmestas tags: stage-2

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

16:19
Merge the tracer-bullet durable agent loop into trunk check-in: f4faaeff64 user: dmestas tags: trunk