Session Log

Applies only when the project uses this capability; load it only for a task that touches it (see the Applicability section of prompts/03-conventions.md).

A session is the append-only log of everything that happened in a unit of work. It lives outside the harness and outside the model’s context window, so that both can be replaced without losing the record. The interfaces are getSession(id), emitEvent(id, event), and getEvents(), which returns positional slices of the log.

1. The session outlives the harness

2. Context is recoverable, not merely discarded

3. Session boundary