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 Linux C dependency (including transitive proc-macro build dependencies such asopenssl-sysviasqlx-macros) must be vendored in both[target.'cfg(target_os = "linux")'.dependencies]and[target.'cfg(target_os = "linux")'.build-dependencies], or kept behind an opt-in feature. - Keep
CIandDocumentationsub-2.5 min onhomelab(2 parallel workers) andReleasecache-free on GitHub-hosted runners with hard budget gates.CIandDocumentationrun in parallel onhomelab(github-runner-xpdandgithub-runner-xpd-2, falling back toubuntu-latestwithSwatinem/rust-cachefor fork PRs).Releaseruns only viaworkflow_dispatchon GitHub-hosted runners with 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_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 dispatchgh workflow run 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 6 clean wheels andsdistbuild and publish to PyPI via Trusted Publishing,github-releasecreates tagvX.Y.Zand the GitHub Release with attestations last, andinstall-from-pypismoke-tests the published package.