19 ancestors of 065d180567e053b0
|
2026-11-18
| ||
| 22:37 |
Plan stage 4: any model, with a provider-neutral journal
Providers beyond the first are now a requirement: OpenAI, OpenRouter and any OpenAI-compatible server. Stage 4 adds a provider-neutral journal, a model registry, and Chat Completions and Responses adapters; follow-up conversations and pic-owned compaction move to stage 5. check-in: 065d180567 user: dmestas tags: stage-4 | |
| 21:20 | Land stages 2 and 3: real provider, Pi tools, context and benchmarks check-in: 6a67cdb25a user: dmestas tags: trunk | |
| 21:18 | Record the stage 3 Fil-C run: every suite passed closed check-in: 889393ba72 user: dmestas tags: stage-3 | |
| 21:17 | Add make install-pic: install the release binary after the suite passes check-in: 5e17337fe7 user: dmestas tags: stage-3 | |
| 20:59 |
Benchmark every tool and stop bash waiting 50ms for each exit
make bench-pic measures each tool alone, one journal commit, a scripted turn per tool and process start-up, and compares medians with a per-platform baseline, failing only when a regression repeats on three runs. The first run showed bash true at 60ms because the supervisor slept 50ms between exit checks; it now starts at 1ms and backs off, bringing it to 9ms. check-in: e0a4799a8b user: dmestas tags: stage-3 | |
| 19:42 |
Add context assembly, pic ask and cancel, and tool contract tests
The system prompt follows Pi: preamble, tools, rules, project instructions from the workspace and every ancestor, outermost first, then the working directory. pic ask runs a request in the current directory with the journal under .pic and prints each tool call and the answer; pic cancel skips calls that have not run. Each tool gets exact contract tests, and an edit interrupted after writing is replayed from its journaled plan. check-in: ba0addd3d7 user: dmestas tags: stage-3 | |
| 19:37 |
Adopt Pi's default tools: read, write, edit and bash
Tools take Pi's inputs and return Pi's truncation notices and messages. Edit computes the new file first and journals it with started, so a replay after a crash writes the same bytes and edit joins read and write as replay-safe. Bash keeps the tail of its output, saves the full output when it has to cut, and reports Pi's status lines. Results carry a journaled error flag, cancelled calls are skipped with a result, and the schema moves to version 3. check-in: c5ab59d7d7 user: dmestas tags: stage-3 | |
| 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 | |
| 12:30 |
Add the first durable agent loop in C
pic keeps its journal in its own libfossil-hosted SQLite database: an idempotent admission per request key, then one short transaction per state change, never held across provider or tool I/O. A replay-safe write tool reruns after a crash; a replay-unsafe exec records an unknown outcome and never reruns. exec runs under a supervisor that starts the command only after the started commit and kills its group if pic dies or is interrupted. A second pic on the same database is refused. test/pic/crash.sh crashes at every commit and effect boundary and checks the journal against an external ledger, plus deadline, output redirection, background child, crash and interrupt orphaning, and second-writer cases. Vendored SQLite and libfossil match ctx byte for byte. closed check-in: 7e7550292a user: dmestas tags: tracer-bullet | |
| 11:58 |
Record S0/S1 qualification groundwork before product code
Contract maps and pinned Pi reference, local C qualification fixtures, MC/DC and Fil-C remote lifecycle tooling, and the context transaction substrate probe. No product harness code yet. check-in: 11f47eadde user: dmestas tags: trunk | |