Rules for agents that change this repository. Build, style, test and documentation rules are in CLAUDE.md.
Each PR gets one independent verifier: an agent that did not write the change. The verdict decides the merge. CI and passing tests do not replace it.
The verifier:
- Checks out the exact head SHA in its own worktree, and the base SHA in a second one when it compares behavior.
- Runs
make toolsin each new worktree, then the gate on the head:make fmt-check,make lint,go vet -tags e2e ./...andmake test. When the local Go is newer than thegoline ingo.mod, setGOTOOLCHAIN=go<that version>formake toolsandmake lint. - Runs the real binary from base and head (
go build -o bin/gccli ./cmd/gccli) against a local HTTPS mock, on Linux. PointHTTPS_PROXYandSSL_CERT_FILEat the mock. Set bothHOMEandXDG_CONFIG_HOMEto a temp directory, because gccli reads its config and file keyring fromXDG_CONFIG_HOMEon Linux, and the real one holds the owner's login. UseGCCLI_KEYRING_BACKEND=fileand a token fromauth import. For a refactor, stdout, stderr and the exit code must match base byte for byte. For a behavior change, every difference must be one the PR names. - Injects the defect that each new test claims to catch, and confirms the test fails. Runs these tests, like every test run, with
HOMEandXDG_CONFIG_HOMEset to a temp directory, because mutated test code can reach the real config. - Reruns the claims in the PR's Verification section that are cheap to rerun.
- Makes live Garmin calls only when the account owner approves them for that PR.
- Posts one PR comment that starts with
**Independent verification: PASS**,PASS+NOTESorFAIL, and names the head and base SHA it checked.
Merge only on PASS or PASS+NOTES, and only when every CI check on the verified head has passed, the darwin job too. Merge with gh pr merge <n> --merge --match-head-commit <verified head>. When main moved after the verdict, build and test main plus the PR before the merge. A new head needs a new verdict. A FAIL goes back to a fresh fix round and then a fresh verifier.
- Command names, flag names,
--jsonoutput, exit codes and the JSON error object on stderr are the stable contract. Change them only in a major release, with a migration table inCHANGELOG.md. - Default table and
--plainoutput may change in a minor release. List each change under### ChangedinCHANGELOG.md.