Skip to content

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

chore: files changed src/openhuman/skills/ops_discover.rs,src/openhuman/skills/ops_types.rs

Steven Enamakeldb5456cde4fb
diff --git a/src/openhuman/skills/ops_discover.rs b/src/openhuman/skills/ops_discover.rs
index 2a17723dfa..d5b78b9fa4 100644
--- a/src/openhuman/skills/ops_discover.rs
+++ b/src/openhuman/skills/ops_discover.rs
@@ -415,6 +415,11 @@ fn precedence(scope: WorkflowScope) -> u8 {
WorkflowScope::Project => 3,
// Profile-local skills win against every global scope for their owner.
WorkflowScope::Profile => 4,
+ // Flows are never discovered by this scanner, so they never take part
+ // in a name collision resolved here. Ranked above everything so that
+ // if one ever reaches this function the answer is deterministic rather
+ // than accidental.
+ WorkflowScope::Flow => 5,
}
}
diff --git a/src/openhuman/skills/ops_types.rs b/src/openhuman/skills/ops_types.rs
index 3353bbf7dd..1b547f616c 100644
--- a/src/openhuman/skills/ops_types.rs
+++ b/src/openhuman/skills/ops_types.rs
@@ -63,6 +63,22 @@ pub enum WorkflowScope {
/// profile-local skill shadows a same-named global one for its owner. See
/// `ops_discover::discover_workflows_with_profile`.
Profile,
+ /// A saved **Flows automation** (a tinyflows graph), surfaced in the same
+ /// catalogue as SKILL.md bundles.
+ ///
+ /// **Not discovered from disk.** Every other scope is a directory the
+ /// skill scanner walked; this one is a row in `flows.db`, mapped into a
+ /// catalogue entry by `flows::catalogue`. It is a listing, not a bundle:
+ /// there is no `SKILL.md`, so `describe_workflow` and
+ /// `read_workflow_resource` have nothing to read and say so by name rather
+ /// than failing generically.
+ ///
+ /// It exists because a user asking "what can this thing already do for me"
+ /// does not distinguish the two, and neither should the catalogue. Before
+ /// this, the prompt carried ~200 bytes of caveat teaching the model that
+ /// the list it was reading deliberately omitted half the answer, and that
+ /// calling the obvious tool on the missing half "will error".
+ Flow,
}
/// Parsed frontmatter of a `SKILL.md` file.