Overview
| Comment: | 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. |
|---|---|
| Timelines: | family | ancestors | descendants | both | stage-3 |
| Files: | files | file ages | folders |
| SHA3-256: |
ba0addd3d75b879ef44c502b4dedc633 |
| User & Date: | dmestas on 2026-11-18 19:42:49.739 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-18
| ||
| 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 | |