Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/session_recall/metadocs/distill.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@
ONLY — never copy the stored values themselves into the map.

Rules:
- Update existing entries instead of duplicating them; merge when the new \
dialogue continues an old story. Keep entries that the new dialogue does not \
touch.
- Before adding ANYTHING, search the current documents for an entry about the \
same bug, action, decision, or storage location — and update or extend that \
entry instead of adding a twin. A new entry is for a genuinely new story only; \
merge when the new dialogue continues an old one. Keep entries the new \
dialogue does not touch.
- Every entry ends with a `sources:` line listing session ids it came from. \
Cite artifacts that exist outside this machine (PR numbers, commits, paths) \
so an entry can be checked without the transcripts.
Expand Down
7 changes: 7 additions & 0 deletions tests/test_metadocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ def test_prompt_marks_dialogue_as_data():
"never copy the stored values themselves" in distill._SYSTEM


def test_prompt_demands_update_before_add():
"""Maxim's rule: актуализировать — look for an existing entry first,
adding a twin is the failure mode."""
assert "Before adding ANYTHING" in distill._SYSTEM
assert "instead of adding a twin" in distill._SYSTEM


def test_cli_distiller_runs_in_empty_cwd_no_tools():
seen = {}

Expand Down
Loading