[MEMPALACE][MP-4] Memory promotion — scratchpad to palace with intent #371
Reference in New Issue
Block a user
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?
Part of epic #367 | Depends on #370
Why
The scratchpad (#370) is ephemeral by design — it expires. But some things learned during a session should become permanent memories. The problem is deciding what gets promoted and when.
Bad approach: promote everything (palace becomes a junk drawer).
Bad approach: promote nothing (agent never learns).
Right approach: agent explicitly decides to remember, with structured intent.
This is the difference between cramming for an exam and actually learning something.
Design
Promotion Flow
Promotion Request Structure
Promotion Rules
promote_to_palace()with reasonAnti-Patterns to Prevent
Acceptance Criteria
promote_to_palace()method on scratchpad entriesImplementation submitted in PR #380 (
promotion.py).4 quality gates, all heuristic — no LLM calls:
Also includes:
evaluate_for_promotion()dry-run,promote_session_batch()for end-of-session cleanup,force=Trueoverride, and full audit logging.8 tests covering all gate paths.