Skip to article
CogniTech.Docs

Workflow testing engine

Dependency-aware foreground evaluation, validation outputs and the non-broadcasting contract.

On this page

Evaluation model

The editor runs the foreground engine against a validated graph. A full run requires one Manual Start and resolves the reachable execution path. A node test can traverse its typed upstream dependencies. The engine evaluates compatible inputs, applies allocation arithmetic, evaluates selected true/false branches and marks paths not taken as skipped. Data may come from current RPC reads, local vault state, CoinGecko quotes or allowed public AI analysis.

javascript
// Conceptual pseudocode; these are not exported API names.
validate(graph);
for (const step of selectedExecutionPath) {
  const values = resolveTypedInputs(step);
  const outcome = await evaluateReadOrPreparation(step, values);
  recordStatus(step, outcome.status);
}

Status and safety

Step events use processing, passed, failed, skipped, and requires_input. Run completion uses passed, failed, or stopped. Missing protected settings or unsupported values can require input. Quote freshness, incompatible data, and balance constraints may fail a step. Tests never spend funds, approve allowances, or hand signing authority to Claude.

The app persists run metadata, status and aggregate counts. A passed test is a statement about an evaluated workflow with those inputs, not a guarantee of future execution or settlement.

See registry and strategy persistence.