Skip to content

[flows-tinyflows] Runs surface: StartRun, PollRun, CancelRun with module-owned run rows and dedup settle (slice 4b) #5

Closed

Description

@senamakel

Moved from tinyhumansai#149, which is closed in favour of this issue. Part of tinyhumansai/openhuman#8055.

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).
  • Run timeout — epic open decision 3.

Follow migrate-to-submodule (OpenHuman .claude/skills/): upstream PR → patch release → OpenHuman gitlink bump + registry digest re-pin. Design reference: docs/tinyflows-bus-design.md.

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

Blocked by #4
Blocked by #2
Parent: tinyhumansai/openhuman#8055

Activity

  1. added
    enhancementNew feature or request
    rustPull requests that update rust code
    priority: p2Soon. Real but survivable — a rough edge, a gap, a thing that will bite later.
    on Oct 16, 2026
  2. senamakel commented on Oct 17, 2026

    @senamakel
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: p2Soon. Real but survivable — a rough edge, a gap, a thing that will bite later.rustPull requests that update rust code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions