Contributing¶
See the commit policy direction for 0.2.0 for the historical problem-led design rationale and customization principles behind YAGA's commit policy.
The docs gate checks rendered local links and anchors, including README routes and the public
logo, against the built site. Run uv run make docs after changing documentation or navigation.
Keep changes focused, test-backed, and explicit about the public command, configuration, diagnostic, or Action boundary they affect.
Development loop¶
Use Rust 1.99+ (1.100+ is used by CI and Windows releases for direct suspended-thread resumption),
Python 3.12+, and uv 0.12.7+. The full gate
also needs Git, GNU Make, Bash, a running Docker engine with Linux containers, and Typos CLI
1.49.0. On Windows, put Git for Windows Bash on PATH before the WSL launcher. uv sync installs
the Python development tools and builds the editable launcher wheel.
The full gate covers cargo fmt, cargo clippy, cargo test, Python launcher formatting/lint/type
checks and packaging tests, repository policies, workflow linting, documentation, and the
zero-dependency wheel build. Its default changed-path range is only HEAD^..HEAD.
For a complete PR, run from the head checkout with exact base/head SHAs already available in
complete local history:
uv run yaga commit check --range '<base-sha>..<head-sha>'
uv run make ci CHANGE_RANGE='<base-sha>...<head-sha>'
The two-dot command checks all branch-only commit messages; the three-dot override checks paths against the unique merge base. No remote branch is inferred and no history is fetched. Workflow, formatting, and test checks still read the current checkout. See minimum runtime qualification for the zero-dependency wheel launcher checks.
The documentation-only loop is:
Zensical's strict clean build catches broken navigation and source links without relying on stale build cache.
Pull-request jobs and .yaga/ dogfooding¶
YAGA dogfoods every policy in .yaga/ (and [tool.yaga.commit] in pyproject.toml) through the
root YAGA Checks Action (uses: ./) on pull requests while keeping internal Python build/test
gates in separate named jobs:
- Marketplace Action dogfooding (
uses: ./): Commit Messages(commit-policy.yml):check: commitagainst[tool.yaga.commit]andcheck: pr-descriptionagainst.yaga/description-policy.toml(rechecked on PR title/bodyeditedevents without rerunning the full test matrix).YAGA Checks (branch, change, policy, repo)(ci.yml):check: branch(.yaga/branch-policy.toml),check: change(.yaga/change-policy.toml),check: policy, andcheck: repo(.yaga/checks/ci.toml, coveringmode,path,size,tree,workflow,workflow-security,workflow-lint, andcommit).Publish Pull Request Review(pr-review.yml): trustedcheck: pr-triageagainst.yaga/triage-policy.tomlposts admission findings and propagates holds, thencheck: pr-reviewevaluates.yaga/agent-review-policy.tomlbefore formal publication.- Repository engineering & fixture suites:
Lint, Package Build & Docs,Rust CLI, tests, and wheel(Ubuntu + Windows, pluscargo package --workspace --locked),macOS ARM64 Rust tests and wheel, andPython 3.12–3.15wheel verification inci.yml, aggregated into the single branch-ruleset gateCI Prerequisites.Action E2E Fixture (<scenario>)(commit-adoption-qualification.yml): synthetic pass/fail fixture repositories testingcheck: commit.
Change and review rules¶
Keep documentation responsibilities clear¶
The README explains the problems YAGA solves and routes readers into the documentation. Keep command examples, policy schemas, diagnostics, limits, and deployment procedures in their reference pages. Update that reference when behavior changes; add a README entry only when there is a new user problem or capability worth discovering. The command index and CI-adoption guide link to those references rather than repeating their contracts. Documentation contract tests target the owning reference page, not the README. Recipes may show a focused example; they should link to the reference for the complete rules.
Use Conventional Commit subjects and preserve unrelated work in the checkout. Keep parser structure separate from configurable policy, maintain stable diagnostic identifiers, and add focused tests for every new contract. Read CONTRIBUTING.md before opening a pull request.
When changing Rust or Python dependencies, keep Cargo.toml/Cargo.lock and
pyproject.toml/uv.lock synchronized. Before pushing, inspect the working and cached diffs and
run the complete gate.
Record user-visible changes in docs/changelog.md, the single release-history source
linked from the root CHANGELOG.md. Follow its Keep a Changelog convention. Do not turn it into a
raw commit log; summarize the outcome and call out migration or security consequences.
Build these docs locally¶
The documentation site is managed by Zensical:
make docs performs a clean strict build. make docs-serve starts the local preview server at
http://localhost:9000 by default. Override the address when needed, for example
make docs-serve DOCS_ADDR=127.0.0.1:8000.
Without Make (including on Windows), run the same commands directly:
Open http://127.0.0.1:9000 and leave the server running while editing: saved documentation
changes rebuild automatically. Press Ctrl+C in its terminal to stop the preview. The header's
theme control cycles between light, dark, and your system preference.
Every push to main publishes the clean build to GitHub Pages.