| name | memo |
| description | Update branch memory files after completing work. Saves session history, key learnings, and collaboration observations to .trinity/ files. Use when this capability is needed. |
| metadata | {"author":"AIOSAI"} |
Memory Update
Purpose: Update branch memory files after completing work this session.
Execution
- Read
.trinity/passport.json first — re-absorb your identity, role, and principles before writing memories
- Review what was done this session (context, recent changes, key decisions)
- Update each file below as needed
- Confirm completion — list files updated
What to Update
Always
- .trinity/local.json — Add new session entry to
sessions if significant work was done. Add new key_learnings for facts you'd need next time.
- .trinity/observations.json — Add notable collaboration insights: breakthrough moments, pattern corrections, flow states, friction points, preference discoveries. Skip if nothing notable this session.
Entry shape — one rule for all four types
key_learnings, sessions, todos (local.json) and observations (observations.json) all share ONE shape: a list of objects, newest at the top (index 0). Every entry carries a number (monotonic int per type — highest = newest, never reused; new = current max + 1) and a date (ISO), plus its text field + extras: key_learnings {number, date, key, value} · sessions {number, date, summary, status, tags} · todos {number, date, task, priority, status} · observations {number, date, note, tags}.
When adding: stamp number + date, then prepend (newest on top). Don't hand-trim — rollover archives the oldest by number to @memory automatically.
If Relevant
- .trinity/passport.json — Evolve identity when the branch's role, capabilities, or principles have genuinely changed. Don't update just to update — but don't leave placeholders forever either.
- README.md — Does it reflect current state? Update if stale.
Source: AIOSAI/AIPass — distributed by TomeVault.