{
"schema_version": "PipelineManifestV1",
"mode": "shadow",
"run_id": "565ff3b6-efcc-4204-937d-302043d4e812",
"execution_scope": "prepare_only",
"outcome": "requirements_ready",
"status": "completed",
"started_at": "2026-07-10T19:56:54.805Z",
"completed_at": "2026-07-10T19:58:31.024Z",
"mh_os_root": "/opt/aimatch/app",
"artifact_root": "/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812",
"sidecar_root": "/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2",
"previous_sidecar_archive": "/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2-archive-2026-07-10T19-56-54-805Z",
"models": {
"context": {
"model": "gemini-3.5-flash",
"effort": "low"
},
"roles": {
"model": "gemini-3.5-flash",
"effort": "low"
},
"brief": {
"model": "gemini-3.5-flash",
"effort": "medium"
},
"qc": {
"model": "gemini-3.5-flash",
"effort": "medium"
},
"requirements": {
"model": "gemini-3.5-flash",
"effort": "medium"
},
"searchPlan": {
"model": "gemini-3.5-flash",
"effort": "low"
},
"candidateEval": {
"model": "gemini-3.5-flash",
"effort": "medium"
},
"fallback": {
"model": "gemini-3.5-flash",
"effort": "medium"
}
},
"stages": [
{
"name": "inputs",
"status": "completed",
"started_at": "2026-07-10T19:56:54.806Z",
"completed_at": "2026-07-10T19:56:54.807Z",
"input_files": [],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/transcript.md"
],
"attempts": [],
"error": null
},
{
"name": "hubspot-context",
"status": "completed",
"started_at": "2026-07-10T19:56:54.807Z",
"completed_at": "2026-07-10T19:56:55.412Z",
"input_files": [],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/hubspot-context.json"
],
"attempts": [],
"error": null
},
{
"name": "context-distillation",
"status": "completed",
"started_at": "2026-07-10T19:56:55.942Z",
"completed_at": "2026-07-10T19:57:04.744Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/transcript.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/hubspot-context.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/context-md"
],
"attempts": [
{
"provider": "gemini",
"stage": "context-distillation",
"model": "gemini-3.5-flash",
"effort": "low",
"prompt_version": "context-distillation:v2-hubspot-context",
"raw_response_id": "iE5Rap6WA_3ljMcPopejyQo",
"request_id": null,
"latency_ms": 8801,
"usage": {
"input_tokens": 2615,
"output_tokens": 2206,
"total_tokens": 4821
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "budget-decision",
"status": "completed",
"started_at": "2026-07-10T19:57:04.748Z",
"completed_at": "2026-07-10T19:57:10.244Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/context-md/budget.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/transcript.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/hubspot-context.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/budget/budget-decision.json"
],
"attempts": [
{
"provider": "gemini",
"stage": "budget-decision",
"model": "gemini-3.5-flash",
"effort": "low",
"prompt_version": "budget-decision:v3-per-role-scope-policy",
"raw_response_id": "kE5Rar_tM6fQjMcPtaGEsAg",
"request_id": null,
"latency_ms": 5495,
"usage": {
"input_tokens": 4649,
"output_tokens": 1282,
"total_tokens": 5931
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "role-detection",
"status": "completed",
"started_at": "2026-07-10T19:57:10.266Z",
"completed_at": "2026-07-10T19:57:15.544Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/call-evidence-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/roles-detected.json"
],
"attempts": [
{
"provider": "gemini",
"stage": "role-detection",
"model": "gemini-3.5-flash",
"effort": "low",
"prompt_version": "role-detection:v2-active-gate",
"raw_response_id": "lk5RavqEFtTMjMcP09mwoAo",
"request_id": null,
"latency_ms": 5277,
"usage": {
"input_tokens": 3484,
"output_tokens": 241,
"total_tokens": 3725
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "lead-recap-draft",
"status": "completed",
"started_at": "2026-07-10T19:57:15.547Z",
"completed_at": "2026-07-10T19:57:15.549Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/context/context.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/roles-detected.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/active-roles.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/lead-recap/skipped.json"
],
"attempts": [],
"error": null
},
{
"name": "brief:paid-search-marketer",
"status": "completed",
"started_at": "2026-07-10T19:57:15.550Z",
"completed_at": "2026-07-10T19:57:35.725Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/brief-template-rules-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/brief.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/job-brief.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/internal-notes.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/formData.json"
],
"attempts": [
{
"provider": "gemini",
"stage": "brief:paid-search-marketer",
"model": "gemini-3.5-flash",
"effort": "medium",
"prompt_version": "role-brief:v3-compact-prefix",
"raw_response_id": "m05RavHOJ9HYjMcPjO_iqQs",
"request_id": null,
"latency_ms": 20174,
"usage": {
"input_tokens": 4727,
"output_tokens": 803,
"thoughts_tokens": 1736,
"total_tokens": 7266
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "granola-brief:paid-search-marketer",
"status": "completed",
"started_at": "2026-07-10T19:57:35.728Z",
"completed_at": "2026-07-10T19:57:53.401Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/call-evidence-packet.md",
"/opt/aimatch/app/aimatch/playbooks/granola-brief-template.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/job-brief.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/internal-notes.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/granola-brief.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/granola-brief.md"
],
"attempts": [
{
"provider": "gemini",
"stage": "granola-brief:paid-search-marketer",
"model": "gemini-3.5-flash",
"effort": "medium",
"prompt_version": "granola-brief:v1-prefix",
"raw_response_id": "r05RasvUMoXdjMcP89fZsQs",
"request_id": null,
"latency_ms": 17671,
"usage": {
"input_tokens": 5306,
"output_tokens": 828,
"thoughts_tokens": 3115,
"total_tokens": 9249
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "brief-qc:paid-search-marketer",
"status": "completed",
"started_at": "2026-07-10T19:57:53.404Z",
"completed_at": "2026-07-10T19:58:04.908Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/role-brief-internal-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/brief-qc.json",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/brief-qc.md"
],
"attempts": [
{
"provider": "gemini",
"stage": "brief-qc:paid-search-marketer",
"model": "gemini-3.5-flash",
"effort": "medium",
"prompt_version": "brief-qc:v1-prefix",
"raw_response_id": "wU5RatDGHrm-jMcPhLTy4Q0",
"request_id": null,
"latency_ms": 11503,
"usage": {
"input_tokens": 3882,
"output_tokens": 97,
"thoughts_tokens": 1075,
"total_tokens": 5054
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "requirements:paid-search-marketer",
"status": "completed",
"started_at": "2026-07-10T19:58:04.910Z",
"completed_at": "2026-07-10T19:58:18.173Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/inputs/call-evidence-packet.md",
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/role-brief-internal-packet.md"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/classified-requirements.json"
],
"attempts": [
{
"provider": "gemini",
"stage": "requirements:paid-search-marketer",
"model": "gemini-3.5-flash",
"effort": "medium",
"prompt_version": "requirements:v1-prefix",
"raw_response_id": "zE5Rau_7POrTjMcP9N-csAs",
"request_id": null,
"latency_ms": 13263,
"usage": {
"input_tokens": 3901,
"output_tokens": 532,
"thoughts_tokens": 2108,
"total_tokens": 6541
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
},
{
"name": "search-plan:paid-search-marketer",
"status": "completed",
"started_at": "2026-07-10T19:58:18.175Z",
"completed_at": "2026-07-10T19:58:31.019Z",
"input_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/classified-requirements.json"
],
"output_files": [
"/var/lib/aimatch/artifacts/565ff3b6-efcc-4204-937d-302043d4e812/api-v2/roles/paid-search-marketer/search-plan.json"
],
"attempts": [
{
"provider": "gemini",
"stage": "search-plan:paid-search-marketer",
"model": "gemini-3.5-flash",
"effort": "low",
"prompt_version": "search-plan:v1",
"raw_response_id": "2k5RaprAD9fXjMcPmaGvgQo",
"request_id": null,
"latency_ms": 12843,
"usage": {
"input_tokens": 1275,
"output_tokens": 428,
"total_tokens": 1703
},
"validation": {
"ok": true,
"errors": []
}
}
],
"error": null
}
],
"errors": [],
"usage": {
"attempts": 8,
"input_tokens": 29839,
"output_tokens": 6417,
"thoughts_tokens": 8034,
"output_billable_tokens": 14451,
"total_tokens": 44290,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"uncached_input_tokens": 29839,
"latency_ms": 95027
},
"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-10T19:58:31.022Z",
"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.044759,
"output_cost_usd": 0.130059,
"cache_creation_cost_usd": 0,
"cache_read_cost_usd": 0,
"total_cost_usd": 0.174818,
"by_model": [
{
"provider": "gemini",
"model": "gemini-3.5-flash",
"attempts": 8,
"input_tokens": 29839,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0,
"output_tokens": 6417,
"thoughts_tokens": 8034,
"uncached_input_tokens": 29839,
"output_billable_tokens": 14451,
"input_usd_per_1m_tokens": 1.5,
"output_usd_per_1m_tokens": 9,
"cache_read_usd_per_1m_tokens": 0.15,
"cache_creation_usd_per_1m_tokens": 0.15,
"cost_usd": 0.174818
}
]
}
}