You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flows-tinyflows] Runs surface: StartRun, PollRun, CancelRun with module-owned run rows and dedup settle (slice 4b) #5
Serve StartRun/PollRun/CancelRun (crates/tinyflows-bus/src/runs.rs, skeleton) on the module's executor, over CapsHost (#4) and the document port.
Gaps from the host (flows/ops/{run,execution,run_rows,run_management}.rs, flows/bus/dedup_commit.rs):
StartRun takes declared inputs, a FlowRunTrigger, flow/origin context, and returns prep errors (compat, compile, resolve_inputs) synchronously.
PollRun events include step persistence and graph observations plus graph_run_id (host Langfuse export and FlowRunProgress projection).
Run-row bookkeeping (insert_flow_run, finish_flow_run, upsert_flow_run_step, run_summary::settle_steps) happens in the module.
Dedup settle at run end inside the module against the executed graph (dedup_settle::settle), replacing the host's DedupCommitSubscriber (which reads the current saved graph, dedup_commit.rs:179-203).
Done when: merged in tinyhumansai/tinyflows with wire tests for every new or changed contract type, released (patch), and the contract version bumped where a served shape changed. Gates: cargo fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test --all-features in tinyhumansai/tinyflows. OpenHuman adoption is a separate leaf of the epic.
Agent brief
Files to consider (paths in tinyhumansai/tinyflows): crates/tinyflows-bus/src/runs.rs, crates/tinyflows-module/src/, crates/tinyflows-catalog/src/run_summary.rs
Merged in #21 (36b54f0). Runs v2 now serves StartRun/PollRun/CancelRun with scoped CapsHost/document execution, durable events, checkpointed approval parking, cancellation and executed-graph dedup settlement. Both final-head hosted Rust SDK checks passed; full local workspace 2653 tests and 5 built-module artifact cases passed. OpenHuman adoption remains a separate epic leaf.
Activity
senamakel commentedon Oct 17, 2026
Merged in #21 (36b54f0). Runs v2 now serves StartRun/PollRun/CancelRun with scoped CapsHost/document execution, durable events, checkpointed approval parking, cancellation and executed-graph dedup settlement. Both final-head hosted Rust SDK checks passed; full local workspace 2653 tests and 5 built-module artifact cases passed. OpenHuman adoption remains a separate epic leaf.