--- name: memo description: Update branch memory files after completing work. Saves session history, key learnings, and collaboration observations to .trinity/ files. --- # Memory Update Purpose: Update branch memory files after completing work this session. ## Execution 1. Read `.trinity/passport.json` first — re-absorb your identity, role, and principles before writing memories 2. Review what was done this session (context, recent changes, key decisions) 3. Update each file below as needed 4. Confirm completion — list files updated ## Memory Roles Each memory file plays a distinct role. Update based on what actually changed this session. - **`.trinity/passport.json`** — IDENTITY. Who you are: role, capabilities, principles. Only update if identity genuinely evolved this session. Don't touch it just to touch it. - **`.trinity/local.json`** — YOUR MEMORY. Session history and key_learnings. Add a session entry for significant work. Add key_learnings for facts you'd need next time. Trim oldest sessions if over 20. - **`.trinity/observations.json`** — YOUR MEMORY OF THE USER. Collaboration insights, preferences, friction points, flow states. Skip entirely if nothing new about the user this session. ## If Relevant - **README.md** — Does it reflect current state? Update if stale.