Skip to content

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

chore(flows): fix indentation of match arms in schema lookup functions

Steven Enamakeld8598f8719bb
diff --git a/crates/openhuman-core/src/flows/schemas/builder_schemas.rs b/crates/openhuman-core/src/flows/schemas/builder_schemas.rs
index 06007cea17..eddf9001c0 100644
--- a/crates/openhuman-core/src/flows/schemas/builder_schemas.rs
+++ b/crates/openhuman-core/src/flows/schemas/builder_schemas.rs
@@ -9,7 +9,7 @@ use super::{
/// Builds the schema for `function` when this group owns it.
pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
match function {
-"build" => Some( ControllerSchema {
+ "build" => Some(ControllerSchema {
namespace: "flows",
function: "build",
description: "Run the workflow_builder agent for one authoring turn. `mode` selects \
@@ -81,7 +81,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"build_cancel" => Some( ControllerSchema {
+ "build_cancel" => Some(ControllerSchema {
namespace: "flows",
function: "build_cancel",
description: "Cancel the in-flight `flows_build` (Workflow Copilot) turn streaming \
@@ -123,7 +123,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"search_tool_catalog" => Some( ControllerSchema {
+ "search_tool_catalog" => Some(ControllerSchema {
namespace: "flows",
function: "search_tool_catalog",
description: "Search the live Composio tool catalog (secret-free) for the in-canvas \
@@ -155,7 +155,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"get_tool_contract" => Some( ControllerSchema {
+ "get_tool_contract" => Some(ControllerSchema {
namespace: "flows",
function: "get_tool_contract",
description: "Fetch one Composio action's full contract (secret-free) for the canvas \
@@ -173,7 +173,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"discover" => Some( ControllerSchema {
+ "discover" => Some(ControllerSchema {
namespace: "flows",
function: "discover",
description: "Run the read-only Flow Scout: it reads the user's \
@@ -185,7 +185,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
inputs: vec![stream_thread_id_input(), stream_request_id_input()],
outputs: vec![suggestions_output()],
}),
-"list_suggestions" => Some( ControllerSchema {
+ "list_suggestions" => Some(ControllerSchema {
namespace: "flows",
function: "list_suggestions",
description: "List persisted workflow suggestions. Filter by lifecycle `status` \
@@ -199,7 +199,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
}],
outputs: vec![suggestions_output()],
}),
-"dismiss_suggestion" => Some( ControllerSchema {
+ "dismiss_suggestion" => Some(ControllerSchema {
namespace: "flows",
function: "dismiss_suggestion",
description: "Dismiss a workflow suggestion (the user rejected the card). The row is \
@@ -213,7 +213,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"mark_suggestion_built" => Some( ControllerSchema {
+ "mark_suggestion_built" => Some(ControllerSchema {
namespace: "flows",
function: "mark_suggestion_built",
description: "Mark a suggestion as built — called after the user saves a flow authored \
diff --git a/crates/openhuman-core/src/flows/schemas/definition_schemas.rs b/crates/openhuman-core/src/flows/schemas/definition_schemas.rs
index 03d4839350..0da7320f84 100644
--- a/crates/openhuman-core/src/flows/schemas/definition_schemas.rs
+++ b/crates/openhuman-core/src/flows/schemas/definition_schemas.rs
@@ -10,7 +10,7 @@ use super::{
/// Builds the schema for `function` when this group owns it.
pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
match function {
-"create" => Some( ControllerSchema {
+ "create" => Some(ControllerSchema {
namespace: "flows",
function: "create",
description: "Create a new saved automation workflow from a tinyflows graph.",
@@ -33,7 +33,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![flow_output()],
}),
-"duplicate" => Some( ControllerSchema {
+ "duplicate" => Some(ControllerSchema {
namespace: "flows",
function: "duplicate",
description: "Duplicate a saved flow: create an independent copy of its graph under a \
@@ -43,7 +43,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
inputs: vec![id_input("Identifier of the flow to duplicate.")],
outputs: vec![flow_output()],
}),
-"validate" => Some( ControllerSchema {
+ "validate" => Some(ControllerSchema {
namespace: "flows",
function: "validate",
description: "Validate a tinyflows graph without saving it: reports structural \
@@ -77,7 +77,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
},
],
}),
-"import" => Some( ControllerSchema {
+ "import" => Some(ControllerSchema {
namespace: "flows",
function: "import",
description: "Import a workflow definition WITHOUT saving it: parse a native tinyflows \
@@ -121,14 +121,14 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
},
],
}),
-"get" => Some( ControllerSchema {
+ "get" => Some(ControllerSchema {
namespace: "flows",
function: "get",
description: "Load one saved flow by id.",
inputs: vec![id_input("Identifier of the flow to load.")],
outputs: vec![flow_output()],
}),
-"list" => Some( ControllerSchema {
+ "list" => Some(ControllerSchema {
namespace: "flows",
function: "list",
description: "List all saved flows.",
@@ -140,7 +140,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"list_connections" => Some( ControllerSchema {
+ "list_connections" => Some(ControllerSchema {
namespace: "flows",
function: "list_connections",
description: "List the connection sources a flow node's `connection_ref` can attach \
@@ -161,7 +161,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"update" => Some( ControllerSchema {
+ "update" => Some(ControllerSchema {
namespace: "flows",
function: "update",
description: "Update a saved flow's name and/or graph; re-validates before persisting.",
@@ -185,7 +185,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![flow_output()],
}),
-"delete" => Some( ControllerSchema {
+ "delete" => Some(ControllerSchema {
namespace: "flows",
function: "delete",
description: "Delete a saved flow by id.",
@@ -212,7 +212,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"set_enabled" => Some( ControllerSchema {
+ "set_enabled" => Some(ControllerSchema {
namespace: "flows",
function: "set_enabled",
description: "Enable or disable a saved flow.",
@@ -227,7 +227,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![flow_output()],
}),
-"get_history" => Some( ControllerSchema {
+ "get_history" => Some(ControllerSchema {
namespace: "flows",
function: "get_history",
description: "List a flow's revision history — prior graph snapshots captured on each \
@@ -248,7 +248,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"rollback" => Some( ControllerSchema {
+ "rollback" => Some(ControllerSchema {
namespace: "flows",
function: "rollback",
description: "Roll a flow back to a prior revision (restores that revision's graph \
@@ -266,7 +266,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![flow_output()],
}),
-"required_connections" => Some( ControllerSchema {
+ "required_connections" => Some(ControllerSchema {
namespace: "flows",
function: "required_connections",
description: "Compute which Composio toolkits a candidate graph needs and whether each \
@@ -285,7 +285,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"approval_manifest" => Some( ControllerSchema {
+ "approval_manifest" => Some(ControllerSchema {
namespace: "flows",
function: "approval_manifest",
description:
diff --git a/crates/openhuman-core/src/flows/schemas/draft_schemas.rs b/crates/openhuman-core/src/flows/schemas/draft_schemas.rs
index 17ca8b766c..0cddc104c0 100644
--- a/crates/openhuman-core/src/flows/schemas/draft_schemas.rs
+++ b/crates/openhuman-core/src/flows/schemas/draft_schemas.rs
@@ -9,7 +9,7 @@ use super::{
/// Builds the schema for `function` when this group owns it.
pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
match function {
-"draft_create" => Some( ControllerSchema {
+ "draft_create" => Some(ControllerSchema {
namespace: "flows",
function: "draft_create",
description: "Create a core-managed draft (a durable, non-live working copy of a graph) \
@@ -42,14 +42,14 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![draft_output()],
}),
-"draft_get" => Some( ControllerSchema {
+ "draft_get" => Some(ControllerSchema {
namespace: "flows",
function: "draft_get",
description: "Fetch a draft by id.",
inputs: vec![id_input("Identifier of the draft to fetch.")],
outputs: vec![draft_output()],
}),
-"draft_update" => Some( ControllerSchema {
+ "draft_update" => Some(ControllerSchema {
namespace: "flows",
function: "draft_update",
description: "Patch a draft's name/graph/flow_id (any provided field) and bump its \
@@ -77,7 +77,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
],
outputs: vec![draft_output()],
}),
-"draft_list" => Some( ControllerSchema {
+ "draft_list" => Some(ControllerSchema {
namespace: "flows",
function: "draft_list",
description: "List all drafts, newest-updated first.",
@@ -89,7 +89,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"draft_delete" => Some( ControllerSchema {
+ "draft_delete" => Some(ControllerSchema {
namespace: "flows",
function: "draft_delete",
description: "Delete a draft by id (idempotent).",
@@ -101,7 +101,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"draft_promote" => Some( ControllerSchema {
+ "draft_promote" => Some(ControllerSchema {
namespace: "flows",
function: "draft_promote",
description: "Promote a draft into a saved flow through the same create/update gates \
diff --git a/crates/openhuman-core/src/flows/schemas/run_schemas.rs b/crates/openhuman-core/src/flows/schemas/run_schemas.rs
index 1c431d4ea5..63f75c2a98 100644
--- a/crates/openhuman-core/src/flows/schemas/run_schemas.rs
+++ b/crates/openhuman-core/src/flows/schemas/run_schemas.rs
@@ -8,7 +8,7 @@ use super::{
/// Builds the schema for `function` when this group owns it.
pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
match function {
-"run" => Some( ControllerSchema {
+ "run" => Some(ControllerSchema {
namespace: "flows",
function: "run",
description:
@@ -41,7 +41,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"run_detached" => Some( ControllerSchema {
+ "run_detached" => Some(ControllerSchema {
namespace: "flows",
function: "run_detached",
description: "Start a saved flow WITHOUT waiting for it to finish: validates + \
@@ -76,7 +76,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"resume" => Some( ControllerSchema {
+ "resume" => Some(ControllerSchema {
namespace: "flows",
function: "resume",
description: "Resume a flow run paused at a human-in-the-loop approval gate, \
@@ -117,7 +117,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"cancel_run" => Some( ControllerSchema {
+ "cancel_run" => Some(ControllerSchema {
namespace: "flows",
function: "cancel_run",
description: "Cancel a flow run: settle it to a terminal `cancelled` status, abort \
@@ -160,7 +160,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"list_runs" => Some( ControllerSchema {
+ "list_runs" => Some(ControllerSchema {
namespace: "flows",
function: "list_runs",
description: "List the most recent runs for a flow, newest first.",
@@ -180,7 +180,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"list_all_runs" => Some( ControllerSchema {
+ "list_all_runs" => Some(ControllerSchema {
namespace: "flows",
function: "list_all_runs",
description: "List the most recent runs across all flows, newest first.",
@@ -197,7 +197,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"get_run" => Some( ControllerSchema {
+ "get_run" => Some(ControllerSchema {
namespace: "flows",
function: "get_run",
description: "Load one persisted flow run record by its (checkpoint thread) id.",
@@ -214,7 +214,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
required: true,
}],
}),
-"prune_runs" => Some( ControllerSchema {
+ "prune_runs" => Some(ControllerSchema {
namespace: "flows",
function: "prune_runs",
description: "Manually prune a flow's run history down to the retention cap, deleting \
diff --git a/scripts/check-domain-e2e-coverage.mjs b/scripts/check-domain-e2e-coverage.mjs
index 0861749704..3b89c5b5b1 100644
--- a/scripts/check-domain-e2e-coverage.mjs
+++ b/scripts/check-domain-e2e-coverage.mjs
@@ -197,8 +197,8 @@ function collectInvokedMethods() {
* This reads EVERY `.rs` file under those roots. It used to read only files
* whose path matched `/(^|\/)schemas?(\.rs|\/)/`, which stopped working on
* 2026-08-30: the `include!` split (#5856/#5857) moved `ControllerSchema`
- * literals out of `schemas.rs` into `*_part_NN.rs` siblings that the pattern
- * does not match, and out of `flows/schemas.rs` into `flows_schema_part_*.rs`
+ * literals out of `schemas.rs` into sibling files that the pattern does not
+ * match, and out of `flows/schemas.rs` into `flows/schemas/*_schemas.rs`
* entirely. Thirteen files and 180 controllers went invisible in one commit,
* with no signal — the gate simply reported a smaller world.
*