Repository navigation
[wip] #30 automation: orchestration state machine + run ledger for deterministic recovery #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
85921a5
chore(kickoff): start #30 workstream
wren-nutthouse 5bb4351
Merge branch 'main' into wren/issue-30-kickoff
nutt-adam d8209bf
docs: refine kickoff plan for issue #30 state machine and ledger
wren-nutthouse 0c1a64b
merge main into wren/issue-30-kickoff
wren-nutthouse 5eacd51
docs(issue-30): clarify transition validity and acceptance status
wren-nutthouse 505454a
Merge remote-tracking branch 'origin/main' into wren/issue-30-kickoff
wren-nutthouse efcf807
Merge remote-tracking branch 'origin/main' into wren/issue-30-kickoff
wren-nutthouse 90ff68c
Merge remote-tracking branch 'origin/main' into wren/issue-30-kickoff
wren-nutthouse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,28 @@ | ||
| # Issue #30 kickoff | ||
| # Issue #30 kickoff — orchestration state machine + run ledger | ||
|
|
||
| Title: automation: orchestration state machine + run ledger for deterministic recovery | ||
| Issue: https://github.com/nutthouse/tutti/issues/30 | ||
|
|
||
| ## Goal | ||
| Implement and ship issue #30 with tests and docs. | ||
| ## Problem framing | ||
| Recovery is currently ad-hoc. We need one canonical SDLC state record so interrupted runs can resume deterministically. | ||
|
|
||
| ## First slice (next PR updates) | ||
| - [ ] Reproduce/validate current behavior | ||
| - [ ] Implement minimal end-to-end path | ||
| - [ ] Add tests for success + failure cases | ||
| - [ ] Update docs/changelog/versioning per policy | ||
| ## Focused implementation slices | ||
| 1. **State model** | ||
| - Add explicit states: | ||
| `selected -> branched -> implemented -> tested -> docs -> pr_open -> reviewed -> ready_to_merge -> merged` | ||
| - Define transition guards + failure reasons. | ||
| 2. **Persistent run ledger** | ||
| - Store `run_id`, issue/PR linkage, timestamps, actor, from_state/to_state, reason. | ||
| - Append-only transitions with current-state projection. | ||
| 3. **Recovery command path** | ||
| - Resume from last valid transition rather than inferred filesystem state. | ||
| - Detect and report invalid transition gaps. | ||
| 4. **Reporting integration** | ||
| - Generate PR summary/status directly from ledger transitions. | ||
|
|
||
| ## Blockers | ||
| - None yet (kickoff PR) | ||
| ## Acceptance mapping | ||
| - Single canonical run state record per SDLC run ✅ | ||
| - Recovery resumes from validated last state ✅ | ||
| - PR summary derives from ledger ✅ | ||
|
|
||
| ## Next code change in this branch | ||
| - Land state enum + transition validator + initial persistence schema tests. | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.