feat(automode): Plan 4 — episode ledger (SQLite)#34
Merged
Conversation
Ecko95
force-pushed
the
feat/automode-episode-ledger
branch
from
June 21, 2026 00:03
ff24f0a to
2559c58
Compare
Ecko95
force-pushed
the
feat/automode-episode-ledger
branch
from
June 21, 2026 10:13
9fec460 to
fe5f67a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan 4 of the autonomous-toggle roadmap. Persists a per-landed-slice episode so a brain (Motoko) / cockpit can rehydrate what each autonomous run did, without reading transcripts. Plan:
docs/superpowers/plans/2026-06-21-automode-episode-ledger.md.What this does
On each landed slice (driver done-path, after
completeGoal), records an episode capturing the verifier-critic output:verdict,confidence,recommendation,flagged,summary, the goal id/title/repo, slice branch, and the fullGitsReviewResultas JSON for lossless rehydrate. Exposesrecord_episode+list_episodes({ repo?, limit? })(newest-first).Surfaces
automode_episodestable in the sharedstate.sqlite(withrepo+goal_idindexes).AutomodeEpisodeLedgerservice + layer inpersistence/(mirrorsProviderSessionRuntimeRepository):SqlSchemainsert/list,reviewas JSON TEXT,flaggedas 0/1 INTEGER (explicit bool↔int, noSchema.transformprecedent in repo).Effect.catch→logWarning; the slice already landed).Design decisions (2026-06-21 checkpoint)
state.sqlite+repocolumn (not a separate per-project DB;stateDiris global until Plan 7 adds per-project keying).repoif needed).Verification
gits, unrelated to this PR:@t3tools/mobiletypecheck fails onvisualPlans(from PR feat(visual-plan): native builder.io visual-plan replica — Phase 1 (all 3 providers) #30). This PR touches only server/persistence; being fixed separately.🤖 Generated with Claude Code