Skip to main content

Module decision_batch

Module decision_batch 

Source
Expand description

Arrow-native decision-batch storage (System One P0.3).

Decision model outputs are stored as opaque Arrow IPC stream payloads keyed by the producing decision-schema fingerprint, so eval/training reads back the exact RecordBatch the model emitted — no row-wise SQL materialization and no lossy re-typing. Each row also carries the (schema, model, calib) version triple for joins against calibration_params.

Structs§

DecisionBatchMeta
Row metadata for one stored decision batch (everything but the payload).
DecisionBatchStore
Decision-batch store over any StorageBackend: the write/read API for Arrow-native model output (eval harness, distillation corpora, re-fit input).

Constants§

DECISION_BATCH_TABLE
Decision batch table name.
PAYLOAD_FORMAT_IPC_STREAM
Payload format tag for Arrow IPC stream bytes.

Functions§

decision_batch_schema
Arrow schema of the decision_batches table.
decode_batch_ipc
Decode an Arrow IPC stream payload back into a single batch (multi-batch streams are concatenated).
encode_batch_ipc
Serialize a batch as a self-describing Arrow IPC stream.
mint_batch_id
Mint a new batch id.