AGENTS.md
Working in xpd
Release and build invariants
- No unvendored system-header C crates in default builds. Linux and musllinux wheels cross-compile with
maturin build --release --zig, where system headers such as/usr/include/opensslare unavailable. Any C dependency (including transitive proc-macro build dependencies) must build from source it ships, such asrusqlitewithbundled, or stay behind an opt-in feature. A-syscrate that links a system library by default needs its vendored feature enabled in both[target.'cfg(target_os = "linux")'.dependencies]and[target.'cfg(target_os = "linux")'.build-dependencies]. - Keep
CIandDocumentationsub-2.5 min onhomelab(2 parallel workers) andReleasecache-free on self-hosted runners with hard budget gates.CIandDocumentationrun in parallel onhomelab(github-runner-xpdandgithub-runner-xpd-2).Releaseruns only viaworkflow_dispatchwith no build cache (neverSwatinem/rust-cacheorsccacheinrelease.yml),lto = "thin", andcodegen-units = 16..github/scripts/check_ci_budget.pyenforces both staticlefthook pre-commitinvariants and hard workflow runtime caps (CI <= 120sself-hosted /<= 240shosted,Docs <= 150sself-hosted /<= 300shosted,Releaseclean wheel<= 840s/960sLinux x86_64 /1140sWindows). - Never push over a red
CIrun onmain.lefthookpre-commit(check_blocking_gate.py,check_sample_marks.py,clippy,comments,rules load,discovery ranking) andpre-push(cargo deny check,check_rule_conflicts.py) mirrorCI. Fix any failure locally before pushing. - Ship a release via
workflow_dispatchonmain(tag created last). BumpCargo.toml,Cargo.lock,.claude-plugin/plugin.json, andmcp.jsontogether in one commit onmain, wait forCIgreen, then dispatchcafe ci dispatch release.yml --ref main(or-f dry_run=trueto test wheels without publishing). Theplanjob verifies version parity and thatvX.Y.Zdoes not exist yet; after all clean wheels andsdistbuild, stage in R2, and publish to PyPI,cafecreates tagvX.Y.Zand the GitCafe Release last, andinstall-from-pypismoke-tests the published package.