pic is a durable coding agent in C11. Read the architecture notes and durability before changing the journal, recovery or the seams.
Rules
- No AI attribution, anywhere. Commit messages, landing messages, tickets, comments, docs and
the changelog carry no
Co-Authored-Bynaming an AI, no "generated with", no session links or ids, and no other mark that a tool or model wrote the work. - Land through the forge. Every change reaches trunk as a landing on zeitforge, gated by the
required
testcheck; never push to trunk, neverzit landing accept. See landing. - Test before landing.
make test-picruns every suite,make test-docsincluded. Tests use a privateHOME; never point a test at the real~/.pic. - Add one line to CHANGELOG.md under today's date (UTC) with each landing, in words a user
would use.
makeregeneratessrc/changelog.inc, which is not committed. - Dependencies stay vendored. Re-vendor libfossil and SQLite with
tools/vendor-libfossil.sh(vendoring); the binary links only libc, libm and pthread.
Where documentation goes
README.md is the front door: what pic is, why it is durable, install, a five-minute start, links.
Do not add to it. make test-docs fails if it passes 90 lines or 6 KB.
| You changed | Write it in |
|---|---|
| a flag | docs/reference/cli.md |
| a setting | docs/reference/settings.md |
| an environment variable | docs/reference/env.md |
| a slash command | docs/reference/slash.md |
| an RPC command or event | docs/reference/rpc-commands.md, events.md |
| a hook event | docs/reference/hook-events.md |
| a key action | nothing: regenerate docs/reference/keys.md |
| a key default that differs from Pi's | docs/reference/keys.md, with the reason |
| how something behaves for a user | its one topic in docs/manual/ |
| a whole new feature | a new topic file in docs/manual/ |
| a difference from Pi | docs/manual/differences-from-pi.md |
| an invariant, schema or OS seam | docs/dev/ |
| a decision or proposal | docs/design/, with a status line |
make test-docs fails until a new flag, setting, variable, slash command, RPC command, event or
hook event has its row, and when a row names something the code no longer has. The key table is
generated from src/tui/keymap.c: sh test/pic/docs.sh --keys prints it.
- One fact, one place. Link to it; do not restate it.
- Reference files are tables. A row is a name, its type or arguments, its default, and one line. Explanation goes in the manual topic.
- Manual topics are for a user. Table names, column names, source file names and iteration counts belong in docs/dev/.
- Wrap prose at 100 columns.
- A test seam (an environment variable only tests set) goes in test/pic/docs.allow with a reason, not in the reference.
- Nothing under docs/archive/ is edited. Write a new file in docs/design/ and mark the old one superseded.