Contributing to Amaru
Thanks for your interest. This repository is part of the SZL Holdings platform — physics-grounded, governed AI decision infrastructure for regulated environments. Amaru is published source-available so it can be audited, evaluated, deployed into air-gapped environments (UDS / Zarf), and forked by partners.
This document is the single source of truth for how to contribute. Two lanes exist; pick the one that matches your change.
Two contribution lanes
Lane A — Community-open surface (PRs welcome, no prior agreement)
PRs are accepted for the following directories without a partnership agreement, under the DCO terms below:
| Surface | What lives there |
|---|---|
artifacts/amaru-uds/ |
The UDS/Zarf payload, build scripts, deploy manifests, doctrine demo |
docs/ |
Public-facing documentation (architecture, security, UDS-bundle, forking, runbooks) |
.github/, CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, GOVERNANCE.md, ROADMAP.md |
Repo governance files |
| Smoke tests against the public release URL | scripts/smoke-* and equivalent |
examples/, samples/, tutorials/ |
New worked examples that exercise the shipped doctrine |
| Bug fixes to anything above | Including correctness fixes to formulas / data tables |
If a downstream consumer (e.g. Defense Unicorns) forks Amaru into their own org to re-sign and republish as their own UDS package, the entire artifacts/amaru-uds/ tree, this CONTRIBUTING.md, and the doctrine demo are intentionally structured to make that fork productive on day one. See docs/FORKING.md.
Lane B — Core proprietary surface (coordinated only)
packages/amaru-core/ and packages/amaru-connection/ contain the proprietary doctrine implementation. Drive-by PRs touching these files will be closed with a pointer to this section. To contribute here:
- Open an issue describing what you want to change and why (cite the relevant physics or the failing observation).
- Wait for a maintainer to label it
core:accept-pr. We will tell you within 7 days if a PR is wanted. - Then open the PR.
This is not about gatekeeping — it's because changes here can silently violate doctrine invariants (POVM completeness, KS-18 2-cover, Bohr floor) in ways that a smoke test catches but a code review easily misses. We want to be in the loop before you spend the time.
Doctrine pre-flight checklist (REQUIRED for any PR touching packages/amaru-core/)
Every PR that touches the doctrine code MUST keep these invariants green. CI runs them; if they fail, the PR will not merge.
- POVM completeness. For every constructed POVM,
Σ E_i = Ito within1e-9. - KS-18 2-regular cover. Each of the 18 vector indices appears in exactly 2 of the 9 contexts. Verified by
Σ_ctx Σ_v 1[v∈ctx] = 36and∀v: count(v) == 2. - KS-18 unsatisfiability. Exhaustive
{0,1}^18search returns 0 assignments where every context sums to 1. - Tetrad orthonormality. Frame vectors satisfy
⟨e_i, e_j⟩ = δ_ijto within1e-9. - Bohr complementarity floor. For any conjugate pair (A,B) at maximum admissible noise,
σ_A · σ_B ≥ 0.25 − ε. - Fisher–Rao metric.
d(p,p) = 0,d(p,q) = d(q,p), triangle inequality on random simplex samples, and reduces to2·arccos(Σ√(p_i q_i))on the simplex.
Why these and not "the tests pass": unit tests can drift; these six properties are the contract. If you break one, Amaru stops being Amaru regardless of what the rest of the suite says.
Run them locally before opening the PR:
pnpm -F @amaru/core test:doctrine
node dist/amaru-uds/doctrine-demo.mjs <core-dir> <conn-dir>
bash scripts/smoke-from-public-url.sh
DCO sign-off (REQUIRED on every commit)
Every commit must be signed off under the Developer Certificate of Origin 1.1. The DCO is a lightweight per-commit attestation that you wrote the code or have the right to contribute it. Use git commit -s to add the trailer automatically:
Signed-off-by: Real Name <real-email@example.com>
PRs without a DCO sign-off on every commit will be blocked by CI. We use DCO instead of a CLA so individuals can contribute without paperwork.
By signing off you also grant the project the license terms in LICENSE for the contributed change.
How to open a good PR
- Open the issue first if the change is non-trivial (more than ~30 lines or any user-visible behavior change). Drive-by refactors will be asked to start with an issue.
- One logical change per PR. No "and while I was in there..." commits.
- Tests. New behavior gets a test. Bug fixes get a regression test that fails on
mainand passes with the PR. - Doctrine demo. If you touched anything in
packages/amaru-core/orpackages/amaru-connection/, runnode doctrine-demo.mjsagainst the rebuilt dist and paste the output in the PR body. - Conventional commit subject line.
feat:,fix:,docs:,chore:,refactor:,test:,ci:,perf:,build:. Keep the subject ≤ 72 chars. - Update
CHANGELOG.mdunder## [Unreleased]if your change is user-visible.
The PR template will walk you through this.
Issues
Use the issue templates — they exist so you don't have to guess what we need:
- Bug report — something that worked is now broken, or something doesn't match the docs / paper citation.
- Feature request — something new you'd like to be able to do.
- Doctrine question — you think a formula, derivation, or invariant is wrong. These are first-class — please file them.
- Security disclosure — see
SECURITY.md. Do not open a public issue for vulnerabilities.
Code of Conduct
By participating you agree to the Code of Conduct. We follow Contributor Covenant 2.1. The project lead is the enforcement contact: stephen@szlholdings.com.
Governance and decision-making
See GOVERNANCE.md for who decides what, the review SLA, and how the maintainer roster changes.
For a snapshot of where the project is going next, see ROADMAP.md.
Quick links
| If you want to... | Go to |
|---|---|
| Report a bug | New issue → Bug report |
| Suggest a feature | New issue → Feature request |
| Challenge a formula or derivation | New issue → Doctrine question |
| Disclose a vulnerability | SECURITY.md |
| Fork Amaru into your own UDS catalog | docs/FORKING.md |
| Verify a published release | OPERATOR-QUICKSTART.md |
— Amaru maintainers