{
  "tool_id": "art-541-best-execution-recompute",
  "tool_version": "1.0.0",
  "display_name": "Best-Execution NBBO Recompute",
  "mcp_name": "recompute_best_execution",
  "mandate_type": "analytics_mandate",
  "wave": 84,
  "gpu": false,
  "url": "https://ainumbers.co/chaingraph/art-541-best-execution-recompute.html",
  "description": "Recomputes, per supplied fill, price improvement in basis points against the NBBO at time of execution -- price_improvement_bps = (nbbo_ask - execution_price) / nbbo_ask * 10000 for buys, (execution_price - nbbo_bid) / nbbo_bid * 10000 for sells -- and whether each fill cleared at-or-better than the NBBO. Aggregates pct_at_or_better, avg_price_improvement_bps, and fill_count over a bounded fill set (capped at 5,000 fills). No customer/order identifiers accepted. Reg NMS best-execution obligations and FINRA Rule 5310 are the US crosswalk entry; the core recompute is the generic shape any best-execution regime ultimately checks. Attests the computation over caller-supplied inputs only, not an audit of those inputs or a determination of regulatory compliance.",
  "input_schema_ref": "chaingraph/art-541-best-execution-recompute.html#manifest",
  "consumes": [],
  "feeds": [],
  "status": "live",
  "conformance_fixtures": true,
  "compute_capability": "server",
  "compute_images": [
    {
      "system": "sha256-source",
      "image_id": "sha256:3fe3f8f91aee95249b6c690837eac8476621b70688946d1417dda593e4c1915c",
      "valid_from": "2026-08-04"
    },
    {
      "system": "risc0",
      "image_id": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
      "valid_from": "2026-08-04"
    }
  ],
  "export_capability": [
    "json"
  ],
  "compute_proof_ready": "ready",
  "deferred_reason": "New shard; awaiting the async GPU proving queue (S18 steady-state).",
  "compute_proof": {
    "type": "ZkVmReceipt",
    "system": "risc0",
    "receiptFormat": "groth16-bn254",
    "imageId": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
    "seal": "G3An5dhfWQm/bvjGa3LfApDUt09IZTiH+my5nAxTypotZZeJ+GQYZ+3b70X13UhqJxJH28HF39XmwElOS0nBSyiqSUQq98xuJb8bmyJe5SIy2UtKj8JPpjJM8LCaevKmHRPkuIM+ThZuMUPxa9fiTxJAMUUzvgBq27FEJ+95IiEFhtQIj8bpLKsE5Occu3Bqh6cu9ZHo6fX7BD5037TXrCYpoTshiv1WvhDw+Wsfz89aUb7QMJbaepFbk6vG5kqaJJF2YrBhFuEOa89qftP++7+92cYkEqh8uEg14DmdWMwYIjZd3/Sh1yHoagIWbPBrgpwcQM0QEf6jISh/oWpA/g==",
    "journal": {
      "chaingraph_version": "0.4.0",
      "kernel_digest": "sha256:3fe3f8f91aee95249b6c690837eac8476621b70688946d1417dda593e4c1915c",
      "output": {
        "avg_price_improvement_bps": 29.93,
        "fill_count": 2,
        "fill_set_ceiling": 5000,
        "fill_set_truncated": false,
        "fills": [
          {
            "at_or_better": true,
            "execution_price": 10.02,
            "index": 0,
            "nbbo_ask": 10.05,
            "nbbo_bid": 10,
            "price_improvement_bps": 29.85,
            "quantity": 100,
            "rejection_reason": null,
            "side": "buy"
          },
          {
            "at_or_better": true,
            "execution_price": 10.03,
            "index": 1,
            "nbbo_ask": 10.05,
            "nbbo_bid": 10,
            "price_improvement_bps": 30,
            "quantity": 200,
            "rejection_reason": null,
            "side": "sell"
          }
        ],
        "note": "Deterministic per-fill recompute of price improvement against the caller-supplied NBBO at execution time. Does not verify the source of the execution-price or NBBO figures, does not fetch live market data, and is not a determination of regulatory compliance.",
        "pct_at_or_better": 100,
        "regulatory_basis": "Reg NMS best-execution obligations (17 CFR 242) and FINRA Rule 5310; the price-improvement-vs-NBBO recompute is the generic shape any best-execution regime ultimately checks.",
        "rejected_count": 0,
        "rules_version": "best-execution-nbbo-recompute-2026.1",
        "scored_count": 2
      }
    }
  }
}
