Expand description
Improvement proposal ledger (Phase 4 — SELF_LEARNING_INTEGRATION_MAP.md §8).
Persists ProposalEnvelope + proposed AINL text, verifies proposed_hash against
sha256(proposed_ainl_text), and runs a caller-supplied strict validator before marking a row
accepted. Hosts wire validator to mcp_ainl_ainl_validate / compile / or ainl-runtime
as appropriate; this crate stays free of openfang_* and ainl-runtime (no dependency cycles).
Modules§
Structs§
- Adopt
Graph Payload - Data needed to materialize an accepted proposal into the AINL graph.
- Adopt
Result - Improvement
Proposal List Item - Summary row for
ProposalLedger::list_recent(no large text columns). - Improvement
Proposal Row - Proposal
Ledger - Append-only + update-for-validation proposal store.
Enums§
Functions§
- is_
known_ proposal_ kind - proposed_
hash_ matches truewhen the proposal text matches the envelope’sproposed_hash(both compared lowercase).- sha256_
hex_ lower - Lowercase hex SHA-256 of UTF-8 bytes (for comparing to
ProposalEnvelope::proposed_hash).
Type Aliases§
- Improvement
Proposal Id - Row identifier in the ledger.