Documentation
¶
Overview ¶
Command initstats measures a run of physa init on a repo whose map and code must stay where they are, and prints a record of numbers that can leave it.
It runs init's three phases in the repo (--gather, --propose, --recover, each with --json), times each, and keeps their raw output under the repo's store (.git/physa/initstats/<time>), which is never committed. Then it prints the record: the repo's shape, each phase's time and exit, and init's counts and tokens. The record is built from an allowlist: only fields declared below are read, strings only from fixed sets (statuses, source names, extensions, models), so names, paths, promises, questions and map text never reach it. Read it before it leaves.
go build -o ~/bin/initstats ./tools/initstats # once, in Physa's clone initstats -label repo-a [-dir REPO] [-physa physa] [-agent NAME] [-since YYYY-MM-DD] [-max-prs N] initstats -label repo-a -from REPO/.git/physa/initstats/<time>