cargo xtask Subcommand Catalog
- Catalog
dev— devstack lifecycletest,e2e,validate,validate-in-network,coverage,mutants— the lanesseedandseed-verifyapi-docs— OpenAPI snapshotsmigrate— devstack snapshotssecrets— SOPS + age (ADR-017)perfdocsandplan-lint— plan lifecycle (ADR-013)policy— traceability (ADR-011 / ADR-031)- The static gates
neutrality-lint— jurisdiction neutralitydetermination-status-lint— typed determination status (#628)- Operator and maintenance commands
- Related
For a contributor or agent looking up a cargo xtask command: this page lists every subcommand
once, with its flags as clap defines them (xtask/src/cmd/mod.rs is the enum;
xtask/src/cmd/<cmd>.rs the arguments). cargo xtask --help and cargo xtask <cmd> --help
are authoritative. cargo xtask is canopy’s task runner — build, test, devstack, migration and
policy automation live here, never in ad-hoc shell — and you drive the devstack through it
rather than raw docker compose, since dev start, reload and restart also reserve the
ports, decrypt the dev secrets and prepare the identity plane around the up (dev — devstack lifecycle). What each command means is owned elsewhere: the
lanes, the push gate and E2E by Testing; first run and the devstack lifecycle
by Local Development; every variable by
Configuration Reference; migrations by Database Migrations. The canopy
end-user CLI (ADR-007 parity) is a different binary — canopy CLI Reference.
Catalog
Purpose text follows the enum’s doc comment. "Gate" names the cargo xtask validate stage or
CI job that runs the command, where one does (the stage list).
| Subcommand | Purpose | Gate / when |
|---|---|---|
|
Manage the Docker devstack ( |
Daily |
|
fmt, clippy and the two nextest lanes ( |
Pre-push step 2 ( |
|
Playwright E2E against the devstack ( |
The battery; after UI / route changes |
|
The battery ( |
By hand, when you want it |
|
This machine's checks, not the tree's: the cargo tools and docker daemon ( |
New machine; |
|
|
Opt-in; CI manual job — Validate In-Network Runner |
|
k6 performance tests and the chain / replay perf harnesses ( |
By hand ( |
|
Seed the devstack databases with deterministic test data ( |
Fixtures; run by |
|
OpenAPI snapshot drift against the live services ( |
|
|
Unit-lane line-coverage gate via cargo-llvm-cov + nextest (#1382); |
CI job |
|
Unit-lane mutation testing via cargo-mutants + nextest (#466): gates missed mutants against |
Local and manual only; never |
|
|
Disk hygiene |
|
canopy-identity’s deploy gate ( |
Before a canopy-identity deploy; upstream IdP work; the pre-push hook ( |
|
Snapshot / rollback the devstack databases ( |
Before a risky migration |
|
SOPS-encrypted dev-secrets workflow ( |
ADR-017 |
|
Policy traceability: audit citations, sync the policy cache, detect drift ( |
|
|
Scenario-inventory gate (ADR-031 §3 / ADR-032): schema, bindings, per-corpus coverage (The static gates) |
|
|
Code-quality debt ratchet against |
|
|
JDM ruleset gates: compile every layer’s decisions, lint numeric literals, check processing-day parity (The static gates) |
|
|
Fetch the configuration repositories |
Before working with the real federal or Georgia layer; the car |
|
Move one layer's pin to the head of a branch (#3263): resolve the head on the remote, publish it through the same verified sync, then rewrite the entry in |
After a configuration repository's change lands, to bring it into canopy (A policy change) |
|
ADR-004 data-tenancy audit; ADR-005 capabilities manifest vs compose (The static gates) |
|
|
Plan lifecycle tooling (ADR-013) and screenshot capture ( |
|
|
Re-hash every vendored JS file against |
|
|
Configuration stays out of source (ADR-051; #3265), over the tracked files: no pack file, pack table, Typst notice file, notices manifest or JDM decision model outside |
|
|
Plaintext-secrets gate for |
|
|
v7-PK regrowth gate, the global-DDL contract and the clock-default gate (#2589) over the migration tree — migrations.adoc#migration-gates |
|
|
Lane-integrity gates: |
|
|
Clippy (test and dev profile) and rustdoc over every supported feature combination no lane builds — a default feature switched off, a devstack-only feature, a default build every lane overrides — as |
|
|
CI-config regression gate (ADR-040): build-once / gate-complete invariants of |
|
|
Cross-service referential-integrity verifier over the seeded devstack ( |
After seed / schema changes |
|
Lint plan documents for the canonical Status vocabulary; |
Plan hygiene |
|
Every |
|
|
The project pages every checkout must carry exist and are filled in (#2990) |
|
|
No unguarded |
|
|
Binding-first MQ topology lint: every published routing key needs an in-tree consumer or an allowlist entry (#1089) |
|
|
Service-to-service call graph (ADR-049): |
|
|
canopy-identity’s delegated routes (ADR-049 Amendment 15): |
|
|
Deterministic tier-burndown snapshot from the GitLab milestones (#1327) (Operator and maintenance commands) |
Tracking snapshot |
|
Advisory function-shape smell radar ( |
Refactor radar |
|
Typed- |
|
|
Three audits over every production HTTP client site: each client constructor states |
|
|
Key/secret loader gate (#2489): in production code under |
|
|
Database pool gate (#2538): in production code under |
|
|
Retention-delete gate (#2577): in production code under |
|
|
Every canopy-web mutation route carries its write-authz extractor (#1004; |
|
|
canopy-web builds every upstream request path, every redirect target and every URL query value it formats through |
|
|
No new canopy-persons read that opens an SSN (#2983): a |
|
|
Single-source the per-service |
|
|
The fixture extension modules (ADR-052) are their source's build: builds each |
|
|
No |
|
|
The contested-surfaces register against the tree (#1600): |
|
|
Prove the devstack's transport fault layer (#1591): each standing Toxiproxy mirror answers, severs and answers again, and carries no fault a test left behind. |
Before a test that uses a mirror |
|
Jurisdiction-neutrality gate (#2208): eight detectors over the shared tree against |
|
|
Determination-status typing gate (#628): listed verdict fields must be |
|
dev — devstack lifecycle
cargo xtask dev start [--shared-db] [--profile <p>] [--idp kanidm|keycloak|zitadel] # reserve ports, decrypt dev secrets, cached compose build + up, write .ports.env + the URL table
cargo xtask dev stop # stop containers, keep volumes
cargo xtask dev reload [--shared-db] [--profile <p>] [--idp <idp>] # down + start; data kept — always bounces every service
cargo xtask dev restart [--shared-db] [--profile <p>] [--idp <idp>] # WIPES data: down -v --rmi local, then start (cached build)
cargo xtask dev clean --confirm # down -v across every profile; refuses without --confirm
cargo xtask dev refresh # content-hash source/deps/Dockerfile/config/migrations/seed; minimum rebuild or restart
cargo xtask dev identity # provision the devstack's identity plane on the running stack (#2764)
cargo xtask dev status # compose ps, the URL table from .ports.env, staleness report
cargo xtask dev sweep-schemas [--older-than <hours>] [--include-unmarked] # evidence-gated test-schema removal, dead leases reclaimed (#1379, #2595; default 6 h)
cargo xtask dev logs [<compose-service>] [--tail <n>] [--no-follow] # e.g. canopy-medicaid; follows by default
--profile accepts snap-only, tanf-only, medicaid-chip, caps-only, wic-only and
full (default full; VALID_PROFILES in xtask/src/cmd/dev.rs). --shared-db runs every
database on the single shared Postgres instance. --idp chooses the devstack’s upstream, Kanidm by default,
recorded in .devstack/upstream for every later bring-up (Local Development › The devstack’s upstream). refresh versus reload is load-bearing
(#609): refresh may report "up to date" when its content hash misses a change; when services
must restart, use reload. Every bring-up also prepares the devstack’s canopy-identity plane
around its up (xtask/src/devstack_identity.rs, devstack_upstream.rs): before it, the upstream’s
TLS pair and the issuer’s configuration, then the chosen upstream started (the others removed) and
provisioned, and each service’s identity secrets written (canopy-web’s upstream client secret among
them); after it, the restarts a new TLS pair needs and the cast’s seed links. dev identity runs that
last provisioning step alone (Local Development › The devstack’s upstream). What each
subcommand does to data, first run, and the feature-build stickiness of CANOPY_CARGO_FEATURES
are in Local Development.
test, e2e, validate, validate-in-network, coverage, mutants — the lanes
Semantics are owned by Testing; synopses only:
cargo xtask test [--unit] [--integration] [--no-refresh] [--host] [--skip-static] [-p <CRATE>]... [--run-ignored]
cargo xtask test --fault [--no-refresh] [--skip-static]
cargo xtask e2e [--no-refresh] [--devstack-profile snap-only|full] [--seed <u64>] [--households <n>]
[--visual] [--capture] [--jurisdiction <slug>] [-- <playwright args>]
cargo xtask validate [--skip-docker] [--timing]
cargo xtask doctor
cargo xtask validate-in-network [--with-devstack] [--no-build] [-- <validate args>]
cargo xtask coverage [--threshold <pct>] [--baseline] [--integration]
cargo xtask mutants [--smoke | --iterate | --baseline]
Every nextest lane (test, validate, coverage, mutants) arms CANOPY_TEST_INFRA=required, so an infra-dependent test panics rather than
skips when the stack is unavailable (testing.adoc#infra-required). test --integration
runs in-network by default (ADR-015); -p requires --host. test --fault is the fault lane alone: it starts and proves the transport fault layer, then runs the tests that put faults on it (Testing (Canopy)); it takes no other lane's flag. The bare cargo xtask e2e is the
blocking battery and needs the full profile plus the test-clock build
(testing.adoc#e2e-battery-journey-gate). Every e2e run names the devstack’s upstream before
Playwright starts and with its result (ADR-049 Amendment 26), and after Playwright, passing or failing, lists the
run’s five slowest specs from test-results/e2e/results.xml (#3008, testing.adoc#e2e). Every e2e run builds the token broker’s image (in the
job’s own daemon on CI), installs its inputs and brings canopy-token-broker up first, since auth-setup and
the given helpers sign in through it, and its e2e-only removal takes it down after (ADR-049 Amendment 24;
local-dev.adoc#token-broker-service). It also installs the devstack CA into
canopy-e2e's canopy_e2e_inputs volume (Node’s NODE_EXTRA_CA_CERTS) and passes the ingress leaf’s SPKI
pin as CANOPY_E2E_WEB_SPKI, which every Playwright project’s Chromium takes; the suite reaches canopy-web at
its https origins, and no storage state survives a run (testing.adoc#e2e-sign-in). The battery’s
stages (STAGES in xtask/src/validate_report.rs) are listed at testing.adoc#validate-stages. Its xtask-unix-guard stage
(#1963, #2493) fails on any std::os::unix (or linux, fd, wasi) path without a Unix cfg gate
in xtask/src or the src/ of every workspace crate cargo xtask compiles: xtask’s
normal- and build-dependency closure, read from cargo metadata --no-deps --offline when the stage runs
(xtask/src/cmd/portability_lint.rs), so a newly linked crate is covered without an edit. A failed
cargo metadata fails the stage. coverage gates the unit lane
against DEFAULT_THRESHOLD in xtask/src/cmd/coverage.rs; --baseline rewrites
coverage-baseline.toml (run it in the CI image). mutants runs cargo-mutants over the same unit
lane and fails on any missed mutant absent from mutants-baseline.toml. --smoke runs shard 0/20 and
--iterate resumes an interrupted full run on an unchanged tree. Every mode runs two passes, the workspace
without canopy-portal and the portal alone with its test features (#2230). --baseline rewrites the baseline
from both passes' missed.txt after a complete full run. It is local and manual only
(Mutation testing).
seed and seed-verify
cargo xtask seed [--seed <u64>] [--households <n>] [--jurisdiction <slug>]
cargo xtask seed --manifest-only # write tests/e2e/lib/seed.ts if absent: no SQL, secrets or devstack
cargo xtask seed-verify [--verbose]
| Flag | Default | Effect |
|---|---|---|
|
random |
RNG seed; the resolved value is stamped into |
|
|
Households to generate — the one default |
|
|
Must name a pack under |
There is no --reset flag: every run wipes and reloads the seeded databases itself (#1142) and
truncates canopy-web’s composition-override tables. The replay contract is in
Testing › The seed harness.
api-docs — OpenAPI snapshots
cargo xtask api-docs [--update]
cargo xtask api-docs --offline [--update]
Fetches /api-doc/openapi.json from every service in SERVICES (xtask/src/cmd/api_docs.rs)
on the host port .ports.env records and diffs it against the committed snapshot
docs/modules/ROOT/openapi/<service>.json; drift fails (the api-docs validate stage).
--update overwrites the snapshots. An unreachable service whose snapshot exists is fatal,
never a skip (#1364).
--offline (#3340) needs no devstack. It runs every service's
the_served_openapi_spec_is_the_committed_snapshot unit test, which builds the document the service
serves in process (canopy_api::served_openapi(ApiDoc::openapi())) and compares it with the snapshot
(canopy_test_lib::openapi); with --update the tests write the snapshots (UPDATE_GOLDEN=1, refused in
CI). The unit lane runs those tests too, so a contract change that forgets its snapshot fails before a push.
canopy-web's composition API has the same test over canopy_web::openapi::served() and the snapshot
web.json (#3671). It is not in SERVICES, so only the offline form and the unit lane check it.
migrate — devstack snapshots
cargo xtask migrate snapshot # pg_dump every Canopy database into .devstack/snapshots/<timestamp>/
cargo xtask migrate list # snapshots in chronological order
cargo xtask migrate rollback [--id <timestamp>] [--db <name>]... # pg_restore the latest (or named) snapshot; --db restricts to listed databases
rollback restores every database in the snapshot’s manifest unless --db names a subset; a
--db value not in the manifest aborts before any restore (#344). The deploy-time migration job
and the KEK-rotation rewrap are not xtask verbs: they are canopy-manage migrate apply and
canopy-manage rewrap-keks (canopy-manage Reference). The databases
a snapshot covers are the DATABASES list in xtask/src/cmd/migrate.rs, documented in
Deployment Guide. Dev and CI only — production rollback is PITR
(Database Backup & Restore).
secrets — SOPS + age (ADR-017)
cargo xtask secrets init # dev age keypair; prints the public key for .sops.yaml
cargo xtask secrets edit # open secrets/dev.yaml in $EDITOR via sops
cargo xtask secrets decrypt # print secrets/dev.yaml as a flat dotenv stream
cargo xtask secrets add-recipient <age1…> # append a recipient to .sops.yaml and re-encrypt the data key
cargo xtask secrets remove-recipient <age1…> # drop a recipient from .sops.yaml and re-encrypt the data key without it; unlisted key = no-op, last recipient = refused; then rotate every value
cargo xtask secrets generate-signing-key # a fresh ECDSA P-256 PEM for a service's signing_key: entry
The workflow and where the age key lives: Configuration Reference.
perf
cargo xtask perf [--profile smoke|load|stress|soak|identity-tokens] [--service <name>] [--save-baseline <name>] # k6; default smoke
cargo xtask perf chain-drain [--shard-counts 2,8] [--workers 1,2] [--rates 300,600] [--warmup-secs 30] [--window-secs 120] [--reps 3] [--quick]
cargo xtask perf chain-verify [--rows 2000000] [--shards 2,8] [--families audit,fti] [--skip-seed] [--warmup-secs 30] [--window-secs 60] [--reps 2]
cargo xtask perf ephemeral-schema --service <svc> [--parallel 12] [--reps 3] [--warmup 1] [--reuse on|off] [--quick] [--max-slowdown 20.0] [--expect-no-waiters]
cargo xtask perf identity [--cells idle-probe,design,peak,saturation] [--reps 3] [--warmup-secs 30] [--window-secs 120] [--seed <n>] [--audit-rate <n>] [--replicas 2] [--replica-threads 2] [--db-rtt-ms 1] [--token-rate-limit-rpm 30000] [--db-max-connections 28] [--issuance-gather-ms 2] [--workers 3000] [--requests-per-minute 3] [--fanout 3] [--onward 0.3] [--renew-seconds 300] [--opens 5] [--logouts 2] [--system 1] [--peak 2] [--quick]
Every k6 profile takes its canopy-identity tokens through the devstack token broker (tests/k6/lib/identity.js), which the run brings up and removes after, whatever its outcome. A per-VU cache serves each token until 300 s past its iat or 60 s before its exp, whichever is sooner, and refreshes are counted in identity_token_refreshes. smoke, load, stress and soak call their targets (applications, enrollment, persons, rules) with canopy-eligibility’s system tokens: it holds a System or Both edge to each, and every route they call admits a system token. Their setup() mints each target’s token once, so a broker that cannot mint fails the run before its VUs start. --profile identity-tokens (ADR-049 Amendment 24), unlike the perf identity capacity harness, verifies the broker’s tokens and sends none to a service: over 60 s, 2 VUs verify canopy-eligibility’s system tokens and a delegation, refresh within the window, and refuse tampered, expired and future-dated tokens. The three harnesses
are evidence tools run in release (cargo run --release -p xtask — perf <harness>):
chain-drain measures chain-v2 sustained ingress (#1207), chain-verify the verifier’s
catch-up and read-path independence (#1205), and ephemeral-schema parallel
EphemeralSchema replay walls with pg_locks advisory-lock waiters (#1392) — --warmup
rounds are discarded, --max-slowdown is the p95/serial ceiling, and --expect-no-waiters
fails on any sqlx-key waiter (#1810). --reuse on|off (#1938) runs with or without the schema
pool; every row also prints the p95 cleanup wall, the p95 complete round (constructor + cleanup)
and the pool hits, the report sums them, and the harness sweeps its own run’s schemas and
registry rows when it returns, errors or panics (a signal kill leaves them to the
evidence-gated sweep).
perf identity is canopy-identity’s capacity harness (#2755, ADR-049 Amendment 10;
the archived capacity-harness plan). The driver creates an ephemeral schema on
the devstack security database, a disposable login holding exactly canopy_identity_issuer's
privileges on it, a mock upstream, fresh client keys, and a run directory
test-results/perf/identity/<UTC>/ holding the client registry and upstream profile. It then
starts --replicas replicas, each this binary re-executed as the hidden perf identity-replica on
a --replica-threads-worker runtime: the token routes, the JWKS and a harness-only
GET /perf/report inside canopy-api’s outer stack, the issuer pool reached through its own
DelayRelay adding --db-rtt-ms (0 to 10; ADR-049 Amendment 12: a timer thread releases each chunk, not tokio’s 1 ms-tick timer, which had tripled a stated 1 ms, and both sockets set TCP_NODELAY; the relay counts each chunk’s hold, read to write start, in 25 µs buckets to 7 ms per direction), its stderr in replica-<n>.log (as a tool, xtask installs no log subscriber, ADR-041 A, so canopy-security’s own log lines are not written). Each prints READY <addr> once
its first key signs (about a minute: the key’s 60 s publish lead); the driver reads each report
(Amendment 12: the settings the replica resolved, the issuer pool sampled once a second and every
10 ms with each sampler’s samples counted by connections in use, and every histogram and counter
canopy-security recorded), closes each
replica’s stdin, waits for it to drain, and drops the login and the schema whenever the run returns, error included (a panic or a signal kill leaves them behind).
Each repetition starts a fresh substrate and fleet, opens --workers sessions at 50 a second
through the federation grant against the mock upstream, mints the onward subject tokens, and then
drives the load model’s six streams open loop (#2756, ADR-049 Amendment 10): Poisson arrivals at
each stream’s rate, seeded by --seed (printed when random), latency measured from each request’s
scheduled start, at most 10 000 in flight. The senders are canopy-web’s three pods (127.0.1.1–3:
session-form delegations through DelegationTokenSource, federation opens and renewals, revocations),
canopy-eligibility’s two (127.0.2.1–2: onward delegations to canopy-applications) and canopy-portal’s
two (127.0.3.1–2: client credentials), each bound to its address with
IdentityHttpClient::bound_to, alternating between the replicas. A --warmup-secs warmup is sent
but not counted; the --window-secs window is read at both edges: per stream the offered and
achieved rates, p50, p95, p99 and max, and the status mix; per replica its CPU seconds per request
(/proc/<pid>/stat) and its peak RSS (1 Hz); the generator’s lag and the host’s CPU; from the
reports, per replica each sampler’s issuer-pool maximum, mean and samples at the ceiling in the
window (G6 reads the 1 s samples), and across replicas the issuance-log writer’s commit, batch-rows
and queue-wait buckets with their mean, p50 and p99, and its failures by cause; the security database’s commits, the cluster’s WAL
bytes and checkpoints, and the issuance log’s bytes per row; and the expired jti rows. In
idle-probe and design each replica also runs the audit probe (#2757, Amendment 10): its share of
--audit-rate appends a second (default --workers / 60, one audited write per signed-in worker a
minute), Poisson, through canopy-security’s store::insert_audit_event as the schema owner on a
10-connection pool, each timed from its schedule (0.1 ms buckets below 50 ms); G4 holds when the design’s
append p99 stays within max(1.2 × the idle-probe’s, the idle-probe’s + 2 ms) and 99.5 % of its appends
commit. idle-probe sends no token load and opens no sessions. idle-probe, design and
peak run --reps repetitions on --replicas replicas; saturation runs one replica from 300
requests a second, 150 more a step, with the peak (the design rate × --peak) a step of its own
among them, each a 60 s window, until session-form delegations' p99 passes 250 ms, errors pass
0.1 % or under 95 % is answered, and reports the knee, the CPU per request there, the bottleneck
(replica CPU, the writer’s queue-wait p99 past 50 ms, the pool at its ceiling, or the commit p99
past 50 ms, the first that applies) and whether the peak’s step held with no 429. The gate table (G1–G6, each on the median of the
repetitions; a cell is INVALID when any repetition breaks G7, which since Amendment 12 also requires each replica’s relay, over the window, to hold each direction’s median at least half --db-rtt-ms and its p95 at most half plus 0.25 ms, and since Amendment 13 its p99 at most half plus 1 ms, a relay under 100 chunks exempt; Amendment 13 also bounds the host’s IO pressure, /proc/pressure/io's full total grown by at most 2.25 % of the window (twice the largest healthy window’s share in the calibration runs, 1.127 %, rounded down; it started at 1 %, which the peak cell’s own load exceeded), not judged when unreadable. One predicate judges every repetition and every saturation step by all of G7’s conditions, and the row names each broken one; a saturation step failing any is INVALID and ends the cell. The record keeps each relay direction’s p99 and its holds at or past the 7 ms bucket limit (over_limit), and the window’s IO some and full shares) prints last, and
test-results/perf/identity-<UTC>.json keeps the host, the commit, the seed, the flags, the
settings (replicas, threads and db_rtt_ms, and as the replicas report them
db_max_connections, token_rate_limit_rpm, issuance_gather_ms, writers and acquire_test;
--db-max-connections, --token-rate-limit-rpm and --issuance-gather-ms default to the
product’s defaults), every measurement and
the table; a failed or invalid gate exits non-zero. Record on a host running nothing else: G7 reads the host’s CPU, not its disk, so a concurrent build’s disk contention shows only as the record’s writer commit p99. --quick runs one design
repetition at a tenth of the rates, 100 workers, a 5 s warmup and a 15 s window, with no verdicts.
docs and plan-lint — plan lifecycle (ADR-013)
cargo xtask docs plan-lint # blocking: every non-archived plan uses the closed Status vocabulary
cargo xtask docs plan-archive [--dry-run] # move fully-Done plans into plans/archive/
cargo xtask docs screenshots # Playwright capture into docs/modules/ROOT/assets/images/screenshots/ (#421)
cargo xtask plan-lint [--strict] [--done <PLAN>] [--allow-open <N>]...
plan-lint is the universal engine’s twin of docs plan-lint; --done <plan> runs the
completion gate — referenced issues closed, cited paths exist (a short relative cite such as
given/medicaid.ts passes when exactly one tracked file ends in it; several matches block and
name the count and up to three of them — write the cite repo-relative; a cite that matches nothing
and starts outside every tracked top-level entry, or that git ignores, names a runtime artifact or
third-party source such as test-results/validate-report.json and is not judged, #2625), no TBD or "this MR", nav entry
under Archive, size and review-log caps — with exit 0 / 3 (advisory) / 1 (blocking);
--allow-open N names a standing tracker the plan may still reference; --strict makes advisory
findings block. Run docs screenshots after cargo xtask dev start && cargo xtask seed.
(Distinct from the advisory asciidoctor-lint tool.)
policy — traceability (ADR-011 / ADR-031)
cargo xtask policy audit [--jurisdiction <slug>] [--max-staleness-days 365] [--source all|jurisdiction|federal]
cargo xtask policy audit-literals [--explain] | audit-unwraps | audit-jurisdiction-literals | audit-completeness-reads
cargo xtask policy sync-cache [--jurisdiction georgia] [--pin]
cargo xtask policy drift [--jurisdiction georgia] [--no-sync]
cargo xtask policy action-coverage [--check-issues]
cargo xtask policy input-coverage
-
audit—citations.toml↔jurisdiction.tomlper pack undertarget/config/orfixtures/config/(ADR-011) and the federal layer’scitations.toml↔ the federal layer’s*.json(ADR-031 §1);--sourceselects the family. Blockingpolicy-audit/policy-audit-federalstages; CIadr-011-policy-audit,adr-031-federal-audit. -
audit-literals/audit-unwraps— hardcoded policy values and silent numeric fallbacks outsideparams.rs;--explainprints each allowlist entry with its match count (#1769).audit-jurisdiction-literals— jurisdiction values outside the ruleset mechanism (#1226; allowlistcompliance/jurisdiction-literal-allowlist.toml), among them a pack-qualified ruleset name, a quoted"<slug>-<program>-<name>"in production code, for every pack slug among the configuration layers and every program any pack’s[jurisdiction].enabled_programslists (#3135). The phone numbers, state postal code and state name it searches for are read from thejurisdiction.tomlof each packconfig-sources.lockpins (#3265), so a newly pinned jurisdiction is covered with no code change.audit-completeness-reads— a canopy-reporting federal universe must go throughCompletenessRead/UniversePager(#1249, ADR-001 Amendment 1 §B3). -
sync-cache— clone or pull the PAMMS source repos into.policy-cache/and write the sync manifest;--pinback-fillssource_sha256pins.drift— citations whose pinned source changed since verification (re-syncs first;--no-syncfor offline; exit 1 on drift, never edits values). Blockingpolicy-driftstage (georgia); the CI jobadr-031-policy-driftstays advisory. -
action-coverage— the mandated-action catalogue (compliance/action-catalogue/*.toml) against the committed OpenAPI snapshots, offline; un-allowlisted gaps exit 1. Blocking invalidate(action-coverage) and in CI (adr-031-action-coverage);--check-issuesalso queries GitLab for closed allowlist issues (off by default, #1375).input-coverage— the per-program determine-input requirements manifests are satisfiable and match the OpenAPI snapshots (ADR-034 §6); blockinginput-coveragestage, CIadr-031-input-coverageadvisory.
The static gates
cargo xtask rules check | lint-inputs | processing-days
cargo xtask compliance audit-data-tenancy | capabilities
cargo xtask scenarios audit [--online]
cargo xtask quality-budgets [--write-lock] [--workspace <path>]
cargo xtask test-lanes-lint [--static] [--verify-partition [--prove-equivalence]]
cargo xtask feature-builds
cargo xtask outbox-migrations [--check] [--write]
cargo xtask migrations-lint
cargo xtask typed-ids audit-path-uuid | cargo xtask http-clients audit-timeouts | audit-redirects | audit-builders | cargo xtask route-authz audit
cargo xtask web-paths audit
cargo xtask ssn-reads
cargo xtask secret-loads | cargo xtask db-pools | cargo xtask retention-deletes
cargo xtask mq-topology [--verbose]
cargo xtask call-graph [check | doc | census]
cargo xtask delegated-routes [check | doc]
cargo xtask vendor-check | cargo xtask secrets-yaml-lint | cargo xtask ci-config-lint | cargo xtask fn-shape-report
-
rules checkcompiles, via zen-engine, the JDM files of the federal layer and of every pack it finds under the layer roots (each directory with ajurisdiction.toml; any other directory fails the run), refuses a decision whosenameis not its file stem (#3369), prints each override a layer’s manifest declares (#3372), holds each pack's Medicaid class codes to its[[medicaid.classes]]rows (#3420), then replays each fixture against every layer’s file of its ruleset’s name, or only the layers the fixture’spackslists (#3134), and fails on a fixture whoseexpectblock it cannot read: one that is not an object, one with a member other thanoutput_fieldsandexact, or one with a member of the wrong type (#3601);lint-inputsflags, in the.jsonfiles of the same directories (#3136), numeric literals in JDM expressions that belong incontext.thresholds./input.(ADR-011);processing-dayschecks each jurisdiction’s[snap.issuance]and[shared.application_processing]clocks agree, per ruleset and per resolved ADR-012 YAML tier (#1759). -
compliance audit-data-tenancyscans the workspace againstcompliance/data-tenancy-authorisation.toml(ADR-004);capabilitiescheckscompliance/deployment-profile-capabilities.tomlagainst the live compose service set (#418). -
scenarios auditvalidates the scenario inventory’s schema and bindings and reports per-corpus coverage; everyblocked_byentry must be a#NNNissue ref (#1667);--onlinealso fails on a closed or unknown fenced issue (STALE-FENCE) via an authenticatedglab. -
quality-budgetscounts the ten debt metrics againstxtask/quality-budgets.lock; the flagless run is the gate (any OVER row fails, #1617) and--write-lockis the only sanctioned OVER path, justified in the MR (Coding Conventions (Canopy)). -
test-lanes-lintbare or--staticruns the filesystem checks (the URL-literal ban, #1381; theinfra_testsclassification walk; and the pack-dates check, #2523: no UTC date (Utc::now().date_naive(), theclock::todaypath) and no literal timezone (chrono_tz::America::New_York,Tz::UTC,chrono_tz::UTC,America::New_York,"America/New_York") and no fixed UTC time or offset (and_utc,Utc.from_utc_datetime/from_local_datetime/with_ymd_and_hms,and_local_timezone(Utc),from_naive_utc_and_offset(…, Utc),FixedOffset::west_opt/east_opt; a fixed instant written as a string or built from epoch seconds is not refused) inservices/*/tests/orcrates/canopy-test-lib/src/, matched on tokens so comments never count; a genuine use takes an entry incompliance/test-utc-today-allowlist.tomlwith a reason and the exactcountof sites it covers, and an entry covering more or fewer fails the check; and the loud-miss check, #2533: no token mint, database or broker connect or seed write in a live-test source whose miss is swallowed instead of failing the test or being reported throughskip_or_panic, testing);--verify-partitionneeds built test binaries and set-verifies the lane partition (#1377) — validate runs it as its ownlane-partitionstage afternextest-build. Its listings read the built binaries through nextest’s reuse-build metadata (--cargo-metadata+--binaries-metadata, captured once per invocation into a temp dir that is removed on exit) rather than through cargo’s build phase, so they never wait on the build-directory lock (#1936);--prove-equivalencealso runs every listing the plain way and fails unless each(binary, test)set is identical. -
feature-buildshas no flags. Every lane builds the whole workspace with default features pluslanes::BATTERY_FEATURES, and cargo unifies a package’s features within one invocation, so a crate with a default feature switched off, or with only its defaults when a lane feature or another member’s dependency declaration switches more on, is never compiled there (#2249, #2512). It first reads every workspace manifest and fails on a feature that no lane, dependency declaration orlanes::FEATURE_BUILDSentry switches on (a feature that only forwards to built ones, and that its own package never gates code on, counts as built), on a package withdefaultfeatures that no entry builds switched off, on a package whose default build every lane overrides and no entry compiles, and on a stale entry. What an entry compiles a package with is worked out the way cargo unifies it, dependency declarations of everything the invocation compiles included, so an entry that a dev-dependency quietly undoes is caught. Then, per entry, it runs clippy with-D warningsover all targets in the test and the dev profile, or, for an entry whose own dev-dependencies would switch the combination back, over the libraries and binaries in the dev profile; andcargo doc --no-depswith broken intra-doc links denied. An entry may name a target triple and dependency features that target needs (target,target_features); its invocations then carry--targetand those features, and coverage never counts it redundant with a lane (#2527). The builds today: canopy-common withoutotel; canopy-mq withoutotel(library only: its dev-dependency on canopy-test-lib restores the defaults); canopy-common and canopy-api withtest-clockandtest-fault(the devstack build); canopy-verification withoutnoop-adapters(its real-adapter production build); and the default builds lanes override: canopy-api withoutrate-limit-redisand canopy-chain withoutvector-gen(library only), canopy-store withouttest-fixtures, canopy-signing withouttest-helpers, and canopy-portal’s default build, the wasm32 client, forwasm32-unknown-unknownwithdioxus/web(binary only: its dev-dependencies are native-only; #2527). A combination deliberately left unbuilt is alanes::UNSUPPORTED_FEATURE_BUILDSentry, a tracked deferral whose reason must cite the#Nissue that owns the work: canopy-enrollment withoutnoop-adapters, which stops at acompile_error!until the real EBT adapter ships (#1553). -
outbox-migrationschecks parity by default (--checkis accepted for self-documenting scripts);--writeregenerates each service’s family migrations from the canonical sources (ADR-039).migrations-linthas no flags; its three checks are the contract in migrations.adoc#migration-gates. -
typed-ids,http-clientsandroute-authzexpose the audit subcommands named above overservices/+crates/. The threehttp-clientsaudits also scantools/andxtask/, and read the token stream, so a site in a macro body counts and one in a comment or a string does not. A builder (Client::builder(),ClientBuilder::new(),ClientBuilder::default()) is judged by the.method(..)calls straight after it, up to.build(): a setting made by a helper, a later statement or a request is not seen.audit-timeouts(#2536) requiresconnect_timeoutandtimeout;read_timeoutbounds each read and resets after every successful one, so a client stating it withouttimeout(a streamed body, where a total would cut the stream) needs an allowlist entry giving that reason;audit-redirects(#2534) requires a.redirect(..), and every.redirect(..)call, wherever it sits, to namePolicy::none().Client::new(),Client::default()and the free helpersreqwest::get/reqwest::blocking::get(a call, a plain or braced import, or a call through an importedblockingmodule) state nothing and fail both. A site that cannot comply takes an entry incompliance/client-timeout-allowlist.tomlorcompliance/client-redirect-allowlist.tomlwith a writtenreasonand acount, the exact number of sites it covers (1 when omitted); a blankcontextfails the load, and an entry covering more or fewer sites than itscountfails the audit.audit-builders(#2584) reports every client constructor outsidecrates/canopy-common/src/http.rsand canopy-test-lib: a client comes fromdata_path_client(),build_data_path_client(connect, total),data_path_client_builder(connect, total)orblocking_data_path_client_builder(connect, total), and one those cannot make takes an entry incompliance/client-builder-allowlist.toml, with the same fields.secret-loadshas no flags; a genuinely acceptable site takes an entry with a writtenreasonincompliance/secret-loads-allowlist.toml.db-poolshas no flags and no allowlist: a pool that must differ fromcanopy_db::pool_options()gets its own builder in canopy-db.retention-deleteshas no flags; a delete that may stay one statement takes an entry incompliance/retention-delete-allowlist.tomlnaming a substring of itsstatement, with a writtenreasonand acount.mq-topology --verboseprints the full publisher / subscriber map per routing key; the allowlist isxtask/mq-topology-allow.toml. -
call-graph check(#2644), the bare command, fails on an observed pair the compiled graph (canopy_auth::identity_policy::edges()) lacks, an observed sender that is no compiled client, a compiled pair no peer setting names, and any drift, kinds included, between the compiled graph and the "Compiled call graph" table inauthorization-inventory.adoc.call-graph docprints that table for pasting;call-graph census(#2642) prints the observed pairs, each with its settings, under the naming convention in Coding Conventions. -
delegated-routes check(#2802), the bare command, fails on any difference between the compiled delegated-route rows (canopy_auth::delegated_routes(), the constants incrates/canopy-auth/src/delegated.rs) and the "Delegated routes (canopy-identity)" table inauthorization-inventory.adoc, and on a listed route its service does not register; it lists, never failing, each registration whose path it could not resolve.delegated-routes docprints that table for pasting. -
web-paths audit(#2539) holds what canopy-web’s types cannot. Its clients take only anUpstreamPath, so a formattedStringnever compiles as an upstream path;Redirect::totakes any&str, and a raw HTTP client any URL. Over canopy-web’s production code (services/canopy-web/src, test code skipped by the shared resolver,typed_path.rsexempt), reading the token stream, it fails: aRedirect::{to,see_other,temporary,permanent}whose argument is not one string literal; aLOCATIONconstant or aLocation/HX-Redirect/HX-Location/HX-Push-Url/HX-Replace-Urlliteral set with a value; aformat!-family macro holding/v1/or/v1?, or formatting a…paths::constant; a.replace("{…}", ..)placeholder fill; aformat!/write!literal formatting a query value (?key={…}/&key={…}), an href orhx-getURL as much as an upstream one; a.leak()(a runtimeStringpassed off as the&'static strsource text the typed paths trust); a direct call of the macros'UpstreamPath::format/LocalTarget::formattargets; aText(..)whose argument calls.to_string()orformat!or names a posted form field (form.…); and anupstream_path!or template.bind("…", ..)value calling.into_inner(),.as_uuid()orUuid::from(..)or taking a tuple field.0(#2543: a typed id turned back into free text or a rawUuid, around a typed segment and around thebound_resource::Boundids). These two read only the expression inside the path or theText: a value built in an earlier statement, or an untypedStringpath parameter, passes. A site that cannot comply takes an entry incompliance/web-paths-allowlist.tomlwith a writtenreasonand acount, on the same rules as thehttp-clientsallowlists. A path segment formatted into an href (/cases/{household_id}) is not flagged: case-detail renderers carry the boundary-parsed household as its canonical&str, which the token stream cannot tell from raw text. -
ssn-reads(#2983) refuses a new canopy-persons read that opens an SSN. canopy-persons opens the sealed SSN, and stages a Pub-1075ssn.accessed, onGET /v1/persons/{id}and on aprojectionnamingperson_ssn(#2705, #2986). Over production code underservices/,crates/andtools/(test code skipped by the shared resolver; canopy-persons and canopy-contracts-persons, the reads' homes, exempt), reading the token stream with doc attributes skipped, it flags: aget_person/get_person_infocall;GET_PERSONoutside its definition; a string literal naming exactly/v1/persons/{…}(a sub-resource such as/coreor/incomeis not one);BatchGetField::PersonSsn; and a literal holding the wordperson_ssn. A path assembled from pieces is not seen, and the steward export, which no code calls, is not looked for. A site that shows or matches the SSN, a client method’s own request (each call to it is flagged on its own), a site that is no read at all (the PUT and DELETE share the path), and canopy-test-lib take an entry incompliance/ssn-reads-allowlist.tomlwith a writtenreasonand acount, under the same counted-allowlist rules asweb-paths(xtask/src/counted_allowlist.rs).
neutrality-lint — jurisdiction neutrality
cargo xtask neutrality-lint # the gate: non-zero on any un-allowlisted finding, regression, ratchet or stale entry
cargo xtask neutrality-lint --explain # per-entry hit tally (the audit-literals --explain shape)
cargo xtask neutrality-lint --print-baseline # [[allow]] skeleton for the UNABSORBED findings, instead of failing
The rule, stated once: packs declare vocabularies and values; shared Rust validates against the pack; a CHECK never pins a pack vocabulary; a template never names a state.
The blocking neutrality stage runs it in-process immediately after jurisdiction-literals
(#2208), pure over the tree plus compliance/neutrality-gate.toml — no network, no database, no
git. A walk or read error, an unparsable Rust file, an unsupported CHECK over a declared
pack-vocabulary column or an ALTER TABLE … RENAME TO with live tracked constraints fails the run
rather than shrinking it. The georgia layer is never scanned, nor are xtask, tools, design
and the rest of target (the fetched federal layer under target/config/ is); a path under [scope].exclude_globs is removed from every detector. Each finding
prints as ✗ path:line [detector] — excerpt; a clean run ends
✓ No un-allowlisted findings (A allowlisted across E entries).
Identity matching is one shared rule for every detector: the [tokens].prose regexes (PAMMS,
Chart [0-9], the lettered \bChart [A-Z][0-9]*\b that takes Chart B2 but not Chart Data,
\bDFCS\b, \bOSAH\b, Senior SNAP, …) over the non-comment text, plus the identifier rule
over every [A-Za-z0-9_]+ run — split on _ and on a lower-case-or-digit → upper-case boundary,
a run hits when any lower-cased segment equals a stem (georgia, dfcs, pathways, p4hb,
tfsp, …) or the lower-cased whole run contains a compound stem (peachcare, pamms,
seniorsnap, …). tfsp_signature, GrgPayment, P4hbFp and "georgia-snap-…" hit;
msp_eligible (Medicare Savings Program), crispness and snapshot do not.
The eight detectors
Comments never produce a finding in any language, with one deliberate exception: rust-vocab
reads the doc attributes on a vocabulary declaration, because that citation is what marks the
vocabulary as policy. test-canon is the one detector that reads test code; every other detector
skips it.
| Detector | Scans | A finding is | Deliberately excluded |
|---|---|---|---|
|
Non-test Rust under |
Any line with an identity hit — an identifier or a rendered string |
Comments; |
|
The same non-test Rust, parsed with |
The declaration line when its doc attributes match a |
The same test exclusions, every test-only item included; a CFR-only doc comment is not a finding; a parse failure fails the run naming the path |
|
Every |
A |
SQL comments; numeric |
|
Every |
Any remaining line with an identity hit; string contents are kept. Georgia is also a typeface, so
a stylesheet’s |
|
|
Every |
Content: any line with an identity hit after per-language comment masking. Structure: a
|
The georgia layer; |
|
Test code only: the test-only files and regions above plus every |
(a) An |
Negative polarity ( |
|
Build-time metadata, whose values a build bakes into a shipped artifact (#2622): every
|
Any line with an identity hit after comment masking |
TOML |
|
Every file under |
A top-level |
The development overlay ( |
The config file: compliance/neutrality-gate.toml
[scope]
exclude_globs = [] # per-jurisdiction extension crates (#2216), e.g. "crates/canopy-ext-*/**"
[tokens] # identity and citation patterns: prose regexes, identifier stems, manual citations
prose = [...]
stems = [...]
compound_stems = [...]
manual_citation = [...]
[[pack_vocabulary_columns]] # a live CHECK list on this column is always a finding
table = "snap_certifications"
column = "certification_type"
pack_key = "snap.certification.categories" # documentary: the loader never resolves it
issue = "#2209"
[[allow]]
detector = "rust-vocab" # rust-identity | rust-vocab | sql-check | copy-identity | pack-identity | test-canon
file = "crates/canopy-contracts-renewals/src/certifications.rs"
line_contains = "digest=3f9a1c0b7e2d" # optional, non-empty; rust-vocab and sql-check entries pin the digest
count = 1 # exact number of findings this entry absorbs
issue = "#2209" # tracked form; OR kind = "by-design" + adr = "ADR-NNN" (page must exist)
reason = "closed CertificationType enum (Chart 3105.1); #2209 makes the vocabulary pack data"
A file that breaks any of these is a config error, never a pass:
-
every
[tokens]regex compiles;detectoris one of the six names; -
count ≥ 1;line_contains, when present, is non-empty;reasonis non-empty; -
a tracked entry carries
issue = "#N"and noadr; a by-design entry carrieskind = "by-design"and anadrwhose ADR page exists, and noissue; -
a
(detector, file)pair carries either exactly one entry withoutline_containsor one or more entries with distinctline_contains— never both; -
fileis repo-relative with forward slashes; -
every
[[pack_vocabulary_columns]]row carriestable,columnandissue(pack_keyis optional and documentary).
Federal reference tables that define Georgia (the canopy-reference FIPS state rows and the
counties keyed by FIPS) and a CHECK on a federal enum that still flags take the by-design form
with adr = "ADR-006"; every other entry names the family issue that will drain it.
The exact count rule
An entry matches a finding when detector and file are equal and either the entry has no
line_contains or line_contains is a substring of the finding’s excerpt; a finding is absorbed
by at most one entry, a pair’s entries tried in file order. Every entry must absorb exactly
count findings, and every declaration must still describe a live constraint:
-
more findings than
count→regression (N found, count = M); -
fewer but non-zero →
ratchet: lower count to N; -
zero →
stale allowlist entry — the site is fixed; delete the entry; -
a
[[pack_vocabulary_columns]]row matching no live constraint →stale pack-vocabulary declaration.
The file therefore neither grows nor drains silently: a family fix that removes a site also removes or lowers its entry, and a new site in an allowlisted file is a regression, not an absorbed one. The gate exits non-zero on any unabsorbed finding, regression, ratchet, stale entry, stale declaration, unsupported CHECK or config error.
Digests. A rust-vocab excerpt carries digest= — the first 12 hex of SHA-256 over the
declaration’s sorted member idents (or element literals); a sql-check excerpt carries the same
over the constraint’s sorted token list. An entry for either pins line_contains = "digest=…",
so adding a variant or a token changes the digest, leaves the old entry stale and surfaces the new
digest un-allowlisted.
--print-baseline. Instead of failing, prints a TOML skeleton of [[allow]] entries for the
UNABSORBED findings only, grouped by (detector, file) with the exact count, a
line_contains = "digest=…" per rust-vocab / sql-check finding and empty issue and
reason — the implementer fills them in; the loader rejects empties, so the skeleton cannot be
committed as-is.
What the gate does not promise. Its promise is no new line, declaration member, constraint
token or pack file. Growth inside an already-flagged line — a second identity token on a line an
entry already absorbs — is invisible to it, and numeric policy values stay with the ADR-011
sweeps (policy audit-literals, audit-unwraps, rules lint-inputs). The helpline detector of
policy audit-jurisdiction-literals (#1226) spans test code and stays a separate gate.
Extension crates. The gate is scoped to the shared tree; a per-jurisdiction extension crate may
name its state (#2216). [scope].exclude_globs — repo-relative globs supporting , ? and
* — removes a path from every detector; it ships empty.
determination-status-lint — typed determination status (#628)
cargo xtask determination-status-lint # the gate: non-zero on any violation below
cargo xtask determination-status-lint --print-baseline # [[exempt]] skeleton for the UNLISTED discovered fields, instead of failing
A determination’s status is the producing program’s signed verdict,
canopy_reference::DeterminationStatus. The blocking determination-status stage runs the gate
in-process right after neutrality, pure over the tree plus
compliance/determination-status-fields.toml (no network, database or git). It scans non-test
Rust under services//src, crates//src and tools/*/src with syn (test-only code, as the
shared resolver xtask/src/test_scope.rs names it — test-only files, and test-only items, fields
and fns; any(test, feature = "x") code is production — is skipped), and
replays each service’s migrations with the constraint lifecycle neutrality-lint uses
(xtask/src/cmd/migration_checks.rs). The config has three tables:
-
[[field]]—file,item(a struct orEnum::Variant),field, optionaltype(defaultDeterminationStatus; another type names itself: the approved/denied projectionsSuccessorDecisionandRecertVerdict, orProgramOutcome, the in-flight outcome superset — the verdicts pluspending_verification/input_unsatisfiable). After peeling&,Option<…>andVec<…>, the field’s type must be a path ending intype. An entry whose file, item or field no longer resolves is stale. -
[[column]]—service(itsservices/directory),table,column,tokens:"all"(theDeterminationStatuswire set, read from canopy-reference) or an explicit subset of it. The replay must leave exactly one live, non-NOT INCHECK list on the column, over exactly that set; a CHECK over a listed column in a form the replay cannot read fails the run. -
[[exempt]]—file,item,fieldof a discovered field that is not a verdict store, with theneutrality-lintowner rule (issue = "#N", orkind = "by-design"+ anadrwhose page exists), a non-emptyreasonand the exactcountof fields it absorbs.
Discovery. A named field of a struct or enum variant whose name matches
(^|_)(status|verdict|decision)$, whose type is stringly (String, &str, Cow<str>, or an
Option / Vec of one) and which sits beside determination_id, benefit_amount, *_amount or
*_benefit_cents must be a [[field]] (which fails until the field is typed) or an [[exempt]].
The inventory, not the heuristic, is authoritative: a verdict field without such a sibling (the
T-MSIS eligibility_status fields, for one) is listed explicitly.
Each violation prints as ✗ location [check] — message, the check one of field-type,
stale-field, column, unlisted or exempt (regression, ratchet or stale, as in
neutrality-lint's exact count rule).
Operator and maintenance commands
cargo xtask fault-preflight [--up] [--required]
cargo xtask identity conformance --idp kanidm|keycloak|zitadel [--keep] [--cargo-profile <PROFILE>]
cargo xtask identity matrix [--all] [--e2e] [--cargo-profile <PROFILE>]
cargo xtask board [--json] [--set-baseline]
cargo xtask target-report [--prune <SUBTREE>]...
-
identity conformance --idp <idp>stands up that upstream’s opt-in conformance graph (profileidp-kanidm,idp-keycloakoridp-zitadel) from nothing (fresh TLS, empty tmpfs database), provisions its seeded persons, writes their credentials to.devstack/idp/<idp>-conformance.json(mode 0600) without printing a secret, runs that upstream’s conformance suite (JUnit intest-results/integration/idp-conformance.xml), and removes the graph, pass or fail, unless--keep. It never touches the devstack’s own upstream. WithCANOPY_PREBUILT_KANIDM_IMAGEset (CI), Kanidm’s run pulls that image instead of building it. UnderCANOPY_CI=trueit joins the job container to the compose network and reaches the upstream by service name. With--cargo-profile <p>the suite runs from that profile's build of the battery (--workspacewithBATTERY_FEATURES) and is not linted again, so it compiles nothing after a build in that profile; the car passescar(#3358). The steps: Local Development › The conformance server and Keycloak’s and ZITADEL’s graphs. -
identity matrixruns the three suites, each from a fresh graph, when the push spec on stdin changes an identity path (git's pre-push form, piped in by hand);--allruns them whatever the push (the car's last line on a pipeline with no merge request), and--e2eadds Playwright'sidentity-planeproject on a devstack brought up on each upstream in turn. Every suite runs, pass or fail; each one’s JUnit is kept asidp-conformance-<idp>.xml(Local Development › the identity matrix). -
canopy-identity’s deploy gate is not an xtask verb: it is
canopy-manage identity check(canopy-manage Reference). -
boardreads the GitLab milestones for the public project (--set-baselinestores the counts in.devstack/board-baseline.jsonfor the burn delta);target-reportreportstarget/subtree sizes and prunes the named ones.
Related
-
Developer Guide — tech stack, repository map, the commit and push gates, common tasks.
-
Testing — the lanes,
CANOPY_TEST_INFRA, whatgit pushruns, E2E. -
Local Development — first run and the devstack lifecycle.