Artifact ba5b3d40b78bf984ce3bf115e5190375997caa03bf2b28f6ee21acf5ed302807:
- File AGENTS.md — part of check-in [728daad659] at 2026-11-24 12:07:46 on branch checkin-comments — AGENTS.md: check-in comments are one short line (user: dmestas, size: 4696) [annotate] [blame] [check-ins using] [more...]
Working on pic
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.incandsrc/manual.inc, which are not committed. - Dependencies stay vendored. Re-vendor libfossil and SQLite with
tools/vendor-libfossil.sh(vendoring); the binary links only libc, libm and pthread. - Every capability carries a tier line. A ticket or design note that adds one says
Tier: … Clock: … Record: … Default: …, and a new file undersrc/gets a row inci/tiers.tsvin the same change;make test-docsfails without it (keel, tiers). The default is not core. - Check-in comments are one short line, as Fossil's are: a summary under about 70
characters, no body. Anything longer goes in the check-in's wiki page
(
zit wiki commit "checkin/FULLHASH" -R REPO --mimetype text/x-markdown < notes). Fix an over-long comment withzit amend HASH --comment "…"; history is never rewritten.
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 |
| a source file's tier or a tier leak | ci/tiers.tsv, ci/tiers.allow, docs/dev/tiers.md |
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.
pic --helpis a synopsis (40 lines, 100 columns), not the manual. - 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. Every file in docs/manual/ and docs/reference/ is compiled into the
binary:
pic help TOPICprints it as it is, and it starts with a# Titleline. - 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.