Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/flows/README.md,crates/openhuman-core/src/skills/READ

Steven Enamakel1af990f3729d
diff --git a/crates/openhuman-core/src/flows/README.md b/crates/openhuman-core/src/flows/README.md
index ed4d4f9256..a0626f3221 100644
--- a/crates/openhuman-core/src/flows/README.md
+++ b/crates/openhuman-core/src/flows/README.md
@@ -219,11 +219,12 @@ makes a real Composio call, limited to Read-scope actions on a connected
toolkit. `resume_flow_run` is `Execute`-gated because resuming lets approved
nodes fire.
-The long authoring manual is a bundled skill ([`skills/mod.rs`](./skills/mod.rs), needs both the
-`flows` and `skills` features): the portable `flow-authoring` pages from
-`tinyflows-copilot`, registered with OpenHuman's native skill runtime. Binding
-rules stay in the agent prompt; reference material the model looks up goes in
-the skill.
+The long authoring manual is owned by TinyFlows Copilot. With the `flows` and
+`skills` features and runtime components enabled, OpenHuman requests its
+`flow-authoring` files through `tinyflows_bus::copilot::ListResources` and
+materializes them through TinySkills under a separate scoped builtin root.
+Binding rules stay in the agent prompt; reference material the model looks up
+goes in the skill.
### Flow memory
@@ -270,7 +271,7 @@ Top level:
| `../agent/registry/agents/` | `workflow_builder/` and `flow_discovery/` built-in definitions and prompt builders. |
| [`catalogue.rs`](./catalogue.rs) | `flow_entries` lists saved flows as `Workflow` entries with `WorkflowScope::Flow`, so the skill catalogue and `skill_search` show one list. |
| [`node_contracts.rs`](./node_contracts.rs) | Host overlay on `tinyflows::catalog`'s node-kind contracts (which `tool_call` slugs resolve to Composio or native `oh:` tools, which trigger kinds dispatch here). |
-| `skills/` | Registers the bundled `flow-authoring` skill. |
+| `../skills/bundled/flow_authoring.rs` | Adapts Copilot `ListResources` to TinySkills materialization and scoped skill discovery. |
| `tinyflows/` | The capability seam. See [tinyflows/README.md](tinyflows/README.md). |
`ops/`, grouped by role:
diff --git a/crates/openhuman-core/src/skills/README.md b/crates/openhuman-core/src/skills/README.md
index 6d9770239e..a496aa39aa 100644
--- a/crates/openhuman-core/src/skills/README.md
+++ b/crates/openhuman-core/src/skills/README.md
@@ -121,12 +121,22 @@ session for a match is not implemented.
### Bundled skills
[`bundled/mod.rs`](./bundled/mod.rs) holds the compiled-in `BUNDLED` table: `desktop-control`
-(behind `modules`) and the flows `FLOW_AUTHORING` manual (behind `flows`).
-`install_bundled_skills` materializes them under
-`<workspace>/.openhuman/builtin-skills/`, and discovery accepts a directory
-there only while its bytes still match the binary
-(`is_current_materialization`). Nothing on the boot path calls
-`install_bundled_skills` today; only tests do.
+(behind `modules`). `install_bundled_skills` materializes those static entries
+under `<workspace>/.openhuman/builtin-skills/`, and discovery accepts a
+directory there only while its bytes still match the binary
+(`is_current_materialization`).
+
+The `flow-authoring` skill is owned by TinyFlows Copilot. When `skills`,
+`flows`, `tinyflows`, and the relevant domains are enabled, core and channel
+startup schedule its bounded preflight in the background, outside ordinary
+chat startup. Direct prompt inspection awaits the same bounded preflight.
+Session discovery schedules a retry when no current snapshot is ready. The
+preflight requests its files through the Copilot bus contract and materializes
+them under a separate, tenant/config-scoped
+`<workspace>/.openhuman/builtin-flow-skills/` root with `tinyskills`' atomic
+writer. Synchronous discovery includes it only while the current snapshot,
+module lifecycle, and TinySkills-validated files agree. Missing modules leave
+the optional skill hidden and ordinary chat available.
## Layout
@@ -214,7 +224,8 @@ rather than re-implementing it:
| `remove_bundle` | Root search order, error wording, the `WorkflowsChanged` publish |
| Install URL normalization, the guarded `fetch_skill_document` (HTTPS only, non-public addresses refused, pinned connections, re-validated redirects, size cap, timeout), document validation, `write_installed_document`, `redact_url` | `Retry-After` and rate-limit messages, Sentry reporting |
| `TriggerPattern` grammar and matching | `TriggeredWorkflowIndex` and the bus subscriber |
-| Bundled-skill validate, digest, install, `is_current_materialization` | The `BUNDLED` table and the builtin root |
+| Bundled-skill validate, digest, install, `is_current_materialization` | The static `BUNDLED` table and its builtin root |
+| TinyFlows Copilot `ListResources` | The scoped flow-authoring snapshot, separate materialization root, and cache/read verification |
Other owners: the orchestrator prompt renders the catalog
(`agent/registry/agents/orchestrator/prompt.rs`), channel turns render their
diff --git a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs b/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
index dfbac37b2e..36c6922f30 100644
--- a/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
+++ b/crates/openhuman-core/src/skills/bundled/flow_authoring.rs
@@ -439,3 +439,7 @@ fn clear_snapshot(key: &SnapshotKey) {
crate::skills::ops_discover::invalidate_workflow_metadata_cache();
}
}
+
+#[cfg(test)]
+#[path = "flow_authoring_tests.rs"]
+mod tests;