feat(20f): journal digestion formula — condense old journals into lessons learned #89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Part of #20 — agent .profile repo.
What to do
Create a formula
formulas/digest-journal.tomlthat condenses accumulated journal entries into abstract, transferable lessons.Digestion formula
The formula receives an agent's .profile repo path and:
journal/issue-*.mdfilesknowledge/lessons-learned.md(if any)knowledge/lessons-learned.mdwith condensed lessons (not append — full rewrite each time)journal/archive/)Abstraction and size constraints
lessons-learned.mdmust be:Gardener integration (trigger mechanism)
The gardener needs to know when to trigger digestion. Add to
formulas/run-gardener.toml(as a new step or addition to an existing step):.profilerepo:formulas/digest-journal.tomlwith the agent's .profile repo as contextNote on context injection
Reading
lessons-learned.mdinto agent context at session start is handled by #97 (profile_load_lessons). This issue only covers writing and maintaining the file.Affected files
formulas/digest-journal.toml(new)formulas/run-gardener.toml(update — add journal accumulation check + trigger)gardener/gardener-run.sh(may need update if trigger requires new context)Acceptance criteria
knowledge/lessons-learned.mdfrom journal entriesjournal/archive/Dependencies
Depends on #97 (generic journal aspect — journal entries must exist to digest).
Absorbed into #97. Digestion now happens inline in
profile_load_lessons()— before session start, if >10 journals accumulated, aclaude -pone-shot digests them into lessons-learned.md. No separate formula, no gardener trigger, no out-of-band scheduling.