nirs4all.api.studio_scientific module

Bounded scientific-library entry point for the Studio CPython stdio host.

This module is not a Studio backend. It accepts one already-resolved, closed JSON value, runs the supported scientific operation, and returns a bounded JSON-native value. Studio’s Rust sidecar remains responsible for transport, jobs, cancellation, events, persistence, and all workspace access.

nirs4all.api.studio_scientific.studio_scientific_job_v1(request: object) → dict[str, object][source]

Execute one resolved, bounded Studio regression job through dag-ml.

The request and response schemas are documented in docs/source/reference/public_interfaces.md. The callable enters the private strict product boundary, so no direct, dual-oracle, environment-selected, or fallback legacy path can enter the runner. It never opens a caller path, workspace, socket, HTTP server, scheduler, or durable store.

Raises:

StudioScientificJobError – If the closed request or scientific result violates the v1 boundary contract.