Repository navigation
feat(runs): serve scoped CapsHost callbacks - #20
Merged
Merged
Conversation
…s-bus/src/runs/caps_agent_types Auto-committed-on: macbook
…ows-module/src/caps.rs Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…s,crates/tinyflows-bus/src/runs Auto-committed-on: macbook
…lows-module/src/lib.rs Auto-committed-on: macbook
…s/src/caps/tasks.rs Auto-committed-on: macbook
…ire_tests.rs,crates/tinyflows-m Auto-committed-on: macbook
Auto-committed-on: macbook
…lows-module/src/caps/task_execu Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…lows-module/src/caps/task_execu Auto-committed-on: macbook
Auto-committed-on: macbook
…s,crates/tinyflows-module/src/c Auto-committed-on: macbook
…ts.rs Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
Auto-committed-on: macbook
…s-bus/src/runs_tests.rs,crates/ Auto-committed-on: macbook
…s-bus/src/runs/caps_agent_types Auto-committed-on: macbook
…ts.rs Auto-committed-on: macbook
…ts.rs,crates/tinyflows-module/s Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
…ts.rs Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
…lows-module/src/caps/task_execu Auto-committed-on: macbook
…ts.rs,crates/tinyflows-module/s Auto-committed-on: macbook
Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
Auto-committed-on: macbook
…sts.rs,crates/tinyflows-module/ Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…s-module/src/caps_tests/callbac Auto-committed-on: macbook
Auto-committed-on: macbook
…lows-module/src/caps_tests/task Auto-committed-on: macbook
…tests.rs,crates/tinyflows-modul Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
…tests.rs Auto-committed-on: macbook
…s,crates/tinyflows-module/src/c Auto-committed-on: macbook
…ws-module/src/caps_tests.rs,cra Auto-committed-on: macbook
…lows-module/src/caps/agent.rs,c Auto-committed-on: macbook
Auto-committed-on: macbook
…tocol_tests.rs Auto-committed-on: macbook
…s/src/caps/tasks.rs Auto-committed-on: macbook
…ts.rs Auto-committed-on: macbook
…-bus-design.md Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
Auto-committed-on: macbook
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.
Refs #4
Part of tinyhumansai/openhuman#8055
Adds the v1 CapsHost callback contract and typed serde-only records for code, shell, memory, approval, and agent-runner calls. The module adapter uses the exact host-created callback address, constructs state and saved-workflow resolution over the owner-scoped document port, and executes spawned tools, HTTP requests, and nested workflows with the same run capabilities. Tokio task runner errors and panics settle tickets, terminal states remain stable after cancellation, and unsafe or parked child workflows fail explicitly.
Validation:
cargo fmt --all -- --checkcargo check -p tinyflows -p tinyflows-bus -p tinyflows-modulecargo clippy --all-targets --all-features -- -D warningscargo test --all-features(2,647 passed, 0 failed; 1 ignored artifact test)scripts/verify-module-artifact.sh(compiled module contract smoke test passed)cargo package -p tinyflows --allow-dirty --no-verifycargo tree -p tinyflows-bus -e normal(serde/chrono/serde_json only; no engine dependency)The old-red task regression failed with the legacy runner returning
{spec:"tool", ...}instead of the host action result. A nested Notify barrier also fails withTokioTaskRunner::new()and passes with the executor-backed runner.