FrankenNumPy

Docs/Overview

Design Philosophy

  1. Parity debt, not feature cuts. Surface parity is locked at 100% of numpy.__all__. Behavioral edge cases that still drift are tracked as parity debt to be closed, never as accepted scope reduction.
  2. The Stride Calculus Engine (SCE) is the compatibility kernel of the Rust array API. fnp-ndarray owns the legality rules for broadcast, reshape, transpose, view aliasing and sliding windows, and fnp-ufunc's UFuncArray routes its shape work through it (148 references; fnp-linalg, fnp-random and fnp-conformance use it too). The Python binding mostly operates on NumPy's own ndarray shape and stride metadata and calls SCE functions at 12 sites (element_count ×9, broadcast_shapes ×2, broadcast_shape ×1; 2026-10-08 count), so at the Python surface NumPy, not the SCE, is the shape authority for most calls.
  3. Dual-mode runtime. Strict mode maximizes observable NumPy compatibility with no behavior-altering repairs. Hardened mode preserves the API contract while adding safety guards and bounded defensive recovery for malformed inputs. Every decision lands in an evidence ledger with class / risk / action / loss-model context.
  4. Fail-closed by default. Unknown wire formats, unrecognized dtype descriptors, future metadata-version markers, and semantically incompatible inputs all cause explicit errors. There are no silent fallbacks past safety boundaries.
  5. Oracle-verified, durably stored. Every RNG distribution, every linalg decomposition, every reduction edge case is differentially compared to NumPy's actual output from the same seed. The conformance fixture bundle, the ufunc benchmark baseline, the nine P2C parity reports and the 2026-04-10 cross-engine benchmark baseline carry a RaptorQ erasure-coded sidecar plus a machine-checked scrub and decode-proof (12 sidecars among the 281 tracked files under artifacts/).

This section in the README on GitHub