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] flows bug: autonomy tier is frozen at run start #48
build_capabilities builds one SecurityPolicy per run (flows/tinyflows/caps/ops.rs:634-638); the code, native-tool and Composio gates use it (caps/code.rs:64, caps/tools/native.rs:48, caps/tools/composio.rs:117). The Composio backend reloads config per call because "a capability object can outlive a Settings change", but the tier gate does not. A user who switches Full → ReadOnly mid-run keeps getting Write-class code/native calls without a prompt until the run ends.
Fix: re-derive the policy per gated call (live policy, as security::live_policy does for cron). Regression test: tier change mid-run is honoured by the next call.
Done when: each defect above has a regression test that fails on the unfixed code and passes after the fix. Gates: cargo check (root + crates/openhuman-app), pnpm rust:layout, node scripts/ci/check-feature-forwarding.mjs, pnpm debug rust flows, and the touched crates' tests. RPC namespace strings, model-facing tool names and DomainEvent variant names stay unchanged unless the issue says otherwise.
Agent brief
Files to consider (paths under crates/openhuman-core/src/ unless rooted): flows/tinyflows/caps/ops.rs, flows/tinyflows/caps/tier.rs, flows/tinyflows/caps/code.rs, flows/tinyflows/caps/tools/native.rs, flows/tinyflows/caps/tools/composio.rs
Research:security::live_policy; how cron/scheduler.rs derives policy.
Activity
senamakel commentedon Oct 16, 2026
Merged in #107 (c1c1bf4).