FrankenSciPy is a clean-room Rust reimplementation targeting grand-scope excellence: semantic fidelity, mathematical rigor, operational safety, and profile-proven performance.
Condition-Aware Solver Portfolio (CASP): runtime algorithm selection driven by conditioning diagnostics and stability certificates.
This is treated as a core identity constraint, not a best-effort nice-to-have.
This project uses four pervasive disciplines:
- alien-artifact-coding for decision theory, confidence calibration, and explainability.
- extreme-software-optimization for profile-first, proof-backed performance work.
- RaptorQ-everywhere for self-healing durability of long-lived artifacts and state.
- frankenlibc/frankenfs compatibility-security thinking: strict vs hardened mode separation, fail-closed compatibility gates, and explicit drift ledgers.
- project charter docs established
- legacy oracle cloned:
- /dp/frankenscipy/legacy_scipy_code/scipy
- first conformance vertical slices landed:
FSCI-P2C-001tolerance validation packetFSCI-P2C-002dense linalg packet- RaptorQ + decode-proof artifact generation in
fsci-conformance - interactive
ftuidashboard binary for artifact navigation
- scoped linalg/sparse/opt/stats/signal families; - explicit tolerance policies; - core scientific benchmark corpus.
high-level API -> domain module -> algorithm selector -> numeric kernel -> diagnostics
Preserve SciPy-observable behavior for scoped routines with explicit tolerance/equality policies.
Defend against numerical instability abuse, malformed array metadata, and unsafe fallback paths under ill-conditioned inputs.
Track solver runtime tails, convergence costs, and memory budgets; gate regressions for core routine families.
Maintain conditioning-aware fallback, convergence, and tolerance invariants for scoped algorithms.
- AGENTS.md
- COMPREHENSIVE_SPEC_FOR_FRANKENSCIPY_V1.md
- SPEC_CROSSWALK_FRANKENSQLITE_TO_FRANKENSCIPY.md
- reference/frankensqlite/COMPREHENSIVE_SPEC_FOR_FRANKENSQLITE_V1.md
- Expand
FSCI-P2C-002from core solves to broader decomposition/structured matrix coverage. - Add SciPy-present CI lane for real oracle capture (
oracle_capture.json) and drift diffs. - Add benchmark baselines + profile artifacts for linalg tail latency and memory.
- Extend dashboard with mismatch drill-down and oracle-vs-target numeric deltas.
- Land first optimize/root packet (
FSCI-P2C-003) with the same artifact discipline.
- PLAN_TO_PORT_SCIPY_TO_RUST.md
- EXISTING_SCIPY_STRUCTURE.md
- PROPOSED_ARCHITECTURE.md
- FEATURE_PARITY.md
These four docs are now the canonical porting-to-rust workflow for this repo.
- Run baseline conformance packets:
cargo test -p fsci-conformance -- --nocapture
- Run full quality gate stack:
cargo fmt --checkcargo check --all-targetscargo clippy --all-targets -- -D warningscargo test --workspacecargo bench
- Launch interactive artifact dashboard:
cargo run -p fsci-conformance --bin conformance_dashboard -- --artifact-root crates/fsci-conformance/fixtures/artifacts --packet-filter P2C-002
- Oracle script path:
crates/fsci-conformance/python_oracle/scipy_linalg_oracle.py
- The Rust harness can run this script via:
capture_linalg_oracle(...)run_linalg_packet_with_oracle_capture(...)
- If SciPy is unavailable, harness behavior is explicit:
- strict requirement (
required=true) returnsPythonSciPyMissing - optional requirement (
required=false) writesoracle_capture.error.txtand continues
- strict requirement (
