{
"schema_version": "PipelineManifestV1",
"mode": "shadow",
"run_id": "44250090-ee00-4a85-bf3e-9a6286c85b8c",
"execution_scope": "prepare_only",
"outcome": "requirements_ready",
"status": "completed",
"started_at": "2026-07-10T18:48:03.364Z",
"completed_at": "2026-07-10T18:52:06.922Z",
"mh_os_root": "/opt/aimatch/app",
"artifact_root": "/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c",
"sidecar_root": "/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2",
"previous_sidecar_archive": null,
"models": {
"context": {
"model": "claude-haiku-4-5-20251001",
"effort": "low"
},
"roles": {
"model": "claude-haiku-4-5-20251001",
"effort": "low"
},
"brief": {
"model": "claude-sonnet-4-6",
"effort": "medium"
},
"qc": {
"model": "claude-sonnet-4-6",
"effort": "medium"
},
"requirements": {
"model": "claude-sonnet-4-6",
"effort": "medium"
},
"searchPlan": {
"model": "claude-haiku-4-5-20251001",
"effort": "low"
},
"candidateEval": {
"model": "claude-sonnet-4-6",
"effort": "medium"
},
"fallback": {
"model": "claude-opus-4-8",
"effort": "medium"
}
},
"stages": [
{
"name": "inputs",
"status": "completed",
"started_at": "2026-07-10T18:48:03.365Z",
"completed_at": "2026-07-10T18:48:03.367Z",
"input_files": [],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/transcript.md"
],
"attempts": [],
"error": null
},
{
"name": "hubspot-context",
"status": "completed",
"started_at": "2026-07-10T18:48:03.367Z",
"completed_at": "2026-07-10T18:48:03.368Z",
"input_files": [],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/hubspot-context.json"
],
"attempts": [],
"error": null
},
{
"name": "context-distillation",
"status": "completed",
"started_at": "2026-07-10T18:48:03.637Z",
"completed_at": "2026-07-10T18:48:41.154Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/transcript.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/hubspot-context.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/context-md"
],
"attempts": [
{
"provider": "anthropic",
"stage": "context-distillation",
"model": "claude-haiku-4-5-20251001",
"effort": "low",
"prompt_version": "context-distillation:v2-hubspot-context",
"raw_response_id": "msg_011CctsmQ6m4dNk93BFkS43A",
"request_id": "req_011CctsmPCBozjqNQHN2EUW6",
"latency_ms": 37516,
"usage": {
"input_tokens": 5967,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 3874,
"service_tier": "standard",
"inference_geo": "not_available"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "budget-decision",
"status": "completed",
"started_at": "2026-07-10T18:48:41.157Z",
"completed_at": "2026-07-10T18:49:20.705Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/context-md/budget.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/transcript.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/hubspot-context.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/budget/budget-decision.json"
],
"attempts": [
{
"provider": "anthropic",
"stage": "budget-decision",
"model": "claude-haiku-4-5-20251001",
"effort": "low",
"prompt_version": "budget-decision:v3-per-role-scope-policy",
"raw_response_id": "msg_011Cctsp9x3bLsWDFRxM7f5q",
"request_id": "req_011Cctsp9TXdZYziChWawqR5",
"latency_ms": 18817,
"usage": {
"input_tokens": 8896,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 2003,
"service_tier": "standard",
"inference_geo": "not_available"
},
"validation": {
"ok": false,
"errors": [
"flags must be a string array",
"notes must be a string"
]
}
},
{
"provider": "anthropic",
"stage": "budget-decision",
"model": "claude-opus-4-8",
"effort": "medium",
"prompt_version": "budget-decision:v3-per-role-scope-policy:retry",
"raw_response_id": "msg_011CctsqZ2Pta9yi1U6si4FY",
"request_id": "req_011CctsqXtvx2RAhAVKr7SAF",
"latency_ms": 20729,
"usage": {
"input_tokens": 12102,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 1999,
"output_tokens_details": {
"thinking_tokens": 0
},
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "role-detection",
"status": "completed",
"started_at": "2026-07-10T18:49:20.742Z",
"completed_at": "2026-07-10T18:49:48.118Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/call-evidence-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/roles-detected.json"
],
"attempts": [
{
"provider": "anthropic",
"stage": "role-detection",
"model": "claude-haiku-4-5-20251001",
"effort": "low",
"prompt_version": "role-detection:v2-active-gate",
"raw_response_id": "msg_011Cctss7yZiGJXnwceiRrJZ",
"request_id": "req_011Cctss4h7o7FbW2EqmTk1Z",
"latency_ms": 12593,
"usage": {
"input_tokens": 6406,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 900,
"service_tier": "standard",
"inference_geo": "not_available"
},
"validation": {
"ok": false,
"errors": [
"roles must be a non-empty array"
]
}
},
{
"provider": "anthropic",
"stage": "role-detection",
"model": "claude-opus-4-8",
"effort": "medium",
"prompt_version": "role-detection:v2-active-gate:retry",
"raw_response_id": "msg_011Cctst1QD5uSytCmLSvEK9",
"request_id": "req_011CctsszeZd3kATcAyMVGRL",
"latency_ms": 14782,
"usage": {
"input_tokens": 8561,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 1189,
"output_tokens_details": {
"thinking_tokens": 0
},
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "lead-recap-draft",
"status": "completed",
"started_at": "2026-07-10T18:49:48.121Z",
"completed_at": "2026-07-10T18:49:48.122Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/roles-detected.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/active-roles.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/lead-recap/skipped.json"
],
"attempts": [],
"error": null
},
{
"name": "brief:paid-social-media-marketer",
"status": "completed",
"started_at": "2026-07-10T18:49:48.123Z",
"completed_at": "2026-07-10T18:50:19.779Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/brief-template-rules-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/brief.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/job-brief.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/internal-notes.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/formData.json"
],
"attempts": [
{
"provider": "anthropic",
"stage": "brief:paid-social-media-marketer",
"model": "claude-sonnet-4-6",
"effort": "medium",
"prompt_version": "role-brief:v3-compact-prefix",
"raw_response_id": "msg_011Cctsu6NdUtn9THjxCmqWA",
"request_id": "req_011Cctsu5kvd9FTfnDK4jJVw",
"latency_ms": 31656,
"usage": {
"input_tokens": 7829,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 1484,
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "granola-brief:paid-social-media-marketer",
"status": "completed",
"started_at": "2026-07-10T18:50:19.784Z",
"completed_at": "2026-07-10T18:51:07.327Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/call-evidence-packet.md",
"/opt/aimatch/app/aimatch/playbooks/granola-brief-template.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/job-brief.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/internal-notes.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/granola-brief.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/granola-brief.md"
],
"attempts": [
{
"provider": "anthropic",
"stage": "granola-brief:paid-social-media-marketer",
"model": "claude-sonnet-4-6",
"effort": "medium",
"prompt_version": "granola-brief:v1-prefix",
"raw_response_id": "msg_011CctswRyesvjSu9rTygsGr",
"request_id": "req_011CctswR93mHpiKDWWGoJGV",
"latency_ms": 47542,
"usage": {
"input_tokens": 8702,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 2437,
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "brief-qc:paid-social-media-marketer",
"status": "completed",
"started_at": "2026-07-10T18:51:07.330Z",
"completed_at": "2026-07-10T18:51:24.542Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/role-brief-internal-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/brief-qc.json",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/brief-qc.md"
],
"attempts": [
{
"provider": "anthropic",
"stage": "brief-qc:paid-social-media-marketer",
"model": "claude-sonnet-4-6",
"effort": "medium",
"prompt_version": "brief-qc:v1-prefix",
"raw_response_id": "msg_011Cctszvw1uWsPMSAD8gKDT",
"request_id": "req_011CctszvSkhHxdHwRYaxfSk",
"latency_ms": 17210,
"usage": {
"input_tokens": 7055,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 837,
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "requirements:paid-social-media-marketer",
"status": "completed",
"started_at": "2026-07-10T18:51:24.544Z",
"completed_at": "2026-07-10T18:52:01.483Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/role-brief-internal-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/classified-requirements.json"
],
"attempts": [
{
"provider": "anthropic",
"stage": "requirements:paid-social-media-marketer",
"model": "claude-sonnet-4-6",
"effort": "medium",
"prompt_version": "requirements:v1-prefix",
"raw_response_id": "msg_011Cctt2CTSuzDmte1dptygF",
"request_id": "req_011Cctt2BzAgQRuvBzwdkRg2",
"latency_ms": 36939,
"usage": {
"input_tokens": 7115,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 2371,
"service_tier": "standard",
"inference_geo": "global"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "search-plan:paid-social-media-marketer",
"status": "completed",
"started_at": "2026-07-10T18:52:01.486Z",
"completed_at": "2026-07-10T18:52:06.915Z",
"input_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/classified-requirements.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/44250090-ee00-4a85-bf3e-9a6286c85b8c/api-v2/roles/paid-social-media-marketer/search-plan.json"
],
"attempts": [
{
"provider": "anthropic",
"stage": "search-plan:paid-social-media-marketer",
"model": "claude-haiku-4-5-20251001",
"effort": "low",
"prompt_version": "search-plan:v1",
"raw_response_id": "msg_011Cctt4vBV8LmRQJqRMoLiZ",
"request_id": "req_011Cctt4utd8SLqX1eBicz78",
"latency_ms": 5427,
"usage": {
"input_tokens": 4011,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 587,
"service_tier": "standard",
"inference_geo": "not_available"
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
}
],
"errors": [],
"usage": {
"attempts": 10,
"input_tokens": 76644,
"output_tokens": 17681,
"thoughts_tokens": 0,
"output_billable_tokens": 17681,
"total_tokens": 94325,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"uncached_input_tokens": 76644,
"latency_ms": 243211
},
"cost": {
"schema_version": "LlmCostSummaryV1",
"currency": "USD",
"pricing_source": "https://platform.claude.com/docs/en/about-claude/pricing; https://ai.google.dev/gemini-api/docs/pricing; https://openrouter.ai/z-ai/glm-5.2/api; https://developers.openai.com/api/docs/models/gpt-5.5; https://developers.openai.com/api/docs/models/gpt-5.4-mini",
"pricing_source_checked_at": "2026-07-10T18:52:06.919Z",
"pricing_notes": [
"Gemini 3.5 Flash defaults use Google Gemini API paid-tier standard rates: input $1.50/1M, output including thinking $9.00/1M, cached context $0.15/1M.",
"GLM 5.2 through OpenRouter defaults use the live model-catalog rates checked July 10, 2026: input $0.42/1M, output including reasoning $1.32/1M, cached input $0.078/1M.",
"Claude Haiku 4.5 defaults use input $1/1M, output $5/1M, 5m cache write $1.25/1M, 1h cache write $2/1M, and cache read $0.10/1M.",
"Claude Sonnet 4.6 defaults use input $3/1M, output $15/1M, 5m cache write $3.75/1M, 1h cache write $6/1M, and cache read $0.30/1M.",
"Claude Opus 4.8 defaults use input $5/1M, output $25/1M, 5m cache write $6.25/1M, 1h cache write $10/1M, and cache read $0.50/1M.",
"OpenAI GPT-5.5 defaults use input $5/1M, output including reasoning $30/1M, and cached input $0.50/1M.",
"OpenAI GPT-5.4 mini defaults use input $0.75/1M, output including reasoning $4.50/1M, and cached input $0.075/1M.",
"Gemini, OpenAI, and OpenRouter report cached input as a subset of input tokens; direct Anthropic reports uncached, cache-write, and cache-read tokens separately.",
"Rates can be overridden with AIMATCH_API_V2_COST_*_USD_PER_1M environment variables."
],
"input_cost_usd": 0.220698,
"output_cost_usd": 0.223455,
"cache_creation_cost_usd": 0,
"cache_read_cost_usd": 0,
"total_cost_usd": 0.444153,
"by_model": [
{
"provider": "anthropic",
"model": "claude-haiku-4-5-20251001",
"attempts": 4,
"input_tokens": 25280,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0,
"output_tokens": 7364,
"thoughts_tokens": 0,
"uncached_input_tokens": 25280,
"output_billable_tokens": 7364,
"input_usd_per_1m_tokens": 1,
"output_usd_per_1m_tokens": 5,
"cache_read_usd_per_1m_tokens": 0.1,
"cache_creation_usd_per_1m_tokens": 1.25,
"cost_usd": 0.0621
},
{
"provider": "anthropic",
"model": "claude-opus-4-8",
"attempts": 2,
"input_tokens": 20663,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0,
"output_tokens": 3188,
"thoughts_tokens": 0,
"uncached_input_tokens": 20663,
"output_billable_tokens": 3188,
"input_usd_per_1m_tokens": 5,
"output_usd_per_1m_tokens": 25,
"cache_read_usd_per_1m_tokens": 0.5,
"cache_creation_usd_per_1m_tokens": 6.25,
"cost_usd": 0.183015
},
{
"provider": "anthropic",
"model": "claude-sonnet-4-6",
"attempts": 4,
"input_tokens": 30701,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0,
"output_tokens": 7129,
"thoughts_tokens": 0,
"uncached_input_tokens": 30701,
"output_billable_tokens": 7129,
"input_usd_per_1m_tokens": 3,
"output_usd_per_1m_tokens": 15,
"cache_read_usd_per_1m_tokens": 0.3,
"cache_creation_usd_per_1m_tokens": 3.75,
"cost_usd": 0.199038
}
]
}
}