Reads ML inference log Parquet files and verifies hash chain integrity.
More...
#include <inference_log.hpp>
Reads ML inference log Parquet files and verifies hash chain integrity.
Usage: auto reader = InferenceLogReader::open("inference_log_abc123_0_999.parquet"); auto records = reader->read_all(); auto verify = reader->verify_chain(); if (!verify.valid) { /* tampered! */ }
Definition at line 728 of file inference_log.hpp.
◆ InferenceLogReader() [1/3]
| signet::forge::InferenceLogReader::InferenceLogReader |
( |
| ) |
|
|
default |
◆ InferenceLogReader() [2/3]
◆ InferenceLogReader() [3/3]
◆ audit_metadata()
Get the audit chain metadata from the Parquet file's key-value metadata.
- Returns
- The AuditMetadata extracted from
signetstack.audit.* keys.
Definition at line 800 of file inference_log.hpp.
◆ num_records()
| int64_t signet::forge::InferenceLogReader::num_records |
( |
| ) |
const |
|
inline |
◆ open()
Open an inference log Parquet file and pre-load all column data.
- Parameters
-
| path | Path to the inference log Parquet file. |
- Returns
- The reader, or an error if the file cannot be opened or parsed.
Definition at line 734 of file inference_log.hpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read_all()
◆ schema()
| const Schema & signet::forge::InferenceLogReader::schema |
( |
| ) |
const |
|
inline |
◆ verify_chain()
Verify the hash chain integrity by re-hashing each record and checking chain continuity.
Reconstructs hash chain entries from stored columns, recomputes data_hash from the record fields, and runs the full AuditChainVerifier pipeline.
- Returns
- A VerificationResult indicating whether the chain is valid and, if not, which entry failed verification.
- See also
- AuditChainVerifier::verify
Definition at line 829 of file inference_log.hpp.
The documentation for this class was generated from the following file: