Skip to content
LakeSharkDocumentation
FLOW STUDIO / DOCUMENTATION

Validate and test

Understand graph validation, side-effect-free testing, live execution and diagnostic evidence.

Testing a Flow requires separating what the graph looks like from what the backend has actually executed.

Release status: Independent Flow execution is under development. Do not treat editor previews, mock output, a saved revision, or an HTTP route name in documentation as proof that live execution is available.

Validation checklist

Before publishing any Flow, verify these conditions:

  1. Every step is connected to a reachable path from the Flow input.
  2. Conditional steps have the required TRUE and FALSE routes.
  3. There are no unsupported cycles or ambiguous final outputs.
  4. All required mappings resolve to the correct JSON types and available step outputs.
  5. Referenced AnswerSets, ExecutionSets and GovernanceSets are accessible in the current workspace at their intended versions.
  6. Pure AI Call steps have an authorized provider/model and enforceable limits.
  7. The Flow’s final result matches its declared output schema.

The server must validate a saved revision. Client-side visual checks are useful but cannot replace server enforcement.

Test modes

Mode What it proves Side effects
Editor preview The UI can display the intended graph None
Validation A schema and graph are accepted by the validator that actually ran None
Mock test A deterministic fixture follows the simulated routes None
Live run A real published revision executed, when enabled May invoke real AI providers and external actions
Historical run A recorded result and step evidence from an earlier attempt Viewing is read-only

A mock success does not prove that an AI provider was contacted or an HTTP ExecutionSet ran.

Run diagnostics

A useful run report identifies the run ID, Flow ID, saved revision, start/end timestamps, overall status, each step’s status, and the selected Conditional route. It should distinguish not executed, not recorded, failed and succeeded rather than inferring success from a green connector.

Never publish credentials or sensitive input/output data into audit messages. Sensitive fields must be redacted according to workspace policy.

Before a real invocation

Confirm that a live execution feature is enabled for the workspace, that the relevant external destination is approved, and that the request uses a Flow Key or another explicitly documented Flow authorization mechanism. Avoid retrying an uncertain side-effecting operation with a different idempotency identity until its outcome is known.

To understand the independent credentials and planned run endpoint, see Flow Keys and API.