infra is the open factory window for YAI: the canonical place for standards, automation, and enforcement across the YAI ecosystem.
Product bundle: yai + cli + law
infra is not shipped as product - it is the open factory window.
It exists so contributors and reviewers can see exactly how we work, and so all repos can consume a single, consistent governance toolchain.
- Standards: repo layout, naming, branch/PR discipline, CI gates, documentation residency rules
- Governance automation: GitHub templates, labeling, project sync, PR enforcement
- Reusable GitHub Actions: shared governance suite consumed by
yai,cli, andlaw - Tooling: verified scripts and Python modules for validation, syncing, and evidence generation
- Not the YAI runtime product
- Not shipped as part of the customer-facing bundle (
yai+cli+law) - Not a place for runtime architecture docs or program decisions (those live in
yai)
- Standards:
docs/standards/README.md - Tooling manual:
docs/tooling/README.md - Canonical GitHub templates policy:
governance/templates/github/README.md
docs/standards/- company-grade rules (residency, template policy, project automation)docs/tooling/- how to run the factory (toolkit contract, governance suite, actions suite)governance/templates/github/- canonical GitHub templates source of truthtools/bin/- executable entrypoints (yai-*)tools/python/- Python packages powering the toolkittools/ops/- operational scripts (suite, gates, verification)migration/- inventory and cutover plans (non-product)
Prerequisites:
- Python 3.x (matching your repo toolchain)
- A GitHub token only if you use project automation features (optional)
Run basic info:
./tools/bin/yai-versionSee available commands:
ls ./tools/binConsumer repos should keep thin wrapper workflows that call the infra suite.
Example:
jobs:
governance:
uses: yai-labs/infra/.github/workflows/reusable-governance-suite.yml@main
secrets: inheritAfter stabilization, consumers should pin to a tag instead of main.
Templates must be identical across consumer repos and treated as managed mirror.
Canonical scope:
.github/ISSUE_TEMPLATE/**.github/PULL_REQUEST_TEMPLATE/**.github/PULL_REQUEST_TEMPLATE.md.github/labeler.yml
Mirror/check drift:
./tools/sh/sync_github_templates.sh sync --target ../yai
./tools/sh/sync_github_templates.sh check --target ../yaiCommon entrypoints in tools/bin/:
yai-verify- verification suite (repo checks/gates)yai-suite- higher-level suite executionyai-docs-trace-check- docs traceability validationyai-proof-check- proof/evidence validationyai-check-pins- pin integrity checksyai-law-sync- sync/update law references (canonical)yai-specs-sync- legacy compatibility stub (deprecated)
- Toolkit version is tracked in
tools/VERSION - Governance suite should be tagged when stable so consumers can pin deterministically
This repo is intended to be readable and operational.
Start with:
docs/standards/README.mddocs/tooling/README.md
PRs should be small and scoped, and include verification output when changing enforcement.