KeiSeiKit-1.0/_primitives/_rust/kei-replay/src/lib.rs
Parfii-bot 0be354a920 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

18 lines
741 B
Rust

//! kei-replay — reconstruct an agent spawn from its DNA string.
//!
//! Given a DNA `role::caps::scope::body-nonce`, look up the ledger row,
//! locate the archived `task.toml` for that agent, re-run the compose
//! pipeline, and compare the resulting body hash to the DNA's body segment.
//! A mismatch is schema drift since the original spawn.
//!
//! Constructor Pattern: one responsibility per cube. No I/O beyond SQLite
//! read + `std::fs` on task files + stdout.
//!
//! Modules:
//! - `replay` — reconstruct composed prompt from DNA
//! - `diff` — compare two DNAs (facets + bodies)
//! - `ledger_lookup` — SQLite direct read of ledger rows by DNA
pub mod diff;
pub mod ledger_lookup;
pub mod replay;