Skip to content

feat(framework): persist orchestration state + --resume (#211)#216

Merged
suleimansh merged 1 commit into
mainfrom
feat/persist-orchestration-state
Jul 4, 2026
Merged

feat(framework): persist orchestration state + --resume (#211)#216
suleimansh merged 1 commit into
mainfrom
feat/persist-orchestration-state

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Persists our orchestration state so the dashboard survives a restart. Closes #211 (part of #209).

The dashboard is already a pure projection of the run's event stream, so persisting is just durably logging that stream. Each run:

  • appends every event to .framework/events.jsonl in the workspace,
  • keeps a small derived run.json snapshot (status, passes, intent, session), and
  • writes a human-readable DECISIONS.md at the root.

framework --resume reopens the last run's dashboard read-only by replaying the log into a fresh stream, no agent run. --no-persist opts out.

Per the sync: no chat-history DB. Claude Code owns the transcript; we persist only our orchestration events.

New RunStore (injectable fs, in-memory tested) + --resume / --no-persist flags. 82 tests pass; verified end-to-end with a --fake run then --resume.

Save the run's orchestration state (stack rationale, loop status, decisions
ledger) so a restarted dashboard can resume it. The dashboard is a pure
projection of the FrameworkEvent stream, so persisting is durably logging that
stream: append to .framework/events.jsonl, keep a derived run.json snapshot, and
write a human-readable DECISIONS.md. --resume replays the log into a fresh
dashboard read-only; --no-persist opts out. We do not persist the agent's
transcript (Claude Code owns it), only our orchestration events.

Part of #209. Closes #211.
@suleimansh suleimansh added enhancement New feature or request priority: medium Worth doing, not urgent labels Jul 4, 2026
@suleimansh suleimansh self-assigned this Jul 4, 2026
@suleimansh suleimansh merged commit a06e845 into main Jul 4, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/persist-orchestration-state branch July 4, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: medium Worth doing, not urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persist orchestration state (decisions, loop, rationale)

1 participant