Skip to content

Reflection loop: learn from conversation (propose standing rules) - #16

Merged
ssethia2 merged 1 commit into
mainfrom
ss/reflection-loop
Jun 16, 2026
Merged

Reflection loop: learn from conversation (propose standing rules)#16
ssethia2 merged 1 commit into
mainfrom
ss/reflection-loop

Conversation

@ssethia2

Copy link
Copy Markdown
Owner

A first-cut "learn from conversation" feedback loop — the easy, right version (retrieval + rules + reflection, not fine-tuning).

ReflectionMonitor (engine): each evening it reviews the day's working memory (what you told Aria + actions taken) and proposes up to two durable standing rules worth adopting — a recurring preference, a correction, a pattern worth codifying.

Propose-only by design: the suggestion is sent and (via the engine's notify) lands in the conversation thread; you reply yes/no, and the agent adds it through the existing add_standing_instruction tool. Nothing is auto-applied, so behavior can't silently drift — which fits the earlier wariness about over-reach.

It complements nightly compaction (which already consolidates facts into long-term memory) by adding the behavioral-rule layer, and closes the loop using machinery that already exists (standing instructions → prompt, memory → retrieval).

Once/day, evening only, dedups recent suggestions, silent by default. 5 new tests; 225 pass.

Future (noted, not here): read the raw conversation transcript (richer signal than the scratchpad) and an explicit 👍/👎 feedback signal.

🤖 Generated with Claude Code

A first-cut feedback loop. Each evening ReflectionMonitor reviews the day's working memory
(what the user told Aria + actions taken) and proposes up to two durable STANDING RULES
worth adopting — a recurring preference, a correction, a pattern worth codifying.

Propose-only by design: the suggestion is sent (and, via the engine's notify, lands in the
conversation thread), the user replies yes/no, and the agent adds it through the existing
add_standing_instruction tool. Nothing is auto-applied, so behavior can't silently drift.
Complements nightly compaction (which already consolidates facts) by adding the behavioral-
rule layer — closing the "learn from talking to you" loop with machinery that already exists
(standing instructions → prompt, memory → retrieval).

Once/day, evening only, dedups recent suggestions, silent by default. 5 tests; 225 pass.

Assisted-by: Claude Code (Opus 4.8)
@ssethia2
ssethia2 merged commit 3dd2062 into main Jun 16, 2026
1 check passed
@ssethia2
ssethia2 deleted the ss/reflection-loop branch June 16, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant