diff --git a/governance/GITHUB_TEAM_ZERO_OVERAGE.md b/governance/GITHUB_TEAM_ZERO_OVERAGE.md new file mode 100644 index 0000000..7351e7f --- /dev/null +++ b/governance/GITHUB_TEAM_ZERO_OVERAGE.md @@ -0,0 +1,73 @@ +# HMG-AI GitHub Team zero-overage policy + +## Cost objective + +Effective 2026-09-04, this policy is the billing and workflow boundary for +`HMG-AI` on GitHub Team. + +The organization may incur only the approved monthly GitHub Team seat +subscription. Usage-based products must never roll into paid overage. + +The organization therefore maintains zero-dollar hard budgets for GitHub +Actions, Packages, Codespaces, Git LFS, GitHub Models, GitHub Advanced +Security products, Copilot/Spark AI credits, and Copilot sandboxes. Budget +alerts remain enabled for the organization owner. + +## Actions boundary + +- Private-repository Actions are disabled by default. +- `HMG-AI/HMG` is the only private repository allowed to run a hosted build. +- Its only approved hosted build is the manual macOS package workflow. +- Linux and Windows package creation, tests, deployment, and publication + preparation run locally. Local evidence is reviewed before assets are added + to the private draft release. +- Public repositories may use standard GitHub-hosted runners because their + runner minutes are free. They must not use larger runners, custom images, or + paid external services. +- Workflow permissions default to read-only. A job gets `contents: write` only + for the narrow release step that needs it. +- Third-party actions are allow-listed and pinned to immutable commits. +- Organization artifact/log retention and cache retention are one day. +- Release binaries belong in GitHub Releases, not long-lived Actions + artifacts. Do not publish build outputs to GitHub Packages. + +## Repository classes + +| Class | Repositories | Actions policy | +| --- | --- | --- | +| Private release authority | `HMG` | macOS package workflow only | +| Private mirrors and products | all other private repositories | Actions disabled; local checks/build/deploy | +| Public governance and distribution | `.github`, `HMG-Benchmark`, `HMG-public` | standard runners allowed; no paid runners/services | + +`HMG-DEV-brach` remains an exact-source mirror. It must not acquire a +mirror-only workflow or source change; all validation is performed from the +authoritative `HMG` source and governed provenance. + +## Separately billed security and developer products + +- Secret Protection and Code Security stay disabled for private repositories. + Public repositories retain GitHub's free public secret scanning. +- Organization-paid Codespaces are not authorized. +- Paid Copilot seats, AI credit overages, Models inference, Spark, sandboxes, + larger runners, custom runner images, Git LFS overages, and Marketplace + subscriptions require a new explicit budget decision before enablement. +- Dependabot and dependency graph features may remain enabled where GitHub + supplies them without Actions minute charges. Their pull requests must not + reactivate private-repository Actions. + +## Change control + +Any proposal that changes a budget above USD 0, removes the hard-stop flag, +adds a private repository to Actions, creates a larger runner, increases +retention, enables a separately billed product, or introduces a package +registry must be approved by an organization owner as a billing change. + +The monthly review must compare the billing usage report with this policy and +record any non-zero net amount, its source, the immediate stop action, and the +remediation owner. + +The review must also verify that the Team seat count is intentional, every +hard budget still has an amount of zero and stops further usage, only the four +approved repositories have Actions access, no private repository has paid +security enabled, and no paid Copilot, Codespaces, Marketplace, larger-runner, +or custom-image assignment exists.