CI Coverage — test → job mapping
Reading guide
The CI table shows which tests are executed by which job, not a blanket assertion that every runtime and provider was verified.
Read the ‘manual / gate-only’ section before citing security, real PG, or staged deployment coverage.
Workflow: .github/workflows/yetdapay.yml — triggers pull_request (paths: nougat-devpay/**, .github/workflows/yetdapay.yml) + workflow_dispatch. All jobs run on ubuntu-latest, Node 22.
This is the PR verification surface for the productization work (R4 §8.5). Every job below is a hard gate — no || true, no continue-on-error.
Product-plane jobs (p5)
| Job | Step | Command | What it proves |
|---|---|---|---|
product-suites | license-crypto | cargo test in be-cloudflare/license-crypto | JWS/PoP sign/verify, alg-confusion + wrong-issuer/key rejection (43 tests) |
product-suites | Durable authority E2E | bash tests/run-durable.sh in be-cloudflare | worker-build → local D1 migrations 001–017 + seeds/demo.sql + tests/fixtures.sql → wrangler dev --local → durable.test.mjs (55 assertions: PAY idempotency/webhook dedup, INBOX conflict, LIC expiry/revocation/cross-tenant 404/401, USE counters, REC findings+autofix, OUTBOX redrive) on real miniflare sqlite, not mocks |
product-suites | yp e2e | node --test tools/devpay-cli/tests/e2e.test.mjs | init/plan/apply/review/verify/doctor lifecycle + regression legs (vacuous-verify, auth pinning, TOCTOU bind, env scrub, traversal) |
product-suites | auto-protection suites | node <suite>/tests/run.mjs ×8 in experiments/auto-protection (WABT_BIN=/usr/bin, apt wabt installed) | spec, planner, analyzer (static/dynamic/classify/determinism/bigint/wasm/protection — wasm legs need wasm-objdump -x/-d from wabt), partitioner (transform/hardening/sandbox-globals/select/equivalence), track-a, track-b, evidence (record/validate), metrics (reproducibility/traceability) — node:test, loopback-only servers |
security-regression | artifact validation | node red-team/tests/run.mjs in experiments/auto-protection | Committed r18 47-leg battery artifacts: schema, result enum, on-disk evidence per executed claim, matrix↔results agreement, real sha256 on REA calls (13 checks) |
security-regression | p4 battery (conditional) | be-cloudflare/tests/red-team/run.sh else run.mjs | Not landed yet — step is if:-gated on file existence; when absent it is skipped (not passed) and a ::notice:: annotates the run. When p4 merges it executes with worker-build + wrangler v4 preinstalled; prefers run.sh so the battery can orchestrate its own wrangler dev harness |
Pre-existing jobs (unchanged)
| Job | Covers |
|---|---|
cf-worker-build | cargo build --release --target wasm32-unknown-unknown (be-cloudflare) |
proto-check | buf lint + buf breaking vs PR base (contracts/) — reads buf.yaml only; contracts/buf.gen.yaml is intentionally unused dead config (no buf generate step; BE types come from be/build.rs protox+prost-build) |
be-test | cargo test (axum be/: unit/integration/security/outbox/migration) |
fe-check | pnpm vue-tsc --noEmit |
e2e | Playwright against real be binary, dev auth, temp sqlite — needs be-test + fe-check |
docker-smoke | compose build/up, FE proxy → BE health, prod-auth fail-closed 401 — needs be-test + fe-check |
Still gate-only (not in CI)
| Item | Why | Where it runs |
|---|---|---|
REA MCP heavyweight legs (reajail-*, live binary/session probes) | Require the REA MCP toolchain + interactive agent runtime; CI validates their recorded artifacts only (security-regression step) | Manual agent gate — see experiments/auto-protection/results/rea-mcp/ |
red-team/unified-attacks.mjs live re-execution (47 legs) | Spawns partition servers + browser legs locally; ~minutes, research-surface scope. Artifact validation is in CI; re-execution is a release-gate decision | Manual: node unified-attacks.mjs then node red-team/tests/run.mjs |
Production/staging deploy (wrangler deploy, Pages deploy, D1 remote) | Charter §0: staging-first, production requires explicit user authorization | Manual via deploy scripts only |
| Remote D1 migrations / seed / reset | Same authorization gate | Manual |
Notes for CI maintainers
run-durable.shcallsnpx wrangler; the job installswrangler@4.156.0globally (exact pin = locally verified version) so npx resolves it from PATH.worker-buildis pinned0.8.7to trackworker = "0.8"inbe-cloudflare/Cargo.toml— bump together.- Workflow is
permissions: contents: read— every job is build/test only; no step needscontents:write/packages/id-token. Deploys stay manual. - Third-party actions remain tag-pinned (
@v4,@stable) — accepted LOW risk; full-SHA pinning + Dependabot updates is a future hardening item (noted inline at the top of the workflow). run-durable.shwrites.dev.vars(git-ignored, test-only dummy keys —TOSS_*usestest_prefixes,TOSS_API_BASEpoints at a loopback stub).wrangler dev --local+ miniflare local D1 works on GH ubuntu runners (verified equivalent locally: 55/55 PASS, wrangler 4.156.0, node 22).- wabt is a test dependency of the analyzer wasm legs: the job
apt-get install -y wabt(Ubuntu universe → 1.0.34) and exportsWABT_BIN=/usr/binto the auto-protection step. Onlywasm-objdump -x/-dis used, so the distro version suffices — verified locally against the extracted noble .deb (analyzer 61/61 PASS).analyzer/lib/wasm.mjsresolution order:wabtBinoption →WABT_BINenv →PATH; with no wabt it degrades honestly tobinary-fallback(callGraph null, requiresWabt), and the wabt-path assertions then fail — the tool is a hard dep in CI. - No
/home/...machine-local paths remain in executable sources underexperiments/auto-protection(analyzer/lib/wasm.mjs,red-team/*.mjs,exp*/build.mjsnow resolve viaWABT_BIN/REA_BIN/CHROME_EXE/PLAYWRIGHT_NODE_MODULESenv → PATH). Absolute paths insideresults/**/evidence/**JSON are recorded historical evidence — test inputs, not executed paths — and are intentionally not rewritten. - The p4 red-team battery landing must keep
tests/red-team/run.{mjs,sh}self-contained (orchestrate its own dev server likerun-durable.sh) or thesecurity-regressionstep needs revisiting.
S1 stabilization update — landed on main after 45e270c
Baseline doc: docs/release/s1-main-stabilization.md (b56dbe1). The job tables above describe the pre-S1 workflow; deltas landed on main:
cc75724(s1-05) — outcome-derived job summaries. Thefinancial-integrity,examples, andsecurity-regressionjobs now derive each row's status — PASS / FAIL / SKIPPED / BLOCKED / NOT_VERIFIED — from the realsteps.*.outcomevalues instead of a static table. A step that was skipped or never ran can no longer be summarized as "ran". Triggers are unchanged (pull_requestpaths +workflow_dispatch; the push-to-main trigger decision stays deferred per cost policy). An actual GitHub Actions run exercising the new summaries has not been observed —NOT_VERIFIED.6d8bb72(s1-02) — settle-recovery fixture-pollution fix.settle-recovery.test.mjsSREC-01 now derives its expected set independently; the suite had read 23/25 in CI because of integrity-suite fixture leftovers, and is now 27 checks. Implementation code unchanged — this was a test-isolation defect.45ffde5(s1-04b) — new failclosed suite. Local harnesstests/run-failclosed.sh→tests/failclosed.test.mjs(20/20 locally) drives injected-failure legs through theNOUGAT_FIseam, which is armed only whenDEV_AUTHis enabled andPAYMENT_MODEis non-production. Whether/when this runner is wired intoyetdapay.ymlshould be checked against the landed workflow — not asserted here.c372a2b(s1-03) —examples/agent-mcp/driver.mjsresolves the MCP entry fromtools/devpay-mcp/package.jsonbinwith anexistsSyncfail-fast (affects theexamplesjob's B leg).
Local suite status at 45ffde5 (loopback only): settle-recovery 27/27, refund-safety 32/32, integrity 22/22, failclosed 20/20, examples A+B+C PASS, exceptions-ops 38/38, audit-evidence 47/47 — the last two were executed in a prior wave, not re-run in S1.
Still gate-only / NOT_VERIFIED in CI terms: real GitHub Actions run of the new summaries, remote D1, deployed cron assurance, R2 checkpoint export, external alerts, and the per-probe-class assertions for settle.claimed/settle.chk/settle.counter (armed via NOUGAT_FI, not individually asserted — S2 follow-up).
S2 assurance wave update — wired on main at 1b4f139 (s2-11)
The S2 wave added nine new suite steps to the financial-integrity job — all required gates (no continue-on-error, no || true). The job now aggregates 14 suite outcomes plus bootstrap/wasm steps and reports overall PASS/FAIL/NOT_VERIFIED; a suite that never ran can never read as PASS.
| Step id | Runner | What it proves (recorded legs) |
|---|---|---|
suite_oracle | bash tests/run-oracle.sh | s2-01 independent financial oracle — expectation math computed in tests/oracle/financial-oracle.mjs without app imports; counterexample injections (50 legs) |
suite_recon2 | bash tests/run-recon2.sh | s2-02 recon hardening — settlement membership/fee/run cross-checks, post_settlement_refund, caps + resume, recon.persist probe (39 legs) |
suite_fault_injection | bash tests/run-fault-injection.sh | s2-03 x-fi-probes request-scoped fault arming; mid-pipeline injection incl. SIGKILL mid-claim (77 legs) |
suite_durable2 | bash tests/run-durable2.sh | s2-04 inbox/outbox durability — real Toss authority stub + OUTBOX_SINK_URL sink stub, lease contention (19 legs) |
suite_audit2 | bash tests/run-audit2.sh | s2-05 audit v2 verify + evidence continuity, phases A–G; independent audit-v2-verifier.mjs cross-check (79 legs) |
suite_recovery_security | bash tests/run-recovery-security.sh | s2-06 recovery-op security controls — SoD, authz, idempotency, CAS, evidence, no external PG mutation (46 legs) |
suite_alerts | bash tests/run-alerts.sh | s2-07 severity/alert contract — alert:recon_failures evidence + consumer read (28 legs) |
suite_assurance_gaps | bash tests/run-assurance-gaps.sh | s2-10 routed fixes — cron resume/reap, EXECUTING convergence, evidence coverage, webhook freshness, counter self-heal, prod preflight (26 legs) |
suite_perf_baseline | bash tests/run-perf-baseline.sh | s2-08 measured baseline (~4–5 min) — placed last so integrity failures fail fast; perf-baseline-out/ uploaded as an artifact (22 legs) |
Honest boundaries:
- No observed CI run yet — the steps are wired at
1b4f139; an actual GitHub Actions execution of them isNOT_VERIFIEDat record time. Outcome-derived summaries keep this from reading as PASS. - All nine suites remain local-loopback only in CI too — miniflare local D1 + loopback stubs; nothing touches remote D1, a deployed worker, or a real PG.
run-failclosed.sh(20/20 local) andrun-integration.shremain not wired — local-only runners.