Files
timmy-home/tickets/TICKET-205-session-persistence.md
Allegro 645f63a4f6 docs: Add EPIC-202 and tickets for Claw-based agent build
- EPIC-202: Build Claw-Architecture Agent
- TICKET-203: ToolPermissionContext
- TICKET-204: ExecutionRegistry
- TICKET-205: Session Persistence

Replaces idle Allegro-Primus with real work capability.
2026-03-31 21:05:13 +00:00

864 B

TICKET-205: Build Session Persistence

Epic: EPIC-202
Priority: P0
Status: Ready
Assignee: Allegro
Estimate: 4 hours

Description

Build JSON-based session persistence layer, more portable than SQLite.

Acceptance Criteria

  • RuntimeSession dataclass
  • SessionStore class
  • save(session) writes JSON
  • load(session_id) reads JSON
  • HistoryLog for turn tracking
  • Sessions survive agent restart
  • Tests pass

Implementation Notes

Pattern from Claw src/session_store.py:

@dataclass
class RuntimeSession:
    session_id: str
    prompt: str
    context: dict
    history: HistoryLog
    persisted_path: Path
    
    def save(self):
        self.persisted_path.write_text(json.dumps(asdict(self)))

References

  • Claw: src/session_store.py
  • Claw: src/history.py