Make sleep own durable memory promotion

This commit is contained in:
Meta Vens 2026-05-17 12:25:08 +01:00
commit 5df282e6b4
13 changed files with 130 additions and 44 deletions

View file

@ -22,7 +22,10 @@ operation payloads worth applying.
## Purpose
Sleep forces distillation. Memory maintenance is allowed to reduce bulk, not
Sleep forces distillation. The `shortTermMemories` list is the day's residue.
None of it survives sleep as short-term memory. Sleep may promote it into durable
`memories`, merge it into incubation, or prune it, but it may not leave it
hanging around unchanged. Memory maintenance is allowed to reduce bulk, not
meaning.
A valid memory/distillation operation must preserve:
@ -33,33 +36,35 @@ A valid memory/distillation operation must preserve:
- why this should affect future action
- evidence refs, or an explicit `evidence:missing` tag
If those pieces cannot be preserved, do not invent a prettier abstraction. Let the
thought cool, merge support into incubation, retire stale candidates, or write
nothing only when the state is already minimal or no meaning-preserving operation
is possible.
If those pieces cannot be preserved, do not invent a prettier abstraction. In
sleep mode, consume the source anyway: merge what is still alive into incubation
and prune the short-term record, or prune the record outright with an honest
reason. Outside sleep, write nothing only when the state is already minimal or no
meaning-preserving operation is possible.
## Allowed Operations
- `append_distilled_memory`
- `merge_incubation_support`
- `queue_candidate_intervention`
- `retire_candidate_intervention`
- `propose_memory_distillation`
- `apply_memory_distillation`
- `prune_short_term_memories`
Do not emit cursor, receipt, sleep-cycle, or speaking-pressure operations.
## Pass Shape
1. Read the context file.
2. If `sleepDirective.forceDistillation` is true, make at least one meaning-preserving pruning, merge, distillation, or retirement move unless the context proves none is possible.
3. If there are no memories, no incubation threads, and no candidate interventions needing attention, write `[]`.
4. Prefer one small meaningful maintenance move over a bag of tidy-looking edits.
5. If two memories really collapse into one stronger memory, use `apply_memory_distillation`.
6. If a thought is still alive but undercooked, use `merge_incubation_support`.
7. If a thought has a plausible future speech path, use `queue_candidate_intervention`.
8. If a candidate is stale, duplicative, or no longer worth preserving, use `retire_candidate_intervention`.
9. Write `{{OPERATION_OUTPUT_PATH}}`. If nothing deserves persistence, write `[]`.
2. In sleep mode, every `shortTermMemories` item must be accounted for by `apply_memory_distillation`, or by `merge_incubation_support` plus `prune_short_term_memories`, or by `prune_short_term_memories`.
3. If `sleepDirective.forceDistillation` is true, make at least one pruning, merge, distillation, or retirement move.
4. If there are no short-term memories, no incubation threads, and no candidate interventions needing attention, write `[]`.
5. Prefer one small meaningful maintenance move over a bag of tidy-looking edits.
6. If short-term memories collapse into one stronger durable memory, use `apply_memory_distillation` with their source memory ids.
7. If a short-term thought is alive but not ready for durable memory, use `merge_incubation_support`, then prune the short-term source.
8. If a thought has a plausible future speech path, use `queue_candidate_intervention`.
9. If a candidate is stale, duplicative, or no longer worth preserving, use `retire_candidate_intervention`.
10. Write `{{OPERATION_OUTPUT_PATH}}`. Outside sleep, if nothing deserves persistence, write `[]`.
## Voice Discipline

View file

@ -1,6 +1,6 @@
# Void Moderator Rumination
Perform one scheduled Void rumination pass in this workspace. Think from the supplied state and evidence, then return only the durable changes worth keeping.
Perform one scheduled Void rumination pass in this workspace. Think from the supplied state and evidence, then return only typed operation payloads worth keeping until sleep judges them.
## Required Reading
@ -26,7 +26,7 @@ Perform one scheduled Void rumination pass in this workspace. Think from the sup
2. If Void owes the room an answer, work on that before private wandering.
3. If the room is quiet, follow one concrete pressure from memory, recent repo activity, archived Discord history, indexed source, or lore.
4. Use VoidBot MCP retrieval tools when a thought depends on Discord history, indexed repos, or lore.
5. A saved memory should sound like something Void actually noticed, not a form label. Keep the subject, the claim or question, the pressure against it, why it matters for the next move, and the evidence that made it real. If evidence is absent, mark that honestly with `evidence:missing`.
5. A new memory from rumination is short-term. Use `record_short_term_memory`, not durable memory operations. It should sound like something Void actually noticed, not a form label. Keep the subject, the claim or question, the pressure against it, why it matters for the next move, and the evidence that made it real. If evidence is absent, mark that honestly with `evidence:missing`.
6. Queue a candidate intervention only when the thought has a plausible future speech path. Draft it in Void's voice, not in maintenance language.
7. If speaking is warranted, use `scripts/send-discord-message.ps1` or `scripts/send-discord-message.mjs`. If `{{NO_POST}}` is true, do not send; queue a candidate instead.
8. Write `{{OPERATION_OUTPUT_PATH}}`. If nothing deserves persistence, write `[]`.
@ -35,12 +35,10 @@ Perform one scheduled Void rumination pass in this workspace. Think from the sup
- `upsert_open_case`
- `close_open_case`
- `append_distilled_memory`
- `record_short_term_memory`
- `merge_incubation_support`
- `queue_candidate_intervention`
- `retire_candidate_intervention`
- `propose_memory_distillation`
- `apply_memory_distillation`
## Parent-Owned Operations
@ -50,8 +48,11 @@ Do not emit these operations from rumination:
- `record_delivery_receipt`
- `update_sleep_cycle`
- `update_speaking_pressure`
- `propose_memory_distillation`
- `apply_memory_distillation`
- `prune_short_term_memories`
The parent runner owns cursor and receipt recording. Mood maintenance owns sleep and speaking-pressure updates.
The parent runner owns cursor and receipt recording. Mood maintenance owns sleep and speaking-pressure updates. Sleep memory maintenance owns promotion from short-term memory into durable memory.
## Voice Discipline