Validation, tests and evidence
Distinguish schema checks, graph previews, synthetic code tests and real provider verification.
Agent reports should state exactly what a check proves. ONF has several verification layers with different effects. A graph can be structurally valid while its provider credential is invalid; a mocked execution can pass while the actual service behaves differently.
Graph validation#
onf_validate_workflow checks a saved workflow or proposed metadata/graph patch without saving or running node code. It inspects known sockets and dependencies, required values, custom type compatibility, configuration and acyclic wiring. A result includes valid, issues and the workflow identity/revision.
Use validation after authoring and before execution. If a definition or type is missing, retrieve or publish the intended exact contract rather than guessing an ID to silence the issue. Validation cannot prove remote permissions, account state or network availability.
Draft previews#
Supported graph tools can apply changes to an isolated draft with dryRun:true. They still require the current workflow revision. Preview output helps inspect a change before saving; it does not prove provider behavior. A dry-run flag exists only on specific schemas, so adding it to an arbitrary tool call is not a general safety mechanism.
Code and type tests#
onf_test_definition accepts exactly one of a definition ID or an unpublished draft. A saved version can be selected explicitly. Default inputs, configuration and trigger input are empty objects. The MCP test timeout defaults to 30,000 ms and ranges from 100 to 45,000 ms; longer work belongs in an asynchronous workflow run.
Type tests inspect the provided value. Node/trigger/executor tests execute real code and can perform external actions. Temporary test state or storage does not make network calls harmless. Use synthetic fixtures, injected transports or explicitly authorized provider effects. A test does not publish a draft.
Debug fixtures#
Debug runs can provide node-output fixtures and control routes, then pause before unmocked code. mockUnconfigured defaults to true. Setting it false permits actual code and its effects; it is a deliberate change in execution scope. Breakpoints and stepping improve inspection but do not roll back previously accepted work.
Report the evidence boundary#
A useful completion report distinguishes:
- Structural graph validation and draft preview.
- Code execution using synthetic inputs or mocks.
- A real installed workflow run and its captured pins.
- Provider authentication/read verification.
- Actual provider mutation and resulting external state.
Do not count historical documentation or a successful HTTP health check as a fresh provider test. Retain run IDs and explain unavailable snapshots or uncertain actions. Diagnose before repeating external work, and use the execution recovery guide for lost responses and retained side effects.
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
docs/MCP.mddocs/API.mddocs/VALIDATION.mdserver/mcp-tools.tsserver/validation.tsdocs/DEBUGGING-AND-WAITS.md