[MEMPALACE][MP-5] Wake-up protocol — palace-first boot sequence for new sessions #372
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 #368, #369
Why
Right now, every new session starts cold. The agent has no idea who it is, what it was working on, or what it knows. It's like waking up with amnesia every morning.
The wake-up protocol solves this by running a palace-first boot sequence at session start. Before the agent does anything, it loads its identity (L0), checks its palace rooms for relevant context (L1), and reviews any carried-over scratchpad flags. Only then is it ready to act.
This is the difference between an agent that has a memory palace and an agent that uses one.
Design
Boot Sequence
Wake-Up Summary
After boot, the agent should be able to produce an internal context block like:
This context block is injected into the system prompt or first-turn context.
Key Behaviors
Edge Cases
Acceptance Criteria
wake_up()function that runs L0→L2 boot sequenceidentity.txtat L0MP-5: Wake-up Protocol — Complete
Created two modules:
hermes-sovereign/mempalace/wakeup.py:palace_wakeup(force=False)generates 300-900 tokensfleet_status_summary()reads cached~/.hermes/fleet_status.jsonpython3 wakeup.pyhermes-sovereign/mempalace/scratchpad.py:write_scratch(session_id, key, value)— JSON-backed notesread_scratch(session_id, key=None)— all or one keydelete_scratch(session_id, key)— remove single keypromote_to_palace(session_id, key, room)— move to durable memoryclear_session(session_id)— wipe session scratchlist_sessions()— enumerate scratch files26 tests — all pass.
PR: #374