The Settlement Control Plane is 20,277 lines of Python — no third-party ORM, no framework coupling, no black-box regulatory logic. Every detection module is tested against real adversarial datasets. The regulatory citation is the test specification.
Each layer was chosen for the constraint it solves — not to match a job posting or a VC's preferred stack.
Chosen for the financial-math ecosystem and for the regulatory citation test pattern — the spec is the test, not a separate document.
Schema-first REST — the OpenAPI spec is generated from the same Pydantic models that enforce regulatory field constraints at runtime.
Single-file persistence for the settlement ledger. Pandas for batch reconciliation windows. No ORM — SQL is the specification language.
Every settlement message and compliance event is validated at the boundary. Regulatory field constraints are Pydantic validators — they cannot be bypassed by caller code.
120 tests; 15 adversarial datasets. Hypothesis generates edge-case transaction sets that catch off-by-one errors in SLA window calculations.
Single-container SaaS or multi-container on-premises. The connector adapter layer is the only deployment-variable code — the detection core is identical in both.
Tests are named by their regulatory citation. The test passes when the detection matches the statutory obligation — not when it satisfies a product spec written by a product manager.
The full detection suite runs on every commit. Tests cover the happy path, the SLA boundary (T − 1 day), the SLA breach (T + 1 day), and the adversarial case (malformed input designed to produce a false negative).
Each dataset targets a specific regulatory edge case: an OFAC match with a one-character name variation, a batch with a sub-penny reconciliation gap, a Reg E dispute that arrives at 23:59 on day 10. All 15 are caught.
Full 6-stage INGEST → MATCH → DETECT → CLASSIFY → GOVERN → REPORT pipeline at 100K-transaction scale. Scales linearly to the connector's ingest rate — the bottleneck is the network, not the detection engine.
No YAML configuration that hides logic. No ORMs that hide queries. No framework DSLs that hide the regulatory intent. The regulatory obligation is the code — readable, auditable, and citeable.
The proof is in the test suite. The conversation is about how this fits your participant profile and obligation set.