Worklog runtime architecture

Worklog runtime architecture An architecture diagram generated by Archify. Codex / Claude Code · user choice · runs commands and hooks · Host policy · tool execution rights Codex / Claude Code user choice · runs commands and hooks Record tool · validate · ledger I/O · state computation · Input validation · no OS isolation Record tool validate · ledger I/O · state computation Per-work ledger · works/<id>/events.jsonl · Shared work records · OS file permissions Per-work ledger works/<id>/events.jsonl Computed current state · state.json / state.md · Shared work records · OS file permissions Computed current state state.json / state.md Work list · metadata · index.json · stops if corrupt · Shared work records · OS file permissions Work list · metadata index.json · stops if corrupt Per-session work selection · sessions/<tool>_<session>.json · Architecture component Per-session work selection sessions/<tool>_<session>.json Work artifacts · read body · SHA-256 · Architecture component Work artifacts read body · SHA-256 Hook entry points · hook / turn-start / stop-hook · Architecture component Hook entry points hook / turn-start / stop-hook Optional update check · update.py background · Architecture component Optional update check update.py background Git origin · tag lookup · needs Git · Remote trust boundary Git origin tag lookup · needs Git save / show read · append rebuild state read · update list selection · seq · turn read body event call record context · block reply lookup · turn record computed result allowed · interval met git fetch Host policy · tool execution rights Input validation · no OS isolation Shared work records · OS file permissions Remote trust boundary Legend Code (wl.py) Record files (.worklog/) External