Docs/Evidence
Conformance Pipeline
The oracle capture pipeline runs real NumPy, captures its output, and compares against our implementation:
# Recommended: require a real NumPy oracle and let the runner bootstrap a repo-local
# .venv-numpy314 with uv if needed.
FNP_REQUIRE_REAL_NUMPY_ORACLE=1 \
cargo run -p fnp-conformance --bin capture_numpy_oracle
# Run differential comparison
cargo run -p fnp-conformance --bin run_ufunc_differential
To manage the interpreter explicitly:
uv venv --python 3.14 .venv-numpy314
uv pip install --python .venv-numpy314/bin/python numpy
FNP_ORACLE_PYTHON="$(pwd)/.venv-numpy314/bin/python3" \
cargo run -p fnp-conformance --bin capture_numpy_oracle
| Environment variable | Effect |
|---|---|
FNP_ORACLE_PYTHON |
Path to a Python interpreter with NumPy. Explicit non-default paths win over repo-local bootstrap. |
FNP_REQUIRE_REAL_NUMPY_ORACLE=1 |
Require a real NumPy oracle. If FNP_ORACLE_PYTHON is unset (or left at python3), capture_numpy_oracle bootstraps and reuses .venv-numpy314 automatically, preferring uv, then standard venv + pip, finally a user-site pip install numpy fallback when the worker lacks venv tooling. |
FNP_WORKFLOW_RETRIES / _FLAKE_BUDGET / _COVERAGE_FLOOR |
G6 workflow-scenario gate tuning. CI pins to 0/0/1.0; local scripts default to 1/0/1.0. |
FNP_PERF_AB_REFERENCE / _AB_ROUNDS / _MAX_MEDIAN_REGRESSION_RATIO / _COVERAGE_FLOOR / _REPORT_DIR |
G7 same-job A/B tuning: reference commit (default HEAD^; HEAD gives an A/A run), rounds per arm, budget, coverage floor, output directory. CI pins 9 / 0.07 / 1.0 / /tmp/perf_ab. |
FNP_SECURITY_RETRIES / _FLAKE_BUDGET / _COVERAGE_FLOOR |
G4 security gate tuning. CI uses script defaults (1/0/1.0). |
FNP_TEST_CONTRACT_RETRIES / _FLAKE_BUDGET / _COVERAGE_FLOOR |
G5 test-contract gate tuning. CI uses script defaults (1/0/1.0). |
FNP_RAPTORQ_RETRIES / _FLAKE_BUDGET / _COVERAGE_FLOOR / _PARALLELISM |
G8 raptorq gate tuning. CI uses script defaults (1/0/1.0/1). |
RUST_TOOLCHAIN |
CI workflow env var pinning the nightly channel (must match rust-toolchain.toml). Mirror when bumping nightly. |
Additional conformance / artifact commands:
cargo run -p fnp-conformance --bin generate_benchmark_baseline
cargo run -p fnp-conformance --bin run_performance_budget_gate
cargo run -p fnp-conformance --bin generate_raptorq_sidecars
cargo run -p fnp-conformance --bin validate_phase2c_packet -- --packet-id FNP-P2C-001
cargo run -p fnp-conformance --bin run_security_gate
cargo run -p fnp-conformance --bin run_test_contract_gate
cargo run -p fnp-conformance --bin run_workflow_scenario_gate
cargo run -p fnp-conformance --bin run_divergence_ledger -- --fail-on-missing
cargo run -p fnp-conformance --bin run_fnp_python_api_coverage -- --fail-on-missing