FAVA Trails

By Machine Wisdom AI

Optional extension

Lifecycle Protocols

Optional hooks that compress, rerank, and orchestrate your agent memory

Published by Machine Wisdom AI

March 2026

FAVA Trails exposes lifecycle hooks at key moments โ€” before_save, on_recall, before_propose, and more. Protocols are pre-built hook implementations that plug into these points. Each is independent; enable any combination.

Three research papers published in 2025 became composable protocols:

  • SECOM โ€” extractive compression based on the SECOM paper (Tsinghua University and Microsoft, ICLR 2025). SECOM defines three hook points: before_propose applies extractive compression during a promotion. The reviewer returns its verdict on the saved draft first, and the hook then runs before that verdict is applied and the record is stored. It runs whether the verdict is an approval, a rejection or an error, and with the default fail_mode: open a hook failure lets the promotion continue uncompressed; before_save gives an advisory about verbosity or structured data; and on_recall scores records by density.
  • ACE โ€” playbook-driven reranking and anti-pattern detection based on Stanford, UC Berkeley, and SambaNova ACE.
  • RLM โ€” MapReduce orchestration for fan-out / collect workflows based on MIT RLM.

The full reference โ€” hook points, install commands, configuration examples, and a combining pattern for production stacks โ€” lives on the Machine Wisdom AI site, where the protocol design is discussed in depth.

Continue reading on Machine Wisdom AI

SECOM, ACE, and RLM with config examples, hook points, known limitations, and a composable production stack pattern.

Read the full article on Machine Wisdom AI โ†’

If you decide to add a protocol after the core installation works, the extras and setup commands are in the FAVA Trails README, and the article above has the per-protocol configuration tables. The configured review policy still supplies the gate. The reviewer reads the draft as it was saved, and SECOM compression runs after that verdict, so the stored text can differ from the text the reviewer read. A protocol can also change what recall ranks first. Read the README before enabling one.

Lifecycle hooks

A hook runs custom logic at one moment in the memory lifecycle. Each protocol is an optional hook implementation that you enable on its own. The product repository owns the current configuration.

save_thought() before_save persist after_save
propose_truth() reviewer verdict before_propose apply verdict, persist after_propose
recall() retrieve on_recall
startup init on_startup

SECOM

Extractive Compression

Compresses a thought during promotion using token-level extraction. The reviewer returns its verdict on the saved draft first. The hook then runs before that verdict is applied and the record is stored, whatever the verdict. It also advises on verbose or structured content when a thought is saved and scores records by density at recall.

before_propose before_save on_recall
fava-trails secom setup --write

Tsinghua / Microsoft โ€” ICLR 2025

ACE

Playbook Reranking

Reranks recalled thoughts against playbook rules stored in your preferences and flags anti-patterns that those rules describe.

on_recall on_startup
fava-trails ace setup --write

Stanford / UC Berkeley / SambaNova

RLM

MapReduce Orchestration

Validates mapper outputs, tracks batch progress, and sorts results for reducer consumption.

before_save on_recall
fava-trails rlm setup --write

MIT