Sessions
A session is the lifecycle container for one unit of agent work.
Session lifecycle:
gittrix.startSession({ task, durable, ephemeral })- GitTrix captures durable baseline and creates an ephemeral fork.
- Agent works with
AgentSession(read/write/commit in ephemeral). - Human-facing UI holds
UserSession. - User reviews diff against baseline.
- User calls
promote(...)for accepted changes. - Session evicts on policy.
Sessions have stable IDs and can be resumed by ID.