# Multi-op fan-out — Build Token Value Certificate

You are coordinating a **multiset** of three ready ops (ClaudeCode_v1, CodexCode_v1, GrokBuild_v1). Rule: **fan-out**, not exclusive cascade. OTC: ordering of independent contributions does not change the certificate.

## Horizon

- `since`: **2025-11-01** (or user override)
- `scope`: machine-wide harness activity + named codebases (intrikata-topology, Pharosiraptor, praxis-stack)

## Procedure

1. Confirm backends: `GET http://127.0.0.1:8080/api/ai-assistant/backends` → `cli_ok` for each member.
2. Run local fold if available:
   - `python scripts/collect_evidence.py --since 2025-11-01 --out evidence.json`
   - `python scripts/estimate_value.py --evidence evidence.json --out estimate.json`
3. Fan-out OP_CONTEXT to each member with lens-specific asks (see methodology).
4. Merge contributions into **one** certificate. Do not collapse L1/L2/L3.

## Required certificate JSON schema

```json
{
  "since": "2025-11-01",
  "as_of": "ISO-8601",
  "via": "multi-op-fan-out | cascade | filesystem",
  "claude_measured": {
    "input": 0, "output": 0, "cache_read": 0, "cache_write": 0,
    "non_cache": 0, "all_classes": 0, "api_list_usd": 0,
    "firstSessionDate": "", "lastComputedDate": "",
    "messages": 0, "sessions": 0, "toolCalls": 0
  },
  "grok_proxy": { "token_band": [0, 0], "usd_band": [0, 0], "class": "semi-decidable-proxy" },
  "codex_proxy": { "token_band": [0, 0], "usd_band": [0, 0], "class": "semi-decidable-proxy" },
  "combined": {
    "tokens_non_cache_plus_proxies": [0, 0],
    "api_list_usd_band": [0, 0]
  },
  "value_layers": {
    "L1_cash_paid": { "status": "unknown", "class": "tarski-residual" },
    "L2_api_list": { "usd_band": [0, 0], "class": "measured+proxy" },
    "L3_human_opportunity": { "usd_band": [0, 0], "class": "values-question" },
    "artifact_market_value": { "status": "undecidable", "class": "oracle-required" }
  },
  "multi_op": {
    "ClaudeCode_v1": { "verdict": "OK|INCOMPLETE", "finding": "" },
    "CodexCode_v1": { "verdict": "OK|INCOMPLETE", "finding": "" },
    "GrokBuild_v1": { "verdict": "OK|INCOMPLETE", "finding": "" }
  },
  "residuals": []
}
```

## Pricing (USD / 1M tokens)

| Tier | input | output | cache_read | cache_write |
|------|------:|-------:|-----------:|------------:|
| opus | 15 | 75 | 1.50 | 18.75 |
| sonnet | 3 | 15 | 0.30 | 3.75 |
| haiku | 1 | 5 | 0.10 | 1.25 |

Grok proxy **$4–8/MTok**; Codex proxy **$3–10/MTok**; util defaults 0.35 for session-byte stores.

## Hard rules

- Product name: **Pharosiraptor** (never "Pharos").
- Never invent cash-paid or artifact market value.
- Cache-inclusive totals ≠ non-cache work band — report **both**.
- If any op fails, mark INCOMPLETE with reason; still emit the certificate from local fold.
