Repository navigation
feat(runs): resume approval runs and expire parked rows - #23
Merged
Merged
Conversation
Auto-committed-on: macbook
…s-bus/src/runs_tests.rs,crates/ Auto-committed-on: macbook
…s-module/src/run_manager/actor. Auto-committed-on: macbook
…s/tinyflows-module/src/run_mana Auto-committed-on: macbook
…s,crates/tinyflows-module/src/r Auto-committed-on: macbook
…nyflows-module/src/run_manager. Auto-committed-on: macbook
…,crates/tinyflows-module/src/ru Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…sts.rs,crates/tinyflows-module/ Auto-committed-on: macbook
…ark_test.rs Auto-committed-on: macbook
…,crates/tinyflows-module/src/ru Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…ark_test.rs Auto-committed-on: macbook
…tinyflows/src/engine/resumable/ Auto-committed-on: macbook
…on.rs Auto-committed-on: macbook
…tes/tinyflows-module/src/run_ma Auto-committed-on: macbook
Auto-committed-on: macbook
…ct_tests.rs Auto-committed-on: macbook
Auto-committed-on: macbook
…s,crates/tinyflows-module/tests Auto-committed-on: macbook
…s,crates/tinyflows-module/src/r Auto-committed-on: macbook
Auto-committed-on: macbook
…ark_test.rs Auto-committed-on: macbook
…s,crates/tinyflows-module/src/r Auto-committed-on: macbook
…s,crates/tinyflows-module/tests Auto-committed-on: macbook
…rs,crates/tinyflows-module/src/ Auto-committed-on: macbook
…ark_tests.rs Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…es/tinyflows-drivers/src/catalo Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…on.rs Auto-committed-on: macbook
…ry.rs Auto-committed-on: macbook
Auto-committed-on: macbook
…rt.rs,crates/tinyflows-module/t Auto-committed-on: macbook
…rt.rs Auto-committed-on: macbook
…rt.rs,crates/tinyflows-module/t Auto-committed-on: macbook
…rt.rs,crates/tinyflows-module/t Auto-committed-on: macbook
…rt.rs Auto-committed-on: macbook
…ry.rs Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…cle_tests.rs Auto-committed-on: macbook
…s,crates/tinyflows-module/tests Auto-committed-on: macbook
…ent_callback.rs,crates/tinyflow Auto-committed-on: macbook
…ent_callback.rs,crates/tinyflow Auto-committed-on: macbook
…cle_tests.rs Auto-committed-on: macbook
…_tests.rs Auto-committed-on: macbook
…_tests.rs Auto-committed-on: macbook
…_tests.rs Auto-committed-on: macbook
…_tests.rs Auto-committed-on: macbook
This was referenced Oct 17, 2026
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.
Summary
Serve Runs v4
ResumeRun,ExpireParked, andBootSweepthrough the compiled module. Resume validates flow ownership and pending decisions, pins the graph, atomically claims the parked row with its actor lease, and continues the stored checkpoint with cancellation and event history. Expiry and boot recovery settle only rows they win, preserve cleanup-before-terminal-event ordering, and keep expiry batches recoverable when an individual write fails.API Or Behavior Changes
Runs contract version 4 adds the three members and their wire records. The module owns resume, parked expiry, and local orphan reconciliation; shared-backend boot sweep is a no-op. The engine gains a cancellable checkpointed journaled resume entry point. The bus design document records the served contract.
Tests
cargo fmt --all -- --checkcargo check -p tinyflows -p tinyflows-bus -p tinyflows-catalog -p tinyflows-drivers -p tinyflows-module --all-featurescargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-features(2,658 passed; 16 artifact tests are exercised below)bash scripts/verify-module-artifact.sh(16 passed)bash scripts/check-published-crate.shcargo package -p tinyflows --no-verifycargo tree -p tinyflows-bus -e normal --depth 1(chrono, serde, serde_json)Documentation
Updated
docs/tinyflows-bus-design.mdfor Runs v4 and the resume, expiry, and boot-sweep behavior.Refs #7
Part of tinyhumansai/openhuman#8055