Reads AI decision log Parquet files and verifies hash chain integrity.
More...
#include <decision_log.hpp>
Reads AI decision log Parquet files and verifies hash chain integrity.
Usage: auto reader = DecisionLogReader::open("decision_log_abc123_0_999.parquet"); auto records = reader->read_all(); auto verify = reader->verify_chain(); if (!verify.valid) { /* tampered! */ }
Definition at line 814 of file decision_log.hpp.
◆ DecisionLogReader() [1/3]
| signet::forge::DecisionLogReader::DecisionLogReader |
( |
| ) |
|
|
default |
◆ DecisionLogReader() [2/3]
◆ DecisionLogReader() [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 887 of file decision_log.hpp.
◆ num_records()
| int64_t signet::forge::DecisionLogReader::num_records |
( |
| ) |
const |
|
inline |
◆ open()
Open a decision log Parquet file and pre-load all column data.
- Parameters
-
| path | Path to the decision log Parquet file. |
- Returns
- The reader, or an error if the file cannot be opened or parsed.
Definition at line 820 of file decision_log.hpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read_all()
Get all decision records from the file.
- Returns
- A vector of DecisionRecord objects reconstructed from all row groups.
Definition at line 850 of file decision_log.hpp.
◆ schema()
| const Schema & signet::forge::DecisionLogReader::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 916 of file decision_log.hpp.
The documentation for this class was generated from the following file: