Skip to content
pi-c Check-in [417d9dcb01]
Login

Check-in [417d9dcb01]

Overview
Comment: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.

Timelines: family | ancestors | descendants | both | stage-2
Files: files | file ages | folders
SHA3-256: 417d9dcb01909be5e9efaab2c02dda32c73fd1175f441f3c1b987ebdfb4f822a
User & Date: dmestas on 2026-11-18 18:04:16.262
Other Links: branch diff | manifest | tags
Context
2026-11-18
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

Changes