Expand description
Portable failure learning surface: search persisted ainl_memory::AinlMemoryNode
Failure rows and format short prevention blocks for the LLM.
Ingestion stays in hosts (openfang-runtime / ainl-runtime) that already write
Failure nodes. This crate only reads via [GraphMemory::search_failures_for_agent].
Re-exports§
pub use gate::should_emit_failure_suggestion;pub use procedure_patch::failure_patch_candidates;pub use procedure_patch::ProcedureFailureEvidence;pub use procedure_patch::ProcedurePatchPolicy;pub use search::search_failures_for_agent;pub use search::FailureRecallHit;pub use suggest::format_failure_prevention_block;
Modules§
- gate
- Host-callable gate for when failure “auto-suggestion” / prevention text should be emitted.
- ingest
- Hosts record failures with
ainl_memory::FailureNodevia their graph writer. Reserved for future helpers (dedup keys, payload normalization) — not required for read/search. - procedure_
patch - Procedure patch candidates derived from recurrent failure evidence.
- search
- FTS-backed search over
Failurenodes, mapped to a small hit struct for prompts. - suggest
- Format a compact “do not repeat” block from
super::search::FailureRecallHitrows.