Docs/Evidence
CI Gate Topology
Status (2026-10-08). CI run 37725278874 (commit 4164ba32b) passed all nine gates, G1 through G9. Its G2 reported 9,006 tests passed, 0 failed and 70 ignored over 309 test-result blocks (test binaries and doc-test runs). Because push runs are scheduled as described below, an intermediate commit on main may carry only a G1/G9 verdict; gh run list --workflow ci.yml --commit <sha> shows what ran for a given commit.
Nine gates run from fast to heavy, defined in .github/workflows/ci.yml. The workflow triggers on push to main, pull request to main, and manual workflow_dispatch. Every push to main gets its own run, keyed by commit SHA and never cancelled as a whole, so G1 (fmt + check + clippy) and G9 (wheel) give every commit on main its own verdict. The heavy chain G2–G8 is serialised on push by a job-level concurrency group on G2: at most one runs and one waits, and a newer push replaces the waiting one, so the tip of main always gets a full G1–G9 verdict while intermediate commits may get G1 and G9 only. A release commit gets its full run through workflow_dispatch, which that serialisation does not touch; pull-request runs keep superseding their own stale runs. Within a run, ordering is enforced by GitHub Actions needs: chaining — g2-unit-property and g9-wheel declare needs: g1-fmt-lint, g3-differential declares needs: g2-unit-property, and so on through g8-durability-decode, so a failure at any gate aborts every gate downstream of it. G1–G8 are also runnable locally as a single command via scripts/e2e/run_ci_gate_topology.sh, which orchestrates the same sequence + a closing validate_phase2c_packet sweep over the 9 P2C packets:
G1 fmt + lint cargo fmt --check && cargo check --workspace --all-targets && cargo clippy --workspace --all-targets -- -D warnings
G2 unit + property cargo test --workspace --no-fail-fast
G3 oracle differential capture_numpy_oracle → run_ufunc_differential (real numpy required)
G4 adversarial+security run_security_policy_gate.sh
G5 test/logging contract run_test_contract_gate.sh
G6 workflow forensics run_workflow_scenario_gate.sh
G7 performance budget run_performance_budget_gate.sh
G8 durability/decode cargo run -p fnp-conformance --bin run_raptorq_gate -- --retries 1 --flake-budget 0 --coverage-floor 1.0 (scripts/e2e/run_raptorq_gate.sh wraps this for local use)
G9 wheel maturin build --release → pip install the wheel → check the installed package exposes the whole extension namespace
G3 enforces a real-numpy oracle via FNP_REQUIRE_REAL_NUMPY_ORACLE=1 and rejects pure_python_fallback output. Its subject is the Rust engine: run_ufunc_differential runs the 381 cases of crates/fnp-conformance/fixtures/ufunc_input_cases.json through UFuncArray (crates/fnp-conformance/src/ufunc_differential.rs) and never calls fnp_python. The Python module's parity evidence is the G2 conformance shards (crates/fnp-python/tests/conformance_*.rs, which compare against live NumPy in the same process) plus numpy's own test suite run with fnp_python swapped in by scripts/run_numpy_dropin_suite.sh. That suite is not one of the nine gates: the separate .github/workflows/dropin.yml workflow runs it daily against the tip of main (and on demand) and fails on a divergence the newest checked-in artifacts/dropin-numpy-suite-*.json does not list, and scripts/release_gate.sh runs it for a release commit. A run on 2026-10-08 against a build of this tree covered 121 numpy test modules: 47,236 tests pass on NumPy (A/A lane), 47,189 pass with fnp_python in its place, and the 47 divergences are all owned by beads. The swap lane replaces numpy's module-level functions and the numpy.linalg, numpy.fft, numpy.random and numpy.polynomial family modules; ndarray methods (a.sum(), a.sort()) still run NumPy's own code, so method-heavy tests do not exercise fnp_python. CI explicitly sets up Python 3.12 + pip install --upgrade pip "numpy<2.5" before the G2/G3 oracle steps, pinning the oracle to the 2.4.x line (currently 2.4.3 — the version the 499/499 surface count is measured against); local invocations use FNP_ORACLE_PYTHON to point at any NumPy-bearing interpreter. After G8 the topology script also runs validate_phase2c_packet --packet-id FNP-P2C-{001..009} to confirm every P2C packet's readiness contract still passes — this is the durability-tail step that catches packet-contract drift.
Several gates accept environment-variable tuning. .github/workflows/ci.yml pins the strict CI values for G6 and G7 explicitly: G6 sets FNP_WORKFLOW_RETRIES=0, FNP_WORKFLOW_FLAKE_BUDGET=0, FNP_WORKFLOW_COVERAGE_FLOOR=1.0; G7 sets FNP_PERF_AB_REFERENCE (the push's before, a PR's base, or the perf_reference dispatch input), FNP_PERF_AB_ROUNDS=9, FNP_PERF_MAX_MEDIAN_REGRESSION_RATIO=0.07, FNP_PERF_COVERAGE_FLOOR=1.0, FNP_PERF_REPORT_DIR=/tmp/perf_ab. G4 (security), G5 (test contract), and G8 (raptorq) accept the same family of env vars under their own prefixes (FNP_SECURITY_*, FNP_TEST_CONTRACT_*, FNP_RAPTORQ_*, each supporting RETRIES / FLAKE_BUDGET / COVERAGE_FLOOR; raptorq additionally has FNP_RAPTORQ_PARALLELISM) but CI does not pin those — they fall through to script defaults (*_RETRIES=1, *_FLAKE_BUDGET=0, *_COVERAGE_FLOOR=1.0). Local runs can override any of these.
Run all gates locally:
scripts/e2e/run_ci_gate_topology.sh
For manual cargo check workspace runs, disable Cargo incremental artifacts to avoid noisy retrieval races under target/debug/incremental:
CARGO_INCREMENTAL=0 cargo check --workspace --all-targets
CARGO_INCREMENTAL=0 cargo clippy --workspace --all-targets -- -D warnings