Audit AI workflow trace value integrity
Audit every AI workflow execution from root trace through model, tool, cache, review and control steps to one mature business outcome, reconciling parent lineage, retries, wall-clock latency, direct cost and uniquely attributed net value while retaining unfinished work.
What it's for
Gives leaders a trustworthy unit of AI economics: one workflow request, every loop and tool call, its full cost, and one real outcome—not disconnected token and activity totals.
What you give it
Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| business_outcomes | array of objects (7 fields) | Evidence | Yes |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_relative_reconciliation_error | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_evidence_coverage | number ≥ 0, ≤ 1 | Your calibration | Optional |
| step_events | array of objects (15 fields) | Evidence | Yes |
| workflow_executions | array of objects (13 fields) | Evidence | Yes |
Each step_events
record
| Field | Type | Required |
|---|---|---|
| attempt_number | integer (≥ 1) | Yes |
| direct_cost | number (≥ 0) | Yes |
| ended_at_ms | number (≥ 0) | Yes |
| evidence_verified | boolean | Yes |
| execution_id | string (non-empty) | Yes |
| id | string (non-empty) | Yes |
| input_units | number (≥ 0) | Yes |
| output_units | number (≥ 0) | Yes |
| parent_step_event_id | any | Yes |
| satisfied_control_ids | array of string | Yes |
| sequence_number | integer (≥ 0) | Yes |
| started_at_ms | number (≥ 0) | Yes |
| step_kind | one of "model", "tool", "human_review", "cache", "router", "control" | Yes |
| succeeded | boolean | Yes |
| workflow_step_id | string (non-empty) | Yes |
{
"business_outcomes": [
{
"business_loss": 2,
"evidence_verified": true,
"execution_id": "execution-a",
"gross_business_value": 10,
"id": "outcome-a",
"outcome_matured": true,
"unique_attribution_verified": true
}
],
"step_events": [
{
"attempt_number": 1,
"direct_cost": 1,
"ended_at_ms": 20,
"evidence_verified": true,
"execution_id": "execution-a",
"id": "plan-event",
"input_units": 100,
"output_units": 20,
"parent_step_event_id": null,
"satisfied_control_ids": [
"approval"
],
"sequence_number": 0,
"started_at_ms": 0,
"step_kind": "model",
"succeeded": true,
"workflow_step_id": "plan"
},
{
"attempt_number": 1,
"direct_cost": 2,
"ended_at_ms": 100,
"evidence_verified": true,
"execution_id": "execution-a",
"id": "answer-event",
"input_units": 200,
"output_units": 50,
"parent_step_event_id": "plan-event",
"satisfied_control_ids": [],
"sequence_number": 1, Truncated for display — the full payload is 73 lines.
What you get back
This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.
{
"assumptions": [
"Execution, step-event, control and business-outcome records share one immutable tenant, workflow version, clock and value/cost perimeter; missing events and unfinished executions remain visible.",
"Parent links encode trace lineage rather than causal contribution. Direct step cost is invoice-compatible and business outcome attribution is independently governed and unique.",
"A passing trace establishes observability and accounting integrity, not causal incremental value, workflow safety, model/tool quality, or authorization to automate.",
"Outputs are aggregate workflow evidence and never an assessment of a provider, team or person."
],
"configuration": {
"maximum_relative_reconciliation_error": 0.005,
"minimum_evidence_coverage": 0.95,
"unfinished_rule": "in_progress_executions_are_retained_and_cannot_have_mature_outcomes",
"value_rule": "gross_business_value_minus_business_loss_minus_reconciled_step_cost"
},
"decision": "ai_workflow_trace_value_integrity_supported",
"execution_diagnostics": [
{
"execution_id": "execution-a",
"failed_gates": [],
"observed_trace_latency_ms": 100,
"reconciled_cost": 3,
"reconciled_net_business_value": 5,
"relative_cost_error": 0,
"relative_latency_error": 0,
"reported_cost": 3,
"reported_latency_ms": 100,
"reported_net_business_value": 5,
"retry_event_count": 0,
"step_event_count": 2,
"supported": true,
"terminal_status": "succeeded",
"workflow_class_id": "support-resolution",
"workflow_version": "v2"
}
],
"failed_gates": [],
"method": "end_to_end_ai_workflow_trace_cost_value_lineage_audit_v1",
"summary": {
"evidence_coverage": 1,
"execution_count": 1,
"in_progress_execution_count": 0,
"supported_execution_count": 1,
"unsupported_execution_count": 0,
"workflow_version_count": 1
}, Truncated for display — the full payload is 58 lines.
How it works
Statistical audit & measurement — Check whether a number is fit to decide on: coverage, timing, reconciliation, and the gaps a dashboard hides.
- 1 Join each immutable workflow-version execution to all step attempts, parent events, satisfied controls and its independently governed mature business outcome, retaining in-progress executions and missing rows.
- 2 Validate one rooted trace, parent-before-child order, consecutive attempts with no retry after success, required steps/controls, execution-time containment and terminal/outcome cardinality.
- 3 Reconcile step cost, observed wall-clock latency and gross value minus loss minus cost to reported execution totals; aggregate only after every lineage and evidence failure remains visible.
Before you trust it
Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.
Assumptions & guardrails
- Metric definitions, weights, aggregate grain, sampling, missingness, dependence, and comparison windows correspond to the management claim being audited.
- Execution, trace, control, invoice and business-outcome records share one tenant, workflow version, clock and economic perimeter; value attribution is mature, unique and independently governed.
- Association, instability, or measurement quality is not a causal effect and must not be converted directly into an individual employment decision.
- Passing proves trace and accounting integrity, not causal incremental value, safety, model/tool quality, automation approval or employee/provider performance.
Minimum evidence
- workflow_executions: required and organization-defined
- step_events: required and organization-defined
- business_outcomes: required and organization-defined
How to validate it
Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.
Calibrating it to your org
Same for everyone
The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.
Specific to you
- one point-in-time execution-step-control-outcome projection retaining root events, retries, failures, abandoned and in-progress executions plus missing outcomes before reconciliation
- workflow/version and terminal vocabulary, trace clock, required steps and controls, attempt semantics, tokenizer/tool units, direct-cost allocation, outcome maturity, unique attribution, value/loss perimeter, reconciliation tolerance and evidence coverage
Calibration workflow
- 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
- 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
- 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
- 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
- 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
- 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.
Call it from your AI
You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.
gitrevio_capabilities_search
{ "q": "audit every ai workflow execution from" }
→ finds "audit_ai_workflow_trace_value_integrity"
gitrevio_capability_describe
{ "capability_id": "audit_ai_workflow_trace_value_integrity" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "audit_ai_workflow_trace_value_integrity", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.
Related tools
Forecast AI workflow execution economics
Forecast multi-step AI workflow demand, retry and loop depth, success, p95 latency, full cost, failure loss and net business value with tenant-local empirical Bayes, log-normal attempt economics, shared operating scenarios and common-control failure VaR/CVaR.
Optimize AI workflow design portfolio
Select one governed AI workflow graph per use case, maximizing risk-adjusted business value under hard control, success, latency and scenario-availability gates plus shared model/tool/review capacity, dependencies, implementation budget and economic-regret CVaR.
Audit AI capability fallback integrity
Prove that every aggregate capability required when AI is unavailable has a current approved runbook and a sufficiently large, timely, successful, independently observed exercise conducted with AI actually disabled.
Audit AI code change evidence integrity
Prove that aggregate AI-assisted coding evidence comes from prospectively registered, nonoverlapping treatment/control studies with immutable assignment, configuration, trace and mature-outcome denominators before anyone estimates an effect.
Audit AI inference cost allocation integrity
Reconcile provider AI invoices bottom-up to workload and route usage, price terms, cached requests, retries, fixed charges and credits without combining currencies or silently allocating unexplained spend.
Audit AI knowledge grounding integrity
Audit the complete AI knowledge supply chain from immutable source versions through indexed chunks and effective access policy to retrieved evidence, claim-level citations and honestly mature grounding outcomes, without treating unresolved answers as failures.