ADR-011 Policy-Trace ATO Evidence

Posture statement

For an ATO assessor testing whether Canopy can show where each eligibility number came from: this page names the CI job proving each part of the claim, and the commands that reproduce the evidence.

Under ADR-011 every policy value MUST be:

  • (a) in the pack’s jurisdiction.toml with a matching citations.toml entry naming an authoritative source (PAMMS section, CFR / USC citation, agency tunable), OR

  • (b) in the federal layer’s *.json, with a file-level entry in the federal layer’s citations.toml ("Every federal parameter file must have a citation here") and membership of exactly one family of the federal layer’s indexing.toml, OR

  • (c) in compliance/adr-011-literal-allowlist.toml with a written rationale.

There is no fourth case: a value matching none of these fails the build.

The gates

The ADR-011 / ADR-031 gate family as .gitlab-ci.yml runs it today.

CI job Command What it proves Exception file

adr-011-policy-audit

cargo xtask policy audit

(a) and (b): completeness, orphans, value consistency, schema, staleness, ruleset coverage and allowlist inventory over both citation families — the list is ADR-011 §3. Defaults to --source all; needs no network.

compliance/adr-031-citation-orphan-allowlist.toml

adr-031-federal-audit

cargo xtask policy audit --source federal

(b) alone, including each family’s annual indexing window per indexing.toml.

compliance/adr-031-citation-orphan-allowlist.toml

adr-011-literal-audit

cargo xtask policy audit-literals

(c): fails on a Decimal::from(<numeric>) or dec!(<numeric>) expression. Exempt: params.rs, and test-only code as xtask/src/test_scope.rs names it for every gate: a file a [cfg(test)] mod x; declaration loads (or an inner test-only ![cfg(…)] gates), and in a production file every item under a [test]-family attribute or a test-only cfg. A cfg is test-only when no non-test build satisfies it, so [cfg(any(test, feature = "x"))] code is production and is audited (#2474).

compliance/adr-011-literal-allowlist.toml

adr-011-unwrap-audit

cargo xtask policy audit-unwraps

(a)'s loophole: a .unwrap_or(<numeric literal>) in a params.rs loader silently substitutes an uncited default. The tool’s guidance is .with_context(|| "<key> missing from jurisdiction.toml")?.

compliance/adr-011-unwrap-allowlist.toml ([[allowlist]] rows plus [[scanner.extra_file]])

adr-011-ruleset-input-audit

cargo xtask rules lint-inputs

The same rule inside the rulesets: a literal baked into a JDM expression rather than read from context.thresholds. / input..

compliance/adr-011-ruleset-input-allowlist.toml

— (validate stage neutrality)

cargo xtask neutrality-lint

None of (a)–(c) — the ADR-003 / ADR-006 companion over vocabularies rather than numbers: no Georgia identity in shared non-test Rust, no manual-cited enum or &str array, no live SQL CHECK pinning a pack vocabulary, no state in a canopy-web template, no identity or state authority inside the federal layer and the fixture layers under fixtures/config/, no test pinning Georgia as canon (#2208). Pre-push only, no CI job; --explain tallies each allowlist entry against its exact count.

compliance/neutrality-gate.toml ([[allow]] rows with an exact count and an issue or kind = "by-design" + adr; [[pack_vocabulary_columns]])

adr-031-policy-drift

cargo xtask policy drift --jurisdiction georgia

Advisory only (allow_failure: true): whether a cited upstream file changed since its source_sha256 pin.

—

rules-check (cargo xtask rules check) compiles every JDM file in the federal layer and in every pack among the layer roots (each directory with a jurisdiction.toml), and evaluates the happy-path fixtures against each pack’s file carrying the fixture’s ruleset name. It carries no citation logic: it proves none of (a), (b) or (c), only that the rulesets the citations describe still load.

Regenerating the evidence pack

# Blocking gates — a failure names the offending key, file or expression.
cargo xtask policy audit
cargo xtask policy audit-literals
cargo xtask policy audit-unwraps
cargo xtask rules lint-inputs
cargo xtask rules check

# Snapshot both citation manifests.
mkdir -p evidence
cp target/config/georgia/current/citations.toml evidence/adr-011-citations-georgia-$(date +%F).toml
cp target/config/federal/current/citations.toml evidence/adr-011-citations-federal-$(date +%F).toml

# Allowlist sizes.
grep -c '^\[\[allowlist\]\]' compliance/adr-011-literal-allowlist.toml
cargo xtask policy audit-literals --explain

cargo xtask policy sync-cache is not part of this recipe — the audit reads only local files. Sync the PAMMS cache before policy drift or a re-pin instead.

Allowlist hygiene

An entry in compliance/adr-011-literal-allowlist.toml is an exact triple — file, expression, and a context substring that must appear within one line of the match — so it suppresses one known site, never a pattern. There is no wildcard form and no verified_date field. reason is enforced by code review, not by the gate: the audit prints it on consultation but never validates it, and the file’s header states that a placeholder reason will not pass review. The mechanical check is cargo xtask policy audit-literals --explain (#1769), which reports each entry’s match count — 0 means a dead entry to retire.

What this does NOT prove

  • The accuracy of a cited value. A PAMMS section may have been amended since the citation’s verified_date; currency is a separate loop, the Policy Currency Runbook.

  • The semantic correctness of a ruleset. rules check proves it compiles and evaluates its fixture, not that it implements the cited policy. Per-program tests cover semantics; the JDM rewrite plan documents determination-flow coverage.

  • The downstream use of FTI / IEVS / SSA data. That is ADR-004 and compliance-data-tenancy.

Cross-references

  • ADR-031 — the federal citation family and the currency tooling

  • ATO Readiness — the cross-control matrix this page feeds

Edit this page · default