Skip to content

Commit a831843

Browse files
mivertowskiclaude
andcommitted
fix: post-PROV-O test fixes
- ringkernel-cpu/src/kernel.rs test helper: add provenance: None - provenance.rs doctest: fix invalid hex literals (FRAUD_ALERT etc. contain non-hex chars); use DEAD_BEEF-style valid u64 constants All 1,506 tests pass, 0 failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 38e5cbd commit a831843

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

crates/ringkernel-core/src/provenance.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@
3939
//! };
4040
//! use ringkernel_core::hlc::HlcTimestamp;
4141
//!
42-
//! let hdr = ProvenanceBuilder::new(ProvNodeType::Entity, 0xFRAUD_ALERT_00u64)
42+
//! // IDs are u64 — caller (e.g., VynGraph) owns the ID namespace
43+
//! const FRAUD_ALERT_ID: u64 = 0xDEAD_BEEF_0001;
44+
//! const FRAUD_TRIANGLE_AGENT: u64 = 0xA6E0_7751_0002;
45+
//! const GAAP_RUN_ACTIVITY: u64 = 0xAC71_7170_0003;
46+
//!
47+
//! let hdr = ProvenanceBuilder::new(ProvNodeType::Entity, FRAUD_ALERT_ID)
4348
//! .with_timestamp(HlcTimestamp::now(1))
44-
//! .with_relation(ProvRelationKind::WasAttributedTo, 0xAGENT_TRI__u64)
45-
//! .with_relation(ProvRelationKind::WasGeneratedBy, 0xACT_RUN____u64)
49+
//! .with_relation(ProvRelationKind::WasAttributedTo, FRAUD_TRIANGLE_AGENT)
50+
//! .with_relation(ProvRelationKind::WasGeneratedBy, GAAP_RUN_ACTIVITY)
4651
//! .build()
4752
//! .unwrap();
4853
//! assert_eq!(hdr.relation_count(), 2);

crates/ringkernel-cpu/src/kernel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ mod tests {
370370
MessageEnvelope {
371371
header: MessageHeader::new(1, 0, 1, 8, HlcTimestamp::now(1)),
372372
payload: vec![1, 2, 3, 4, 5, 6, 7, 8],
373+
provenance: None,
373374
}
374375
}
375376

0 commit comments

Comments
 (0)