Artifact 16ee93f3a9581ce9ded271c58a0c41429e3f0d5b42f9af25ac35ced1b0bcfb60:
- File
docs/README.md
— part of check-in
[eae917e9e9]
at
2026-11-21 12:03:36
on branch shared-store
— Shared journal store: several pic processes on one workspace, one conversation each
Each conversation has a lease (an exclusive flock beside the journal) that its process holds while it advances it and that the kernel drops when the process and its forked children are gone. Taking a lease claims the conversation's request and settles what a dead owner left; open recovers only conversations whose lease is free. The journal lock is held shared and taken exclusive only to create or migrate the schema. SQLite runs in normal locking mode with the fair busy handler; dev builds stop on a write begun under an open read.
pic run takes only requests nobody is running. A second pic asking into a conversation in use is refused with its owner's pid. An edit that misses in a file another conversation changed says so and shows the file; a write to such a file is refused once.
New test/pic/shared.sh: two-process crash matrix, kill -9 beside a live pic, claim and admission races, stale-file results. No schema change. (user: dmestas, size: 1775) [annotate] [blame] [check-ins using] [more...]
pic documents
| Where | For | What |
|---|---|---|
| manual/ | users | how pic behaves, one topic per file |
| reference/ | users | tables of flags, settings, environment variables, keys, slash commands, RPC commands, events and hook events, checked against the code |
| dev/ | contributors | architecture, durability, testing, landing, vendoring, Fil-C |
| design/ | contributors | decisions in force and proposals: the plan, the credential project, the context API, the shared journal |
| archive/ | anyone | dated evidence and superseded studies, read-only |
Where a change is documented is in AGENTS.md.
Manual topics
Getting started, coming from Claude Code, the terminal interface, themes, sessions, models, tools, credentials, prompts and skills, hooks, processes, print mode and JSON, RPC mode, benchmarks, where pic can run, differences from Pi.