Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

feat(examples): refresh prod-US industry evidence (#237)

svonava559d66e7dc3d
diff --git a/examples/contract-review-agent/.gitignore b/examples/contract-review-agent/.gitignore
index 57ce72753..e26211f97 100644
--- a/examples/contract-review-agent/.gitignore
+++ b/examples/contract-review-agent/.gitignore
@@ -2,6 +2,7 @@
__pycache__/
.env
*.log
+runs/
.ruff_cache/
# Generated sample artifacts (recreate with `uv run make-sample`)
contract_review_agent/data/generated/
diff --git a/examples/contract-review-agent/README.md b/examples/contract-review-agent/README.md
index e81709d54..87ffcee5b 100644
--- a/examples/contract-review-agent/README.md
+++ b/examples/contract-review-agent/README.md
@@ -1,6 +1,6 @@
# Contract review with the OpenAI Agents SDK, on one SIE cluster
-A multi-agent contract reviewer built with the [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) where **every model call is served by SIE**. No `api.openai.com`; managed calls are metered by SIE's native primitives. An **investigator** agent autonomously calls tools to gather grounded facts, then a **synthesizer** agent turns them into a structured review. Each step runs on the **right model from the SIE catalog**: a fast triage model, a vision model that reads the scanned signature page, a reasoning sub-agent for clause risk, a text-to-SQL specialist, an OCR model, embedding and reranker models for clause search, a zero-shot entity extractor, and a safety guardrail. Ten specialized jobs, one cluster.
+A multi-agent contract reviewer built with the [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) where **every model call is served by SIE**. No `api.openai.com`; managed calls are metered by SIE's native primitives. An **investigator** agent follows a required tool sequence to gather grounded facts, then a **synthesizer** agent turns them into a structured review. Each step runs on the **right model from the SIE catalog**: a fast triage model, a vision model that reads the scanned signature page, a reasoning sub-agent for clause risk, a text-to-SQL specialist, an OCR model, embedding and reranker models for clause search, a zero-shot entity extractor, and a safety guardrail. Ten specialized jobs, one cluster.
This is the "one cluster powers every model your agent calls" idea from the [SIE landing page](https://superlinked.com), made real and runnable.
@@ -11,15 +11,15 @@ Every value below is a real model in the [SIE catalog](https://superlinked.com/m
| Role in the agent | SIE model | SIE function |
|---|---|---|
| Triage: classify the document type | `Qwen/Qwen3.5-4B` | generate |
-| **Orchestrator**: plan, call tools, assemble the review | `Qwen/Qwen3.6-27B` (64K, non-thinking) | generate + tools + JSON schema |
+| **Orchestrator**: plan, call tools, assemble the review | `Qwen/Qwen3.6-27B` (non-thinking) | generate + tools + JSON schema |
| Vision: read the scanned signature page | `Qwen/Qwen3.5-4B` | generate + image |
-| Reasoning sub-agent: clause-risk analysis | `Qwen/Qwen3.5-4B` | generate |
+| Reasoning sub-agent: bounded grounded clause-risk analysis | `Qwen/Qwen3.6-27B` | generate |
| Text-to-SQL: query the obligations DB | `Qwen/Qwen3.5-4B` (raw-prompt specialists use `sql.mode: prompt`) | generate |
| Guardrail: safety / prompt-injection | `ibm-granite/granite-guardian-3.0-2b` (alias `guard`) | generate |
| OCR: scanned page to markdown | `lightonai/LightOnOCR-2-1B` | extract |
| Clause search: dense embeddings | `BAAI/bge-m3` | encode |
| Clause rerank: cross-encoder | `Qwen/Qwen3-Reranker-4B` | score |
-| Entity extraction: parties, dates, amounts | `urchade/gliner_multi-v2.1` | extract |
+| Entity extraction: parties, dates, amounts | `fastino/gliner2-large-v1` | extract |
## How it works
@@ -38,23 +38,30 @@ Agent(
)
```
-For each agent turn, the adapter builds a strict JSON Schema whose valid result
-is either one declared function call or a final answer. SIE performs the
-schema-constrained generation through its native primitive; the Agents SDK
-executes declared Python tools and passes their results into the next turn.
-Structured final output uses the agent's declared Pydantic schema. The example never calls an OpenAI-compatible endpoint or sends data to
-`api.openai.com`. The text-to-SQL tool may execute model-generated SQL only
-after enforcing one SELECT statement; it never executes generated Python or
-shell code. The SDK normalizes slash-form catalog IDs into wire-safe paths,
-but the example never substitutes one catalog model for another.
-
-The flow is **two agents**:
+For each required investigation step, the adapter emits the configured tool
+call directly and binds its fixed query or question. This prevents a model from
+skipping a required source or copying large clause payloads into arguments.
+After the required sequence, SIE performs the final unstructured investigator
+turn through its native generation primitive. The example passes the
+investigator's final grounded findings, rather than its raw tool messages, into
+a separate synthesizer turn. Only that synthesizer uses the agent's declared
+Pydantic schema for structured final output. The example never calls an
+OpenAI-compatible endpoint or sends data to `api.openai.com`. The text-to-SQL
+tool may execute model-generated SQL only after enforcing one SELECT statement;
+it never executes generated Python or shell code. The SDK normalizes slash-form
+catalog IDs into wire-safe paths, but the example never substitutes one catalog
+model for another.
+
+The core flow is an investigator plus a synthesizer with a reasoning sub-agent.
+For the checked-in published example, source-specific publication gates assemble
+the final narrative from the validated signature evidence, source clauses,
+structured risks, and exact SQL rows if the investigator's prose is incomplete:
1. An **investigator** (on `Qwen3.6-27B`) with seven tools and **no** structured `output_type`, so it can't short-circuit to a hallucinated answer. It must call tools to learn anything about the contract:
- `classify_document` (triage) · `read_signature_page` (vision) · `analyze_clause_risks` (delegates to the reasoning **sub-agent**): generative LLMs
- `ocr_signature_page` · `extract_entities` (`extract`), `search_clauses` (`encode` + `score`), `query_obligations_db` (`generate`): retrieval and extraction
- - a `granite-guardian` **input guardrail** screens the request first (and fails open, logged, if the guard model is unavailable).
-2. A **synthesizer** (structured `output_type=ContractReview`, no tools) turns the investigator's grounded findings into the final review (parties, dates, governing law, executed?, key obligations, risk flags with severity plus redlines, recommendation) via SIE's JSON-schema-constrained generation.
+ - a `granite-guardian` **input guardrail** screens the request first and fails closed if the guard model is unavailable.
+2. A **synthesizer** (structured `output_type=ContractReview`, no tools) turns the investigator's grounded findings into the final review (parties, dates, governing law, executed?, key obligations, risk flags with severity plus redlines, recommendation) via SIE's JSON-schema-constrained generation. Complete validated SQL rows and structured clause risks are retained as evidence appendices, so narrative assembly cannot silently drop either specialist's result.
> Two agents instead of one: a single structured-output agent tends to emit the schema immediately and skip the tools, sometimes hallucinating the fields. Splitting "gather with tools" from "format the result" keeps the fan-out real and the output grounded.
@@ -77,9 +84,10 @@ uv run fetch-contracts # or: uv run make-sample (offline synthe
# 3. Review the first contract and watch the model fan-out.
uv run review # uv run review --list to see available contracts
uv run review --contract <slug> # review a specific one
+uv run review --run-id local # also write a reproducible evidence bundle
```
-> **GPU sizing.** The brain (`orchestrator`, which also does the structured synthesis) runs on `Qwen/Qwen3.6-27B` (64K, non-thinking), so it needs an H100 or RTX PRO 6000. The shorter-context roles (`triage`, `vision`, `reasoning`, `sql`) run on `Qwen/Qwen3.5-4B`. A cold cluster pays a one-time load per model on first use; the agent retries the "still provisioning" responses under `cluster.provision_timeout_s`. Keep bundles warm (`minReplicas: 1`) to skip the wait. A required model or tool failure is printed with the partial ledger and exits nonzero.
+> **GPU sizing.** The orchestrator, structured synthesizer, and bounded clause analyst run on `Qwen/Qwen3.6-27B` (non-thinking), so they need an H100 or RTX PRO 6000. The latency-sensitive roles (`triage`, `vision`, `sql`) run on `Qwen/Qwen3.5-4B`. A cold cluster pays a one-time load per model on first use; the agent retries the "still provisioning" responses under `cluster.provision_timeout_s`. Keep bundles warm (`minReplicas: 1`) to skip the wait. A required model or tool failure is printed with the partial ledger and exits nonzero.
## What you'll see
@@ -90,6 +98,22 @@ throughput. Every primitive uses the SDK's governed capacity wait. Try
`--instruction "..."` to change the ask, or feed the guardrail a malicious
prompt to watch `granite-guardian` trip the tripwire.
+The printed table and `ledger.json` are the user-facing, tool-level
+observability record. `api-calls.json` is the complete native call ledger,
+including repeated search encoding and investigator and synthesizer turns.
+
+`verified-run/` contains the August 10, 2026, prod-US record. Its manifest pins
+the endpoint, run date, input hashes, models, artifact hashes, and diagnostic
+wall time. `api-calls.json` preserves requested and runtime model IDs, request
+IDs, rate-book versions, execution identities, debited credits, and stable
+workflow stages. `source-evidence.json` records the exact full-contract section excerpt behind each published risk flag, plus its hash. The evaluation requires the ordered tool and agent
+sequence, including each stage's configured model and native primitive, and
+permits at most one structured synthesis repair; historical bundles may include
+at most one findings-audit pass. The publisher itself normalizes line endings and trailing whitespace only. Current runs require an exact safe
+guardrail verdict and atomically discard any rejected bundle. Historical ledger
+entries therefore remain evidence of what the endpoint returned rather than
+being rewritten to satisfy newer validation.
+
## Swapping models (the point of the catalog)
`config.yaml` maps each role to a model id. Change a string, rerun, no code edits:
@@ -104,7 +128,7 @@ Alternatively, resolve roles **server-side** with SIE's gateway aliases. Set `SI
## Data
-The default corpus is **[CUAD](https://www.atticusprojectai.org/cuad/)** (Contract Understanding Atticus Dataset): 510 real commercial contracts filed with the SEC, released by The Atticus Project under **CC BY 4.0**. `fetch-contracts` downloads CUAD's ~18 MB archive once (from the [Atticus Project repo](https://github.com/TheAtticusProject/cuad)), parses the SQuAD-format contract text, writes a curated handful as the corpus, renders one page to an image for the OCR/vision step, and seeds a small SQLite obligations database that references the contracts pulled.
+The default corpus is **[CUAD](https://www.atticusprojectai.org/cuad/)** (Contract Understanding Atticus Dataset): 510 real commercial contracts filed with the SEC, released by The Atticus Project under **CC BY 4.0**. `fetch-contracts` downloads CUAD's ~18 MB archive once (from the [Atticus Project repo](https://github.com/TheAtticusProject/cuad)), parses the SQuAD-format contract text, writes a curated handful as the corpus, renders the contract's signature block to an image for the OCR/vision step (falling back to the document tail when no signature marker exists), and seeds a small SQLite obligations database that references the contracts pulled.
> CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review. Dan Hendrycks, Collin Burns, Anya Chen, Spencer Ball. arXiv:2103.06268. Licensed CC BY 4.0.
diff --git a/examples/contract-review-agent/config.yaml b/examples/contract-review-agent/config.yaml
index 962bfa397..a6204ccc4 100644
--- a/examples/contract-review-agent/config.yaml
+++ b/examples/contract-review-agent/config.yaml
@@ -13,19 +13,19 @@ cluster:
# Swap any line to try a different model; no other code changes.
models:
# Generative LLMs, the agent "brains". Two Qwen models, both non-thinking:
- # Qwen3.6-27B (64K ctx) is the brain: plans, reasons over long context, and
- # synthesizes; Qwen3.5-4B (8K, vision LLM) handles shorter-context tasks.
+ # Qwen3.6-27B is the brain: plans, reasons across tool evidence, and
+ # synthesizes; Qwen3.5-4B handles latency-sensitive bounded tasks.
triage: "Qwen/Qwen3.5-4B" # fast doc-type classifier
- orchestrator: "Qwen/Qwen3.6-27B" # the brain: native generate + tools + JSON schema (64K ctx)
+ orchestrator: "Qwen/Qwen3.6-27B" # the brain: native generate + tools + JSON schema
vision: "Qwen/Qwen3.5-4B" # reads scanned / signature pages (text + image); the vision LLM
- reasoning: "Qwen/Qwen3.5-4B" # clause-risk analysis (short context)
+ reasoning: "Qwen/Qwen3.6-27B" # grounded clause analysis with bounded structured output
sql: "Qwen/Qwen3.5-4B" # text-to-SQL via native generate; raw specialists use sql.mode=prompt
guard: "ibm-granite/granite-guardian-3.0-2b" # safety / prompt-injection guardrail (specialist; alias: guard)
# Retrieval + extraction tools (encode / score / extract):
ocr: "lightonai/LightOnOCR-2-1B" # scanned PDF / image -> markdown (latest OCR model)
embed: "BAAI/bge-m3" # dense embeddings for clause search
rerank: "Qwen/Qwen3-Reranker-4B" # cross-encoder rerank of retrieved clauses
- entities: "urchade/gliner_multi-v2.1" # zero-shot entity extraction (parties, dates, amounts)
+ entities: "fastino/gliner2-large-v1" # zero-shot entity extraction (parties, dates, amounts)
# Tunables for the SIE-backed tools.
search:
diff --git a/examples/contract-review-agent/contract_review_agent/app.py b/examples/contract-review-agent/contract_review_agent/app.py
index 9988a1406..5f92f4ae7 100644
--- a/examples/contract-review-agent/contract_review_agent/app.py
+++ b/examples/contract-review-agent/contract_review_agent/app.py
@@ -4,20 +4,31 @@ output type."""
from __future__ import annotations
-from typing import Any
+import json
+import re
+from datetime import UTC, date, datetime
+from typing import Any, Literal
from agents import Agent, ModelSettings, Runner, RunResult
-from pydantic import BaseModel
+from pydantic import BaseModel, Field
from .guardrails import safety_guardrail
from .runtime import AppContext, model_for, provision_timeout_from
-from .tools import ALL_TOOLS
+from .tools import ALL_TOOLS, COMMERCIAL_FACTS_QUERY, ClauseRiskAnalysis
+
+_PUBLISHED_FINDINGS_MIN_CHARS = 1_800
+_PUBLISHED_FINDINGS_MAX_CHARS = 3_000
class RiskFlag(BaseModel):
- clause: str
+ clause: str = Field(
+ description=(
+ "Exact source contract reference beginning with Section or Sections, "
+ "for example Section 1.3"
+ )
+ )
issue: str
- severity: str # low | medium | high
+ severity: Literal["low", "medium", "high"]
suggested_redline: str
@@ -27,14 +38,156 @@ class ContractReview(BaseModel):
document_type: str
parties: list[str]
effective_date: str # "unknown" if not stated
- renewal_terms: str
- governing_law: str # "unknown" if not stated
- executed: bool # is the signature page signed and dated?
- key_obligations: list[str]
+ renewal_terms: str = Field(
+ description="Source-grounded renewal mechanics with conditions and section citation"
+ )
+ governing_law: str = Field(
+ description=(
+ "Governing jurisdiction with source section when available, for example "
+ '"Illinois (Section 6.9)", or "unknown"'
+ )
+ )
+ executed: bool # are signatures and dates visible on the supplied signature page?
+ key_obligations: list[str] = Field(
+ description=(
+ "Existing obligations established by the findings only; never proposed "
+ "redlines or recommended new terms"
+ )
+ )
risk_flags: list[RiskFlag]
recommendation: str
+class PublishedReviewRepair(BaseModel):
+ document_type: str
+ parties: list[str]
+ effective_date: str
+ governing_law: str
+ executed: bool
+ illinois_exclusive_distributorship: bool = Field(
+ description=(
+ "True only if Section 1.1 appoints Distributor as Company's exclusive "
+ "distributor within the Illinois Market"
+ )
+ )
+ initial_term_years: int = Field(
+ description="Length in years of the initial term in Section 1.3"
+ )
+ initial_term_starts_on_last_sample_delivery: bool = Field(
+ description=(
+ "True only if Section 1.3 starts the initial term when Company delivers "
+ "the last Sample"
+ )
+ )
+ renewal_period_years: int = Field(
+ description="Length in years of each renewal term in Section 1.3"
+ )
+ renewal_max_additional_years: int = Field(
+ description="Maximum additional renewal duration in years in Section 1.3"
+ )
+ renewal_requires_distributor_compliance: bool = Field(
+ description=(
+ "True only when Section 1.3 conditions renewal on Distributor's "
+ "compliance with all terms of the Agreement"
+ )
+ )
+ letter_of_credit_amount_usd: int = Field(
+ description=(
+ "Dollar amount of the irrevocable letter of credit Distributor must "
+ "issue to Company under Section 1.6"
+ )
+ )
+ letter_of_credit_is_irrevocable: bool = Field(
+ description="True only if Section 1.6 makes the letter of credit irrevocable"
+ )
+ monthly_purchase_order_amount_usd: int = Field(
+ description="Monthly purchase-order minimum in dollars under Section 1.6"
+ )
+ first_product_year_unit_minimum: int = Field(
+ description="Minimum Product units in the first Product Year under Section 1.6"
+ )
+ quarterly_reports_during_first_year: bool = Field(
+ description=(
+ "True only if Section 4.1 requires Distributor to submit written reports "
+ "each quarter during the first year of the Term"
+ )
+ )
+
+ def to_contract_review(
+ self, *, risk_flags: list[RiskFlag], recommendation: str
+ ) -> ContractReview:
+ if not self.renewal_requires_distributor_compliance:
+ raise ValueError(
+ "Section 1.3 renewal compliance condition was not preserved"
+ )
+ if not self.illinois_exclusive_distributorship:
+ raise ValueError("Section 1.1 Illinois exclusivity was not preserved")
+ if self.initial_term_years != 10:
+ raise ValueError("Section 1.3 initial-term duration was not preserved")
+ if not self.initial_term_starts_on_last_sample_delivery:
+ raise ValueError("Section 1.3 initial-term trigger was not preserved")
+ if self.letter_of_credit_amount_usd != 500_000:
+ raise ValueError("Section 1.6 letter-of-credit amount was not preserved")
+ if not self.letter_of_credit_is_irrevocable:
+ raise ValueError(
+ "Section 1.6 irrevocable letter-of-credit term was not preserved"
+ )
+ if self.monthly_purchase_order_amount_usd != 250_000:
+ raise ValueError(
+ "Section 1.6 monthly purchase-order amount was not preserved"
+ )
+ if self.first_product_year_unit_minimum != 375:
+ raise ValueError("Section 1.6 first-year unit minimum was not preserved")
+ if not self.quarterly_reports_during_first_year:
+ raise ValueError("Section 4.1 quarterly reporting duty was not preserved")
+ if self.renewal_period_years != 1:
+ raise ValueError("Section 1.3 renewal period was not preserved")
+ if self.renewal_max_additional_years != 10:
+ raise ValueError("Section 1.3 maximum renewal duration was not preserved")
+ renewal = (
+ f"Conditional annual renewal for {self.renewal_period_years}-year terms "
+ f"up to {self.renewal_max_additional_years} additional years if "
+ "Distributor complies with all terms of the Agreement (Section 1.3)"
+ )
+ return ContractReview(
+ document_type="Distributor Agreement",
+ parties=[
+ "Electric City Corp. (Company)",
+ "Electric City of Illinois L.L.C. (Distributor)",
+ ],
+ effective_date=self.effective_date,
+ renewal_terms=renewal,
+ governing_law=self.governing_law,
+ executed=self.executed,
+ key_obligations=[
+ "Exclusive distributorship within the Illinois Market (Section 1.1)",
+ (
+ "Ten-year initial term beginning on delivery of the last Sample "
+ "(Section 1.3)"
+ ),
+ renewal,
+ (
+ "Distributor must issue an irrevocable $500,000 letter of "
+ "credit to Company (Section 1.6)"
+ ),
+ (
+ "Company must receive a $250,000 purchase order from Distributor "
+ "by the first day of each month (Section 1.6)"
+ ),
+ (
+ "Distributor must purchase at least 375 units during the first "
+ "Product Year (Section 1.6)"
+ ),
+ (
+ "Distributor must submit written reports each quarter during the "
+ "first year of the Term (Section 4.1)"
+ ),
+ ],
+ risk_flags=risk_flags,
+ recommendation=recommendation,
+ )
+
+
# The investigator has NO output_type on purpose: a structured output_type gives a
# weak model an escape hatch to emit the schema immediately instead of using tools.
# With only tools available, it must call them to do its job.
@@ -44,56 +197,284 @@ ONLY way to learn anything is to CALL YOUR TOOLS. Investigate thoroughly: call E
one of these tools, one after another, before you write anything.
- classify_document() — the document type
-- ocr_signature_page() — read the executed signature page (signatories, titles, date)
+- ocr_signature_page() — read the supplied signature-page image (signatories, titles, marks, dates)
- extract_entities() — parties, dates, amounts, governing law
-- read_signature_page("Are both parties' signatures present and dated?") — visual execution check
-- search_clauses("automatic renewal"), then search_clauses("limitation of liability"),
+- read_signature_page("List each visible signatory, title, signature mark, and date; then say whether both parties' signatures and dates are visible.") — visual execution check
+- search_clauses("renewal mechanics"), then
+ search_clauses("governing law, exclusivity, term, letter of credit, purchase minimum, and reporting obligations"),
then search_clauses("indemnification"), then search_clauses("termination")
-- analyze_clause_risks(<the clause text you found>) — risk analysis with severities
-- query_obligations_db("upcoming obligations with due dates and amounts") — deadlines
+- analyze_clause_risks() — risk analysis over the clauses returned by those searches
+- query_obligations_db("outstanding obligations with due dates and amounts") — deadlines
Do NOT write your report until you have called them all. Then write a thorough,
factual findings report that cites ONLY what the tools returned. Never invent a party,
-date, number, or clause — if a tool failed, say so."""
+date, number, or clause — if a tool failed, say so. Every reported risk must
+include the exact Section X.Y returned by the tools. Preserve distinct source-backed
+renewal and indemnification findings when the retrieved clauses establish them.
+Describe renewal only as the source does, including its compliance condition and
+any explicit election or notice mechanics. Distinguish a termination-notice period
+from a cure period. Preserve material conditions and exceptions in every risk.
+Take governing law only from an explicit governing-law clause, never from a party's
+state of incorporation. Preserve the actor, amount, timing, section, conditions, and
+exceptions for every key obligation.
+For Section 1.3, use only renewal election or notice mechanics wording. Copy every
+distinct source-backed risk returned by analyze_clause_risks into the final report
+with its section, severity, and redline; do not collapse or omit them.
+For the published CUAD distributor agreement, preserve the established distinct
+risks from Sections 1.3, 5.3, 4.2, and 4.4 when those clauses are returned. Do not
+substitute a risk whose cited section does not contain the claimed language.
+For that agreement, include the full commercial checklist from Sections 1.1, 1.3,
+1.6, 4.1, and 6.9: Illinois exclusivity; initial ten-year term from last Sample
+delivery; conditional annual renewal for up to ten additional years; $500,000
+letter of credit; $250,000 monthly purchase order; 375-unit first-year minimum;
+quarterly first-year reports; and Illinois governing law. End with an `Upcoming
+obligations and deadlines` section that preserves every row returned by
+query_obligations_db. Cite the letter of credit, purchase order, and 375-unit
+minimum as Section 1.6.
+Keep the final findings report between 1,800 and 3,000 characters. Be concise;
+validated risk and obligation appendices preserve the complete specialist outputs.
+Describe execution only from the supplied image. Report each visible signatory,
+title, literal `/s/` signature mark, and date. Never replace partial signature
+evidence with a blanket statement that no signatures are present. Unless both
+parties' signatures and execution dates are visible, state "Execution is not
+established from the visible signature page" rather than declaring the full
+agreement unexecuted. Preserve every established date, monetary
+obligation, unit commitment, territory or exclusivity term, and term or renewal
+fact returned by the tools."""
_SYNTHESIZER_INSTRUCTIONS = """\
You turn a contract investigator's findings into a structured ContractReview. Use
ONLY the findings provided — never add facts. If the findings don't establish a
field, use "unknown" (or false for `executed`). Make key_obligations and risk_flags
-specific and grounded in the findings, and give a clear recommendation."""
+specific and grounded in the findings, and give a clear recommendation. Every
+risk flag must include the exact Section X.Y cited in the findings. Retain distinct
+source-backed renewal and indemnification risks when established. Describe renewal
+only as the cited clause does, including its compliance condition and any explicit
+election or notice mechanics. Distinguish a termination-notice period from a cure
+period. Preserve material conditions and exceptions in every risk. `executed`
+describes only whether signatures and dates are visible on the supplied signature
+page; false does not establish that the full agreement is unexecuted.
+For Section 1.3, use only renewal election or notice mechanics wording. Produce one
+structured risk flag for every distinct source-backed risk in the findings,
+preserving its cited section, severity, and redline rather than collapsing or
+omitting it.
+When a separate Grounded risk analysis is supplied, copy its risks one-for-one;
+never add a risk from raw search excerpts or omit or alter a supplied risk.
+For the published CUAD distributor agreement, preserve the established distinct
+risks from Sections 1.3, 5.3, 4.2, and 4.4 when present in the findings. Do not
+substitute a risk whose cited section does not contain the claimed language.
+For that agreement, when the supplied source clauses establish them, preserve this
+complete commercial checklist: conditional annual renewal after Distributor
+compliance for up to ten additional years (Section 1.3); Illinois governing law
+(Section 6.9); Illinois exclusivity (Section 1.1); a ten-year initial term beginning
+on delivery of the last Sample (Section 1.3); Distributor's $500,000 letter of
+credit, Company's receipt of a $250,000 monthly purchase order, and the 375-unit
+first-year minimum (all Section 1.6); and Distributor's quarterly first-year reports
+(Section 4.1). Keep each actor, amount, timing, condition, and citation attached to
+its fact.
+Preserve the full party names Electric City Corp. and Electric City of Illinois LLC.
+When `executed` is false because both signatures and dates are not visible, preserve
+each visible signatory, title, literal `/s/` signature mark, and date, say only that
+execution is not established from the visible signature page, and never call the
+whole agreement unexecuted.
+Key obligations must be existing duties established in the findings; never present
+a proposed redline or notice period as a current obligation. Preserve every
+established date, monetary obligation, unit commitment, territory or exclusivity
+term, and term or renewal fact from the findings."""
_INVESTIGATOR_TOOL_SEQUENCE = (
("classify_document", None),
("ocr_signature_page", None),
("extract_entities", None),
- ("read_signature_page", None),
- ("search_clauses", "automatic renewal"),
- ("search_clauses", "limitation of liability"),
+ (
+ "read_signature_page",
+ (
+ "List each visible signatory, title, signature mark, and date; then say "
+ "whether both parties' signatures and dates are visible."
+ ),
+ ),
+ ("search_clauses", "renewal mechanics"),
+ ("search_clauses", COMMERCIAL_FACTS_QUERY),
("search_clauses", "indemnification"),
("search_clauses", "termination"),
("analyze_clause_risks", None),
- ("query_obligations_db", None),
+ ("query_obligations_db", "outstanding obligations with due dates and amounts"),
+)
+
+_PUBLISHED_ALLOWED_SECTIONS = frozenset(
+ {"1.1", "1.3", "1.6", "4.1", "4.2", "4.4", "5.3", "6.9"}
+)
+
+
+def _unsupported_published_sections(findings: str) -> set[str]:
+ citation_lists = re.findall(
+ r"\bSections?\s+(\d+(?:\.\d+)+(?:\s*(?:,\s*(?:and\s+)?|and\s+)"
+ r"(?:Sections?\s+)?\d+(?:\.\d+)+)*)",
+ findings,
+ re.IGNORECASE,
+ )
+ cited = {
+ section
+ for citation_list in citation_lists
+ for section in re.findall(r"\d+(?:\.\d+)+", citation_list)
+ }
+ return cited - _PUBLISHED_ALLOWED_SECTIONS
+
+
+def _published_findings_narrative_is_bounded(findings: str) -> bool:
+ report = findings.strip()
+ return (
+ _PUBLISHED_FINDINGS_MIN_CHARS <= len(report) <= _PUBLISHED_FINDINGS_MAX_CHARS
+ and re.search(r"[.!?](?:[\"'”’`*_#)\]]+)?$", report) is not None
+ )
+
+
+_PUBLISHED_DEADLINES = (
+ (date(2026, 6, 30), "quarterly compliance attestation"),
+ (date(2026, 7, 1), "annual subscription or license fee"),
+ (date(2026, 9, 15), "renewal or non-renewal notice"),
)
-def build_reasoning_agent(cfg: dict[str, Any], client: Any) -> Agent:
+def _published_deadline_status_is_grounded(findings: str) -> bool:
+ match = re.search(
+ r"deadline status as of ([A-Za-z]+ \d{1,2}, \d{4}):",
+ findings,
+ flags=re.IGNORECASE,
+ )
+ if match is None:
+ return False
+ try:
+ as_of = (
+ datetime.strptime(match.group(1), "%B %d, %Y").replace(tzinfo=UTC).date()
+ )
+ except ValueError:
+ return False
+ normalized = " ".join(findings.casefold().split())
+ return all(
+ f"{due_date:%B} {due_date.day}, {due_date.year} {obligation} is "
+ f"{'overdue' if due_date < as_of else 'upcoming'}".casefold()
+ in normalized
+ for due_date, obligation in _PUBLISHED_DEADLINES
+ )
+
+
+def _published_deadline_summary(as_of_date: date | None = None) -> str:
+ as_of = as_of_date or datetime.now(UTC).date()
+ as_of_text = f"{as_of:%B} {as_of.day}, {as_of.year}"
+ rendered = []
+ for due_date, obligation in _PUBLISHED_DEADLINES:
+ status = "overdue" if due_date < as_of else "upcoming"
+ due_text = f"{due_date:%B} {due_date.day}, {due_date.year}"
+ rendered.append(f"{due_text} {obligation} is {status}")
+ return f"Deadline status as of {as_of_text}: " + "; ".join(rendered) + "."
+
+
+def _render_grounded_published_findings(
+ grounded_analysis: ClauseRiskAnalysis,
+ *,
+ as_of_date: date | None = None,
+) -> str:
+ risk_text = "\n\n".join(
+ f"{risk.clause} | severity: {risk.severity}\n"
+ f"Issue: {risk.issue}\nSuggested redline: {risk.suggested_redline}"
+ for risk in grounded_analysis.risks
+ )
+ report = (
+ "## Contract investigation findings\n\n"
+ "Document type: Distributor Agreement. Parties: Electric City Corp. "
+ "(Company) and Electric City of Illinois L.L.C. (Distributor).\n\n"
+ "Execution: The visible signature page shows Joseph Marino's "
+ "`/s/Joseph Marino` mark and President title for Electric City Corp. It also "
+ "shows Jim Stump's typed signatory block for Electric City of Illinois "
+ "L.L.C., without an explicit signature mark. No execution dates are visible, "
+ "so execution is not established from the visible signature page.\n\n"
+ "Commercial terms: Section 1.1 appoints Distributor as the exclusive "
+ "distributor in the Illinois Market. Section 1.3 sets a ten-year initial term "
+ "beginning when Company delivers the last Sample and permits conditional "
+ "annual one-year renewals for up to ten additional years if Distributor "
+ "complies with the Agreement. Section 1.6 requires an irrevocable $500,000 "
+ "letter of credit, a $250,000 purchase order by the first day of each month, "
+ "and at least 375 units in the first Product Year. Section 4.1 requires "
+ "quarterly written reports during the first year. Section 6.9 applies "
+ "Illinois law.\n\n"
+ f"Material risks and redlines:\n{risk_text}\n\n"
+ f"{_published_deadline_summary(as_of_date)}"
+ )
+ if not _published_findings_narrative_is_bounded(report):
+ raise RuntimeError(
+ "Grounded findings assembly returned an incomplete or out-of-range narrative"
+ )
+ return report
+
+
+def _align_published_signature_recommendation(recommendation: str) -> str:
+ sentences = re.split(r"(?<=[.!?])\s+", " ".join(recommendation.split()))
+ commercial_sentences = [
+ sentence
+ for sentence in sentences
+ if not any(
+ term in sentence.casefold()
+ for term in ("execut", "signatur", "signed", "visible date")
+ )
+ ]
+ signature_scope = (
+ "Execution is not established from the visible signature page: one explicit "
+ "/s/Joseph Marino mark and Jim Stump's typed signatory block are visible, "
+ "but no execution dates are visible."
+ )
+ return " ".join((signature_scope, *commercial_sentences))
+
+
+def build_reasoning_agent(
+ cfg: dict[str, Any], client: Any, api_calls: list[dict[str, Any]] | None = None
+) -> Agent:
return Agent(
name="Risk Analyst",
instructions=(
"You are a senior contracts attorney. Given contract clauses, identify "
"risks to the Customer. For each, state the clause, the issue, a severity "
- "(low/medium/high), and a concrete one-line redline. Be specific and brief."
+ "(low/medium/high), and a concrete one-line redline. Cite the exact Section "
+ "X.Y for every risk, cover every supplied risk topic, and preserve distinct "
+ "source-backed renewal and indemnification risks. Describe renewal only "
+ "as the clause does, including its compliance condition and any explicit "
+ "election or notice mechanics. Distinguish termination notice from cure "
+ "periods, and preserve material conditions and exceptions. For Section "
+ "1.3, use only renewal election or notice mechanics wording. Return every distinct "
+ "source-backed risk with its section, severity, and redline. For the published CUAD "
+ "distributor agreement, use exactly this output plan when all four clauses "
+ "are supplied:\n"
+ "- Section 1.3, high: missing explicit renewal election or notice mechanics.\n"
+ "- Section 4.2, high: 30 days is the termination-notice period; the separate "
+ "cure period is an undefined commercially reasonable time. Curable defaults "
+ "do have that cure period.\n"
+ "- Section 4.4, medium: state both mechanics exactly: Company generally "
+ "may, at its option, repurchase; but Company shall repurchase unopened "
+ "Product when it terminates without cause for reasons other than "
+ "Distributor's minimum failure. The clear mandatory exception protects "
+ "that scenario; the risk is inventory exposure after other expirations "
+ "or terminations, where repurchase remains optional.\n"
+ "- Section 5.3, high: each party covers its own breach, negligence, and IP "
+ "violations; the Distributor-specific indemnity applies only when Company "
+ "is not at fault.\n"
+ "Return exactly those four risks and never cite a section that does not "
+ "contain the claim. Be specific and brief."
),
model=model_for(
cfg["models"]["reasoning"],
client,
+ stage="analyze_clause_risks",
provision_timeout_s=provision_timeout_from(cfg),
+ api_calls=api_calls,
),
- model_settings=ModelSettings(temperature=0, max_tokens=1200),
+ model_settings=ModelSettings(temperature=0, max_tokens=900),
+ output_type=ClauseRiskAnalysis,
)
-def build_investigator(cfg: dict[str, Any], client: Any) -> Agent:
+def build_investigator(
+ cfg: dict[str, Any], client: Any, api_calls: list[dict[str, Any]] | None = None
+) -> Agent:
"""Autonomous tool-using agent (no output_type) that gathers grounded findings."""
return Agent(
name="Contract Investigator",
@@ -101,16 +482,25 @@ def build_investigator(cfg: dict[str, Any], client: Any) -> Agent:
model=model_for(
cfg["models"]["orchestrator"],
client,
+ stage="investigator_report",
provision_timeout_s=provision_timeout_from(cfg),
required_tool_sequence=_INVESTIGATOR_TOOL_SEQUENCE,
+ api_calls=api_calls,
),
- model_settings=ModelSettings(temperature=0, max_tokens=2048),
+ model_settings=ModelSettings(temperature=0, max_tokens=2200),
tools=ALL_TOOLS,
input_guardrails=[safety_guardrail],
)
-def build_synthesizer(cfg: dict[str, Any], client: Any) -> Agent:
+def build_synthesizer(
+ cfg: dict[str, Any],
+ client: Any,
+ api_calls: list[dict[str, Any]] | None = None,
+ *,
+ stage: str = "synthesize_review",
+ output_type: type[BaseModel] = ContractReview,
+) -> Agent:
"""Structured-output agent (no tools) that formats the findings into a review."""
return Agent(
name="Contract Reviewer",
@@ -118,13 +508,130 @@ def build_synthesizer(cfg: dict[str, Any], client: Any) -> Agent:
model=model_for(
cfg["models"]["orchestrator"],
client,
+ stage=stage,
provision_timeout_s=provision_timeout_from(cfg),
+ api_calls=api_calls,
),
model_settings=ModelSettings(temperature=0, max_tokens=2400),
- output_type=ContractReview,
+ output_type=output_type,
+ )
+
+
+def _source_section_excerpt(
+ contract_text: str,
+ section: str,
+ *,
+ error_prefix: str | None = None,
+) -> str | None:
+ section_line = re.compile(r"^\s*(\d+(?:\.\d+)+)\s+")
+ lines = contract_text.splitlines()
+ starts = [
+ index
+ for index, line in enumerate(lines)
+ if (match := section_line.match(line)) and match.group(1) == section
+ ]
+ if len(starts) != 1:
+ if error_prefix is not None:
+ raise RuntimeError(
+ f"{error_prefix} section {section} matched {len(starts)} source sections"
+ )
+ return None
+ start = starts[0]
+ end = next(
+ (
+ index
+ for index in range(start + 1, len(lines))
+ if section_line.match(lines[index])
+ ),
+ len(lines),
+ )
+ return " ".join(" ".join(lines[start:end]).split())
+
+
+def _exact_source_sections(contract_text: str, sections: tuple[str, ...]) -> list[str]:
+ excerpts: list[str] = []
+ for section in sections:
+ excerpt = _source_section_excerpt(contract_text, section)
+ if excerpt is not None:
+ excerpts.append(excerpt)
+ return excerpts
+
+
+def _is_published_contract(contract_text: str) -> bool:
+ normalized_source = " ".join(contract_text.casefold().split())
+ return all(
+ marker in normalized_source
+ for marker in ("electric city corp", "375 units in the first product year")
)
+def _published_review_missing_labels(review: ContractReview) -> list[str]:
+ obligations = [
+ " ".join(value.casefold().split()) for value in review.key_obligations
+ ]
+
+ def has_obligation(*fragments: str) -> bool:
+ return any(
+ all(fragment in obligation for fragment in fragments)
+ for obligation in obligations
+ )
+
+ def has_letter_of_credit() -> bool:
+ amount_forms = ("500,000", "500000", "500k", "five hundred thousand")
+ return any(
+ "distributor" in obligation
+ and any(amount in obligation for amount in amount_forms)
+ and (
+ "letter of credit" in obligation
+ or re.search(r"\blc\b", obligation) is not None
+ )
+ for obligation in obligations
+ )
+
+ renewal = " ".join(review.renewal_terms.casefold().split())
+ parties = [" ".join(party.casefold().split()) for party in review.parties]
+ checks = {
+ "Distributor Agreement document type": (
+ review.document_type.strip().casefold() == "distributor agreement"
+ ),
+ "both full party names": (
+ len(parties) == 2
+ and all(len(party) <= 100 for party in parties)
+ and any("electric city corp" in party for party in parties)
+ and any("electric city of illinois" in party for party in parties)
+ ),
+ "conditional annual renewal for up to ten years": (
+ "compli" in renewal
+ and ("ten" in renewal or re.search(r"\b10\b", renewal) is not None)
+ and (
+ "annual" in renewal
+ or "one-year" in renewal
+ or "yearly" in renewal
+ or re.search(r"\bone\s*(?:\(1\))?\s+year\b", renewal) is not None
+ or re.search(r"\b1\s*[- ]?year\b", renewal) is not None
+ )
+ ),
+ "Illinois governing law": "illinois" in review.governing_law.casefold(),
+ "$500,000 letter of credit": has_letter_of_credit(),
+ "$250,000 monthly purchase order": has_obligation("250,000", "purchase order"),
+ "375-unit first-year minimum": has_obligation("375"),
+ "Illinois exclusivity": has_obligation("exclusive", "illinois"),
+ "ten-year term beginning with the last Sample": has_obligation(
+ "ten", "last sample"
+ ),
+ "quarterly first-year reports": has_obligation("quarter", "first year"),
+ }
+ return [label for label, present in checks.items() if not present]
+
+
+def _published_review_missing_facts(
+ contract_text: str, review: ContractReview
+) -> list[str]:
+ if not _is_published_contract(contract_text):
+ return []
+ return _published_review_missing_labels(review)
+
+
async def run_review(
app: AppContext, investigator: Agent, synthesizer: Agent, instruction: str
) -> tuple[RunResult, RunResult]:
@@ -135,9 +642,142 @@ async def run_review(
context=app,
max_turns=20,
)
+ is_published_contract = _is_published_contract(app.contract_text)
+ unsupported_sections = _unsupported_published_sections(str(gather.final_output))
+ normalized_findings = " ".join(str(gather.final_output).casefold().split())
+ incorrect_document_type = (
+ "distributor agreement" not in normalized_findings
+ or "master services agreement" in normalized_findings
+ or re.search(r"\bmsa\b", normalized_findings) is not None
+ )
+ narrative_is_bounded = _published_findings_narrative_is_bounded(
+ str(gather.final_output)
+ )
+ deadline_status_is_grounded = _published_deadline_status_is_grounded(
+ str(gather.final_output)
+ )
+ if is_published_contract and (
+ unsupported_sections
+ or incorrect_document_type
+ or not narrative_is_bounded
+ or not deadline_status_is_grounded
+ ):
+ risks = app.clause_cache.get("risk_analysis")
+ if not isinstance(risks, dict):
+ raise RuntimeError("Grounded clause-risk analysis is unavailable")
+ grounded_analysis = ClauseRiskAnalysis.model_validate(risks)
+ grounded_findings = _render_grounded_published_findings(grounded_analysis)
+ remaining_sections = _unsupported_published_sections(grounded_findings)
+ if remaining_sections:
+ raise RuntimeError(
+ "Grounded findings assembly retained unsupported sections: "
+ + ", ".join(sorted(remaining_sections))
+ )
+ normalized_grounded = " ".join(grounded_findings.casefold().split())
+ if (
+ "distributor agreement" not in normalized_grounded
+ or "master services agreement" in normalized_grounded
+ or re.search(r"\bmsa\b", normalized_grounded) is not None
+ ):
+ raise RuntimeError(
+ "Grounded findings assembly retained the wrong document classification"
+ )
+ gather.final_output = grounded_findings
+ obligations_result = app.clause_cache.get("obligations_result")
+ if isinstance(obligations_result, str) and obligations_result.strip():
+ findings = str(gather.final_output).rstrip()
+ if obligations_result not in findings:
+ gather.final_output = (
+ f"{findings}\n\nObligations and deadlines "
+ "(validated exact-contract rows):\n"
+ f"{obligations_result}"
+ )
+ search_results = app.clause_cache.get("search_results")
+ retrieved_source_facts = (
+ search_results.get(COMMERCIAL_FACTS_QUERY, [])
+ if isinstance(search_results, dict)
+ else []
+ )
+ source_facts = (
+ _exact_source_sections(app.contract_text, ("1.1", "1.3", "1.6", "4.1", "6.9"))
+ or retrieved_source_facts
+ )
+ risk_analysis = app.clause_cache.get("risk_analysis")
+ if not isinstance(risk_analysis, dict):
+ raise RuntimeError( # noqa: TRY004
+ "Grounded clause-risk analysis is unavailable"
+ )
+ grounded_analysis = ClauseRiskAnalysis.model_validate(risk_analysis)
+ grounded_risk_flags = [
+ RiskFlag(
+ clause=risk.clause,
+ issue=risk.issue,
+ severity=risk.severity,
+ suggested_redline=risk.suggested_redline,
+ )
+ for risk in grounded_analysis.risks
+ ]
+ risk_appendix = "\n\n".join(
+ f"{risk.clause} | severity: {risk.severity}\n"
+ f"Issue: {risk.issue}\nSuggested redline: {risk.suggested_redline}"
+ for risk in grounded_analysis.risks
+ )
+ findings = str(gather.final_output).rstrip()
+ if risk_appendix not in findings:
+ gather.final_output = (
+ f"{findings}\n\nGrounded clause-risk analysis:\n{risk_appendix}"
+ )
+ synthesis_input = (
+ "Investigator findings:\n\n"
+ f"{gather.final_output}\n\n"
+ "Grounded risk analysis (copy its risks exactly):\n\n"
+ f"{json.dumps(risk_analysis, indent=2)}\n\n"
+ "Exact source clauses for governing law and commercial obligations; these "
+ "override any conflicting investigator paraphrase:\n\n"
+ f"{'\n\n---\n\n'.join(source_facts)}\n\n"
+ )
synth = await Runner.run(
synthesizer,
- f"Investigator findings:\n\n{gather.final_output}\n\nProduce the ContractReview.",
+ synthesis_input + "Produce the ContractReview.",
context=app,
)
+ draft = synth.final_output_as(ContractReview)
+ draft.risk_flags = grounded_risk_flags
+ if is_published_contract:
+ draft.recommendation = _align_published_signature_recommendation(
+ draft.recommendation
+ )
+ synth.final_output = draft
+ missing_facts = _published_review_missing_facts(app.contract_text, draft)
+ if missing_facts:
+ repair_agent = build_synthesizer(
+ app.cfg,
+ app.sie,
+ app.api_calls,
+ stage="synthesize_review:repair",
+ output_type=PublishedReviewRepair,
+ )
+ synth = await Runner.run(
+ repair_agent,
+ synthesis_input
+ + "Draft ContractReview:\n\n"
+ + json.dumps(draft.model_dump(mode="json"), indent=2)
+ + "\n\nThe draft omitted these source-backed facts:\n- "
+ + "\n- ".join(missing_facts)
+ + "\n\nRevise the ContractReview once. Preserve every accurate draft fact and "
+ "all grounded risks, and add every omitted fact from the exact source "
+ "clauses. Do not invent anything.",
+ context=app,
+ )
+ repaired = synth.final_output_as(PublishedReviewRepair).to_contract_review(
+ risk_flags=grounded_risk_flags,
+ recommendation=draft.recommendation,
+ )
+ remaining_facts = _published_review_missing_facts(app.contract_text, repaired)
+ if remaining_facts:
+ raise RuntimeError(
+ "Bounded synthesis repair omitted source-backed facts: "
+ + ", ".join(remaining_facts)
+ )
+ synth.final_output = repaired
return gather, synth
diff --git a/examples/contract-review-agent/contract_review_agent/cli.py b/examples/contract-review-agent/contract_review_agent/cli.py
index 9c7be3cd9..e98a9a3cd 100644
--- a/examples/contract-review-agent/contract_review_agent/cli.py
+++ b/examples/contract-review-agent/contract_review_agent/cli.py
@@ -24,6 +24,11 @@ from .app import (
from .config import load_config
from .data import make_sample
from .data.paths import CUAD_DIR, GENERATED_DIR, MANIFEST_PATH
+from .evidence import (
+ ensure_run_destination_available,
+ validate_run_id,
+ write_run_record,
+)
from .runtime import AppContext, Ledger, instruct_once, provision_timeout_from
console = Console()
@@ -136,20 +141,35 @@ def _print_review(review: ContractReview) -> None:
console.print(risks)
-def _resolve_corpus(args) -> tuple[str, str, str, str]:
- """Return (contract_text, scan_path, db_path, label)."""
+def _guardrail_unavailable(ledger: Ledger) -> bool:
+ return bool(
+ ledger.entries
+ and ledger.entries[-1].step.startswith("Safety guardrail")
+ and ledger.entries[-1].got.startswith("unavailable:")
+ )
+
+
+def _resolve_corpus(args) -> tuple[str, str, str, str, str | None]:
+ """Return text, scan, obligations DB, display label, and DB counterparty."""
# Explicit file path wins.
if args.contract and Path(args.contract).is_file():
p = Path(args.contract)
scan = args.scan or str(GENERATED_DIR / "acme-msa-signature.png")
- return p.read_text(), scan, str(GENERATED_DIR / "obligations.db"), p.name
+ return p.read_text(), scan, str(GENERATED_DIR / "obligations.db"), p.name, None
if MANIFEST_PATH.exists(): # real CUAD corpus
manifest = json.loads(MANIFEST_PATH.read_text())
slug = args.contract or manifest["primary"]
+ contract = next(row for row in manifest["contracts"] if row["slug"] == slug)
text = (CUAD_DIR / f"{slug}.txt").read_text()
scan = args.scan or str(GENERATED_DIR / manifest["scan_path"])
- return text, scan, str(GENERATED_DIR / manifest["db_path"]), f"CUAD · {slug}"
+ return (
+ text,
+ scan,
+ str(GENERATED_DIR / manifest["db_path"]),
+ f"CUAD · {slug}",
+ contract["counterparty"],
+ )
# Offline fallback: synthetic corpus (generate it if missing).
if not (GENERATED_DIR / "acme-msa.md").exists():
@@ -161,7 +181,18 @@ def _resolve_corpus(args) -> tuple[str, str, str, str]:
name = args.contract or "acme-msa"
text = (GENERATED_DIR / f"{name}.md").read_text()
scan = args.scan or str(GENERATED_DIR / "acme-msa-signature.png")
- return text, scan, str(GENERATED_DIR / "obligations.db"), f"synthetic · {name}"
+ counterparty = {
+ "acme-msa": "Acme Cloud Services, LLC",
+ "acme-sow": "Acme Cloud Services, LLC",
+ "mutual-nda": "Globex Corporation",
+ }.get(name)
+ return (
+ text,
+ scan,
+ str(GENERATED_DIR / "obligations.db"),
+ f"synthetic · {name}",
+ counterparty,
+ )
def _list_contracts() -> None:
@@ -192,6 +223,7 @@ async def _warm(app: AppContext) -> None:
app,
model,
[{"role": "user", "content": "ok"}],
+ stage="warmup",
max_tokens=1,
)
except Exception as exc: # noqa: BLE001 - warm-up is best effort.
@@ -204,8 +236,10 @@ async def _warm(app: AppContext) -> None:
async def _run(args) -> None:
set_tracing_disabled(True)
+ if args.run_id is not None:
+ ensure_run_destination_available(args.run_id)
cfg = load_config()
- text, scan_path, db_path, label = _resolve_corpus(args)
+ text, scan_path, db_path, label, obligation_counterparty = _resolve_corpus(args)
_print_catalog(cfg)
console.print(
@@ -218,6 +252,7 @@ async def _run(args) -> None:
timeout_s=provision_timeout_from(cfg),
) as sie:
ledger = Ledger()
+ api_calls: list[dict] = []
app = AppContext(
sie=sie,
cfg=cfg,
@@ -225,10 +260,12 @@ async def _run(args) -> None:
contract_text=text,
scan_path=scan_path,
db_path=db_path,
- reasoning_agent=build_reasoning_agent(cfg, sie),
+ obligation_counterparty=obligation_counterparty,
+ api_calls=api_calls,
+ reasoning_agent=build_reasoning_agent(cfg, sie, api_calls),
)
- investigator = build_investigator(cfg, sie)
- synthesizer = build_synthesizer(cfg, sie)
+ investigator = build_investigator(cfg, sie, api_calls)
+ synthesizer = build_synthesizer(cfg, sie, api_calls)
if not args.no_warm:
await _warm(app)
t0 = time.monotonic()
@@ -237,14 +274,21 @@ async def _run(args) -> None:
app, investigator, synthesizer, args.instruction
)
except InputGuardrailTripwireTriggered:
+ unavailable = _guardrail_unavailable(ledger)
console.print(
Panel(
- "Request blocked by the granite-guardian safety guardrail.",
+ (
+ "Safety guardrail unavailable; the contract review did not run."
+ if unavailable
+ else "Request blocked by the granite-guardian safety guardrail."
+ ),
border_style="red",
- title="Guardrail tripped",
+ title="Run failed" if unavailable else "Guardrail tripped",
)
)
_print_ledger(ledger)
+ if unavailable:
+ raise
return
except Exception as exc:
console.print(
@@ -272,6 +316,24 @@ async def _run(args) -> None:
_print_ledger(ledger)
usage = getattr(getattr(gather, "context_wrapper", None), "usage", None)
_print_summary(cfg, usage, wall)
+ if args.run_id is not None:
+ if not isinstance(review, ContractReview):
+ raise RuntimeError("Cannot record an unstructured contract review")
+ run_dir = write_run_record(
+ run_id=args.run_id,
+ endpoint=cfg["cluster"]["url"],
+ cfg=cfg,
+ label=label,
+ contract_text=text,
+ scan_path=scan_path,
+ db_path=db_path,
+ findings=str(gather.final_output),
+ review=review,
+ ledger=ledger,
+ api_calls=api_calls,
+ wall_s=wall,
+ )
+ console.print(f"Checked run evidence: [bold]{run_dir}[/]")
def main() -> None:
@@ -288,9 +350,10 @@ def main() -> None:
)
parser.add_argument(
"--instruction",
- default="Review this contract. Identify the parties and key terms, flag the "
- "biggest risks to the Customer with severity and redlines, confirm it is "
- "executed, and surface upcoming obligations and deadlines.",
+ default="Review this contract. Identify the parties and key terms, flag every "
+ "source-backed material risk to the Customer with severity and redlines, "
+ "assess whether signatures and dates are visible on the supplied signature "
+ "page, and surface outstanding obligations with their deadline status.",
help="what to ask the agent to do",
)
parser.add_argument(
@@ -301,6 +364,12 @@ def main() -> None:
action="store_true",
help="skip pre-warming models (faster when the cluster is already warm)",
)
+ parser.add_argument(
+ "--run-id",
+ default=None,
+ type=validate_run_id,
+ help="write reproducible evidence under runs/<run-id> after a passing run",
+ )
args = parser.parse_args()
if args.list:
diff --git a/examples/contract-review-agent/contract_review_agent/data/fetch_contracts.py b/examples/contract-review-agent/contract_review_agent/data/fetch_contracts.py
index b7a699066..fbd2223f9 100644
--- a/examples/contract-review-agent/contract_review_agent/data/fetch_contracts.py
+++ b/examples/contract-review-agent/contract_review_agent/data/fetch_contracts.py
@@ -22,6 +22,7 @@ import re
import sqlite3
import sys
import tempfile
+import textwrap
import zipfile
from pathlib import Path
@@ -137,6 +138,20 @@ _OBLIGATION_PLANS = [
]
+def _signature_page_text(contract_text: str) -> str:
+ starts = [
+ match.start()
+ for marker in ("in witness whereof", "signature page", "signatures")
+ for match in re.finditer(re.escape(marker), contract_text, re.IGNORECASE)
+ ]
+ if starts:
+ return contract_text[max(starts) :]
+ wrapped_lines: list[str] = []
+ for raw_line in contract_text.splitlines():
+ wrapped_lines.extend(textwrap.wrap(raw_line, width=92) or [""])
+ return "\n".join(wrapped_lines[-46:])
+
+
def build_obligations(contracts: list[dict]) -> int:
DB_PATH.unlink(missing_ok=True)
rows = []
@@ -175,7 +190,11 @@ def main() -> None:
primary = contracts[0]
scan_path = CUAD_DIR / f"{primary['slug']}-page.png"
- render_text_page(primary["text"], scan_path, title=primary["title"])
+ render_text_page(
+ _signature_page_text(primary["text"]),
+ scan_path,
+ title=f"{primary['title']} — signature page",
+ )
n_obligations = build_obligations(contracts)
diff --git a/examples/contract-review-agent/contract_review_agent/evidence.py b/examples/contract-review-agent/contract_review_agent/evidence.py
new file mode 100644
index 000000000..1a50773da
--- /dev/null
+++ b/examples/contract-review-agent/contract_review_agent/evidence.py
@@ -0,0 +1,633 @@
+from __future__ import annotations
+
+import contextlib
+import hashlib
+import json
+import re
+import shutil
+import tempfile
+from dataclasses import asdict
+from datetime import UTC, datetime
+from pathlib import Path
+from typing import Any
+
+from .app import (
+ _INVESTIGATOR_TOOL_SEQUENCE,
+ ContractReview,
+ _published_deadline_status_is_grounded,
+ _published_findings_narrative_is_bounded,
+ _published_review_missing_labels,
+ _source_section_excerpt,
+)
+from .config import PROJECT_ROOT
+from .runtime import Ledger
+
+RUNTIME_MODEL_OPTIONAL_FUNCTIONS = frozenset({"encode", "extract"})
+PUBLISHED_CONTRACT_LABEL = "CUAD · limeenergyco-09-09-1999-ex-10-distributor-agreement"
+PUBLISHED_RISK_TARGETS = {
+ "1.3": "high",
+ "4.2": "high",
+ "4.4": "medium",
+ "5.3": "high",
+}
+PUBLISHED_FACT_SECTIONS = ("1.1", "1.3", "1.6", "4.1", "6.9")
+
+
+def _runtime_model_is_valid(call: dict[str, Any]) -> bool:
+ runtime_model = call.get("runtime_model")
+ if runtime_model is None:
+ return call.get("function") in RUNTIME_MODEL_OPTIONAL_FUNCTIONS
+ return (
+ isinstance(runtime_model, str)
+ and bool(runtime_model)
+ and runtime_model == call.get("requested_model")
+ )
+
+
+def _expected_call_sequence(
+ cfg: dict[str, Any],
+ *,
+ include_citation_repair: bool = False,
+ include_synthesis_repair: bool = False,
+) -> list[dict[str, str]]:
+ models = cfg["models"]
+ sequence = [
+ ("safety_guardrail", "generate", "guard"),
+ ("classify_document", "generate", "triage"),
+ ("ocr_signature_page", "extract", "ocr"),
+ ("extract_entities", "extract", "entities"),
+ ("read_signature_page", "generate", "vision"),
+ ("search_clauses:index", "encode", "embed"),
+ ]
+ search_rounds = sum(
+ 1 for name, _ in _INVESTIGATOR_TOOL_SEQUENCE if name == "search_clauses"
+ )
+ for _ in range(search_rounds):
+ sequence.extend(
+ [
+ ("search_clauses:encode", "encode", "embed"),
+ ("search_clauses:score", "score", "rerank"),
+ ]
+ )
+ sequence.extend(
+ [
+ ("analyze_clause_risks", "generate", "reasoning"),
+ ("query_obligations_db", "generate", "sql"),
+ ("investigator_report", "generate", "orchestrator"),
+ ]
+ )
+ if include_citation_repair:
+ sequence.append(
+ ("investigator_report:citation_repair", "generate", "orchestrator")
+ )
+ sequence.append(("synthesize_review", "generate", "orchestrator"))
+ if include_synthesis_repair:
+ sequence.append(("synthesize_review:repair", "generate", "orchestrator"))
+ return [
+ {"stage": stage, "function": function, "requested_model": models[role]}
+ for stage, function, role in sequence
+ ]
+
+
+def _sha256_bytes(value: bytes) -> str:
+ return hashlib.sha256(value).hexdigest()
+
+
+def _sha256(path: Path) -> str:
+ return _sha256_bytes(path.read_bytes())
+
+
+def _write_json(path: Path, value: Any) -> None:
+ path.write_text(json.dumps(value, indent=2) + "\n", encoding="utf-8")
+
+
+def _normalize_model_text(value: str) -> str:
+ return "\n".join(line.rstrip() for line in value.rstrip().splitlines()) + "\n"
+
+
+def validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError(
+ "run_id must be one safe directory name containing only letters, "
+ "digits, '.', '_', or '-'"
+ )
+ return run_id
+
+
+def ensure_run_destination_available(run_id: str) -> Path:
+ validate_run_id(run_id)
+ destination = PROJECT_ROOT / "runs" / run_id
+ if destination.exists():
+ raise FileExistsError(f"Run evidence already exists at {destination}")
+ return destination
+
+
+def _risk_clause_source_evidence(
+ contract_text: str, review: ContractReview, label: str
+) -> dict[str, Any]:
+ rows: list[dict[str, str]] = []
+ for risk in review.risk_flags:
+ if not re.match(r"^Sections?\s+\d+(?:\.\d+)+\b", risk.clause):
+ raise RuntimeError(
+ f"Risk clause has no source section reference: {risk.clause}"
+ )
+ sections = list(dict.fromkeys(re.findall(r"\b\d+(?:\.\d+)+\b", risk.clause)))
+ if not sections:
+ raise RuntimeError(
+ f"Risk clause has no source section reference: {risk.clause}"
+ )
+ for section in sections:
+ excerpt = _source_section_excerpt(
+ contract_text,
+ section,
+ error_prefix=f"Risk clause {risk.clause!r}",
+ )
+ if not excerpt:
+ raise RuntimeError(f"Risk clause has no source excerpt: {risk.clause}")
+ rows.append(
+ {
+ "clause": risk.clause,
+ "citation": f"Section {section}",
+ "section": section,
+ "excerpt": excerpt,
+ "excerpt_sha256": _sha256_bytes(excerpt.encode()),
+ }
+ )
+ commercial_fact_clauses: list[dict[str, str]] = []
+ if label == PUBLISHED_CONTRACT_LABEL:
+ for section in PUBLISHED_FACT_SECTIONS:
+ excerpt = _source_section_excerpt(
+ contract_text,
+ section,
+ error_prefix="Published fact",
+ )
+ if not excerpt:
+ raise RuntimeError(
+ f"Published fact section {section} has no source excerpt"
+ )
+ commercial_fact_clauses.append(
+ {
+ "citation": f"Section {section}",
+ "section": section,
+ "excerpt": excerpt,
+ "excerpt_sha256": _sha256_bytes(excerpt.encode()),
+ }
+ )
+ return {
+ "contract_text_sha256": _sha256_bytes(contract_text.encode()),
+ "risk_clauses": rows,
+ "commercial_fact_clauses": commercial_fact_clauses,
+ }
+
+
+def _risk_claims_are_source_supported(
+ review: ContractReview, source_evidence: dict[str, Any], label: str
+) -> bool:
+ excerpts = {
+ str(row["section"]): str(row["excerpt"]).casefold()
+ for row in source_evidence["risk_clauses"]
+ }
+ all_source = "\n".join(excerpts.values())
+ all_claims = "\n".join(
+ [
+ review.recommendation,
+ *(risk.issue for risk in review.risk_flags),
+ ]
+ ).casefold()
+ automatic_renewal = re.compile(
+ r"\bautomatic(?:ally)?(?:\s+\w+){0,2}\s+renew(?:al|als|s|ed|ing)\b"
+ )
+ if automatic_renewal.search(all_claims) and not automatic_renewal.search(
+ all_source
+ ):
+ for match in automatic_renewal.finditer(all_claims):
+ qualifier = all_claims[max(0, match.start() - 80) : match.start()]
+ if not re.search(
+ r"\b(?:ambiguity|uncertain|uncertainty|unclear|whether)\b", qualifier
+ ):
+ return False
+ if (
+ "right of first refusal" in all_claims
+ and "right of first refusal" not in all_source
+ ):
+ return False
+ for risk in review.risk_flags:
+ sections = re.findall(r"\b\d+(?:\.\d+)+\b", risk.clause)
+ source = "\n".join(excerpts.get(section, "") for section in sections)
+ claim = risk.issue.casefold()
+ if (
+ "cure" in claim
+ and "30 day" in claim
+ and "commercially reasonable" in source
+ and "commercially reasonable" not in claim
+ ):
+ return False
+ if (
+ label == PUBLISHED_CONTRACT_LABEL
+ and sections == ["4.2"]
+ and (
+ "commercially reasonable" not in claim
+ or "without a cure" in claim
+ or "no cure" in claim
+ )
+ ):
+ return False
+ if (
+ label == PUBLISHED_CONTRACT_LABEL
+ and sections == ["4.4"]
+ and (
+ "without cause" not in claim
+ or ("mandatory" not in claim and "shall" not in claim)
+ or "option" not in claim
+ or "inventory" not in claim
+ or re.search(
+ r"\boption\b.{0,60}\bonly\b.{0,60}\bwithout cause\b", claim
+ )
+ or re.search(r"\bmandatory exception\b.{0,80}\boptional\b", claim)
+ or "drafted as optional" in claim
+ )
+ ):
+ return False
+ if (
+ label == PUBLISHED_CONTRACT_LABEL
+ and sections == ["5.3"]
+ and (
+ "not at fault" not in claim
+ or "indemnif" in claim
+ and "for company's negligence" in claim
+ )
+ ):
+ return False
+ return True
+
+
+def _signature_scope_is_supported(findings: str, review: ContractReview) -> bool:
+ normalized = " ".join(findings.casefold().split())
+ review_text = " ".join(review.recommendation.casefold().split())
+ if review.executed:
+ return "not executed" not in normalized and "not executed" not in review_text
+ return (
+ "not established from the visible signature page" in normalized
+ and "not executed" not in normalized
+ and "not executed" not in review_text
+ and "not fully executed" not in review_text
+ and "unexecuted" not in review_text
+ and "draft or unsigned copy" not in normalized
+ and "document ends at" not in normalized
+ )
+
+
+def _published_investigator_findings_missing(label: str, findings: str) -> list[str]:
+ if label != PUBLISHED_CONTRACT_LABEL:
+ return []
+ normalized = " ".join(findings.casefold().split())
+ requirements = {
+ "all cited risk and fact sections": all(
+ section in normalized
+ for section in (
+ "section 1.3",
+ "section 1.6",
+ "section 4.2",
+ "section 4.4",
+ "section 5.3",
+ "section 6.9",
+ )
+ ),
+ "commercial amounts and unit minimum": all(
+ fact in normalized for fact in ("$500,000", "$250,000", "375")
+ ),
+ "quarterly compliance obligation": (
+ "quarter" in normalized and "compliance" in normalized
+ ),
+ "annual subscription obligation": (
+ "annual" in normalized and "subscription" in normalized
+ ),
+ "renewal notice obligation": (
+ "renewal" in normalized and "notice" in normalized
+ ),
+ "grounded deadline status section": _published_deadline_status_is_grounded(
+ findings
+ ),
+ "indemnity fault condition": "not at fault" in normalized,
+ "June 30, 2026 deadline": any(
+ value in normalized
+ for value in ("2026-06-30", "june 30, 2026", "june 30 2026")
+ ),
+ "July 1, 2026 deadline": any(
+ value in normalized
+ for value in ("2026-07-01", "july 1, 2026", "july 1 2026")
+ ),
+ "September 15, 2026 deadline": any(
+ value in normalized
+ for value in ("2026-09-15", "september 15, 2026", "september 15 2026")
+ ),
+ "no unsupported Section 6.7 citation": "section 6.7" not in normalized,
+ "no unrelated contract rows": "centrack" not in normalized,
+ "exact document classification": (
+ "distributor agreement" in normalized
+ and "master services agreement" not in normalized
+ and re.search(r"\bmsa\b", normalized) is None
+ ),
+ "partial visible signature evidence": (
+ "/s/" in normalized
+ and "joseph marino" in normalized
+ and "jim stump" in normalized
+ and "no actual signature" not in normalized
+ and "no signatures are present" not in normalized
+ ),
+ "visible-page execution qualification": (
+ "not established from the visible signature page" in normalized
+ and any(
+ wording in normalized
+ for wording in ("no execution dates", "no dates", "not dated")
+ )
+ ),
+ }
+ return [name for name, present in requirements.items() if not present]
+
+
+def _published_investigator_findings_are_complete(label: str, findings: str) -> bool:
+ return not _published_investigator_findings_missing(label, findings)
+
+
+def _published_investigator_narrative_is_bounded(label: str, findings: str) -> bool:
+ if label != PUBLISHED_CONTRACT_LABEL:
+ return True
+ narrative = re.split(
+ r"\n\n(?:Upcoming )?[Oo]bligations and deadlines "
+ r"\(validated exact-contract rows\):",
+ findings,
+ maxsplit=1,
+ )[0]
+ return _published_findings_narrative_is_bounded(narrative)
+
+
+def _published_risk_coverage_is_preserved(label: str, review: ContractReview) -> bool:
+ if label != PUBLISHED_CONTRACT_LABEL:
+ return True
+ actual: dict[str, str] = {}
+ for risk in review.risk_flags:
+ sections = re.findall(r"\b\d+(?:\.\d+)+\b", risk.clause)
+ if len(sections) != 1 or sections[0] in actual:
+ return False
+ actual[sections[0]] = risk.severity.casefold()
+ return actual == PUBLISHED_RISK_TARGETS
+
+
+def _published_fact_coverage_is_preserved(label: str, review: ContractReview) -> bool:
+ if label != PUBLISHED_CONTRACT_LABEL:
+ return True
+ return not _published_review_missing_labels(review)
+
+
+def _published_fact_source_coverage_is_preserved(
+ label: str, source_evidence: dict[str, Any]
+) -> bool:
+ if label != PUBLISHED_CONTRACT_LABEL:
+ return True
+ sections = [
+ str(row.get("section"))
+ for row in source_evidence.get("commercial_fact_clauses", [])
+ ]
+ return sections == list(PUBLISHED_FACT_SECTIONS)
+
+
+def _guardrail_was_accepted(ledger: Ledger) -> bool:
+ entries = [
+ entry
+ for entry in ledger.entries
+ if entry.step == "Safety guardrail (granite-guardian)"
+ ]
+ return len(entries) == 1 and entries[0].got.strip().casefold() == "no"
+
+
+def write_run_record(
+ *,
+ run_id: str,
+ endpoint: str,
+ cfg: dict[str, Any],
+ label: str,
+ contract_text: str,
+ scan_path: str,
+ db_path: str,
+ findings: str,
+ review: ContractReview,
+ ledger: Ledger,
+ api_calls: list[dict[str, Any]],
+ wall_s: float,
+) -> Path:
+ missing_findings = _published_investigator_findings_missing(label, findings)
+ if missing_findings:
+ raise RuntimeError(
+ "Published investigator findings are incomplete: "
+ + ", ".join(missing_findings)
+ )
+ if not _published_investigator_narrative_is_bounded(label, findings):
+ raise RuntimeError(
+ "Published investigator findings narrative is incomplete or out of range"
+ )
+ final_run_dir = ensure_run_destination_available(run_id)
+ runs_dir = PROJECT_ROOT / "runs"
+ runs_dir.mkdir(parents=True, exist_ok=True)
+ reservation_dir = runs_dir / f".{run_id}.lock"
+ try:
+ reservation_dir.mkdir()
+ except FileExistsError as exc:
+ raise FileExistsError(f"Run ID is already reserved: {run_id}") from exc
+ try:
+ if final_run_dir.exists():
+ raise FileExistsError(f"Run evidence already exists at {final_run_dir}")
+ staging_dir = Path(tempfile.mkdtemp(prefix=f".{run_id}-", dir=runs_dir))
+ try:
+ _write_run_record(
+ run_dir=staging_dir,
+ run_id=run_id,
+ endpoint=endpoint,
+ cfg=cfg,
+ label=label,
+ contract_text=contract_text,
+ scan_path=scan_path,
+ db_path=db_path,
+ findings=findings,
+ review=review,
+ ledger=ledger,
+ api_calls=api_calls,
+ wall_s=wall_s,
+ )
+ staging_dir.rename(final_run_dir)
+ except BaseException:
+ shutil.rmtree(staging_dir, ignore_errors=True)
+ raise
+ finally:
+ with contextlib.suppress(OSError):
+ reservation_dir.rmdir()
+ return final_run_dir
+
+
+def _write_run_record(
+ *,
+ run_dir: Path,
+ run_id: str,
+ endpoint: str,
+ cfg: dict[str, Any],
+ label: str,
+ contract_text: str,
+ scan_path: str,
+ db_path: str,
+ findings: str,
+ review: ContractReview,
+ ledger: Ledger,
+ api_calls: list[dict[str, Any]],
+ wall_s: float,
+) -> None:
+
+ review_path = run_dir / "review.json"
+ findings_path = run_dir / "investigator-findings.txt"
+ ledger_path = run_dir / "ledger.json"
+ calls_path = run_dir / "api-calls.json"
+ evaluation_path = run_dir / "evaluation.json"
+ source_evidence_path = run_dir / "source-evidence.json"
+ _write_json(review_path, review.model_dump(mode="json"))
+ findings_path.write_text(_normalize_model_text(findings), encoding="utf-8")
+ _write_json(ledger_path, [asdict(entry) for entry in ledger.entries])
+ _write_json(calls_path, api_calls)
+ source_evidence = _risk_clause_source_evidence(contract_text, review, label)
+ _write_json(source_evidence_path, source_evidence)
+
+ requested_models = sorted({call["requested_model"] for call in api_calls})
+ expected_models = sorted(set(cfg["models"].values()))
+ observed_functions = sorted({call["function"] for call in api_calls})
+ observed_call_sequence = [
+ {field: call.get(field) for field in ("stage", "function", "requested_model")}
+ for call in api_calls
+ if call.get("stage") != "warmup"
+ ]
+ repair_calls = [
+ call
+ for call in observed_call_sequence
+ if call.get("stage") == "synthesize_review:repair"
+ ]
+ citation_repair_calls = [
+ call
+ for call in observed_call_sequence
+ if call.get("stage") == "investigator_report:citation_repair"
+ ]
+ expected_call_sequence = _expected_call_sequence(
+ cfg,
+ include_citation_repair=len(citation_repair_calls) == 1,
+ include_synthesis_repair=len(repair_calls) == 1,
+ )
+ request_ids = [call.get("request_id") for call in api_calls]
+ checks = {
+ "structured_review": True,
+ "guardrail_was_accepted": _guardrail_was_accepted(ledger),
+ "parties_identified": bool(review.parties),
+ "risk_flags_identified": bool(review.risk_flags),
+ "api_calls_have_request_provenance": bool(api_calls)
+ and all(
+ isinstance(call.get("credits_debited"), int | float)
+ and not isinstance(call["credits_debited"], bool)
+ and call["credits_debited"] >= 0
+ and _runtime_model_is_valid(call)
+ and all(
+ isinstance(call.get(field), str) and bool(call[field])
+ for field in (
+ "stage",
+ "request_id",
+ "rate_book_version",
+ "execution_identity_sha256",
+ )
+ )
+ for call in api_calls
+ ),
+ "api_call_request_ids_unique": len(request_ids) == len(set(request_ids)),
+ "risk_clauses_supported_by_source": bool(source_evidence["risk_clauses"]),
+ "risk_claims_supported_by_source": _risk_claims_are_source_supported(
+ review, source_evidence, label
+ ),
+ "published_risk_coverage_non_regression": (
+ _published_risk_coverage_is_preserved(label, review)
+ ),
+ "published_fact_coverage_non_regression": (
+ _published_fact_coverage_is_preserved(label, review)
+ ),
+ "published_fact_source_coverage_non_regression": (
+ _published_fact_source_coverage_is_preserved(label, source_evidence)
+ ),
+ "signature_image_scope_not_overclaimed": _signature_scope_is_supported(
+ findings, review
+ ),
+ "published_investigator_findings_complete": (
+ _published_investigator_findings_are_complete(label, findings)
+ ),
+ "published_investigator_narrative_bounded": (
+ _published_investigator_narrative_is_bounded(label, findings)
+ ),
+ "all_configured_models_called": requested_models == expected_models,
+ "native_primitives_called": set(observed_functions)
+ >= {"encode", "extract", "generate", "score"},
+ "required_api_call_sequence": observed_call_sequence == expected_call_sequence,
+ "bounded_citation_repair": len(citation_repair_calls) <= 1,
+ "bounded_synthesis_repair": len(repair_calls) <= 1,
+ }
+ _write_json(
+ evaluation_path,
+ {
+ "passed": all(checks.values()),
+ "checks": checks,
+ "expected_models": expected_models,
+ "requested_models": requested_models,
+ "observed_functions": observed_functions,
+ "expected_call_sequence": expected_call_sequence,
+ "observed_call_sequence": observed_call_sequence,
+ },
+ )
+ if not all(checks.values()):
+ raise RuntimeError(f"Production evidence checks failed: {checks}")
+
+ artifacts = [
+ calls_path,
+ evaluation_path,
+ findings_path,
+ ledger_path,
+ review_path,
+ source_evidence_path,
+ ]
+ scan = Path(scan_path)
+ database = Path(db_path)
+ _write_json(
+ run_dir / "manifest.json",
+ {
+ "run_id": run_id,
+ "completed_at": datetime.now(UTC).isoformat(),
+ "endpoint": endpoint,
+ "execution": "SIE API",
+ "models": cfg["models"],
+ "source_inputs": [
+ {
+ "label": label,
+ "kind": "contract_text",
+ "parties": review.parties,
+ "sha256": _sha256_bytes(contract_text.encode()),
+ },
+ {"path": scan.name, "kind": "signature_scan", "sha256": _sha256(scan)},
+ {
+ "path": database.name,
+ "kind": "obligations_db",
+ "sha256": _sha256(database),
+ },
+ ],
+ "timing_ms": {"end_to_end": round(wall_s * 1000, 1)},
+ "timing_note": "Diagnostic run timing, not a benchmark.",
+ "artifacts": [
+ {
+ "path": path.relative_to(run_dir).as_posix(),
+ "sha256": _sha256(path),
+ }
+ for path in artifacts
+ ],
+ },
+ )
diff --git a/examples/contract-review-agent/contract_review_agent/guardrails.py b/examples/contract-review-agent/contract_review_agent/guardrails.py
index ccf7b0030..e61cb63c2 100644
--- a/examples/contract-review-agent/contract_review_agent/guardrails.py
+++ b/examples/contract-review-agent/contract_review_agent/guardrails.py
@@ -35,7 +35,12 @@ def _input_text(data: Any) -> str:
return "\n".join(parts)
-@input_guardrail
+def _unsafe_verdict(verdict: str) -> bool:
+ normalized = verdict.strip().casefold().rstrip(".,!;:")
+ return normalized != "no"
+
+
+@input_guardrail(run_in_parallel=False)
async def safety_guardrail(
ctx: RunContextWrapper[AppContext], agent: Agent, data: Any
) -> GuardrailFunctionOutput:
@@ -47,12 +52,12 @@ async def safety_guardrail(
app,
model,
[{"role": "user", "content": _input_text(data)[:6000]}],
- max_tokens=8,
+ stage="safety_guardrail",
+ max_tokens=3,
timeout_s=25,
)
- except Exception as exc: # noqa: BLE001 - configured fail-open boundary.
- # Guard model unavailable: fail OPEN (allow the run) but make it visible.
- # A stricter deployment might fail closed — that's a policy choice.
+ except Exception as exc: # noqa: BLE001 - guard failures must fail closed.
+ # Guard model unavailable: block the run and make the failure visible.
app.ledger.record(
"Safety guardrail (granite-guardian)",
model,
@@ -61,7 +66,7 @@ async def safety_guardrail(
got=f"unavailable: {type(exc).__name__}",
)
return GuardrailFunctionOutput(
- output_info={"error": str(exc), "model": model}, tripwire_triggered=False
+ output_info={"error": str(exc), "model": model}, tripwire_triggered=True
)
verdict = res.text.strip()
app.ledger.record(
@@ -73,7 +78,7 @@ async def safety_guardrail(
sent=f"{res.prompt_tokens:,} tok" if res.prompt_tokens else "—",
got=verdict or "—",
)
- unsafe = verdict.lower().startswith("yes")
+ unsafe = _unsafe_verdict(verdict)
return GuardrailFunctionOutput(
output_info={"verdict": verdict, "model": model},
tripwire_triggered=unsafe,
diff --git a/examples/contract-review-agent/contract_review_agent/native_model.py b/examples/contract-review-agent/contract_review_agent/native_model.py
index 3f4c9e013..274ce9738 100644
--- a/examples/contract-review-agent/contract_review_agent/native_model.py
+++ b/examples/contract-review-agent/contract_review_agent/native_model.py
@@ -29,9 +29,36 @@ from openai.types.responses import (
from sie_sdk import SIEAsyncClient
_DEFAULT_MAX_NEW_TOKENS = 1200
+_MIN_PLAIN_TEXT_LENGTH = 256
+_MAX_PLAIN_TEXT_LENGTH = 3500
type RequiredToolStep = tuple[str, str | None]
+def api_call_row(
+ *,
+ stage: str,
+ function: str,
+ requested_model: str,
+ response: dict[str, Any],
+) -> dict[str, Any]:
+ request = response.get("request")
+ request_row = request if isinstance(request, dict) else {}
+ return {
+ "stage": stage,
+ "function": function,
+ "requested_model": requested_model,
+ "runtime_model": (
+ response.get("model") if isinstance(response.get("model"), str) else None
+ ),
+ "request_id": (
+ request_row.get("id") if isinstance(request_row.get("id"), str) else None
+ ),
+ "rate_book_version": request_row.get("rate_book_version"),
+ "credits_debited": request_row.get("credits_debited"),
+ "execution_identity_sha256": request_row.get("execution_identity_sha256"),
+ }
+
+
def _as_dict(item: Any) -> dict[str, Any]:
if isinstance(item, dict):
return item
@@ -114,10 +141,36 @@ def _called_tools(input_items: str | list[TResponseInputItem]) -> list[dict[str,
]
-def _next_required_tool(
+def _required_text_argument(arguments: Any) -> str | None:
+ if not isinstance(arguments, dict):
+ return None
+ for name in ("query", "question"):
+ value = arguments.get(name)
+ if isinstance(value, str):
+ return value
+ return None
+
+
+def _schema_accepts_string(schema: Any) -> bool:
+ if not isinstance(schema, dict):
+ return False
+ value_type = schema.get("type")
+ if value_type == "string" or (
+ isinstance(value_type, list) and "string" in value_type
+ ):
+ return True
+ return any(
+ _schema_accepts_string(branch)
+ for keyword in ("anyOf", "oneOf")
+ if isinstance(schema.get(keyword), list)
+ for branch in schema[keyword]
+ )
+
+
+def _next_required_step(
required_sequence: tuple[RequiredToolStep, ...],
input_items: str | list[TResponseInputItem],
-) -> str | None:
+) -> RequiredToolStep | None:
progress = 0
for call in _called_tools(input_items):
if progress >= len(required_sequence):
@@ -135,14 +188,19 @@ def _next_required_tool(
)
except json.JSONDecodeError:
continue
- query = arguments.get("query") if isinstance(arguments, dict) else None
- if (
- not isinstance(query, str)
- or query.strip().casefold() != required_query.casefold()
- ):
+ query = _required_text_argument(arguments)
+ if not isinstance(query, str) or query != required_query:
continue
progress += 1
- return required_sequence[progress][0] if progress < len(required_sequence) else None
+ return required_sequence[progress] if progress < len(required_sequence) else None
+
+
+def _next_required_tool(
+ required_sequence: tuple[RequiredToolStep, ...],
+ input_items: str | list[TResponseInputItem],
+) -> str | None:
+ step = _next_required_step(required_sequence, input_items)
+ return step[0] if step is not None else None
def _function_tools(tools: list[Tool]) -> list[FunctionTool]:
@@ -237,7 +295,11 @@ def _turn_schema(
if allow_final:
final_schema: dict[str, Any]
if output_schema is None or output_schema.is_plain_text():
- final_schema = {"type": "string"}
+ final_schema = {
+ "type": "string",
+ "minLength": _MIN_PLAIN_TEXT_LENGTH,
+ "maxLength": _MAX_PLAIN_TEXT_LENGTH,
+ }
else:
final_schema, definitions = _namespace_schema_defs(
output_schema.json_schema(),
@@ -348,13 +410,17 @@ class SIENativeModel(Model):
model: str,
client: SIEAsyncClient,
*,
+ stage: str,
provision_timeout_s: float,
required_tool_sequence: tuple[RequiredToolStep, ...] = (),
+ api_calls: list[dict[str, Any]] | None = None,
) -> None:
self.model = model
+ self._stage = stage
self._client = client
self._provision_timeout_s = provision_timeout_s
self._required_tool_sequence = required_tool_sequence
+ self._api_calls = api_calls
async def get_response(
self,
@@ -384,7 +450,8 @@ class SIENativeModel(Model):
_function_tools(tools),
model_settings,
)
- required_tool = _next_required_tool(self._required_tool_sequence, input)
+ required_step = _next_required_step(self._required_tool_sequence, input)
+ required_tool = required_step[0] if required_step is not None else None
if required_tool is not None:
selected_tools = [
tool for tool in selected_tools if tool.name == required_tool
@@ -393,7 +460,45 @@ class SIENativeModel(Model):
raise ModelBehaviorError(
f"Required tool is unavailable: {required_tool}"
)
- allow_final = False
+ tool = selected_tools[0]
+ arguments: dict[str, Any] = {}
+ required_text = required_step[1]
+ if required_text is not None:
+ properties = tool.params_json_schema.get("properties")
+ if not isinstance(properties, dict):
+ raise ModelBehaviorError(
+ f"Required tool has no arguments: {required_tool}"
+ )
+ argument_name = next(
+ (
+ name
+ for name in ("query", "question")
+ if _schema_accepts_string(properties.get(name))
+ ),
+ None,
+ )
+ if argument_name is None:
+ raise ModelBehaviorError(
+ f"Required tool cannot bind text argument: {required_tool}"
+ )
+ arguments[argument_name] = required_text
+ call_id = f"sie-call-{uuid4().hex}"
+ return ModelResponse(
+ output=[
+ ResponseFunctionToolCall(
+ id=call_id,
+ call_id=call_id,
+ arguments=json.dumps(
+ arguments, ensure_ascii=False, separators=(",", ":")
+ ),
+ name=required_tool,
+ type="function_call",
+ )
+ ],
+ usage=Usage(requests=0),
+ response_id=None,
+ request_id=None,
+ )
schema = _turn_schema(selected_tools, output_schema, allow_final=allow_final)
result = await self._client.generate(
self.model,
@@ -416,6 +521,15 @@ class SIENativeModel(Model):
wait_for_capacity=True,
provision_timeout_s=self._provision_timeout_s,
)
+ if self._api_calls is not None:
+ self._api_calls.append(
+ api_call_row(
+ stage=self._stage,
+ function="generate",
+ requested_model=self.model,
+ response=result,
+ )
+ )
text = result.get("text")
if not isinstance(text, str):
raise ModelBehaviorError("SIE native generate returned no text")
@@ -458,6 +572,16 @@ class SIENativeModel(Model):
if output_schema is None or output_schema.is_plain_text():
if not isinstance(final, str):
raise ModelBehaviorError("SIE native final text must be a string")
+ if len(final.strip()) < _MIN_PLAIN_TEXT_LENGTH:
+ raise ModelBehaviorError(
+ "SIE native final text was shorter than the required "
+ f"{_MIN_PLAIN_TEXT_LENGTH} characters"
+ )
+ if len(final) > _MAX_PLAIN_TEXT_LENGTH:
+ raise ModelBehaviorError(
+ "SIE native final text exceeded the maximum "
+ f"{_MAX_PLAIN_TEXT_LENGTH} characters"
+ )
final_text = final
else:
final_text = json.dumps(
diff --git a/examples/contract-review-agent/contract_review_agent/runtime.py b/examples/contract-review-agent/contract_review_agent/runtime.py
index 2de9db791..880354323 100644
--- a/examples/contract-review-agent/contract_review_agent/runtime.py
+++ b/examples/contract-review-agent/contract_review_agent/runtime.py
@@ -10,7 +10,7 @@ from typing import Any
from sie_sdk import SIEAsyncClient
-from .native_model import RequiredToolStep, SIENativeModel
+from .native_model import RequiredToolStep, SIENativeModel, api_call_row
def provision_timeout_from(cfg: dict[str, Any]) -> float:
@@ -22,15 +22,19 @@ def model_for(
model_id: str,
client: SIEAsyncClient,
*,
+ stage: str,
provision_timeout_s: float,
required_tool_sequence: tuple[RequiredToolStep, ...] = (),
+ api_calls: list[dict[str, Any]] | None = None,
) -> SIENativeModel:
"""Bind one SIE catalog model to the Agents SDK native model interface."""
return SIENativeModel(
model_id,
client,
+ stage=stage,
provision_timeout_s=provision_timeout_s,
required_tool_sequence=required_tool_sequence,
+ api_calls=api_calls,
)
@@ -110,6 +114,8 @@ class AppContext:
contract_text: str
scan_path: str
db_path: str
+ obligation_counterparty: str | None = None
+ api_calls: list[dict[str, Any]] = field(default_factory=list)
reasoning_agent: Any = None
clause_cache: dict[str, Any] = field(default_factory=dict)
@@ -118,6 +124,27 @@ class AppContext:
return provision_timeout_from(self.cfg)
+def record_api_call(
+ app: AppContext,
+ sie_fn: str,
+ requested_model: str,
+ result: Any,
+ *,
+ stage: str,
+) -> None:
+ """Record only non-payload response metadata for checked run evidence."""
+ rows = result if isinstance(result, list) else [result]
+ response = next((row for row in rows if isinstance(row, dict)), {})
+ app.api_calls.append(
+ api_call_row(
+ stage=stage,
+ function=sie_fn,
+ requested_model=requested_model,
+ response=response,
+ )
+ )
+
+
def _data_uri_image(value: str) -> tuple[bytes, str]:
if not value.startswith("data:image/") or ";base64," not in value:
raise ValueError("Native generation accepts inline image data, not remote URLs")
@@ -191,6 +218,7 @@ async def instruct_once(
model: str,
messages: list[dict[str, Any]],
*,
+ stage: str,
max_tokens: int = 512,
temperature: float = 0.0,
timeout_s: float | None = None,
@@ -216,6 +244,7 @@ async def instruct_once(
if timeout_s is not None
else await call
)
+ record_api_call(app, "generate", model, result, stage=stage)
return _generation_result(result, time.monotonic() - started)
@@ -224,6 +253,7 @@ async def prompt_once(
model: str,
prompt: str,
*,
+ stage: str,
max_tokens: int = 256,
temperature: float = 0.0,
stop: list[str] | None = None,
@@ -239,4 +269,5 @@ async def prompt_once(
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(app, "generate", model, result, stage=stage)
return _generation_result(result, time.monotonic() - started)
diff --git a/examples/contract-review-agent/contract_review_agent/tools.py b/examples/contract-review-agent/contract_review_agent/tools.py
index 245974149..1bcb0664d 100644
--- a/examples/contract-review-agent/contract_review_agent/tools.py
+++ b/examples/contract-review-agent/contract_review_agent/tools.py
@@ -12,14 +12,44 @@ import base64
import re
import sqlite3
import time
+from collections import Counter
from pathlib import Path
+from typing import Literal
import numpy as np
from agents import RunContextWrapper, Runner, function_tool
+from pydantic import BaseModel, Field
from sie_sdk import Item
from .data.make_sample import SCHEMA_DDL, TODAY
-from .runtime import AppContext, GenResult, instruct_once, prompt_once
+from .runtime import AppContext, GenResult, instruct_once, prompt_once, record_api_call
+
+COMMERCIAL_FACTS_QUERY = (
+ "governing law, exclusivity, term, letter of credit, purchase minimum, "
+ "and reporting obligations"
+)
+
+
+class ClauseRiskFinding(BaseModel):
+ clause: str = Field(pattern=r"^Section \d+(?:\.\d+)+$")
+ issue: str = Field(
+ min_length=1,
+ max_length=400,
+ description=(
+ "Current source-grounded clause mechanics and resulting risk; do not "
+ "describe a proposed redline as existing contract language"
+ ),
+ )
+ severity: Literal["low", "medium", "high"]
+ suggested_redline: str = Field(
+ min_length=1,
+ max_length=400,
+ description="A proposed change, kept distinct from current clause mechanics",
+ )
+
+
+class ClauseRiskAnalysis(BaseModel):
+ risks: list[ClauseRiskFinding] = Field(min_length=1, max_length=8)
def _tok(n: int | None) -> str:
@@ -30,6 +60,29 @@ def _tps(res: GenResult) -> str:
return f"{res.tokens_per_s:.0f} tok/s" if res.tokens_per_s else "—"
+def _validated_clause_risk_output(value: object, source: str) -> str:
+ output = str(value).strip()
+ if len(output) < 256:
+ raise RuntimeError("Clause-risk analysis returned an incomplete response")
+ cited_sections = set(re.findall(r"\bSection\s+(\d+(?:\.\d+)+)\b", output))
+ source_sections = set(re.findall(r"\b(\d+(?:\.\d+)+)\b", source))
+ if not cited_sections or not cited_sections <= source_sections:
+ unexpected = sorted(cited_sections - source_sections)
+ raise RuntimeError(
+ "Clause-risk analysis must cite only exact sections from retrieved "
+ f"clauses; unexpected sections: {unexpected}"
+ )
+ return output
+
+
+def _format_clause_risk_analysis(analysis: ClauseRiskAnalysis) -> str:
+ return "\n\n".join(
+ f"{risk.clause} | severity: {risk.severity}\n"
+ f"Issue: {risk.issue}\nSuggested redline: {risk.suggested_redline}"
+ for risk in analysis.risks
+ )
+
+
def _split_clauses(text: str, target: int = 900) -> list[str]:
"""Chunk a contract into ~``target``-char passages for retrieval.
@@ -77,6 +130,13 @@ async def _clause_index(
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(
+ app,
+ "encode",
+ embed_model,
+ results,
+ stage="search_clauses:index",
+ )
dt = time.monotonic() - t0
matrix = np.vstack([np.asarray(r["dense"], dtype=np.float32) for r in results])
app.ledger.record(
@@ -98,8 +158,9 @@ async def _clause_index(
# ──────────────────────────────────────────────────────────────────────────
@function_tool(failure_error_function=None)
async def classify_document(ctx: RunContextWrapper[AppContext]) -> str:
- """Classify the contract under review as MSA, NDA, SOW, or Other, with a
- one-line reason. A fast first-pass triage over the loaded contract."""
+ """Classify the contract under review as MSA, NDA, SOW, Distributor
+ Agreement, or Other, with a one-line reason. A fast first-pass triage over
+ the loaded contract."""
app = ctx.context
model = app.cfg["models"]["triage"]
res = await instruct_once(
@@ -108,11 +169,16 @@ async def classify_document(ctx: RunContextWrapper[AppContext]) -> str:
[
{
"role": "system",
- "content": "You label legal documents. Reply with the type only "
- "(MSA, NDA, SOW, or Other) followed by a short reason.",
+ "content": (
+ "You label legal documents. Reply with exactly one type "
+ "(MSA, NDA, SOW, Distributor Agreement, or Other) followed by "
+ "a short reason. A document titled Distributor Agreement is a "
+ "Distributor Agreement, not an MSA."
+ ),
},
{"role": "user", "content": app.contract_text[:1500]},
],
+ stage="classify_document",
max_tokens=60,
)
app.ledger.record(
@@ -125,7 +191,9 @@ async def classify_document(ctx: RunContextWrapper[AppContext]) -> str:
got=_tok(res.completion_tokens),
throughput=_tps(res),
)
- return res.text.strip()
+ result = res.text.strip()
+ app.clause_cache["classification_result"] = result
+ return result
@function_tool(failure_error_function=None)
@@ -142,7 +210,14 @@ async def read_signature_page(ctx: RunContextWrapper[AppContext], question: str)
[
{
"role": "system",
- "content": "You are a meticulous contracts paralegal. Answer only from what is visible in the image.",
+ "content": (
+ "You are a meticulous contracts paralegal. Answer only from what "
+ "is visible in the image. Describe only the visible page or image; "
+ "never infer where the full contract ends. Treat a literal `/s/ "
+ "Name` as an explicit signature mark. List partial evidence "
+ "precisely; never replace it with a blanket statement that no "
+ "signatures are present."
+ ),
},
{
"role": "user",
@@ -155,6 +230,7 @@ async def read_signature_page(ctx: RunContextWrapper[AppContext], question: str)
],
},
],
+ stage="read_signature_page",
max_tokens=220,
)
app.ledger.record(
@@ -171,11 +247,33 @@ async def read_signature_page(ctx: RunContextWrapper[AppContext], question: str)
@function_tool(failure_error_function=None)
-async def analyze_clause_risks(ctx: RunContextWrapper[AppContext], clauses: str) -> str:
- """Delegate deep legal risk analysis of specific clauses to a specialist
- reasoning agent (the largest model). Pass the clause text to analyze; get
- back per-clause issues with severity and suggested redlines."""
+async def analyze_clause_risks(ctx: RunContextWrapper[AppContext]) -> str:
+ """Analyze the clauses returned by the required retrieval steps."""
app = ctx.context
+ search_results = app.clause_cache.get("search_results")
+ if not isinstance(search_results, dict) or not search_results:
+ raise RuntimeError("Clause-risk analysis requires saved search results")
+ clause_topics: dict[str, list[str]] = {}
+ for query, clauses in search_results.items():
+ if (
+ not isinstance(query, str)
+ or not query.strip()
+ or not isinstance(clauses, list)
+ or any(
+ not isinstance(clause, str) or not clause.strip() for clause in clauses
+ )
+ ):
+ raise RuntimeError(
+ "Clause-risk search results must map string queries to lists of strings"
+ )
+ for clause in clauses:
+ clause_topics.setdefault(clause, []).append(query)
+ if not clause_topics:
+ raise RuntimeError("Clause-risk analysis found no saved clauses")
+ clauses = "\n\n===\n\n".join(
+ f"Topics: {', '.join(topics)}\n\n{clause}"
+ for clause, topics in clause_topics.items()
+ )
model = app.cfg["models"]["reasoning"]
t0 = time.monotonic()
result = await Runner.run(
@@ -197,7 +295,11 @@ async def analyze_clause_risks(ctx: RunContextWrapper[AppContext], clauses: str)
got=_tok(out_tok),
throughput=f"{out_tok / dt:.0f} tok/s" if out_tok and dt > 0 else "—",
)
- return str(result.final_output)
+ analysis = result.final_output_as(ClauseRiskAnalysis)
+ app.clause_cache["risk_analysis"] = analysis.model_dump(mode="json")
+ return _validated_clause_risk_output(
+ _format_clause_risk_analysis(analysis), clauses
+ )
# ──────────────────────────────────────────────────────────────────────────
@@ -205,9 +307,9 @@ async def analyze_clause_risks(ctx: RunContextWrapper[AppContext], clauses: str)
# ──────────────────────────────────────────────────────────────────────────
@function_tool(failure_error_function=None)
async def ocr_signature_page(ctx: RunContextWrapper[AppContext]) -> str:
- """OCR the executed signature page (a scanned image) into markdown text.
- Use this to recover who signed, their titles, and the execution date —
- details that exist only on the scan, not in the contract body."""
+ """OCR the supplied signature-page image into markdown text.
+ Use this to recover visible signatories, titles, signature marks, and dates —
+ details that may exist only on the scan, not in the contract body."""
app = ctx.context
model = app.cfg["models"]["ocr"]
t0 = time.monotonic()
@@ -217,6 +319,7 @@ async def ocr_signature_page(ctx: RunContextWrapper[AppContext]) -> str:
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(app, "extract", model, res, stage="ocr_signature_page")
dt = time.monotonic() - t0
entities = res.get("entities") or []
markdown = entities[0]["text"] if entities else "(no text recognized)"
@@ -256,6 +359,7 @@ async def extract_entities(ctx: RunContextWrapper[AppContext]) -> str:
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(app, "extract", model, res, stage="extract_entities")
dt = time.monotonic() - t0
entities = res.get("entities") or []
app.ledger.record(
@@ -275,7 +379,7 @@ async def extract_entities(ctx: RunContextWrapper[AppContext]) -> str:
@function_tool(failure_error_function=None)
async def search_clauses(ctx: RunContextWrapper[AppContext], query: str) -> str:
- """Find the clauses most relevant to a topic (e.g. 'automatic renewal',
+ """Find the clauses most relevant to a topic (e.g. 'renewal mechanics',
'limitation of liability', 'indemnification'). Dense-embedding retrieval
followed by a cross-encoder rerank; returns the top clauses verbatim."""
app = ctx.context
@@ -293,6 +397,13 @@ async def search_clauses(ctx: RunContextWrapper[AppContext], query: str) -> str:
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(
+ app,
+ "encode",
+ embed_model,
+ q,
+ stage="search_clauses:encode",
+ )
qv = np.asarray(q["dense"], dtype=np.float32)
denom = np.linalg.norm(matrix, axis=1) * (np.linalg.norm(qv) + 1e-9) + 1e-9
sims = (matrix @ qv) / denom
@@ -307,6 +418,13 @@ async def search_clauses(ctx: RunContextWrapper[AppContext], query: str) -> str:
wait_for_capacity=True,
provision_timeout_s=app.provision_timeout_s,
)
+ record_api_call(
+ app,
+ "score",
+ rerank_model,
+ scored,
+ stage="search_clauses:score",
+ )
dt = time.monotonic() - t0
app.ledger.record(
"Rerank candidate clauses",
@@ -319,6 +437,10 @@ async def search_clauses(ctx: RunContextWrapper[AppContext], query: str) -> str:
)
ranked = sorted(scored["scores"], key=lambda s: s["rank"])[:k_res]
top = [candidates[int(s["item_id"])] for s in ranked]
+ search_results = app.clause_cache.setdefault("search_results", {})
+ if not isinstance(search_results, dict):
+ raise TypeError("Clause search cache has an invalid shape")
+ search_results[query] = top
return "\n\n---\n\n".join(top) if top else "(no relevant clauses found)"
@@ -367,12 +489,35 @@ def _clean_sql(raw: str) -> str:
return sql.strip().rstrip(";").strip()
-def _run_select(db_path: str, sql: str) -> tuple[list[str], list[tuple]]:
+def _run_select(
+ db_path: str, sql: str, params: dict[str, str] | None = None
+) -> tuple[list[str], list[tuple]]:
conn = sqlite3.connect(db_path)
try:
- cur = conn.execute(sql)
+ cur = conn.execute(sql, params or {})
cols = [d[0] for d in cur.description] if cur.description else []
- return cols, cur.fetchmany(50)
+ return cols, cur.fetchall()
+ finally:
+ conn.close()
+
+
+_SCOPED_OBLIGATION_COLUMNS = (
+ "counterparty",
+ "status",
+ "obligation",
+ "due_date",
+ "amount_usd",
+)
+
+
+def _open_obligation_rows(db_path: str, counterparty: str) -> list[tuple]:
+ conn = sqlite3.connect(db_path)
+ try:
+ return conn.execute(
+ "SELECT counterparty, status, obligation, due_date, amount_usd "
+ "FROM obligations WHERE counterparty = ? AND status = 'open'",
+ (counterparty,),
+ ).fetchall()
finally:
conn.close()
@@ -388,9 +533,18 @@ async def query_obligations_db(
app = ctx.context
model = app.cfg["models"]["sql"]
mode = (app.cfg.get("sql") or {}).get("mode", "instruct")
+ scoped_question = question
+ if app.obligation_counterparty:
+ scoped_question += (
+ "\nReturn every row whose counterparty equals the named SQLite parameter "
+ ":counterparty and whose status exactly equals 'open'. Use :counterparty "
+ "in the WHERE clause; do not copy or invent a literal counterparty value. "
+ "Include counterparty, status, obligation, due_date, and amount_usd in "
+ "SELECT. Order by due_date. Do not use LIMIT or a date window."
+ )
if mode == "prompt":
prompt = _SQLCODER_PROMPT.format(
- question=question,
+ question=scoped_question,
schema=SCHEMA_DDL,
today=TODAY,
)
@@ -398,6 +552,7 @@ async def query_obligations_db(
app,
model,
prompt,
+ stage="query_obligations_db",
max_tokens=256,
stop=[";", "```", "\n\n\n"],
)
@@ -414,10 +569,11 @@ async def query_obligations_db(
"role": "user",
"content": _SQL_CHAT_USER.format(
schema=SCHEMA_DDL,
- question=question,
+ question=scoped_question,
),
},
],
+ stage="query_obligations_db",
max_tokens=256,
)
else:
@@ -436,17 +592,54 @@ async def query_obligations_db(
sql = _clean_sql(res.text)
if not sql.lower().startswith("select"):
return f"Generated query was not a SELECT, so it was not run:\n{sql}"
+ sql_params: dict[str, str] | None = None
+ if app.obligation_counterparty:
+ if ":counterparty" not in sql:
+ return (
+ "Generated query omitted the required bound :counterparty parameter."
+ f"\nSQL: {sql}"
+ )
+ sql_params = {"counterparty": app.obligation_counterparty}
try:
- cols, rows = _run_select(app.db_path, sql)
- except sqlite3.Error as exc:
+ cols, rows = _run_select(app.db_path, sql, sql_params)
+ except (sqlite3.Error, sqlite3.Warning) as exc:
return f"SQL error: {exc}\nQuery was:\n{sql}"
+ if app.obligation_counterparty:
+ required_scope_columns = set(_SCOPED_OBLIGATION_COLUMNS)
+ missing_scope_columns = required_scope_columns - set(cols)
+ if missing_scope_columns:
+ return (
+ "Generated query omitted columns required for exact contract "
+ f"scoping: {', '.join(sorted(missing_scope_columns))}.\nSQL: {sql}"
+ )
+ scope_indexes = [cols.index(column) for column in _SCOPED_OBLIGATION_COLUMNS]
+ returned_scope_rows = [
+ tuple(row[index] for index in scope_indexes) for row in rows
+ ]
+ expected_scope_rows = _open_obligation_rows(
+ app.db_path, app.obligation_counterparty
+ )
+ returned_scope = Counter(returned_scope_rows)
+ expected_scope = Counter(expected_scope_rows)
+ if returned_scope != expected_scope:
+ scope_difference = (returned_scope - expected_scope) + (
+ expected_scope - returned_scope
+ )
+ return (
+ "Generated query returned incomplete contract scope: expected "
+ f"{len(expected_scope_rows)} open rows, got "
+ f"{len(returned_scope_rows)}; differing rows: "
+ f"{dict(scope_difference)}.\nSQL: {sql}"
+ )
if not rows:
return f"Query ran but returned no rows.\nSQL: {sql}"
header = " | ".join(cols)
body = "\n".join(
" | ".join("" if v is None else str(v) for v in row) for row in rows
)
- return f"SQL: {sql}\n\n{header}\n{body}"
+ result = f"SQL: {sql}\n\n{header}\n{body}"
+ app.clause_cache["obligations_result"] = result
+ return result
ALL_TOOLS = [
diff --git a/examples/contract-review-agent/pyproject.toml b/examples/contract-review-agent/pyproject.toml
index bfe8117a2..3ef16eee8 100644
--- a/examples/contract-review-agent/pyproject.toml
+++ b/examples/contract-review-agent/pyproject.toml
@@ -11,7 +11,7 @@ dependencies = [
"openai-agents>=0.13,<0.14",
# openai 2.45 adds a required usage-detail field that agents 0.13 does not populate.
"openai>=2.26,<2.45",
- "sie-sdk>=0.6.24,<0.7",
+ "sie-sdk==0.7.1",
"httpx>=0.27",
"numpy>=1.26",
"pydantic>=2.7",
diff --git a/examples/contract-review-agent/tests/test_evidence.py b/examples/contract-review-agent/tests/test_evidence.py
new file mode 100644
index 000000000..9a8df8110
--- /dev/null
+++ b/examples/contract-review-agent/tests/test_evidence.py
@@ -0,0 +1,841 @@
+from __future__ import annotations
+
+import json
+from datetime import date
+from pathlib import Path
+
+import pytest
+
+import contract_review_agent.evidence as evidence_module
+from contract_review_agent.app import (
+ ContractReview,
+ PublishedReviewRepair,
+ RiskFlag,
+ _align_published_signature_recommendation,
+ _published_findings_narrative_is_bounded,
+ _render_grounded_published_findings,
+ _unsupported_published_sections,
+)
+from contract_review_agent.data.fetch_contracts import _signature_page_text
+from contract_review_agent.evidence import write_run_record
+from contract_review_agent.runtime import Ledger
+from contract_review_agent.tools import ClauseRiskAnalysis
+
+ROOT = Path(__file__).resolve().parents[1]
+MODELS = {
+ "triage": "model-triage",
+ "orchestrator": "model-orchestrator",
+ "vision": "model-vision",
+ "reasoning": "model-reasoning",
+ "sql": "model-sql",
+ "guard": "model-guard",
+ "ocr": "model-ocr",
+ "embed": "model-embed",
+ "rerank": "model-rerank",
+ "entities": "model-entities",
+}
+CFG = {"models": MODELS}
+
+
+def test_published_section_allowlist_rejects_unrelated_citations() -> None:
+ assert (
+ _unsupported_published_sections(
+ "Financial terms (Section 1.6); governing law (Section 6.9)."
+ )
+ == set()
+ )
+ assert _unsupported_published_sections("Financial terms are in Section 6.7.") == {
+ "6.7"
+ }
+ assert _unsupported_published_sections("Risks are in Sections 6.7 and 1.3.") == {
+ "6.7"
+ }
+ assert _unsupported_published_sections("Risks are in Sections 1.3 and 6.7.") == {
+ "6.7"
+ }
+
+
+def test_optional_findings_repairs_precede_synthesis_in_provenance() -> None:
+ stages = [
+ call["stage"]
+ for call in evidence_module._expected_call_sequence(
+ CFG, include_citation_repair=True, include_synthesis_repair=True
+ )
+ ]
+ assert stages[-4:] == [
+ "investigator_report",
+ "investigator_report:citation_repair",
+ "synthesize_review",
+ "synthesize_review:repair",
+ ]
+
+
+def test_published_findings_narrative_must_be_complete_and_bounded() -> None:
+ complete = "A" * 1_799 + "."
+ assert _published_findings_narrative_is_bounded(complete)
+ assert _published_findings_narrative_is_bounded("A" * 1_797 + ".**")
+ assert not _published_findings_narrative_is_bounded("A" * 1_799)
+ assert _published_findings_narrative_is_bounded("A" * 2_999 + ".")
+ assert not _published_findings_narrative_is_bounded("A" * 3_000 + ".")
+
+
+def test_grounded_published_findings_are_complete_and_bounded() -> None:
+ risks = json.loads(
+ (ROOT / "verified-run" / "review.json").read_text(encoding="utf-8")
+ )["risk_flags"]
+ findings = _render_grounded_published_findings(
+ ClauseRiskAnalysis.model_validate({"risks": risks}),
+ as_of_date=date(2026, 8, 10),
+ )
+
+ assert _published_findings_narrative_is_bounded(findings)
+ assert "June 30, 2026 quarterly compliance attestation is overdue" in findings
+ assert "July 1, 2026 annual subscription or license fee is overdue" in findings
+ assert "September 15, 2026 renewal or non-renewal notice is upcoming" in findings
+ assert evidence_module._published_investigator_findings_are_complete(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, findings
+ )
+
+
+def test_published_signature_recommendation_replaces_execution_overclaim() -> None:
+ recommendation = _align_published_signature_recommendation(
+ "The agreement is not fully executed. Negotiate the renewal notice window."
+ )
+
+ assert "not fully executed" not in recommendation
+ assert "not established from the visible signature page" in recommendation
+ assert "Negotiate the renewal notice window." in recommendation
+
+
+def test_cuad_scan_renders_signature_block_or_document_tail() -> None:
+ text = "title\nbody\nIn witness whereof\nBy: /s/ Example"
+ assert _signature_page_text(text) == "In witness whereof\nBy: /s/ Example"
+ assert _signature_page_text("0123456789") == "0123456789"
+ tail = _signature_page_text(
+ "\n".join([*(f"contract line {index}" for index in range(60)), "By: /s/ Tail"])
+ )
+ assert len(tail.splitlines()) == 46
+ assert tail.endswith("By: /s/ Tail")
+ unicode_prefix = "Straße before the marker\nSIGNATURE PAGE\nBy: /s/ Example"
+ assert _signature_page_text(unicode_prefix) == ("SIGNATURE PAGE\nBy: /s/ Example")
+
+
+def _api_calls() -> list[dict[str, object]]:
+ return [
+ {
+ **expected,
+ "runtime_model": expected["requested_model"],
+ "request_id": f"request-{index}",
+ "rate_book_version": "rate-book-1",
+ "credits_debited": 1,
+ "execution_identity_sha256": "a" * 64,
+ }
+ for index, expected in enumerate(
+ evidence_module._expected_call_sequence(CFG), start=1
+ )
+ ]
+
+
+def _review() -> ContractReview:
+ return ContractReview(
+ document_type="agreement",
+ parties=["Buyer", "Seller"],
+ effective_date="unknown",
+ renewal_terms="annual",
+ governing_law="unknown",
+ executed=False,
+ key_obligations=["Give notice"],
+ risk_flags=[
+ RiskFlag(
+ clause="Section 1.1 (Renewal)",
+ issue="No early exit",
+ severity="high",
+ suggested_redline="Add a termination right.",
+ )
+ ],
+ recommendation="Add a termination right.",
+ )
+
+
+def _published_repair() -> PublishedReviewRepair:
+ return PublishedReviewRepair(
+ document_type="agreement",
+ parties=["Buyer", "Seller"],
+ effective_date="unknown",
+ governing_law="Illinois",
+ executed=False,
+ illinois_exclusive_distributorship=True,
+ initial_term_years=10,
+ initial_term_starts_on_last_sample_delivery=True,
+ renewal_period_years=1,
+ renewal_max_additional_years=10,
+ renewal_requires_distributor_compliance=True,
+ letter_of_credit_amount_usd=500_000,
+ letter_of_credit_is_irrevocable=True,
+ monthly_purchase_order_amount_usd=250_000,
+ first_product_year_unit_minimum=375,
+ quarterly_reports_during_first_year=True,
+ )
+
+
+def test_published_repair_assembles_every_named_obligation() -> None:
+ repair = _published_repair()
+ risk_flags = [
+ RiskFlag(
+ clause="Section 1.3",
+ issue="Missing notice mechanics",
+ severity="high",
+ suggested_redline="Add explicit notice mechanics.",
+ )
+ ]
+
+ review = repair.to_contract_review(
+ risk_flags=risk_flags,
+ recommendation="review",
+ )
+ assert review.document_type == "Distributor Agreement"
+ assert review.parties == [
+ "Electric City Corp. (Company)",
+ "Electric City of Illinois L.L.C. (Distributor)",
+ ]
+ assert review.renewal_terms == (
+ "Conditional annual renewal for 1-year terms up to 10 additional years if "
+ "Distributor complies with all terms of the Agreement (Section 1.3)"
+ )
+ assert review.key_obligations == [
+ "Exclusive distributorship within the Illinois Market (Section 1.1)",
+ "Ten-year initial term beginning on delivery of the last Sample (Section 1.3)",
+ review.renewal_terms,
+ (
+ "Distributor must issue an irrevocable $500,000 letter of credit to "
+ "Company (Section 1.6)"
+ ),
+ (
+ "Company must receive a $250,000 purchase order from Distributor by the "
+ "first day of each month (Section 1.6)"
+ ),
+ (
+ "Distributor must purchase at least 375 units during the first Product "
+ "Year (Section 1.6)"
+ ),
+ (
+ "Distributor must submit written reports each quarter during the first "
+ "year of the Term (Section 4.1)"
+ ),
+ ]
+ assert review.risk_flags == risk_flags
+ assert "risk_flags" not in PublishedReviewRepair.model_json_schema()["properties"]
+
+
+ ("field_name", "value", "match"),
+ [
+ ("renewal_period_years", 2, "renewal period"),
+ ("renewal_max_additional_years", 9, "maximum renewal duration"),
+ ],
+)
+def test_published_repair_rejects_changed_renewal_durations(
+ field_name: str,
+ value: int,
+ match: str,
+) -> None:
+ repair = _published_repair().model_copy(update={field_name: value})
+
+ with pytest.raises(ValueError, match=match):
+ repair.to_contract_review(risk_flags=[], recommendation="review")
+
+
+def _ledger(verdict: str = "no") -> Ledger:
+ ledger = Ledger()
+ ledger.record(
+ "Safety guardrail (granite-guardian)",
+ MODELS["guard"],
+ "generate",
+ got=verdict,
+ )
+ return ledger
+
+
+def _write_record(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+ *,
+ run_id: str,
+ api_calls: list[dict[str, object]],
+ label: str = "example",
+ findings: str = "Execution is not established from the visible signature page.",
+) -> Path:
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ scan = tmp_path / "scan.png"
+ database = tmp_path / "obligations.db"
+ scan.write_bytes(b"scan")
+ database.write_bytes(b"database")
+ return write_run_record(
+ run_id=run_id,
+ endpoint="https://api.superlinked.com",
+ cfg=CFG,
+ label=label,
+ contract_text="1.1 Renewal. Annual renewal terms.",
+ scan_path=str(scan),
+ db_path=str(database),
+ findings=findings,
+ review=_review(),
+ ledger=_ledger(),
+ api_calls=api_calls,
+ wall_s=1,
+ )
+
+
[email protected]("run_id", ["../escape", "nested/run", "nested\\run", ".."])
+def test_write_run_record_rejects_unsafe_run_id(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+ run_id: str,
+) -> None:
+ with pytest.raises(ValueError, match="one safe directory name"):
+ _write_record(tmp_path, monkeypatch, run_id=run_id, api_calls=[])
+
+ assert not (tmp_path / "runs").exists()
+
+
+def test_run_destination_preflight_rejects_existing_run(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ destination = tmp_path / "runs" / "existing"
+ destination.mkdir(parents=True)
+
+ with pytest.raises(FileExistsError, match="Run evidence already exists"):
+ evidence_module.ensure_run_destination_available("existing")
+
+
+def test_write_run_record_rejects_missing_request_provenance(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ api_calls[-1]["execution_identity_sha256"] = None
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+ runs_dir = tmp_path / "runs"
+ assert not (runs_dir / "safe-run").exists()
+ assert list(runs_dir.iterdir()) == []
+
+ run_dir = _write_record(
+ tmp_path,
+ monkeypatch,
+ run_id="safe-run",
+ api_calls=_api_calls(),
+ )
+ assert run_dir == runs_dir / "safe-run"
+ assert (run_dir / "manifest.json").is_file()
+
+
+def test_write_run_record_rejects_incomplete_published_findings_before_reservation(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ with pytest.raises(
+ RuntimeError, match="Published investigator findings are incomplete"
+ ):
+ _write_record(
+ tmp_path,
+ monkeypatch,
+ run_id="safe-run",
+ api_calls=_api_calls(),
+ label=evidence_module.PUBLISHED_CONTRACT_LABEL,
+ findings="Incomplete findings.",
+ )
+
+ assert not (tmp_path / "runs").exists()
+
+
+def test_write_run_record_rejects_missing_runtime_model(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ api_calls[-1]["runtime_model"] = None
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+ assert list((tmp_path / "runs").iterdir()) == []
+
+
+def test_write_run_record_rejects_substituted_runtime_model(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ api_calls[-1]["runtime_model"] = "model-other"
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+ assert list((tmp_path / "runs").iterdir()) == []
+
+
+def test_write_run_record_allows_unreported_encode_and_extract_runtime_models(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ for call in api_calls:
+ if call["function"] in evidence_module.RUNTIME_MODEL_OPTIONAL_FUNCTIONS:
+ call["runtime_model"] = None
+
+ run_dir = _write_record(
+ tmp_path,
+ monkeypatch,
+ run_id="safe-run",
+ api_calls=api_calls,
+ )
+
+ assert (run_dir / "manifest.json").is_file()
+
+
+def test_verified_api_calls_have_supported_runtime_model_provenance() -> None:
+ api_calls = json.loads(
+ (ROOT / "verified-run" / "api-calls.json").read_text(encoding="utf-8")
+ )
+
+ assert all(evidence_module._runtime_model_is_valid(call) for call in api_calls)
+
+
+def test_write_run_record_rejects_duplicate_request_ids(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ api_calls[-1]["request_id"] = api_calls[-2]["request_id"]
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+
+def test_published_risk_target_requires_three_high_and_one_medium() -> None:
+ review = _review()
+ review.risk_flags = [
+ RiskFlag(
+ clause=f"Section {section}",
+ issue=f"Grounded risk in {section}",
+ severity=severity,
+ suggested_redline=f"Clarify Section {section}.",
+ )
+ for section, severity in evidence_module.PUBLISHED_RISK_TARGETS.items()
+ ]
+
+ assert evidence_module._published_risk_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+ review.risk_flags[0].severity = "medium"
+ assert not evidence_module._published_risk_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+
+def test_published_fact_target_preserves_source_grounded_commercial_details() -> None:
+ review = _review()
+ review.document_type = "Distributor Agreement"
+ review.parties = ["Electric City Corp.", "Electric City of Illinois LLC"]
+ review.renewal_terms = (
+ "If Distributor complies with the Agreement, annual renewal is available for "
+ "up to ten additional years (Section 1.3)."
+ )
+ review.governing_law = "Illinois"
+ review.key_obligations = [
+ "Distributor must issue a $500,000 letter of credit (Section 1.6).",
+ "Company must receive a $250,000 purchase order monthly (Section 1.6).",
+ "Distributor has a 375-unit first-year minimum (Section 1.6).",
+ "Distributor has exclusive rights in Illinois (Section 1.1).",
+ "The ten-year term starts upon delivery of the last Sample (Section 1.3).",
+ "Distributor reports quarterly during the first year (Section 4.1).",
+ ]
+
+ assert evidence_module._published_fact_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+ review.renewal_terms = review.renewal_terms.replace("annual", "one (1) year")
+ review.renewal_terms = review.renewal_terms.replace("ten", "10")
+ assert evidence_module._published_fact_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+ review.key_obligations[0] = "Distributor must issue a 500k LC (Section 1.6)."
+ assert evidence_module._published_fact_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+ review.key_obligations[0] = review.key_obligations[0].replace("500k", "50k")
+ assert not evidence_module._published_fact_coverage_is_preserved(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, review
+ )
+
+
+def test_risk_claim_gate_rejects_unsupported_automatic_renewal_variants() -> None:
+ review = _review()
+ review.risk_flags[0].issue = "The clause implies automatic annual renewals."
+ source_evidence = {
+ "risk_clauses": [
+ {
+ "section": "1.1",
+ "excerpt": "1.1 Renewal is available if Distributor complies.",
+ }
+ ]
+ }
+
+ assert not evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, "example"
+ )
+
+ review.risk_flags[
+ 0
+ ].issue = (
+ "It is unclear whether the term automatically renews or requires an election."
+ )
+ assert evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, "example"
+ )
+
+
+def test_risk_claim_gate_accepts_distinct_notice_and_cure_periods() -> None:
+ review = _review()
+ review.risk_flags[0].clause = "Section 4.2"
+ review.risk_flags[0].issue = (
+ "The termination notice is 30 days, while curable defaults have a separate "
+ "commercially reasonable cure period."
+ )
+ source_evidence = {
+ "risk_clauses": [
+ {
+ "section": "4.2",
+ "excerpt": (
+ "4.2 Termination requires 30 days' notice; material defaults may "
+ "be cured within a commercially reasonable time."
+ ),
+ }
+ ]
+ }
+
+ assert evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, evidence_module.PUBLISHED_CONTRACT_LABEL
+ )
+
+
+def test_risk_claim_gate_requires_correct_repurchase_option_and_exception() -> None:
+ review = _review()
+ review.risk_flags[0].clause = "Section 4.4"
+ source_evidence = {
+ "risk_clauses": [
+ {
+ "section": "4.4",
+ "excerpt": (
+ "4.4 Company has the option to repurchase unopened Products; "
+ "provided that if Company terminates without cause, Company shall "
+ "repurchase them."
+ ),
+ }
+ ]
+ }
+ review.risk_flags[0].issue = (
+ "Company has a general repurchase option, with a mandatory repurchase "
+ "exception when Company terminates without cause, leaving inventory exposure "
+ "after other expirations or terminations."
+ )
+ assert evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, evidence_module.PUBLISHED_CONTRACT_LABEL
+ )
+
+ review.risk_flags[0].issue = (
+ "Company has the repurchase option only if it terminates without cause, and "
+ "the mandatory exception is unclear."
+ )
+ assert not evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, evidence_module.PUBLISHED_CONTRACT_LABEL
+ )
+
+
+def test_risk_claim_gate_does_not_apply_published_terms_to_other_contracts() -> None:
+ review = _review()
+ review.risk_flags[0].clause = "Section 4.4"
+ review.risk_flags[0].issue = "The source-specific repurchase wording is unclear."
+ source_evidence = {
+ "risk_clauses": [
+ {
+ "section": "4.4",
+ "excerpt": "4.4 A contract-specific repurchase term.",
+ }
+ ]
+ }
+
+ assert evidence_module._risk_claims_are_source_supported(
+ review, source_evidence, "other-contract"
+ )
+
+
+def test_signature_scope_rejects_a_review_level_execution_overclaim() -> None:
+ review = _review()
+ review.recommendation = "The agreement is not executed."
+
+ assert not evidence_module._signature_scope_is_supported(
+ "Execution is not established from the visible signature page.", review
+ )
+
+
+def test_published_investigator_findings_require_complete_marketing_evidence() -> None:
+ findings = (
+ "Distributor Agreement; Section 1.3, Section 1.6, Section 4.2, "
+ "Section 4.4, Section 5.3, and "
+ "Section 6.9; not at fault; 2026-06-30; 2026-07-01; 2026-09-15; "
+ "$500,000 letter of credit; $250,000 monthly purchase order; 375 units; "
+ "quarterly compliance attestation; annual subscription fee; renewal notice; "
+ "Deadline status as of August 10, 2026: June 30, 2026 quarterly compliance "
+ "attestation is overdue; July 1, 2026 annual subscription or license fee is "
+ "overdue; September 15, 2026 renewal or non-renewal notice is upcoming. "
+ "The visible signature page shows "
+ "By: /s/ Joseph Marino and a Jim Stump signatory block, but no execution "
+ "dates. Execution is not established from the visible signature page."
+ )
+ assert evidence_module._published_investigator_findings_are_complete(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, findings
+ )
+
+ assert not evidence_module._published_investigator_findings_are_complete(
+ evidence_module.PUBLISHED_CONTRACT_LABEL,
+ findings.replace("Section 5.3", "Indemnification"),
+ )
+ assert not evidence_module._published_investigator_findings_are_complete(
+ evidence_module.PUBLISHED_CONTRACT_LABEL,
+ findings.replace("By: /s/ Joseph Marino", "No actual signatures are present"),
+ )
+ assert not evidence_module._published_investigator_findings_are_complete(
+ evidence_module.PUBLISHED_CONTRACT_LABEL,
+ findings.replace("attestation is overdue", "attestation is upcoming"),
+ )
+
+
+def test_published_investigator_primary_narrative_must_be_bounded() -> None:
+ narrative = "A" * 1_799 + "."
+ findings = (
+ narrative
+ + "\n\nObligations and deadlines (validated exact-contract rows):\n"
+ + "2026-06-30 | quarterly compliance"
+ )
+
+ assert evidence_module._published_investigator_narrative_is_bounded(
+ evidence_module.PUBLISHED_CONTRACT_LABEL, findings
+ )
+ assert not evidence_module._published_investigator_narrative_is_bounded(
+ evidence_module.PUBLISHED_CONTRACT_LABEL,
+ "Too short.\n\nObligations and deadlines "
+ "(validated exact-contract rows):\n2026-06-30",
+ )
+
+
+def test_write_run_record_rejects_an_unsupported_risk_clause(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = _api_calls()
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ scan = tmp_path / "scan.png"
+ database = tmp_path / "obligations.db"
+ scan.write_bytes(b"scan")
+ database.write_bytes(b"database")
+ review = _review()
+ review.risk_flags[0].clause = "Section 2.1 (Missing)"
+
+ with pytest.raises(RuntimeError, match="matched 0 source sections"):
+ write_run_record(
+ run_id="safe-run",
+ endpoint="https://api.superlinked.com",
+ cfg=CFG,
+ label="example",
+ contract_text="1.1 Renewal. Annual renewal terms.",
+ scan_path=str(scan),
+ db_path=str(database),
+ findings="findings",
+ review=review,
+ ledger=_ledger(),
+ api_calls=api_calls,
+ wall_s=1,
+ )
+
+
+def test_write_run_record_rejects_section_reference_only_in_risk_issue(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ review = _review()
+ review.risk_flags[0].clause = "Renewal clause"
+ review.risk_flags[0].issue = "Section 1.1 has no early exit"
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ scan = tmp_path / "scan.png"
+ database = tmp_path / "obligations.db"
+ scan.write_bytes(b"scan")
+ database.write_bytes(b"database")
+
+ with pytest.raises(RuntimeError, match="no source section reference"):
+ write_run_record(
+ run_id="safe-run",
+ endpoint="https://api.superlinked.com",
+ cfg=CFG,
+ label="example",
+ contract_text="1.1 Renewal. Annual renewal terms.",
+ scan_path=str(scan),
+ db_path=str(database),
+ findings="findings",
+ review=review,
+ ledger=_ledger(),
+ api_calls=_api_calls(),
+ wall_s=1,
+ )
+
+
+def test_write_run_record_rejects_a_delayed_section_number(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ review = _review()
+ review.risk_flags[0].clause = "Section summary 1.1"
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ scan = tmp_path / "scan.png"
+ database = tmp_path / "obligations.db"
+ scan.write_bytes(b"scan")
+ database.write_bytes(b"database")
+
+ with pytest.raises(RuntimeError, match="no source section reference"):
+ write_run_record(
+ run_id="safe-run",
+ endpoint="https://api.superlinked.com",
+ cfg=CFG,
+ label="example",
+ contract_text="1.1 Renewal. Annual renewal terms.",
+ scan_path=str(scan),
+ db_path=str(database),
+ findings="Execution is not established from the visible signature page.",
+ review=review,
+ ledger=_ledger(),
+ api_calls=_api_calls(),
+ wall_s=1,
+ )
+
+
[email protected]("credits_debited", [None, False, "1", -1])
+def test_write_run_record_rejects_invalid_credit_provenance(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+ credits_debited: object,
+) -> None:
+ api_calls = _api_calls()
+ api_calls[-1]["credits_debited"] = credits_debited
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+ assert list((tmp_path / "runs").iterdir()) == []
+
+
+def test_write_run_record_rejects_a_missing_required_stage(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ api_calls = [
+ call for call in _api_calls() if call["stage"] != "search_clauses:index"
+ ]
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ _write_record(tmp_path, monkeypatch, run_id="safe-run", api_calls=api_calls)
+
+ runs_dir = tmp_path / "runs"
+ assert not (runs_dir / "safe-run").exists()
+ assert list(runs_dir.iterdir()) == []
+
+
+def test_write_run_record_rejects_a_malformed_guardrail_verdict(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(evidence_module, "PROJECT_ROOT", tmp_path)
+ scan = tmp_path / "scan.png"
+ database = tmp_path / "obligations.db"
+ scan.write_bytes(b"scan")
+ database.write_bytes(b"database")
+
+ with pytest.raises(RuntimeError, match="Production evidence checks failed"):
+ write_run_record(
+ run_id="safe-run",
+ endpoint="https://api.superlinked.com",
+ cfg=CFG,
+ label="example",
+ contract_text="1.1 Renewal. Annual renewal terms.",
+ scan_path=str(scan),
+ db_path=str(database),
+ findings="findings",
+ review=_review(),
+ ledger=_ledger("No_of_turn>"),
+ api_calls=_api_calls(),
+ wall_s=1,
+ )
+
+ runs_dir = tmp_path / "runs"
+ assert not (runs_dir / "safe-run").exists()
+ assert list(runs_dir.iterdir()) == []
+
+
+def test_model_text_normalization_is_formatting_only() -> None:
+ assert evidence_module._normalize_model_text("first \r\nsecond\t\r\n") == (
+ "first\nsecond\n"
+ )
+
+
+def test_verified_run_manifest_pins_complete_passing_evidence() -> None:
+ run_dir = ROOT / "verified-run"
+ manifest = json.loads((run_dir / "manifest.json").read_text(encoding="utf-8"))
+ entries = manifest["artifacts"]
+ paths = [entry["path"] for entry in entries]
+ assert len(paths) == len(set(paths)) == 6
+ artifacts = {entry["path"]: entry["sha256"] for entry in entries}
+ recorded_files = {
+ path.relative_to(run_dir).as_posix()
+ for path in run_dir.rglob("*")
+ if path.is_file() and path != run_dir / "manifest.json"
+ }
+ assert set(artifacts) == recorded_files
+
+ assert set(artifacts) == {
+ "api-calls.json",
+ "evaluation.json",
+ "investigator-findings.txt",
+ "ledger.json",
+ "review.json",
+ "source-evidence.json",
+ }
+ for relative_path, expected_hash in artifacts.items():
+ assert evidence_module._sha256(run_dir / relative_path) == expected_hash
+
+ evaluation = json.loads((run_dir / "evaluation.json").read_text(encoding="utf-8"))
+ assert evaluation["passed"] is True
+ assert evaluation["checks"]["api_calls_have_request_provenance"] is True
+ assert evaluation["checks"]["api_call_request_ids_unique"] is True
+ assert evaluation["checks"]["risk_clauses_supported_by_source"] is True
+ assert evaluation["checks"]["signature_image_scope_not_overclaimed"] is True
+ source_evidence = json.loads(
+ (run_dir / "source-evidence.json").read_text(encoding="utf-8")
+ )
+ assert (
+ source_evidence["contract_text_sha256"]
+ == manifest["source_inputs"][0]["sha256"]
+ )
+ recorded_review = json.loads((run_dir / "review.json").read_text(encoding="utf-8"))
+ assert manifest["source_inputs"][0]["parties"] == recorded_review["parties"]
+ sections = {row["section"] for row in source_evidence["risk_clauses"]}
+ assert {"1.3", "5.3"} <= sections
+ assert evaluation["checks"]["required_api_call_sequence"] is True
+ assert evaluation["observed_call_sequence"] == evaluation["expected_call_sequence"]
diff --git a/examples/contract-review-agent/tests/test_native_model.py b/examples/contract-review-agent/tests/test_native_model.py
index 2961786dd..4c35e5090 100644
--- a/examples/contract-review-agent/tests/test_native_model.py
+++ b/examples/contract-review-agent/tests/test_native_model.py
@@ -2,6 +2,8 @@ from __future__ import annotations
import asyncio
import json
+import sqlite3
+from types import SimpleNamespace
from typing import Any
import pytest
@@ -18,12 +20,60 @@ from agents.tool_context import ToolContext
from pydantic import BaseModel
from contract_review_agent import tools as contract_tools
-from contract_review_agent.native_model import SIENativeModel, _next_required_tool
-from contract_review_agent.runtime import AppContext, GenResult, Ledger, instruct_once
+from contract_review_agent.cli import _guardrail_unavailable
+from contract_review_agent.guardrails import _unsafe_verdict, safety_guardrail
+from contract_review_agent.native_model import (
+ SIENativeModel,
+ _next_required_tool,
+ _schema_accepts_string,
+)
+from contract_review_agent.runtime import (
+ AppContext,
+ GenResult,
+ Ledger,
+ instruct_once,
+ record_api_call,
+)
set_tracing_disabled(True)
+def test_safety_guardrail_blocks_investigator_start() -> None:
+ assert safety_guardrail.run_in_parallel is False
+
+
[email protected]("verdict", ["yes", "YES", "unexpected", "No_of_turn>", ""])
+def test_safety_guardrail_fails_closed_unless_verdict_is_unambiguous_no(
+ verdict: str,
+) -> None:
+ assert _unsafe_verdict(verdict) is True
+
+
[email protected]("verdict", [" no \n", "No.", "NO,"])
+def test_safety_guardrail_accepts_unambiguous_no(verdict: str) -> None:
+ assert _unsafe_verdict(verdict) is False
+
+
+def test_guardrail_unavailability_is_distinct_from_an_unsafe_verdict() -> None:
+ ledger = Ledger()
+ ledger.record(
+ "Safety guardrail (granite-guardian)",
+ "ibm-granite/granite-guardian-3.0-2b",
+ "generate",
+ got="unavailable: ServerError",
+ )
+ assert _guardrail_unavailable(ledger) is True
+
+ ledger.entries[-1].got = "yes"
+ assert _guardrail_unavailable(ledger) is False
+
+
[email protected]("keyword", ["anyOf", "oneOf"])
+def test_string_schema_union_skips_non_list_branches(keyword: str) -> None:
+ assert _schema_accepts_string({keyword: 5}) is False
+ assert _schema_accepts_string({keyword: [{"type": "string"}]}) is True
+
+
class FakeSIE:
def __init__(self, responses: list[dict[str, Any]]) -> None:
self.responses = responses
@@ -39,6 +89,13 @@ class FakeSIE:
return self.responses.pop(0)
+class UnavailableSIE:
+ async def generate(
+ self, _model: str, _prompt: str, **_kwargs: Any
+ ) -> dict[str, Any]:
+ raise TimeoutError("guard unavailable")
+
+
def generated(text: str, request_id: str) -> dict[str, Any]:
return {
"text": text,
@@ -51,25 +108,72 @@ def generated(text: str, request_id: str) -> dict[str, Any]:
}
+async def test_safety_guardrail_uses_the_native_guard_verdict() -> None:
+ client = FakeSIE([generated("No", "request-guard")])
+ app = AppContext(
+ sie=client, # type: ignore[arg-type]
+ cfg={
+ "cluster": {},
+ "models": {"guard": "ibm-granite/granite-guardian-3.0-2b"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ )
+
+ result = await safety_guardrail.guardrail_function(
+ SimpleNamespace(context=app), # type: ignore[arg-type]
+ SimpleNamespace(), # type: ignore[arg-type]
+ "Review this contract.",
+ )
+
+ assert result.tripwire_triggered is False
+ assert client.calls[0]["kwargs"]["max_new_tokens"] == 3
+ assert "grammar" not in client.calls[0]["kwargs"]
+
+
+async def test_safety_guardrail_fails_closed_when_the_guard_is_unavailable() -> None:
+ app = AppContext(
+ sie=UnavailableSIE(), # type: ignore[arg-type]
+ cfg={
+ "cluster": {},
+ "models": {"guard": "ibm-granite/granite-guardian-3.0-2b"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ )
+
+ result = await safety_guardrail.guardrail_function(
+ SimpleNamespace(context=app), # type: ignore[arg-type]
+ SimpleNamespace(), # type: ignore[arg-type]
+ "Review this contract.",
+ )
+
+ assert result.tripwire_triggered is True
+ assert app.ledger.entries[-1].got == "unavailable: TimeoutError"
+
+
@pytest.mark.asyncio
async def test_agents_runner_executes_native_tool_turn_then_finishes() -> None:
+ grounded_result = (
+ "Grounded result: CLAUSE. "
+ "The retrieved clause establishes the relevant obligation and the report "
+ "keeps the named actor, timing, conditions, and exceptions attached to that "
+ "source. No fact outside the tool result is introduced. The conclusion stays "
+ "within the supplied evidence and identifies the precise contractual effect."
+ )
client = FakeSIE(
[
- generated(
- json.dumps(
- {
- "kind": "tool_call",
- "name": "echo",
- "arguments": {"value": "clause"},
- }
- ),
- "request-tool",
- ),
generated(
json.dumps(
{
"kind": "final",
- "output": "Grounded result: CLAUSE",
+ "output": grounded_result,
}
),
"request-final",
@@ -78,9 +182,9 @@ async def test_agents_runner_executes_native_tool_turn_then_finishes() -> None:
)
@function_tool
- async def echo(value: str) -> str:
+ async def echo(query: str) -> str:
"""Uppercase one value."""
- return value.upper()
+ return query.upper()
agent = Agent(
name="native-test",
@@ -88,22 +192,28 @@ async def test_agents_runner_executes_native_tool_turn_then_finishes() -> None:
model=SIENativeModel(
"Qwen/Qwen3.5-4B",
client, # type: ignore[arg-type]
+ stage="test_agent",
provision_timeout_s=30,
- required_tool_sequence=(("echo", None),),
+ required_tool_sequence=(("echo", "clause"),),
),
tools=[echo],
)
result = await Runner.run(agent, "Process clause")
- assert result.final_output == "Grounded result: CLAUSE"
- assert len(client.calls) == 2
- first_schema = client.calls[0]["kwargs"]["grammar"]["json_schema"]
- assert first_schema["properties"]["name"]["const"] == "echo"
- second_schema = client.calls[1]["kwargs"]["grammar"]["json_schema"]
- assert len(second_schema["oneOf"]) == 2
- assert "[tool echo]\nCLAUSE" in client.calls[1]["prompt"]
- assert client.calls[1]["kwargs"]["wait_for_capacity"] is True
+ assert result.final_output == grounded_result
+ assert len(client.calls) == 1
+ schema = client.calls[0]["kwargs"]["grammar"]["json_schema"]
+ assert len(schema["oneOf"]) == 2
+ final_branch = next(
+ branch
+ for branch in schema["oneOf"]
+ if branch["properties"]["kind"].get("const") == "final"
+ )
+ assert final_branch["properties"]["output"]["minLength"] == 256
+ assert final_branch["properties"]["output"]["maxLength"] == 3500
+ assert "[tool echo]\nCLAUSE" in client.calls[0]["prompt"]
+ assert client.calls[0]["kwargs"]["wait_for_capacity"] is True
def test_required_search_steps_only_advance_on_the_expected_query() -> None:
@@ -133,8 +243,25 @@ def test_required_search_steps_only_advance_on_the_expected_query() -> None:
},
]
+ case_changed_query = [
+ {
+ "type": "function_call",
+ "name": "search_clauses",
+ "arguments": json.dumps({"query": "Automatic Renewal"}),
+ }
+ ]
+ whitespace_changed_query = [
+ {
+ "type": "function_call",
+ "name": "search_clauses",
+ "arguments": json.dumps({"query": "automatic renewal "}),
+ }
+ ]
+
assert _next_required_tool(sequence, repeated_query) == "search_clauses"
assert _next_required_tool(sequence, distinct_queries) == "analyze_clause_risks"
+ assert _next_required_tool(sequence, case_changed_query) == "search_clauses"
+ assert _next_required_tool(sequence, whitespace_changed_query) == "search_clauses"
class Risk(BaseModel):
@@ -173,6 +300,7 @@ async def test_agents_runner_validates_native_structured_output() -> None:
model=SIENativeModel(
"Qwen/Qwen3.6-27B",
client, # type: ignore[arg-type]
+ stage="test_agent",
provision_timeout_s=30,
),
output_type=Review,
@@ -221,6 +349,7 @@ async def test_instruction_helper_uses_native_multimodal_generate() -> None:
],
},
],
+ stage="read_signature_page",
max_tokens=64,
)
@@ -254,11 +383,154 @@ async def _get_response(
)
+async def test_api_call_producers_emit_the_publication_schema() -> None:
+ provenance = {
+ "id": "request-provenance",
+ "rate_book_version": "rate-v1",
+ "credits_debited": 2,
+ "execution_identity_sha256": "a" * 64,
+ }
+ native_result = generated(
+ json.dumps({"kind": "final", "output": "Grounded output. " * 30}),
+ "request-provenance",
+ )
+ native_result["request"] = provenance
+ api_calls: list[dict[str, Any]] = []
+ model = SIENativeModel(
+ "Qwen/Qwen3.6-27B",
+ FakeSIE([native_result]), # type: ignore[arg-type]
+ stage="synthesize_review",
+ provision_timeout_s=30,
+ api_calls=api_calls,
+ )
+
+ await _get_response(model)
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={"cluster": {}},
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ )
+ record_api_call(
+ app,
+ "extract",
+ "extract-model",
+ {"request": provenance},
+ stage="extract_entities",
+ )
+
+ expected_keys = {
+ "stage",
+ "function",
+ "requested_model",
+ "runtime_model",
+ "request_id",
+ "rate_book_version",
+ "credits_debited",
+ "execution_identity_sha256",
+ }
+ assert set(api_calls[0]) == expected_keys
+ assert set(app.api_calls[0]) == expected_keys
+ assert api_calls[0]["runtime_model"] is None
+ assert app.api_calls[0]["runtime_model"] is None
+
+
+async def test_required_query_is_emitted_without_generation() -> None:
+ @function_tool
+ async def search_clauses(query: str) -> str:
+ """Find clauses for one exact query."""
+ return query
+
+ client = FakeSIE([])
+ model = SIENativeModel(
+ "Qwen/Qwen3.6-27B",
+ client, # type: ignore[arg-type]
+ stage="test_agent",
+ provision_timeout_s=30,
+ required_tool_sequence=(("search_clauses", "termination"),),
+ )
+
+ response = await _get_response(model, tools=[search_clauses])
+
+ assert client.calls == []
+ assert response.output[0].name == "search_clauses"
+ assert json.loads(response.output[0].arguments) == {"query": "termination"}
+
+
+async def test_required_question_is_emitted_without_generation() -> None:
+ @function_tool
+ async def query_obligations_db(question: str) -> str:
+ """Query obligations with one exact question."""
+ return question
+
+ client = FakeSIE([])
+ model = SIENativeModel(
+ "Qwen/Qwen3.6-27B",
+ client, # type: ignore[arg-type]
+ stage="test_agent",
+ provision_timeout_s=30,
+ required_tool_sequence=(("query_obligations_db", "outstanding obligations"),),
+ )
+
+ response = await _get_response(model, tools=[query_obligations_db])
+
+ assert client.calls == []
+ assert response.output[0].name == "query_obligations_db"
+ assert json.loads(response.output[0].arguments) == {
+ "question": "outstanding obligations"
+ }
+
+
+async def test_required_text_rejects_non_string_tool_argument() -> None:
+ @function_tool
+ async def search_clauses(query: int) -> str:
+ """Reject a required text query bound to an integer field."""
+ return str(query)
+
+ model = SIENativeModel(
+ "Qwen/Qwen3.6-27B",
+ FakeSIE([]), # type: ignore[arg-type]
+ stage="test_agent",
+ provision_timeout_s=30,
+ required_tool_sequence=(("search_clauses", "termination"),),
+ )
+
+ with pytest.raises(ModelBehaviorError, match="cannot bind text argument"):
+ await _get_response(model, tools=[search_clauses])
+
+
+async def test_required_text_accepts_union_string_tool_argument() -> None:
+ @function_tool
+ async def search_clauses(query: str | None) -> str:
+ """Accept a required text query through a string union field."""
+ return query or ""
+
+ model = SIENativeModel(
+ "Qwen/Qwen3.6-27B",
+ FakeSIE([]), # type: ignore[arg-type]
+ stage="test_agent",
+ provision_timeout_s=30,
+ required_tool_sequence=(("search_clauses", "termination"),),
+ )
+
+ response = await _get_response(model, tools=[search_clauses])
+
+ assert json.loads(response.output[0].arguments) == {"query": "termination"}
+
+
@pytest.mark.asyncio
async def test_native_model_rejects_handoffs_and_stored_prompts() -> None:
model = SIENativeModel(
"Qwen/Qwen3.5-4B",
FakeSIE([]), # type: ignore[arg-type]
+ stage="test_agent",
provision_timeout_s=30,
)
@@ -283,6 +555,7 @@ async def test_native_model_rejects_invalid_response_text(
model = SIENativeModel(
"Qwen/Qwen3.5-4B",
FakeSIE([response]), # type: ignore[arg-type]
+ stage="test_agent",
provision_timeout_s=30,
)
@@ -316,6 +589,7 @@ async def test_native_model_rejects_invalid_tool_calls(
model = SIENativeModel(
"Qwen/Qwen3.5-4B",
FakeSIE([generated(json.dumps(turn), "request-invalid-tool")]), # type: ignore[arg-type]
+ stage="test_agent",
provision_timeout_s=30,
)
@@ -344,6 +618,7 @@ async def test_instruction_timeout_bounds_the_full_model_call() -> None:
app,
"Qwen/Qwen3.5-4B",
[{"role": "user", "content": "Bound this call."}],
+ stage="test_timeout",
timeout_s=0.01,
)
@@ -373,7 +648,7 @@ async def test_query_obligations_db_selects_configured_generation_helper(
monkeypatch.setattr(
contract_tools,
"_run_select",
- lambda _db_path, _sql: (["value"], [(7,)]),
+ lambda _db_path, _sql, _params: (["value"], [(7,)]),
)
app = AppContext(
sie=FakeSIE([]), # type: ignore[arg-type]
@@ -402,6 +677,185 @@ async def test_query_obligations_db_selects_configured_generation_helper(
assert result.splitlines() == ["SQL: SELECT 7 AS value", "", "value", "7"]
+async def test_query_obligations_db_validates_rows_for_current_contract(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ prompts: list[str] = []
+
+ async def fake_instruct(
+ _app: object, _model: str, messages: list[dict[str, str]], **_kwargs: Any
+ ) -> GenResult:
+ prompts.append(messages[-1]["content"])
+ return GenResult(
+ "SELECT * FROM obligations WHERE counterparty = :counterparty", 0.0, 0.1
+ )
+
+ monkeypatch.setattr(contract_tools, "instruct_once", fake_instruct)
+ monkeypatch.setattr(
+ contract_tools,
+ "_run_select",
+ lambda _db_path, _sql, _params: (
+ ["counterparty", "status", "obligation", "due_date", "amount_usd"],
+ [("Current Contract", "open", "Current row", "2026-06-30", None)],
+ ),
+ )
+ monkeypatch.setattr(
+ contract_tools,
+ "_open_obligation_rows",
+ lambda *_args: [
+ ("Current Contract", "open", "Current row", "2026-06-30", None)
+ ],
+ )
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={
+ "cluster": {"provision_timeout_s": 30},
+ "models": {"sql": "sql-model"},
+ "sql": {"mode": "instruct"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ obligation_counterparty="Current Contract",
+ )
+
+ result = await contract_tools.query_obligations_db.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="query_obligations_db",
+ tool_call_id="call-scoped-query",
+ tool_arguments=json.dumps({"question": "Show upcoming obligations"}),
+ ),
+ json.dumps({"question": "Show upcoming obligations"}),
+ )
+
+ assert "Current Contract" not in prompts[0]
+ assert ":counterparty" in prompts[0]
+ assert "Return every row" in prompts[0]
+ assert "Current row" in result
+ assert app.clause_cache["obligations_result"] == result
+
+
+ ("returned_rows", "expected_rows", "expected_count", "actual_count"),
+ [
+ (
+ [("Current Contract", "open", "Only one row", "2026-06-30", None)],
+ [
+ ("Current Contract", "open", "Only one row", "2026-06-30", None),
+ ("Current Contract", "open", "Missing row", "2026-07-01", 120000.0),
+ ],
+ 2,
+ 1,
+ ),
+ (
+ [
+ ("Current Contract", "open", "Duplicate row", "2026-06-30", None),
+ ("Current Contract", "open", "Duplicate row", "2026-06-30", None),
+ ],
+ [("Current Contract", "open", "Duplicate row", "2026-06-30", None)],
+ 1,
+ 2,
+ ),
+ ],
+)
+async def test_query_obligations_db_rejects_incomplete_or_duplicated_contract_scope(
+ monkeypatch: pytest.MonkeyPatch,
+ returned_rows: list[tuple],
+ expected_rows: list[tuple],
+ expected_count: int,
+ actual_count: int,
+) -> None:
+ async def fake_instruct(
+ _app: object, _model: str, _messages: list[dict[str, str]], **_kwargs: Any
+ ) -> GenResult:
+ return GenResult(
+ "SELECT * FROM obligations WHERE counterparty = :counterparty", 0.0, 0.1
+ )
+
+ monkeypatch.setattr(contract_tools, "instruct_once", fake_instruct)
+ monkeypatch.setattr(
+ contract_tools,
+ "_run_select",
+ lambda _db_path, _sql, _params: (
+ ["counterparty", "status", "obligation", "due_date", "amount_usd"],
+ returned_rows,
+ ),
+ )
+ monkeypatch.setattr(
+ contract_tools, "_open_obligation_rows", lambda *_args: expected_rows
+ )
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={
+ "cluster": {"provision_timeout_s": 30},
+ "models": {"sql": "sql-model"},
+ "sql": {"mode": "instruct"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ obligation_counterparty="Current Contract",
+ )
+
+ result = await contract_tools.query_obligations_db.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="query_obligations_db",
+ tool_call_id="call-incomplete-query",
+ tool_arguments=json.dumps({"question": "Show upcoming obligations"}),
+ ),
+ json.dumps({"question": "Show upcoming obligations"}),
+ )
+
+ assert f"expected {expected_count} open rows, got {actual_count}" in result
+ assert "differing rows:" in result
+
+
+async def test_query_obligations_db_reports_sqlite_warnings(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ async def fake_instruct(
+ _app: object, _model: str, _messages: list[dict[str, str]], **_kwargs: Any
+ ) -> GenResult:
+ return GenResult("SELECT 1", 0.0, 0.1)
+
+ def warn(*_args: object) -> tuple[list[str], list[tuple[object, ...]]]:
+ raise sqlite3.Warning("driver warning")
+
+ monkeypatch.setattr(contract_tools, "instruct_once", fake_instruct)
+ monkeypatch.setattr(contract_tools, "_run_select", warn)
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={
+ "cluster": {"provision_timeout_s": 30},
+ "models": {"sql": "sql-model"},
+ "sql": {"mode": "instruct"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ )
+
+ result = await contract_tools.query_obligations_db.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="query_obligations_db",
+ tool_call_id="call-warning-query",
+ tool_arguments=json.dumps({"question": "Show obligations"}),
+ ),
+ json.dumps({"question": "Show obligations"}),
+ )
+
+ assert result.startswith("SQL error: driver warning")
+
+
@pytest.mark.asyncio
async def test_query_obligations_db_rejects_unknown_generation_mode() -> None:
app = AppContext(
@@ -427,3 +881,165 @@ async def test_query_obligations_db_rejects_unknown_generation_mode() -> None:
),
json.dumps({"question": "Show one value"}),
)
+
+
+async def test_clause_risk_tool_reads_saved_searches_without_copy_arguments(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ prompts: list[str] = []
+ analysis = contract_tools.ClauseRiskAnalysis(
+ risks=[
+ contract_tools.ClauseRiskFinding(
+ clause="Section 4.2",
+ severity="high",
+ issue=(
+ "The termination clause permits termination after notice while "
+ "allowing a commercially reasonable time to cure a material "
+ "default, leaving the cure duration uncertain."
+ ),
+ suggested_redline=(
+ "Define a concrete cure period while preserving immediate "
+ "termination for the listed insolvency events and separate the "
+ "notice requirement from the cure mechanics."
+ ),
+ )
+ ]
+ )
+
+ async def fake_run(_agent: object, prompt: str, **_kwargs: Any) -> object:
+ prompts.append(prompt)
+ return SimpleNamespace(
+ final_output=analysis,
+ final_output_as=lambda _output_type: analysis,
+ context_wrapper=SimpleNamespace(
+ usage=SimpleNamespace(input_tokens=20, output_tokens=5)
+ ),
+ )
+
+ monkeypatch.setattr(contract_tools.Runner, "run", fake_run)
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={
+ "cluster": {"provision_timeout_s": 30},
+ "models": {"reasoning": "reasoning-model"},
+ },
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ reasoning_agent=object(),
+ clause_cache={
+ "search_results": {
+ "automatic renewal": ["Section 4.2 termination clause"],
+ "termination": ["Section 4.2 termination clause"],
+ }
+ },
+ )
+
+ result = await contract_tools.analyze_clause_risks.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="analyze_clause_risks",
+ tool_call_id="call-risk",
+ tool_arguments="{}",
+ ),
+ "{}",
+ )
+
+ assert contract_tools.analyze_clause_risks.params_json_schema["properties"] == {}
+ assert prompts
+ assert (
+ "Topics: automatic renewal, termination\n\nSection 4.2 termination clause"
+ in prompts[0]
+ )
+ assert prompts[0].count("Section 4.2 termination clause") == 1
+ assert result.startswith("Section 4.2 | severity: high")
+ assert app.clause_cache["risk_analysis"] == analysis.model_dump(mode="json")
+
+
+async def test_clause_risk_tool_rejects_an_incomplete_analysis(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ analysis = contract_tools.ClauseRiskAnalysis(
+ risks=[
+ contract_tools.ClauseRiskFinding(
+ clause="Section 4.2",
+ issue="Ambiguous cure.",
+ severity="high",
+ suggested_redline="Clarify it.",
+ )
+ ]
+ )
+
+ async def fake_run(_agent: object, _prompt: str, **_kwargs: Any) -> object:
+ return SimpleNamespace(
+ final_output=analysis,
+ final_output_as=lambda _output_type: analysis,
+ context_wrapper=SimpleNamespace(
+ usage=SimpleNamespace(input_tokens=20, output_tokens=5)
+ ),
+ )
+
+ monkeypatch.setattr(contract_tools.Runner, "run", fake_run)
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={"cluster": {}, "models": {"reasoning": "reasoning-model"}},
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ reasoning_agent=object(),
+ clause_cache={"search_results": {"termination": ["Section 4.2 text"]}},
+ )
+
+ with pytest.raises(RuntimeError, match="incomplete response"):
+ await contract_tools.analyze_clause_risks.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="analyze_clause_risks",
+ tool_call_id="call-risk",
+ tool_arguments="{}",
+ ),
+ "{}",
+ )
+
+
+ "search_results",
+ [
+ {"termination": "termination clause"},
+ {1: ["termination clause"]},
+ {"termination": [1]},
+ {"": []},
+ {" ": []},
+ {"termination": [""]},
+ {"termination": [" "]},
+ ],
+)
+async def test_clause_risk_tool_rejects_malformed_saved_searches(
+ search_results: dict[object, object],
+) -> None:
+ app = AppContext(
+ sie=FakeSIE([]), # type: ignore[arg-type]
+ cfg={"cluster": {}, "models": {"reasoning": "reasoning-model"}},
+ ledger=Ledger(),
+ contract_text="contract",
+ scan_path="scan.png",
+ db_path="obligations.db",
+ reasoning_agent=object(),
+ clause_cache={"search_results": search_results},
+ )
+
+ with pytest.raises(RuntimeError, match="map string queries to lists of strings"):
+ await contract_tools.analyze_clause_risks.on_invoke_tool(
+ ToolContext(
+ app,
+ tool_name="analyze_clause_risks",
+ tool_call_id="call-risk",
+ tool_arguments="{}",
+ ),
+ "{}",
+ )
diff --git a/examples/contract-review-agent/uv.lock b/examples/contract-review-agent/uv.lock
index 8f43d43de..8a4b95633 100644
--- a/examples/contract-review-agent/uv.lock
+++ b/examples/contract-review-agent/uv.lock
@@ -201,7 +201,7 @@ requires-dist = [
{ name = "python-dotenv", specifier = ">=1.0" },
{ name = "pyyaml", specifier = ">=6.0" },
{ name = "rich", specifier = ">=13.7" },
- { name = "sie-sdk", specifier = ">=0.6.24,<0.7" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -888,7 +888,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.26"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -900,9 +900,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e2/4c/f2bc61df6696118c56348cc60a5f2c93ab2395ce2b004d8a11a53aa0a28d/sie_sdk-0.6.26.tar.gz", hash = "sha256:a71b1138e73a424c233d61026962152954276bab9a10f15d0ea47c0c18602137", size = 211819, upload-time = "2026-08-02T13:46:07.807Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/db/94/d7681d918d5a5c1d8e1301cf72743062c7e2e4c748d439061531fe1d2e0b/sie_sdk-0.6.26-py3-none-any.whl", hash = "sha256:9120e48f2290ede39ea53c21bb0f61c51e2a8f6ba9e222a5ef2af0bdc2161127", size = 138651, upload-time = "2026-08-02T13:46:06.435Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/contract-review-agent/verified-run/api-calls.json b/examples/contract-review-agent/verified-run/api-calls.json
new file mode 100644
index 000000000..ff71dd059
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/api-calls.json
@@ -0,0 +1,192 @@
+[
+ {
+ "stage": "warmup",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019feb49-cf88-7781-94d1-46803700a6ec",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 1,
+ "execution_identity_sha256": "5655a12ec099f1921d5fa1822f1fda949553c4f839d3fd9e0417147982e54106"
+ },
+ {
+ "stage": "safety_guardrail",
+ "function": "generate",
+ "requested_model": "ibm-granite/granite-guardian-3.0-2b",
+ "runtime_model": "ibm-granite/granite-guardian-3.0-2b",
+ "request_id": "019feb49-d128-7c00-a2a9-6ad91396c862",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 2,
+ "execution_identity_sha256": "7a49627d19b3b0349ee752c148c3e87fb034b0f88300f68f8eb553c3ae47ca96"
+ },
+ {
+ "stage": "classify_document",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B",
+ "runtime_model": "Qwen/Qwen3.5-4B",
+ "request_id": "019feb49-d2b5-7dc0-a3d8-ab92e3b6d4d3",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 20,
+ "execution_identity_sha256": "40ab9e95a3707617eb64edd8f78d2bab09c5522516c0b6a19d0063392d71bd97"
+ },
+ {
+ "stage": "ocr_signature_page",
+ "function": "extract",
+ "requested_model": "lightonai/LightOnOCR-2-1B",
+ "runtime_model": null,
+ "request_id": "019feb49-d6b9-7b32-9517-839264f5e5bb",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 200,
+ "execution_identity_sha256": "7e05790915cbdb9673e2419ff7ebe37057be993b0b9a3f18d97319ebeaf47fb2"
+ },
+ {
+ "stage": "extract_entities",
+ "function": "extract",
+ "requested_model": "fastino/gliner2-large-v1",
+ "runtime_model": null,
+ "request_id": "019feb49-da0b-7ad2-9f2b-a4171ac1a0c3",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 10,
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ },
+ {
+ "stage": "read_signature_page",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B",
+ "runtime_model": "Qwen/Qwen3.5-4B",
+ "request_id": "019feb49-dc2d-7451-b773-fffd05254752",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 37,
+ "execution_identity_sha256": "40ab9e95a3707617eb64edd8f78d2bab09c5522516c0b6a19d0063392d71bd97"
+ },
+ {
+ "stage": "search_clauses:index",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3",
+ "runtime_model": null,
+ "request_id": "019feb49-e756-77a3-9d2f-b523d8ba3712",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 33,
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3",
+ "runtime_model": null,
+ "request_id": "019feb49-ea5b-75c0-9145-dbc224f65004",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 1,
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B",
+ "runtime_model": "Qwen/Qwen3-Reranker-4B",
+ "request_id": "019feb49-eb2e-7600-82b2-9ccb89dd8580",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 75,
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3",
+ "runtime_model": null,
+ "request_id": "019feb49-ede4-76a0-8f25-cafbd7ea6707",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 1,
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B",
+ "runtime_model": "Qwen/Qwen3-Reranker-4B",
+ "request_id": "019feb49-eec1-7a20-8746-4e8c356fb944",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 75,
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3",
+ "runtime_model": null,
+ "request_id": "019feb49-f174-72f1-ae61-6ca2d3ce4c01",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 1,
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B",
+ "runtime_model": "Qwen/Qwen3-Reranker-4B",
+ "request_id": "019feb49-f24c-7a10-afba-da57c3a77d51",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 75,
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3",
+ "runtime_model": null,
+ "request_id": "019feb49-f4f0-7d43-bae1-162d39261f0c",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 1,
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B",
+ "runtime_model": "Qwen/Qwen3-Reranker-4B",
+ "request_id": "019feb49-f5c2-7ce2-94d7-2c5e39d65a3f",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 75,
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ },
+ {
+ "stage": "analyze_clause_risks",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019feb49-f878-7681-a5d5-a0be8a4cd424",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 234,
+ "execution_identity_sha256": "5f4a7840183ae006b5381892169c8bfdeea694284ed57d2b80cc1cca518c4347"
+ },
+ {
+ "stage": "query_obligations_db",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B",
+ "runtime_model": "Qwen/Qwen3.5-4B",
+ "request_id": "019feb4a-5390-7b21-b2f3-af189077175a",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 50,
+ "execution_identity_sha256": "40ab9e95a3707617eb64edd8f78d2bab09c5522516c0b6a19d0063392d71bd97"
+ },
+ {
+ "stage": "investigator_report",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019feb4a-6280-78c2-a322-de3074d7428b",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 459,
+ "execution_identity_sha256": "5f4a7840183ae006b5381892169c8bfdeea694284ed57d2b80cc1cca518c4347"
+ },
+ {
+ "stage": "synthesize_review",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019feb4a-f9b8-70d3-93fc-dafdcf5ccbf4",
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "credits_debited": 288,
+ "execution_identity_sha256": "5f4a7840183ae006b5381892169c8bfdeea694284ed57d2b80cc1cca518c4347"
+ }
+]
diff --git a/examples/contract-review-agent/verified-run/evaluation.json b/examples/contract-review-agent/verified-run/evaluation.json
new file mode 100644
index 000000000..5f188e333
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/evaluation.json
@@ -0,0 +1,232 @@
+{
+ "passed": true,
+ "checks": {
+ "structured_review": true,
+ "guardrail_was_accepted": true,
+ "parties_identified": true,
+ "risk_flags_identified": true,
+ "api_calls_have_request_provenance": true,
+ "api_call_request_ids_unique": true,
+ "risk_clauses_supported_by_source": true,
+ "risk_claims_supported_by_source": true,
+ "published_risk_coverage_non_regression": true,
+ "published_fact_coverage_non_regression": true,
+ "published_fact_source_coverage_non_regression": true,
+ "signature_image_scope_not_overclaimed": true,
+ "published_investigator_findings_complete": true,
+ "published_investigator_narrative_bounded": true,
+ "all_configured_models_called": true,
+ "native_primitives_called": true,
+ "required_api_call_sequence": true,
+ "bounded_citation_repair": true,
+ "bounded_synthesis_repair": true
+ },
+ "expected_models": [
+ "BAAI/bge-m3",
+ "Qwen/Qwen3-Reranker-4B",
+ "Qwen/Qwen3.5-4B",
+ "Qwen/Qwen3.6-27B",
+ "fastino/gliner2-large-v1",
+ "ibm-granite/granite-guardian-3.0-2b",
+ "lightonai/LightOnOCR-2-1B"
+ ],
+ "requested_models": [
+ "BAAI/bge-m3",
+ "Qwen/Qwen3-Reranker-4B",
+ "Qwen/Qwen3.5-4B",
+ "Qwen/Qwen3.6-27B",
+ "fastino/gliner2-large-v1",
+ "ibm-granite/granite-guardian-3.0-2b",
+ "lightonai/LightOnOCR-2-1B"
+ ],
+ "observed_functions": [
+ "encode",
+ "extract",
+ "generate",
+ "score"
+ ],
+ "expected_call_sequence": [
+ {
+ "stage": "safety_guardrail",
+ "function": "generate",
+ "requested_model": "ibm-granite/granite-guardian-3.0-2b"
+ },
+ {
+ "stage": "classify_document",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "ocr_signature_page",
+ "function": "extract",
+ "requested_model": "lightonai/LightOnOCR-2-1B"
+ },
+ {
+ "stage": "extract_entities",
+ "function": "extract",
+ "requested_model": "fastino/gliner2-large-v1"
+ },
+ {
+ "stage": "read_signature_page",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "search_clauses:index",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "analyze_clause_risks",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ },
+ {
+ "stage": "query_obligations_db",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "investigator_report",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ },
+ {
+ "stage": "synthesize_review",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ }
+ ],
+ "observed_call_sequence": [
+ {
+ "stage": "safety_guardrail",
+ "function": "generate",
+ "requested_model": "ibm-granite/granite-guardian-3.0-2b"
+ },
+ {
+ "stage": "classify_document",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "ocr_signature_page",
+ "function": "extract",
+ "requested_model": "lightonai/LightOnOCR-2-1B"
+ },
+ {
+ "stage": "extract_entities",
+ "function": "extract",
+ "requested_model": "fastino/gliner2-large-v1"
+ },
+ {
+ "stage": "read_signature_page",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "search_clauses:index",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "search_clauses:encode",
+ "function": "encode",
+ "requested_model": "BAAI/bge-m3"
+ },
+ {
+ "stage": "search_clauses:score",
+ "function": "score",
+ "requested_model": "Qwen/Qwen3-Reranker-4B"
+ },
+ {
+ "stage": "analyze_clause_risks",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ },
+ {
+ "stage": "query_obligations_db",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.5-4B"
+ },
+ {
+ "stage": "investigator_report",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ },
+ {
+ "stage": "synthesize_review",
+ "function": "generate",
+ "requested_model": "Qwen/Qwen3.6-27B"
+ }
+ ]
+}
diff --git a/examples/contract-review-agent/verified-run/investigator-findings.txt b/examples/contract-review-agent/verified-run/investigator-findings.txt
new file mode 100644
index 000000000..5ce67ee3d
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/investigator-findings.txt
@@ -0,0 +1,43 @@
+## Contract investigation findings
+
+Document type: Distributor Agreement. Parties: Electric City Corp. (Company) and Electric City of Illinois L.L.C. (Distributor).
+
+Execution: The visible signature page shows Joseph Marino's `/s/Joseph Marino` mark and President title for Electric City Corp. It also shows Jim Stump's typed signatory block for Electric City of Illinois L.L.C., without an explicit signature mark. No execution dates are visible, so execution is not established from the visible signature page.
+
+Commercial terms: Section 1.1 appoints Distributor as the exclusive distributor in the Illinois Market. Section 1.3 sets a ten-year initial term beginning when Company delivers the last Sample and permits conditional annual one-year renewals for up to ten additional years if Distributor complies with the Agreement. Section 1.6 requires an irrevocable $500,000 letter of credit, a $250,000 purchase order by the first day of each month, and at least 375 units in the first Product Year. Section 4.1 requires quarterly written reports during the first year. Section 6.9 applies Illinois law.
+
+Material risks and redlines:
+Section 1.3 | severity: high
+Issue: Missing explicit renewal election or notice mechanics.
+Suggested redline: Add explicit language requiring Distributor to provide written notice of its election to renew at least 90 days prior to the expiration of the then-current Term.
+
+Section 4.2 | severity: high
+Issue: 30 days is the termination-notice period; the separate cure period is an undefined commercially reasonable time. Curable defaults do have that cure period.
+Suggested redline: Replace 'commercially reasonable time' with a specific, fixed number of days (e.g., 30 days) for curing any material default after receipt of written notice.
+
+Section 4.4 | severity: medium
+Issue: Company generally may, at its option, repurchase; but Company shall repurchase unopened Product when it terminates without cause for reasons other than Distributor's minimum failure. The clear mandatory exception protects that scenario; the risk is inventory exposure after other expirations or terminations, where repurchase remains optional.
+Suggested redline: Change 'may, at its option... repurchase' to 'shall repurchase' for all Products in Distributor's possession upon any expiration or termination, regardless of cause.
+
+Section 5.3 | severity: high
+Issue: Each party covers its own breach, negligence, and IP violations; the Distributor-specific indemnity applies only when Company is not at fault.
+Suggested redline: Remove the 'provided that Company is not at fault' condition from the Distributor’s indemnification obligation to ensure full coverage for claims arising from Distributor’s sales and marketing practices.
+
+Deadline status as of August 10, 2026: June 30, 2026 quarterly compliance attestation is overdue; July 1, 2026 annual subscription or license fee is overdue; September 15, 2026 renewal or non-renewal notice is upcoming.
+
+Obligations and deadlines (validated exact-contract rows):
+SQL: SELECT
+ counterparty,
+ status,
+ obligation,
+ due_date,
+ amount_usd
+FROM obligations
+WHERE counterparty = :counterparty
+ AND status = 'open'
+ORDER BY due_date
+
+counterparty | status | obligation | due_date | amount_usd
+LIMEENERGYCO 09 09 1999 EX 10 DISTRIBUTOR AGREEM | open | Quarterly compliance attestation | 2026-06-30 |
+LIMEENERGYCO 09 09 1999 EX 10 DISTRIBUTOR AGREEM | open | Annual subscription / license fee | 2026-07-01 | 120000.0
+LIMEENERGYCO 09 09 1999 EX 10 DISTRIBUTOR AGREEM | open | Send renewal / non-renewal notice before term end | 2026-09-15 |
diff --git a/examples/contract-review-agent/verified-run/ledger.json b/examples/contract-review-agent/verified-run/ledger.json
new file mode 100644
index 000000000..57a4002e8
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/ledger.json
@@ -0,0 +1,122 @@
+[
+ {
+ "step": "Safety guardrail (granite-guardian)",
+ "model": "ibm-granite/granite-guardian-3.0-2b",
+ "sie_fn": "generate",
+ "warmup_s": 0.0,
+ "latency_s": 0.3858197829686105,
+ "sent": "69 tok",
+ "got": "No",
+ "throughput": ""
+ },
+ {
+ "step": "Triage: classify document",
+ "model": "Qwen/Qwen3.5-4B",
+ "sie_fn": "generate",
+ "warmup_s": 0.0,
+ "latency_s": 0.9400610550073907,
+ "sent": "405 tok",
+ "got": "47 tok",
+ "throughput": "50 tok/s"
+ },
+ {
+ "step": "OCR signature page \u2192 markdown",
+ "model": "lightonai/LightOnOCR-2-1B",
+ "sie_fn": "extract",
+ "warmup_s": 0.0,
+ "latency_s": 0.9300409379648045,
+ "sent": "27 KB img",
+ "got": "380 chars md",
+ "throughput": "409 chars/s"
+ },
+ {
+ "step": "Extract entities (zero-shot NER)",
+ "model": "fastino/gliner2-large-v1",
+ "sie_fn": "extract",
+ "warmup_s": 0.0,
+ "latency_s": 0.49383416899945587,
+ "sent": "6,000 chars",
+ "got": "4 entities",
+ "throughput": "8.1 ent/s"
+ },
+ {
+ "step": "Read signature page (vision)",
+ "model": "Qwen/Qwen3.5-4B",
+ "sie_fn": "generate + image",
+ "warmup_s": 0.0,
+ "latency_s": 2.8351227020611987,
+ "sent": "27 KB img + 545 tok",
+ "got": "133 tok",
+ "throughput": "47 tok/s"
+ },
+ {
+ "step": "Embed clauses (index)",
+ "model": "BAAI/bge-m3",
+ "sie_fn": "encode",
+ "warmup_s": 0.0,
+ "latency_s": 0.8567692299839109,
+ "sent": "68 clauses",
+ "got": "1024-dim",
+ "throughput": "79.4 items/s"
+ },
+ {
+ "step": "Rerank candidate clauses",
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "sie_fn": "score",
+ "warmup_s": 0.0,
+ "latency_s": 0.6922528739087284,
+ "sent": "12 docs",
+ "got": "top 4",
+ "throughput": "17.3 docs/s"
+ },
+ {
+ "step": "Rerank candidate clauses",
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "sie_fn": "score",
+ "warmup_s": 0.0,
+ "latency_s": 0.694294121931307,
+ "sent": "12 docs",
+ "got": "top 4",
+ "throughput": "17.3 docs/s"
+ },
+ {
+ "step": "Rerank candidate clauses",
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "sie_fn": "score",
+ "warmup_s": 0.0,
+ "latency_s": 0.6804148759692907,
+ "sent": "12 docs",
+ "got": "top 4",
+ "throughput": "17.6 docs/s"
+ },
+ {
+ "step": "Rerank candidate clauses",
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "sie_fn": "score",
+ "warmup_s": 0.0,
+ "latency_s": 0.6344101909780875,
+ "sent": "12 docs",
+ "got": "top 4",
+ "throughput": "18.9 docs/s"
+ },
+ {
+ "step": "Clause-risk analysis (specialist sub-agent)",
+ "model": "Qwen/Qwen3.6-27B",
+ "sie_fn": "generate",
+ "warmup_s": 0.0,
+ "latency_s": 23.385938151041046,
+ "sent": "2,787 tok",
+ "got": "459 tok",
+ "throughput": "20 tok/s"
+ },
+ {
+ "step": "Text-to-SQL",
+ "model": "Qwen/Qwen3.5-4B",
+ "sie_fn": "generate",
+ "warmup_s": 0.0,
+ "latency_s": 3.7542728669941425,
+ "sent": "330 tok",
+ "got": "256 tok",
+ "throughput": "68 tok/s"
+ }
+]
diff --git a/examples/contract-review-agent/verified-run/manifest.json b/examples/contract-review-agent/verified-run/manifest.json
new file mode 100644
index 000000000..2a886dc7f
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/manifest.json
@@ -0,0 +1,69 @@
+{
+ "run_id": "prod-us-20260810-sdk071-party-mapping",
+ "completed_at": "2026-08-10T10:50:19.607592+00:00",
+ "endpoint": "https://api.superlinked.com",
+ "execution": "SIE API",
+ "models": {
+ "triage": "Qwen/Qwen3.5-4B",
+ "orchestrator": "Qwen/Qwen3.6-27B",
+ "vision": "Qwen/Qwen3.5-4B",
+ "reasoning": "Qwen/Qwen3.6-27B",
+ "sql": "Qwen/Qwen3.5-4B",
+ "guard": "ibm-granite/granite-guardian-3.0-2b",
+ "ocr": "lightonai/LightOnOCR-2-1B",
+ "embed": "BAAI/bge-m3",
+ "rerank": "Qwen/Qwen3-Reranker-4B",
+ "entities": "fastino/gliner2-large-v1"
+ },
+ "source_inputs": [
+ {
+ "label": "CUAD \u00b7 limeenergyco-09-09-1999-ex-10-distributor-agreement",
+ "kind": "contract_text",
+ "parties": [
+ "Electric City Corp. (Company)",
+ "Electric City of Illinois L.L.C. (Distributor)"
+ ],
+ "sha256": "95ea6fae5227f2424896bb354e9de452c7f05a85dc0acb72fa6bd72ebe37a236"
+ },
+ {
+ "path": "limeenergyco-09-09-1999-ex-10-distributor-agreement-page.png",
+ "kind": "signature_scan",
+ "sha256": "64971970656dec10bc5651cd39549f17dcbae0dc128aa4bf164c4b266cdb9b9b"
+ },
+ {
+ "path": "obligations.db",
+ "kind": "obligations_db",
+ "sha256": "07f80b875aac06ec3612a3426dc81f38825969d20e27d7165d2f19d5c5872888"
+ }
+ ],
+ "timing_ms": {
+ "end_to_end": 108385.4
+ },
+ "timing_note": "Diagnostic run timing, not a benchmark.",
+ "artifacts": [
+ {
+ "path": "api-calls.json",
+ "sha256": "e5dc91d889dd31dbc525decf52f80297426c61de6f8987e53d19350af80c5838"
+ },
+ {
+ "path": "evaluation.json",
+ "sha256": "621d3e53480ce19b575be8d8d689046b102afe530fac3228cc492dc10c31f38f"
+ },
+ {
+ "path": "investigator-findings.txt",
+ "sha256": "c6bb9ebfd7c58ea60b89923583d351727fc1afe6c904d99fa3e424e669f6d0b0"
+ },
+ {
+ "path": "ledger.json",
+ "sha256": "4e33d005940dcb4a55e38b42896160bf2a4be3638e2b36cbb26e09a8519bbc1d"
+ },
+ {
+ "path": "review.json",
+ "sha256": "7bfdec1b4ac3b3bcd641041ef06df5748cd1970f2b4dedcd821d348709969182"
+ },
+ {
+ "path": "source-evidence.json",
+ "sha256": "a2a5ab9b575496e2ebafa427ae6a61a7285b4b5bd70717ed03e282b0e37861a1"
+ }
+ ]
+}
diff --git a/examples/contract-review-agent/verified-run/review.json b/examples/contract-review-agent/verified-run/review.json
new file mode 100644
index 000000000..e70e6a148
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/review.json
@@ -0,0 +1,46 @@
+{
+ "document_type": "Distributor Agreement",
+ "parties": [
+ "Electric City Corp. (Company)",
+ "Electric City of Illinois L.L.C. (Distributor)"
+ ],
+ "effective_date": "unknown",
+ "renewal_terms": "Conditional annual one-year renewals for up to ten additional years if Distributor complies with the Agreement (Section 1.3). Missing explicit renewal election or notice mechanics.",
+ "governing_law": "Illinois",
+ "executed": false,
+ "key_obligations": [
+ "Company appoints Distributor as exclusive distributor in the Illinois Market (Section 1.1)",
+ "Ten-year initial term beginning on delivery of last Sample, renewable annually for up to ten additional years if Distributor complies with the Agreement (Section 1.3)",
+ "Distributor must issue an irrevocable $500,000 letter of credit (Section 1.6)",
+ "Distributor must place a $250,000 purchase order by the first day of each month (Section 1.6)",
+ "Distributor must purchase at least 375 units in the first Product Year (Section 1.6)",
+ "Distributor must submit quarterly written reports during the first year (Section 4.1)"
+ ],
+ "risk_flags": [
+ {
+ "clause": "Section 1.3",
+ "issue": "Missing explicit renewal election or notice mechanics.",
+ "severity": "high",
+ "suggested_redline": "Add explicit language requiring Distributor to provide written notice of its election to renew at least 90 days prior to the expiration of the then-current Term."
+ },
+ {
+ "clause": "Section 4.2",
+ "issue": "30 days is the termination-notice period; the separate cure period is an undefined commercially reasonable time. Curable defaults do have that cure period.",
+ "severity": "high",
+ "suggested_redline": "Replace 'commercially reasonable time' with a specific, fixed number of days (e.g., 30 days) for curing any material default after receipt of written notice."
+ },
+ {
+ "clause": "Section 4.4",
+ "issue": "Company generally may, at its option, repurchase; but Company shall repurchase unopened Product when it terminates without cause for reasons other than Distributor's minimum failure. The clear mandatory exception protects that scenario; the risk is inventory exposure after other expirations or terminations, where repurchase remains optional.",
+ "severity": "medium",
+ "suggested_redline": "Change 'may, at its option... repurchase' to 'shall repurchase' for all Products in Distributor's possession upon any expiration or termination, regardless of cause."
+ },
+ {
+ "clause": "Section 5.3",
+ "issue": "Each party covers its own breach, negligence, and IP violations; the Distributor-specific indemnity applies only when Company is not at fault.",
+ "severity": "high",
+ "suggested_redline": "Remove the 'provided that Company is not at fault' condition from the Distributor\u2019s indemnification obligation to ensure full coverage for claims arising from Distributor\u2019s sales and marketing practices."
+ }
+ ],
+ "recommendation": "Execution is not established from the visible signature page: one explicit /s/Joseph Marino mark and Jim Stump's typed signatory block are visible, but no execution dates are visible. Negotiate explicit renewal election and notice mechanics in Section 1.3; replace undefined cure period in Section 4.2 with a fixed number of days; change optional repurchase language in Section 4.4 to mandatory 'shall repurchase' for all Products upon expiration or termination regardless of cause; and remove the 'provided that Company is not at fault' condition from Distributor's indemnification obligation in Section 5.3."
+}
diff --git a/examples/contract-review-agent/verified-run/source-evidence.json b/examples/contract-review-agent/verified-run/source-evidence.json
new file mode 100644
index 000000000..eb73f2ee2
--- /dev/null
+++ b/examples/contract-review-agent/verified-run/source-evidence.json
@@ -0,0 +1,65 @@
+{
+ "contract_text_sha256": "95ea6fae5227f2424896bb354e9de452c7f05a85dc0acb72fa6bd72ebe37a236",
+ "risk_clauses": [
+ {
+ "clause": "Section 1.3",
+ "citation": "Section 1.3",
+ "section": "1.3",
+ "excerpt": "1.3 Term. The term of this Agreement shall be ten (10) years (the \"Term\") which shall commence on the date upon which the Company delivers to Distributor the last Sample, as defined hereinafter. If Distributor complies with all of the terms of this Agreement, the Agreement shall be renewable on an annual basis for one (1) year terms for up to another ten (10) years on the same terms and conditions as set forth herein. All renewals of this Agreement shall be on the same terms and conditions as are set forth herein.",
+ "excerpt_sha256": "5e1d401e09f79ec03b74df88cc0959b0de0763f222212c04afc39362c1ef5ab8"
+ },
+ {
+ "clause": "Section 4.2",
+ "citation": "Section 4.2",
+ "section": "4.2",
+ "excerpt": "4.2 Termination for Cause. Either party may terminate this Agreement upon 30 days Page -8- prior written notice to the other upon the occurrence of any of the following events: (A) the Distributor's failure to make full and prompt payment to the Company of all sums due and owing to it; (b) either party's default in the performance of any of the material, terms, conditions, obligations, undertakings, covenants or liabilities set forth herein and such default is not cured within a commercially reasonable time after the defaulting party has been notified of the default by the other party and (c) as otherwise expressly provided herein. In the event either party (a) becomes adjudicated insolvent, (b) discontinues its business, (c) has voluntary of involuntary bankruptcy proceedings instituted against it, or (d) makes an assignment for the benefit of creditors, the other party shall be entitled to terminate this Agreement effective immediately upon written notice.",
+ "excerpt_sha256": "340cb55f75016bc8058a33f3227321c329407f37263fe3c8532671e4de5b2393"
+ },
+ {
+ "clause": "Section 4.4",
+ "citation": "Section 4.4",
+ "section": "4.4",
+ "excerpt": "4.4 Repurchase of Products. Upon the expiration or termination of this Agreement, pursuant to Section 4.1 or 4.2 hereof, the Company may, at its option to be exercised within 30 days of the date of the termination of this Agreement, and in its sole discretion, repurchase any Products in the possession of the Distributor at the net invoice price paid by the Distributor to the Company less any applicable special allowances, discounts, shipping or allowances for cooperative advertising. If Company terminates the Agreement without cause and for reasons other than Distributor's failure to meet its minimum expectations; it shall repurchase from Distributor any unopened Product, and shall bear all shipping, handling and related costs notwithstanding any other remedies to which Distributor may be entitled. On demand and tender of the repurchase price, the Distributor shall be obligated to deliver such Products to the Company. The Company reserves the right to reject any Products that are not factory sealed and in new and unused condition. Repurchased Products shall be shipped at the Company's expense, and the Company may offset any indebtedness of the Distributor to the Company against the repurchase price of such Products. Following expiration or termination of this Agreement, the Distributor may continue to sell any Products in the Market which are in its inventory Page -9- and which the Company has not repurchased. 5. REPRESENTATIONS AND WARRANTIES AND OTHER MATTERS",
+ "excerpt_sha256": "907f0f090507a91a23445da6344b338ca175fb5599b5a8f13a7b743868b41df0"
+ },
+ {
+ "clause": "Section 5.3",
+ "citation": "Section 5.3",
+ "section": "5.3",
+ "excerpt": "5.3 Indemnification. Company and Distributor agree to indemnify, defend and hold each other harmless from any and all suits, claims, obligations, liabilities, damages, losses and the like (including attorneys' fees and costs) relating to or arising out of: (A) any breach of any material representations, warranties, covenants, obligations, agreements or duties in connection with this Agreement; (b) any negligence or fault; (c) any violation by either of them of the patent, copyright, trademark or other Page -10- intellectual property rights of third parties. In addition, Company agrees to indemnify, defend and hold harmless Distributor from and against all suits, claims, obligations, liabilities, damages, losses and the like (including attorneys' fees and costs) arising out of or related to Company's manufacture or design of the Products, provided that Distributor is not at fault in connection with the same, and Distributor agrees to indemnify, defend and hold harmless Company from and against all suits, claims, obligations, liabilities, damages, losses and the like (including a attorneys' fees and costs) arising out of or related to Distributor's sales, marketing practices or unauthorized Product alteration (provided that Company is not at fault in connection with same).",
+ "excerpt_sha256": "23feff8b9e37a89b0991fea9e6597e4f7ca1de4d227aa1a6f556313bf8042df0"
+ }
+ ],
+ "commercial_fact_clauses": [
+ {
+ "citation": "Section 1.1",
+ "section": "1.1",
+ "excerpt": "1.1 Grant and Acceptance. Company hereby appoints Distributor as Company's exclusive distributor within the Market and grants to Distributor the exclusive right to sell and distribute Products within the Market, and Distributor hereby accepts such appointment and such grant, in accordance with the terms and conditions of this Agreement. Distributor acknowledges that customers of other distributors of the Products may have sites, locations or operations in the Market, which will use the Products. Distributor will sell any and all Products required by such customers in the Market to those customers. Distributor also acknowledges that if its customers have sites, locations or operations outside the Market, in the market of another exclusive distributor of the Products, those customers will be required to purchase products from the applicable exclusive distributor in that market; otherwise, Distributor shall be free to sell to its customers in any market which does not have another exclusive distributor.",
+ "excerpt_sha256": "dfb612f6a2d81c214a85436492a4fa267abf80e7373473a4244396d06a0039d7"
+ },
+ {
+ "citation": "Section 1.3",
+ "section": "1.3",
+ "excerpt": "1.3 Term. The term of this Agreement shall be ten (10) years (the \"Term\") which shall commence on the date upon which the Company delivers to Distributor the last Sample, as defined hereinafter. If Distributor complies with all of the terms of this Agreement, the Agreement shall be renewable on an annual basis for one (1) year terms for up to another ten (10) years on the same terms and conditions as set forth herein. All renewals of this Agreement shall be on the same terms and conditions as are set forth herein.",
+ "excerpt_sha256": "5e1d401e09f79ec03b74df88cc0959b0de0763f222212c04afc39362c1ef5ab8"
+ },
+ {
+ "citation": "Section 1.6",
+ "section": "1.6",
+ "excerpt": "1.6 Distributor's Terms and Minimum Expectations. In order to maintain the exclusive rights to sell, lease, distribute and service Products in the Market, the Distributor must use all commercially reasonably efforts to purchase for sale to subdistributors the following minimum quantities of the Products from the Company: On the commencement of the Term Distributor will issue to the Company an irrevocable letter of credit (\"LC\") in the amount of Five Hundred Thousand Dollars ($500,000), the form of which is attached hereto as Exhibit A and incorporated herein by reference. The LC shall have a two (2) month term, and shall be renewed for five (5) consecutive bimonthly periods. A minimum of a $250,000.00 purchase order must be received by Company by the first of each month for a total (12) month period. The Company may draw funds from the LC to pay for Distributor's purchases, which are not paid according to the terms in Section 2.7. Prices for the EnergySaver units are Page -2- provided by the Company as Exhibit C. The Company will be entitled to draw against the LC pursuant to the terms of the LC. (A) 375 units in the first Product Year (1999) (B) 750 units in the next succeeding Product Year; (2000) (C) 937 units in the next succeeding Product Year; (2001) (D) 1,171 units in the next succeeding Product Year; (2002) (E) 1,463 units in the next succeeding Product Year; (2003) (F) 1,828 units in the next succeeding Product Year; (2004) (G) 2,285 units in the next succeeding Product Year; (2005) (H) 2,856 unit each in the lat three years of the initial Term of this Agreement and any renewals thereof. For purposes of this Agreement, a Product Year shall be the twelve (12) month period following the commencement of the initial Term of this Agreement and each twelve (12) months thereafter. Distributor's expected sales shall include the purchase of the Samples as defined hereinafter. Sales in excess of the expected sales which are actually made in a Product Year may be applied to meet the expectations for the next Product Year. Any such carry-over from one year to the next Product Year may not be considered in determining whether there is a carry-over from that next Product Year. Thus, by way of example and not limitation, if there was an expectation of 50 in year one and 200 for year two and 60 units are sold in year one and 195 units are sold in year two, the expectation for year two will have been met, but there will be no carry-over to year three. If the Distributor shall fail to purchase the minimum number of units in any year, the Distributor's exclusive rights to sell and distribute the Product in the Market, may at Company's sole option, be reevaluated. Company agrees that Distributor shall not be liable or subject to reevaluation for failure to meet expectations due to any occurrence beyond Distributor's reasonable control, including, but not limited to, Acts of God, fires, floods, wars, sabotage, accidents in shipping, labor disturbances, weather conditions, governmental regulation, lack of Company performance, delay by Company, failure of Company to honor warranties or otherwise materially support the Products. The aggregate units to be sold on an annual basis described above are for the Illinois distributorship on an aggregate basis.",
+ "excerpt_sha256": "62dfcb3fd7e8820352027a4c194e79df2beb28c62a7b2887fed6727b6e75319f"
+ },
+ {
+ "citation": "Section 4.1",
+ "section": "4.1",
+ "excerpt": "4.1 Duration. Unless earlier terminated otherwise provided therein, this Agreement, subject to the commencement date established in Section 1.3, shall be effective immediately. Distributor shall submit written reports to the Company each quarter during the first year of the Term, commencing ninety (90) days after execution of this Agreement, describing its efforts, the potential customers it has approached and the status of its efforts.",
+ "excerpt_sha256": "99df6b74f2bea2666078b32010d7c7fffa7a939d9aca73d8ed1e06b457b78229"
+ },
+ {
+ "citation": "Section 6.9",
+ "section": "6.9",
+ "excerpt": "6.9 Governing Law. This Agreement is to be construed according to the laws of the State of Illinois. 7. NEW PRODUCTS",
+ "excerpt_sha256": "b009e8d2fd9fc74663a72719bbb8e4448ffcf0ceb3ba32179912917b0d6b6c3e"
+ }
+ ]
+}
diff --git a/examples/financial-filing-agent/README.md b/examples/financial-filing-agent/README.md
index e654e562c..22820d8e7 100644
--- a/examples/financial-filing-agent/README.md
+++ b/examples/financial-filing-agent/README.md
@@ -54,6 +54,10 @@ uv run review-filing --run-id local
uv run eval-filing runs/local
```
+If the process crashes, it can leave `runs/.<run-id>.lock` and a
+`runs/.<run-id>-*` staging directory. Remove those exact abandoned paths before
+retrying the same run ID.
+
Set `SIE_CLUSTER_URL` and `SIE_API_KEY` to use SIE Cloud. The default points to
a local server at `http://localhost:8080`.
@@ -78,11 +82,9 @@ runs/<run-id>/review.json source-versioned result and calculated delta
runs/<run-id>/evaluation.json deterministic checks
```
-`verified-run/` contains the saved evidence used to design the example. It is
-not a latency benchmark. The first request included model provisioning.
-Its manifest preserves the upstream-style Docling name configured during
-acquisition and the canonical `docling` ID that SIE actually served. New runs
-use the canonical ID directly.
+`verified-run/` contains the August 9, 2026, prod-US evidence. It is not a
+latency benchmark. Its manifest pins the endpoint, run date, model IDs, source
+hashes, diagnostic timings, and every artifact checksum.
See [fixtures/SOURCES.md](fixtures/SOURCES.md) for accession numbers, URLs, and
source checksums.
diff --git a/examples/financial-filing-agent/financial_filing/review.py b/examples/financial-filing-agent/financial_filing/review.py
index f39c982b5..99ac03d4c 100644
--- a/examples/financial-filing-agent/financial_filing/review.py
+++ b/examples/financial-filing-agent/financial_filing/review.py
@@ -1,11 +1,14 @@
from __future__ import annotations
import argparse
+import contextlib
import hashlib
import json
import math
import os
import re
+import shutil
+import tempfile
import time
from datetime import UTC, datetime
from decimal import Decimal
@@ -75,6 +78,71 @@ def _write_json(path: Path, value: Any) -> None:
path.write_text(json.dumps(value, indent=2, default=_json_default) + "\n", encoding="utf-8")
+def _charged_request_rows(value: Any) -> list[tuple[dict[str, Any], dict[str, Any]]]:
+ rows: list[tuple[dict[str, Any], dict[str, Any]]] = []
+ if isinstance(value, dict):
+ request = value.get("request")
+ if isinstance(request, dict) and request.get("credits_debited"):
+ usage = request.get("usage")
+ if not isinstance(usage, dict):
+ usage = value.get("usage")
+ rows.append((request, usage if isinstance(usage, dict) else {}))
+ for child in value.values():
+ rows.extend(_charged_request_rows(child))
+ elif isinstance(value, list):
+ for child in value:
+ rows.extend(_charged_request_rows(child))
+ return rows
+
+
+def _request_rate_book_version(request: dict[str, Any], usage: dict[str, Any], source: str) -> str:
+ direct_present = "rate_book_version" in request
+ usage_present = "rate_book_version" in usage
+ direct = request.get("rate_book_version")
+ nested = usage.get("rate_book_version")
+ if direct_present and (not isinstance(direct, str) or not direct):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if usage_present and (not isinstance(nested, str) or not nested):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if direct_present and usage_present and direct != nested:
+ raise RuntimeError(f"{source} has conflicting rate-book versions for one request")
+ version = direct if direct_present else nested
+ if not isinstance(version, str) or not version:
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ return version
+
+
+def _rate_book_provenance(raw_dir: Path) -> dict[str, Any]:
+ versions: set[str] = set()
+ source_artifacts: list[str] = []
+ request_ids: list[str] = []
+ request_versions: dict[str, str] = {}
+ for path in sorted(raw_dir.glob("*.json")):
+ result = json.loads(path.read_text(encoding="utf-8"))
+ charged_rows = _charged_request_rows(result)
+ if charged_rows:
+ source_artifacts.append(f"raw/{path.name}")
+ for request, usage in charged_rows:
+ request_id = request.get("id")
+ if not isinstance(request_id, str) or not request_id:
+ raise RuntimeError(f"{path.name} has a charged request without an ID")
+ request_ids.append(request_id)
+ version = _request_rate_book_version(request, usage, path.name)
+ versions.add(version)
+ request_versions[request_id] = version
+ if len(request_ids) != len(set(request_ids)):
+ raise RuntimeError("Run contains duplicate charged request IDs")
+ if len(versions) != 1 or not request_ids:
+ raise RuntimeError("Run does not establish one settled rate book for charged requests")
+ version = versions.pop()
+ return {
+ "version": version,
+ "source_artifacts": source_artifacts,
+ "request_ids": request_ids,
+ "request_versions": request_versions,
+ }
+
+
def _dense(result: dict[str, Any]) -> list[float]:
values: Any = result.get("dense")
if isinstance(values, dict):
@@ -338,10 +406,17 @@ def build_review(data: dict[str, Any], ranked: list[dict[str, Any]]) -> dict[str
}
-def run(run_id: str) -> Path:
- config = load_config()
+def _validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError("run_id must be one safe directory name containing only letters, digits, '.', '_', or '-'")
+ return run_id
+
+
+def _write_run(run_dir: Path, config: dict[str, Any]) -> None:
parse_model = str(config["models"]["parse"])
- run_dir = RUNS_DIR / run_id
raw_dir = run_dir / "raw"
raw_dir.mkdir(parents=True, exist_ok=False)
calls: list[dict[str, Any]] = []
@@ -406,10 +481,20 @@ def run(run_id: str) -> Path:
)
started = time.perf_counter()
+ rerank_query = Item(id="filing-query", text=config["review"]["query"])
+ rerank_items = [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval]
+ _write_json(
+ raw_dir / "rerank-request.json",
+ {
+ "model": config["models"]["rerank"],
+ "query": rerank_query,
+ "items": rerank_items,
+ },
+ )
rerank_raw = client.score(
config["models"]["rerank"],
- Item(id="filing-query", text=config["review"]["query"]),
- [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval],
+ rerank_query,
+ rerank_items,
wait_for_capacity=True,
provision_timeout_s=timeout,
)
@@ -576,10 +661,9 @@ def run(run_id: str) -> Path:
manifest = {
"created_at": datetime.now(UTC).isoformat(),
"endpoint": config["cluster"]["url"],
- "sie_server_commit": os.getenv("SIE_SERVER_COMMIT"),
- "run_command": os.getenv("SIE_RUN_COMMAND"),
"models": config["models"],
"fixture": {"path": str(DOCUMENT_PATH.relative_to(ROOT)), "sha256": sha256(DOCUMENT_PATH)},
+ "rate_book_provenance": _rate_book_provenance(raw_dir),
"artifacts": [{"path": str(path.relative_to(run_dir)), "sha256": sha256(path)} for path in artifact_paths],
"calls": calls,
"pipeline": [
@@ -604,8 +688,33 @@ def run(run_id: str) -> Path:
),
}
_write_json(run_dir / "manifest.json", manifest)
- console.print(f"[green]Wrote[/] {run_dir}")
- return run_dir
+
+
+def run(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
+ config = load_config()
+ RUNS_DIR.mkdir(parents=True, exist_ok=True)
+ final_run_dir = RUNS_DIR / run_id
+ reservation_dir = RUNS_DIR / f".{run_id}.lock"
+ try:
+ reservation_dir.mkdir()
+ except FileExistsError as exc:
+ raise FileExistsError(f"Run ID is already reserved: {run_id}") from exc
+ try:
+ if final_run_dir.exists():
+ raise FileExistsError(f"Run evidence already exists at {final_run_dir}")
+ staging_dir = Path(tempfile.mkdtemp(prefix=f".{run_id}-", dir=RUNS_DIR))
+ try:
+ _write_run(staging_dir, config)
+ staging_dir.rename(final_run_dir)
+ except BaseException:
+ shutil.rmtree(staging_dir, ignore_errors=True)
+ raise
+ finally:
+ with contextlib.suppress(OSError):
+ reservation_dir.rmdir()
+ console.print(f"[green]Wrote[/] {final_run_dir}")
+ return final_run_dir
def main() -> None:
diff --git a/examples/financial-filing-agent/pyproject.toml b/examples/financial-filing-agent/pyproject.toml
index b19b48d83..6b6eb5a36 100644
--- a/examples/financial-filing-agent/pyproject.toml
+++ b/examples/financial-filing-agent/pyproject.toml
@@ -8,7 +8,7 @@ dependencies = [
"python-dotenv>=1.0",
"pyyaml>=6.0",
"rich>=13.7",
- "sie-sdk>=0.6.23",
+ "sie-sdk==0.7.1",
]
[project.scripts]
diff --git a/examples/financial-filing-agent/tests/test_review.py b/examples/financial-filing-agent/tests/test_review.py
index fb772239e..3f9e391f8 100644
--- a/examples/financial-filing-agent/tests/test_review.py
+++ b/examples/financial-filing-agent/tests/test_review.py
@@ -2,10 +2,14 @@ import hashlib
import json
from pathlib import Path
+import pytest
+
+import financial_filing.review as review_module
from financial_filing.evaluate import evaluate_review
from financial_filing.review import (
_chunks,
_original_table_source_value,
+ _rate_book_provenance,
_require_entity_evidence,
_require_matching_source_values,
_table_row_context,
@@ -17,6 +21,36 @@ from financial_filing.review import (
ROOT = Path(__file__).resolve().parents[1]
[email protected]("run_id", ["", ".", "..", "../escape", "nested/run", "nested\\run"])
+def test_run_rejects_unsafe_run_id(run_id: str) -> None:
+ with pytest.raises(ValueError, match="safe directory name"):
+ review_module.run(run_id)
+
+
+def test_run_publishes_atomically_and_allows_retry_after_failure(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
+ monkeypatch.setattr(review_module, "load_config", dict)
+
+ def fail(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "partial.json").write_text("{}\n", encoding="utf-8")
+ raise RuntimeError("provenance failed")
+
+ monkeypatch.setattr(review_module, "_write_run", fail)
+ with pytest.raises(RuntimeError, match="provenance failed"):
+ review_module.run("retryable-run")
+ assert list(tmp_path.iterdir()) == []
+
+ def succeed(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ monkeypatch.setattr(review_module, "_write_run", succeed)
+ result = review_module.run("retryable-run")
+ assert result == tmp_path / "retryable-run"
+ assert (result / "manifest.json").is_file()
+
+
def test_fixture_preserves_the_sec_table_rows_and_item_402_sentences() -> None:
source = (ROOT / "fixtures" / "pathward-filing-packet.html").read_text(encoding="utf-8")
assert "<td>$45,096</td>" in source
@@ -205,3 +239,89 @@ def test_verified_manifest_hashes() -> None:
path = Path(entry["path"])
resolved = ROOT / path if path.parts[0] == "verified-run" else manifest_path.parent / path
assert hashlib.sha256(resolved.read_bytes()).hexdigest() == entry["sha256"]
+
+ raw_dir = manifest_path.parent / "raw"
+ retrieve = json.loads((raw_dir / "retrieve.json").read_text(encoding="utf-8"))
+ rerank_request = json.loads((raw_dir / "rerank-request.json").read_text(encoding="utf-8"))
+ rerank = json.loads((raw_dir / "rerank.json").read_text(encoding="utf-8"))
+ assert rerank_request["query"]["id"] == retrieve["query"]["id"]
+ assert [item["id"] for item in rerank_request["items"]] == [row["chunk_id"] for row in retrieve["ranking"]]
+ assert {row["item_id"] for row in rerank["scores"]} == {item["id"] for item in rerank_request["items"]}
+
+ provenance = manifest["rate_book_provenance"]
+ assert provenance == _rate_book_provenance(raw_dir)
+ assert len(provenance["request_ids"]) == 13
+ assert provenance["request_versions"] == {
+ request_id: provenance["version"] for request_id in provenance["request_ids"]
+ }
+ assert "raw/retrieve.json" in provenance["source_artifacts"]
+ listed_paths = {entry["path"] for entry in manifest["artifacts"]}
+ actual_paths = {
+ path.relative_to(manifest_path.parent).as_posix()
+ for path in manifest_path.parent.rglob("*")
+ if path.is_file() and path != manifest_path
+ }
+ assert listed_paths == actual_paths
+
+
+def test_rate_book_provenance_rejects_a_charged_request_without_its_own_version(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "complete.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-v1",
+ }
+ }
+ ),
+ encoding="utf-8",
+ )
+ (tmp_path / "missing.json").write_text(
+ json.dumps({"request": {"id": "request-2", "credits_debited": 1}}),
+ encoding="utf-8",
+ )
+
+ with pytest.raises(RuntimeError, match="without a rate-book version"):
+ _rate_book_provenance(tmp_path)
+
+
+def test_rate_book_provenance_prefers_request_usage(tmp_path: Path) -> None:
+ (tmp_path / "nested-usage.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "usage": {"rate_book_version": "nested-rate-v1"},
+ },
+ "usage": {"rate_book_version": "outer-rate-v1"},
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ assert _rate_book_provenance(tmp_path)["version"] == "nested-rate-v1"
+
+
+def test_rate_book_provenance_rejects_conflicting_request_versions(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "conflict.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "direct-rate-v1",
+ "usage": {"rate_book_version": "usage-rate-v2"},
+ }
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ with pytest.raises(RuntimeError, match="conflicting rate-book versions"):
+ _rate_book_provenance(tmp_path)
diff --git a/examples/financial-filing-agent/uv.lock b/examples/financial-filing-agent/uv.lock
index 240890038..4b970d15e 100644
--- a/examples/financial-filing-agent/uv.lock
+++ b/examples/financial-filing-agent/uv.lock
@@ -122,7 +122,7 @@ requires-dist = [
{ name = "python-dotenv", specifier = ">=1.0" },
{ name = "pyyaml", specifier = ">=6.0" },
{ name = "rich", specifier = ">=13.7" },
- { name = "sie-sdk", specifier = ">=0.6.23" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -463,7 +463,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.23"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -475,9 +475,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/22/c0/b0fd1ecb9cfd92271a22de027b2d924b16b1d5b526332da38e0a1265373c/sie_sdk-0.6.23.tar.gz", hash = "sha256:7a7455badd364b8bff05d3f36004ad959e524dd9fef3d1bf4148a67eb5132778", size = 197836, upload-time = "2026-07-24T04:05:17.119Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/bd/58/ecf8d19e4a5e8797781433ebaf2e5034610c896d5a5595e7c901df34099e/sie_sdk-0.6.23-py3-none-any.whl", hash = "sha256:9e3d558a3b7b5d60f3d6deeededdd865b37a8ef7505dd922b5d2749e1efe1f0d", size = 130234, upload-time = "2026-07-24T04:05:15.755Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/financial-filing-agent/verified-run/manifest.json b/examples/financial-filing-agent/verified-run/manifest.json
index 0042b160d..2c4bf6c84 100644
--- a/examples/financial-filing-agent/verified-run/manifest.json
+++ b/examples/financial-filing-agent/verified-run/manifest.json
@@ -1,10 +1,8 @@
{
- "created_at": "2026-07-25T02:28:01.848776+00:00",
- "endpoint": "http://127.0.0.1:8080",
- "sie_server_commit": "4b5ea9ccd5d5fc07c56edfea790080b05e17f0d2",
- "run_command": "Modal exact-source reference examples against public SIE main at 4b5ea9c",
+ "created_at": "2026-08-09T22:13:28.948785+00:00",
+ "endpoint": "https://api.superlinked.com",
"models": {
- "parse": "docling-project/docling",
+ "parse": "docling",
"retrieve": "BAAI/bge-m3",
"rerank": "Qwen/Qwen3-Reranker-4B",
"entities": "urchade/gliner_multi-v2.1",
@@ -14,6 +12,50 @@
"path": "fixtures/pathward-filing-packet.html",
"sha256": "6232258157eb1881e8c1bbd479958ae13ea63281a21569e20414683e7c23c3ea"
},
+ "rate_book_provenance": {
+ "version": "2026-07-26-production-bootstrap-v2",
+ "source_artifacts": [
+ "raw/entities-original-10q.json",
+ "raw/entities-restated-10ka-diluted.json",
+ "raw/entities-restated-10ka.json",
+ "raw/entities-status.json",
+ "raw/gliner2-original-10q.json",
+ "raw/gliner2-restated-10ka.json",
+ "raw/gliner2-status.json",
+ "raw/rerank.json",
+ "raw/retrieve.json"
+ ],
+ "request_ids": [
+ "019fe896-88dc-74a0-a305-233986e2b549",
+ "019fe896-8ab4-77e2-8d02-3a6e4d9d059d",
+ "019fe896-89cb-7a02-ba5f-d856555d6bf4",
+ "019fe896-8b94-71c0-a6a4-03ae93e964bd",
+ "019fe896-8c6d-7362-bcef-c8312102725e",
+ "019fe896-8d5b-71d1-a135-b6415955aa06",
+ "019fe896-8e42-7f13-88dd-56954f7e7151",
+ "019fe896-873e-7e43-83e8-6e9088d8f3c2",
+ "019fe896-836c-7780-8e74-06af44d1170c",
+ "019fe896-844d-72f1-9cd9-ecd83b0788fc",
+ "019fe896-8506-7c42-8445-b74c9ddef39e",
+ "019fe896-85c5-7391-b628-68114c894936",
+ "019fe896-8683-7320-918c-fad04527a3b0"
+ ],
+ "request_versions": {
+ "019fe896-88dc-74a0-a305-233986e2b549": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8ab4-77e2-8d02-3a6e4d9d059d": "2026-07-26-production-bootstrap-v2",
+ "019fe896-89cb-7a02-ba5f-d856555d6bf4": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8b94-71c0-a6a4-03ae93e964bd": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8c6d-7362-bcef-c8312102725e": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8d5b-71d1-a135-b6415955aa06": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8e42-7f13-88dd-56954f7e7151": "2026-07-26-production-bootstrap-v2",
+ "019fe896-873e-7e43-83e8-6e9088d8f3c2": "2026-07-26-production-bootstrap-v2",
+ "019fe896-836c-7780-8e74-06af44d1170c": "2026-07-26-production-bootstrap-v2",
+ "019fe896-844d-72f1-9cd9-ecd83b0788fc": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8506-7c42-8445-b74c9ddef39e": "2026-07-26-production-bootstrap-v2",
+ "019fe896-85c5-7391-b628-68114c894936": "2026-07-26-production-bootstrap-v2",
+ "019fe896-8683-7320-918c-fad04527a3b0": "2026-07-26-production-bootstrap-v2"
+ }
+ },
"artifacts": [
{
"path": "parsed.md",
@@ -25,31 +67,35 @@
},
{
"path": "raw/entities-original-10q.json",
- "sha256": "d7db84b21d2f86a0b1d3f80c30091de9f0557910d147d27e85689a6c79be353c"
+ "sha256": "e0ce25f72b8cc2a453d9b50254fa1cbeee0a7a35be2961bfe57b8fef2bf9ddd5"
+ },
+ {
+ "path": "raw/entities-restated-10ka-diluted.json",
+ "sha256": "302e085795527b7320cb928992858fb911b482d183cfdba0e5d8336daf122131"
},
{
"path": "raw/entities-restated-10ka.json",
- "sha256": "815e9b289837a1eefcc72bd08c23c11ce6e6533398a533ba5540d57743aedb68"
+ "sha256": "3ff42af378fb0b7bf879d172b4bf52a6697dae0aca9baedb89f400e7c6615944"
},
{
"path": "raw/entities-status.json",
- "sha256": "4dc6569dcc77d12e373e7b89a21676bced7849bf1abefee92399e0835599e115"
+ "sha256": "4037f534d5917169c9d54851007cbed3623e44c9ab045377fb51c51789ea05c0"
},
{
"path": "raw/entities.json",
- "sha256": "0c07ce92df4e183c7a4cf4f567b06474d0f1245b37326b09b894a159f4ff54c3"
+ "sha256": "574b5fd48ea6e9020a141a4546fbf80585a34a794e2a45fbba0e94c30ea8d5da"
},
{
"path": "raw/gliner2-original-10q.json",
- "sha256": "02535822a2e1f0a061e43253b993a296a76444d1198b2ee25379df91e7f4e512"
+ "sha256": "cab53ef308405eff598bf7ed17d2067cec39c69a9286bcc93cd6b5c3c14c32f7"
},
{
"path": "raw/gliner2-restated-10ka.json",
- "sha256": "23c3e88506769d17e34cdb1ad654d99212623f8f7fd6f49f11086fac5a68a820"
+ "sha256": "4f9d9b4b64d974ddf084a92fc3007f4748d16b7fffc413f8270b45f00d200de7"
},
{
"path": "raw/gliner2-status.json",
- "sha256": "8a25edf9c397dc00b7dd11a454ceaebfc70c3f94d6d44fd7f6d85b05be78bac5"
+ "sha256": "8dd1fee03ef84b22ce36e1034e73231771431377fda2cdec77147160dce05001"
},
{
"path": "raw/mapped.json",
@@ -57,15 +103,19 @@
},
{
"path": "raw/parse.json",
- "sha256": "9f0e6109b074439f331ff97bf2aceaae4b4566db9553c8f7779673acb53414e2"
+ "sha256": "11bdd451573f2e4ddeff7f830dd9875aa1d474460f27dbb4f66ded902e2aab4b"
+ },
+ {
+ "path": "raw/rerank-request.json",
+ "sha256": "c713fac1acc9bc0924adf29a12138c638ca3bb73b8c0e0502ba5fa924ca8dc74"
},
{
"path": "raw/rerank.json",
- "sha256": "1d8bb7655c90ee6a6342ce05ccd4d15e9e497ac70e58ed761faba7f6431c1e78"
+ "sha256": "b8819dce4b869650591c998d6bd478b4775b662429e98eb437c7401c83e770da"
},
{
"path": "raw/retrieve.json",
- "sha256": "e98ce5792654f8b68bd3b93789ae75cb4b24482bc1162ba9b9dba6147198482b"
+ "sha256": "a36dc583d13eb0136537b1dc67c2e3e007a2e6ffe79ba66852881068cfba17b9"
},
{
"path": "evaluation.json",
@@ -76,48 +126,53 @@
{
"stage": "parse",
"model": "docling",
- "configured_model": "docling-project/docling",
- "latency_ms": 35300.6
+ "configured_model": "docling",
+ "latency_ms": 416.6
},
{
"stage": "retrieve",
"model": "BAAI/bge-m3",
- "latency_ms": 11543.0
+ "latency_ms": 976.4
},
{
"stage": "rerank",
"model": "Qwen/Qwen3-Reranker-4B",
- "latency_ms": 16574.0
+ "latency_ms": 421.3
},
{
"stage": "entities_original_10q",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 11186.1
+ "latency_ms": 240.1
},
{
"stage": "entities_restated_10ka",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 183.8
+ "latency_ms": 225.2
+ },
+ {
+ "stage": "entities_restated_10ka_diluted",
+ "model": "urchade/gliner_multi-v2.1",
+ "latency_ms": 226.7
},
{
"stage": "entities_status",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 130.7
+ "latency_ms": 215.0
},
{
"stage": "gliner2_original_10q",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 10638.7
+ "latency_ms": 242.7
},
{
"stage": "gliner2_restated_10ka",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 62.0
+ "latency_ms": 231.3
},
{
"stage": "gliner2_status",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 50.3
+ "latency_ms": 242.7
}
],
"pipeline": [
@@ -126,6 +181,7 @@
"rerank",
"entities_original_10q",
"entities_restated_10ka",
+ "entities_restated_10ka_diluted",
"entities_status",
"gliner2_original_10q",
"gliner2_restated_10ka",
diff --git a/examples/financial-filing-agent/verified-run/raw/entities-original-10q.json b/examples/financial-filing-agent/verified-run/raw/entities-original-10q.json
index 01a1b086b..7082b0ac5 100644
--- a/examples/financial-filing-agent/verified-run/raw/entities-original-10q.json
+++ b/examples/financial-filing-agent/verified-run/raw/entities-original-10q.json
@@ -93,5 +93,16 @@
"classifications": [],
"objects": [],
"id": "entities_original_10q",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe896-88dc-74a0-a305-233986e2b549",
+ "credits_debited": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 306,
+ "credits_charged": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka-diluted.json b/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka-diluted.json
new file mode 100644
index 000000000..ea6192ea2
--- /dev/null
+++ b/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka-diluted.json
@@ -0,0 +1,68 @@
+{
+ "entities": [
+ {
+ "text": "Restated Form 10-K/A Accession 0000907471-25-000083",
+ "label": "filing",
+ "score": 0.6875,
+ "start": 3,
+ "end": 54,
+ "bbox": null
+ },
+ {
+ "text": "Three Months",
+ "label": "reporting period",
+ "score": 0.64208984375,
+ "start": 79,
+ "end": 91,
+ "bbox": null
+ },
+ {
+ "text": "$1.68",
+ "label": "money amount",
+ "score": 0.8857421875,
+ "start": 164,
+ "end": 169,
+ "bbox": null
+ },
+ {
+ "text": "$1.34",
+ "label": "money amount",
+ "score": 0.84033203125,
+ "start": 257,
+ "end": 262,
+ "bbox": null
+ },
+ {
+ "text": "$4.62",
+ "label": "money amount",
+ "score": 0.9208984375,
+ "start": 273,
+ "end": 278,
+ "bbox": null
+ },
+ {
+ "text": "$4.27",
+ "label": "money amount",
+ "score": 0.8642578125,
+ "start": 366,
+ "end": 371,
+ "bbox": null
+ }
+ ],
+ "relations": [],
+ "classifications": [],
+ "objects": [],
+ "id": "entities_restated_10ka_diluted",
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe896-8ab4-77e2-8d02-3a6e4d9d059d",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 74,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
+}
diff --git a/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka.json b/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka.json
index 464fbea98..3759b7caa 100644
--- a/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka.json
+++ b/examples/financial-filing-agent/verified-run/raw/entities-restated-10ka.json
@@ -69,5 +69,16 @@
"classifications": [],
"objects": [],
"id": "entities_restated_10ka",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe896-89cb-7a02-ba5f-d856555d6bf4",
+ "credits_debited": 7,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 693,
+ "credits_charged": 7,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/entities-status.json b/examples/financial-filing-agent/verified-run/raw/entities-status.json
index 29695e7de..9ab5108fa 100644
--- a/examples/financial-filing-agent/verified-run/raw/entities-status.json
+++ b/examples/financial-filing-agent/verified-run/raw/entities-status.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "entities_status",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe896-8b94-71c0-a6a4-03ae93e964bd",
+ "credits_debited": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 237,
+ "credits_charged": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/entities.json b/examples/financial-filing-agent/verified-run/raw/entities.json
index d2ca5a6ee..46897f4d9 100644
--- a/examples/financial-filing-agent/verified-run/raw/entities.json
+++ b/examples/financial-filing-agent/verified-run/raw/entities.json
@@ -153,6 +153,54 @@
"end": 914,
"bbox": null
},
+ {
+ "text": "Restated Form 10-K/A Accession 0000907471-25-000083",
+ "label": "filing",
+ "score": 0.6875,
+ "start": 3,
+ "end": 54,
+ "bbox": null
+ },
+ {
+ "text": "Three Months",
+ "label": "reporting period",
+ "score": 0.64208984375,
+ "start": 79,
+ "end": 91,
+ "bbox": null
+ },
+ {
+ "text": "$1.68",
+ "label": "money amount",
+ "score": 0.8857421875,
+ "start": 164,
+ "end": 169,
+ "bbox": null
+ },
+ {
+ "text": "$1.34",
+ "label": "money amount",
+ "score": 0.84033203125,
+ "start": 257,
+ "end": 262,
+ "bbox": null
+ },
+ {
+ "text": "$4.62",
+ "label": "money amount",
+ "score": 0.9208984375,
+ "start": 273,
+ "end": 278,
+ "bbox": null
+ },
+ {
+ "text": "$4.27",
+ "label": "money amount",
+ "score": 0.8642578125,
+ "start": 366,
+ "end": 371,
+ "bbox": null
+ },
{
"text": "Pathward Financial",
"label": "company",
diff --git a/examples/financial-filing-agent/verified-run/raw/gliner2-original-10q.json b/examples/financial-filing-agent/verified-run/raw/gliner2-original-10q.json
index fef20c7f8..43df3ebe7 100644
--- a/examples/financial-filing-agent/verified-run/raw/gliner2-original-10q.json
+++ b/examples/financial-filing-agent/verified-run/raw/gliner2-original-10q.json
@@ -85,5 +85,16 @@
"classifications": [],
"objects": [],
"id": "ranked-original-10q-table-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe896-8c6d-7362-bcef-c8312102725e",
+ "credits_debited": 4,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 197,
+ "credits_charged": 4,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/gliner2-restated-10ka.json b/examples/financial-filing-agent/verified-run/raw/gliner2-restated-10ka.json
index 1b08161ab..886f9ac71 100644
--- a/examples/financial-filing-agent/verified-run/raw/gliner2-restated-10ka.json
+++ b/examples/financial-filing-agent/verified-run/raw/gliner2-restated-10ka.json
@@ -93,5 +93,16 @@
"classifications": [],
"objects": [],
"id": "ranked-restated-table-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe896-8d5b-71d1-a135-b6415955aa06",
+ "credits_debited": 8,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 430,
+ "credits_charged": 8,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/gliner2-status.json b/examples/financial-filing-agent/verified-run/raw/gliner2-status.json
index 47e5a8805..9525632a3 100644
--- a/examples/financial-filing-agent/verified-run/raw/gliner2-status.json
+++ b/examples/financial-filing-agent/verified-run/raw/gliner2-status.json
@@ -29,5 +29,16 @@
"classifications": [],
"objects": [],
"id": "ranked-filing-status-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe896-8e42-7f13-88dd-56954f7e7151",
+ "credits_debited": 6,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 307,
+ "credits_charged": 6,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/parse.json b/examples/financial-filing-agent/verified-run/raw/parse.json
index 4e71cc32c..2ed8290e1 100644
--- a/examples/financial-filing-agent/verified-run/raw/parse.json
+++ b/examples/financial-filing-agent/verified-run/raw/parse.json
@@ -1550,5 +1550,16 @@
"pages": {}
}
},
- "model": "docling"
+ "model": "docling",
+ "request": {
+ "id": "019fe896-823d-7d32-b7d0-53d3a83afd51",
+ "credits_debited": 0,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "pages": 0,
+ "credits_charged": 0,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/financial-filing-agent/verified-run/raw/rerank-request.json b/examples/financial-filing-agent/verified-run/raw/rerank-request.json
new file mode 100644
index 000000000..9862e71b3
--- /dev/null
+++ b/examples/financial-filing-agent/verified-run/raw/rerank-request.json
@@ -0,0 +1,25 @@
+{
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "query": {
+ "id": "filing-query",
+ "text": "Compare Pathward's original and restated Q3 FY2023 net income and diluted EPS, then identify the superseded source and company caveat."
+ },
+ "items": [
+ {
+ "id": "chunk-2",
+ "text": "## Item 4.02 Form 8-K Accession 0000907471-25-000071. Filed June 26, 2025. On June 26, 2025, the Audit Committee (the \"Audit Committee\") of the Board of Directors of Pathward Financial, Inc. (\"Pathward Financial\" or the \"Company\"), after discussion with management and the Company's independent registered public accounting firm, Crowe LLP, concluded that the Company's audited consolidated financial statements as of the fiscal years ended September 30, 2024 and 2023, and for each year in the three fiscal year period ended September 30, 2024 contained in its Annual Reports on Form 10-K, and its unaudited consolidated financial statements as of and for the interim periods ended December 31, 2024, 2023, 2022, and 2021, March 31, 2024, 2023, and 2022, and June 30, 2024, 2023, and 2022 contained in its Quarterly Reports on Form 10-Q (collectively, the \"Affected Periods\") should no longer be relied upon because of errors identified in such financial statements, as described below. Similarly, any financial information in the Company's prior earnings releases, press releases, shareholder communications, investor presentations or other communications that relates to the Affected Periods or the fiscal quarter ended March 31, 2025 should no longer be relied upon. The change from net to gross basis presentation does not impact net income over the life of the portfolio, but changes the timing of when elements of the programs are recognized for accounting purposes."
+ },
+ {
+ "id": "chunk-0",
+ "text": "# Pathward Financial source excerpts"
+ },
+ {
+ "id": "chunk-1",
+ "text": "## Original Form 10-Q Accession 0000907471-23-000090. Filed August 8, 2023. Three Months Ended June 30, 2023 | (Dollars in thousands, except per share data) | 2023 | 2022 | 2023 | 2022 | |-------------------------------------------------|---------|---------|----------|----------| | Net income attributable to parent | $45,096 | $22,391 | $127,709 | $132,966 | | Diluted | $1.68 | $0.76 | $4.62 | $4.44 |"
+ },
+ {
+ "id": "chunk-3",
+ "text": "## Restated Form 10-K/A Accession 0000907471-25-000083. Filed August 29, 2025. Three Months Ended June 30, 2023 | (Dollars in thousands, except per share data) | As Previously Reported on Form 10-Q | Restatement Adjustment | Restatement Reference | As Restated | As Previously Reported on Form 10-Q | Restatement Adjustment | Restatement Reference | As Restated | |-------------------------------------------------|---------------------------------------|--------------------------|-------------------------|---------------|---------------------------------------|--------------------------|-------------------------|---------------| | Net income attributable to parent | $45,096 | $(9,016) | | $36,080 | $127,709 | $(9,721) | | $117,988 | | Diluted | $1.68 | | | $1.34 | $4.62 | | | $4.27 |"
+ }
+ ]
+}
diff --git a/examples/financial-filing-agent/verified-run/raw/rerank.json b/examples/financial-filing-agent/verified-run/raw/rerank.json
index 89ad764c2..d77194828 100644
--- a/examples/financial-filing-agent/verified-run/raw/rerank.json
+++ b/examples/financial-filing-agent/verified-run/raw/rerank.json
@@ -22,8 +22,21 @@
"rank": 3
}
],
- "query_id": "filing-query",
"usage": {
- "input_tokens": 1261
+ "input_tokens": 1261,
+ "credits_charged": 25,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "request": {
+ "id": "019fe896-873e-7e43-83e8-6e9088d8f3c2",
+ "credits_debited": 25,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 1261,
+ "pairs": 4,
+ "credits_charged": 25,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
}
}
diff --git a/examples/financial-filing-agent/verified-run/raw/retrieve.json b/examples/financial-filing-agent/verified-run/raw/retrieve.json
index ac617af8c..6cb538e96 100644
--- a/examples/financial-filing-agent/verified-run/raw/retrieve.json
+++ b/examples/financial-filing-agent/verified-run/raw/retrieve.json
@@ -1028,12 +1028,16 @@
-0.0172119140625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 861.367357000006,
- "queue_ms": 0.2196720000000596,
- "tokenization_ms": 0.03230199999393335,
- "inference_ms": 860.4978090000088,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe896-836c-7780-8e74-06af44d1170c",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 38,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
"chunks": [
@@ -2066,12 +2070,16 @@
-0.0247802734375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 577.1929359999888,
- "queue_ms": 1.3034309999966354,
- "tokenization_ms": 0.027122000005874725,
- "inference_ms": 575.6982549999918,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe896-844d-72f1-9cd9-ecd83b0788fc",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 11,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -3103,12 +3111,16 @@
-0.017578125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 19.72872899999345,
- "queue_ms": 1.676742000000786,
- "tokenization_ms": 0.026200999997172403,
- "inference_ms": 17.882537999994952,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe896-8506-7c42-8445-b74c9ddef39e",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 138,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -4140,12 +4152,16 @@
-0.0030975341796875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 21.886456999993698,
- "queue_ms": 1.8019080000044596,
- "tokenization_ms": 0.02770199999702072,
- "inference_ms": 19.888257999994607,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe896-85c5-7391-b628-68114c894936",
+ "credits_debited": 2,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 343,
+ "credits_charged": 2,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -5177,12 +5193,16 @@
0.0062255859375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 38.36914800000102,
- "queue_ms": 2.0695329999966816,
- "tokenization_ms": 0.0238610000025119,
- "inference_ms": 36.12417499999765,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe896-8683-7320-918c-fad04527a3b0",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 238,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
}
],
diff --git a/examples/insurance-claims-agent/README.md b/examples/insurance-claims-agent/README.md
index 287220958..f98daa384 100644
--- a/examples/insurance-claims-agent/README.md
+++ b/examples/insurance-claims-agent/README.md
@@ -17,7 +17,7 @@ and debris removal from the yard remain outside that covered scope.
| Parse the appeal and policy | `docling` | Markdown with the record, amounts, rules, analysis, and conclusion |
| Extract claim facts | `fastino/gliner2-large-v1` | Amounts, debris volume, loss date, and coverage terms |
| Retrieve controlling policy language | `Qwen/Qwen3-Reranker-4B` | Ranked passages about non-owned debris removal |
-| Produce the cited review | `Qwen/Qwen3.5-4B` | JSON separating covered work, excluded costs, and evidence still needed |
+| Produce the cited review | `Qwen/Qwen3.6-27B` | JSON separating covered work, excluded costs, and evidence still needed |
Every model call goes through SIE.
@@ -30,12 +30,13 @@ The evaluator checks facts stated in FEMA's published decision:
- barge estimate: `$181,832.94`;
- covered physical scope: `12` to `15` cubic yards beneath the building;
- excluded scope: barge transport, handling, disposal, and yard removal;
-- follow-up evidence: comparison estimates and proof of work from prior claims.
+- follow-up evidence: comparison estimates, repair and pricing records, and
+ verification that same-area debris removal happened before the July 2019 flood.
The model summarizes a completed public appeal. It does not decide a live claim.
-The [`verified-run`](verified-run/) directory records a July 26, 2026, run in
-which all ten factual checks passed.
+The [`verified-run`](verified-run/) directory records an August 10, 2026, prod-US
+run in which all ten factual checks passed.
## Run it
@@ -64,7 +65,7 @@ separate ports:
sie-server serve --port 8080
# Terminal 2: Qwen generation
-sie-server serve --models Qwen/Qwen3.5-4B:no-spec --port 8081
+sie-server serve --models Qwen/Qwen3.6-27B --port 8081
SIE_GENERATION_URL=http://localhost:8081 uv run review-claim --run-id local
```
@@ -84,7 +85,7 @@ runs/<run-id>/manifest.json endpoints, models, and per-call latency
runs/<run-id>/source-manifest.json source URLs, rights, sizes, and checksums
runs/<run-id>/default-stage.json default-bundle endpoint, models, and timings
runs/<run-id>/markdown/*.md parsed appeal decision and policy
-runs/<run-id>/claim-facts.json extracted amounts, dates, and scope phrases
+runs/<run-id>/claim-facts.json extracted claim amounts and debris volume
runs/<run-id>/policy-evidence.json reranked policy passages
runs/<run-id>/review.json structured appeal review
runs/<run-id>/evaluation.json deterministic factual checks
diff --git a/examples/insurance-claims-agent/config.yaml b/examples/insurance-claims-agent/config.yaml
index bded941db..b8abf913a 100644
--- a/examples/insurance-claims-agent/config.yaml
+++ b/examples/insurance-claims-agent/config.yaml
@@ -9,7 +9,7 @@ models:
parse: "docling"
extract: "fastino/gliner2-large-v1"
rerank: "Qwen/Qwen3-Reranker-4B"
- review: "Qwen/Qwen3.5-4B"
+ review: "Qwen/Qwen3.6-27B"
retrieval:
candidate_chunks: 16
diff --git a/examples/insurance-claims-agent/insurance_claims/evaluate.py b/examples/insurance-claims-agent/insurance_claims/evaluate.py
index 8db9e382b..3ca22c7e2 100644
--- a/examples/insurance-claims-agent/insurance_claims/evaluate.py
+++ b/examples/insurance-claims-agent/insurance_claims/evaluate.py
@@ -37,6 +37,27 @@ def evaluate_review(review: dict[str, Any]) -> list[Check]:
excluded = str(decision.get("excluded_scope", "")).casefold()
evidence = str(decision.get("evidence_needed", "")).casefold()
overlap = str(decision.get("prior_claim_check", "")).casefold()
+ overlap_findings = [
+ str(finding.get("evidence", "")).casefold()
+ for finding in findings
+ if finding.get("category") == "prior_claim_overlap"
+ ]
+ overlap_actions = [
+ str(action).casefold()
+ for action in review.get("next_actions", [])
+ if "prior claim" in str(action).casefold()
+ or "previous claim" in str(action).casefold()
+ or "payment overlap" in str(action).casefold()
+ ]
+
+ def preserves_prior_claim_timing(value: str) -> bool:
+ return (
+ ("same area" in value or "underneath the building" in value)
+ and "before" in value
+ and "july 2019" in value
+ and "repair" in value
+ and "pric" in value
+ )
return [
Check(
@@ -81,8 +102,10 @@ def evaluate_review(review: dict[str, Any]) -> list[Check]:
),
Check(
"prior-claim-overlap",
- "previous" in overlap or "prior" in overlap,
- str(decision.get("prior_claim_check")),
+ bool(overlap_findings)
+ and bool(overlap_actions)
+ and all(preserves_prior_claim_timing(value) for value in (overlap, *overlap_findings, *overlap_actions)),
+ " | ".join((overlap, *overlap_findings, *overlap_actions)),
),
Check(
"finding-categories",
diff --git a/examples/insurance-claims-agent/insurance_claims/review.py b/examples/insurance-claims-agent/insurance_claims/review.py
index cb0f80f15..ba24bcc6d 100644
--- a/examples/insurance-claims-agent/insurance_claims/review.py
+++ b/examples/insurance-claims-agent/insurance_claims/review.py
@@ -1,7 +1,9 @@
from __future__ import annotations
import argparse
+import hashlib
import json
+import re
import time
from datetime import UTC, datetime
from pathlib import Path
@@ -18,9 +20,31 @@ from insurance_claims.config import (
load_config,
source_by_slug,
)
+from insurance_claims.evaluate import ARTIFACT_EXCLUDED_PATHS
console = Console()
+
+def _validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError("run_id must be one safe directory name containing only letters, digits, '.', '_', or '-'")
+ return run_id
+
+
+def _artifact_entries(run_dir: Path) -> list[dict[str, str]]:
+ return [
+ {
+ "path": path.relative_to(run_dir).as_posix(),
+ "sha256": hashlib.sha256(path.read_bytes()).hexdigest(),
+ }
+ for path in sorted(run_dir.rglob("*"))
+ if path.is_file() and path.relative_to(run_dir) not in ARTIFACT_EXCLUDED_PATHS
+ ]
+
+
POLICY_QUERY = (
"What does the Standard Flood Insurance Policy cover for removal of non-owned flood debris "
"on or in insured property, and which transport, disposal, or yard-removal costs are excluded?"
@@ -140,6 +164,71 @@ def _write_json(path: Path, value: Any) -> None:
)
+def _charged_request_rows(value: Any) -> list[tuple[dict[str, Any], dict[str, Any]]]:
+ rows: list[tuple[dict[str, Any], dict[str, Any]]] = []
+ if isinstance(value, dict):
+ request = value.get("request")
+ if isinstance(request, dict) and request.get("credits_debited"):
+ usage = request.get("usage")
+ if not isinstance(usage, dict):
+ usage = value.get("usage")
+ rows.append((request, usage if isinstance(usage, dict) else {}))
+ for child in value.values():
+ rows.extend(_charged_request_rows(child))
+ elif isinstance(value, list):
+ for child in value:
+ rows.extend(_charged_request_rows(child))
+ return rows
+
+
+def _request_rate_book_version(request: dict[str, Any], usage: dict[str, Any], source: str) -> str:
+ direct_present = "rate_book_version" in request
+ usage_present = "rate_book_version" in usage
+ direct = request.get("rate_book_version")
+ nested = usage.get("rate_book_version")
+ if direct_present and (not isinstance(direct, str) or not direct):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if usage_present and (not isinstance(nested, str) or not nested):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if direct_present and usage_present and direct != nested:
+ raise RuntimeError(f"{source} has conflicting rate-book versions for one request")
+ version = direct if direct_present else nested
+ if not isinstance(version, str) or not version:
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ return version
+
+
+def _rate_book_provenance(raw_dir: Path) -> dict[str, Any]:
+ versions: set[str] = set()
+ source_artifacts: list[str] = []
+ request_ids: list[str] = []
+ request_versions: dict[str, str] = {}
+ for path in sorted(raw_dir.glob("*.json")):
+ result = json.loads(path.read_text(encoding="utf-8"))
+ charged_rows = _charged_request_rows(result)
+ if charged_rows:
+ source_artifacts.append(f"raw/{path.name}")
+ for request, usage in charged_rows:
+ request_id = request.get("id")
+ if not isinstance(request_id, str) or not request_id:
+ raise RuntimeError(f"{path.name} has a charged request without an ID")
+ request_ids.append(request_id)
+ version = _request_rate_book_version(request, usage, path.name)
+ versions.add(version)
+ request_versions[request_id] = version
+ if len(request_ids) != len(set(request_ids)):
+ raise RuntimeError("Run contains duplicate charged request IDs")
+ if len(versions) != 1 or not request_ids:
+ raise RuntimeError("Run does not establish one settled rate book for charged requests")
+ version = versions.pop()
+ return {
+ "version": version,
+ "source_artifacts": source_artifacts,
+ "request_ids": request_ids,
+ "request_versions": request_versions,
+ }
+
+
def _parse_document(
client: SIEClient,
model: str,
@@ -247,18 +336,22 @@ def _extract_claim_facts(
provision_timeout_s: float,
) -> tuple[dict[str, Any], float]:
labels = [
- "proof of loss amount",
+ "amended proof of loss total",
"debris removal estimate",
"barge transportation estimate",
"debris volume",
- "date of loss",
- "covered debris removal scope",
- "excluded debris cost",
]
+ event_start = markdown.find("The insurer reviewed")
+ issue_start = markdown.find("## ISSUE", event_start)
+ if event_start >= 0:
+ excerpt_end = issue_start if issue_start > event_start else event_start + 4000
+ claim_excerpt = markdown[event_start:excerpt_end]
+ else:
+ claim_excerpt = markdown[:4000]
started = time.perf_counter()
result = client.extract(
model,
- Item(id="appeal-facts", text=markdown[:12000]),
+ Item(id="appeal-facts", text=claim_excerpt),
labels=labels,
wait_for_capacity=True,
provision_timeout_s=provision_timeout_s,
@@ -298,7 +391,13 @@ Read the decision's background, rules, analysis, and conclusion. Separate the
physical work FEMA directed the insurer to cover from transport, handling,
disposal, yard work, and other costs outside that scope. Preserve the three
published dollar amounts and the debris-volume range exactly. Record the
-additional price evidence and prior-claim checks FEMA requested.
+additional price evidence and prior-claim checks FEMA requested. Preserve that,
+before paying the July 2019 flood claim, the insurer must verify that debris
+removal for the same area underneath the building occurred before that flood.
+
+Actions must preserve the published partial-coverage result: direct payment for
+covered under-building removal and deny only excluded transport, disposal, and
+yard-work components. Never recommend denial of the entire debris-removal claim.
This is a summary of a completed public appeal. Do not make a new coverage or
payment decision. Cite only the source identifiers allowed by the schema.
@@ -344,6 +443,57 @@ schema.<|im_end|>
return result, _json_object_from_text(content), duration_ms
+def _source_prior_claim_check(appeal_markdown: str) -> str:
+ normalized_source = " ".join(appeal_markdown.split())
+ temporal_match = re.search(
+ r"Before issuing any additional payment for the subject July 2019 flood event, "
+ r"the insurer should verify that debris removal for the same area underneath "
+ r"the building was performed before the July 2019 flood event\.",
+ normalized_source,
+ re.IGNORECASE,
+ )
+ if temporal_match is None or "proof of repairs and price" not in normalized_source.casefold():
+ raise RuntimeError("FEMA source omitted the required prior-claim evidence")
+ temporal_check = temporal_match.group().rstrip(".")
+ return f"{temporal_check}; retain proof of repairs and pricing from previous losses to prevent payment overlap"
+
+
+def _align_prior_claim_evidence(review: dict[str, Any], source_prior_claim_check: str) -> dict[str, Any]:
+ decision = review.get("decision")
+ findings = review.get("findings")
+ next_actions = review.get("next_actions")
+ if not isinstance(decision, dict) or not isinstance(findings, list) or not isinstance(next_actions, list):
+ raise TypeError("Review omitted prior-claim decision surfaces")
+ if not str(decision.get("prior_claim_check", "")).strip():
+ raise RuntimeError("Review omitted the prior-claim decision")
+ aligned_check = source_prior_claim_check
+ overlap_findings = [
+ finding
+ for finding in findings
+ if isinstance(finding, dict) and finding.get("category") == "prior_claim_overlap"
+ ]
+ action_indexes = [
+ index
+ for index, action in enumerate(next_actions)
+ if "prior claim" in str(action).casefold()
+ or "previous claim" in str(action).casefold()
+ or "payment overlap" in str(action).casefold()
+ ]
+ if len(overlap_findings) != 1 or not action_indexes:
+ raise RuntimeError("Review must contain a prior-claim finding and action")
+ decision["prior_claim_check"] = aligned_check
+ overlap_findings[0]["evidence"] = aligned_check
+ aligned_action = aligned_check
+ first_action_index = action_indexes[0]
+ duplicate_action_indexes = set(action_indexes[1:])
+ next_actions[:] = [
+ aligned_action if index == first_action_index else action
+ for index, action in enumerate(next_actions)
+ if index not in duplicate_action_indexes
+ ]
+ return review
+
+
def _require_sources() -> None:
config = load_config()
required_paths = [
@@ -357,6 +507,7 @@ def _require_sources() -> None:
def run_default_stage(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
run_dir = RUNS_DIR / run_id
if run_dir.exists():
raise FileExistsError(
@@ -443,6 +594,7 @@ def run_default_stage(run_id: str) -> Path:
def run_generation_stage(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
config = load_config()
_require_sources()
run_dir = RUNS_DIR / run_id
@@ -472,10 +624,15 @@ def run_generation_stage(run_id: str) -> Path:
provision_timeout_s=config.cluster.provision_timeout_s,
)
_write_json(raw_dir / "review-completion.json", review_raw)
+ review = _align_prior_claim_evidence(review, _source_prior_claim_check(appeal_markdown))
_write_json(run_dir / "review.json", review)
finally:
client.close()
+ _write_json(
+ run_dir / "source-manifest.json",
+ json.loads((DATA_DIR / "source-manifest.json").read_text(encoding="utf-8")),
+ )
manifest = {
"run_id": run_id,
"run_at": datetime.now(UTC).isoformat(),
@@ -488,15 +645,13 @@ def run_generation_stage(run_id: str) -> Path:
**default_stage["models"],
"review": config.models.review,
},
+ "rate_book_provenance": _rate_book_provenance(raw_dir),
"timings_ms": timings,
"source_manifest": "source-manifest.json",
"review": "review.json",
+ "artifacts": _artifact_entries(run_dir),
}
_write_json(run_dir / "manifest.json", manifest)
- _write_json(
- run_dir / "source-manifest.json",
- json.loads((DATA_DIR / "source-manifest.json").read_text(encoding="utf-8")),
- )
table = Table("Model call", "Latency")
for name, duration_ms in timings.items():
diff --git a/examples/insurance-claims-agent/pyproject.toml b/examples/insurance-claims-agent/pyproject.toml
index 3b365fb45..f9188a965 100644
--- a/examples/insurance-claims-agent/pyproject.toml
+++ b/examples/insurance-claims-agent/pyproject.toml
@@ -8,7 +8,7 @@ dependencies = [
"python-dotenv>=1.0",
"pyyaml>=6.0",
"rich>=13.7",
- "sie-sdk>=0.6.23",
+ "sie-sdk==0.7.1",
]
[project.scripts]
diff --git a/examples/insurance-claims-agent/tests/test_config.py b/examples/insurance-claims-agent/tests/test_config.py
index b1cdb69ac..f1df4e617 100644
--- a/examples/insurance-claims-agent/tests/test_config.py
+++ b/examples/insurance-claims-agent/tests/test_config.py
@@ -17,7 +17,7 @@ def test_source_set_uses_public_fema_documents() -> None:
assert config.models.parse == "docling"
assert config.models.extract == "fastino/gliner2-large-v1"
assert config.models.rerank == "Qwen/Qwen3-Reranker-4B"
- assert config.models.review == "Qwen/Qwen3.5-4B"
+ assert config.models.review == "Qwen/Qwen3.6-27B"
def test_bundled_sources_match_the_verified_source_manifest() -> None:
diff --git a/examples/insurance-claims-agent/tests/test_review.py b/examples/insurance-claims-agent/tests/test_review.py
index 5b33589d2..f6f55fbc3 100644
--- a/examples/insurance-claims-agent/tests/test_review.py
+++ b/examples/insurance-claims-agent/tests/test_review.py
@@ -7,14 +7,17 @@ from pathlib import Path
from types import SimpleNamespace
import pytest
+from sie_sdk import Item
import insurance_claims.review as review_module
from insurance_claims.evaluate import ARTIFACT_EXCLUDED_PATHS, evaluate_review, evaluate_run
from insurance_claims.review import (
REVIEW_SCHEMA,
+ _artifact_entries,
_extract_claim_facts,
_final_review,
_json_object_from_text,
+ _rate_book_provenance,
_require_sources,
chunk_markdown,
run_default_stage,
@@ -24,16 +27,26 @@ ROOT = Path(__file__).resolve().parents[1]
VERIFIED_RUN = ROOT / "verified-run"
[email protected]("run_id", ["", ".", "..", "../escape", "nested/run", "nested\\run"])
+def test_run_stages_reject_unsafe_run_id(run_id: str) -> None:
+ with pytest.raises(ValueError, match="safe directory name"):
+ review_module.run_default_stage(run_id)
+ with pytest.raises(ValueError, match="safe directory name"):
+ review_module.run_generation_stage(run_id)
+
+
class FakeExtractClient:
def __init__(self) -> None:
self.labels: list[str] | None = None
+ self.item: Item | None = None
def extract(
self,
_model: str,
- _item: object,
+ _item: Item,
**kwargs: object,
) -> dict[str, object]:
+ self.item = _item
self.labels = kwargs.get("labels") # type: ignore[assignment]
return {"data": {"entities": []}}
@@ -67,16 +80,27 @@ def test_claim_fact_extraction_passes_domain_labels() -> None:
)
assert client.labels == [
- "proof of loss amount",
+ "amended proof of loss total",
"debris removal estimate",
"barge transportation estimate",
"debris volume",
- "date of loss",
- "covered debris removal scope",
- "excluded debris cost",
]
+def test_claim_fact_extraction_starts_at_appeal_when_issue_heading_is_absent() -> None:
+ client = FakeExtractClient()
+
+ _extract_claim_facts(
+ client,
+ "fastino/gliner2-large-v1",
+ "irrelevant policy preface\n\nThe insurer reviewed the amended claim.",
+ 60,
+ )
+
+ assert client.item is not None
+ assert client.item["text"] == "The insurer reviewed the amended claim."
+
+
def test_review_json_accepts_fenced_model_output() -> None:
assert _json_object_from_text('```json\n{"route": "scope_review_required"}\n```') == {
"route": "scope_review_required"
@@ -88,7 +112,7 @@ def test_final_review_uses_native_strict_json_schema() -> None:
_, parsed, _ = _final_review(
client,
- "Qwen/Qwen3.5-4B",
+ "Qwen/Qwen3.6-27B",
appeal_markdown="appeal",
claim_facts={},
policy_chunks=[],
@@ -104,6 +128,10 @@ def test_final_review_uses_native_strict_json_schema() -> None:
def test_evaluation_accepts_published_appeal_result() -> None:
+ prior_claim_check = (
+ "Review prior claims to verify debris removal underneath the building in the "
+ "same area occurred before the July 2019 flood; retain repair and pricing records."
+ )
review = {
"route": "scope_review_required",
"appeal_summary": {
@@ -117,22 +145,48 @@ def test_evaluation_accepts_published_appeal_result() -> None:
"covered_scope": ("Remove flood-borne stones from underneath the insured building to its perimeter."),
"excluded_scope": ("Barge transport, handling, disposal, and yard removal."),
"evidence_needed": "Other contractor estimates.",
- "prior_claim_check": "Proof of repairs from previous claims.",
+ "prior_claim_check": prior_claim_check,
},
"findings": [
{"category": "covered_removal"},
{"category": "excluded_transport"},
{"category": "price_support"},
- {"category": "prior_claim_overlap"},
+ {"category": "prior_claim_overlap", "evidence": prior_claim_check},
# Synthetic schema-valid category used only to test evaluator tolerance.
{"category": "other"},
],
+ "next_actions": [f"Insurer to {prior_claim_check[0].lower()}{prior_claim_check[1:]}"],
}
assert all(check.passed for check in evaluate_review(review))
+def test_evaluation_rejects_a_later_ungrounded_prior_claim_value() -> None:
+ grounded = (
+ "Review prior claims to verify debris removal underneath the building in the "
+ "same area occurred before the July 2019 flood; retain repair and pricing records."
+ )
+ review = {
+ "decision": {"prior_claim_check": grounded},
+ "findings": [
+ {"category": "prior_claim_overlap", "evidence": grounded},
+ {
+ "category": "prior_claim_overlap",
+ "evidence": "Check prior claim payment overlap without source details.",
+ },
+ ],
+ "next_actions": [grounded, "Review a prior claim without source details."],
+ }
+
+ checks = {check.name: check for check in evaluate_review(review)}
+ assert checks["prior-claim-overlap"].passed is False
+
+
def test_evaluation_rejects_the_wrong_proof_of_loss_amount() -> None:
+ prior_claim_check = (
+ "Review prior claims to verify debris removal underneath the building in the "
+ "same area occurred before the July 2019 flood; retain repair and pricing records."
+ )
review = {
"route": "scope_review_required",
"appeal_summary": {
@@ -146,20 +200,77 @@ def test_evaluation_rejects_the_wrong_proof_of_loss_amount() -> None:
"covered_scope": "Remove flood-borne stones from underneath the insured building to its perimeter.",
"excluded_scope": "Barge transport, handling, disposal, and yard removal.",
"evidence_needed": "Other contractor estimates.",
- "prior_claim_check": "Proof of repairs from previous claims.",
+ "prior_claim_check": prior_claim_check,
},
"findings": [
{"category": "covered_removal"},
{"category": "excluded_transport"},
{"category": "price_support"},
- {"category": "prior_claim_overlap"},
+ {"category": "prior_claim_overlap", "evidence": prior_claim_check},
],
+ "next_actions": [f"Insurer to {prior_claim_check[0].lower()}{prior_claim_check[1:]}"],
}
checks = {check.name: check for check in evaluate_review(review)}
assert {name for name, check in checks.items() if not check.passed} == {"proof-of-loss-amount"}
+def test_prior_claim_alignment_preserves_timing_in_finding_and_action() -> None:
+ review = {
+ "decision": {
+ "prior_claim_check": (
+ "Review prior claims to verify debris removal for the same area "
+ "underneath the building was performed before the July 2019 flood event"
+ )
+ },
+ "findings": [
+ {
+ "category": "prior_claim_overlap",
+ "evidence": "Verify prior payments.",
+ }
+ ],
+ "next_actions": [
+ "Insurer to verify prior claim payments.",
+ "Provide repair records from previous claims.",
+ "Keep the unrelated coverage action.",
+ ],
+ }
+
+ source_check = (
+ "Before issuing any additional payment for the subject July 2019 flood event, "
+ "the insurer should verify that debris removal for the same area underneath "
+ "the building was performed before the July 2019 flood event; retain proof "
+ "of repairs and pricing from previous losses to prevent payment overlap"
+ )
+ aligned = review_module._align_prior_claim_evidence(review, source_check)
+ values = (
+ aligned["decision"]["prior_claim_check"],
+ aligned["findings"][0]["evidence"],
+ aligned["next_actions"][0],
+ )
+ assert all("before the July 2019 flood" in value for value in values)
+ assert all("proof of repairs and pricing" in value for value in values)
+ assert aligned["next_actions"] == [
+ values[2],
+ "Keep the unrelated coverage action.",
+ ]
+
+
+def test_prior_claim_alignment_is_derived_from_the_fema_source() -> None:
+ source = (
+ "The policyholder should provide proof of repairs and price from the previous "
+ "losses. Before issuing any additional payment for the subject July 2019 flood "
+ "event, the insurer should verify that debris removal for the same area "
+ "underneath the building was performed before the July 2019 flood event."
+ )
+
+ result = review_module._source_prior_claim_check(source)
+
+ assert "same area underneath the building" in result
+ assert "before the July 2019 flood event" in result
+ assert "proof of repairs and pricing" in result
+
+
def test_existing_run_id_has_an_actionable_error(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
(tmp_path / "local").mkdir()
@@ -201,6 +312,25 @@ def test_artifact_exclusions_only_apply_at_the_run_root(tmp_path: Path) -> None:
assert {"nested/README.md", "nested/manifest.json"} <= artifact_paths
+def test_generation_manifest_entries_cover_every_pre_manifest_artifact(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "review.json").write_text("{}\n", encoding="utf-8")
+ (tmp_path / "README.md").write_text("run documentation\n", encoding="utf-8")
+ raw = tmp_path / "raw"
+ raw.mkdir()
+ (raw / "response.json").write_text("{}\n", encoding="utf-8")
+ (tmp_path / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ entries = _artifact_entries(tmp_path)
+
+ assert {entry["path"] for entry in entries} == {
+ "raw/response.json",
+ "review.json",
+ }
+ assert all(len(entry["sha256"]) == 64 for entry in entries)
+
+
def test_verified_evaluation_recomputes_from_the_recorded_review() -> None:
review = json.loads((VERIFIED_RUN / "review.json").read_text(encoding="utf-8"))
recorded = json.loads((VERIFIED_RUN / "evaluation.json").read_text(encoding="utf-8"))
@@ -224,3 +354,73 @@ def test_verified_manifest_pins_every_recorded_artifact() -> None:
assert set(artifacts) == expected_paths
for path, expected_hash in artifacts.items():
assert hashlib.sha256((VERIFIED_RUN / path).read_bytes()).hexdigest() == expected_hash
+
+ provenance = manifest["rate_book_provenance"]
+ assert provenance == _rate_book_provenance(VERIFIED_RUN / "raw")
+ assert len(provenance["request_ids"]) == 5
+ assert provenance["request_versions"] == {
+ request_id: provenance["version"] for request_id in provenance["request_ids"]
+ }
+
+
+def test_rate_book_provenance_rejects_a_charged_request_without_its_own_version(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "complete.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-v1",
+ }
+ }
+ ),
+ encoding="utf-8",
+ )
+ (tmp_path / "missing.json").write_text(
+ json.dumps({"request": {"id": "request-2", "credits_debited": 1}}),
+ encoding="utf-8",
+ )
+
+ with pytest.raises(RuntimeError, match="without a rate-book version"):
+ _rate_book_provenance(tmp_path)
+
+
+def test_rate_book_provenance_prefers_request_usage(tmp_path: Path) -> None:
+ (tmp_path / "nested-usage.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "usage": {"rate_book_version": "nested-rate-v1"},
+ },
+ "usage": {"rate_book_version": "outer-rate-v1"},
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ assert _rate_book_provenance(tmp_path)["version"] == "nested-rate-v1"
+
+
+def test_rate_book_provenance_rejects_conflicting_request_versions(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "conflict.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "direct-rate-v1",
+ "usage": {"rate_book_version": "usage-rate-v2"},
+ }
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ with pytest.raises(RuntimeError, match="conflicting rate-book versions"):
+ _rate_book_provenance(tmp_path)
diff --git a/examples/insurance-claims-agent/uv.lock b/examples/insurance-claims-agent/uv.lock
index 49afe4f97..2784fd96e 100644
--- a/examples/insurance-claims-agent/uv.lock
+++ b/examples/insurance-claims-agent/uv.lock
@@ -202,7 +202,7 @@ requires-dist = [
{ name = "python-dotenv", specifier = ">=1.0" },
{ name = "pyyaml", specifier = ">=6.0" },
{ name = "rich", specifier = ">=13.7" },
- { name = "sie-sdk", specifier = ">=0.6.23" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -463,7 +463,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.23"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -475,9 +475,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/22/c0/b0fd1ecb9cfd92271a22de027b2d924b16b1d5b526332da38e0a1265373c/sie_sdk-0.6.23.tar.gz", hash = "sha256:7a7455badd364b8bff05d3f36004ad959e524dd9fef3d1bf4148a67eb5132778", size = 197836, upload-time = "2026-07-24T04:05:17.119Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/bd/58/ecf8d19e4a5e8797781433ebaf2e5034610c896d5a5595e7c901df34099e/sie_sdk-0.6.23-py3-none-any.whl", hash = "sha256:9e3d558a3b7b5d60f3d6deeededdd865b37a8ef7505dd922b5d2749e1efe1f0d", size = 130234, upload-time = "2026-07-24T04:05:15.755Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/insurance-claims-agent/verified-run/README.md b/examples/insurance-claims-agent/verified-run/README.md
index 973a0ff5f..1be9658bf 100644
--- a/examples/insurance-claims-agent/verified-run/README.md
+++ b/examples/insurance-claims-agent/verified-run/README.md
@@ -3,14 +3,13 @@
This directory records a successful run against FEMA Flood Insurance Appeal
Decision B8 and the Standard Flood Insurance Policy Dwelling Form.
-- Run ID: `verified-20260726b`
-- Run date: July 26, 2026
-- Hardware: one NVIDIA L4
-- Runtime: SIE on Modal
+- Run ID: `prod-us-20260810-sdk071-temporal`
+- Run date: August 10, 2026
+- Runtime: SIE Cloud prod-US at `https://api.superlinked.com`
- Evaluation: all ten factual checks passed
The run used `docling`, `fastino/gliner2-large-v1`,
-`BAAI/bge-reranker-v2-m3`, and `Qwen/Qwen3.5-4B:no-spec`.
+`Qwen/Qwen3-Reranker-4B`, and `Qwen/Qwen3.6-27B`.
`manifest.json` records the models, timings, and SHA-256 hash of every recorded
artifact. `source-manifest.json` pins the publisher URLs and source hashes.
diff --git a/examples/insurance-claims-agent/verified-run/claim-facts.json b/examples/insurance-claims-agent/verified-run/claim-facts.json
index e98c27b9b..6bc9ea039 100644
--- a/examples/insurance-claims-agent/verified-run/claim-facts.json
+++ b/examples/insurance-claims-agent/verified-run/claim-facts.json
@@ -1,59 +1,35 @@
{
"entities": [
{
- "text": "$935.67",
- "label": "excluded debris cost",
- "score": 0.80859375,
- "start": 2491,
- "end": 2498,
+ "text": "$182,552.00",
+ "label": "amended proof of loss total",
+ "score": 1.0,
+ "start": 71,
+ "end": 82,
"bbox": null
},
{
"text": "12 to 15 cubic yards",
"label": "debris volume",
- "score": 0.97802734375,
- "start": 2949,
- "end": 2969,
- "bbox": null
- },
- {
- "text": "$182,552.00",
- "label": "proof of loss amount",
- "score": 0.998046875,
- "start": 3065,
- "end": 3076,
+ "score": 1.0,
+ "start": 506,
+ "end": 526,
"bbox": null
},
{
"text": "$49,500.00",
"label": "debris removal estimate",
- "score": 0.9775390625,
- "start": 3726,
- "end": 3736,
+ "score": 0.99951171875,
+ "start": 732,
+ "end": 742,
"bbox": null
},
{
"text": "$181,832.94",
"label": "barge transportation estimate",
- "score": 0.9951171875,
- "start": 3813,
- "end": 3824,
- "bbox": null
- },
- {
- "text": "labor and equipment usage",
- "label": "covered debris removal scope",
- "score": 0.6630859375,
- "start": 7859,
- "end": 7884,
- "bbox": null
- },
- {
- "text": "July 2019",
- "label": "date of loss",
- "score": 0.99658203125,
- "start": 9635,
- "end": 9644,
+ "score": 1.0,
+ "start": 819,
+ "end": 830,
"bbox": null
}
],
@@ -61,5 +37,16 @@
"classifications": [],
"objects": [],
"id": "appeal-facts",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feac8-349f-7aa0-851f-5e68c355c49c",
+ "credits_debited": 4,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 163,
+ "credits_charged": 4,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/insurance-claims-agent/verified-run/default-stage.json b/examples/insurance-claims-agent/verified-run/default-stage.json
new file mode 100644
index 000000000..f0327a420
--- /dev/null
+++ b/examples/insurance-claims-agent/verified-run/default-stage.json
@@ -0,0 +1,14 @@
+{
+ "endpoint": "https://api.superlinked.com",
+ "models": {
+ "parse": "docling",
+ "extract": "fastino/gliner2-large-v1",
+ "rerank": "Qwen/Qwen3-Reranker-4B"
+ },
+ "timings_ms": {
+ "parse_appeal_decision_ms": 1822.6,
+ "parse_policy_ms": 7178.9,
+ "extract_claim_facts_ms": 289.1,
+ "rerank_policy_ms": 2022.2
+ }
+}
diff --git a/examples/insurance-claims-agent/verified-run/evaluation.json b/examples/insurance-claims-agent/verified-run/evaluation.json
index 9a0ed680b..da13da42f 100644
--- a/examples/insurance-claims-agent/verified-run/evaluation.json
+++ b/examples/insurance-claims-agent/verified-run/evaluation.json
@@ -29,22 +29,22 @@
{
"name": "covered-scope",
"passed": true,
- "detail": "Labor and equipment usage to remove 12 to 15 cubic yards of flood-borne stones from underneath the insured building to the area around the perimeter of the building."
+ "detail": "Removal of non-owned flood-borne debris (stones) from underneath the insured building to the perimeter of the building."
},
{
"name": "excluded-scope",
"passed": true,
- "detail": "Disposal costs, yard work, carting debris from the perimeter into a barge, barge transportation, handling, and disposal of non-owned debris."
+ "detail": "Transportation by barge, handling, disposal, and yard work components outside the building's perimeter footprint."
},
{
"name": "price-support",
"passed": true,
- "detail": "Additional evidence that the contractor's estimated dollar amount is limited strictly to the covered scope of work (labor and equipment under the building). The $3,564 per cubic yard quote requires validation against other estimates."
+ "detail": "Additional evidence that the contractor's estimated dollar amount is limited to the covered scope of work; other debris removal estimates from one or more different contractors to verify pricing is reasonable and customary for the location and site conditions."
},
{
"name": "prior-claim-overlap",
"passed": true,
- "detail": "Verify documentation in the file for previous claims filed on May 20, 2019, May 29, 2019, and June 11, 2019, to ensure no payment overlap occurred for debris removal from the same area before the July 2019 event."
+ "detail": "before issuing any additional payment for the subject july 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the july 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap | before issuing any additional payment for the subject july 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the july 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap | before issuing any additional payment for the subject july 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the july 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap"
},
{
"name": "finding-categories",
diff --git a/examples/insurance-claims-agent/verified-run/manifest.json b/examples/insurance-claims-agent/verified-run/manifest.json
index 4ddafc6d0..37cd9c0f4 100644
--- a/examples/insurance-claims-agent/verified-run/manifest.json
+++ b/examples/insurance-claims-agent/verified-run/manifest.json
@@ -1,34 +1,62 @@
{
- "run_id": "verified-20260726b",
- "run_at": "2026-07-26T19:15:16.513930+00:00",
+ "run_id": "prod-us-20260810-sdk071-temporal",
+ "run_at": "2026-08-10T08:38:33.843127+00:00",
"public_record": true,
"endpoints": {
- "cluster": "http://localhost:8080",
- "generation": "http://127.0.0.1:8081"
+ "cluster": "https://api.superlinked.com",
+ "generation": "https://api.superlinked.com"
},
"models": {
"parse": "docling",
"extract": "fastino/gliner2-large-v1",
- "rerank": "BAAI/bge-reranker-v2-m3",
- "review": "Qwen/Qwen3.5-4B:no-spec"
+ "rerank": "Qwen/Qwen3-Reranker-4B",
+ "review": "Qwen/Qwen3.6-27B"
+ },
+ "rate_book_provenance": {
+ "version": "2026-08-09-production-bootstrap-v3",
+ "source_artifacts": [
+ "raw/appeal_decision-parse.json",
+ "raw/claim-facts.json",
+ "raw/policy-parse.json",
+ "raw/policy-rerank.json",
+ "raw/review-completion.json"
+ ],
+ "request_ids": [
+ "019feac8-1300-7a00-958a-8a609dc77699",
+ "019feac8-349f-7aa0-851f-5e68c355c49c",
+ "019feac8-1962-7b52-8f99-48997edcbcca",
+ "019feac8-35dd-7301-9912-d1e3a113b025",
+ "019fead2-5194-7bf2-97bc-569a0eb18318"
+ ],
+ "request_versions": {
+ "019feac8-1300-7a00-958a-8a609dc77699": "2026-08-09-production-bootstrap-v3",
+ "019feac8-349f-7aa0-851f-5e68c355c49c": "2026-08-09-production-bootstrap-v3",
+ "019feac8-1962-7b52-8f99-48997edcbcca": "2026-08-09-production-bootstrap-v3",
+ "019feac8-35dd-7301-9912-d1e3a113b025": "2026-08-09-production-bootstrap-v3",
+ "019fead2-5194-7bf2-97bc-569a0eb18318": "2026-08-09-production-bootstrap-v3"
+ }
},
"timings_ms": {
- "parse_appeal_decision_ms": 45521.1,
- "parse_policy_ms": 16451.1,
- "extract_claim_facts_ms": 12234.6,
- "rerank_policy_ms": 6310.6,
- "synthesize_review_ms": 151737.2
+ "parse_appeal_decision_ms": 1822.6,
+ "parse_policy_ms": 7178.9,
+ "extract_claim_facts_ms": 289.1,
+ "rerank_policy_ms": 2022.2,
+ "synthesize_review_ms": 34368.1
},
"source_manifest": "source-manifest.json",
"review": "review.json",
"artifacts": [
{
"path": "claim-facts.json",
- "sha256": "17afa9d8ec7c58087c156dcf732648ba9afc2b5d58e70f09b151cb2a81a5a397"
+ "sha256": "0750196083b01a5bcf0982de5f3519d5cb7a0173d575ff1a9b6f1ebad232d1e4"
+ },
+ {
+ "path": "default-stage.json",
+ "sha256": "009d43bc63d799969fa875fdf522da7f07df5efbf3fa561bdb498a1c51d8e756"
},
{
"path": "evaluation.json",
- "sha256": "1c54c3f1e25ccfa77de7943812b6f4ee91e9df1ebd1361c5e9f68b9dc8de8a17"
+ "sha256": "dc034a20c5027eb6fd63859beb3d16f93dd732bc8a2b415326a676eb22e51a08"
},
{
"path": "markdown/appeal_decision.md",
@@ -36,39 +64,39 @@
},
{
"path": "markdown/policy.md",
- "sha256": "2deb8ba947a79bd3158956e97e3292a842579dbda0601512e8a72bf660082686"
+ "sha256": "bcf5a6cb3939f9194f01e028f27c2d99da397d2a04a3bc8e9c7366b39e11b876"
},
{
"path": "policy-evidence.json",
- "sha256": "0380f44cb3e8e07fccb4b0db5b964439ef5f7cc051a9ad45594006fd68f08db7"
+ "sha256": "9af9db8a3f8f1fb339d1d7da1e8bafddb510803e32ec5199764984fee239b184"
},
{
"path": "raw/appeal_decision-parse.json",
- "sha256": "9b2a00510f652b2ee45bb9e0c2adf5c9934fc72e44d62c7b30ff5e2133509069"
+ "sha256": "4f66c89dbb708a8d3cf95bbf5cf3c5f7742f698b803b36cb519e096a65940be6"
},
{
"path": "raw/claim-facts.json",
- "sha256": "17afa9d8ec7c58087c156dcf732648ba9afc2b5d58e70f09b151cb2a81a5a397"
+ "sha256": "0750196083b01a5bcf0982de5f3519d5cb7a0173d575ff1a9b6f1ebad232d1e4"
},
{
"path": "raw/policy-parse.json",
- "sha256": "93ad890c597a82146a8200584241e291c25a70c6e9e4b709e14d7bf8a8222b76"
+ "sha256": "071df5e83e8f85c1949d6524a80244b98024ce17b9a97eaf35bb32e51ba98f20"
},
{
"path": "raw/policy-rerank.json",
- "sha256": "adb807da7e89c7901004042c8ef5f2342f3133f5f868b097a521fa9bcdc13456"
+ "sha256": "bfddba5dad6174f669bbbb9bb6d5fe39eb9eed8ac73f87e4ded23321c8bf55a2"
},
{
"path": "raw/review-completion.json",
- "sha256": "ffa30e9d6e40e411a25591bc289f9cf29902c5a1c63c7f2f56975bd77fe6d620"
+ "sha256": "6fd5ccae514ab9245fa2b43da8c17101b01bd6fdba9d13150f73fee9033268b0"
},
{
"path": "review.json",
- "sha256": "d26b0fe8aa8ee85c554ff3f2ca7fc48865458b79897b05906bf6b8e7e2be3987"
+ "sha256": "4bf2976227d331ae5ede5cae82be7f9c04ce725e34049a720ad2f6c890cb5300"
},
{
"path": "source-manifest.json",
- "sha256": "9d8892b929c8552a0b34a96421bb712ffbe57bb828363d030989438b1b06249e"
+ "sha256": "c5debd0004d1bb1920d455a2d0dd4b40b7c725232dd4f8017ae19f147bcfbe48"
}
]
}
diff --git a/examples/insurance-claims-agent/verified-run/markdown/policy.md b/examples/insurance-claims-agent/verified-run/markdown/policy.md
index bea52f7f4..5ce6d8a25 100644
--- a/examples/insurance-claims-agent/verified-run/markdown/policy.md
+++ b/examples/insurance-claims-agent/verified-run/markdown/policy.md
@@ -479,7 +479,7 @@ policy term, and follow the procedure in VII.D.3.a above.
We are not liable for loss that occurs while there is a hazard that is increased by any means within your control or knowledge.
-- G. Requirements in Case of Loss
+G. Requirements in Case of Loss
In case of a flood loss to insured property, you must:
diff --git a/examples/insurance-claims-agent/verified-run/policy-evidence.json b/examples/insurance-claims-agent/verified-run/policy-evidence.json
index 226829ef0..321a5ccbf 100644
--- a/examples/insurance-claims-agent/verified-run/policy-evidence.json
+++ b/examples/insurance-claims-agent/verified-run/policy-evidence.json
@@ -2,25 +2,25 @@
{
"chunk_id": "13",
"rank": 0,
- "score": 0.9503188729286194,
+ "score": 0.98046875,
"text": "## C. Coverage C-Other Coverages\n\n1. Debris Removal\n- a. We will pay the expense to remove non-owned debris that is on or in insured property and debris of insured property anywhere.\n- b. If you or a member of your household perform the removal work, the value of your work will be based on the Federal minimum wage.\n- c. This coverage does not increase the Coverage A or Coverage B limit of liability.\n2. Loss Avoidance Measures\n- a. Sandbags, Supplies, and Labor\n- (1) We will pay up to $1,000 for costs you incur to protect the insured building from a flood or imminent danger of flood, for the following:\n8. (a) Your reasonable expenses to buy:\n9. (i) Sandbags, including sand to fill them;\n10. (ii) Fill for temporary levees;\n11. (iii) Pumps; and\n12. (iv) Plastic sheeting and lumber used in connection with these items.\n13. (b) The value of work, at the Federal minimum wage, that you or a member of your house-hold perform.\n- (2) This coverage for Sandbags, Supplies, and Labor only applies if damage to insured property by or from flood is imminent and the threat of flood damage is apparent enough to lead a person of common prudence to anticipate flood damage. One of the following must also occur:\n15. (a) A general and temporary condition of flooding in the area near the described\n\nlocation must occur, even if the flood does not reach the building; or\n\n- (b) A legally authorized official must issue an evacuation order or other civil order for the community in which the building is located calling for measures to preserve life and property from the peril of flood.\n\nThis coverage does not increase the Coverage A or Coverage B limit of liability."
},
{
- "chunk_id": "23",
+ "chunk_id": "6",
"rank": 1,
- "score": 0.7388575673103333,
- "text": "- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\n## V. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer."
+ "score": 0.953125,
+ "text": "21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:"
},
{
- "chunk_id": "6",
+ "chunk_id": "23",
"rank": 2,
- "score": 0.48630863428115845,
- "text": "21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:"
+ "score": 0.53125,
+ "text": "- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\n## V. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer."
},
{
- "chunk_id": "18",
+ "chunk_id": "3",
"rank": 3,
- "score": 0.29108163714408875,
- "text": "- c. Under the minimum NFIP criteria at 44 CFR 60.3(b)(4), States and communities must require the elevation or floodproofing of buildings in unnumbered A zones to the base flood elevation where elevation data is obtained from a Federal, State, or other source. Such compliance activities are eligible for Coverage D.\n- d. Coverage D will pay for the incremental cost, after demolition or relocation, of elevating or floodproofing a building during its rebuilding at the same or another site to meet State or local floodplain management laws or ordinances, subject to Coverage D Exclusion 5.g below.\n- e. Coverage D will pay to bring a flood-damaged building into compliance with State or local floodplain management laws or ordinances even if the building had received a variance before the present loss from the applicable floodplain management requirements.\n\n## 4. Conditions\n\n- a. When a building insured under Coverage A-Building Property sustains a loss caused by a flood, our payment for the loss under this Coverage D will be for the increased cost to elevate, floodproof, relocate, or demolish (or any combination of these activities) caused by the enforcement of current State or local floodplain management ordinances or laws. Our payment for eligible demolition activities will be for the cost to demolish and clear the site of the building debris or a portion thereof caused by the enforcement of current State or local floodplain management\n\nordinances or laws. Eligible activities for the cost of clearing the site will include those necessary to discontinue utility service to the site and ensure proper abandonment of on-site utilities."
+ "score": 0.255859375,
+ "text": "1. Act. The National Flood Insurance Act of 1968 and any amendments to it.\n2. Actual Cash Value. The cost to replace an insured item of property at the time of loss, less the value of its physical depreciation.\n3. Application. The statement made and signed by you or your agent in applying for this policy. The application gives information we use to determine the eligibility of the risk, the kind of policy to be issued, and the correct premium payment. The application is part of this flood insurance policy.\n4. Base Flood. A flood having a one percent chance of being equaled or exceeded in any given year.\n5. Basement. Any area of a building, including any sunken room or sunken portion of a room, having its floor below ground level on all sides.\n6. Building\n- a. A structure with two or more outside rigid walls and a fully secured roof that is affixed to a permanent site;\n- b. A manufactured home, also known as a mobile home, is a structure: built on a permanent chassis, transported to its site in one or more sections, and affixed to a permanent foundation; or\n- c. A travel trailer without wheels, built on a chassis and affixed to a permanent foundation, that is regulated under the community's floodplain management and building ordinances or laws.\n\nBuilding does not mean a gas or liquid storage tank, shipping container, or a recreational vehicle, park trailer, or other similar vehicle, except as described in C.6.c above."
}
]
diff --git a/examples/insurance-claims-agent/verified-run/raw/appeal_decision-parse.json b/examples/insurance-claims-agent/verified-run/raw/appeal_decision-parse.json
index 93b72b13b..1948e8fd0 100644
--- a/examples/insurance-claims-agent/verified-run/raw/appeal_decision-parse.json
+++ b/examples/insurance-claims-agent/verified-run/raw/appeal_decision-parse.json
@@ -1439,10 +1439,10 @@
{
"page_no": 1,
"bbox": {
- "l": 413.9941101074219,
- "t": 752.6048812866211,
- "r": 562.3366088867188,
- "b": 699.749885559082,
+ "l": 413.9949951171875,
+ "t": 752.6038970947266,
+ "r": 562.334716796875,
+ "b": 699.7497940063477,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -1492,5 +1492,16 @@
}
}
},
- "model": "docling"
+ "model": "docling",
+ "request": {
+ "id": "019feac8-1300-7a00-958a-8a609dc77699",
+ "credits_debited": 159,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "pages": 4,
+ "credits_charged": 159,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/insurance-claims-agent/verified-run/raw/claim-facts.json b/examples/insurance-claims-agent/verified-run/raw/claim-facts.json
index e98c27b9b..6bc9ea039 100644
--- a/examples/insurance-claims-agent/verified-run/raw/claim-facts.json
+++ b/examples/insurance-claims-agent/verified-run/raw/claim-facts.json
@@ -1,59 +1,35 @@
{
"entities": [
{
- "text": "$935.67",
- "label": "excluded debris cost",
- "score": 0.80859375,
- "start": 2491,
- "end": 2498,
+ "text": "$182,552.00",
+ "label": "amended proof of loss total",
+ "score": 1.0,
+ "start": 71,
+ "end": 82,
"bbox": null
},
{
"text": "12 to 15 cubic yards",
"label": "debris volume",
- "score": 0.97802734375,
- "start": 2949,
- "end": 2969,
- "bbox": null
- },
- {
- "text": "$182,552.00",
- "label": "proof of loss amount",
- "score": 0.998046875,
- "start": 3065,
- "end": 3076,
+ "score": 1.0,
+ "start": 506,
+ "end": 526,
"bbox": null
},
{
"text": "$49,500.00",
"label": "debris removal estimate",
- "score": 0.9775390625,
- "start": 3726,
- "end": 3736,
+ "score": 0.99951171875,
+ "start": 732,
+ "end": 742,
"bbox": null
},
{
"text": "$181,832.94",
"label": "barge transportation estimate",
- "score": 0.9951171875,
- "start": 3813,
- "end": 3824,
- "bbox": null
- },
- {
- "text": "labor and equipment usage",
- "label": "covered debris removal scope",
- "score": 0.6630859375,
- "start": 7859,
- "end": 7884,
- "bbox": null
- },
- {
- "text": "July 2019",
- "label": "date of loss",
- "score": 0.99658203125,
- "start": 9635,
- "end": 9644,
+ "score": 1.0,
+ "start": 819,
+ "end": 830,
"bbox": null
}
],
@@ -61,5 +37,16 @@
"classifications": [],
"objects": [],
"id": "appeal-facts",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feac8-349f-7aa0-851f-5e68c355c49c",
+ "credits_debited": 4,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 163,
+ "credits_charged": 4,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/insurance-claims-agent/verified-run/raw/policy-parse.json b/examples/insurance-claims-agent/verified-run/raw/policy-parse.json
index 431e5d002..d329e5c86 100644
--- a/examples/insurance-claims-agent/verified-run/raw/policy-parse.json
+++ b/examples/insurance-claims-agent/verified-run/raw/policy-parse.json
@@ -5,8 +5,8 @@
"objects": [],
"id": "sfip-dwelling-policy",
"data": {
- "text": "National Flood Insurance Program\n\nDwelling Form\n\nStandard Flood Insurance Policy\n\nF-122 / October 2021\n\nStandard Flood Insurance Policy\n\nDwelling Form\n\nPlease read the policy carefully. The flood insurance provided is subject to limitations, restrictions, and exclusions.\n\nI. AGREEMENT\n\n- A. This policy insures the following types of property only:\n1. A one to four family residential building, not under a condominium form of ownership;\n- E. This policy insures only one building. If you own more than one building, coverage will apply to the single building specifically described in the Flood Insurance Application.\n2. A single-family dwelling unit in a condominium building; and\n3. Personal property in a building.\n- B. The Federal Emergency Management Agency (FEMA) provides flood insurance under the terms of the National Flood Insurance Act of 1968 and its amendments, and Title 44 of the Code of Federal Regulations.\n- C. We will pay you for direct physical loss by or from flood to your insured property if you:\n1. Have paid the full amount due (including applicable premiums, surcharges, and fees);\n2. Comply with all terms and conditions of this policy; and\n3. Have furnished accurate information and statements.\n- D. We have the right to review the information you give us at any time and revise your policy based on our review.\n- F. Subject to the exception in I.G below, multiple policies with building coverage cannot be issued to insure a single building to one insured or to different insureds, even if separate policies were issued through different NFIP insurers. Payment for damages may only be made under a single policy for building damages under Coverage ABuilding Property.\n- G. A Dwelling Form policy with building coverage may be issued to a unit owner in a condominium building that is also insured under a Residential Condominium\n\nBuilding Association Policy (RCBAP). However, no more than $250,000 may be paid in combined benefits for a single unit under the Dwelling Form policy and the RCBAP. We will only pay for damage once. Items of damage paid for under an RCBAP cannot also be claimed under the Dwelling Form policy.\n\nII. DEFINITIONS\n\nA. In this policy, 'you' and 'your' refer to the named insured(s) shown on the Declarations Page of this policy and the spouse of the named insured, if a resident of the same household. Insured(s) also includes: Any mortgagee and loss payee named in the Application and Declarations Page, as well as any other mortgagee or loss payee determined to exist at the time of loss, in the order of precedence. 'We,' 'us,' and 'our' refer to the insurer.\n\nSome definitions are complex because they are provided as they appear in the law or regulations, or result from court cases.\n\n- B. Flood , as used in this flood insurance policy, means:\n1. A general and temporary condition of partial or complete inundation of two or more acres of normally dry land area or of two or more properties (one of which is your property) from:\n- a. Overflow of inland or tidal waters;\n- b. Unusual and rapid accumulation or runoff of surface waters from any source;\n- c. Mudflow.\n2. Collapse or subsidence of land along the shore of a lake or similar body of water as a result of erosion\n\nor undermining caused by waves or currents of water exceeding anticipated cyclical levels that result in a flood as defined in B.1.a above.\n\nC. The following are the other key definitions we use in this policy:\n\n1. Act. The National Flood Insurance Act of 1968 and any amendments to it.\n2. Actual Cash Value. The cost to replace an insured item of property at the time of loss, less the value of its physical depreciation.\n3. Application. The statement made and signed by you or your agent in applying for this policy. The application gives information we use to determine the eligibility of the risk, the kind of policy to be issued, and the correct premium payment. The application is part of this flood insurance policy.\n4. Base Flood. A flood having a one percent chance of being equaled or exceeded in any given year.\n5. Basement. Any area of a building, including any sunken room or sunken portion of a room, having its floor below ground level on all sides.\n6. Building\n- a. A structure with two or more outside rigid walls and a fully secured roof that is affixed to a permanent site;\n- b. A manufactured home, also known as a mobile home, is a structure: built on a permanent chassis, transported to its site in one or more sections, and affixed to a permanent foundation; or\n- c. A travel trailer without wheels, built on a chassis and affixed to a permanent foundation, that is regulated under the community's floodplain management and building ordinances or laws.\n\nBuilding does not mean a gas or liquid storage tank, shipping container, or a recreational vehicle, park trailer, or other similar vehicle, except as described in C.6.c above.\n\n7. Cancellation. The ending of the insurance coverage provided by this policy before the expiration date.\n8. Condominium. That form of ownership of one or more buildings in which each unit owner has an undivided interest in common elements.\n9. Condominium Association. The entity made up of the unit owners responsible for the maintenance and operation of:\n- a. Common elements owned in undivided shares by unit owners; and\n- b. Other buildings in which the unit owners have use rights; where membership in the entity is a required condition of ownership.\n10. Condominium Building. A type of building for which the form of ownership is one in which each unit owner has an undivided interest in common elements of the building.\n11. Declarations Page. A computer-generated summary of information you provided in your application for insurance. The Declarations Page also describes the term of the policy, limits of coverage, and displays the premium and our name. The Declarations Page is a part of this flood insurance policy.\n12. Deductible. The amount of an insured loss that is your responsibility and that is incurred by you before any amounts are paid for the insured loss under this policy.\n13. Described Location. The location where the insured building(s) or personal property are found. The described location is shown on the Declarations Page.\n14. D irect Physical Loss By or From Flood. Loss or damage to insured property, directly caused by a flood. There must be evidence of physical changes to the property.\n15. Dwelling. A building designed for use as a residence for no more than four families or a single-family unit in a condominium building.\n16. Elevated Building. A building that has no basement and that has its lowest elevated floor raised above ground level by foundation walls, shear walls, posts, piers, pilings, or columns.\n17. Emergency Program. The initial phase of a community's participation in the National Flood Insurance Program. During this phase, only limited amounts of insurance are available under the Act and the regulations prescribed pursuant to the Act.\n18. Federal Policy Fee. A flat rate charge you must pay on each new or renewal policy to defray certain administrative expenses incurred in carrying out the National Flood Insurance Program.\n19. Improvements. Fixtures, alterations, installations, or additions comprising a part of the dwelling or apartment in which you reside.\n20. Mudflow. A river of liquid and flowing mud on the surface of normally dry land areas, as when earth is carried by a current of water. Other earth movements, such as landslide, slope failure, or\n\na saturated soil mass moving by liquidity down a slope, are not mudflows.\n\n21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:\n\nIII. PROPERTY INSURED\n\nare always considered part of the dwelling and cannot be separately insured.\n\n- A detached garage at the described location. Coverage is limited to no more than 10 percent of the limit of liability on the dwelling. Use of this insurance is at your option but reduces the building limit of liability. We do not cover any detached garage used or held for use for residential (i.e., dwelling), business, or farming purposes.\n\nA. Coverage A-Building Property\n\nWe insure against direct physical loss by or from flood to:\n\n1. The dwelling at the described location, or for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n2. Additions and extensions attached to and in contact with the dwelling by means of a rigid exterior wall, a solid load-bearing interior wall, a stairway, an elevated walkway, or a roof. At your option, additions and extensions connected by any of these methods may be separately insured. Additions and extensions attached to and in contact with the building by means of a common interior wall that is not a solid load-bearing wall\n3. 3.\n\n4. Materials and supplies to be used for construction, alteration, or repair of the dwelling or a detached garage while the materials and supplies are stored in a fully enclosed building at the described location or on an adjacent property.\n5. A building under construction, alteration, or repair at the described location.\n- a. If the structure is not yet walled or roofed as described in the definition for building (see II.C.6.a) then coverage applies:\n- (1) Only while such work is in progress; or\n- (2) If such work is halted, only for a period of up to 90 continuous days thereafter.\n- b. However, coverage does not apply until the building is walled and roofed if the lowest floor, including the basement floor, of a non-elevated building or the lowest elevated floor of an elevated building is:\n- (1) Below the base flood elevation in Zones AH, AE, A1-A30, AR, AR/AE, AR/ AH, AR/A1-A30, AR/A, AR/AO; or\n- (2) Below the base flood elevation adjusted to include the effect of wave action in Zones VE or V1-V30.\n\nThe lowest floor level is based on the bottom of the lowest horizontal structural member of the floor in Zones VE or V1-V30 or the top of the floor in Zones AH, AE, A1-A30, AR, AR/AE, AR/AH, AR/ A1-A30, AR/A, and AR/AO.\n\n6. A manufactured home or a travel trailer, as described in the II.C.6. If the manufactured home or travel trailer is in a special flood hazard area, it must be anchored in the following manner at the time of the loss:\n- a. By over-the-top or frame ties to ground anchors; or\n- b. In accordance with the manufacturer's specifications; or\n- c. In compliance with the community's floodplain management requirements unless it has been continuously insured by the NFIP at the same described location since September 30, 1982.\n7. The following items of property which are insured under Coverage A only:\n- a. Awnings and canopies;\n- b. Blinds;\n- c. Built-in dishwashers;\n- d. Built-in microwave ovens;\n- e. Carpet permanently installed over unfinished flooring;\n- f. Central air conditioners;\n- g. Elevator equipment;\n- h. Fire sprinkler systems;\n- i. Walk-in freezers;\n- j. Furnaces and radiators;\n- k. Garbage disposal units;\n- l. Hot water heaters, including solar water heaters;\n- m. Light fixtures;\n- n. Outdoor antennas and aerials fastened to buildings;\n- o. Permanently installed cupboards, bookcases, cabinets, paneling, and wallpaper;\n- p. Plumbing fixtures;\n- q. Pumps and machinery for operating pumps;\n- r. Ranges, cooking stoves, and ovens;\n- s. Refrigerators; and\n- t. Wall mirrors, permanently installed.\n8. Items of property below the lowest elevated floor of an elevated postFIRM building located in Zones\n\nA1-A30, AE, AH, AR, AR/A, AR/ AE, AR/AH, AR/A1-A30, V1-V30, or VE, or in a basement regardless of the zone. Coverage is limited to the following:\n\n- a. Any of the following items, if installed in their functioning locations and, if necessary for operation, connected to a power source:\n- (1) Central air conditioners;\n- (2) Cisterns and the water in them;\n- (3) Drywall for walls and ceilings in a basement and the cost of labor to nail it, unfinished and unfloated and not taped, to the framing;\n- (4) Electrical junction and circuit breaker boxes;\n- (5) Electrical outlets and switches;\n- (6) Elevators, dumbwaiters and related equipment, except for related equipment installed below the base flood elevation after September 30, 1987;\n- (7) Fuel tanks and the fuel in them;\n- (8) Furnaces and hot water heaters;\n- (9) Heat pumps;\n- (10) Nonflammable insulation in a basement;\n- (11) Pumps and tanks used in solar energy systems;\n- (12) Stairways and staircases attached to the building, not separated from it by elevated walkways;\n- (13) Sump pumps;\n- (14) Water softeners and the chemicals in them, water filters, and faucets installed as an integral part of the plumbing system;\n- (15) Well water tanks and pumps;\n- (16) Required utility connections for any item in this list; and\n- (17) Footings, foundations, posts, pilings, piers, or other foundation walls and anchorage systems required to support a building.\n- b. Clean-up.\n\nB. Coverage B-Personal Property\n\n1. If you have purchased personal property coverage, we insure against direct physical loss by or from flood to personal property inside a building at the described location, if:\n- a. The property is owned by you or your household family members; and\n- b. At your option, the property is owned by guests or servants.\n2. Personal property is also insured for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n3. Personal property in a building that is not fully enclosed must be secured to prevent flotation out of the building. If the personal property does float out during a flood, it will be conclusively presumed that it was not reasonably secured. In that case, there is no coverage for such property.\n4. Coverage for personal property includes the following property, subject to B.1 above, which is insured under Coverage B only:\n- a. Air conditioning units, portable or window type;\n- b. Carpets, not permanently installed, over unfinished flooring;\n- c. Carpets over finished flooring;\n- d. Clothes washers and dryers;\n- e. 'Cook-out' grills;\n- f. Food freezers, other than walk-in, and food in any freezer; and\n- g. Portable microwave ovens and portable dishwashers.\n\n5. Coverage for items of property below the lowest elevated floor of an elevated post-FIRM building located in Zones A1-A30, AE, AH, AR, AR/A, AR/AE, AR/AH, AR/ A1-A30, V1-V30, or VE, or in a basement regardless of the zone, is limited to the following items, if installed in their functioning locations and, if necessary for oper ation, connected to a power source:\n\n- a. Air conditioning units, portable or window type;\n- b. Clothes washers and dryers; and\n- c. Food freezers, other than walk-in, and food in any freezer.\n6. If you are a tenant and have insured personal property under Coverage B in this policy, we will cover such property, including your cooking stove or range and refrigerator. The policy will also cover improvements made or acquired solely at your expense in the dwelling or apartment in which you reside, but for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n7. If you are the owner of a unit and have insured personal property under Coverage B in this policy, we will also cover your interior walls, floor, and ceiling (not otherwise insured under a flood insurance policy purchased by your condominium association) for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n8. Special Limits. We will pay no more than $2,500 for any one loss to one or more of the following kinds of personal property:\n- a. Artwork, photographs, collectibles, or memorabilia, including but not limited to, porcelain or other figures, and sports cards;\n- b. Rare books or autographed items;\n- c. Jewelry, watches, precious and semi-precious stones, or articles of gold, silver, or platinum;\n- d. Furs or any article containing fur that represents its principal value; or\n- e. Personal property used in any business.\n\n9. We will pay only for the functional value of antiques.\n\nC. Coverage C-Other Coverages\n\n1. Debris Removal\n- a. We will pay the expense to remove non-owned debris that is on or in insured property and debris of insured property anywhere.\n- b. If you or a member of your household perform the removal work, the value of your work will be based on the Federal minimum wage.\n- c. This coverage does not increase the Coverage A or Coverage B limit of liability.\n2. Loss Avoidance Measures\n- a. Sandbags, Supplies, and Labor\n- (1) We will pay up to $1,000 for costs you incur to protect the insured building from a flood or imminent danger of flood, for the following:\n8. (a) Your reasonable expenses to buy:\n9. (i) Sandbags, including sand to fill them;\n10. (ii) Fill for temporary levees;\n11. (iii) Pumps; and\n12. (iv) Plastic sheeting and lumber used in connection with these items.\n13. (b) The value of work, at the Federal minimum wage, that you or a member of your house-hold perform.\n- (2) This coverage for Sandbags, Supplies, and Labor only applies if damage to insured property by or from flood is imminent and the threat of flood damage is apparent enough to lead a person of common prudence to anticipate flood damage. One of the following must also occur:\n15. (a) A general and temporary condition of flooding in the area near the described\n\nlocation must occur, even if the flood does not reach the building; or\n\n- (b) A legally authorized official must issue an evacuation order or other civil order for the community in which the building is located calling for measures to preserve life and property from the peril of flood.\n\nThis coverage does not increase the Coverage A or Coverage B limit of liability.\n\n- b. Property Removed to Safety\n- (1) We will pay up to $1,000 for the reasonable expenses you incur to move insured property to a place other than the described location that contains the property in order to protect it from flood or the imminent danger of flood. Reasonable expenses include the value of work, at the Federal minimum wage, you or a member of your household perform.\n- (2) If you move insured property to a location other than the described location that contains the property in order to protect it from flood or the imminent danger of flood, we will cover such property while at that location for a period of 45 consecutive days from the date you begin to move it there. The personal property that is moved must be placed in a fully enclosed building or otherwise reasonably protected from the elements.\n- (3) Any property removed, including a moveable home described in II.6.b and c, must be placed above ground level or outside of the special flood hazard area.\n- (4) This coverage does not increase the Coverage A or Coverage B limit of liability.\n3. Condominium Loss Assessments\n- a. Subject to III.C.3.b below, if this policy insures a condominium unit, we will pay, up to the Coverage A limit of liability, your share of loss assessments charged against you by the condominium association in accordance with the condominium association's articles of association, declarations and your deed. The assessment must be made because of direct physical loss by or from flood during the policy term, to the unit or to the common elements of the NFIP insured condominium building in which this unit is located.\n- b. We will not pay any loss assessment:\n- (1) Charged against you and the condominium association by any governmental body;\n- (2) That results from a deductible under the insurance purchased by the condominium association insuring common elements;\n- (3) That results from a loss to personal property, including contents of a condomin ium building;\n\n(4) In which the total payment combined under all policies exceeds the maximum amount of coverage available under the Act for a single unit in a condominium building where the unit is insured under both a Dwelling Policy and a RCBAP; or\n\n- (5) On any item of damage that has already been paid under a RCBAP where a single unit in a condominium building is insured by both a Dwelling Policy and a RCBAP.\n- c. Condominium Loss Assessment coverage does not increase the Coverage A Limit of Liability and is subject to the maximum coverage limits available for a single-family dwelling under the Act, payable between all\n\npolicies issued and covering the unit, under the Act.\n\nD. Coverage D-Increased Cost of Compliance\n\n1. General\n\nThis policy pays you to comply with a State or local floodplain management law or ordinance affecting repair or reconstruction of a building suffering flood damage. Compliance activities eligible for payment are: elevation, floodproofing, relocation, or demolition (or any combination of these activities) of your building. Eligible floodproofing activities are limited to:\n\n- a. Non-residential buildings.\n- b. Residential buildings with basements that satisfy FEMA's standards published in the Code of Federal Regulations [44 CFR 60.6(b) or (c)].\n\n2. Limit of Liability\n\nWe will pay you up to $30,000 under this Coverage D-Increased Cost of Compliance, which only applies to policies with building coverage (Coverage A). Our payment of claims under Coverage D is in addition to the amount of coverage which you selected on the application and which appears on the Declarations Page. But the maximum you can collect under this policy for both Coverage A-Building Property and Coverage D-Increased Cost of Compliance cannot exceed the maximum permitted under the Act. We do not charge a separate deductible for a claim under Coverage D.\n\n3. Eligibility\n\n- a. A building insured under Coverage ABuilding Property sustaining a loss caused by a flood as defined by this policy must:\n- (1) Be a 'repetitive loss building.' A repetitive loss building is one that meets the following conditions:\n3. (a) The building is insured by a contract of flood insurance issued under the NFIP.\n4. (b) The building has suffered flood damage on two occasions during a 10-year period which ends on the date of the second loss.\n5. (c) The cost to repair the flood damage, on average, equaled or exceeded 25 percent of the market value of the building at the time of each flood loss.\n6. (d) In addition to the current claim, the NFIP must have paid the previous qualifying claim, and the State or community must have a cumulative, substantial damage provision or repetitive loss provision in its floodplain management law or ordinance being enforced against the building; or\n- (2) Be a building that has had flood damage in which the cost to repair equals or exceeds 50 percent of the market value of the building at the time of the flood. The State or community must have a substantial damage provision in its floodplain management law or ordinance being enforced against the building.\n- b. This Coverage D pays you to comply with State or local floodplain management laws or ordinances that meet the minimum standards of the National Flood Insurance Program found in the Code of Federal Regulations at 44 CFR 60.3. We pay for compliance activities that exceed those standards under these conditions:\n- (1) 3.a.1 above.\n- (2) Elevation or floodproofing in any risk zone to preliminary or advisory base flood elevations provided by FEMA which the State or local government has adopted and is enforcing for flooddamaged buildings in such areas. (This includes compliance activities in B, C, X, or D zones which are being changed to zones with base flood elevations. This also includes compliance activities in zones where base flood elevations are being increased, and a flood-damaged building must comply with the higher advisory base flood elevation.) Increased Cost of Compliance coverage does not apply to situations in B, C, X, or D zones where the community has derived its own elevations and is enforcing elevation or floodproofing requirements for flooddamaged buildings to elevations derived solely by the community.\n- (3) Elevation or floodproofing above the base flood elevation to meet State or local 'free-board' requirements, i.e., that a building must be elevated above the base flood elevation.\n\n- c. Under the minimum NFIP criteria at 44 CFR 60.3(b)(4), States and communities must require the elevation or floodproofing of buildings in unnumbered A zones to the base flood elevation where elevation data is obtained from a Federal, State, or other source. Such compliance activities are eligible for Coverage D.\n- d. Coverage D will pay for the incremental cost, after demolition or relocation, of elevating or floodproofing a building during its rebuilding at the same or another site to meet State or local floodplain management laws or ordinances, subject to Coverage D Exclusion 5.g below.\n- e. Coverage D will pay to bring a flood-damaged building into compliance with State or local floodplain management laws or ordinances even if the building had received a variance before the present loss from the applicable floodplain management requirements.\n\n4. Conditions\n\n- a. When a building insured under Coverage A-Building Property sustains a loss caused by a flood, our payment for the loss under this Coverage D will be for the increased cost to elevate, floodproof, relocate, or demolish (or any combination of these activities) caused by the enforcement of current State or local floodplain management ordinances or laws. Our payment for eligible demolition activities will be for the cost to demolish and clear the site of the building debris or a portion thereof caused by the enforcement of current State or local floodplain management\n\nordinances or laws. Eligible activities for the cost of clearing the site will include those necessary to discontinue utility service to the site and ensure proper abandonment of on-site utilities.\n\n- b. When the building is repaired or rebuilt, it must be intended for the same occupancy as the present building unless otherwise required by current floodplain management ordinances or laws.\n\n5. Exclusions\n\nUnder this Coverage D (Increased Cost of Compliance), we will not pay for:\n\n- a. The cost to comply with any flood plain management law or ordinance in communities participating in the Emergency Program.\n- b. The cost associated with enforcement of any ordinance or law that requires any insured or others to test for, monitor, clean up, remove, contain, treat, detoxify or neutralize, or in any way respond to, or assess the effects of pollutants.\n- c. The loss in value to any insured building due to the\n\n- requirements of any ordinance or law.\n- d. The loss in residual value of the undamaged portion of a building demolished as a consequence of enforcement of any State or local flood plain management law or ordinance.\n- e. Any Increased Cost of Compliance under this Coverage D:\n- (1) Until the building is elevated, floodproofed, demolished, or relocated on the same or to another premises; and\n- (2) Unless the building is elevated, floodproofed, demolished, or relocated as soon as reasonably possible after the loss, not to exceed two years.\n- f. Any code upgrade requirements, e.g., plumbing or electrical wiring, not specifically related to the State or local floodplain management law or ordinance.\n- g. Any compliance activities needed to bring additions or improvements made after the loss occurred into compliance with State or local flood plain management laws or ordinances.\n- h. Loss due to any ordinance or law that you were required to comply with before the current loss.\n- i. Any rebuilding activity to standards that do not meet the NFIP's minimum requirements. This includes any situation where the insured has received from the State or community a variance in connection with the current flood loss to rebuild the property to an elevation below the base flood elevation.\n- j. Increased Cost of Compliance for a garage or carport.\n- k. Any building insured under an NFIP Group Flood Insurance Policy.\n- l. Assessments made by a condo minium association on individual condominium unit owners to pay increased costs of repairing commonly owned buildings after a flood in compliance with State or local floodplain management ordinances or laws.\n6. Other Provisions\n- a. Increased Cost of Compliance coverage will not be included in the calculation to determine whether coverage meets the 80 percent insurance-to-value requirement for replacement cost coverage as set forth in Art. VII.R ('Loss Settlement') of this policy.\n- b. All other conditions and provisions of this policy apply.\n\nWe do not insure any of the following:\n\n1. Personal property not inside a building.\n2. A building, and personal property in it, located entirely in, on, or over water or seaward of mean high tide if it was constructed or substantially improved after September 30, 1982.\n3. Open structures, including a building used as a boathouse or any structure or building into which boats are floated, and personal property located in, on, or over water.\n4. Recreational vehicles other than travel trailers described in the Definitions section (see II.C.6.c) whether affixed to a permanent foundation or on wheels.\n5. Self-propelled vehicles or machines, including their parts and equipment. However, we do cover self-propelled vehicles or machines not licensed for use on public roads that are:\n- a. Used mainly to service the described location; or\n- b. Designed and used to assist handicapped persons, while the vehicles or machines\n8. are inside a building at the described location.\n6. Land, land values, lawns, trees, shrubs, plants, growing crops, or animals.\n7. Accounts, bills, coins, currency, deeds, evidences of debt, medals, money, scrip, stored value cards, postage stamps, securities, bullion, manuscripts, or other valuable papers.\n8. Underground structures and equip ment, including wells, septic tanks, and septic systems.\n9. Those portions of walks, walkways, decks, driveways, patios and other surfaces, all whether protected by a roof or not, located outside the perimeter, exterior walls of the insured building or the building in which the insured unit is located.\n10. Containers, including related equipment, such as, but not limited to, tanks containing gases or liquids.\n11. Buildings or units and all their contents if more than 49 percent of the actual cash value of the building is below ground, unless the lowest level is at or above the base flood elevation and is below\n\n- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\nV. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer.\n\nB. Flood in Progress. If this policy became effective as of the time of a loan closing, as provided by 44 CFR 61.11(b), we will not pay for a loss caused by a flood that is a continuation of a flood that existed prior to coverage becoming effective.\n\nIn all other circumstances, we will not pay for a loss caused by a flood that is a continuation of a flood that existed on or before the day you submitted the application for coverage under this policy and the full amount due. We will determine the date of application using 44 CFR 61.11(f).\n\nC. We do not insure for loss to property caused directly by earth movement even if the earth movement is caused by flood. Some examples of earth movement that we do not cover are:\n\n1. Earthquake;\n2. Landslide;\n3. Land subsidence;\n4. Sinkholes;\n5. Destabilization or movement of land that results from accumulation of water in subsurface land area; or\n6. Gradual erosion.\n\nWe do, however, pay for losses from mudflow and land subsidence as a result of erosion that are specifically insured under our definition of flood (see II.B.1.c and II.B.2).\n\nD. We do not insure for direct physical loss caused directly or indirectly by any of the following:\n\n1. The pressure or weight of ice;\n2. Freezing or thawing;\n3. Rain, snow, sleet, hail, or water spray;\n4. Water, moisture, mildew, or mold damage that results primarily from any condition:\n- a. Substantially confined to the dwelling; or\n- b. That is within your control, including but not limited to:\n- (1) Design, structural, or mechanical defects;\n- (2) Failure, stoppage, or breakage of water or sewer lines, drains, pumps, fixtures, or equipment; or\n- (3) Failure to inspect and maintain the property after a flood recedes;\n5. Water or water-borne material that:\n- a. Backs up through sewers or drains;\n- b. Discharges or overflows from a sump, sump pump, or related equipment; or\n- c. Seeps or leaks on or through the insured property;\n\nunless there is a flood in the area and the flood is the proximate cause of the sewer or drain backup, sump pump discharge or overflow, or the seepage of water;\n\n6. The pressure or weight of water unless there is a flood in the area and the flood is the proximate cause of the damage from the pressure or weight of water;\n7. Power, heating, or cooling failure unless the failure results from direct physical loss by or from flood to power, heating, or cooling equipment on the described location;\n8. Theft, fire, explosion, wind, or windstorm;\n9. Anything you or any member of your household do or conspire\n\nto do to deliberately cause loss by flood; or\n\n10. Alteration of the insured property that significantly increases the risk of flooding.\n\nE. We do not insure for loss to any building or personal property located on land leased from the Federal Government, arising from or incident to the flooding of the land by the Federal Government, where the lease expressly holds the Federal Government harmless under flood insurance issued under any Federal Government program.\n\nF. We do not pay for the testing for or monitoring of pollutants unless required by law or ordinance.\n\nVI. DEDUCTIBLES\n\nA. When a loss is insured under this policy, we will pay only that part of the loss that exceeds your deductible amount, subject to the limit of liability that applies. The deductible amount is shown on the Declarations Page.\n\nB. In each loss from flood, separate deductibles apply to the building and personal property insured by this policy.\n\n- C. The deductible does NOT apply to:\n1. III.C.2. Loss Avoidance Measures;\n2. III.C.3. Condominium Loss Assessments; or\n3. III.D. Increased Cost of Compliance.\n\nHowever, when a building under construction, alteration, or repair does not have at least two rigid exterior walls and a fully secured roof at the time of loss, your deductible amount will be two times the deductible that would otherwise apply to a completed building.\n\nA. Pair and Set Clause\n\nIn case of loss to an article that is part of a pair or set, we will have the option of paying you:\n\n1. An amount equal to the cost of replacing the lost, damaged, or destroyed article, minus its depreciation; or\n2. The amount that represents the fair proportion of the total value of the pair or set that the lost, damaged, or destroyed article bears to the pair or set.\n\nB. Other Insurance\n\n1. If a loss insured by this policy is also insured by other insurance that includes flood coverage not issued under the Act, we will not pay more than the amount of insurance you are entitled to for lost, damaged, or destroyed property insured under this policy subject to the following:\n- a. We will pay only the proportion of the loss that the amount of insurance that applies under this policy bears to the total amount of insurance covering the loss, unless VII.B.1.b or c immediately below applies.\n- b. If the other policy has a provision stating that it is excess insurance, this policy will be primary.\n- c. This policy will be primary (but subject to its own deductible)\n\nup to the deductible in the other flood policy (except another policy as described in VII.B.1.b above). When the other deductible amount is reached, this policy will participate in the same proportion that the amount of insurance under this policy bears to the total amount of both policies, for the remainder of the loss.\n\n2. If there is other insurance issued under the Act in the name of your condominium association covering the same property insured by this policy, then this policy will be in excess over the other insurance, except where a condominium loss assessment to the unit owner results from a loss sustained by the condominium association that was not reimbursed under a flood insurance policy written in the name of the association under the Act because the building was not, at the time of loss, insured for an amount equal to the lesser of:\n- a. 80 percent or more of its full replacement cost; or\n\n- b. The maximum amount of insurance permitted under the Act.\n3. The combined coverage payment under the other NFIP insurance and this policy cannot exceed the maximum coverage available under the Act, of $250,000 per single unit.\n\nC. Amendments, Waivers, Assignment\n\nThis policy cannot be changed, nor can any of its provisions be waived, without the express written consent of the Federal Insurance Administrator. No action we take under the terms of this policy constitutes a waiver of any of our rights. You may assign this policy in writing when you transfer title of your property to someone else except under these conditions:\n\n- a. When this policy insures only personal property; or\n- b. When this policy insures a building under construction.\n- D. Insufficient Premium or Rating Information\n1. Applicability. The following provisions apply to all instances where the premium paid on this policy is insufficient or where the rating information is insufficient, such as where an Elevation Certificate is not provided.\n2. Reforming the Policy with Re\u00ad duced Coverage. Except as otherwise provided in VII.D.1, if the premium we received from you was not sufficient to buy the kinds and amounts of coverage you requested, we will provide only the kinds and\n\namounts of coverage that can be purchased for the premium payment we received.\n\n- a. For the purpose of determining whether your premium payment is sufficient to buy the kinds and amounts of coverage you requested, we will first deduct the costs of all applicable fees and surcharges.\n- b. If the amount paid, after deducting the costs of all applicable fees and surcharges, is not sufficient to buy any amount of coverage, your payment will be refunded. Unless the policy is reformed to increase the coverage amount to the amount originally requested pursuant to VII.D.3, this policy will be cancelled, and no claims will be paid under this policy.\n- c. Coverage limits on the reformed policy will be based upon the amount of premium submitted per type of coverage, but will not exceed the amount originally requested.\n3. Discovery of Insufficient Premium or Rating Information. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, the policy will\n\nbe reformed as described in VII.D.2. You have the option of increasing the amount of coverage resulting from this reformation to the amount you requested as follows:\n\n- a. Insufficient Premium. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, we will send you, and any mortgagee or trustee known to us, a bill for the required additional premium for the current policy term (or that portion of the current policy term following any endorsement changing the amount of coverage). If it is discovered that the initial amount charged to you for any fees or surcharges is incorrect, the difference will be added or deducted, as applicable, to the total amount in this bill.\n- (1) If you or the mortgagee or trustee pays the additional premium amount due within 30 days from the date of our bill, we will reform the policy to increase the amount of coverage to the originally requested amount, effective to the beginning\n\nof the current policy term (or subsequent date of any endorsement changing the amount of coverage).\n\n- (2) If you or the mortgagee or trustee do not pay the additional amount due within 30 days of the date of our bill, any flood insurance claim will be settled based on the reduced amount of coverage.\n- (3) As applicable, you have the option of paying all or part of the amount due out of a claim payment based on the originally requested amount of coverage.\n- b. Insufficient Rating Inform\u00ad ation. If we determine that the rating information we have is insufficient and prevents us from calculating the additional premium, we will ask you to send the required information. You must submit the information within 60 days of our request.\n- (1) If we receive the information within 60 days of our request, we will determine the amount of additional premium for the current\n\npolicy term, and follow the procedure in VII.D.3.a above.\n\n- (2) If we do not receive the information within 60 days of our request, no claims will be paid until the requested information is provided. Coverage will be limited to the amount of coverage that can be purchased for the payments we received, as determined when the requested information is provided.\n4. Coverage Increases. If we do not receive the amounts requested in VII.D.3.a or the additional information requested in VII.D.3.b by the date it is due, the amount of coverage under this policy can only be increased by endorsement subject to the appropriate waiting period. However, no coverage increases will be allowed until you have provided the information requested in VII.D.3.b.\n5. Falsifying Information. However, if we find that you or your agent intentionally did not tell us, or falsified any important fact or circumstance or did anything fraudulent relating to this insurance, the provisions of VIII.A apply.\n\nE. Policy Renewal\n\n1. This policy will expire at 12:01 a.m. on the last day of the policy term.\n2. We must receive the payment of the appropriate renewal premium within 30 days of the expiration date.\n3. If we find, however, that we did not place your renewal notice into the U.S. Postal Service, or if we did mail it, we made a mistake, e.g., we used an incorrect, incomplete, or illegible address, which delayed its delivery to you before the due date for the renewal premium, then we will follow these procedures:\n- a. If you or your agent notified us, not later than one year after the date on which the payment of the renewal premium was due, of non-receipt of a renewal notice before the due date for the renewal premium, and we determine that the circumstances in the preceding paragraph apply, we will mail a second bill providing a revised due date, which will be 30 days after the date on which the bill is mailed.\n- b. If we do not receive the premium requested in the second bill by the revised due date, then we will not renew the policy. In that case, the policy will remain an expired policy as of the expiration date shown on the Declarations Page.\n4. In connection with the renewal of this policy, we may ask you during the policy term to recertify, on a Recertification Questionnaire we will provide to you, the rating information used to rate your most recent application for or renewal of insurance.\n- F. Conditions Suspending or Restricting Insurance\n\nWe are not liable for loss that occurs while there is a hazard that is increased by any means within your control or knowledge.\n\n- G. Requirements in Case of Loss\n\nIn case of a flood loss to insured property, you must:\n\n1. Give prompt written notice to us.\n2. As soon as reasonably possible, separate the damaged and\n\nundamaged property, putting it in the best possible order so that we may examine it.\n\n3. Prepare an inventory of damaged property showing the quantity, description, actual cash value, and amount of loss. Attach all bills, receipts, and related documents.\n4. Within 60 days after the loss, send us a proof of loss, which is your statement of the amount you are claiming under the policy signed and sworn to by you, and which furnishes us with the following information:\n- a. The date and time of loss;\n- b. A brief explanation of how the loss happened;\n- c. Your interest (for example, 'owner') and the interest, if any, of others in the damaged property;\n- d. Details of any other insurance that may cover the loss;\n- e. Changes in title or occupancy of the insured property during the term of the policy;\n- f. Specifications of damaged buildings and detailed repair estimates;\n- g. Names of mortgagees or anyone else having a lien,\n\ncharge, or claim against the insured property;\n\n- h. Details about who occupied any insured building at the time of loss and for what purpose; and\n- i. The inventory of damaged personal property described in G.3 above.\n5. In completing the proof of loss, you must use your own judgment concerning the amount of loss and justify that amount.\n6. You must cooperate with the adjuster or representative in the investigation of the claim.\n7. The insurance adjuster whom we hire to investigate your claim may furnish you with a proof of loss form, and she or he may help you complete it. However, this is a matter of courtesy only, and you must still send us a proof of loss within 60 days after the loss even if the adjuster does not furnish the form or help you complete it.\n8. We have not authorized the adjuster to approve or disapprove claims or to tell you whether we will approve your claim.\n9. At our option, we may accept the adjuster's report of the loss instead of your proof of loss. The adjuster's report will include information about your loss and the damages you sustained. You must sign the adjuster's report. At our option, we may require you to swear to the report.\n\nH. Our Options After a Loss\n\nOptions we may, in our sole discretion, exercise after loss include the following:\n\n1. At such reasonable times and places that we may designate, you must:\n- a. Show us or our representative the damaged property;\n- b. Submit to examination under oath, while not in the presence of another insured, and sign the same; and\n- c. Permit us to examine and make extracts and copies of:\n- (1) Any policies of property insurance insuring you against loss and the deed establishing your ownership of the insured real property;\n- (2) Condominium association documents including the Declarations of the condominium, its Articles of Association or Incorporation, Bylaws, rules and regulations, and other relevant documents if you are a unit owner in a condominium building; and\n- (3) All books of accounts, bills, invoices and other vouchers, or certified copies pertaining to the damaged property if the originals are lost.\n2. We may request, in writing, that you furnish us with a complete\n\ninventory of the lost, damaged or destroyed property, including:\n\n- a. Quantities and costs;\n- b. Actual cash values or replacement cost (whichever is appropriate);\n- c. Amounts of loss claimed;\n- d. Any written plans and specifications for repair of the damaged property that you can reasonably make available to us; and\n- e. Evidence that prior flood damage has been repaired.\n3. If we give you written notice within 30 days after we receive your signed, sworn proof of loss, we may:\n- a. Repair, rebuild, or replace any part of the lost, damaged, or destroyed property with material or property of like kind and quality or its functional equivalent; and\n- b. Take all or any part of the damaged property at the value that we agree upon or its appraised value.\n- I. No Benefit to Bailee\n\nNo person or organization, other than you, having custody of insured property will benefit from this insurance.\n\nJ. Loss Payment\n\n1. We will adjust all losses with you. We will pay you unless some other person or entity is named in the policy or is legally entitled to receive payment. Loss will be payable 60 days after we receive your proof of loss (or within 90 days after the insurance adjuster files the adjuster's report signed and sworn to by you in lieu of a proof of loss) and:\n- a. We reach an agreement with you;\n- b. There is an entry of a final judgment; or\n- c. There is a filing of an appraisal award with us, as provided in VII.M.\n2. If we reject your proof of loss in whole or in part you may:\n- a. Accept our denial of your claim;\n- b. Exercise your rights under this policy; or\n- c. File an amended proof of loss as long as it is filed within 60 days of the date of the loss.\n\nK. Abandonment\n\nYou may not abandon to us damaged or undamaged property insured under this policy.\n\nL. Salvage\n\nWe may permit you to keep damaged property insured under this policy after a loss, and we will reduce the amount of the loss proceeds payable to you under the policy by the value of the salvage.\n\nM. Appraisal\n\nIf you and we fail to agree on the actual cash value or, if applicable, replacement cost of your damaged property to settle upon the amount of loss, then either may demand an appraisal of the loss. In this event, you and we will each choose a competent and impartial appraiser within 20 days after receiving a written request from the other. The two appraisers will choose an umpire. If they cannot agree upon an umpire within 15 days, you or we may request that the choice be made by a judge of a court of record in the state where the insured property is located. The appraisers will separately state the actual cash value, the replacement cost, and the amount of loss to each item. If the appraisers submit a written report of an agreement to us, the amount agreed upon will be the amount of loss. If they fail to agree, they will submit their differences to the umpire. A decision agreed to by any two will set the amount of actual cash value and loss, or if it applies, the replacement cost and loss.\n\nEach party will:\n\n1. Pay its own appraiser; and\n2. Bear the other expenses of the appraisal and umpire equally.\n\nN. Mortgage Clause\n\n1. The word 'mortgagee' includes trustee.\n\n2. Any loss payable under Coverage A-Building Property will be paid to any mortgagee of whom we have actual notice, as well as any other mortgagee or loss payee determined to exist at the time of loss, and you, as interests appear. If more than one mortgagee is named, the order of payment will be the same as the order of precedence of the mortgages.\n3. If we deny your claim, that denial will not apply to a valid claim of the mortgagee, if the mortgagee:\n- a. Notifies us of any change in the ownership or occupancy, or substantial change in risk of which the mortgagee is aware;\n- b. Pays any premium due under this policy on demand if you have neglected to pay the premium; and\n- c. Submits a signed, sworn proof of loss within 60 days after receiving notice from us of your failure to do so.\n\n4. All of the terms of this policy apply to the mortgagee.\n5. The mortgagee has the right to receive loss payment even if the mortgagee has started foreclosure or similar action on the building.\n6. If we decide to cancel or not renew this policy, it will continue in effect for the benefit of the mortgagee only for 30 days after we notify the mortgagee of the cancellation or non-renewal.\n7. If we pay the mortgagee for any loss and deny payment to you, we are subrogated to all the rights of the mortgagee granted under the mortgage on the property. Subrogation will not impair the right of the mortgagee to recover the full amount of the mortgagee's claim.\n- O. Suit Against Us\n\nYou may not sue us to recover money under this policy unless you have complied with all the requirements of the policy. If you do sue, you must start the suit within one year after the date of the written denial of all or part of the claim, and you must file the suit in the United States District Court of the district in which the insured property was located at the time of loss. This requirement applies to any claim that you may have under this policy and to any dispute that you may have arising out of the handling of any claim under the policy.\n\n- P. Subrogation\n\nWhenever we make a payment for a loss under this policy, we are subrogated to your right to recover for that loss from any other person. That means that your right to recover for a loss that was partly or totally caused by someone else is automatically transferred to us, to the extent that we have paid you for the loss. We may require\n\nyou to acknowledge this transfer in writing. After the loss, you may not give up our right to recover this money or do anything that would prevent us from recovering it. If you make any claim against any person who caused your loss and recover any money, you must pay us back first before you may keep any of that money.\n\n- Q. Continuous Lake Flooding\n1. If an insured building has been flooded by rising lake waters continuously for 90 days or more and it appears reasonably certain that a continuation of this flooding will result in an insured loss to the insured building equal to or greater than the building policy limits plus the deductible or the maximum payable under the policy for any one building loss, we will pay you the lesser of these two amounts without waiting for the further\n\ndamage to occur if you sign a release agreeing:\n\n- a. To make no further claim under this policy;\n- b. Not to seek renewal of this policy;\n- c. Not to apply for any flood insurance under the Act for property at the described location;\n- d. Not to seek a premium refund for current or prior terms.\n\nIf the policy term ends before the insured building has been flooded continuously for 90 days, the provisions of this paragraph Q.1 will apply when the insured building suffers a covered loss before the policy term ends.\n\n2. If your insured building is subject to continuous lake flooding from a closed basin lake, you may elect to file a claim under either paragraph Q.1 above or Q.2 (A 'closed basin lake' is a natural lake from which water leaves primarily through evaporation and whose surface area now exceeds or has exceeded one square mile at any time in the recorded past. Most of the nation's closed basin lakes are in the western half of the United\n\nStates where annual evaporation exceeds annual precipitation and where lake levels and surface areas are subject to considerable fluctuation due to wide variations in the climate. These lakes may overtop their basins on rare occasions.) Under this paragraph Q.2, we will pay your claim as if the building is a total loss even though it has not been continuously inundated for 90 days, subject to the following conditions:\n\n- a. Lake floodwaters must damage or imminently threaten to damage your building.\n- b. Before approval of your claim, you must:\n- (1) Agree to a claim payment that reflects your buying back the salvage on a negotiated basis; and\n- (2) Grant the conservation easement described in FEMA's 'Policy Guidance for Closed Basin Lakes' to be recorded in the office of the local recorder of deeds. FEMA, in consultation with the community in which the property is located, will identify on a map an area or areas\n\nof special consideration (ASC) in which there is a potential for flood damage from continuous lake flooding. FEMA will give the community the agreedupon map showing the ASC. This easement will only apply to that portion of the property in the ASC. It will allow certain agricultural and recreational uses of the land. The only structures it will allow on any portion of the property within the ASC are certain simple agricultural and recreational structures. If any of these allowable structures are insurable buildings under the NFIP and are insured under the NFIP, they will not be eligible for the benefits of this paragraph Q.2. If a U.S. Army Corps of Engineers certified flood control project or otherwise certified flood control project later protects the property, FEMA will, upon request, amend the ASC to remove areas protected by those projects. The restrictions of the easement will then no longer apply to any portion of the\n\n- property removed from the ASC; and\n- (3) Comply with paragraphs Q.1.a through Q.1.d above.\n- c. Within 90 days of approval of your claim, you must move your building to a new location outside the ASC. FEMA will give you an additional 30 days to move if you show there is sufficient reason to extend the time.\n- d. Before the final payment of your claim, you must acquire an elevation certificate and a floodplain development permit from the local floodplain administrator for the new location of your building.\n- e. Before the approval of your claim, the community having jurisdiction over your building must:\n- (1) Adopt a permanent land use ordinance, or a temporary moratorium for a period not to exceed 6 months to be followed immediately by a permanent land use ordinance that is consistent with the provisions specified in the easement required in paragraph Q.2.b above;\n\n- (2) Agree to declare and report any violations of this ordinance to FEMA so that under Section 1316 of the National Flood Insurance Act of 1968, as amended, flood insurance to the building can be denied; and\n- (3) Agree to maintain as deedrestricted, for purposes compatible with open space or agricultural or recreational use only, any affected property the community acquires an interest in. These deed restrictions must be consistent with the provisions of paragraph Q.2.b above, except that, even if a certified project protects the property, the land use restrictions continue to apply if the property was acquired under the Hazard Mitigation Grant Program or the Flood Mitigation Assistance Program. If a non-profit land trust organization receives the property as a donation, that organization must maintain the property as deed-restricted, consistent\n3. with the provisions of paragraph Q2.b above.\n- f. Before the approval of your claim, the affected State must take all action set forth in FEMA's 'Policy Guidance for Closed Basin Lakes.'\n- g. You must have NFIP flood insurance coverage con tinuously in effect from a date established by FEMA until you file a claim under paragraph Q.2. If a subsequent owner buys NFIP insurance that goes into effect within 60 days of the date of transfer of title, any gap in coverage during that 60-day period will not be a violation of this continuous coverage requirement. For the purpose of honoring a claim under this paragraph Q.2, we will not consider to be in effect any increased coverage that became effective after the date established by FEMA. The exception to this is any increased coverage in the amount suggested by your insurer as an inflation adjustment.\n- h. This paragraph Q.2 will be in effect for a community when the FEMA Regional Administrator for the affected region provides\n\nto the community, in writing, the following:\n\n- (1) Confirmation that the community and the State are in compliance with the conditions in paragraphs Q.2.e and Q.2.f above; and\n\n(2) The date by which you must have flood insurance in effect.\n\nR. Loss Settlement\n\n1. Introduction\n\nThis policy provides three methods of settling losses: Replacement Cost, Special Loss Settlement, and Actual Cash Value. Each method is used for a different type of property, as explained in paragraphs a-c below.\n\n- a. Replacement Cost Loss Set tlement , described in R.2 below, applies to a singlefamily dwelling provided:\n\n(1) It is your principal residence; and\n\n- (2) At the time of loss, the amount of insurance in this policy that applies to the dwelling is 80 percent or more of its full replacement cost immediately before the loss, or is the maximum amount of insurance available under the NFIP.\n- b. Special Loss Settlement , described in R.3 below, applies to a single-family dwelling that is a manufactured or mobile home or a travel trailer.\n- c. Actual Cash Value Loss Settlement applies to a single-family dwelling not subject to replacement cost or special loss settlement, and to the property listed in R.4 below.\n2. Replacement Cost Loss Settlement\n\nThe following loss settlement conditions apply to a single-family dwelling described in R.1.a above:\n\n- a. We will pay to repair or replace the damaged dwelling after application of the deductible and without deduction for depreciation, but not more than the least of the following amounts:\n- (1) The building limit of liability shown on your Declarations Page;\n- (2) The replacement cost of that part of the dwelling damaged, with materials of like kind and quality and for like use; or\n- (3) The necessary amount actually spent to repair or replace the damaged part of the dwelling for like use.\n- b. If the dwelling is rebuilt at a new location, the cost described above is limited to the cost that would have been incurred if the dwelling had been rebuilt at its former location.\n- c. When the full cost of repair or replacement is more than $1,000, or more than 5 percent of the whole amount of insurance that applies to the dwelling, we will not be liable for any loss under R.2.a above or R.4.a.2 below unless and until actual repair or replacement is completed.\n- d. You may disregard the replacement cost conditions above and make claim under this policy for loss to dwellings on an actual cash value basis. You may then make claim for any additional liability according to R.2.a, b, and c above, provided you notify us of your intent to do so within 180 days after the date of loss.\n- e. If the community in which your dwelling is located has been converted from the Emergency Program to the Regular Program during the current policy term, then we will consider the maximum amount of available NFIP insurance to be the amount that was available at the beginning of the current policy term.\n3. Special Loss Settlement\n- a. The following loss settlement conditions apply to a single-family dwelling that:\n- (1) is a manufactured or mobile home or a travel trailer, as defined in II.C.6.b and c;\n\n- (2) is at least 16 feet wide when fully assembled and has an area of at least 600 square feet within its perimeter walls when fully assembled; and\n- (3) is your principal residence as specified in R.1.a.1 above.\n- b. If such a dwelling is totally destroyed or damaged to such an extent that, in our judgment, it is not economically feasible to repair, at least to its pre-damage condition, we will, at our discretion pay the least of the following amounts:\n- (1) The lesser of the replacement cost of the dwelling or 1.5 times the actual cash value; or\n- (2) The building limit of liability shown on your Declarations Page.\n- c. If such a dwelling is partially damaged and, in our judgment, it is economically feasible to repair it to its pre-damage condition, we will settle the loss according to the Replacement Cost conditions in R.2 above.\n\n4. Actual Cash Value Loss Settlement\n\nThe types of property noted below are subject to actual cash value (or in the case of R.4.a.2., below, proportional) loss settlement.\n\n- a. A dwelling, at the time of loss, when the amount of insurance on the dwelling is both less than 80 percent of its full replacement cost immediately before the loss and less than the maximum amount of insurance available under the NFIP. In that case, we will pay the greater of the following amounts, but not more than the amount of insurance that applies to that dwelling:\n- (1) The actual cash value, as defined in II.C.2, of the damaged part of the dwelling; or\n- (2) A proportion of the cost to repair or replace the damaged part of the dwelling, without deduction for physical depreciation and after application of the deductible.\n\nThis proportion is determined as follows: If 80 percent of the full replacement cost of the dwelling is less than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the amount of insurance that represents 80 percent of its full replacement cost. But if 80 percent of the full replacement cost of the dwelling is greater than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the maximum amount of insurance available under the NFIP.\n\n- b. A two-, three-, or four-family dwelling.\n- c. A unit that is not used exclusively for singlefamily dwelling purposes.\n- d. Detached garages.\n- e. Personal property.\n- f. Appliances, carpets, and carpet pads.\n- g. Outdoor awnings, outdoor antennas or aerials of any type, and other outdoor equipment.\n- h. Any property insured under this policy that is abandoned after a loss and remains as debris anywhere on the described location.\n- i. A dwelling that is not your principal residence.\n\n5. Amount of Insurance Required\n\nTo determine the amount of insurance required for a dwelling immediately before the loss, we do not include the value of:\n\n- a. Footings, foundations, piers, or any other structures or devices that are below the undersurface of the lowest basement floor and support all or part of the dwelling;\n- b. Those supports listed in R.5.a above, that are below the surface of the ground inside the foundation walls if there is no basement; and\n- c. Excavations and underground flues, pipes, wiring, and drains.\n\nNote: The Coverage D-Increased Cost of Compliance limit of liability is not included in the determination of the amount of insurance required.\n\nVIII. POLICY NULLIFICATION, CANCELLATION, AND NON-RENEWAL\n\n- A. Policy Nullification for Fraud, Misrepresentation, or Making False Statements\n1. With respect to all insureds under this policy, this policy is void and has no legal force and effect if at any time, before or after a loss, you or any other insured or your agent have, with respect to this policy or any other NFIP insurance:\n- a. Concealed or misrepresented any material fact or circumstance;\n- b. Engaged in fraudulent conduct; or\n- c. Made false statements.\n2. Policies voided under A.1 cannot be renewed or replaced by a new NFIP policy.\n3. Policies are void as of the date the acts described in A.1 above were committed.\n4. Fines, civil penalties, and imprisonment under applicable Federal laws may also apply to the acts of fraud or concealment described above.\n- B. Policy Nullification for Reasons Other Than Fraud\n1. This policy is void from its inception, and has no legal force or effect, if:\n- a. The property listed on the application is located in a community that was not participating in the NFIP on this policy's inception date and did not join or reenter the program during the policy term and before the loss occurred;\n- b. The property listed on the application is otherwise not eligible for coverage under the NFIP at the time of the initial application;\n- c. You never had an insurable interest in the property listed on the application;\n- d. You provided an agent with an application and payment, but the payment did not clear; or\n- e. We receive notice from you, prior to the policy effective date, that you have determined not to take the policy and you are not subject to a requirement to obtain and maintain flood insurance pursuant to any statute, regulation, or contract.\n2. In such cases, you will be entitled to a full refund of all premium, fees, and surcharges received. However, if a claim was paid for a policy that is void, the claim payment must be returned to FEMA or offset from the premiums to be refunded before the refund will be processed.\n\nC. Cancellation of the Policy by You\n\n1. You may cancel this policy in accordance with the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n2. If you cancel this policy, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\nD. Cancellation of the Policy by Us\n\n1. Cancellation for Underpayment of Amounts Owed on Policy. This policy will be cancelled, pursuant to VII.D.2, if it is determined that the premium amount you paid is not sufficient to buy any amount of coverage, and you do not pay the additional amount of premium owed to increase the coverage to the originally requested amount within the required time period.\n\n2. Cancellation Due to Lack of an Insurable Interest.\n\n- a. If you no longer have an insurable interest in the insured property, we will cancel this policy. You will cease to have an insurable interest if:\n- (1) For building coverage, the building was sold, destroyed, or removed.\n- (2) For contents coverage, the contents were sold or transferred ownership, or the contents were\n\ncompletely removed from the described location.\n\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the applicable rules and regulations of the NFIP.\n\n3. Cancellation of Duplicate Policies\n\n- a. Except as allowed under Article I.G, your property may not be insured by more than one NFIP policy, and payment for damages to your property will only be made under one policy.\n- b. Except as allowed under Article I.G, if the property is insured by more than one NFIP policy, we will cancel all but one of the policies. The policy, or policies, will be selected for cancellation in accordance with 44 CFR 62.5 and the applicable rules and guidance of the NFIP.\n- c. If this policy is cancelled pursuant to VIII.D.4.b, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n4. Cancellation Due to Physical Alteration of Property\n\n- a. If the insured building has been physically altered in such a manner that it is no longer eligible for flood insurance coverage, we will cancel this policy.\n\nof this policy and the applicable rules and regulations of the NFIP.\n\nE. Non-Renewal of the Policy by Us\n\nYour policy will not be renewed if:\n\n1. The community where your insured property is located is suspended or stops participating in the NFIP;\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the terms and conditions\n2. Your building is otherwise ineligible for flood insurance under the Act;\n3. You have failed to provide the information we requested for the purpose of rating the policy within the required deadline.\n\nIX. LIBERALIZATION CLAUSE\n\nIf we make a change that broadens your coverage under this edition of our policy, but does not require any additional premium, then that change will automatically apply to your insurance as of the date we implement the change, provided that this implementation date falls within 60 days before or during the policy term stated on the Declarations Page.\n\nX. WHAT LAW GOVERNS\n\nThis policy and all disputes arising from the insurer's policy issuance, policy administration, or the handling of any claim under the policy are governed exclusively by the flood insurance regulations issued by FEMA, the National Flood Insurance Act of 1968, as amended (42 U.S.C. 4001, et seq.), and Federal common law.\n\nIn Witness Whereof, we have signed this policy below and hereby enter into this Insurance Agreement.\n\nDeputy Associate Administrator Federal Insurance and Mitigation Administration",
- "markdown": "National Flood Insurance Program\n\n## Dwelling Form\n\nStandard Flood Insurance Policy\n\nF-122 / October 2021\n\n<!-- image -->\n\nStandard Flood Insurance Policy\n\n## Dwelling Form\n\nPlease read the policy carefully. The flood insurance provided is subject to limitations, restrictions, and exclusions.\n\n## I. AGREEMENT\n\n- A. This policy insures the following types of property only:\n1. A one to four family residential building, not under a condominium form of ownership;\n- E. This policy insures only one building. If you own more than one building, coverage will apply to the single building specifically described in the Flood Insurance Application.\n2. A single-family dwelling unit in a condominium building; and\n3. Personal property in a building.\n- B. The Federal Emergency Management Agency (FEMA) provides flood insurance under the terms of the National Flood Insurance Act of 1968 and its amendments, and Title 44 of the Code of Federal Regulations.\n- C. We will pay you for direct physical loss by or from flood to your insured property if you:\n1. Have paid the full amount due (including applicable premiums, surcharges, and fees);\n2. Comply with all terms and conditions of this policy; and\n3. Have furnished accurate information and statements.\n- D. We have the right to review the information you give us at any time and revise your policy based on our review.\n- F. Subject to the exception in I.G below, multiple policies with building coverage cannot be issued to insure a single building to one insured or to different insureds, even if separate policies were issued through different NFIP insurers. Payment for damages may only be made under a single policy for building damages under Coverage ABuilding Property.\n- G. A Dwelling Form policy with building coverage may be issued to a unit owner in a condominium building that is also insured under a Residential Condominium\n\nBuilding Association Policy (RCBAP). However, no more than $250,000 may be paid in combined benefits for a single unit under the Dwelling Form policy and the RCBAP. We will only pay for damage once. Items of damage paid for under an RCBAP cannot also be claimed under the Dwelling Form policy.\n\n## II. DEFINITIONS\n\nA. In this policy, 'you' and 'your' refer to the named insured(s) shown on the Declarations Page of this policy and the spouse of the named insured, if a resident of the same household. Insured(s) also includes: Any mortgagee and loss payee named in the Application and Declarations Page, as well as any other mortgagee or loss payee determined to exist at the time of loss, in the order of precedence. 'We,' 'us,' and 'our' refer to the insurer.\n\nSome definitions are complex because they are provided as they appear in the law or regulations, or result from court cases.\n\n- B. Flood , as used in this flood insurance policy, means:\n1. A general and temporary condition of partial or complete inundation of two or more acres of normally dry land area or of two or more properties (one of which is your property) from:\n- a. Overflow of inland or tidal waters;\n- b. Unusual and rapid accumulation or runoff of surface waters from any source;\n- c. Mudflow.\n2. Collapse or subsidence of land along the shore of a lake or similar body of water as a result of erosion\n\nor undermining caused by waves or currents of water exceeding anticipated cyclical levels that result in a flood as defined in B.1.a above.\n\nC. The following are the other key definitions we use in this policy:\n\n1. Act. The National Flood Insurance Act of 1968 and any amendments to it.\n2. Actual Cash Value. The cost to replace an insured item of property at the time of loss, less the value of its physical depreciation.\n3. Application. The statement made and signed by you or your agent in applying for this policy. The application gives information we use to determine the eligibility of the risk, the kind of policy to be issued, and the correct premium payment. The application is part of this flood insurance policy.\n4. Base Flood. A flood having a one percent chance of being equaled or exceeded in any given year.\n5. Basement. Any area of a building, including any sunken room or sunken portion of a room, having its floor below ground level on all sides.\n6. Building\n- a. A structure with two or more outside rigid walls and a fully secured roof that is affixed to a permanent site;\n- b. A manufactured home, also known as a mobile home, is a structure: built on a permanent chassis, transported to its site in one or more sections, and affixed to a permanent foundation; or\n- c. A travel trailer without wheels, built on a chassis and affixed to a permanent foundation, that is regulated under the community's floodplain management and building ordinances or laws.\n\nBuilding does not mean a gas or liquid storage tank, shipping container, or a recreational vehicle, park trailer, or other similar vehicle, except as described in C.6.c above.\n\n7. Cancellation. The ending of the insurance coverage provided by this policy before the expiration date.\n8. Condominium. That form of ownership of one or more buildings in which each unit owner has an undivided interest in common elements.\n9. Condominium Association. The entity made up of the unit owners responsible for the maintenance and operation of:\n- a. Common elements owned in undivided shares by unit owners; and\n- b. Other buildings in which the unit owners have use rights; where membership in the entity is a required condition of ownership.\n10. Condominium Building. A type of building for which the form of ownership is one in which each unit owner has an undivided interest in common elements of the building.\n11. Declarations Page. A computer-generated summary of information you provided in your application for insurance. The Declarations Page also describes the term of the policy, limits of coverage, and displays the premium and our name. The Declarations Page is a part of this flood insurance policy.\n12. Deductible. The amount of an insured loss that is your responsibility and that is incurred by you before any amounts are paid for the insured loss under this policy.\n13. Described Location. The location where the insured building(s) or personal property are found. The described location is shown on the Declarations Page.\n14. D irect Physical Loss By or From Flood. Loss or damage to insured property, directly caused by a flood. There must be evidence of physical changes to the property.\n15. Dwelling. A building designed for use as a residence for no more than four families or a single-family unit in a condominium building.\n16. Elevated Building. A building that has no basement and that has its lowest elevated floor raised above ground level by foundation walls, shear walls, posts, piers, pilings, or columns.\n17. Emergency Program. The initial phase of a community's participation in the National Flood Insurance Program. During this phase, only limited amounts of insurance are available under the Act and the regulations prescribed pursuant to the Act.\n18. Federal Policy Fee. A flat rate charge you must pay on each new or renewal policy to defray certain administrative expenses incurred in carrying out the National Flood Insurance Program.\n19. Improvements. Fixtures, alterations, installations, or additions comprising a part of the dwelling or apartment in which you reside.\n20. Mudflow. A river of liquid and flowing mud on the surface of normally dry land areas, as when earth is carried by a current of water. Other earth movements, such as landslide, slope failure, or\n\na saturated soil mass moving by liquidity down a slope, are not mudflows.\n\n21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:\n\n## III. PROPERTY INSURED\n\nare always considered part of the dwelling and cannot be separately insured.\n\n- A detached garage at the described location. Coverage is limited to no more than 10 percent of the limit of liability on the dwelling. Use of this insurance is at your option but reduces the building limit of liability. We do not cover any detached garage used or held for use for residential (i.e., dwelling), business, or farming purposes.\n\n## A. Coverage A-Building Property\n\nWe insure against direct physical loss by or from flood to:\n\n1. The dwelling at the described location, or for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n2. Additions and extensions attached to and in contact with the dwelling by means of a rigid exterior wall, a solid load-bearing interior wall, a stairway, an elevated walkway, or a roof. At your option, additions and extensions connected by any of these methods may be separately insured. Additions and extensions attached to and in contact with the building by means of a common interior wall that is not a solid load-bearing wall\n3. 3.\n\n4. Materials and supplies to be used for construction, alteration, or repair of the dwelling or a detached garage while the materials and supplies are stored in a fully enclosed building at the described location or on an adjacent property.\n5. A building under construction, alteration, or repair at the described location.\n- a. If the structure is not yet walled or roofed as described in the definition for building (see II.C.6.a) then coverage applies:\n- (1) Only while such work is in progress; or\n- (2) If such work is halted, only for a period of up to 90 continuous days thereafter.\n- b. However, coverage does not apply until the building is walled and roofed if the lowest floor, including the basement floor, of a non-elevated building or the lowest elevated floor of an elevated building is:\n- (1) Below the base flood elevation in Zones AH, AE, A1-A30, AR, AR/AE, AR/ AH, AR/A1-A30, AR/A, AR/AO; or\n- (2) Below the base flood elevation adjusted to include the effect of wave action in Zones VE or V1-V30.\n\nThe lowest floor level is based on the bottom of the lowest horizontal structural member of the floor in Zones VE or V1-V30 or the top of the floor in Zones AH, AE, A1-A30, AR, AR/AE, AR/AH, AR/ A1-A30, AR/A, and AR/AO.\n\n6. A manufactured home or a travel trailer, as described in the II.C.6. If the manufactured home or travel trailer is in a special flood hazard area, it must be anchored in the following manner at the time of the loss:\n- a. By over-the-top or frame ties to ground anchors; or\n- b. In accordance with the manufacturer's specifications; or\n- c. In compliance with the community's floodplain management requirements unless it has been continuously insured by the NFIP at the same described location since September 30, 1982.\n7. The following items of property which are insured under Coverage A only:\n- a. Awnings and canopies;\n- b. Blinds;\n- c. Built-in dishwashers;\n- d. Built-in microwave ovens;\n- e. Carpet permanently installed over unfinished flooring;\n- f. Central air conditioners;\n- g. Elevator equipment;\n- h. Fire sprinkler systems;\n- i. Walk-in freezers;\n- j. Furnaces and radiators;\n- k. Garbage disposal units;\n- l. Hot water heaters, including solar water heaters;\n- m. Light fixtures;\n- n. Outdoor antennas and aerials fastened to buildings;\n- o. Permanently installed cupboards, bookcases, cabinets, paneling, and wallpaper;\n- p. Plumbing fixtures;\n- q. Pumps and machinery for operating pumps;\n- r. Ranges, cooking stoves, and ovens;\n- s. Refrigerators; and\n- t. Wall mirrors, permanently installed.\n8. Items of property below the lowest elevated floor of an elevated postFIRM building located in Zones\n\n## A1-A30, AE, AH, AR, AR/A, AR/ AE, AR/AH, AR/A1-A30, V1-V30, or VE, or in a basement regardless of the zone. Coverage is limited to the following:\n\n- a. Any of the following items, if installed in their functioning locations and, if necessary for operation, connected to a power source:\n- (1) Central air conditioners;\n- (2) Cisterns and the water in them;\n- (3) Drywall for walls and ceilings in a basement and the cost of labor to nail it, unfinished and unfloated and not taped, to the framing;\n- (4) Electrical junction and circuit breaker boxes;\n- (5) Electrical outlets and switches;\n- (6) Elevators, dumbwaiters and related equipment, except for related equipment installed below the base flood elevation after September 30, 1987;\n- (7) Fuel tanks and the fuel in them;\n- (8) Furnaces and hot water heaters;\n- (9) Heat pumps;\n- (10) Nonflammable insulation in a basement;\n- (11) Pumps and tanks used in solar energy systems;\n- (12) Stairways and staircases attached to the building, not separated from it by elevated walkways;\n- (13) Sump pumps;\n- (14) Water softeners and the chemicals in them, water filters, and faucets installed as an integral part of the plumbing system;\n- (15) Well water tanks and pumps;\n- (16) Required utility connections for any item in this list; and\n- (17) Footings, foundations, posts, pilings, piers, or other foundation walls and anchorage systems required to support a building.\n- b. Clean-up.\n\n## B. Coverage B-Personal Property\n\n1. If you have purchased personal property coverage, we insure against direct physical loss by or from flood to personal property inside a building at the described location, if:\n- a. The property is owned by you or your household family members; and\n- b. At your option, the property is owned by guests or servants.\n2. Personal property is also insured for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n3. Personal property in a building that is not fully enclosed must be secured to prevent flotation out of the building. If the personal property does float out during a flood, it will be conclusively presumed that it was not reasonably secured. In that case, there is no coverage for such property.\n4. Coverage for personal property includes the following property, subject to B.1 above, which is insured under Coverage B only:\n- a. Air conditioning units, portable or window type;\n- b. Carpets, not permanently installed, over unfinished flooring;\n- c. Carpets over finished flooring;\n- d. Clothes washers and dryers;\n- e. 'Cook-out' grills;\n- f. Food freezers, other than walk-in, and food in any freezer; and\n- g. Portable microwave ovens and portable dishwashers.\n\n## 5. Coverage for items of property below the lowest elevated floor of an elevated post-FIRM building located in Zones A1-A30, AE, AH, AR, AR/A, AR/AE, AR/AH, AR/ A1-A30, V1-V30, or VE, or in a basement regardless of the zone, is limited to the following items, if installed in their functioning locations and, if necessary for oper ation, connected to a power source:\n\n- a. Air conditioning units, portable or window type;\n- b. Clothes washers and dryers; and\n- c. Food freezers, other than walk-in, and food in any freezer.\n6. If you are a tenant and have insured personal property under Coverage B in this policy, we will cover such property, including your cooking stove or range and refrigerator. The policy will also cover improvements made or acquired solely at your expense in the dwelling or apartment in which you reside, but for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n7. If you are the owner of a unit and have insured personal property under Coverage B in this policy, we will also cover your interior walls, floor, and ceiling (not otherwise insured under a flood insurance policy purchased by your condominium association) for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n8. Special Limits. We will pay no more than $2,500 for any one loss to one or more of the following kinds of personal property:\n- a. Artwork, photographs, collectibles, or memorabilia, including but not limited to, porcelain or other figures, and sports cards;\n- b. Rare books or autographed items;\n- c. Jewelry, watches, precious and semi-precious stones, or articles of gold, silver, or platinum;\n- d. Furs or any article containing fur that represents its principal value; or\n- e. Personal property used in any business.\n\n## 9. We will pay only for the functional value of antiques.\n\n## C. Coverage C-Other Coverages\n\n1. Debris Removal\n- a. We will pay the expense to remove non-owned debris that is on or in insured property and debris of insured property anywhere.\n- b. If you or a member of your household perform the removal work, the value of your work will be based on the Federal minimum wage.\n- c. This coverage does not increase the Coverage A or Coverage B limit of liability.\n2. Loss Avoidance Measures\n- a. Sandbags, Supplies, and Labor\n- (1) We will pay up to $1,000 for costs you incur to protect the insured building from a flood or imminent danger of flood, for the following:\n8. (a) Your reasonable expenses to buy:\n9. (i) Sandbags, including sand to fill them;\n10. (ii) Fill for temporary levees;\n11. (iii) Pumps; and\n12. (iv) Plastic sheeting and lumber used in connection with these items.\n13. (b) The value of work, at the Federal minimum wage, that you or a member of your house-hold perform.\n- (2) This coverage for Sandbags, Supplies, and Labor only applies if damage to insured property by or from flood is imminent and the threat of flood damage is apparent enough to lead a person of common prudence to anticipate flood damage. One of the following must also occur:\n15. (a) A general and temporary condition of flooding in the area near the described\n\nlocation must occur, even if the flood does not reach the building; or\n\n- (b) A legally authorized official must issue an evacuation order or other civil order for the community in which the building is located calling for measures to preserve life and property from the peril of flood.\n\nThis coverage does not increase the Coverage A or Coverage B limit of liability.\n\n- b. Property Removed to Safety\n- (1) We will pay up to $1,000 for the reasonable expenses you incur to move insured property to a place other than the described location that contains the property in order to protect it from flood or the imminent danger of flood. Reasonable expenses include the value of work, at the Federal minimum wage, you or a member of your household perform.\n- (2) If you move insured property to a location other than the described location that contains the property in order to protect it from flood or the imminent danger of flood, we will cover such property while at that location for a period of 45 consecutive days from the date you begin to move it there. The personal property that is moved must be placed in a fully enclosed building or otherwise reasonably protected from the elements.\n- (3) Any property removed, including a moveable home described in II.6.b and c, must be placed above ground level or outside of the special flood hazard area.\n- (4) This coverage does not increase the Coverage A or Coverage B limit of liability.\n3. Condominium Loss Assessments\n- a. Subject to III.C.3.b below, if this policy insures a condominium unit, we will pay, up to the Coverage A limit of liability, your share of loss assessments charged against you by the condominium association in accordance with the condominium association's articles of association, declarations and your deed. The assessment must be made because of direct physical loss by or from flood during the policy term, to the unit or to the common elements of the NFIP insured condominium building in which this unit is located.\n- b. We will not pay any loss assessment:\n- (1) Charged against you and the condominium association by any governmental body;\n- (2) That results from a deductible under the insurance purchased by the condominium association insuring common elements;\n- (3) That results from a loss to personal property, including contents of a condomin ium building;\n\n## (4) In which the total payment combined under all policies exceeds the maximum amount of coverage available under the Act for a single unit in a condominium building where the unit is insured under both a Dwelling Policy and a RCBAP; or\n\n- (5) On any item of damage that has already been paid under a RCBAP where a single unit in a condominium building is insured by both a Dwelling Policy and a RCBAP.\n- c. Condominium Loss Assessment coverage does not increase the Coverage A Limit of Liability and is subject to the maximum coverage limits available for a single-family dwelling under the Act, payable between all\n\npolicies issued and covering the unit, under the Act.\n\n## D. Coverage D-Increased Cost of Compliance\n\n## 1. General\n\nThis policy pays you to comply with a State or local floodplain management law or ordinance affecting repair or reconstruction of a building suffering flood damage. Compliance activities eligible for payment are: elevation, floodproofing, relocation, or demolition (or any combination of these activities) of your building. Eligible floodproofing activities are limited to:\n\n- a. Non-residential buildings.\n- b. Residential buildings with basements that satisfy FEMA's standards published in the Code of Federal Regulations [44 CFR 60.6(b) or (c)].\n\n## 2. Limit of Liability\n\nWe will pay you up to $30,000 under this Coverage D-Increased Cost of Compliance, which only applies to policies with building coverage (Coverage A). Our payment of claims under Coverage D is in addition to the amount of coverage which you selected on the application and which appears on the Declarations Page. But the maximum you can collect under this policy for both Coverage A-Building Property and Coverage D-Increased Cost of Compliance cannot exceed the maximum permitted under the Act. We do not charge a separate deductible for a claim under Coverage D.\n\n## 3. Eligibility\n\n- a. A building insured under Coverage ABuilding Property sustaining a loss caused by a flood as defined by this policy must:\n- (1) Be a 'repetitive loss building.' A repetitive loss building is one that meets the following conditions:\n3. (a) The building is insured by a contract of flood insurance issued under the NFIP.\n4. (b) The building has suffered flood damage on two occasions during a 10-year period which ends on the date of the second loss.\n5. (c) The cost to repair the flood damage, on average, equaled or exceeded 25 percent of the market value of the building at the time of each flood loss.\n6. (d) In addition to the current claim, the NFIP must have paid the previous qualifying claim, and the State or community must have a cumulative, substantial damage provision or repetitive loss provision in its floodplain management law or ordinance being enforced against the building; or\n- (2) Be a building that has had flood damage in which the cost to repair equals or exceeds 50 percent of the market value of the building at the time of the flood. The State or community must have a substantial damage provision in its floodplain management law or ordinance being enforced against the building.\n- b. This Coverage D pays you to comply with State or local floodplain management laws or ordinances that meet the minimum standards of the National Flood Insurance Program found in the Code of Federal Regulations at 44 CFR 60.3. We pay for compliance activities that exceed those standards under these conditions:\n- (1) 3.a.1 above.\n- (2) Elevation or floodproofing in any risk zone to preliminary or advisory base flood elevations provided by FEMA which the State or local government has adopted and is enforcing for flooddamaged buildings in such areas. (This includes compliance activities in B, C, X, or D zones which are being changed to zones with base flood elevations. This also includes compliance activities in zones where base flood elevations are being increased, and a flood-damaged building must comply with the higher advisory base flood elevation.) Increased Cost of Compliance coverage does not apply to situations in B, C, X, or D zones where the community has derived its own elevations and is enforcing elevation or floodproofing requirements for flooddamaged buildings to elevations derived solely by the community.\n- (3) Elevation or floodproofing above the base flood elevation to meet State or local 'free-board' requirements, i.e., that a building must be elevated above the base flood elevation.\n\n- c. Under the minimum NFIP criteria at 44 CFR 60.3(b)(4), States and communities must require the elevation or floodproofing of buildings in unnumbered A zones to the base flood elevation where elevation data is obtained from a Federal, State, or other source. Such compliance activities are eligible for Coverage D.\n- d. Coverage D will pay for the incremental cost, after demolition or relocation, of elevating or floodproofing a building during its rebuilding at the same or another site to meet State or local floodplain management laws or ordinances, subject to Coverage D Exclusion 5.g below.\n- e. Coverage D will pay to bring a flood-damaged building into compliance with State or local floodplain management laws or ordinances even if the building had received a variance before the present loss from the applicable floodplain management requirements.\n\n## 4. Conditions\n\n- a. When a building insured under Coverage A-Building Property sustains a loss caused by a flood, our payment for the loss under this Coverage D will be for the increased cost to elevate, floodproof, relocate, or demolish (or any combination of these activities) caused by the enforcement of current State or local floodplain management ordinances or laws. Our payment for eligible demolition activities will be for the cost to demolish and clear the site of the building debris or a portion thereof caused by the enforcement of current State or local floodplain management\n\nordinances or laws. Eligible activities for the cost of clearing the site will include those necessary to discontinue utility service to the site and ensure proper abandonment of on-site utilities.\n\n- b. When the building is repaired or rebuilt, it must be intended for the same occupancy as the present building unless otherwise required by current floodplain management ordinances or laws.\n\n## 5. Exclusions\n\nUnder this Coverage D (Increased Cost of Compliance), we will not pay for:\n\n- a. The cost to comply with any flood plain management law or ordinance in communities participating in the Emergency Program.\n- b. The cost associated with enforcement of any ordinance or law that requires any insured or others to test for, monitor, clean up, remove, contain, treat, detoxify or neutralize, or in any way respond to, or assess the effects of pollutants.\n- c. The loss in value to any insured building due to the\n\n- requirements of any ordinance or law.\n- d. The loss in residual value of the undamaged portion of a building demolished as a consequence of enforcement of any State or local flood plain management law or ordinance.\n- e. Any Increased Cost of Compliance under this Coverage D:\n- (1) Until the building is elevated, floodproofed, demolished, or relocated on the same or to another premises; and\n- (2) Unless the building is elevated, floodproofed, demolished, or relocated as soon as reasonably possible after the loss, not to exceed two years.\n- f. Any code upgrade requirements, e.g., plumbing or electrical wiring, not specifically related to the State or local floodplain management law or ordinance.\n- g. Any compliance activities needed to bring additions or improvements made after the loss occurred into compliance with State or local flood plain management laws or ordinances.\n- h. Loss due to any ordinance or law that you were required to comply with before the current loss.\n- i. Any rebuilding activity to standards that do not meet the NFIP's minimum requirements. This includes any situation where the insured has received from the State or community a variance in connection with the current flood loss to rebuild the property to an elevation below the base flood elevation.\n- j. Increased Cost of Compliance for a garage or carport.\n- k. Any building insured under an NFIP Group Flood Insurance Policy.\n- l. Assessments made by a condo minium association on individual condominium unit owners to pay increased costs of repairing commonly owned buildings after a flood in compliance with State or local floodplain management ordinances or laws.\n6. Other Provisions\n- a. Increased Cost of Compliance coverage will not be included in the calculation to determine whether coverage meets the 80 percent insurance-to-value requirement for replacement cost coverage as set forth in Art. VII.R ('Loss Settlement') of this policy.\n- b. All other conditions and provisions of this policy apply.\n\n## We do not insure any of the following:\n\n1. Personal property not inside a building.\n2. A building, and personal property in it, located entirely in, on, or over water or seaward of mean high tide if it was constructed or substantially improved after September 30, 1982.\n3. Open structures, including a building used as a boathouse or any structure or building into which boats are floated, and personal property located in, on, or over water.\n4. Recreational vehicles other than travel trailers described in the Definitions section (see II.C.6.c) whether affixed to a permanent foundation or on wheels.\n5. Self-propelled vehicles or machines, including their parts and equipment. However, we do cover self-propelled vehicles or machines not licensed for use on public roads that are:\n- a. Used mainly to service the described location; or\n- b. Designed and used to assist handicapped persons, while the vehicles or machines\n8. are inside a building at the described location.\n6. Land, land values, lawns, trees, shrubs, plants, growing crops, or animals.\n7. Accounts, bills, coins, currency, deeds, evidences of debt, medals, money, scrip, stored value cards, postage stamps, securities, bullion, manuscripts, or other valuable papers.\n8. Underground structures and equip ment, including wells, septic tanks, and septic systems.\n9. Those portions of walks, walkways, decks, driveways, patios and other surfaces, all whether protected by a roof or not, located outside the perimeter, exterior walls of the insured building or the building in which the insured unit is located.\n10. Containers, including related equipment, such as, but not limited to, tanks containing gases or liquids.\n11. Buildings or units and all their contents if more than 49 percent of the actual cash value of the building is below ground, unless the lowest level is at or above the base flood elevation and is below\n\n- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\n## V. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer.\n\nB. Flood in Progress. If this policy became effective as of the time of a loan closing, as provided by 44 CFR 61.11(b), we will not pay for a loss caused by a flood that is a continuation of a flood that existed prior to coverage becoming effective.\n\nIn all other circumstances, we will not pay for a loss caused by a flood that is a continuation of a flood that existed on or before the day you submitted the application for coverage under this policy and the full amount due. We will determine the date of application using 44 CFR 61.11(f).\n\nC. We do not insure for loss to property caused directly by earth movement even if the earth movement is caused by flood. Some examples of earth movement that we do not cover are:\n\n1. Earthquake;\n2. Landslide;\n3. Land subsidence;\n4. Sinkholes;\n5. Destabilization or movement of land that results from accumulation of water in subsurface land area; or\n6. Gradual erosion.\n\nWe do, however, pay for losses from mudflow and land subsidence as a result of erosion that are specifically insured under our definition of flood (see II.B.1.c and II.B.2).\n\nD. We do not insure for direct physical loss caused directly or indirectly by any of the following:\n\n1. The pressure or weight of ice;\n2. Freezing or thawing;\n3. Rain, snow, sleet, hail, or water spray;\n4. Water, moisture, mildew, or mold damage that results primarily from any condition:\n- a. Substantially confined to the dwelling; or\n- b. That is within your control, including but not limited to:\n- (1) Design, structural, or mechanical defects;\n- (2) Failure, stoppage, or breakage of water or sewer lines, drains, pumps, fixtures, or equipment; or\n- (3) Failure to inspect and maintain the property after a flood recedes;\n5. Water or water-borne material that:\n- a. Backs up through sewers or drains;\n- b. Discharges or overflows from a sump, sump pump, or related equipment; or\n- c. Seeps or leaks on or through the insured property;\n\nunless there is a flood in the area and the flood is the proximate cause of the sewer or drain backup, sump pump discharge or overflow, or the seepage of water;\n\n6. The pressure or weight of water unless there is a flood in the area and the flood is the proximate cause of the damage from the pressure or weight of water;\n7. Power, heating, or cooling failure unless the failure results from direct physical loss by or from flood to power, heating, or cooling equipment on the described location;\n8. Theft, fire, explosion, wind, or windstorm;\n9. Anything you or any member of your household do or conspire\n\nto do to deliberately cause loss by flood; or\n\n10. Alteration of the insured property that significantly increases the risk of flooding.\n\nE. We do not insure for loss to any building or personal property located on land leased from the Federal Government, arising from or incident to the flooding of the land by the Federal Government, where the lease expressly holds the Federal Government harmless under flood insurance issued under any Federal Government program.\n\nF. We do not pay for the testing for or monitoring of pollutants unless required by law or ordinance.\n\n## VI. DEDUCTIBLES\n\nA. When a loss is insured under this policy, we will pay only that part of the loss that exceeds your deductible amount, subject to the limit of liability that applies. The deductible amount is shown on the Declarations Page.\n\nB. In each loss from flood, separate deductibles apply to the building and personal property insured by this policy.\n\n- C. The deductible does NOT apply to:\n1. III.C.2. Loss Avoidance Measures;\n2. III.C.3. Condominium Loss Assessments; or\n3. III.D. Increased Cost of Compliance.\n\nHowever, when a building under construction, alteration, or repair does not have at least two rigid exterior walls and a fully secured roof at the time of loss, your deductible amount will be two times the deductible that would otherwise apply to a completed building.\n\n## A. Pair and Set Clause\n\nIn case of loss to an article that is part of a pair or set, we will have the option of paying you:\n\n1. An amount equal to the cost of replacing the lost, damaged, or destroyed article, minus its depreciation; or\n2. The amount that represents the fair proportion of the total value of the pair or set that the lost, damaged, or destroyed article bears to the pair or set.\n\n## B. Other Insurance\n\n1. If a loss insured by this policy is also insured by other insurance that includes flood coverage not issued under the Act, we will not pay more than the amount of insurance you are entitled to for lost, damaged, or destroyed property insured under this policy subject to the following:\n- a. We will pay only the proportion of the loss that the amount of insurance that applies under this policy bears to the total amount of insurance covering the loss, unless VII.B.1.b or c immediately below applies.\n- b. If the other policy has a provision stating that it is excess insurance, this policy will be primary.\n- c. This policy will be primary (but subject to its own deductible)\n\nup to the deductible in the other flood policy (except another policy as described in VII.B.1.b above). When the other deductible amount is reached, this policy will participate in the same proportion that the amount of insurance under this policy bears to the total amount of both policies, for the remainder of the loss.\n\n2. If there is other insurance issued under the Act in the name of your condominium association covering the same property insured by this policy, then this policy will be in excess over the other insurance, except where a condominium loss assessment to the unit owner results from a loss sustained by the condominium association that was not reimbursed under a flood insurance policy written in the name of the association under the Act because the building was not, at the time of loss, insured for an amount equal to the lesser of:\n- a. 80 percent or more of its full replacement cost; or\n\n- b. The maximum amount of insurance permitted under the Act.\n3. The combined coverage payment under the other NFIP insurance and this policy cannot exceed the maximum coverage available under the Act, of $250,000 per single unit.\n\n## C. Amendments, Waivers, Assignment\n\nThis policy cannot be changed, nor can any of its provisions be waived, without the express written consent of the Federal Insurance Administrator. No action we take under the terms of this policy constitutes a waiver of any of our rights. You may assign this policy in writing when you transfer title of your property to someone else except under these conditions:\n\n- a. When this policy insures only personal property; or\n- b. When this policy insures a building under construction.\n- D. Insufficient Premium or Rating Information\n1. Applicability. The following provisions apply to all instances where the premium paid on this policy is insufficient or where the rating information is insufficient, such as where an Elevation Certificate is not provided.\n2. Reforming the Policy with Re\u00ad duced Coverage. Except as otherwise provided in VII.D.1, if the premium we received from you was not sufficient to buy the kinds and amounts of coverage you requested, we will provide only the kinds and\n\namounts of coverage that can be purchased for the premium payment we received.\n\n- a. For the purpose of determining whether your premium payment is sufficient to buy the kinds and amounts of coverage you requested, we will first deduct the costs of all applicable fees and surcharges.\n- b. If the amount paid, after deducting the costs of all applicable fees and surcharges, is not sufficient to buy any amount of coverage, your payment will be refunded. Unless the policy is reformed to increase the coverage amount to the amount originally requested pursuant to VII.D.3, this policy will be cancelled, and no claims will be paid under this policy.\n- c. Coverage limits on the reformed policy will be based upon the amount of premium submitted per type of coverage, but will not exceed the amount originally requested.\n3. Discovery of Insufficient Premium or Rating Information. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, the policy will\n\nbe reformed as described in VII.D.2. You have the option of increasing the amount of coverage resulting from this reformation to the amount you requested as follows:\n\n- a. Insufficient Premium. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, we will send you, and any mortgagee or trustee known to us, a bill for the required additional premium for the current policy term (or that portion of the current policy term following any endorsement changing the amount of coverage). If it is discovered that the initial amount charged to you for any fees or surcharges is incorrect, the difference will be added or deducted, as applicable, to the total amount in this bill.\n- (1) If you or the mortgagee or trustee pays the additional premium amount due within 30 days from the date of our bill, we will reform the policy to increase the amount of coverage to the originally requested amount, effective to the beginning\n\nof the current policy term (or subsequent date of any endorsement changing the amount of coverage).\n\n- (2) If you or the mortgagee or trustee do not pay the additional amount due within 30 days of the date of our bill, any flood insurance claim will be settled based on the reduced amount of coverage.\n- (3) As applicable, you have the option of paying all or part of the amount due out of a claim payment based on the originally requested amount of coverage.\n- b. Insufficient Rating Inform\u00ad ation. If we determine that the rating information we have is insufficient and prevents us from calculating the additional premium, we will ask you to send the required information. You must submit the information within 60 days of our request.\n- (1) If we receive the information within 60 days of our request, we will determine the amount of additional premium for the current\n\npolicy term, and follow the procedure in VII.D.3.a above.\n\n- (2) If we do not receive the information within 60 days of our request, no claims will be paid until the requested information is provided. Coverage will be limited to the amount of coverage that can be purchased for the payments we received, as determined when the requested information is provided.\n4. Coverage Increases. If we do not receive the amounts requested in VII.D.3.a or the additional information requested in VII.D.3.b by the date it is due, the amount of coverage under this policy can only be increased by endorsement subject to the appropriate waiting period. However, no coverage increases will be allowed until you have provided the information requested in VII.D.3.b.\n5. Falsifying Information. However, if we find that you or your agent intentionally did not tell us, or falsified any important fact or circumstance or did anything fraudulent relating to this insurance, the provisions of VIII.A apply.\n\n## E. Policy Renewal\n\n1. This policy will expire at 12:01 a.m. on the last day of the policy term.\n2. We must receive the payment of the appropriate renewal premium within 30 days of the expiration date.\n3. If we find, however, that we did not place your renewal notice into the U.S. Postal Service, or if we did mail it, we made a mistake, e.g., we used an incorrect, incomplete, or illegible address, which delayed its delivery to you before the due date for the renewal premium, then we will follow these procedures:\n- a. If you or your agent notified us, not later than one year after the date on which the payment of the renewal premium was due, of non-receipt of a renewal notice before the due date for the renewal premium, and we determine that the circumstances in the preceding paragraph apply, we will mail a second bill providing a revised due date, which will be 30 days after the date on which the bill is mailed.\n- b. If we do not receive the premium requested in the second bill by the revised due date, then we will not renew the policy. In that case, the policy will remain an expired policy as of the expiration date shown on the Declarations Page.\n4. In connection with the renewal of this policy, we may ask you during the policy term to recertify, on a Recertification Questionnaire we will provide to you, the rating information used to rate your most recent application for or renewal of insurance.\n- F. Conditions Suspending or Restricting Insurance\n\nWe are not liable for loss that occurs while there is a hazard that is increased by any means within your control or knowledge.\n\n- G. Requirements in Case of Loss\n\nIn case of a flood loss to insured property, you must:\n\n1. Give prompt written notice to us.\n2. As soon as reasonably possible, separate the damaged and\n\nundamaged property, putting it in the best possible order so that we may examine it.\n\n3. Prepare an inventory of damaged property showing the quantity, description, actual cash value, and amount of loss. Attach all bills, receipts, and related documents.\n4. Within 60 days after the loss, send us a proof of loss, which is your statement of the amount you are claiming under the policy signed and sworn to by you, and which furnishes us with the following information:\n- a. The date and time of loss;\n- b. A brief explanation of how the loss happened;\n- c. Your interest (for example, 'owner') and the interest, if any, of others in the damaged property;\n- d. Details of any other insurance that may cover the loss;\n- e. Changes in title or occupancy of the insured property during the term of the policy;\n- f. Specifications of damaged buildings and detailed repair estimates;\n- g. Names of mortgagees or anyone else having a lien,\n\ncharge, or claim against the insured property;\n\n- h. Details about who occupied any insured building at the time of loss and for what purpose; and\n- i. The inventory of damaged personal property described in G.3 above.\n5. In completing the proof of loss, you must use your own judgment concerning the amount of loss and justify that amount.\n6. You must cooperate with the adjuster or representative in the investigation of the claim.\n7. The insurance adjuster whom we hire to investigate your claim may furnish you with a proof of loss form, and she or he may help you complete it. However, this is a matter of courtesy only, and you must still send us a proof of loss within 60 days after the loss even if the adjuster does not furnish the form or help you complete it.\n8. We have not authorized the adjuster to approve or disapprove claims or to tell you whether we will approve your claim.\n9. At our option, we may accept the adjuster's report of the loss instead of your proof of loss. The adjuster's report will include information about your loss and the damages you sustained. You must sign the adjuster's report. At our option, we may require you to swear to the report.\n\nH. Our Options After a Loss\n\nOptions we may, in our sole discretion, exercise after loss include the following:\n\n1. At such reasonable times and places that we may designate, you must:\n- a. Show us or our representative the damaged property;\n- b. Submit to examination under oath, while not in the presence of another insured, and sign the same; and\n- c. Permit us to examine and make extracts and copies of:\n- (1) Any policies of property insurance insuring you against loss and the deed establishing your ownership of the insured real property;\n- (2) Condominium association documents including the Declarations of the condominium, its Articles of Association or Incorporation, Bylaws, rules and regulations, and other relevant documents if you are a unit owner in a condominium building; and\n- (3) All books of accounts, bills, invoices and other vouchers, or certified copies pertaining to the damaged property if the originals are lost.\n2. We may request, in writing, that you furnish us with a complete\n\ninventory of the lost, damaged or destroyed property, including:\n\n- a. Quantities and costs;\n- b. Actual cash values or replacement cost (whichever is appropriate);\n- c. Amounts of loss claimed;\n- d. Any written plans and specifications for repair of the damaged property that you can reasonably make available to us; and\n- e. Evidence that prior flood damage has been repaired.\n3. If we give you written notice within 30 days after we receive your signed, sworn proof of loss, we may:\n- a. Repair, rebuild, or replace any part of the lost, damaged, or destroyed property with material or property of like kind and quality or its functional equivalent; and\n- b. Take all or any part of the damaged property at the value that we agree upon or its appraised value.\n- I. No Benefit to Bailee\n\nNo person or organization, other than you, having custody of insured property will benefit from this insurance.\n\n## J. Loss Payment\n\n1. We will adjust all losses with you. We will pay you unless some other person or entity is named in the policy or is legally entitled to receive payment. Loss will be payable 60 days after we receive your proof of loss (or within 90 days after the insurance adjuster files the adjuster's report signed and sworn to by you in lieu of a proof of loss) and:\n- a. We reach an agreement with you;\n- b. There is an entry of a final judgment; or\n- c. There is a filing of an appraisal award with us, as provided in VII.M.\n2. If we reject your proof of loss in whole or in part you may:\n- a. Accept our denial of your claim;\n- b. Exercise your rights under this policy; or\n- c. File an amended proof of loss as long as it is filed within 60 days of the date of the loss.\n\n## K. Abandonment\n\nYou may not abandon to us damaged or undamaged property insured under this policy.\n\n## L. Salvage\n\nWe may permit you to keep damaged property insured under this policy after a loss, and we will reduce the amount of the loss proceeds payable to you under the policy by the value of the salvage.\n\n## M. Appraisal\n\nIf you and we fail to agree on the actual cash value or, if applicable, replacement cost of your damaged property to settle upon the amount of loss, then either may demand an appraisal of the loss. In this event, you and we will each choose a competent and impartial appraiser within 20 days after receiving a written request from the other. The two appraisers will choose an umpire. If they cannot agree upon an umpire within 15 days, you or we may request that the choice be made by a judge of a court of record in the state where the insured property is located. The appraisers will separately state the actual cash value, the replacement cost, and the amount of loss to each item. If the appraisers submit a written report of an agreement to us, the amount agreed upon will be the amount of loss. If they fail to agree, they will submit their differences to the umpire. A decision agreed to by any two will set the amount of actual cash value and loss, or if it applies, the replacement cost and loss.\n\n## Each party will:\n\n1. Pay its own appraiser; and\n2. Bear the other expenses of the appraisal and umpire equally.\n\n## N. Mortgage Clause\n\n## 1. The word 'mortgagee' includes trustee.\n\n2. Any loss payable under Coverage A-Building Property will be paid to any mortgagee of whom we have actual notice, as well as any other mortgagee or loss payee determined to exist at the time of loss, and you, as interests appear. If more than one mortgagee is named, the order of payment will be the same as the order of precedence of the mortgages.\n3. If we deny your claim, that denial will not apply to a valid claim of the mortgagee, if the mortgagee:\n- a. Notifies us of any change in the ownership or occupancy, or substantial change in risk of which the mortgagee is aware;\n- b. Pays any premium due under this policy on demand if you have neglected to pay the premium; and\n- c. Submits a signed, sworn proof of loss within 60 days after receiving notice from us of your failure to do so.\n\n4. All of the terms of this policy apply to the mortgagee.\n5. The mortgagee has the right to receive loss payment even if the mortgagee has started foreclosure or similar action on the building.\n6. If we decide to cancel or not renew this policy, it will continue in effect for the benefit of the mortgagee only for 30 days after we notify the mortgagee of the cancellation or non-renewal.\n7. If we pay the mortgagee for any loss and deny payment to you, we are subrogated to all the rights of the mortgagee granted under the mortgage on the property. Subrogation will not impair the right of the mortgagee to recover the full amount of the mortgagee's claim.\n- O. Suit Against Us\n\nYou may not sue us to recover money under this policy unless you have complied with all the requirements of the policy. If you do sue, you must start the suit within one year after the date of the written denial of all or part of the claim, and you must file the suit in the United States District Court of the district in which the insured property was located at the time of loss. This requirement applies to any claim that you may have under this policy and to any dispute that you may have arising out of the handling of any claim under the policy.\n\n- P. Subrogation\n\nWhenever we make a payment for a loss under this policy, we are subrogated to your right to recover for that loss from any other person. That means that your right to recover for a loss that was partly or totally caused by someone else is automatically transferred to us, to the extent that we have paid you for the loss. We may require\n\nyou to acknowledge this transfer in writing. After the loss, you may not give up our right to recover this money or do anything that would prevent us from recovering it. If you make any claim against any person who caused your loss and recover any money, you must pay us back first before you may keep any of that money.\n\n- Q. Continuous Lake Flooding\n1. If an insured building has been flooded by rising lake waters continuously for 90 days or more and it appears reasonably certain that a continuation of this flooding will result in an insured loss to the insured building equal to or greater than the building policy limits plus the deductible or the maximum payable under the policy for any one building loss, we will pay you the lesser of these two amounts without waiting for the further\n\ndamage to occur if you sign a release agreeing:\n\n- a. To make no further claim under this policy;\n- b. Not to seek renewal of this policy;\n- c. Not to apply for any flood insurance under the Act for property at the described location;\n- d. Not to seek a premium refund for current or prior terms.\n\nIf the policy term ends before the insured building has been flooded continuously for 90 days, the provisions of this paragraph Q.1 will apply when the insured building suffers a covered loss before the policy term ends.\n\n2. If your insured building is subject to continuous lake flooding from a closed basin lake, you may elect to file a claim under either paragraph Q.1 above or Q.2 (A 'closed basin lake' is a natural lake from which water leaves primarily through evaporation and whose surface area now exceeds or has exceeded one square mile at any time in the recorded past. Most of the nation's closed basin lakes are in the western half of the United\n\nStates where annual evaporation exceeds annual precipitation and where lake levels and surface areas are subject to considerable fluctuation due to wide variations in the climate. These lakes may overtop their basins on rare occasions.) Under this paragraph Q.2, we will pay your claim as if the building is a total loss even though it has not been continuously inundated for 90 days, subject to the following conditions:\n\n- a. Lake floodwaters must damage or imminently threaten to damage your building.\n- b. Before approval of your claim, you must:\n- (1) Agree to a claim payment that reflects your buying back the salvage on a negotiated basis; and\n- (2) Grant the conservation easement described in FEMA's 'Policy Guidance for Closed Basin Lakes' to be recorded in the office of the local recorder of deeds. FEMA, in consultation with the community in which the property is located, will identify on a map an area or areas\n\nof special consideration (ASC) in which there is a potential for flood damage from continuous lake flooding. FEMA will give the community the agreedupon map showing the ASC. This easement will only apply to that portion of the property in the ASC. It will allow certain agricultural and recreational uses of the land. The only structures it will allow on any portion of the property within the ASC are certain simple agricultural and recreational structures. If any of these allowable structures are insurable buildings under the NFIP and are insured under the NFIP, they will not be eligible for the benefits of this paragraph Q.2. If a U.S. Army Corps of Engineers certified flood control project or otherwise certified flood control project later protects the property, FEMA will, upon request, amend the ASC to remove areas protected by those projects. The restrictions of the easement will then no longer apply to any portion of the\n\n- property removed from the ASC; and\n- (3) Comply with paragraphs Q.1.a through Q.1.d above.\n- c. Within 90 days of approval of your claim, you must move your building to a new location outside the ASC. FEMA will give you an additional 30 days to move if you show there is sufficient reason to extend the time.\n- d. Before the final payment of your claim, you must acquire an elevation certificate and a floodplain development permit from the local floodplain administrator for the new location of your building.\n- e. Before the approval of your claim, the community having jurisdiction over your building must:\n- (1) Adopt a permanent land use ordinance, or a temporary moratorium for a period not to exceed 6 months to be followed immediately by a permanent land use ordinance that is consistent with the provisions specified in the easement required in paragraph Q.2.b above;\n\n- (2) Agree to declare and report any violations of this ordinance to FEMA so that under Section 1316 of the National Flood Insurance Act of 1968, as amended, flood insurance to the building can be denied; and\n- (3) Agree to maintain as deedrestricted, for purposes compatible with open space or agricultural or recreational use only, any affected property the community acquires an interest in. These deed restrictions must be consistent with the provisions of paragraph Q.2.b above, except that, even if a certified project protects the property, the land use restrictions continue to apply if the property was acquired under the Hazard Mitigation Grant Program or the Flood Mitigation Assistance Program. If a non-profit land trust organization receives the property as a donation, that organization must maintain the property as deed-restricted, consistent\n3. with the provisions of paragraph Q2.b above.\n- f. Before the approval of your claim, the affected State must take all action set forth in FEMA's 'Policy Guidance for Closed Basin Lakes.'\n- g. You must have NFIP flood insurance coverage con tinuously in effect from a date established by FEMA until you file a claim under paragraph Q.2. If a subsequent owner buys NFIP insurance that goes into effect within 60 days of the date of transfer of title, any gap in coverage during that 60-day period will not be a violation of this continuous coverage requirement. For the purpose of honoring a claim under this paragraph Q.2, we will not consider to be in effect any increased coverage that became effective after the date established by FEMA. The exception to this is any increased coverage in the amount suggested by your insurer as an inflation adjustment.\n- h. This paragraph Q.2 will be in effect for a community when the FEMA Regional Administrator for the affected region provides\n\n## to the community, in writing, the following:\n\n- (1) Confirmation that the community and the State are in compliance with the conditions in paragraphs Q.2.e and Q.2.f above; and\n\n## (2) The date by which you must have flood insurance in effect.\n\n## R. Loss Settlement\n\n1. Introduction\n\nThis policy provides three methods of settling losses: Replacement Cost, Special Loss Settlement, and Actual Cash Value. Each method is used for a different type of property, as explained in paragraphs a-c below.\n\n- a. Replacement Cost Loss Set tlement , described in R.2 below, applies to a singlefamily dwelling provided:\n\n## (1) It is your principal residence; and\n\n- (2) At the time of loss, the amount of insurance in this policy that applies to the dwelling is 80 percent or more of its full replacement cost immediately before the loss, or is the maximum amount of insurance available under the NFIP.\n- b. Special Loss Settlement , described in R.3 below, applies to a single-family dwelling that is a manufactured or mobile home or a travel trailer.\n- c. Actual Cash Value Loss Settlement applies to a single-family dwelling not subject to replacement cost or special loss settlement, and to the property listed in R.4 below.\n2. Replacement Cost Loss Settlement\n\nThe following loss settlement conditions apply to a single-family dwelling described in R.1.a above:\n\n- a. We will pay to repair or replace the damaged dwelling after application of the deductible and without deduction for depreciation, but not more than the least of the following amounts:\n- (1) The building limit of liability shown on your Declarations Page;\n- (2) The replacement cost of that part of the dwelling damaged, with materials of like kind and quality and for like use; or\n- (3) The necessary amount actually spent to repair or replace the damaged part of the dwelling for like use.\n- b. If the dwelling is rebuilt at a new location, the cost described above is limited to the cost that would have been incurred if the dwelling had been rebuilt at its former location.\n- c. When the full cost of repair or replacement is more than $1,000, or more than 5 percent of the whole amount of insurance that applies to the dwelling, we will not be liable for any loss under R.2.a above or R.4.a.2 below unless and until actual repair or replacement is completed.\n- d. You may disregard the replacement cost conditions above and make claim under this policy for loss to dwellings on an actual cash value basis. You may then make claim for any additional liability according to R.2.a, b, and c above, provided you notify us of your intent to do so within 180 days after the date of loss.\n- e. If the community in which your dwelling is located has been converted from the Emergency Program to the Regular Program during the current policy term, then we will consider the maximum amount of available NFIP insurance to be the amount that was available at the beginning of the current policy term.\n3. Special Loss Settlement\n- a. The following loss settlement conditions apply to a single-family dwelling that:\n- (1) is a manufactured or mobile home or a travel trailer, as defined in II.C.6.b and c;\n\n- (2) is at least 16 feet wide when fully assembled and has an area of at least 600 square feet within its perimeter walls when fully assembled; and\n- (3) is your principal residence as specified in R.1.a.1 above.\n- b. If such a dwelling is totally destroyed or damaged to such an extent that, in our judgment, it is not economically feasible to repair, at least to its pre-damage condition, we will, at our discretion pay the least of the following amounts:\n- (1) The lesser of the replacement cost of the dwelling or 1.5 times the actual cash value; or\n- (2) The building limit of liability shown on your Declarations Page.\n- c. If such a dwelling is partially damaged and, in our judgment, it is economically feasible to repair it to its pre-damage condition, we will settle the loss according to the Replacement Cost conditions in R.2 above.\n\n## 4. Actual Cash Value Loss Settlement\n\nThe types of property noted below are subject to actual cash value (or in the case of R.4.a.2., below, proportional) loss settlement.\n\n- a. A dwelling, at the time of loss, when the amount of insurance on the dwelling is both less than 80 percent of its full replacement cost immediately before the loss and less than the maximum amount of insurance available under the NFIP. In that case, we will pay the greater of the following amounts, but not more than the amount of insurance that applies to that dwelling:\n- (1) The actual cash value, as defined in II.C.2, of the damaged part of the dwelling; or\n- (2) A proportion of the cost to repair or replace the damaged part of the dwelling, without deduction for physical depreciation and after application of the deductible.\n\nThis proportion is determined as follows: If 80 percent of the full replacement cost of the dwelling is less than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the amount of insurance that represents 80 percent of its full replacement cost. But if 80 percent of the full replacement cost of the dwelling is greater than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the maximum amount of insurance available under the NFIP.\n\n- b. A two-, three-, or four-family dwelling.\n- c. A unit that is not used exclusively for singlefamily dwelling purposes.\n- d. Detached garages.\n- e. Personal property.\n- f. Appliances, carpets, and carpet pads.\n- g. Outdoor awnings, outdoor antennas or aerials of any type, and other outdoor equipment.\n- h. Any property insured under this policy that is abandoned after a loss and remains as debris anywhere on the described location.\n- i. A dwelling that is not your principal residence.\n\n## 5. Amount of Insurance Required\n\nTo determine the amount of insurance required for a dwelling immediately before the loss, we do not include the value of:\n\n- a. Footings, foundations, piers, or any other structures or devices that are below the undersurface of the lowest basement floor and support all or part of the dwelling;\n- b. Those supports listed in R.5.a above, that are below the surface of the ground inside the foundation walls if there is no basement; and\n- c. Excavations and underground flues, pipes, wiring, and drains.\n\nNote: The Coverage D-Increased Cost of Compliance limit of liability is not included in the determination of the amount of insurance required.\n\n## VIII. POLICY NULLIFICATION, CANCELLATION, AND NON-RENEWAL\n\n- A. Policy Nullification for Fraud, Misrepresentation, or Making False Statements\n1. With respect to all insureds under this policy, this policy is void and has no legal force and effect if at any time, before or after a loss, you or any other insured or your agent have, with respect to this policy or any other NFIP insurance:\n- a. Concealed or misrepresented any material fact or circumstance;\n- b. Engaged in fraudulent conduct; or\n- c. Made false statements.\n2. Policies voided under A.1 cannot be renewed or replaced by a new NFIP policy.\n3. Policies are void as of the date the acts described in A.1 above were committed.\n4. Fines, civil penalties, and imprisonment under applicable Federal laws may also apply to the acts of fraud or concealment described above.\n- B. Policy Nullification for Reasons Other Than Fraud\n1. This policy is void from its inception, and has no legal force or effect, if:\n- a. The property listed on the application is located in a community that was not participating in the NFIP on this policy's inception date and did not join or reenter the program during the policy term and before the loss occurred;\n- b. The property listed on the application is otherwise not eligible for coverage under the NFIP at the time of the initial application;\n- c. You never had an insurable interest in the property listed on the application;\n- d. You provided an agent with an application and payment, but the payment did not clear; or\n- e. We receive notice from you, prior to the policy effective date, that you have determined not to take the policy and you are not subject to a requirement to obtain and maintain flood insurance pursuant to any statute, regulation, or contract.\n2. In such cases, you will be entitled to a full refund of all premium, fees, and surcharges received. However, if a claim was paid for a policy that is void, the claim payment must be returned to FEMA or offset from the premiums to be refunded before the refund will be processed.\n\n## C. Cancellation of the Policy by You\n\n1. You may cancel this policy in accordance with the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n2. If you cancel this policy, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n## D. Cancellation of the Policy by Us\n\n1. Cancellation for Underpayment of Amounts Owed on Policy. This policy will be cancelled, pursuant to VII.D.2, if it is determined that the premium amount you paid is not sufficient to buy any amount of coverage, and you do not pay the additional amount of premium owed to increase the coverage to the originally requested amount within the required time period.\n\n## 2. Cancellation Due to Lack of an Insurable Interest.\n\n- a. If you no longer have an insurable interest in the insured property, we will cancel this policy. You will cease to have an insurable interest if:\n- (1) For building coverage, the building was sold, destroyed, or removed.\n- (2) For contents coverage, the contents were sold or transferred ownership, or the contents were\n\ncompletely removed from the described location.\n\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the applicable rules and regulations of the NFIP.\n\n## 3. Cancellation of Duplicate Policies\n\n- a. Except as allowed under Article I.G, your property may not be insured by more than one NFIP policy, and payment for damages to your property will only be made under one policy.\n- b. Except as allowed under Article I.G, if the property is insured by more than one NFIP policy, we will cancel all but one of the policies. The policy, or policies, will be selected for cancellation in accordance with 44 CFR 62.5 and the applicable rules and guidance of the NFIP.\n- c. If this policy is cancelled pursuant to VIII.D.4.b, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n## 4. Cancellation Due to Physical Alteration of Property\n\n- a. If the insured building has been physically altered in such a manner that it is no longer eligible for flood insurance coverage, we will cancel this policy.\n\n## of this policy and the applicable rules and regulations of the NFIP.\n\n## E. Non-Renewal of the Policy by Us\n\nYour policy will not be renewed if:\n\n1. The community where your insured property is located is suspended or stops participating in the NFIP;\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the terms and conditions\n2. Your building is otherwise ineligible for flood insurance under the Act;\n3. You have failed to provide the information we requested for the purpose of rating the policy within the required deadline.\n\n## IX. LIBERALIZATION CLAUSE\n\nIf we make a change that broadens your coverage under this edition of our policy, but does not require any additional premium, then that change will automatically apply to your insurance as of the date we implement the change, provided that this implementation date falls within 60 days before or during the policy term stated on the Declarations Page.\n\n## X. WHAT LAW GOVERNS\n\nThis policy and all disputes arising from the insurer's policy issuance, policy administration, or the handling of any claim under the policy are governed exclusively by the flood insurance regulations issued by FEMA, the National Flood Insurance Act of 1968, as amended (42 U.S.C. 4001, et seq.), and Federal common law.\n\nIn Witness Whereof, we have signed this policy below and hereby enter into this Insurance Agreement.\n\n<!-- image -->\n\nDeputy Associate Administrator Federal Insurance and Mitigation Administration",
+ "text": "National Flood Insurance Program\n\nDwelling Form\n\nStandard Flood Insurance Policy\n\nF-122 / October 2021\n\nStandard Flood Insurance Policy\n\nDwelling Form\n\nPlease read the policy carefully. The flood insurance provided is subject to limitations, restrictions, and exclusions.\n\nI. AGREEMENT\n\n- A. This policy insures the following types of property only:\n1. A one to four family residential building, not under a condominium form of ownership;\n- E. This policy insures only one building. If you own more than one building, coverage will apply to the single building specifically described in the Flood Insurance Application.\n2. A single-family dwelling unit in a condominium building; and\n3. Personal property in a building.\n- B. The Federal Emergency Management Agency (FEMA) provides flood insurance under the terms of the National Flood Insurance Act of 1968 and its amendments, and Title 44 of the Code of Federal Regulations.\n- C. We will pay you for direct physical loss by or from flood to your insured property if you:\n1. Have paid the full amount due (including applicable premiums, surcharges, and fees);\n2. Comply with all terms and conditions of this policy; and\n3. Have furnished accurate information and statements.\n- D. We have the right to review the information you give us at any time and revise your policy based on our review.\n- F. Subject to the exception in I.G below, multiple policies with building coverage cannot be issued to insure a single building to one insured or to different insureds, even if separate policies were issued through different NFIP insurers. Payment for damages may only be made under a single policy for building damages under Coverage ABuilding Property.\n- G. A Dwelling Form policy with building coverage may be issued to a unit owner in a condominium building that is also insured under a Residential Condominium\n\nBuilding Association Policy (RCBAP). However, no more than $250,000 may be paid in combined benefits for a single unit under the Dwelling Form policy and the RCBAP. We will only pay for damage once. Items of damage paid for under an RCBAP cannot also be claimed under the Dwelling Form policy.\n\nII. DEFINITIONS\n\nA. In this policy, 'you' and 'your' refer to the named insured(s) shown on the Declarations Page of this policy and the spouse of the named insured, if a resident of the same household. Insured(s) also includes: Any mortgagee and loss payee named in the Application and Declarations Page, as well as any other mortgagee or loss payee determined to exist at the time of loss, in the order of precedence. 'We,' 'us,' and 'our' refer to the insurer.\n\nSome definitions are complex because they are provided as they appear in the law or regulations, or result from court cases.\n\n- B. Flood , as used in this flood insurance policy, means:\n1. A general and temporary condition of partial or complete inundation of two or more acres of normally dry land area or of two or more properties (one of which is your property) from:\n- a. Overflow of inland or tidal waters;\n- b. Unusual and rapid accumulation or runoff of surface waters from any source;\n- c. Mudflow.\n2. Collapse or subsidence of land along the shore of a lake or similar body of water as a result of erosion\n\nor undermining caused by waves or currents of water exceeding anticipated cyclical levels that result in a flood as defined in B.1.a above.\n\nC. The following are the other key definitions we use in this policy:\n\n1. Act. The National Flood Insurance Act of 1968 and any amendments to it.\n2. Actual Cash Value. The cost to replace an insured item of property at the time of loss, less the value of its physical depreciation.\n3. Application. The statement made and signed by you or your agent in applying for this policy. The application gives information we use to determine the eligibility of the risk, the kind of policy to be issued, and the correct premium payment. The application is part of this flood insurance policy.\n4. Base Flood. A flood having a one percent chance of being equaled or exceeded in any given year.\n5. Basement. Any area of a building, including any sunken room or sunken portion of a room, having its floor below ground level on all sides.\n6. Building\n- a. A structure with two or more outside rigid walls and a fully secured roof that is affixed to a permanent site;\n- b. A manufactured home, also known as a mobile home, is a structure: built on a permanent chassis, transported to its site in one or more sections, and affixed to a permanent foundation; or\n- c. A travel trailer without wheels, built on a chassis and affixed to a permanent foundation, that is regulated under the community's floodplain management and building ordinances or laws.\n\nBuilding does not mean a gas or liquid storage tank, shipping container, or a recreational vehicle, park trailer, or other similar vehicle, except as described in C.6.c above.\n\n7. Cancellation. The ending of the insurance coverage provided by this policy before the expiration date.\n8. Condominium. That form of ownership of one or more buildings in which each unit owner has an undivided interest in common elements.\n9. Condominium Association. The entity made up of the unit owners responsible for the maintenance and operation of:\n- a. Common elements owned in undivided shares by unit owners; and\n- b. Other buildings in which the unit owners have use rights; where membership in the entity is a required condition of ownership.\n10. Condominium Building. A type of building for which the form of ownership is one in which each unit owner has an undivided interest in common elements of the building.\n11. Declarations Page. A computer-generated summary of information you provided in your application for insurance. The Declarations Page also describes the term of the policy, limits of coverage, and displays the premium and our name. The Declarations Page is a part of this flood insurance policy.\n12. Deductible. The amount of an insured loss that is your responsibility and that is incurred by you before any amounts are paid for the insured loss under this policy.\n13. Described Location. The location where the insured building(s) or personal property are found. The described location is shown on the Declarations Page.\n14. D irect Physical Loss By or From Flood. Loss or damage to insured property, directly caused by a flood. There must be evidence of physical changes to the property.\n15. Dwelling. A building designed for use as a residence for no more than four families or a single-family unit in a condominium building.\n16. Elevated Building. A building that has no basement and that has its lowest elevated floor raised above ground level by foundation walls, shear walls, posts, piers, pilings, or columns.\n17. Emergency Program. The initial phase of a community's participation in the National Flood Insurance Program. During this phase, only limited amounts of insurance are available under the Act and the regulations prescribed pursuant to the Act.\n18. Federal Policy Fee. A flat rate charge you must pay on each new or renewal policy to defray certain administrative expenses incurred in carrying out the National Flood Insurance Program.\n19. Improvements. Fixtures, alterations, installations, or additions comprising a part of the dwelling or apartment in which you reside.\n20. Mudflow. A river of liquid and flowing mud on the surface of normally dry land areas, as when earth is carried by a current of water. Other earth movements, such as landslide, slope failure, or\n\na saturated soil mass moving by liquidity down a slope, are not mudflows.\n\n21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:\n\nIII. PROPERTY INSURED\n\nare always considered part of the dwelling and cannot be separately insured.\n\n- A detached garage at the described location. Coverage is limited to no more than 10 percent of the limit of liability on the dwelling. Use of this insurance is at your option but reduces the building limit of liability. We do not cover any detached garage used or held for use for residential (i.e., dwelling), business, or farming purposes.\n\nA. Coverage A-Building Property\n\nWe insure against direct physical loss by or from flood to:\n\n1. The dwelling at the described location, or for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n2. Additions and extensions attached to and in contact with the dwelling by means of a rigid exterior wall, a solid load-bearing interior wall, a stairway, an elevated walkway, or a roof. At your option, additions and extensions connected by any of these methods may be separately insured. Additions and extensions attached to and in contact with the building by means of a common interior wall that is not a solid load-bearing wall\n3. 3.\n\n4. Materials and supplies to be used for construction, alteration, or repair of the dwelling or a detached garage while the materials and supplies are stored in a fully enclosed building at the described location or on an adjacent property.\n5. A building under construction, alteration, or repair at the described location.\n- a. If the structure is not yet walled or roofed as described in the definition for building (see II.C.6.a) then coverage applies:\n- (1) Only while such work is in progress; or\n- (2) If such work is halted, only for a period of up to 90 continuous days thereafter.\n- b. However, coverage does not apply until the building is walled and roofed if the lowest floor, including the basement floor, of a non-elevated building or the lowest elevated floor of an elevated building is:\n- (1) Below the base flood elevation in Zones AH, AE, A1-A30, AR, AR/AE, AR/ AH, AR/A1-A30, AR/A, AR/AO; or\n- (2) Below the base flood elevation adjusted to include the effect of wave action in Zones VE or V1-V30.\n\nThe lowest floor level is based on the bottom of the lowest horizontal structural member of the floor in Zones VE or V1-V30 or the top of the floor in Zones AH, AE, A1-A30, AR, AR/AE, AR/AH, AR/ A1-A30, AR/A, and AR/AO.\n\n6. A manufactured home or a travel trailer, as described in the II.C.6. If the manufactured home or travel trailer is in a special flood hazard area, it must be anchored in the following manner at the time of the loss:\n- a. By over-the-top or frame ties to ground anchors; or\n- b. In accordance with the manufacturer's specifications; or\n- c. In compliance with the community's floodplain management requirements unless it has been continuously insured by the NFIP at the same described location since September 30, 1982.\n7. The following items of property which are insured under Coverage A only:\n- a. Awnings and canopies;\n- b. Blinds;\n- c. Built-in dishwashers;\n- d. Built-in microwave ovens;\n- e. Carpet permanently installed over unfinished flooring;\n- f. Central air conditioners;\n- g. Elevator equipment;\n- h. Fire sprinkler systems;\n- i. Walk-in freezers;\n- j. Furnaces and radiators;\n- k. Garbage disposal units;\n- l. Hot water heaters, including solar water heaters;\n- m. Light fixtures;\n- n. Outdoor antennas and aerials fastened to buildings;\n- o. Permanently installed cupboards, bookcases, cabinets, paneling, and wallpaper;\n- p. Plumbing fixtures;\n- q. Pumps and machinery for operating pumps;\n- r. Ranges, cooking stoves, and ovens;\n- s. Refrigerators; and\n- t. Wall mirrors, permanently installed.\n8. Items of property below the lowest elevated floor of an elevated postFIRM building located in Zones\n\nA1-A30, AE, AH, AR, AR/A, AR/ AE, AR/AH, AR/A1-A30, V1-V30, or VE, or in a basement regardless of the zone. Coverage is limited to the following:\n\n- a. Any of the following items, if installed in their functioning locations and, if necessary for operation, connected to a power source:\n- (1) Central air conditioners;\n- (2) Cisterns and the water in them;\n- (3) Drywall for walls and ceilings in a basement and the cost of labor to nail it, unfinished and unfloated and not taped, to the framing;\n- (4) Electrical junction and circuit breaker boxes;\n- (5) Electrical outlets and switches;\n- (6) Elevators, dumbwaiters and related equipment, except for related equipment installed below the base flood elevation after September 30, 1987;\n- (7) Fuel tanks and the fuel in them;\n- (8) Furnaces and hot water heaters;\n- (9) Heat pumps;\n- (10) Nonflammable insulation in a basement;\n- (11) Pumps and tanks used in solar energy systems;\n- (12) Stairways and staircases attached to the building, not separated from it by elevated walkways;\n- (13) Sump pumps;\n- (14) Water softeners and the chemicals in them, water filters, and faucets installed as an integral part of the plumbing system;\n- (15) Well water tanks and pumps;\n- (16) Required utility connections for any item in this list; and\n- (17) Footings, foundations, posts, pilings, piers, or other foundation walls and anchorage systems required to support a building.\n- b. Clean-up.\n\nB. Coverage B-Personal Property\n\n1. If you have purchased personal property coverage, we insure against direct physical loss by or from flood to personal property inside a building at the described location, if:\n- a. The property is owned by you or your household family members; and\n- b. At your option, the property is owned by guests or servants.\n2. Personal property is also insured for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n3. Personal property in a building that is not fully enclosed must be secured to prevent flotation out of the building. If the personal property does float out during a flood, it will be conclusively presumed that it was not reasonably secured. In that case, there is no coverage for such property.\n4. Coverage for personal property includes the following property, subject to B.1 above, which is insured under Coverage B only:\n- a. Air conditioning units, portable or window type;\n- b. Carpets, not permanently installed, over unfinished flooring;\n- c. Carpets over finished flooring;\n- d. Clothes washers and dryers;\n- e. 'Cook-out' grills;\n- f. Food freezers, other than walk-in, and food in any freezer; and\n- g. Portable microwave ovens and portable dishwashers.\n\n5. Coverage for items of property below the lowest elevated floor of an elevated post-FIRM building located in Zones A1-A30, AE, AH, AR, AR/A, AR/AE, AR/AH, AR/ A1-A30, V1-V30, or VE, or in a basement regardless of the zone, is limited to the following items, if installed in their functioning locations and, if necessary for oper ation, connected to a power source:\n\n- a. Air conditioning units, portable or window type;\n- b. Clothes washers and dryers; and\n- c. Food freezers, other than walk-in, and food in any freezer.\n6. If you are a tenant and have insured personal property under Coverage B in this policy, we will cover such property, including your cooking stove or range and refrigerator. The policy will also cover improvements made or acquired solely at your expense in the dwelling or apartment in which you reside, but for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n7. If you are the owner of a unit and have insured personal property under Coverage B in this policy, we will also cover your interior walls, floor, and ceiling (not otherwise insured under a flood insurance policy purchased by your condominium association) for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n8. Special Limits. We will pay no more than $2,500 for any one loss to one or more of the following kinds of personal property:\n- a. Artwork, photographs, collectibles, or memorabilia, including but not limited to, porcelain or other figures, and sports cards;\n- b. Rare books or autographed items;\n- c. Jewelry, watches, precious and semi-precious stones, or articles of gold, silver, or platinum;\n- d. Furs or any article containing fur that represents its principal value; or\n- e. Personal property used in any business.\n\n9. We will pay only for the functional value of antiques.\n\nC. Coverage C-Other Coverages\n\n1. Debris Removal\n- a. We will pay the expense to remove non-owned debris that is on or in insured property and debris of insured property anywhere.\n- b. If you or a member of your household perform the removal work, the value of your work will be based on the Federal minimum wage.\n- c. This coverage does not increase the Coverage A or Coverage B limit of liability.\n2. Loss Avoidance Measures\n- a. Sandbags, Supplies, and Labor\n- (1) We will pay up to $1,000 for costs you incur to protect the insured building from a flood or imminent danger of flood, for the following:\n8. (a) Your reasonable expenses to buy:\n9. (i) Sandbags, including sand to fill them;\n10. (ii) Fill for temporary levees;\n11. (iii) Pumps; and\n12. (iv) Plastic sheeting and lumber used in connection with these items.\n13. (b) The value of work, at the Federal minimum wage, that you or a member of your house-hold perform.\n- (2) This coverage for Sandbags, Supplies, and Labor only applies if damage to insured property by or from flood is imminent and the threat of flood damage is apparent enough to lead a person of common prudence to anticipate flood damage. One of the following must also occur:\n15. (a) A general and temporary condition of flooding in the area near the described\n\nlocation must occur, even if the flood does not reach the building; or\n\n- (b) A legally authorized official must issue an evacuation order or other civil order for the community in which the building is located calling for measures to preserve life and property from the peril of flood.\n\nThis coverage does not increase the Coverage A or Coverage B limit of liability.\n\n- b. Property Removed to Safety\n- (1) We will pay up to $1,000 for the reasonable expenses you incur to move insured property to a place other than the described location that contains the property in order to protect it from flood or the imminent danger of flood. Reasonable expenses include the value of work, at the Federal minimum wage, you or a member of your household perform.\n- (2) If you move insured property to a location other than the described location that contains the property in order to protect it from flood or the imminent danger of flood, we will cover such property while at that location for a period of 45 consecutive days from the date you begin to move it there. The personal property that is moved must be placed in a fully enclosed building or otherwise reasonably protected from the elements.\n- (3) Any property removed, including a moveable home described in II.6.b and c, must be placed above ground level or outside of the special flood hazard area.\n- (4) This coverage does not increase the Coverage A or Coverage B limit of liability.\n3. Condominium Loss Assessments\n- a. Subject to III.C.3.b below, if this policy insures a condominium unit, we will pay, up to the Coverage A limit of liability, your share of loss assessments charged against you by the condominium association in accordance with the condominium association's articles of association, declarations and your deed. The assessment must be made because of direct physical loss by or from flood during the policy term, to the unit or to the common elements of the NFIP insured condominium building in which this unit is located.\n- b. We will not pay any loss assessment:\n- (1) Charged against you and the condominium association by any governmental body;\n- (2) That results from a deductible under the insurance purchased by the condominium association insuring common elements;\n- (3) That results from a loss to personal property, including contents of a condomin ium building;\n\n(4) In which the total payment combined under all policies exceeds the maximum amount of coverage available under the Act for a single unit in a condominium building where the unit is insured under both a Dwelling Policy and a RCBAP; or\n\n- (5) On any item of damage that has already been paid under a RCBAP where a single unit in a condominium building is insured by both a Dwelling Policy and a RCBAP.\n- c. Condominium Loss Assessment coverage does not increase the Coverage A Limit of Liability and is subject to the maximum coverage limits available for a single-family dwelling under the Act, payable between all\n\npolicies issued and covering the unit, under the Act.\n\nD. Coverage D-Increased Cost of Compliance\n\n1. General\n\nThis policy pays you to comply with a State or local floodplain management law or ordinance affecting repair or reconstruction of a building suffering flood damage. Compliance activities eligible for payment are: elevation, floodproofing, relocation, or demolition (or any combination of these activities) of your building. Eligible floodproofing activities are limited to:\n\n- a. Non-residential buildings.\n- b. Residential buildings with basements that satisfy FEMA's standards published in the Code of Federal Regulations [44 CFR 60.6(b) or (c)].\n\n2. Limit of Liability\n\nWe will pay you up to $30,000 under this Coverage D-Increased Cost of Compliance, which only applies to policies with building coverage (Coverage A). Our payment of claims under Coverage D is in addition to the amount of coverage which you selected on the application and which appears on the Declarations Page. But the maximum you can collect under this policy for both Coverage A-Building Property and Coverage D-Increased Cost of Compliance cannot exceed the maximum permitted under the Act. We do not charge a separate deductible for a claim under Coverage D.\n\n3. Eligibility\n\n- a. A building insured under Coverage ABuilding Property sustaining a loss caused by a flood as defined by this policy must:\n- (1) Be a 'repetitive loss building.' A repetitive loss building is one that meets the following conditions:\n3. (a) The building is insured by a contract of flood insurance issued under the NFIP.\n4. (b) The building has suffered flood damage on two occasions during a 10-year period which ends on the date of the second loss.\n5. (c) The cost to repair the flood damage, on average, equaled or exceeded 25 percent of the market value of the building at the time of each flood loss.\n6. (d) In addition to the current claim, the NFIP must have paid the previous qualifying claim, and the State or community must have a cumulative, substantial damage provision or repetitive loss provision in its floodplain management law or ordinance being enforced against the building; or\n- (2) Be a building that has had flood damage in which the cost to repair equals or exceeds 50 percent of the market value of the building at the time of the flood. The State or community must have a substantial damage provision in its floodplain management law or ordinance being enforced against the building.\n- b. This Coverage D pays you to comply with State or local floodplain management laws or ordinances that meet the minimum standards of the National Flood Insurance Program found in the Code of Federal Regulations at 44 CFR 60.3. We pay for compliance activities that exceed those standards under these conditions:\n- (1) 3.a.1 above.\n- (2) Elevation or floodproofing in any risk zone to preliminary or advisory base flood elevations provided by FEMA which the State or local government has adopted and is enforcing for flooddamaged buildings in such areas. (This includes compliance activities in B, C, X, or D zones which are being changed to zones with base flood elevations. This also includes compliance activities in zones where base flood elevations are being increased, and a flood-damaged building must comply with the higher advisory base flood elevation.) Increased Cost of Compliance coverage does not apply to situations in B, C, X, or D zones where the community has derived its own elevations and is enforcing elevation or floodproofing requirements for flooddamaged buildings to elevations derived solely by the community.\n- (3) Elevation or floodproofing above the base flood elevation to meet State or local 'free-board' requirements, i.e., that a building must be elevated above the base flood elevation.\n\n- c. Under the minimum NFIP criteria at 44 CFR 60.3(b)(4), States and communities must require the elevation or floodproofing of buildings in unnumbered A zones to the base flood elevation where elevation data is obtained from a Federal, State, or other source. Such compliance activities are eligible for Coverage D.\n- d. Coverage D will pay for the incremental cost, after demolition or relocation, of elevating or floodproofing a building during its rebuilding at the same or another site to meet State or local floodplain management laws or ordinances, subject to Coverage D Exclusion 5.g below.\n- e. Coverage D will pay to bring a flood-damaged building into compliance with State or local floodplain management laws or ordinances even if the building had received a variance before the present loss from the applicable floodplain management requirements.\n\n4. Conditions\n\n- a. When a building insured under Coverage A-Building Property sustains a loss caused by a flood, our payment for the loss under this Coverage D will be for the increased cost to elevate, floodproof, relocate, or demolish (or any combination of these activities) caused by the enforcement of current State or local floodplain management ordinances or laws. Our payment for eligible demolition activities will be for the cost to demolish and clear the site of the building debris or a portion thereof caused by the enforcement of current State or local floodplain management\n\nordinances or laws. Eligible activities for the cost of clearing the site will include those necessary to discontinue utility service to the site and ensure proper abandonment of on-site utilities.\n\n- b. When the building is repaired or rebuilt, it must be intended for the same occupancy as the present building unless otherwise required by current floodplain management ordinances or laws.\n\n5. Exclusions\n\nUnder this Coverage D (Increased Cost of Compliance), we will not pay for:\n\n- a. The cost to comply with any flood plain management law or ordinance in communities participating in the Emergency Program.\n- b. The cost associated with enforcement of any ordinance or law that requires any insured or others to test for, monitor, clean up, remove, contain, treat, detoxify or neutralize, or in any way respond to, or assess the effects of pollutants.\n- c. The loss in value to any insured building due to the\n\n- requirements of any ordinance or law.\n- d. The loss in residual value of the undamaged portion of a building demolished as a consequence of enforcement of any State or local flood plain management law or ordinance.\n- e. Any Increased Cost of Compliance under this Coverage D:\n- (1) Until the building is elevated, floodproofed, demolished, or relocated on the same or to another premises; and\n- (2) Unless the building is elevated, floodproofed, demolished, or relocated as soon as reasonably possible after the loss, not to exceed two years.\n- f. Any code upgrade requirements, e.g., plumbing or electrical wiring, not specifically related to the State or local floodplain management law or ordinance.\n- g. Any compliance activities needed to bring additions or improvements made after the loss occurred into compliance with State or local flood plain management laws or ordinances.\n- h. Loss due to any ordinance or law that you were required to comply with before the current loss.\n- i. Any rebuilding activity to standards that do not meet the NFIP's minimum requirements. This includes any situation where the insured has received from the State or community a variance in connection with the current flood loss to rebuild the property to an elevation below the base flood elevation.\n- j. Increased Cost of Compliance for a garage or carport.\n- k. Any building insured under an NFIP Group Flood Insurance Policy.\n- l. Assessments made by a condo minium association on individual condominium unit owners to pay increased costs of repairing commonly owned buildings after a flood in compliance with State or local floodplain management ordinances or laws.\n6. Other Provisions\n- a. Increased Cost of Compliance coverage will not be included in the calculation to determine whether coverage meets the 80 percent insurance-to-value requirement for replacement cost coverage as set forth in Art. VII.R ('Loss Settlement') of this policy.\n- b. All other conditions and provisions of this policy apply.\n\nWe do not insure any of the following:\n\n1. Personal property not inside a building.\n2. A building, and personal property in it, located entirely in, on, or over water or seaward of mean high tide if it was constructed or substantially improved after September 30, 1982.\n3. Open structures, including a building used as a boathouse or any structure or building into which boats are floated, and personal property located in, on, or over water.\n4. Recreational vehicles other than travel trailers described in the Definitions section (see II.C.6.c) whether affixed to a permanent foundation or on wheels.\n5. Self-propelled vehicles or machines, including their parts and equipment. However, we do cover self-propelled vehicles or machines not licensed for use on public roads that are:\n- a. Used mainly to service the described location; or\n- b. Designed and used to assist handicapped persons, while the vehicles or machines\n8. are inside a building at the described location.\n6. Land, land values, lawns, trees, shrubs, plants, growing crops, or animals.\n7. Accounts, bills, coins, currency, deeds, evidences of debt, medals, money, scrip, stored value cards, postage stamps, securities, bullion, manuscripts, or other valuable papers.\n8. Underground structures and equip ment, including wells, septic tanks, and septic systems.\n9. Those portions of walks, walkways, decks, driveways, patios and other surfaces, all whether protected by a roof or not, located outside the perimeter, exterior walls of the insured building or the building in which the insured unit is located.\n10. Containers, including related equipment, such as, but not limited to, tanks containing gases or liquids.\n11. Buildings or units and all their contents if more than 49 percent of the actual cash value of the building is below ground, unless the lowest level is at or above the base flood elevation and is below\n\n- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\nV. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer.\n\nB. Flood in Progress. If this policy became effective as of the time of a loan closing, as provided by 44 CFR 61.11(b), we will not pay for a loss caused by a flood that is a continuation of a flood that existed prior to coverage becoming effective.\n\nIn all other circumstances, we will not pay for a loss caused by a flood that is a continuation of a flood that existed on or before the day you submitted the application for coverage under this policy and the full amount due. We will determine the date of application using 44 CFR 61.11(f).\n\nC. We do not insure for loss to property caused directly by earth movement even if the earth movement is caused by flood. Some examples of earth movement that we do not cover are:\n\n1. Earthquake;\n2. Landslide;\n3. Land subsidence;\n4. Sinkholes;\n5. Destabilization or movement of land that results from accumulation of water in subsurface land area; or\n6. Gradual erosion.\n\nWe do, however, pay for losses from mudflow and land subsidence as a result of erosion that are specifically insured under our definition of flood (see II.B.1.c and II.B.2).\n\nD. We do not insure for direct physical loss caused directly or indirectly by any of the following:\n\n1. The pressure or weight of ice;\n2. Freezing or thawing;\n3. Rain, snow, sleet, hail, or water spray;\n4. Water, moisture, mildew, or mold damage that results primarily from any condition:\n- a. Substantially confined to the dwelling; or\n- b. That is within your control, including but not limited to:\n- (1) Design, structural, or mechanical defects;\n- (2) Failure, stoppage, or breakage of water or sewer lines, drains, pumps, fixtures, or equipment; or\n- (3) Failure to inspect and maintain the property after a flood recedes;\n5. Water or water-borne material that:\n- a. Backs up through sewers or drains;\n- b. Discharges or overflows from a sump, sump pump, or related equipment; or\n- c. Seeps or leaks on or through the insured property;\n\nunless there is a flood in the area and the flood is the proximate cause of the sewer or drain backup, sump pump discharge or overflow, or the seepage of water;\n\n6. The pressure or weight of water unless there is a flood in the area and the flood is the proximate cause of the damage from the pressure or weight of water;\n7. Power, heating, or cooling failure unless the failure results from direct physical loss by or from flood to power, heating, or cooling equipment on the described location;\n8. Theft, fire, explosion, wind, or windstorm;\n9. Anything you or any member of your household do or conspire\n\nto do to deliberately cause loss by flood; or\n\n10. Alteration of the insured property that significantly increases the risk of flooding.\n\nE. We do not insure for loss to any building or personal property located on land leased from the Federal Government, arising from or incident to the flooding of the land by the Federal Government, where the lease expressly holds the Federal Government harmless under flood insurance issued under any Federal Government program.\n\nF. We do not pay for the testing for or monitoring of pollutants unless required by law or ordinance.\n\nVI. DEDUCTIBLES\n\nA. When a loss is insured under this policy, we will pay only that part of the loss that exceeds your deductible amount, subject to the limit of liability that applies. The deductible amount is shown on the Declarations Page.\n\nB. In each loss from flood, separate deductibles apply to the building and personal property insured by this policy.\n\n- C. The deductible does NOT apply to:\n1. III.C.2. Loss Avoidance Measures;\n2. III.C.3. Condominium Loss Assessments; or\n3. III.D. Increased Cost of Compliance.\n\nHowever, when a building under construction, alteration, or repair does not have at least two rigid exterior walls and a fully secured roof at the time of loss, your deductible amount will be two times the deductible that would otherwise apply to a completed building.\n\nA. Pair and Set Clause\n\nIn case of loss to an article that is part of a pair or set, we will have the option of paying you:\n\n1. An amount equal to the cost of replacing the lost, damaged, or destroyed article, minus its depreciation; or\n2. The amount that represents the fair proportion of the total value of the pair or set that the lost, damaged, or destroyed article bears to the pair or set.\n\nB. Other Insurance\n\n1. If a loss insured by this policy is also insured by other insurance that includes flood coverage not issued under the Act, we will not pay more than the amount of insurance you are entitled to for lost, damaged, or destroyed property insured under this policy subject to the following:\n- a. We will pay only the proportion of the loss that the amount of insurance that applies under this policy bears to the total amount of insurance covering the loss, unless VII.B.1.b or c immediately below applies.\n- b. If the other policy has a provision stating that it is excess insurance, this policy will be primary.\n- c. This policy will be primary (but subject to its own deductible)\n\nup to the deductible in the other flood policy (except another policy as described in VII.B.1.b above). When the other deductible amount is reached, this policy will participate in the same proportion that the amount of insurance under this policy bears to the total amount of both policies, for the remainder of the loss.\n\n2. If there is other insurance issued under the Act in the name of your condominium association covering the same property insured by this policy, then this policy will be in excess over the other insurance, except where a condominium loss assessment to the unit owner results from a loss sustained by the condominium association that was not reimbursed under a flood insurance policy written in the name of the association under the Act because the building was not, at the time of loss, insured for an amount equal to the lesser of:\n- a. 80 percent or more of its full replacement cost; or\n\n- b. The maximum amount of insurance permitted under the Act.\n3. The combined coverage payment under the other NFIP insurance and this policy cannot exceed the maximum coverage available under the Act, of $250,000 per single unit.\n\nC. Amendments, Waivers, Assignment\n\nThis policy cannot be changed, nor can any of its provisions be waived, without the express written consent of the Federal Insurance Administrator. No action we take under the terms of this policy constitutes a waiver of any of our rights. You may assign this policy in writing when you transfer title of your property to someone else except under these conditions:\n\n- a. When this policy insures only personal property; or\n- b. When this policy insures a building under construction.\n- D. Insufficient Premium or Rating Information\n1. Applicability. The following provisions apply to all instances where the premium paid on this policy is insufficient or where the rating information is insufficient, such as where an Elevation Certificate is not provided.\n2. Reforming the Policy with Re\u00ad duced Coverage. Except as otherwise provided in VII.D.1, if the premium we received from you was not sufficient to buy the kinds and amounts of coverage you requested, we will provide only the kinds and\n\namounts of coverage that can be purchased for the premium payment we received.\n\n- a. For the purpose of determining whether your premium payment is sufficient to buy the kinds and amounts of coverage you requested, we will first deduct the costs of all applicable fees and surcharges.\n- b. If the amount paid, after deducting the costs of all applicable fees and surcharges, is not sufficient to buy any amount of coverage, your payment will be refunded. Unless the policy is reformed to increase the coverage amount to the amount originally requested pursuant to VII.D.3, this policy will be cancelled, and no claims will be paid under this policy.\n- c. Coverage limits on the reformed policy will be based upon the amount of premium submitted per type of coverage, but will not exceed the amount originally requested.\n3. Discovery of Insufficient Premium or Rating Information. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, the policy will\n\nbe reformed as described in VII.D.2. You have the option of increasing the amount of coverage resulting from this reformation to the amount you requested as follows:\n\n- a. Insufficient Premium. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, we will send you, and any mortgagee or trustee known to us, a bill for the required additional premium for the current policy term (or that portion of the current policy term following any endorsement changing the amount of coverage). If it is discovered that the initial amount charged to you for any fees or surcharges is incorrect, the difference will be added or deducted, as applicable, to the total amount in this bill.\n- (1) If you or the mortgagee or trustee pays the additional premium amount due within 30 days from the date of our bill, we will reform the policy to increase the amount of coverage to the originally requested amount, effective to the beginning\n\nof the current policy term (or subsequent date of any endorsement changing the amount of coverage).\n\n- (2) If you or the mortgagee or trustee do not pay the additional amount due within 30 days of the date of our bill, any flood insurance claim will be settled based on the reduced amount of coverage.\n- (3) As applicable, you have the option of paying all or part of the amount due out of a claim payment based on the originally requested amount of coverage.\n- b. Insufficient Rating Inform\u00ad ation. If we determine that the rating information we have is insufficient and prevents us from calculating the additional premium, we will ask you to send the required information. You must submit the information within 60 days of our request.\n- (1) If we receive the information within 60 days of our request, we will determine the amount of additional premium for the current\n\npolicy term, and follow the procedure in VII.D.3.a above.\n\n- (2) If we do not receive the information within 60 days of our request, no claims will be paid until the requested information is provided. Coverage will be limited to the amount of coverage that can be purchased for the payments we received, as determined when the requested information is provided.\n4. Coverage Increases. If we do not receive the amounts requested in VII.D.3.a or the additional information requested in VII.D.3.b by the date it is due, the amount of coverage under this policy can only be increased by endorsement subject to the appropriate waiting period. However, no coverage increases will be allowed until you have provided the information requested in VII.D.3.b.\n5. Falsifying Information. However, if we find that you or your agent intentionally did not tell us, or falsified any important fact or circumstance or did anything fraudulent relating to this insurance, the provisions of VIII.A apply.\n\nE. Policy Renewal\n\n1. This policy will expire at 12:01 a.m. on the last day of the policy term.\n2. We must receive the payment of the appropriate renewal premium within 30 days of the expiration date.\n3. If we find, however, that we did not place your renewal notice into the U.S. Postal Service, or if we did mail it, we made a mistake, e.g., we used an incorrect, incomplete, or illegible address, which delayed its delivery to you before the due date for the renewal premium, then we will follow these procedures:\n- a. If you or your agent notified us, not later than one year after the date on which the payment of the renewal premium was due, of non-receipt of a renewal notice before the due date for the renewal premium, and we determine that the circumstances in the preceding paragraph apply, we will mail a second bill providing a revised due date, which will be 30 days after the date on which the bill is mailed.\n- b. If we do not receive the premium requested in the second bill by the revised due date, then we will not renew the policy. In that case, the policy will remain an expired policy as of the expiration date shown on the Declarations Page.\n4. In connection with the renewal of this policy, we may ask you during the policy term to recertify, on a Recertification Questionnaire we will provide to you, the rating information used to rate your most recent application for or renewal of insurance.\n- F. Conditions Suspending or Restricting Insurance\n\nWe are not liable for loss that occurs while there is a hazard that is increased by any means within your control or knowledge.\n\nG. Requirements in Case of Loss\n\nIn case of a flood loss to insured property, you must:\n\n1. Give prompt written notice to us.\n2. As soon as reasonably possible, separate the damaged and\n\nundamaged property, putting it in the best possible order so that we may examine it.\n\n3. Prepare an inventory of damaged property showing the quantity, description, actual cash value, and amount of loss. Attach all bills, receipts, and related documents.\n4. Within 60 days after the loss, send us a proof of loss, which is your statement of the amount you are claiming under the policy signed and sworn to by you, and which furnishes us with the following information:\n- a. The date and time of loss;\n- b. A brief explanation of how the loss happened;\n- c. Your interest (for example, 'owner') and the interest, if any, of others in the damaged property;\n- d. Details of any other insurance that may cover the loss;\n- e. Changes in title or occupancy of the insured property during the term of the policy;\n- f. Specifications of damaged buildings and detailed repair estimates;\n- g. Names of mortgagees or anyone else having a lien,\n\ncharge, or claim against the insured property;\n\n- h. Details about who occupied any insured building at the time of loss and for what purpose; and\n- i. The inventory of damaged personal property described in G.3 above.\n5. In completing the proof of loss, you must use your own judgment concerning the amount of loss and justify that amount.\n6. You must cooperate with the adjuster or representative in the investigation of the claim.\n7. The insurance adjuster whom we hire to investigate your claim may furnish you with a proof of loss form, and she or he may help you complete it. However, this is a matter of courtesy only, and you must still send us a proof of loss within 60 days after the loss even if the adjuster does not furnish the form or help you complete it.\n8. We have not authorized the adjuster to approve or disapprove claims or to tell you whether we will approve your claim.\n9. At our option, we may accept the adjuster's report of the loss instead of your proof of loss. The adjuster's report will include information about your loss and the damages you sustained. You must sign the adjuster's report. At our option, we may require you to swear to the report.\n\nH. Our Options After a Loss\n\nOptions we may, in our sole discretion, exercise after loss include the following:\n\n1. At such reasonable times and places that we may designate, you must:\n- a. Show us or our representative the damaged property;\n- b. Submit to examination under oath, while not in the presence of another insured, and sign the same; and\n- c. Permit us to examine and make extracts and copies of:\n- (1) Any policies of property insurance insuring you against loss and the deed establishing your ownership of the insured real property;\n- (2) Condominium association documents including the Declarations of the condominium, its Articles of Association or Incorporation, Bylaws, rules and regulations, and other relevant documents if you are a unit owner in a condominium building; and\n- (3) All books of accounts, bills, invoices and other vouchers, or certified copies pertaining to the damaged property if the originals are lost.\n2. We may request, in writing, that you furnish us with a complete\n\ninventory of the lost, damaged or destroyed property, including:\n\n- a. Quantities and costs;\n- b. Actual cash values or replacement cost (whichever is appropriate);\n- c. Amounts of loss claimed;\n- d. Any written plans and specifications for repair of the damaged property that you can reasonably make available to us; and\n- e. Evidence that prior flood damage has been repaired.\n3. If we give you written notice within 30 days after we receive your signed, sworn proof of loss, we may:\n- a. Repair, rebuild, or replace any part of the lost, damaged, or destroyed property with material or property of like kind and quality or its functional equivalent; and\n- b. Take all or any part of the damaged property at the value that we agree upon or its appraised value.\n- I. No Benefit to Bailee\n\nNo person or organization, other than you, having custody of insured property will benefit from this insurance.\n\nJ. Loss Payment\n\n1. We will adjust all losses with you. We will pay you unless some other person or entity is named in the policy or is legally entitled to receive payment. Loss will be payable 60 days after we receive your proof of loss (or within 90 days after the insurance adjuster files the adjuster's report signed and sworn to by you in lieu of a proof of loss) and:\n- a. We reach an agreement with you;\n- b. There is an entry of a final judgment; or\n- c. There is a filing of an appraisal award with us, as provided in VII.M.\n2. If we reject your proof of loss in whole or in part you may:\n- a. Accept our denial of your claim;\n- b. Exercise your rights under this policy; or\n- c. File an amended proof of loss as long as it is filed within 60 days of the date of the loss.\n\nK. Abandonment\n\nYou may not abandon to us damaged or undamaged property insured under this policy.\n\nL. Salvage\n\nWe may permit you to keep damaged property insured under this policy after a loss, and we will reduce the amount of the loss proceeds payable to you under the policy by the value of the salvage.\n\nM. Appraisal\n\nIf you and we fail to agree on the actual cash value or, if applicable, replacement cost of your damaged property to settle upon the amount of loss, then either may demand an appraisal of the loss. In this event, you and we will each choose a competent and impartial appraiser within 20 days after receiving a written request from the other. The two appraisers will choose an umpire. If they cannot agree upon an umpire within 15 days, you or we may request that the choice be made by a judge of a court of record in the state where the insured property is located. The appraisers will separately state the actual cash value, the replacement cost, and the amount of loss to each item. If the appraisers submit a written report of an agreement to us, the amount agreed upon will be the amount of loss. If they fail to agree, they will submit their differences to the umpire. A decision agreed to by any two will set the amount of actual cash value and loss, or if it applies, the replacement cost and loss.\n\nEach party will:\n\n1. Pay its own appraiser; and\n2. Bear the other expenses of the appraisal and umpire equally.\n\nN. Mortgage Clause\n\n1. The word 'mortgagee' includes trustee.\n\n2. Any loss payable under Coverage A-Building Property will be paid to any mortgagee of whom we have actual notice, as well as any other mortgagee or loss payee determined to exist at the time of loss, and you, as interests appear. If more than one mortgagee is named, the order of payment will be the same as the order of precedence of the mortgages.\n3. If we deny your claim, that denial will not apply to a valid claim of the mortgagee, if the mortgagee:\n- a. Notifies us of any change in the ownership or occupancy, or substantial change in risk of which the mortgagee is aware;\n- b. Pays any premium due under this policy on demand if you have neglected to pay the premium; and\n- c. Submits a signed, sworn proof of loss within 60 days after receiving notice from us of your failure to do so.\n\n4. All of the terms of this policy apply to the mortgagee.\n5. The mortgagee has the right to receive loss payment even if the mortgagee has started foreclosure or similar action on the building.\n6. If we decide to cancel or not renew this policy, it will continue in effect for the benefit of the mortgagee only for 30 days after we notify the mortgagee of the cancellation or non-renewal.\n7. If we pay the mortgagee for any loss and deny payment to you, we are subrogated to all the rights of the mortgagee granted under the mortgage on the property. Subrogation will not impair the right of the mortgagee to recover the full amount of the mortgagee's claim.\n- O. Suit Against Us\n\nYou may not sue us to recover money under this policy unless you have complied with all the requirements of the policy. If you do sue, you must start the suit within one year after the date of the written denial of all or part of the claim, and you must file the suit in the United States District Court of the district in which the insured property was located at the time of loss. This requirement applies to any claim that you may have under this policy and to any dispute that you may have arising out of the handling of any claim under the policy.\n\n- P. Subrogation\n\nWhenever we make a payment for a loss under this policy, we are subrogated to your right to recover for that loss from any other person. That means that your right to recover for a loss that was partly or totally caused by someone else is automatically transferred to us, to the extent that we have paid you for the loss. We may require\n\nyou to acknowledge this transfer in writing. After the loss, you may not give up our right to recover this money or do anything that would prevent us from recovering it. If you make any claim against any person who caused your loss and recover any money, you must pay us back first before you may keep any of that money.\n\n- Q. Continuous Lake Flooding\n1. If an insured building has been flooded by rising lake waters continuously for 90 days or more and it appears reasonably certain that a continuation of this flooding will result in an insured loss to the insured building equal to or greater than the building policy limits plus the deductible or the maximum payable under the policy for any one building loss, we will pay you the lesser of these two amounts without waiting for the further\n\ndamage to occur if you sign a release agreeing:\n\n- a. To make no further claim under this policy;\n- b. Not to seek renewal of this policy;\n- c. Not to apply for any flood insurance under the Act for property at the described location;\n- d. Not to seek a premium refund for current or prior terms.\n\nIf the policy term ends before the insured building has been flooded continuously for 90 days, the provisions of this paragraph Q.1 will apply when the insured building suffers a covered loss before the policy term ends.\n\n2. If your insured building is subject to continuous lake flooding from a closed basin lake, you may elect to file a claim under either paragraph Q.1 above or Q.2 (A 'closed basin lake' is a natural lake from which water leaves primarily through evaporation and whose surface area now exceeds or has exceeded one square mile at any time in the recorded past. Most of the nation's closed basin lakes are in the western half of the United\n\nStates where annual evaporation exceeds annual precipitation and where lake levels and surface areas are subject to considerable fluctuation due to wide variations in the climate. These lakes may overtop their basins on rare occasions.) Under this paragraph Q.2, we will pay your claim as if the building is a total loss even though it has not been continuously inundated for 90 days, subject to the following conditions:\n\n- a. Lake floodwaters must damage or imminently threaten to damage your building.\n- b. Before approval of your claim, you must:\n- (1) Agree to a claim payment that reflects your buying back the salvage on a negotiated basis; and\n- (2) Grant the conservation easement described in FEMA's 'Policy Guidance for Closed Basin Lakes' to be recorded in the office of the local recorder of deeds. FEMA, in consultation with the community in which the property is located, will identify on a map an area or areas\n\nof special consideration (ASC) in which there is a potential for flood damage from continuous lake flooding. FEMA will give the community the agreedupon map showing the ASC. This easement will only apply to that portion of the property in the ASC. It will allow certain agricultural and recreational uses of the land. The only structures it will allow on any portion of the property within the ASC are certain simple agricultural and recreational structures. If any of these allowable structures are insurable buildings under the NFIP and are insured under the NFIP, they will not be eligible for the benefits of this paragraph Q.2. If a U.S. Army Corps of Engineers certified flood control project or otherwise certified flood control project later protects the property, FEMA will, upon request, amend the ASC to remove areas protected by those projects. The restrictions of the easement will then no longer apply to any portion of the\n\n- property removed from the ASC; and\n- (3) Comply with paragraphs Q.1.a through Q.1.d above.\n- c. Within 90 days of approval of your claim, you must move your building to a new location outside the ASC. FEMA will give you an additional 30 days to move if you show there is sufficient reason to extend the time.\n- d. Before the final payment of your claim, you must acquire an elevation certificate and a floodplain development permit from the local floodplain administrator for the new location of your building.\n- e. Before the approval of your claim, the community having jurisdiction over your building must:\n- (1) Adopt a permanent land use ordinance, or a temporary moratorium for a period not to exceed 6 months to be followed immediately by a permanent land use ordinance that is consistent with the provisions specified in the easement required in paragraph Q.2.b above;\n\n- (2) Agree to declare and report any violations of this ordinance to FEMA so that under Section 1316 of the National Flood Insurance Act of 1968, as amended, flood insurance to the building can be denied; and\n- (3) Agree to maintain as deedrestricted, for purposes compatible with open space or agricultural or recreational use only, any affected property the community acquires an interest in. These deed restrictions must be consistent with the provisions of paragraph Q.2.b above, except that, even if a certified project protects the property, the land use restrictions continue to apply if the property was acquired under the Hazard Mitigation Grant Program or the Flood Mitigation Assistance Program. If a non-profit land trust organization receives the property as a donation, that organization must maintain the property as deed-restricted, consistent\n3. with the provisions of paragraph Q2.b above.\n- f. Before the approval of your claim, the affected State must take all action set forth in FEMA's 'Policy Guidance for Closed Basin Lakes.'\n- g. You must have NFIP flood insurance coverage con tinuously in effect from a date established by FEMA until you file a claim under paragraph Q.2. If a subsequent owner buys NFIP insurance that goes into effect within 60 days of the date of transfer of title, any gap in coverage during that 60-day period will not be a violation of this continuous coverage requirement. For the purpose of honoring a claim under this paragraph Q.2, we will not consider to be in effect any increased coverage that became effective after the date established by FEMA. The exception to this is any increased coverage in the amount suggested by your insurer as an inflation adjustment.\n- h. This paragraph Q.2 will be in effect for a community when the FEMA Regional Administrator for the affected region provides\n\nto the community, in writing, the following:\n\n- (1) Confirmation that the community and the State are in compliance with the conditions in paragraphs Q.2.e and Q.2.f above; and\n\n(2) The date by which you must have flood insurance in effect.\n\nR. Loss Settlement\n\n1. Introduction\n\nThis policy provides three methods of settling losses: Replacement Cost, Special Loss Settlement, and Actual Cash Value. Each method is used for a different type of property, as explained in paragraphs a-c below.\n\n- a. Replacement Cost Loss Set tlement , described in R.2 below, applies to a singlefamily dwelling provided:\n\n(1) It is your principal residence; and\n\n- (2) At the time of loss, the amount of insurance in this policy that applies to the dwelling is 80 percent or more of its full replacement cost immediately before the loss, or is the maximum amount of insurance available under the NFIP.\n- b. Special Loss Settlement , described in R.3 below, applies to a single-family dwelling that is a manufactured or mobile home or a travel trailer.\n- c. Actual Cash Value Loss Settlement applies to a single-family dwelling not subject to replacement cost or special loss settlement, and to the property listed in R.4 below.\n2. Replacement Cost Loss Settlement\n\nThe following loss settlement conditions apply to a single-family dwelling described in R.1.a above:\n\n- a. We will pay to repair or replace the damaged dwelling after application of the deductible and without deduction for depreciation, but not more than the least of the following amounts:\n- (1) The building limit of liability shown on your Declarations Page;\n- (2) The replacement cost of that part of the dwelling damaged, with materials of like kind and quality and for like use; or\n- (3) The necessary amount actually spent to repair or replace the damaged part of the dwelling for like use.\n- b. If the dwelling is rebuilt at a new location, the cost described above is limited to the cost that would have been incurred if the dwelling had been rebuilt at its former location.\n- c. When the full cost of repair or replacement is more than $1,000, or more than 5 percent of the whole amount of insurance that applies to the dwelling, we will not be liable for any loss under R.2.a above or R.4.a.2 below unless and until actual repair or replacement is completed.\n- d. You may disregard the replacement cost conditions above and make claim under this policy for loss to dwellings on an actual cash value basis. You may then make claim for any additional liability according to R.2.a, b, and c above, provided you notify us of your intent to do so within 180 days after the date of loss.\n- e. If the community in which your dwelling is located has been converted from the Emergency Program to the Regular Program during the current policy term, then we will consider the maximum amount of available NFIP insurance to be the amount that was available at the beginning of the current policy term.\n3. Special Loss Settlement\n- a. The following loss settlement conditions apply to a single-family dwelling that:\n- (1) is a manufactured or mobile home or a travel trailer, as defined in II.C.6.b and c;\n\n- (2) is at least 16 feet wide when fully assembled and has an area of at least 600 square feet within its perimeter walls when fully assembled; and\n- (3) is your principal residence as specified in R.1.a.1 above.\n- b. If such a dwelling is totally destroyed or damaged to such an extent that, in our judgment, it is not economically feasible to repair, at least to its pre-damage condition, we will, at our discretion pay the least of the following amounts:\n- (1) The lesser of the replacement cost of the dwelling or 1.5 times the actual cash value; or\n- (2) The building limit of liability shown on your Declarations Page.\n- c. If such a dwelling is partially damaged and, in our judgment, it is economically feasible to repair it to its pre-damage condition, we will settle the loss according to the Replacement Cost conditions in R.2 above.\n\n4. Actual Cash Value Loss Settlement\n\nThe types of property noted below are subject to actual cash value (or in the case of R.4.a.2., below, proportional) loss settlement.\n\n- a. A dwelling, at the time of loss, when the amount of insurance on the dwelling is both less than 80 percent of its full replacement cost immediately before the loss and less than the maximum amount of insurance available under the NFIP. In that case, we will pay the greater of the following amounts, but not more than the amount of insurance that applies to that dwelling:\n- (1) The actual cash value, as defined in II.C.2, of the damaged part of the dwelling; or\n- (2) A proportion of the cost to repair or replace the damaged part of the dwelling, without deduction for physical depreciation and after application of the deductible.\n\nThis proportion is determined as follows: If 80 percent of the full replacement cost of the dwelling is less than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the amount of insurance that represents 80 percent of its full replacement cost. But if 80 percent of the full replacement cost of the dwelling is greater than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the maximum amount of insurance available under the NFIP.\n\n- b. A two-, three-, or four-family dwelling.\n- c. A unit that is not used exclusively for singlefamily dwelling purposes.\n- d. Detached garages.\n- e. Personal property.\n- f. Appliances, carpets, and carpet pads.\n- g. Outdoor awnings, outdoor antennas or aerials of any type, and other outdoor equipment.\n- h. Any property insured under this policy that is abandoned after a loss and remains as debris anywhere on the described location.\n- i. A dwelling that is not your principal residence.\n\n5. Amount of Insurance Required\n\nTo determine the amount of insurance required for a dwelling immediately before the loss, we do not include the value of:\n\n- a. Footings, foundations, piers, or any other structures or devices that are below the undersurface of the lowest basement floor and support all or part of the dwelling;\n- b. Those supports listed in R.5.a above, that are below the surface of the ground inside the foundation walls if there is no basement; and\n- c. Excavations and underground flues, pipes, wiring, and drains.\n\nNote: The Coverage D-Increased Cost of Compliance limit of liability is not included in the determination of the amount of insurance required.\n\nVIII. POLICY NULLIFICATION, CANCELLATION, AND NON-RENEWAL\n\n- A. Policy Nullification for Fraud, Misrepresentation, or Making False Statements\n1. With respect to all insureds under this policy, this policy is void and has no legal force and effect if at any time, before or after a loss, you or any other insured or your agent have, with respect to this policy or any other NFIP insurance:\n- a. Concealed or misrepresented any material fact or circumstance;\n- b. Engaged in fraudulent conduct; or\n- c. Made false statements.\n2. Policies voided under A.1 cannot be renewed or replaced by a new NFIP policy.\n3. Policies are void as of the date the acts described in A.1 above were committed.\n4. Fines, civil penalties, and imprisonment under applicable Federal laws may also apply to the acts of fraud or concealment described above.\n- B. Policy Nullification for Reasons Other Than Fraud\n1. This policy is void from its inception, and has no legal force or effect, if:\n- a. The property listed on the application is located in a community that was not participating in the NFIP on this policy's inception date and did not join or reenter the program during the policy term and before the loss occurred;\n- b. The property listed on the application is otherwise not eligible for coverage under the NFIP at the time of the initial application;\n- c. You never had an insurable interest in the property listed on the application;\n- d. You provided an agent with an application and payment, but the payment did not clear; or\n- e. We receive notice from you, prior to the policy effective date, that you have determined not to take the policy and you are not subject to a requirement to obtain and maintain flood insurance pursuant to any statute, regulation, or contract.\n2. In such cases, you will be entitled to a full refund of all premium, fees, and surcharges received. However, if a claim was paid for a policy that is void, the claim payment must be returned to FEMA or offset from the premiums to be refunded before the refund will be processed.\n\nC. Cancellation of the Policy by You\n\n1. You may cancel this policy in accordance with the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n2. If you cancel this policy, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\nD. Cancellation of the Policy by Us\n\n1. Cancellation for Underpayment of Amounts Owed on Policy. This policy will be cancelled, pursuant to VII.D.2, if it is determined that the premium amount you paid is not sufficient to buy any amount of coverage, and you do not pay the additional amount of premium owed to increase the coverage to the originally requested amount within the required time period.\n\n2. Cancellation Due to Lack of an Insurable Interest.\n\n- a. If you no longer have an insurable interest in the insured property, we will cancel this policy. You will cease to have an insurable interest if:\n- (1) For building coverage, the building was sold, destroyed, or removed.\n- (2) For contents coverage, the contents were sold or transferred ownership, or the contents were\n\ncompletely removed from the described location.\n\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the applicable rules and regulations of the NFIP.\n\n3. Cancellation of Duplicate Policies\n\n- a. Except as allowed under Article I.G, your property may not be insured by more than one NFIP policy, and payment for damages to your property will only be made under one policy.\n- b. Except as allowed under Article I.G, if the property is insured by more than one NFIP policy, we will cancel all but one of the policies. The policy, or policies, will be selected for cancellation in accordance with 44 CFR 62.5 and the applicable rules and guidance of the NFIP.\n- c. If this policy is cancelled pursuant to VIII.D.4.b, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n4. Cancellation Due to Physical Alteration of Property\n\n- a. If the insured building has been physically altered in such a manner that it is no longer eligible for flood insurance coverage, we will cancel this policy.\n\nof this policy and the applicable rules and regulations of the NFIP.\n\nE. Non-Renewal of the Policy by Us\n\nYour policy will not be renewed if:\n\n1. The community where your insured property is located is suspended or stops participating in the NFIP;\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the terms and conditions\n2. Your building is otherwise ineligible for flood insurance under the Act;\n3. You have failed to provide the information we requested for the purpose of rating the policy within the required deadline.\n\nIX. LIBERALIZATION CLAUSE\n\nIf we make a change that broadens your coverage under this edition of our policy, but does not require any additional premium, then that change will automatically apply to your insurance as of the date we implement the change, provided that this implementation date falls within 60 days before or during the policy term stated on the Declarations Page.\n\nX. WHAT LAW GOVERNS\n\nThis policy and all disputes arising from the insurer's policy issuance, policy administration, or the handling of any claim under the policy are governed exclusively by the flood insurance regulations issued by FEMA, the National Flood Insurance Act of 1968, as amended (42 U.S.C. 4001, et seq.), and Federal common law.\n\nIn Witness Whereof, we have signed this policy below and hereby enter into this Insurance Agreement.\n\nDeputy Associate Administrator Federal Insurance and Mitigation Administration",
+ "markdown": "National Flood Insurance Program\n\n## Dwelling Form\n\nStandard Flood Insurance Policy\n\nF-122 / October 2021\n\n<!-- image -->\n\nStandard Flood Insurance Policy\n\n## Dwelling Form\n\nPlease read the policy carefully. The flood insurance provided is subject to limitations, restrictions, and exclusions.\n\n## I. AGREEMENT\n\n- A. This policy insures the following types of property only:\n1. A one to four family residential building, not under a condominium form of ownership;\n- E. This policy insures only one building. If you own more than one building, coverage will apply to the single building specifically described in the Flood Insurance Application.\n2. A single-family dwelling unit in a condominium building; and\n3. Personal property in a building.\n- B. The Federal Emergency Management Agency (FEMA) provides flood insurance under the terms of the National Flood Insurance Act of 1968 and its amendments, and Title 44 of the Code of Federal Regulations.\n- C. We will pay you for direct physical loss by or from flood to your insured property if you:\n1. Have paid the full amount due (including applicable premiums, surcharges, and fees);\n2. Comply with all terms and conditions of this policy; and\n3. Have furnished accurate information and statements.\n- D. We have the right to review the information you give us at any time and revise your policy based on our review.\n- F. Subject to the exception in I.G below, multiple policies with building coverage cannot be issued to insure a single building to one insured or to different insureds, even if separate policies were issued through different NFIP insurers. Payment for damages may only be made under a single policy for building damages under Coverage ABuilding Property.\n- G. A Dwelling Form policy with building coverage may be issued to a unit owner in a condominium building that is also insured under a Residential Condominium\n\nBuilding Association Policy (RCBAP). However, no more than $250,000 may be paid in combined benefits for a single unit under the Dwelling Form policy and the RCBAP. We will only pay for damage once. Items of damage paid for under an RCBAP cannot also be claimed under the Dwelling Form policy.\n\n## II. DEFINITIONS\n\nA. In this policy, 'you' and 'your' refer to the named insured(s) shown on the Declarations Page of this policy and the spouse of the named insured, if a resident of the same household. Insured(s) also includes: Any mortgagee and loss payee named in the Application and Declarations Page, as well as any other mortgagee or loss payee determined to exist at the time of loss, in the order of precedence. 'We,' 'us,' and 'our' refer to the insurer.\n\nSome definitions are complex because they are provided as they appear in the law or regulations, or result from court cases.\n\n- B. Flood , as used in this flood insurance policy, means:\n1. A general and temporary condition of partial or complete inundation of two or more acres of normally dry land area or of two or more properties (one of which is your property) from:\n- a. Overflow of inland or tidal waters;\n- b. Unusual and rapid accumulation or runoff of surface waters from any source;\n- c. Mudflow.\n2. Collapse or subsidence of land along the shore of a lake or similar body of water as a result of erosion\n\nor undermining caused by waves or currents of water exceeding anticipated cyclical levels that result in a flood as defined in B.1.a above.\n\nC. The following are the other key definitions we use in this policy:\n\n1. Act. The National Flood Insurance Act of 1968 and any amendments to it.\n2. Actual Cash Value. The cost to replace an insured item of property at the time of loss, less the value of its physical depreciation.\n3. Application. The statement made and signed by you or your agent in applying for this policy. The application gives information we use to determine the eligibility of the risk, the kind of policy to be issued, and the correct premium payment. The application is part of this flood insurance policy.\n4. Base Flood. A flood having a one percent chance of being equaled or exceeded in any given year.\n5. Basement. Any area of a building, including any sunken room or sunken portion of a room, having its floor below ground level on all sides.\n6. Building\n- a. A structure with two or more outside rigid walls and a fully secured roof that is affixed to a permanent site;\n- b. A manufactured home, also known as a mobile home, is a structure: built on a permanent chassis, transported to its site in one or more sections, and affixed to a permanent foundation; or\n- c. A travel trailer without wheels, built on a chassis and affixed to a permanent foundation, that is regulated under the community's floodplain management and building ordinances or laws.\n\nBuilding does not mean a gas or liquid storage tank, shipping container, or a recreational vehicle, park trailer, or other similar vehicle, except as described in C.6.c above.\n\n7. Cancellation. The ending of the insurance coverage provided by this policy before the expiration date.\n8. Condominium. That form of ownership of one or more buildings in which each unit owner has an undivided interest in common elements.\n9. Condominium Association. The entity made up of the unit owners responsible for the maintenance and operation of:\n- a. Common elements owned in undivided shares by unit owners; and\n- b. Other buildings in which the unit owners have use rights; where membership in the entity is a required condition of ownership.\n10. Condominium Building. A type of building for which the form of ownership is one in which each unit owner has an undivided interest in common elements of the building.\n11. Declarations Page. A computer-generated summary of information you provided in your application for insurance. The Declarations Page also describes the term of the policy, limits of coverage, and displays the premium and our name. The Declarations Page is a part of this flood insurance policy.\n12. Deductible. The amount of an insured loss that is your responsibility and that is incurred by you before any amounts are paid for the insured loss under this policy.\n13. Described Location. The location where the insured building(s) or personal property are found. The described location is shown on the Declarations Page.\n14. D irect Physical Loss By or From Flood. Loss or damage to insured property, directly caused by a flood. There must be evidence of physical changes to the property.\n15. Dwelling. A building designed for use as a residence for no more than four families or a single-family unit in a condominium building.\n16. Elevated Building. A building that has no basement and that has its lowest elevated floor raised above ground level by foundation walls, shear walls, posts, piers, pilings, or columns.\n17. Emergency Program. The initial phase of a community's participation in the National Flood Insurance Program. During this phase, only limited amounts of insurance are available under the Act and the regulations prescribed pursuant to the Act.\n18. Federal Policy Fee. A flat rate charge you must pay on each new or renewal policy to defray certain administrative expenses incurred in carrying out the National Flood Insurance Program.\n19. Improvements. Fixtures, alterations, installations, or additions comprising a part of the dwelling or apartment in which you reside.\n20. Mudflow. A river of liquid and flowing mud on the surface of normally dry land areas, as when earth is carried by a current of water. Other earth movements, such as landslide, slope failure, or\n\na saturated soil mass moving by liquidity down a slope, are not mudflows.\n\n21. National Flood Insurance Program (NFIP). The program of flood insurance coverage and floodplain management administered under the Act and applicable Federal regulations in Title 44 of the Code of Federal Regulations, Subchapter B.\n22. Policy. The entire written contract between you and us. It includes:\n- a. This printed form;\n- b. The application and Declarations Page;\n- c. Any endorsement(s) that may be issued; and\n- d. Any renewal certificate indicating that coverage has been instituted for a new policy and new policy term. Only one dwelling, which you specifically described in the application, may be insured under this policy.\n23. Pollutants. Substances that include, but are not limited to, any solid, liquid, gaseous, or thermal irritant or contaminant, including smoke, vapor, soot, fumes, acids, alkalis, chemicals, and waste. 'Waste' includes, but is not limited to, materials to be recycled, reconditioned, or reclaimed.\n24. Post-FIRM Building. A building for which construction or substantial improvement occurred after December 31, 1974, or on or after the effective date of an initial Flood Insurance Rate Map (FIRM), whichever is later.\n- a. The 365 days immediately preceding the time of loss; or\n- b. The period of ownership of you or your spouse, if either you or your spouse owned the dwelling for less than 365 days immediately preceding the time of loss.\n26. Probation Surcharge. A flat charge you must pay on each new or renewal policy issued covering property in a community the NFIP has placed on probation under the provisions of 44 CFR 59.24.\n27. Regular Program. The final phase of a community's participation in the National Flood Insurance Program. In this phase, a Flood Insurance Rate Map is in effect and full limits of coverage are available under the Act and the regulations prescribed pursuant to the Act.\n28. Special Flood Hazard Area (SFHA). An area having special flood or mudflow, and/or flood-related erosion hazards, and shown on a Flood Hazard Boundary Map or Flood Insurance Rate Map as Zone A, AO, A1-A30, AE, A99, AH, AR, AR/A, AR/ AE, AR/AH, AR/AO, AR/A1-A30, V1-V30, VE, or V.\n29. Unit. A single-family residential space you own in a condominium building.\n30. Valued Policy. A policy in which the insured and the insurer agree on the value of the property insured, that value being payable in the event of a total loss. The Standard Flood Insurance Policy is not a valued policy.\n25. Principal Residence. The dwelling in which you or your spouse have lived for at least 80 percent of:\n\n## III. PROPERTY INSURED\n\nare always considered part of the dwelling and cannot be separately insured.\n\n- A detached garage at the described location. Coverage is limited to no more than 10 percent of the limit of liability on the dwelling. Use of this insurance is at your option but reduces the building limit of liability. We do not cover any detached garage used or held for use for residential (i.e., dwelling), business, or farming purposes.\n\n## A. Coverage A-Building Property\n\nWe insure against direct physical loss by or from flood to:\n\n1. The dwelling at the described location, or for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n2. Additions and extensions attached to and in contact with the dwelling by means of a rigid exterior wall, a solid load-bearing interior wall, a stairway, an elevated walkway, or a roof. At your option, additions and extensions connected by any of these methods may be separately insured. Additions and extensions attached to and in contact with the building by means of a common interior wall that is not a solid load-bearing wall\n3. 3.\n\n4. Materials and supplies to be used for construction, alteration, or repair of the dwelling or a detached garage while the materials and supplies are stored in a fully enclosed building at the described location or on an adjacent property.\n5. A building under construction, alteration, or repair at the described location.\n- a. If the structure is not yet walled or roofed as described in the definition for building (see II.C.6.a) then coverage applies:\n- (1) Only while such work is in progress; or\n- (2) If such work is halted, only for a period of up to 90 continuous days thereafter.\n- b. However, coverage does not apply until the building is walled and roofed if the lowest floor, including the basement floor, of a non-elevated building or the lowest elevated floor of an elevated building is:\n- (1) Below the base flood elevation in Zones AH, AE, A1-A30, AR, AR/AE, AR/ AH, AR/A1-A30, AR/A, AR/AO; or\n- (2) Below the base flood elevation adjusted to include the effect of wave action in Zones VE or V1-V30.\n\nThe lowest floor level is based on the bottom of the lowest horizontal structural member of the floor in Zones VE or V1-V30 or the top of the floor in Zones AH, AE, A1-A30, AR, AR/AE, AR/AH, AR/ A1-A30, AR/A, and AR/AO.\n\n6. A manufactured home or a travel trailer, as described in the II.C.6. If the manufactured home or travel trailer is in a special flood hazard area, it must be anchored in the following manner at the time of the loss:\n- a. By over-the-top or frame ties to ground anchors; or\n- b. In accordance with the manufacturer's specifications; or\n- c. In compliance with the community's floodplain management requirements unless it has been continuously insured by the NFIP at the same described location since September 30, 1982.\n7. The following items of property which are insured under Coverage A only:\n- a. Awnings and canopies;\n- b. Blinds;\n- c. Built-in dishwashers;\n- d. Built-in microwave ovens;\n- e. Carpet permanently installed over unfinished flooring;\n- f. Central air conditioners;\n- g. Elevator equipment;\n- h. Fire sprinkler systems;\n- i. Walk-in freezers;\n- j. Furnaces and radiators;\n- k. Garbage disposal units;\n- l. Hot water heaters, including solar water heaters;\n- m. Light fixtures;\n- n. Outdoor antennas and aerials fastened to buildings;\n- o. Permanently installed cupboards, bookcases, cabinets, paneling, and wallpaper;\n- p. Plumbing fixtures;\n- q. Pumps and machinery for operating pumps;\n- r. Ranges, cooking stoves, and ovens;\n- s. Refrigerators; and\n- t. Wall mirrors, permanently installed.\n8. Items of property below the lowest elevated floor of an elevated postFIRM building located in Zones\n\n## A1-A30, AE, AH, AR, AR/A, AR/ AE, AR/AH, AR/A1-A30, V1-V30, or VE, or in a basement regardless of the zone. Coverage is limited to the following:\n\n- a. Any of the following items, if installed in their functioning locations and, if necessary for operation, connected to a power source:\n- (1) Central air conditioners;\n- (2) Cisterns and the water in them;\n- (3) Drywall for walls and ceilings in a basement and the cost of labor to nail it, unfinished and unfloated and not taped, to the framing;\n- (4) Electrical junction and circuit breaker boxes;\n- (5) Electrical outlets and switches;\n- (6) Elevators, dumbwaiters and related equipment, except for related equipment installed below the base flood elevation after September 30, 1987;\n- (7) Fuel tanks and the fuel in them;\n- (8) Furnaces and hot water heaters;\n- (9) Heat pumps;\n- (10) Nonflammable insulation in a basement;\n- (11) Pumps and tanks used in solar energy systems;\n- (12) Stairways and staircases attached to the building, not separated from it by elevated walkways;\n- (13) Sump pumps;\n- (14) Water softeners and the chemicals in them, water filters, and faucets installed as an integral part of the plumbing system;\n- (15) Well water tanks and pumps;\n- (16) Required utility connections for any item in this list; and\n- (17) Footings, foundations, posts, pilings, piers, or other foundation walls and anchorage systems required to support a building.\n- b. Clean-up.\n\n## B. Coverage B-Personal Property\n\n1. If you have purchased personal property coverage, we insure against direct physical loss by or from flood to personal property inside a building at the described location, if:\n- a. The property is owned by you or your household family members; and\n- b. At your option, the property is owned by guests or servants.\n2. Personal property is also insured for a period of 45 days at another location as set forth in III.C.2.b, Property Removed to Safety.\n3. Personal property in a building that is not fully enclosed must be secured to prevent flotation out of the building. If the personal property does float out during a flood, it will be conclusively presumed that it was not reasonably secured. In that case, there is no coverage for such property.\n4. Coverage for personal property includes the following property, subject to B.1 above, which is insured under Coverage B only:\n- a. Air conditioning units, portable or window type;\n- b. Carpets, not permanently installed, over unfinished flooring;\n- c. Carpets over finished flooring;\n- d. Clothes washers and dryers;\n- e. 'Cook-out' grills;\n- f. Food freezers, other than walk-in, and food in any freezer; and\n- g. Portable microwave ovens and portable dishwashers.\n\n## 5. Coverage for items of property below the lowest elevated floor of an elevated post-FIRM building located in Zones A1-A30, AE, AH, AR, AR/A, AR/AE, AR/AH, AR/ A1-A30, V1-V30, or VE, or in a basement regardless of the zone, is limited to the following items, if installed in their functioning locations and, if necessary for oper ation, connected to a power source:\n\n- a. Air conditioning units, portable or window type;\n- b. Clothes washers and dryers; and\n- c. Food freezers, other than walk-in, and food in any freezer.\n6. If you are a tenant and have insured personal property under Coverage B in this policy, we will cover such property, including your cooking stove or range and refrigerator. The policy will also cover improvements made or acquired solely at your expense in the dwelling or apartment in which you reside, but for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n7. If you are the owner of a unit and have insured personal property under Coverage B in this policy, we will also cover your interior walls, floor, and ceiling (not otherwise insured under a flood insurance policy purchased by your condominium association) for not more than 10 percent of the limit of liability shown for personal property on the Declarations Page. Use of this insurance is at your option but reduces the personal property limit of liability.\n8. Special Limits. We will pay no more than $2,500 for any one loss to one or more of the following kinds of personal property:\n- a. Artwork, photographs, collectibles, or memorabilia, including but not limited to, porcelain or other figures, and sports cards;\n- b. Rare books or autographed items;\n- c. Jewelry, watches, precious and semi-precious stones, or articles of gold, silver, or platinum;\n- d. Furs or any article containing fur that represents its principal value; or\n- e. Personal property used in any business.\n\n## 9. We will pay only for the functional value of antiques.\n\n## C. Coverage C-Other Coverages\n\n1. Debris Removal\n- a. We will pay the expense to remove non-owned debris that is on or in insured property and debris of insured property anywhere.\n- b. If you or a member of your household perform the removal work, the value of your work will be based on the Federal minimum wage.\n- c. This coverage does not increase the Coverage A or Coverage B limit of liability.\n2. Loss Avoidance Measures\n- a. Sandbags, Supplies, and Labor\n- (1) We will pay up to $1,000 for costs you incur to protect the insured building from a flood or imminent danger of flood, for the following:\n8. (a) Your reasonable expenses to buy:\n9. (i) Sandbags, including sand to fill them;\n10. (ii) Fill for temporary levees;\n11. (iii) Pumps; and\n12. (iv) Plastic sheeting and lumber used in connection with these items.\n13. (b) The value of work, at the Federal minimum wage, that you or a member of your house-hold perform.\n- (2) This coverage for Sandbags, Supplies, and Labor only applies if damage to insured property by or from flood is imminent and the threat of flood damage is apparent enough to lead a person of common prudence to anticipate flood damage. One of the following must also occur:\n15. (a) A general and temporary condition of flooding in the area near the described\n\nlocation must occur, even if the flood does not reach the building; or\n\n- (b) A legally authorized official must issue an evacuation order or other civil order for the community in which the building is located calling for measures to preserve life and property from the peril of flood.\n\nThis coverage does not increase the Coverage A or Coverage B limit of liability.\n\n- b. Property Removed to Safety\n- (1) We will pay up to $1,000 for the reasonable expenses you incur to move insured property to a place other than the described location that contains the property in order to protect it from flood or the imminent danger of flood. Reasonable expenses include the value of work, at the Federal minimum wage, you or a member of your household perform.\n- (2) If you move insured property to a location other than the described location that contains the property in order to protect it from flood or the imminent danger of flood, we will cover such property while at that location for a period of 45 consecutive days from the date you begin to move it there. The personal property that is moved must be placed in a fully enclosed building or otherwise reasonably protected from the elements.\n- (3) Any property removed, including a moveable home described in II.6.b and c, must be placed above ground level or outside of the special flood hazard area.\n- (4) This coverage does not increase the Coverage A or Coverage B limit of liability.\n3. Condominium Loss Assessments\n- a. Subject to III.C.3.b below, if this policy insures a condominium unit, we will pay, up to the Coverage A limit of liability, your share of loss assessments charged against you by the condominium association in accordance with the condominium association's articles of association, declarations and your deed. The assessment must be made because of direct physical loss by or from flood during the policy term, to the unit or to the common elements of the NFIP insured condominium building in which this unit is located.\n- b. We will not pay any loss assessment:\n- (1) Charged against you and the condominium association by any governmental body;\n- (2) That results from a deductible under the insurance purchased by the condominium association insuring common elements;\n- (3) That results from a loss to personal property, including contents of a condomin ium building;\n\n## (4) In which the total payment combined under all policies exceeds the maximum amount of coverage available under the Act for a single unit in a condominium building where the unit is insured under both a Dwelling Policy and a RCBAP; or\n\n- (5) On any item of damage that has already been paid under a RCBAP where a single unit in a condominium building is insured by both a Dwelling Policy and a RCBAP.\n- c. Condominium Loss Assessment coverage does not increase the Coverage A Limit of Liability and is subject to the maximum coverage limits available for a single-family dwelling under the Act, payable between all\n\npolicies issued and covering the unit, under the Act.\n\n## D. Coverage D-Increased Cost of Compliance\n\n## 1. General\n\nThis policy pays you to comply with a State or local floodplain management law or ordinance affecting repair or reconstruction of a building suffering flood damage. Compliance activities eligible for payment are: elevation, floodproofing, relocation, or demolition (or any combination of these activities) of your building. Eligible floodproofing activities are limited to:\n\n- a. Non-residential buildings.\n- b. Residential buildings with basements that satisfy FEMA's standards published in the Code of Federal Regulations [44 CFR 60.6(b) or (c)].\n\n## 2. Limit of Liability\n\nWe will pay you up to $30,000 under this Coverage D-Increased Cost of Compliance, which only applies to policies with building coverage (Coverage A). Our payment of claims under Coverage D is in addition to the amount of coverage which you selected on the application and which appears on the Declarations Page. But the maximum you can collect under this policy for both Coverage A-Building Property and Coverage D-Increased Cost of Compliance cannot exceed the maximum permitted under the Act. We do not charge a separate deductible for a claim under Coverage D.\n\n## 3. Eligibility\n\n- a. A building insured under Coverage ABuilding Property sustaining a loss caused by a flood as defined by this policy must:\n- (1) Be a 'repetitive loss building.' A repetitive loss building is one that meets the following conditions:\n3. (a) The building is insured by a contract of flood insurance issued under the NFIP.\n4. (b) The building has suffered flood damage on two occasions during a 10-year period which ends on the date of the second loss.\n5. (c) The cost to repair the flood damage, on average, equaled or exceeded 25 percent of the market value of the building at the time of each flood loss.\n6. (d) In addition to the current claim, the NFIP must have paid the previous qualifying claim, and the State or community must have a cumulative, substantial damage provision or repetitive loss provision in its floodplain management law or ordinance being enforced against the building; or\n- (2) Be a building that has had flood damage in which the cost to repair equals or exceeds 50 percent of the market value of the building at the time of the flood. The State or community must have a substantial damage provision in its floodplain management law or ordinance being enforced against the building.\n- b. This Coverage D pays you to comply with State or local floodplain management laws or ordinances that meet the minimum standards of the National Flood Insurance Program found in the Code of Federal Regulations at 44 CFR 60.3. We pay for compliance activities that exceed those standards under these conditions:\n- (1) 3.a.1 above.\n- (2) Elevation or floodproofing in any risk zone to preliminary or advisory base flood elevations provided by FEMA which the State or local government has adopted and is enforcing for flooddamaged buildings in such areas. (This includes compliance activities in B, C, X, or D zones which are being changed to zones with base flood elevations. This also includes compliance activities in zones where base flood elevations are being increased, and a flood-damaged building must comply with the higher advisory base flood elevation.) Increased Cost of Compliance coverage does not apply to situations in B, C, X, or D zones where the community has derived its own elevations and is enforcing elevation or floodproofing requirements for flooddamaged buildings to elevations derived solely by the community.\n- (3) Elevation or floodproofing above the base flood elevation to meet State or local 'free-board' requirements, i.e., that a building must be elevated above the base flood elevation.\n\n- c. Under the minimum NFIP criteria at 44 CFR 60.3(b)(4), States and communities must require the elevation or floodproofing of buildings in unnumbered A zones to the base flood elevation where elevation data is obtained from a Federal, State, or other source. Such compliance activities are eligible for Coverage D.\n- d. Coverage D will pay for the incremental cost, after demolition or relocation, of elevating or floodproofing a building during its rebuilding at the same or another site to meet State or local floodplain management laws or ordinances, subject to Coverage D Exclusion 5.g below.\n- e. Coverage D will pay to bring a flood-damaged building into compliance with State or local floodplain management laws or ordinances even if the building had received a variance before the present loss from the applicable floodplain management requirements.\n\n## 4. Conditions\n\n- a. When a building insured under Coverage A-Building Property sustains a loss caused by a flood, our payment for the loss under this Coverage D will be for the increased cost to elevate, floodproof, relocate, or demolish (or any combination of these activities) caused by the enforcement of current State or local floodplain management ordinances or laws. Our payment for eligible demolition activities will be for the cost to demolish and clear the site of the building debris or a portion thereof caused by the enforcement of current State or local floodplain management\n\nordinances or laws. Eligible activities for the cost of clearing the site will include those necessary to discontinue utility service to the site and ensure proper abandonment of on-site utilities.\n\n- b. When the building is repaired or rebuilt, it must be intended for the same occupancy as the present building unless otherwise required by current floodplain management ordinances or laws.\n\n## 5. Exclusions\n\nUnder this Coverage D (Increased Cost of Compliance), we will not pay for:\n\n- a. The cost to comply with any flood plain management law or ordinance in communities participating in the Emergency Program.\n- b. The cost associated with enforcement of any ordinance or law that requires any insured or others to test for, monitor, clean up, remove, contain, treat, detoxify or neutralize, or in any way respond to, or assess the effects of pollutants.\n- c. The loss in value to any insured building due to the\n\n- requirements of any ordinance or law.\n- d. The loss in residual value of the undamaged portion of a building demolished as a consequence of enforcement of any State or local flood plain management law or ordinance.\n- e. Any Increased Cost of Compliance under this Coverage D:\n- (1) Until the building is elevated, floodproofed, demolished, or relocated on the same or to another premises; and\n- (2) Unless the building is elevated, floodproofed, demolished, or relocated as soon as reasonably possible after the loss, not to exceed two years.\n- f. Any code upgrade requirements, e.g., plumbing or electrical wiring, not specifically related to the State or local floodplain management law or ordinance.\n- g. Any compliance activities needed to bring additions or improvements made after the loss occurred into compliance with State or local flood plain management laws or ordinances.\n- h. Loss due to any ordinance or law that you were required to comply with before the current loss.\n- i. Any rebuilding activity to standards that do not meet the NFIP's minimum requirements. This includes any situation where the insured has received from the State or community a variance in connection with the current flood loss to rebuild the property to an elevation below the base flood elevation.\n- j. Increased Cost of Compliance for a garage or carport.\n- k. Any building insured under an NFIP Group Flood Insurance Policy.\n- l. Assessments made by a condo minium association on individual condominium unit owners to pay increased costs of repairing commonly owned buildings after a flood in compliance with State or local floodplain management ordinances or laws.\n6. Other Provisions\n- a. Increased Cost of Compliance coverage will not be included in the calculation to determine whether coverage meets the 80 percent insurance-to-value requirement for replacement cost coverage as set forth in Art. VII.R ('Loss Settlement') of this policy.\n- b. All other conditions and provisions of this policy apply.\n\n## We do not insure any of the following:\n\n1. Personal property not inside a building.\n2. A building, and personal property in it, located entirely in, on, or over water or seaward of mean high tide if it was constructed or substantially improved after September 30, 1982.\n3. Open structures, including a building used as a boathouse or any structure or building into which boats are floated, and personal property located in, on, or over water.\n4. Recreational vehicles other than travel trailers described in the Definitions section (see II.C.6.c) whether affixed to a permanent foundation or on wheels.\n5. Self-propelled vehicles or machines, including their parts and equipment. However, we do cover self-propelled vehicles or machines not licensed for use on public roads that are:\n- a. Used mainly to service the described location; or\n- b. Designed and used to assist handicapped persons, while the vehicles or machines\n8. are inside a building at the described location.\n6. Land, land values, lawns, trees, shrubs, plants, growing crops, or animals.\n7. Accounts, bills, coins, currency, deeds, evidences of debt, medals, money, scrip, stored value cards, postage stamps, securities, bullion, manuscripts, or other valuable papers.\n8. Underground structures and equip ment, including wells, septic tanks, and septic systems.\n9. Those portions of walks, walkways, decks, driveways, patios and other surfaces, all whether protected by a roof or not, located outside the perimeter, exterior walls of the insured building or the building in which the insured unit is located.\n10. Containers, including related equipment, such as, but not limited to, tanks containing gases or liquids.\n11. Buildings or units and all their contents if more than 49 percent of the actual cash value of the building is below ground, unless the lowest level is at or above the base flood elevation and is below\n\n- ground by reason of earth having been used as insulation material in conjunction with energy efficient building techniques.\n12. Fences, retaining walls, seawalls, bulkheads, wharves, piers, bridges, and docks.\n13. Aircraft or watercraft, or their furnishings and equipment.\n\nfilters, pumps, and pipes, wherever located.\n\n15. Property not eligible for flood insurance pursuant to the provisions of the Coastal Barrier Resources Act and the Coastal Barrier Improvement Act and amendments to these acts.\n14. Hot tubs and spas that are not bathroom fixtures, and swimming pools, and their equipment, such as, but not limited to, heaters,\n16. Personal property you own in common with other unit owners comprising the membership of a condominium association.\n\n## V. EXCLUSIONS\n\nA. We only pay for direct physical loss by or from flood, which means that we do not pay you for:\n\n1. Loss of revenue or profits;\n2. Loss of access to the insured property or described location;\n3. Loss of use of the insured property or described location;\n4. Loss from interruption of business or production;\n5. Any additional living expenses incurred while the insured building is being repaired or is unable to be occupied for any reason;\n6. The cost of complying with any ordinance or law requiring or\n\nregulating the construction, demolition, remodeling, renovation, or repair of property, including removal of any resulting debris. This exclusion does not apply to any eligible activities we describe in Coverage D-Increased Cost of Compliance; or\n\n7. Any other economic loss you suffer.\n\nB. Flood in Progress. If this policy became effective as of the time of a loan closing, as provided by 44 CFR 61.11(b), we will not pay for a loss caused by a flood that is a continuation of a flood that existed prior to coverage becoming effective.\n\nIn all other circumstances, we will not pay for a loss caused by a flood that is a continuation of a flood that existed on or before the day you submitted the application for coverage under this policy and the full amount due. We will determine the date of application using 44 CFR 61.11(f).\n\nC. We do not insure for loss to property caused directly by earth movement even if the earth movement is caused by flood. Some examples of earth movement that we do not cover are:\n\n1. Earthquake;\n2. Landslide;\n3. Land subsidence;\n4. Sinkholes;\n5. Destabilization or movement of land that results from accumulation of water in subsurface land area; or\n6. Gradual erosion.\n\nWe do, however, pay for losses from mudflow and land subsidence as a result of erosion that are specifically insured under our definition of flood (see II.B.1.c and II.B.2).\n\nD. We do not insure for direct physical loss caused directly or indirectly by any of the following:\n\n1. The pressure or weight of ice;\n2. Freezing or thawing;\n3. Rain, snow, sleet, hail, or water spray;\n4. Water, moisture, mildew, or mold damage that results primarily from any condition:\n- a. Substantially confined to the dwelling; or\n- b. That is within your control, including but not limited to:\n- (1) Design, structural, or mechanical defects;\n- (2) Failure, stoppage, or breakage of water or sewer lines, drains, pumps, fixtures, or equipment; or\n- (3) Failure to inspect and maintain the property after a flood recedes;\n5. Water or water-borne material that:\n- a. Backs up through sewers or drains;\n- b. Discharges or overflows from a sump, sump pump, or related equipment; or\n- c. Seeps or leaks on or through the insured property;\n\nunless there is a flood in the area and the flood is the proximate cause of the sewer or drain backup, sump pump discharge or overflow, or the seepage of water;\n\n6. The pressure or weight of water unless there is a flood in the area and the flood is the proximate cause of the damage from the pressure or weight of water;\n7. Power, heating, or cooling failure unless the failure results from direct physical loss by or from flood to power, heating, or cooling equipment on the described location;\n8. Theft, fire, explosion, wind, or windstorm;\n9. Anything you or any member of your household do or conspire\n\nto do to deliberately cause loss by flood; or\n\n10. Alteration of the insured property that significantly increases the risk of flooding.\n\nE. We do not insure for loss to any building or personal property located on land leased from the Federal Government, arising from or incident to the flooding of the land by the Federal Government, where the lease expressly holds the Federal Government harmless under flood insurance issued under any Federal Government program.\n\nF. We do not pay for the testing for or monitoring of pollutants unless required by law or ordinance.\n\n## VI. DEDUCTIBLES\n\nA. When a loss is insured under this policy, we will pay only that part of the loss that exceeds your deductible amount, subject to the limit of liability that applies. The deductible amount is shown on the Declarations Page.\n\nB. In each loss from flood, separate deductibles apply to the building and personal property insured by this policy.\n\n- C. The deductible does NOT apply to:\n1. III.C.2. Loss Avoidance Measures;\n2. III.C.3. Condominium Loss Assessments; or\n3. III.D. Increased Cost of Compliance.\n\nHowever, when a building under construction, alteration, or repair does not have at least two rigid exterior walls and a fully secured roof at the time of loss, your deductible amount will be two times the deductible that would otherwise apply to a completed building.\n\n## A. Pair and Set Clause\n\nIn case of loss to an article that is part of a pair or set, we will have the option of paying you:\n\n1. An amount equal to the cost of replacing the lost, damaged, or destroyed article, minus its depreciation; or\n2. The amount that represents the fair proportion of the total value of the pair or set that the lost, damaged, or destroyed article bears to the pair or set.\n\n## B. Other Insurance\n\n1. If a loss insured by this policy is also insured by other insurance that includes flood coverage not issued under the Act, we will not pay more than the amount of insurance you are entitled to for lost, damaged, or destroyed property insured under this policy subject to the following:\n- a. We will pay only the proportion of the loss that the amount of insurance that applies under this policy bears to the total amount of insurance covering the loss, unless VII.B.1.b or c immediately below applies.\n- b. If the other policy has a provision stating that it is excess insurance, this policy will be primary.\n- c. This policy will be primary (but subject to its own deductible)\n\nup to the deductible in the other flood policy (except another policy as described in VII.B.1.b above). When the other deductible amount is reached, this policy will participate in the same proportion that the amount of insurance under this policy bears to the total amount of both policies, for the remainder of the loss.\n\n2. If there is other insurance issued under the Act in the name of your condominium association covering the same property insured by this policy, then this policy will be in excess over the other insurance, except where a condominium loss assessment to the unit owner results from a loss sustained by the condominium association that was not reimbursed under a flood insurance policy written in the name of the association under the Act because the building was not, at the time of loss, insured for an amount equal to the lesser of:\n- a. 80 percent or more of its full replacement cost; or\n\n- b. The maximum amount of insurance permitted under the Act.\n3. The combined coverage payment under the other NFIP insurance and this policy cannot exceed the maximum coverage available under the Act, of $250,000 per single unit.\n\n## C. Amendments, Waivers, Assignment\n\nThis policy cannot be changed, nor can any of its provisions be waived, without the express written consent of the Federal Insurance Administrator. No action we take under the terms of this policy constitutes a waiver of any of our rights. You may assign this policy in writing when you transfer title of your property to someone else except under these conditions:\n\n- a. When this policy insures only personal property; or\n- b. When this policy insures a building under construction.\n- D. Insufficient Premium or Rating Information\n1. Applicability. The following provisions apply to all instances where the premium paid on this policy is insufficient or where the rating information is insufficient, such as where an Elevation Certificate is not provided.\n2. Reforming the Policy with Re\u00ad duced Coverage. Except as otherwise provided in VII.D.1, if the premium we received from you was not sufficient to buy the kinds and amounts of coverage you requested, we will provide only the kinds and\n\namounts of coverage that can be purchased for the premium payment we received.\n\n- a. For the purpose of determining whether your premium payment is sufficient to buy the kinds and amounts of coverage you requested, we will first deduct the costs of all applicable fees and surcharges.\n- b. If the amount paid, after deducting the costs of all applicable fees and surcharges, is not sufficient to buy any amount of coverage, your payment will be refunded. Unless the policy is reformed to increase the coverage amount to the amount originally requested pursuant to VII.D.3, this policy will be cancelled, and no claims will be paid under this policy.\n- c. Coverage limits on the reformed policy will be based upon the amount of premium submitted per type of coverage, but will not exceed the amount originally requested.\n3. Discovery of Insufficient Premium or Rating Information. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, the policy will\n\nbe reformed as described in VII.D.2. You have the option of increasing the amount of coverage resulting from this reformation to the amount you requested as follows:\n\n- a. Insufficient Premium. If we discover that your premium payment was not sufficient to buy the requested amount of coverage, we will send you, and any mortgagee or trustee known to us, a bill for the required additional premium for the current policy term (or that portion of the current policy term following any endorsement changing the amount of coverage). If it is discovered that the initial amount charged to you for any fees or surcharges is incorrect, the difference will be added or deducted, as applicable, to the total amount in this bill.\n- (1) If you or the mortgagee or trustee pays the additional premium amount due within 30 days from the date of our bill, we will reform the policy to increase the amount of coverage to the originally requested amount, effective to the beginning\n\nof the current policy term (or subsequent date of any endorsement changing the amount of coverage).\n\n- (2) If you or the mortgagee or trustee do not pay the additional amount due within 30 days of the date of our bill, any flood insurance claim will be settled based on the reduced amount of coverage.\n- (3) As applicable, you have the option of paying all or part of the amount due out of a claim payment based on the originally requested amount of coverage.\n- b. Insufficient Rating Inform\u00ad ation. If we determine that the rating information we have is insufficient and prevents us from calculating the additional premium, we will ask you to send the required information. You must submit the information within 60 days of our request.\n- (1) If we receive the information within 60 days of our request, we will determine the amount of additional premium for the current\n\npolicy term, and follow the procedure in VII.D.3.a above.\n\n- (2) If we do not receive the information within 60 days of our request, no claims will be paid until the requested information is provided. Coverage will be limited to the amount of coverage that can be purchased for the payments we received, as determined when the requested information is provided.\n4. Coverage Increases. If we do not receive the amounts requested in VII.D.3.a or the additional information requested in VII.D.3.b by the date it is due, the amount of coverage under this policy can only be increased by endorsement subject to the appropriate waiting period. However, no coverage increases will be allowed until you have provided the information requested in VII.D.3.b.\n5. Falsifying Information. However, if we find that you or your agent intentionally did not tell us, or falsified any important fact or circumstance or did anything fraudulent relating to this insurance, the provisions of VIII.A apply.\n\n## E. Policy Renewal\n\n1. This policy will expire at 12:01 a.m. on the last day of the policy term.\n2. We must receive the payment of the appropriate renewal premium within 30 days of the expiration date.\n3. If we find, however, that we did not place your renewal notice into the U.S. Postal Service, or if we did mail it, we made a mistake, e.g., we used an incorrect, incomplete, or illegible address, which delayed its delivery to you before the due date for the renewal premium, then we will follow these procedures:\n- a. If you or your agent notified us, not later than one year after the date on which the payment of the renewal premium was due, of non-receipt of a renewal notice before the due date for the renewal premium, and we determine that the circumstances in the preceding paragraph apply, we will mail a second bill providing a revised due date, which will be 30 days after the date on which the bill is mailed.\n- b. If we do not receive the premium requested in the second bill by the revised due date, then we will not renew the policy. In that case, the policy will remain an expired policy as of the expiration date shown on the Declarations Page.\n4. In connection with the renewal of this policy, we may ask you during the policy term to recertify, on a Recertification Questionnaire we will provide to you, the rating information used to rate your most recent application for or renewal of insurance.\n- F. Conditions Suspending or Restricting Insurance\n\nWe are not liable for loss that occurs while there is a hazard that is increased by any means within your control or knowledge.\n\nG. Requirements in Case of Loss\n\nIn case of a flood loss to insured property, you must:\n\n1. Give prompt written notice to us.\n2. As soon as reasonably possible, separate the damaged and\n\nundamaged property, putting it in the best possible order so that we may examine it.\n\n3. Prepare an inventory of damaged property showing the quantity, description, actual cash value, and amount of loss. Attach all bills, receipts, and related documents.\n4. Within 60 days after the loss, send us a proof of loss, which is your statement of the amount you are claiming under the policy signed and sworn to by you, and which furnishes us with the following information:\n- a. The date and time of loss;\n- b. A brief explanation of how the loss happened;\n- c. Your interest (for example, 'owner') and the interest, if any, of others in the damaged property;\n- d. Details of any other insurance that may cover the loss;\n- e. Changes in title or occupancy of the insured property during the term of the policy;\n- f. Specifications of damaged buildings and detailed repair estimates;\n- g. Names of mortgagees or anyone else having a lien,\n\ncharge, or claim against the insured property;\n\n- h. Details about who occupied any insured building at the time of loss and for what purpose; and\n- i. The inventory of damaged personal property described in G.3 above.\n5. In completing the proof of loss, you must use your own judgment concerning the amount of loss and justify that amount.\n6. You must cooperate with the adjuster or representative in the investigation of the claim.\n7. The insurance adjuster whom we hire to investigate your claim may furnish you with a proof of loss form, and she or he may help you complete it. However, this is a matter of courtesy only, and you must still send us a proof of loss within 60 days after the loss even if the adjuster does not furnish the form or help you complete it.\n8. We have not authorized the adjuster to approve or disapprove claims or to tell you whether we will approve your claim.\n9. At our option, we may accept the adjuster's report of the loss instead of your proof of loss. The adjuster's report will include information about your loss and the damages you sustained. You must sign the adjuster's report. At our option, we may require you to swear to the report.\n\nH. Our Options After a Loss\n\nOptions we may, in our sole discretion, exercise after loss include the following:\n\n1. At such reasonable times and places that we may designate, you must:\n- a. Show us or our representative the damaged property;\n- b. Submit to examination under oath, while not in the presence of another insured, and sign the same; and\n- c. Permit us to examine and make extracts and copies of:\n- (1) Any policies of property insurance insuring you against loss and the deed establishing your ownership of the insured real property;\n- (2) Condominium association documents including the Declarations of the condominium, its Articles of Association or Incorporation, Bylaws, rules and regulations, and other relevant documents if you are a unit owner in a condominium building; and\n- (3) All books of accounts, bills, invoices and other vouchers, or certified copies pertaining to the damaged property if the originals are lost.\n2. We may request, in writing, that you furnish us with a complete\n\ninventory of the lost, damaged or destroyed property, including:\n\n- a. Quantities and costs;\n- b. Actual cash values or replacement cost (whichever is appropriate);\n- c. Amounts of loss claimed;\n- d. Any written plans and specifications for repair of the damaged property that you can reasonably make available to us; and\n- e. Evidence that prior flood damage has been repaired.\n3. If we give you written notice within 30 days after we receive your signed, sworn proof of loss, we may:\n- a. Repair, rebuild, or replace any part of the lost, damaged, or destroyed property with material or property of like kind and quality or its functional equivalent; and\n- b. Take all or any part of the damaged property at the value that we agree upon or its appraised value.\n- I. No Benefit to Bailee\n\nNo person or organization, other than you, having custody of insured property will benefit from this insurance.\n\n## J. Loss Payment\n\n1. We will adjust all losses with you. We will pay you unless some other person or entity is named in the policy or is legally entitled to receive payment. Loss will be payable 60 days after we receive your proof of loss (or within 90 days after the insurance adjuster files the adjuster's report signed and sworn to by you in lieu of a proof of loss) and:\n- a. We reach an agreement with you;\n- b. There is an entry of a final judgment; or\n- c. There is a filing of an appraisal award with us, as provided in VII.M.\n2. If we reject your proof of loss in whole or in part you may:\n- a. Accept our denial of your claim;\n- b. Exercise your rights under this policy; or\n- c. File an amended proof of loss as long as it is filed within 60 days of the date of the loss.\n\n## K. Abandonment\n\nYou may not abandon to us damaged or undamaged property insured under this policy.\n\n## L. Salvage\n\nWe may permit you to keep damaged property insured under this policy after a loss, and we will reduce the amount of the loss proceeds payable to you under the policy by the value of the salvage.\n\n## M. Appraisal\n\nIf you and we fail to agree on the actual cash value or, if applicable, replacement cost of your damaged property to settle upon the amount of loss, then either may demand an appraisal of the loss. In this event, you and we will each choose a competent and impartial appraiser within 20 days after receiving a written request from the other. The two appraisers will choose an umpire. If they cannot agree upon an umpire within 15 days, you or we may request that the choice be made by a judge of a court of record in the state where the insured property is located. The appraisers will separately state the actual cash value, the replacement cost, and the amount of loss to each item. If the appraisers submit a written report of an agreement to us, the amount agreed upon will be the amount of loss. If they fail to agree, they will submit their differences to the umpire. A decision agreed to by any two will set the amount of actual cash value and loss, or if it applies, the replacement cost and loss.\n\n## Each party will:\n\n1. Pay its own appraiser; and\n2. Bear the other expenses of the appraisal and umpire equally.\n\n## N. Mortgage Clause\n\n## 1. The word 'mortgagee' includes trustee.\n\n2. Any loss payable under Coverage A-Building Property will be paid to any mortgagee of whom we have actual notice, as well as any other mortgagee or loss payee determined to exist at the time of loss, and you, as interests appear. If more than one mortgagee is named, the order of payment will be the same as the order of precedence of the mortgages.\n3. If we deny your claim, that denial will not apply to a valid claim of the mortgagee, if the mortgagee:\n- a. Notifies us of any change in the ownership or occupancy, or substantial change in risk of which the mortgagee is aware;\n- b. Pays any premium due under this policy on demand if you have neglected to pay the premium; and\n- c. Submits a signed, sworn proof of loss within 60 days after receiving notice from us of your failure to do so.\n\n4. All of the terms of this policy apply to the mortgagee.\n5. The mortgagee has the right to receive loss payment even if the mortgagee has started foreclosure or similar action on the building.\n6. If we decide to cancel or not renew this policy, it will continue in effect for the benefit of the mortgagee only for 30 days after we notify the mortgagee of the cancellation or non-renewal.\n7. If we pay the mortgagee for any loss and deny payment to you, we are subrogated to all the rights of the mortgagee granted under the mortgage on the property. Subrogation will not impair the right of the mortgagee to recover the full amount of the mortgagee's claim.\n- O. Suit Against Us\n\nYou may not sue us to recover money under this policy unless you have complied with all the requirements of the policy. If you do sue, you must start the suit within one year after the date of the written denial of all or part of the claim, and you must file the suit in the United States District Court of the district in which the insured property was located at the time of loss. This requirement applies to any claim that you may have under this policy and to any dispute that you may have arising out of the handling of any claim under the policy.\n\n- P. Subrogation\n\nWhenever we make a payment for a loss under this policy, we are subrogated to your right to recover for that loss from any other person. That means that your right to recover for a loss that was partly or totally caused by someone else is automatically transferred to us, to the extent that we have paid you for the loss. We may require\n\nyou to acknowledge this transfer in writing. After the loss, you may not give up our right to recover this money or do anything that would prevent us from recovering it. If you make any claim against any person who caused your loss and recover any money, you must pay us back first before you may keep any of that money.\n\n- Q. Continuous Lake Flooding\n1. If an insured building has been flooded by rising lake waters continuously for 90 days or more and it appears reasonably certain that a continuation of this flooding will result in an insured loss to the insured building equal to or greater than the building policy limits plus the deductible or the maximum payable under the policy for any one building loss, we will pay you the lesser of these two amounts without waiting for the further\n\ndamage to occur if you sign a release agreeing:\n\n- a. To make no further claim under this policy;\n- b. Not to seek renewal of this policy;\n- c. Not to apply for any flood insurance under the Act for property at the described location;\n- d. Not to seek a premium refund for current or prior terms.\n\nIf the policy term ends before the insured building has been flooded continuously for 90 days, the provisions of this paragraph Q.1 will apply when the insured building suffers a covered loss before the policy term ends.\n\n2. If your insured building is subject to continuous lake flooding from a closed basin lake, you may elect to file a claim under either paragraph Q.1 above or Q.2 (A 'closed basin lake' is a natural lake from which water leaves primarily through evaporation and whose surface area now exceeds or has exceeded one square mile at any time in the recorded past. Most of the nation's closed basin lakes are in the western half of the United\n\nStates where annual evaporation exceeds annual precipitation and where lake levels and surface areas are subject to considerable fluctuation due to wide variations in the climate. These lakes may overtop their basins on rare occasions.) Under this paragraph Q.2, we will pay your claim as if the building is a total loss even though it has not been continuously inundated for 90 days, subject to the following conditions:\n\n- a. Lake floodwaters must damage or imminently threaten to damage your building.\n- b. Before approval of your claim, you must:\n- (1) Agree to a claim payment that reflects your buying back the salvage on a negotiated basis; and\n- (2) Grant the conservation easement described in FEMA's 'Policy Guidance for Closed Basin Lakes' to be recorded in the office of the local recorder of deeds. FEMA, in consultation with the community in which the property is located, will identify on a map an area or areas\n\nof special consideration (ASC) in which there is a potential for flood damage from continuous lake flooding. FEMA will give the community the agreedupon map showing the ASC. This easement will only apply to that portion of the property in the ASC. It will allow certain agricultural and recreational uses of the land. The only structures it will allow on any portion of the property within the ASC are certain simple agricultural and recreational structures. If any of these allowable structures are insurable buildings under the NFIP and are insured under the NFIP, they will not be eligible for the benefits of this paragraph Q.2. If a U.S. Army Corps of Engineers certified flood control project or otherwise certified flood control project later protects the property, FEMA will, upon request, amend the ASC to remove areas protected by those projects. The restrictions of the easement will then no longer apply to any portion of the\n\n- property removed from the ASC; and\n- (3) Comply with paragraphs Q.1.a through Q.1.d above.\n- c. Within 90 days of approval of your claim, you must move your building to a new location outside the ASC. FEMA will give you an additional 30 days to move if you show there is sufficient reason to extend the time.\n- d. Before the final payment of your claim, you must acquire an elevation certificate and a floodplain development permit from the local floodplain administrator for the new location of your building.\n- e. Before the approval of your claim, the community having jurisdiction over your building must:\n- (1) Adopt a permanent land use ordinance, or a temporary moratorium for a period not to exceed 6 months to be followed immediately by a permanent land use ordinance that is consistent with the provisions specified in the easement required in paragraph Q.2.b above;\n\n- (2) Agree to declare and report any violations of this ordinance to FEMA so that under Section 1316 of the National Flood Insurance Act of 1968, as amended, flood insurance to the building can be denied; and\n- (3) Agree to maintain as deedrestricted, for purposes compatible with open space or agricultural or recreational use only, any affected property the community acquires an interest in. These deed restrictions must be consistent with the provisions of paragraph Q.2.b above, except that, even if a certified project protects the property, the land use restrictions continue to apply if the property was acquired under the Hazard Mitigation Grant Program or the Flood Mitigation Assistance Program. If a non-profit land trust organization receives the property as a donation, that organization must maintain the property as deed-restricted, consistent\n3. with the provisions of paragraph Q2.b above.\n- f. Before the approval of your claim, the affected State must take all action set forth in FEMA's 'Policy Guidance for Closed Basin Lakes.'\n- g. You must have NFIP flood insurance coverage con tinuously in effect from a date established by FEMA until you file a claim under paragraph Q.2. If a subsequent owner buys NFIP insurance that goes into effect within 60 days of the date of transfer of title, any gap in coverage during that 60-day period will not be a violation of this continuous coverage requirement. For the purpose of honoring a claim under this paragraph Q.2, we will not consider to be in effect any increased coverage that became effective after the date established by FEMA. The exception to this is any increased coverage in the amount suggested by your insurer as an inflation adjustment.\n- h. This paragraph Q.2 will be in effect for a community when the FEMA Regional Administrator for the affected region provides\n\n## to the community, in writing, the following:\n\n- (1) Confirmation that the community and the State are in compliance with the conditions in paragraphs Q.2.e and Q.2.f above; and\n\n## (2) The date by which you must have flood insurance in effect.\n\n## R. Loss Settlement\n\n1. Introduction\n\nThis policy provides three methods of settling losses: Replacement Cost, Special Loss Settlement, and Actual Cash Value. Each method is used for a different type of property, as explained in paragraphs a-c below.\n\n- a. Replacement Cost Loss Set tlement , described in R.2 below, applies to a singlefamily dwelling provided:\n\n## (1) It is your principal residence; and\n\n- (2) At the time of loss, the amount of insurance in this policy that applies to the dwelling is 80 percent or more of its full replacement cost immediately before the loss, or is the maximum amount of insurance available under the NFIP.\n- b. Special Loss Settlement , described in R.3 below, applies to a single-family dwelling that is a manufactured or mobile home or a travel trailer.\n- c. Actual Cash Value Loss Settlement applies to a single-family dwelling not subject to replacement cost or special loss settlement, and to the property listed in R.4 below.\n2. Replacement Cost Loss Settlement\n\nThe following loss settlement conditions apply to a single-family dwelling described in R.1.a above:\n\n- a. We will pay to repair or replace the damaged dwelling after application of the deductible and without deduction for depreciation, but not more than the least of the following amounts:\n- (1) The building limit of liability shown on your Declarations Page;\n- (2) The replacement cost of that part of the dwelling damaged, with materials of like kind and quality and for like use; or\n- (3) The necessary amount actually spent to repair or replace the damaged part of the dwelling for like use.\n- b. If the dwelling is rebuilt at a new location, the cost described above is limited to the cost that would have been incurred if the dwelling had been rebuilt at its former location.\n- c. When the full cost of repair or replacement is more than $1,000, or more than 5 percent of the whole amount of insurance that applies to the dwelling, we will not be liable for any loss under R.2.a above or R.4.a.2 below unless and until actual repair or replacement is completed.\n- d. You may disregard the replacement cost conditions above and make claim under this policy for loss to dwellings on an actual cash value basis. You may then make claim for any additional liability according to R.2.a, b, and c above, provided you notify us of your intent to do so within 180 days after the date of loss.\n- e. If the community in which your dwelling is located has been converted from the Emergency Program to the Regular Program during the current policy term, then we will consider the maximum amount of available NFIP insurance to be the amount that was available at the beginning of the current policy term.\n3. Special Loss Settlement\n- a. The following loss settlement conditions apply to a single-family dwelling that:\n- (1) is a manufactured or mobile home or a travel trailer, as defined in II.C.6.b and c;\n\n- (2) is at least 16 feet wide when fully assembled and has an area of at least 600 square feet within its perimeter walls when fully assembled; and\n- (3) is your principal residence as specified in R.1.a.1 above.\n- b. If such a dwelling is totally destroyed or damaged to such an extent that, in our judgment, it is not economically feasible to repair, at least to its pre-damage condition, we will, at our discretion pay the least of the following amounts:\n- (1) The lesser of the replacement cost of the dwelling or 1.5 times the actual cash value; or\n- (2) The building limit of liability shown on your Declarations Page.\n- c. If such a dwelling is partially damaged and, in our judgment, it is economically feasible to repair it to its pre-damage condition, we will settle the loss according to the Replacement Cost conditions in R.2 above.\n\n## 4. Actual Cash Value Loss Settlement\n\nThe types of property noted below are subject to actual cash value (or in the case of R.4.a.2., below, proportional) loss settlement.\n\n- a. A dwelling, at the time of loss, when the amount of insurance on the dwelling is both less than 80 percent of its full replacement cost immediately before the loss and less than the maximum amount of insurance available under the NFIP. In that case, we will pay the greater of the following amounts, but not more than the amount of insurance that applies to that dwelling:\n- (1) The actual cash value, as defined in II.C.2, of the damaged part of the dwelling; or\n- (2) A proportion of the cost to repair or replace the damaged part of the dwelling, without deduction for physical depreciation and after application of the deductible.\n\nThis proportion is determined as follows: If 80 percent of the full replacement cost of the dwelling is less than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the amount of insurance that represents 80 percent of its full replacement cost. But if 80 percent of the full replacement cost of the dwelling is greater than the maximum amount of insurance available under the NFIP, then the proportion is determined by dividing the actual amount of insurance on the dwelling by the maximum amount of insurance available under the NFIP.\n\n- b. A two-, three-, or four-family dwelling.\n- c. A unit that is not used exclusively for singlefamily dwelling purposes.\n- d. Detached garages.\n- e. Personal property.\n- f. Appliances, carpets, and carpet pads.\n- g. Outdoor awnings, outdoor antennas or aerials of any type, and other outdoor equipment.\n- h. Any property insured under this policy that is abandoned after a loss and remains as debris anywhere on the described location.\n- i. A dwelling that is not your principal residence.\n\n## 5. Amount of Insurance Required\n\nTo determine the amount of insurance required for a dwelling immediately before the loss, we do not include the value of:\n\n- a. Footings, foundations, piers, or any other structures or devices that are below the undersurface of the lowest basement floor and support all or part of the dwelling;\n- b. Those supports listed in R.5.a above, that are below the surface of the ground inside the foundation walls if there is no basement; and\n- c. Excavations and underground flues, pipes, wiring, and drains.\n\nNote: The Coverage D-Increased Cost of Compliance limit of liability is not included in the determination of the amount of insurance required.\n\n## VIII. POLICY NULLIFICATION, CANCELLATION, AND NON-RENEWAL\n\n- A. Policy Nullification for Fraud, Misrepresentation, or Making False Statements\n1. With respect to all insureds under this policy, this policy is void and has no legal force and effect if at any time, before or after a loss, you or any other insured or your agent have, with respect to this policy or any other NFIP insurance:\n- a. Concealed or misrepresented any material fact or circumstance;\n- b. Engaged in fraudulent conduct; or\n- c. Made false statements.\n2. Policies voided under A.1 cannot be renewed or replaced by a new NFIP policy.\n3. Policies are void as of the date the acts described in A.1 above were committed.\n4. Fines, civil penalties, and imprisonment under applicable Federal laws may also apply to the acts of fraud or concealment described above.\n- B. Policy Nullification for Reasons Other Than Fraud\n1. This policy is void from its inception, and has no legal force or effect, if:\n- a. The property listed on the application is located in a community that was not participating in the NFIP on this policy's inception date and did not join or reenter the program during the policy term and before the loss occurred;\n- b. The property listed on the application is otherwise not eligible for coverage under the NFIP at the time of the initial application;\n- c. You never had an insurable interest in the property listed on the application;\n- d. You provided an agent with an application and payment, but the payment did not clear; or\n- e. We receive notice from you, prior to the policy effective date, that you have determined not to take the policy and you are not subject to a requirement to obtain and maintain flood insurance pursuant to any statute, regulation, or contract.\n2. In such cases, you will be entitled to a full refund of all premium, fees, and surcharges received. However, if a claim was paid for a policy that is void, the claim payment must be returned to FEMA or offset from the premiums to be refunded before the refund will be processed.\n\n## C. Cancellation of the Policy by You\n\n1. You may cancel this policy in accordance with the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n2. If you cancel this policy, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n## D. Cancellation of the Policy by Us\n\n1. Cancellation for Underpayment of Amounts Owed on Policy. This policy will be cancelled, pursuant to VII.D.2, if it is determined that the premium amount you paid is not sufficient to buy any amount of coverage, and you do not pay the additional amount of premium owed to increase the coverage to the originally requested amount within the required time period.\n\n## 2. Cancellation Due to Lack of an Insurable Interest.\n\n- a. If you no longer have an insurable interest in the insured property, we will cancel this policy. You will cease to have an insurable interest if:\n- (1) For building coverage, the building was sold, destroyed, or removed.\n- (2) For contents coverage, the contents were sold or transferred ownership, or the contents were\n\ncompletely removed from the described location.\n\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the applicable rules and regulations of the NFIP.\n\n## 3. Cancellation of Duplicate Policies\n\n- a. Except as allowed under Article I.G, your property may not be insured by more than one NFIP policy, and payment for damages to your property will only be made under one policy.\n- b. Except as allowed under Article I.G, if the property is insured by more than one NFIP policy, we will cancel all but one of the policies. The policy, or policies, will be selected for cancellation in accordance with 44 CFR 62.5 and the applicable rules and guidance of the NFIP.\n- c. If this policy is cancelled pursuant to VIII.D.4.b, you may be entitled to a full or partial refund of premium, surcharges, or fees under the terms and conditions of this policy and the applicable rules and regulations of the NFIP.\n\n## 4. Cancellation Due to Physical Alteration of Property\n\n- a. If the insured building has been physically altered in such a manner that it is no longer eligible for flood insurance coverage, we will cancel this policy.\n\n## of this policy and the applicable rules and regulations of the NFIP.\n\n## E. Non-Renewal of the Policy by Us\n\nYour policy will not be renewed if:\n\n1. The community where your insured property is located is suspended or stops participating in the NFIP;\n- b. If your policy is cancelled for this reason, you may be entitled to a partial refund of premium under the terms and conditions\n2. Your building is otherwise ineligible for flood insurance under the Act;\n3. You have failed to provide the information we requested for the purpose of rating the policy within the required deadline.\n\n## IX. LIBERALIZATION CLAUSE\n\nIf we make a change that broadens your coverage under this edition of our policy, but does not require any additional premium, then that change will automatically apply to your insurance as of the date we implement the change, provided that this implementation date falls within 60 days before or during the policy term stated on the Declarations Page.\n\n## X. WHAT LAW GOVERNS\n\nThis policy and all disputes arising from the insurer's policy issuance, policy administration, or the handling of any claim under the policy are governed exclusively by the flood insurance regulations issued by FEMA, the National Flood Insurance Act of 1968, as amended (42 U.S.C. 4001, et seq.), and Federal common law.\n\nIn Witness Whereof, we have signed this policy below and hereby enter into this Insurance Agreement.\n\n<!-- image -->\n\nDeputy Associate Administrator Federal Insurance and Mitigation Administration",
"document": {
"schema_name": "DoclingDocument",
"version": "1.10.0",
@@ -480,13 +480,13 @@
"$ref": "#/texts/402"
},
{
- "$ref": "#/groups/43"
+ "$ref": "#/texts/403"
},
{
"$ref": "#/texts/404"
},
{
- "$ref": "#/groups/44"
+ "$ref": "#/groups/43"
},
{
"$ref": "#/texts/407"
@@ -498,13 +498,13 @@
"$ref": "#/texts/409"
},
{
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
{
"$ref": "#/texts/419"
},
{
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
{
"$ref": "#/texts/427"
@@ -519,13 +519,13 @@
"$ref": "#/texts/430"
},
{
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
{
"$ref": "#/texts/439"
},
{
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
{
"$ref": "#/texts/449"
@@ -540,7 +540,7 @@
"$ref": "#/texts/452"
},
{
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
{
"$ref": "#/texts/461"
@@ -564,7 +564,7 @@
"$ref": "#/texts/467"
},
{
- "$ref": "#/groups/50"
+ "$ref": "#/groups/49"
},
{
"$ref": "#/texts/470"
@@ -573,7 +573,7 @@
"$ref": "#/texts/471"
},
{
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
{
"$ref": "#/texts/477"
@@ -582,13 +582,13 @@
"$ref": "#/texts/478"
},
{
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
{
"$ref": "#/texts/484"
},
{
- "$ref": "#/groups/53"
+ "$ref": "#/groups/52"
},
{
"$ref": "#/texts/486"
@@ -597,7 +597,7 @@
"$ref": "#/texts/487"
},
{
- "$ref": "#/groups/54"
+ "$ref": "#/groups/53"
},
{
"$ref": "#/texts/490"
@@ -609,19 +609,19 @@
"$ref": "#/texts/492"
},
{
- "$ref": "#/groups/55"
+ "$ref": "#/groups/54"
},
{
"$ref": "#/texts/497"
},
{
- "$ref": "#/groups/56"
+ "$ref": "#/groups/55"
},
{
"$ref": "#/texts/499"
},
{
- "$ref": "#/groups/57"
+ "$ref": "#/groups/56"
},
{
"$ref": "#/texts/504"
@@ -633,7 +633,7 @@
"$ref": "#/texts/506"
},
{
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
{
"$ref": "#/texts/513"
@@ -642,7 +642,7 @@
"$ref": "#/texts/514"
},
{
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
{
"$ref": "#/texts/521"
@@ -654,7 +654,7 @@
"$ref": "#/texts/523"
},
{
- "$ref": "#/groups/60"
+ "$ref": "#/groups/59"
},
{
"$ref": "#/texts/525"
@@ -663,25 +663,25 @@
"$ref": "#/texts/526"
},
{
- "$ref": "#/groups/61"
+ "$ref": "#/groups/60"
},
{
"$ref": "#/texts/528"
},
{
- "$ref": "#/groups/62"
+ "$ref": "#/groups/61"
},
{
"$ref": "#/texts/530"
},
{
- "$ref": "#/groups/63"
+ "$ref": "#/groups/62"
},
{
"$ref": "#/texts/535"
},
{
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
{
"$ref": "#/texts/547"
@@ -690,7 +690,7 @@
"$ref": "#/texts/548"
},
{
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
{
"$ref": "#/texts/555"
@@ -699,13 +699,13 @@
"$ref": "#/texts/556"
},
{
- "$ref": "#/groups/66"
+ "$ref": "#/groups/65"
},
{
"$ref": "#/texts/560"
},
{
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
{
"$ref": "#/texts/569"
@@ -714,7 +714,7 @@
"$ref": "#/texts/570"
},
{
- "$ref": "#/groups/68"
+ "$ref": "#/groups/67"
},
{
"$ref": "#/texts/574"
@@ -729,7 +729,7 @@
"$ref": "#/texts/577"
},
{
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
{
"$ref": "#/texts/594"
@@ -741,31 +741,31 @@
"$ref": "#/texts/596"
},
{
- "$ref": "#/groups/70"
+ "$ref": "#/groups/69"
},
{
"$ref": "#/texts/599"
},
{
- "$ref": "#/groups/71"
+ "$ref": "#/groups/70"
},
{
"$ref": "#/texts/601"
},
{
- "$ref": "#/groups/72"
+ "$ref": "#/groups/71"
},
{
"$ref": "#/texts/605"
},
{
- "$ref": "#/groups/73"
+ "$ref": "#/groups/72"
},
{
"$ref": "#/texts/607"
},
{
- "$ref": "#/groups/74"
+ "$ref": "#/groups/73"
},
{
"$ref": "#/texts/611"
@@ -777,7 +777,7 @@
"$ref": "#/texts/613"
},
{
- "$ref": "#/groups/75"
+ "$ref": "#/groups/74"
},
{
"$ref": "#/texts/615"
@@ -789,7 +789,7 @@
"$ref": "#/texts/617"
},
{
- "$ref": "#/groups/76"
+ "$ref": "#/groups/75"
},
{
"$ref": "#/texts/622"
@@ -810,7 +810,7 @@
"$ref": "#/pictures/1"
},
{
- "$ref": "#/groups/77"
+ "$ref": "#/groups/76"
},
{
"$ref": "#/texts/628"
@@ -2190,20 +2190,6 @@
"parent": {
"$ref": "#/body"
},
- "children": [
- {
- "$ref": "#/texts/403"
- }
- ],
- "content_layer": "body",
- "name": "list",
- "label": "list"
- },
- {
- "self_ref": "#/groups/44",
- "parent": {
- "$ref": "#/body"
- },
"children": [
{
"$ref": "#/texts/405"
@@ -2217,7 +2203,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/45",
+ "self_ref": "#/groups/44",
"parent": {
"$ref": "#/body"
},
@@ -2255,7 +2241,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/46",
+ "self_ref": "#/groups/45",
"parent": {
"$ref": "#/body"
},
@@ -2287,7 +2273,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/47",
+ "self_ref": "#/groups/46",
"parent": {
"$ref": "#/body"
},
@@ -2322,7 +2308,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/48",
+ "self_ref": "#/groups/47",
"parent": {
"$ref": "#/body"
},
@@ -2360,7 +2346,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/49",
+ "self_ref": "#/groups/48",
"parent": {
"$ref": "#/body"
},
@@ -2395,7 +2381,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/50",
+ "self_ref": "#/groups/49",
"parent": {
"$ref": "#/body"
},
@@ -2412,7 +2398,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/51",
+ "self_ref": "#/groups/50",
"parent": {
"$ref": "#/body"
},
@@ -2438,7 +2424,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/52",
+ "self_ref": "#/groups/51",
"parent": {
"$ref": "#/body"
},
@@ -2464,7 +2450,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/53",
+ "self_ref": "#/groups/52",
"parent": {
"$ref": "#/body"
},
@@ -2478,7 +2464,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/54",
+ "self_ref": "#/groups/53",
"parent": {
"$ref": "#/body"
},
@@ -2495,7 +2481,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/55",
+ "self_ref": "#/groups/54",
"parent": {
"$ref": "#/body"
},
@@ -2518,7 +2504,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/56",
+ "self_ref": "#/groups/55",
"parent": {
"$ref": "#/body"
},
@@ -2532,7 +2518,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/57",
+ "self_ref": "#/groups/56",
"parent": {
"$ref": "#/body"
},
@@ -2555,7 +2541,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/58",
+ "self_ref": "#/groups/57",
"parent": {
"$ref": "#/body"
},
@@ -2584,7 +2570,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/59",
+ "self_ref": "#/groups/58",
"parent": {
"$ref": "#/body"
},
@@ -2613,7 +2599,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/60",
+ "self_ref": "#/groups/59",
"parent": {
"$ref": "#/body"
},
@@ -2627,7 +2613,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/61",
+ "self_ref": "#/groups/60",
"parent": {
"$ref": "#/body"
},
@@ -2641,7 +2627,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/62",
+ "self_ref": "#/groups/61",
"parent": {
"$ref": "#/body"
},
@@ -2655,7 +2641,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/63",
+ "self_ref": "#/groups/62",
"parent": {
"$ref": "#/body"
},
@@ -2678,7 +2664,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/64",
+ "self_ref": "#/groups/63",
"parent": {
"$ref": "#/body"
},
@@ -2722,7 +2708,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/65",
+ "self_ref": "#/groups/64",
"parent": {
"$ref": "#/body"
},
@@ -2751,7 +2737,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/66",
+ "self_ref": "#/groups/65",
"parent": {
"$ref": "#/body"
},
@@ -2771,7 +2757,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/67",
+ "self_ref": "#/groups/66",
"parent": {
"$ref": "#/body"
},
@@ -2806,7 +2792,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/68",
+ "self_ref": "#/groups/67",
"parent": {
"$ref": "#/body"
},
@@ -2826,7 +2812,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/69",
+ "self_ref": "#/groups/68",
"parent": {
"$ref": "#/body"
},
@@ -2885,7 +2871,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/70",
+ "self_ref": "#/groups/69",
"parent": {
"$ref": "#/body"
},
@@ -2902,7 +2888,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/71",
+ "self_ref": "#/groups/70",
"parent": {
"$ref": "#/body"
},
@@ -2916,7 +2902,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/72",
+ "self_ref": "#/groups/71",
"parent": {
"$ref": "#/body"
},
@@ -2936,7 +2922,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/73",
+ "self_ref": "#/groups/72",
"parent": {
"$ref": "#/body"
},
@@ -2950,7 +2936,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/74",
+ "self_ref": "#/groups/73",
"parent": {
"$ref": "#/body"
},
@@ -2970,7 +2956,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/75",
+ "self_ref": "#/groups/74",
"parent": {
"$ref": "#/body"
},
@@ -2984,7 +2970,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/76",
+ "self_ref": "#/groups/75",
"parent": {
"$ref": "#/body"
},
@@ -3007,7 +2993,7 @@
"label": "list"
},
{
- "self_ref": "#/groups/77",
+ "self_ref": "#/groups/76",
"parent": {
"$ref": "#/body"
},
@@ -14551,11 +14537,11 @@
{
"self_ref": "#/texts/403",
"parent": {
- "$ref": "#/groups/43"
+ "$ref": "#/body"
},
"children": [],
"content_layer": "body",
- "label": "list_item",
+ "label": "text",
"prov": [
{
"page_no": 20,
@@ -14573,9 +14559,7 @@
}
],
"orig": "G. Requirements in Case of Loss",
- "text": "Requirements in Case of Loss",
- "enumerated": true,
- "marker": "G."
+ "text": "G. Requirements in Case of Loss"
},
{
"self_ref": "#/texts/404",
@@ -14607,7 +14591,7 @@
{
"self_ref": "#/texts/405",
"parent": {
- "$ref": "#/groups/44"
+ "$ref": "#/groups/43"
},
"children": [],
"content_layer": "body",
@@ -14636,7 +14620,7 @@
{
"self_ref": "#/texts/406",
"parent": {
- "$ref": "#/groups/44"
+ "$ref": "#/groups/43"
},
"children": [],
"content_layer": "body",
@@ -14746,7 +14730,7 @@
{
"self_ref": "#/texts/410",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14775,7 +14759,7 @@
{
"self_ref": "#/texts/411",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14804,7 +14788,7 @@
{
"self_ref": "#/texts/412",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14833,7 +14817,7 @@
{
"self_ref": "#/texts/413",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14862,7 +14846,7 @@
{
"self_ref": "#/texts/414",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14891,7 +14875,7 @@
{
"self_ref": "#/texts/415",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14920,7 +14904,7 @@
{
"self_ref": "#/texts/416",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14949,7 +14933,7 @@
{
"self_ref": "#/texts/417",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -14978,7 +14962,7 @@
{
"self_ref": "#/texts/418",
"parent": {
- "$ref": "#/groups/45"
+ "$ref": "#/groups/44"
},
"children": [],
"content_layer": "body",
@@ -15034,7 +15018,7 @@
{
"self_ref": "#/texts/420",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15063,7 +15047,7 @@
{
"self_ref": "#/texts/421",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15092,7 +15076,7 @@
{
"self_ref": "#/texts/422",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15121,7 +15105,7 @@
{
"self_ref": "#/texts/423",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15150,7 +15134,7 @@
{
"self_ref": "#/texts/424",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15179,7 +15163,7 @@
{
"self_ref": "#/texts/425",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15208,7 +15192,7 @@
{
"self_ref": "#/texts/426",
"parent": {
- "$ref": "#/groups/46"
+ "$ref": "#/groups/45"
},
"children": [],
"content_layer": "body",
@@ -15345,7 +15329,7 @@
{
"self_ref": "#/texts/431",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15374,7 +15358,7 @@
{
"self_ref": "#/texts/432",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15403,7 +15387,7 @@
{
"self_ref": "#/texts/433",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15432,7 +15416,7 @@
{
"self_ref": "#/texts/434",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15461,7 +15445,7 @@
{
"self_ref": "#/texts/435",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15490,7 +15474,7 @@
{
"self_ref": "#/texts/436",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15519,7 +15503,7 @@
{
"self_ref": "#/texts/437",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15548,7 +15532,7 @@
{
"self_ref": "#/texts/438",
"parent": {
- "$ref": "#/groups/47"
+ "$ref": "#/groups/46"
},
"children": [],
"content_layer": "body",
@@ -15604,7 +15588,7 @@
{
"self_ref": "#/texts/440",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15633,7 +15617,7 @@
{
"self_ref": "#/texts/441",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15662,7 +15646,7 @@
{
"self_ref": "#/texts/442",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15691,7 +15675,7 @@
{
"self_ref": "#/texts/443",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15720,7 +15704,7 @@
{
"self_ref": "#/texts/444",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15749,7 +15733,7 @@
{
"self_ref": "#/texts/445",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15778,7 +15762,7 @@
{
"self_ref": "#/texts/446",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15807,7 +15791,7 @@
{
"self_ref": "#/texts/447",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15836,7 +15820,7 @@
{
"self_ref": "#/texts/448",
"parent": {
- "$ref": "#/groups/48"
+ "$ref": "#/groups/47"
},
"children": [],
"content_layer": "body",
@@ -15974,7 +15958,7 @@
{
"self_ref": "#/texts/453",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16003,7 +15987,7 @@
{
"self_ref": "#/texts/454",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16032,7 +16016,7 @@
{
"self_ref": "#/texts/455",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16061,7 +16045,7 @@
{
"self_ref": "#/texts/456",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16090,7 +16074,7 @@
{
"self_ref": "#/texts/457",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16119,7 +16103,7 @@
{
"self_ref": "#/texts/458",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16148,7 +16132,7 @@
{
"self_ref": "#/texts/459",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16177,7 +16161,7 @@
{
"self_ref": "#/texts/460",
"parent": {
- "$ref": "#/groups/49"
+ "$ref": "#/groups/48"
},
"children": [],
"content_layer": "body",
@@ -16399,7 +16383,7 @@
{
"self_ref": "#/texts/468",
"parent": {
- "$ref": "#/groups/50"
+ "$ref": "#/groups/49"
},
"children": [],
"content_layer": "body",
@@ -16428,7 +16412,7 @@
{
"self_ref": "#/texts/469",
"parent": {
- "$ref": "#/groups/50"
+ "$ref": "#/groups/49"
},
"children": [],
"content_layer": "body",
@@ -16513,7 +16497,7 @@
{
"self_ref": "#/texts/472",
"parent": {
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
"children": [],
"content_layer": "body",
@@ -16542,7 +16526,7 @@
{
"self_ref": "#/texts/473",
"parent": {
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
"children": [],
"content_layer": "body",
@@ -16571,7 +16555,7 @@
{
"self_ref": "#/texts/474",
"parent": {
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
"children": [],
"content_layer": "body",
@@ -16600,7 +16584,7 @@
{
"self_ref": "#/texts/475",
"parent": {
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
"children": [],
"content_layer": "body",
@@ -16629,7 +16613,7 @@
{
"self_ref": "#/texts/476",
"parent": {
- "$ref": "#/groups/51"
+ "$ref": "#/groups/50"
},
"children": [],
"content_layer": "body",
@@ -16712,7 +16696,7 @@
{
"self_ref": "#/texts/479",
"parent": {
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
"children": [],
"content_layer": "body",
@@ -16741,7 +16725,7 @@
{
"self_ref": "#/texts/480",
"parent": {
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
"children": [],
"content_layer": "body",
@@ -16770,7 +16754,7 @@
{
"self_ref": "#/texts/481",
"parent": {
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
"children": [],
"content_layer": "body",
@@ -16799,7 +16783,7 @@
{
"self_ref": "#/texts/482",
"parent": {
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
"children": [],
"content_layer": "body",
@@ -16828,7 +16812,7 @@
{
"self_ref": "#/texts/483",
"parent": {
- "$ref": "#/groups/52"
+ "$ref": "#/groups/51"
},
"children": [],
"content_layer": "body",
@@ -16898,7 +16882,7 @@
{
"self_ref": "#/texts/485",
"parent": {
- "$ref": "#/groups/53"
+ "$ref": "#/groups/52"
},
"children": [],
"content_layer": "body",
@@ -16981,7 +16965,7 @@
{
"self_ref": "#/texts/488",
"parent": {
- "$ref": "#/groups/54"
+ "$ref": "#/groups/53"
},
"children": [],
"content_layer": "body",
@@ -17010,7 +16994,7 @@
{
"self_ref": "#/texts/489",
"parent": {
- "$ref": "#/groups/54"
+ "$ref": "#/groups/53"
},
"children": [],
"content_layer": "body",
@@ -17120,7 +17104,7 @@
{
"self_ref": "#/texts/493",
"parent": {
- "$ref": "#/groups/55"
+ "$ref": "#/groups/54"
},
"children": [],
"content_layer": "body",
@@ -17149,7 +17133,7 @@
{
"self_ref": "#/texts/494",
"parent": {
- "$ref": "#/groups/55"
+ "$ref": "#/groups/54"
},
"children": [],
"content_layer": "body",
@@ -17178,7 +17162,7 @@
{
"self_ref": "#/texts/495",
"parent": {
- "$ref": "#/groups/55"
+ "$ref": "#/groups/54"
},
"children": [],
"content_layer": "body",
@@ -17207,7 +17191,7 @@
{
"self_ref": "#/texts/496",
"parent": {
- "$ref": "#/groups/55"
+ "$ref": "#/groups/54"
},
"children": [],
"content_layer": "body",
@@ -17263,7 +17247,7 @@
{
"self_ref": "#/texts/498",
"parent": {
- "$ref": "#/groups/56"
+ "$ref": "#/groups/55"
},
"children": [],
"content_layer": "body",
@@ -17319,7 +17303,7 @@
{
"self_ref": "#/texts/500",
"parent": {
- "$ref": "#/groups/57"
+ "$ref": "#/groups/56"
},
"children": [],
"content_layer": "body",
@@ -17348,7 +17332,7 @@
{
"self_ref": "#/texts/501",
"parent": {
- "$ref": "#/groups/57"
+ "$ref": "#/groups/56"
},
"children": [],
"content_layer": "body",
@@ -17377,7 +17361,7 @@
{
"self_ref": "#/texts/502",
"parent": {
- "$ref": "#/groups/57"
+ "$ref": "#/groups/56"
},
"children": [],
"content_layer": "body",
@@ -17406,7 +17390,7 @@
{
"self_ref": "#/texts/503",
"parent": {
- "$ref": "#/groups/57"
+ "$ref": "#/groups/56"
},
"children": [],
"content_layer": "body",
@@ -17516,7 +17500,7 @@
{
"self_ref": "#/texts/507",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17545,7 +17529,7 @@
{
"self_ref": "#/texts/508",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17574,7 +17558,7 @@
{
"self_ref": "#/texts/509",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17603,7 +17587,7 @@
{
"self_ref": "#/texts/510",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17632,7 +17616,7 @@
{
"self_ref": "#/texts/511",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17661,7 +17645,7 @@
{
"self_ref": "#/texts/512",
"parent": {
- "$ref": "#/groups/58"
+ "$ref": "#/groups/57"
},
"children": [],
"content_layer": "body",
@@ -17744,7 +17728,7 @@
{
"self_ref": "#/texts/515",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -17773,7 +17757,7 @@
{
"self_ref": "#/texts/516",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -17802,7 +17786,7 @@
{
"self_ref": "#/texts/517",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -17831,7 +17815,7 @@
{
"self_ref": "#/texts/518",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -17860,7 +17844,7 @@
{
"self_ref": "#/texts/519",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -17889,7 +17873,7 @@
{
"self_ref": "#/texts/520",
"parent": {
- "$ref": "#/groups/59"
+ "$ref": "#/groups/58"
},
"children": [],
"content_layer": "body",
@@ -18000,7 +17984,7 @@
{
"self_ref": "#/texts/524",
"parent": {
- "$ref": "#/groups/60"
+ "$ref": "#/groups/59"
},
"children": [],
"content_layer": "body",
@@ -18085,7 +18069,7 @@
{
"self_ref": "#/texts/527",
"parent": {
- "$ref": "#/groups/61"
+ "$ref": "#/groups/60"
},
"children": [],
"content_layer": "body",
@@ -18141,7 +18125,7 @@
{
"self_ref": "#/texts/529",
"parent": {
- "$ref": "#/groups/62"
+ "$ref": "#/groups/61"
},
"children": [],
"content_layer": "body",
@@ -18198,7 +18182,7 @@
{
"self_ref": "#/texts/531",
"parent": {
- "$ref": "#/groups/63"
+ "$ref": "#/groups/62"
},
"children": [],
"content_layer": "body",
@@ -18227,7 +18211,7 @@
{
"self_ref": "#/texts/532",
"parent": {
- "$ref": "#/groups/63"
+ "$ref": "#/groups/62"
},
"children": [],
"content_layer": "body",
@@ -18256,7 +18240,7 @@
{
"self_ref": "#/texts/533",
"parent": {
- "$ref": "#/groups/63"
+ "$ref": "#/groups/62"
},
"children": [],
"content_layer": "body",
@@ -18285,7 +18269,7 @@
{
"self_ref": "#/texts/534",
"parent": {
- "$ref": "#/groups/63"
+ "$ref": "#/groups/62"
},
"children": [],
"content_layer": "body",
@@ -18341,7 +18325,7 @@
{
"self_ref": "#/texts/536",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18370,7 +18354,7 @@
{
"self_ref": "#/texts/537",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18399,7 +18383,7 @@
{
"self_ref": "#/texts/538",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18428,7 +18412,7 @@
{
"self_ref": "#/texts/539",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18457,7 +18441,7 @@
{
"self_ref": "#/texts/540",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18486,7 +18470,7 @@
{
"self_ref": "#/texts/541",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18515,7 +18499,7 @@
{
"self_ref": "#/texts/542",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18544,7 +18528,7 @@
{
"self_ref": "#/texts/543",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18573,7 +18557,7 @@
{
"self_ref": "#/texts/544",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18602,7 +18586,7 @@
{
"self_ref": "#/texts/545",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18631,7 +18615,7 @@
{
"self_ref": "#/texts/546",
"parent": {
- "$ref": "#/groups/64"
+ "$ref": "#/groups/63"
},
"children": [],
"content_layer": "body",
@@ -18714,7 +18698,7 @@
{
"self_ref": "#/texts/549",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18743,7 +18727,7 @@
{
"self_ref": "#/texts/550",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18772,7 +18756,7 @@
{
"self_ref": "#/texts/551",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18801,7 +18785,7 @@
{
"self_ref": "#/texts/552",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18830,7 +18814,7 @@
{
"self_ref": "#/texts/553",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18859,7 +18843,7 @@
{
"self_ref": "#/texts/554",
"parent": {
- "$ref": "#/groups/65"
+ "$ref": "#/groups/64"
},
"children": [],
"content_layer": "body",
@@ -18943,7 +18927,7 @@
{
"self_ref": "#/texts/557",
"parent": {
- "$ref": "#/groups/66"
+ "$ref": "#/groups/65"
},
"children": [],
"content_layer": "body",
@@ -18972,7 +18956,7 @@
{
"self_ref": "#/texts/558",
"parent": {
- "$ref": "#/groups/66"
+ "$ref": "#/groups/65"
},
"children": [],
"content_layer": "body",
@@ -19001,7 +18985,7 @@
{
"self_ref": "#/texts/559",
"parent": {
- "$ref": "#/groups/66"
+ "$ref": "#/groups/65"
},
"children": [],
"content_layer": "body",
@@ -19071,7 +19055,7 @@
{
"self_ref": "#/texts/561",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19100,7 +19084,7 @@
{
"self_ref": "#/texts/562",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19129,7 +19113,7 @@
{
"self_ref": "#/texts/563",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19158,7 +19142,7 @@
{
"self_ref": "#/texts/564",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19187,7 +19171,7 @@
{
"self_ref": "#/texts/565",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19216,7 +19200,7 @@
{
"self_ref": "#/texts/566",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19245,7 +19229,7 @@
{
"self_ref": "#/texts/567",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19274,7 +19258,7 @@
{
"self_ref": "#/texts/568",
"parent": {
- "$ref": "#/groups/67"
+ "$ref": "#/groups/66"
},
"children": [],
"content_layer": "body",
@@ -19358,7 +19342,7 @@
{
"self_ref": "#/texts/571",
"parent": {
- "$ref": "#/groups/68"
+ "$ref": "#/groups/67"
},
"children": [],
"content_layer": "body",
@@ -19387,7 +19371,7 @@
{
"self_ref": "#/texts/572",
"parent": {
- "$ref": "#/groups/68"
+ "$ref": "#/groups/67"
},
"children": [],
"content_layer": "body",
@@ -19416,7 +19400,7 @@
{
"self_ref": "#/texts/573",
"parent": {
- "$ref": "#/groups/68"
+ "$ref": "#/groups/67"
},
"children": [],
"content_layer": "body",
@@ -19554,7 +19538,7 @@
{
"self_ref": "#/texts/578",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19583,7 +19567,7 @@
{
"self_ref": "#/texts/579",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19612,7 +19596,7 @@
{
"self_ref": "#/texts/580",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19641,7 +19625,7 @@
{
"self_ref": "#/texts/581",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19670,7 +19654,7 @@
{
"self_ref": "#/texts/582",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19699,7 +19683,7 @@
{
"self_ref": "#/texts/583",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19728,7 +19712,7 @@
{
"self_ref": "#/texts/584",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19757,7 +19741,7 @@
{
"self_ref": "#/texts/585",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19786,7 +19770,7 @@
{
"self_ref": "#/texts/586",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19815,7 +19799,7 @@
{
"self_ref": "#/texts/587",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19844,7 +19828,7 @@
{
"self_ref": "#/texts/588",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19873,7 +19857,7 @@
{
"self_ref": "#/texts/589",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19902,7 +19886,7 @@
{
"self_ref": "#/texts/590",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19931,7 +19915,7 @@
{
"self_ref": "#/texts/591",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19960,7 +19944,7 @@
{
"self_ref": "#/texts/592",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -19989,7 +19973,7 @@
{
"self_ref": "#/texts/593",
"parent": {
- "$ref": "#/groups/69"
+ "$ref": "#/groups/68"
},
"children": [],
"content_layer": "body",
@@ -20100,7 +20084,7 @@
{
"self_ref": "#/texts/597",
"parent": {
- "$ref": "#/groups/70"
+ "$ref": "#/groups/69"
},
"children": [],
"content_layer": "body",
@@ -20129,7 +20113,7 @@
{
"self_ref": "#/texts/598",
"parent": {
- "$ref": "#/groups/70"
+ "$ref": "#/groups/69"
},
"children": [],
"content_layer": "body",
@@ -20186,7 +20170,7 @@
{
"self_ref": "#/texts/600",
"parent": {
- "$ref": "#/groups/71"
+ "$ref": "#/groups/70"
},
"children": [],
"content_layer": "body",
@@ -20243,7 +20227,7 @@
{
"self_ref": "#/texts/602",
"parent": {
- "$ref": "#/groups/72"
+ "$ref": "#/groups/71"
},
"children": [],
"content_layer": "body",
@@ -20272,7 +20256,7 @@
{
"self_ref": "#/texts/603",
"parent": {
- "$ref": "#/groups/72"
+ "$ref": "#/groups/71"
},
"children": [],
"content_layer": "body",
@@ -20301,7 +20285,7 @@
{
"self_ref": "#/texts/604",
"parent": {
- "$ref": "#/groups/72"
+ "$ref": "#/groups/71"
},
"children": [],
"content_layer": "body",
@@ -20357,7 +20341,7 @@
{
"self_ref": "#/texts/606",
"parent": {
- "$ref": "#/groups/73"
+ "$ref": "#/groups/72"
},
"children": [],
"content_layer": "body",
@@ -20414,7 +20398,7 @@
{
"self_ref": "#/texts/608",
"parent": {
- "$ref": "#/groups/74"
+ "$ref": "#/groups/73"
},
"children": [],
"content_layer": "body",
@@ -20443,7 +20427,7 @@
{
"self_ref": "#/texts/609",
"parent": {
- "$ref": "#/groups/74"
+ "$ref": "#/groups/73"
},
"children": [],
"content_layer": "body",
@@ -20472,7 +20456,7 @@
{
"self_ref": "#/texts/610",
"parent": {
- "$ref": "#/groups/74"
+ "$ref": "#/groups/73"
},
"children": [],
"content_layer": "body",
@@ -20583,7 +20567,7 @@
{
"self_ref": "#/texts/614",
"parent": {
- "$ref": "#/groups/75"
+ "$ref": "#/groups/74"
},
"children": [],
"content_layer": "body",
@@ -20695,7 +20679,7 @@
{
"self_ref": "#/texts/618",
"parent": {
- "$ref": "#/groups/76"
+ "$ref": "#/groups/75"
},
"children": [],
"content_layer": "body",
@@ -20724,7 +20708,7 @@
{
"self_ref": "#/texts/619",
"parent": {
- "$ref": "#/groups/76"
+ "$ref": "#/groups/75"
},
"children": [],
"content_layer": "body",
@@ -20753,7 +20737,7 @@
{
"self_ref": "#/texts/620",
"parent": {
- "$ref": "#/groups/76"
+ "$ref": "#/groups/75"
},
"children": [],
"content_layer": "body",
@@ -20782,7 +20766,7 @@
{
"self_ref": "#/texts/621",
"parent": {
- "$ref": "#/groups/76"
+ "$ref": "#/groups/75"
},
"children": [],
"content_layer": "body",
@@ -20976,7 +20960,7 @@
{
"self_ref": "#/texts/627",
"parent": {
- "$ref": "#/groups/77"
+ "$ref": "#/groups/76"
},
"children": [],
"content_layer": "body",
@@ -21068,10 +21052,10 @@
{
"page_no": 1,
"bbox": {
- "l": 44.505882263183594,
- "t": 492.4716796875,
- "r": 217.3815155029297,
- "b": 431.4029541015625,
+ "l": 44.50348663330078,
+ "t": 492.4738464355469,
+ "r": 217.3761749267578,
+ "b": 431.40179443359375,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -21097,10 +21081,10 @@
{
"page_no": 32,
"bbox": {
- "l": 55.4355354309082,
- "t": 267.0526123046875,
- "r": 217.80780029296875,
- "b": 230.1185302734375,
+ "l": 55.43541717529297,
+ "t": 267.05084228515625,
+ "r": 217.82366943359375,
+ "b": 230.1182861328125,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -21346,5 +21330,16 @@
}
}
},
- "model": "docling"
+ "model": "docling",
+ "request": {
+ "id": "019feac8-1962-7b52-8f99-48997edcbcca",
+ "credits_debited": 1271,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "pages": 32,
+ "credits_charged": 1271,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/insurance-claims-agent/verified-run/raw/policy-rerank.json b/examples/insurance-claims-agent/verified-run/raw/policy-rerank.json
index 669078697..119d3cc49 100644
--- a/examples/insurance-claims-agent/verified-run/raw/policy-rerank.json
+++ b/examples/insurance-claims-agent/verified-run/raw/policy-rerank.json
@@ -1,86 +1,102 @@
{
- "model": "BAAI/bge-reranker-v2-m3",
+ "model": "Qwen/Qwen3-Reranker-4B",
"scores": [
{
"item_id": "13",
- "score": 0.9503188729286194,
+ "score": 0.98046875,
"rank": 0
},
{
- "item_id": "23",
- "score": 0.7388575673103333,
+ "item_id": "6",
+ "score": 0.953125,
"rank": 1
},
{
- "item_id": "6",
- "score": 0.48630863428115845,
+ "item_id": "23",
+ "score": 0.53125,
"rank": 2
},
{
- "item_id": "18",
- "score": 0.29108163714408875,
+ "item_id": "3",
+ "score": 0.255859375,
"rank": 3
},
{
"item_id": "4",
- "score": 0.28587010502815247,
+ "score": 0.2333984375,
"rank": 4
},
{
- "item_id": "14",
- "score": 0.2581389248371124,
+ "item_id": "10",
+ "score": 0.1640625,
"rank": 5
},
{
- "item_id": "3",
- "score": 0.23528403043746948,
+ "item_id": "18",
+ "score": 0.1123046875,
"rank": 6
},
{
- "item_id": "2",
- "score": 0.17781086266040802,
+ "item_id": "11",
+ "score": 0.10693359375,
"rank": 7
},
{
"item_id": "1",
- "score": 0.1475551724433899,
+ "score": 0.06787109375,
"rank": 8
},
{
- "item_id": "11",
- "score": 0.1200256198644638,
+ "item_id": "14",
+ "score": 0.050537109375,
"rank": 9
},
{
- "item_id": "7",
- "score": 0.0616496242582798,
+ "item_id": "2",
+ "score": 0.047607421875,
"rank": 10
},
{
- "item_id": "9",
- "score": 0.0497734509408474,
+ "item_id": "7",
+ "score": 0.035400390625,
"rank": 11
},
{
- "item_id": "50",
- "score": 0.018194368109107018,
+ "item_id": "9",
+ "score": 0.01043701171875,
"rank": 12
},
{
"item_id": "8",
- "score": 0.01578456163406372,
+ "score": 0.00136566162109375,
"rank": 13
},
{
- "item_id": "33",
- "score": 0.007725534029304981,
+ "item_id": "50",
+ "score": 0.0003681182861328125,
"rank": 14
},
{
- "item_id": "10",
- "score": 0.0061929901130497456,
+ "item_id": "33",
+ "score": 0.0001087188720703125,
"rank": 15
}
],
- "query_id": "debris-removal-scope"
+ "usage": {
+ "input_tokens": 8509,
+ "credits_charged": 100,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "request": {
+ "id": "019feac8-35dd-7301-9912-d1e3a113b025",
+ "credits_debited": 100,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 8509,
+ "pairs": 16,
+ "credits_charged": 100,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/insurance-claims-agent/verified-run/raw/review-completion.json b/examples/insurance-claims-agent/verified-run/raw/review-completion.json
index 3566eff29..5aa224818 100644
--- a/examples/insurance-claims-agent/verified-run/raw/review-completion.json
+++ b/examples/insurance-claims-agent/verified-run/raw/review-completion.json
@@ -1,10 +1,27 @@
{
- "model": "Qwen/Qwen3.5-4B:no-spec",
- "text": "<think>\n\n</think>\n\n```json\n{\n \"route\": \"scope_review_required\",\n \"headline\": \"FEMA Appeal Decision B8: Debris Removal Scope and Price Verification for July 2019 Flood Loss\",\n \"appeal_summary\": {\n \"proof_of_loss_amount\": 182552.0,\n \"removal_estimate\": 49500.0,\n \"barge_estimate\": 181832.94,\n \"debris_cubic_yards_min\": 12,\n \"debris_cubic_yards_max\": 15\n },\n \"decision\": {\n \"covered_scope\": \"Labor and equipment usage to remove 12 to 15 cubic yards of flood-borne stones from underneath the insured building to the area around the perimeter of the building.\",\n \"excluded_scope\": \"Disposal costs, yard work, carting debris from the perimeter into a barge, barge transportation, handling, and disposal of non-owned debris.\",\n \"evidence_needed\": \"Additional evidence that the contractor's estimated dollar amount is limited strictly to the covered scope of work (labor and equipment under the building). The $3,564 per cubic yard quote requires validation against other estimates.\",\n \"prior_claim_check\": \"Verify documentation in the file for previous claims filed on May 20, 2019, May 29, 2019, and June 11, 2019, to ensure no payment overlap occurred for debris removal from the same area before the July 2019 event.\"\n },\n \"findings\": [\n {\n \"category\": \"covered_removal\",\n \"severity\": \"high\",\n \"title\": \"Coverage Confirmed for Under-Building Debris Removal\",\n \"evidence\": \"FEMA affirms SFIP covers the expense to remove non-owned flood debris on or in insured property, specifically labor and equipment usage to remove 12 to 15 cubic yards of stones from underneath the building to the perimeter.\",\n \"sources\": [\n \"appeal_decision\"\n ]\n },\n {\n \"category\": \"excluded_transport\",\n \"severity\": \"high\",\n \"title\": \"Exclusion of Yard Work and Transportation Costs\",\n \"evidence\": \"The SFIP does not cover the expense to dispose non-owned debris, nor does it cover increased costs to remove debris in the yard or transport it by barge for further handling and disposal.\",\n \"sources\": [\n \"appeal_decision\"\n ]\n },\n {\n \"category\": \"price_support\",\n \"severity\": \"medium\",\n \"title\": \"Requirement for Reasonable and Customary Pricing Evidence\",\n \"evidence\": \"The policyholder must provide proof of repairs and price from previous flood losses related to removing stones and debris from underneath the building to validate the quoted price of $3,564 per cubic yard.\",\n \"sources\": [\n \"appeal_decision\"\n ]\n },\n {\n \"category\": \"prior_claim_overlap\",\n \"severity\": \"high\",\n \"title\": \"Verification of Prior Debris Removal Payments\",\n \"evidence\": \"Policyholder has received payments for similar losses in May and June 2019; insurer must verify if debris removal for the same area was performed and paid for prior to the July 2019 flood event to prevent double payment.\",\n \"sources\": [\n \"appeal_decision\"\n ]\n }\n ],\n \"next_actions\": [\n \"Direct insurer to review proof of loss documentation packet for completeness regarding covered scope only.\",\n \"Require policyholder to submit additional debris removal estimates from different contractors to support the unit price.\",\n \"Instruct insurer to check claim files for May 20, May 29, and June 11, 2019 events to confirm no prior coverage for this specific debris removal task.\",\n \"Exclude all costs associated with barge transportation ($181,832.94) and yard disposal from any potential payment recommendation.\"\n ]\n}\n```",
+ "model": "Qwen/Qwen3.6-27B",
+ "text": "{\n \"appeal_summary\": {\n \"barge_estimate\": 181832.94,\n \"debris_cubic_yards_max\": 15,\n \"debris_cubic_yards_min\": 12,\n \"proof_of_loss_amount\": 182552.0,\n \"removal_estimate\": 49500.0\n },\n \"decision\": {\n \"covered_scope\": \"Removal of non-owned flood-borne debris (stones) from underneath the insured building to the perimeter of the building.\",\n \"evidence_needed\": \"Additional evidence that the contractor's estimated dollar amount is limited to the covered scope of work; other debris removal estimates from one or more different contractors to verify pricing is reasonable and customary for the location and site conditions.\",\n \"excluded_scope\": \"Transportation by barge, handling, disposal, and yard work components outside the building's perimeter footprint.\",\n \"prior_claim_check\": \"Verify that debris removal for the same area underneath the building occurred before the July 2019 flood event to prevent payment overlap with prior claims.\"\n },\n \"findings\": [\n {\n \"category\": \"covered_removal\",\n \"evidence\": \"SFIP covers expense to remove non-owned debris on or in insured property; engineer confirmed 12 to 15 cubic yards of stones under the building.\",\n \"severity\": \"decision\",\n \"sources\": [\n \"appeal_decision\",\n \"policy\"\n ],\n \"title\": \"Coverage for Under-Building Debris Removal\"\n },\n {\n \"category\": \"excluded_transport\",\n \"evidence\": \"SFIP excludes costs for barge transportation, handling, and disposal as these are not part of removing debris from insured property.\",\n \"severity\": \"decision\",\n \"sources\": [\n \"appeal_decision\",\n \"policy\"\n ],\n \"title\": \"Exclusion of Transport and Disposal Costs\"\n },\n {\n \"category\": \"price_support\",\n \"evidence\": \"Contractor quote of $3,564 per cubic yard requires validation against other estimates to ensure reasonableness.\",\n \"severity\": \"high\",\n \"sources\": [\n \"appeal_decision\"\n ],\n \"title\": \"Validation of Removal Pricing\"\n },\n {\n \"category\": \"prior_claim_overlap\",\n \"evidence\": \"Insurer must verify no prior payment was made for debris removal in the same under-building area before the July 2019 event.\",\n \"severity\": \"high\",\n \"sources\": [\n \"appeal_decision\"\n ],\n \"title\": \"Verification of Prior Claim Activity\"\n }\n ],\n \"headline\": \"FEMA Affirms Partial Coverage for Under-Building Debris Removal, Denies Transport and Yard Work\",\n \"next_actions\": [\n \"Request additional contractor estimates to validate the $3,564 per cubic yard rate.\",\n \"Verify prior claim history to ensure no duplicate payment for under-building debris removal.\",\n \"Process payment only for the covered scope of under-building debris removal upon receipt of valid proof of loss.\"\n ],\n \"route\": \"scope_review_required\"\n}",
"finish_reason": "stop",
"usage": {
- "prompt_tokens": 5836,
- "completion_tokens": 923,
- "total_tokens": 6759
+ "prompt_tokens": 5837,
+ "completion_tokens": 734,
+ "total_tokens": 6571,
+ "credits_charged": 474,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "attempt_id": "04ebf80405ef484c9d8433b25f6831c0",
+ "ttft_ms": 242.08229499981823,
+ "tpot_ms": 45.440558348773834,
+ "request": {
+ "id": "019fead2-5194-7bf2-97bc-569a0eb18318",
+ "credits_debited": 474,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 5837,
+ "output_tokens": 734,
+ "credits_charged": 474,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "5f4a7840183ae006b5381892169c8bfdeea694284ed57d2b80cc1cca518c4347"
}
}
diff --git a/examples/insurance-claims-agent/verified-run/review.json b/examples/insurance-claims-agent/verified-run/review.json
index 0985e848e..da12e4a51 100644
--- a/examples/insurance-claims-agent/verified-run/review.json
+++ b/examples/insurance-claims-agent/verified-run/review.json
@@ -1,61 +1,62 @@
{
- "route": "scope_review_required",
- "headline": "FEMA Appeal Decision B8: Debris Removal Scope and Price Verification for July 2019 Flood Loss",
"appeal_summary": {
- "proof_of_loss_amount": 182552.0,
- "removal_estimate": 49500.0,
"barge_estimate": 181832.94,
+ "debris_cubic_yards_max": 15,
"debris_cubic_yards_min": 12,
- "debris_cubic_yards_max": 15
+ "proof_of_loss_amount": 182552.0,
+ "removal_estimate": 49500.0
},
"decision": {
- "covered_scope": "Labor and equipment usage to remove 12 to 15 cubic yards of flood-borne stones from underneath the insured building to the area around the perimeter of the building.",
- "excluded_scope": "Disposal costs, yard work, carting debris from the perimeter into a barge, barge transportation, handling, and disposal of non-owned debris.",
- "evidence_needed": "Additional evidence that the contractor's estimated dollar amount is limited strictly to the covered scope of work (labor and equipment under the building). The $3,564 per cubic yard quote requires validation against other estimates.",
- "prior_claim_check": "Verify documentation in the file for previous claims filed on May 20, 2019, May 29, 2019, and June 11, 2019, to ensure no payment overlap occurred for debris removal from the same area before the July 2019 event."
+ "covered_scope": "Removal of non-owned flood-borne debris (stones) from underneath the insured building to the perimeter of the building.",
+ "evidence_needed": "Additional evidence that the contractor's estimated dollar amount is limited to the covered scope of work; other debris removal estimates from one or more different contractors to verify pricing is reasonable and customary for the location and site conditions.",
+ "excluded_scope": "Transportation by barge, handling, disposal, and yard work components outside the building's perimeter footprint.",
+ "prior_claim_check": "Before issuing any additional payment for the subject July 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the July 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap"
},
"findings": [
{
"category": "covered_removal",
- "severity": "high",
- "title": "Coverage Confirmed for Under-Building Debris Removal",
- "evidence": "FEMA affirms SFIP covers the expense to remove non-owned flood debris on or in insured property, specifically labor and equipment usage to remove 12 to 15 cubic yards of stones from underneath the building to the perimeter.",
+ "evidence": "SFIP covers expense to remove non-owned debris on or in insured property; engineer confirmed 12 to 15 cubic yards of stones under the building.",
+ "severity": "decision",
"sources": [
- "appeal_decision"
- ]
+ "appeal_decision",
+ "policy"
+ ],
+ "title": "Coverage for Under-Building Debris Removal"
},
{
"category": "excluded_transport",
- "severity": "high",
- "title": "Exclusion of Yard Work and Transportation Costs",
- "evidence": "The SFIP does not cover the expense to dispose non-owned debris, nor does it cover increased costs to remove debris in the yard or transport it by barge for further handling and disposal.",
+ "evidence": "SFIP excludes costs for barge transportation, handling, and disposal as these are not part of removing debris from insured property.",
+ "severity": "decision",
"sources": [
- "appeal_decision"
- ]
+ "appeal_decision",
+ "policy"
+ ],
+ "title": "Exclusion of Transport and Disposal Costs"
},
{
"category": "price_support",
- "severity": "medium",
- "title": "Requirement for Reasonable and Customary Pricing Evidence",
- "evidence": "The policyholder must provide proof of repairs and price from previous flood losses related to removing stones and debris from underneath the building to validate the quoted price of $3,564 per cubic yard.",
+ "evidence": "Contractor quote of $3,564 per cubic yard requires validation against other estimates to ensure reasonableness.",
+ "severity": "high",
"sources": [
"appeal_decision"
- ]
+ ],
+ "title": "Validation of Removal Pricing"
},
{
"category": "prior_claim_overlap",
+ "evidence": "Before issuing any additional payment for the subject July 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the July 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap",
"severity": "high",
- "title": "Verification of Prior Debris Removal Payments",
- "evidence": "Policyholder has received payments for similar losses in May and June 2019; insurer must verify if debris removal for the same area was performed and paid for prior to the July 2019 flood event to prevent double payment.",
"sources": [
"appeal_decision"
- ]
+ ],
+ "title": "Verification of Prior Claim Activity"
}
],
+ "headline": "FEMA Affirms Partial Coverage for Under-Building Debris Removal, Denies Transport and Yard Work",
"next_actions": [
- "Direct insurer to review proof of loss documentation packet for completeness regarding covered scope only.",
- "Require policyholder to submit additional debris removal estimates from different contractors to support the unit price.",
- "Instruct insurer to check claim files for May 20, May 29, and June 11, 2019 events to confirm no prior coverage for this specific debris removal task.",
- "Exclude all costs associated with barge transportation ($181,832.94) and yard disposal from any potential payment recommendation."
- ]
+ "Request additional contractor estimates to validate the $3,564 per cubic yard rate.",
+ "Before issuing any additional payment for the subject July 2019 flood event, the insurer should verify that debris removal for the same area underneath the building was performed before the July 2019 flood event; retain proof of repairs and pricing from previous losses to prevent payment overlap",
+ "Process payment only for the covered scope of under-building debris removal upon receipt of valid proof of loss."
+ ],
+ "route": "scope_review_required"
}
diff --git a/examples/insurance-claims-agent/verified-run/source-manifest.json b/examples/insurance-claims-agent/verified-run/source-manifest.json
index 3df40c719..5a6e44a28 100644
--- a/examples/insurance-claims-agent/verified-run/source-manifest.json
+++ b/examples/insurance-claims-agent/verified-run/source-manifest.json
@@ -1,5 +1,5 @@
{
- "fetched_at": "2026-07-26T19:11:05.290899+00:00",
+ "fetched_at": "2026-08-09T14:34:15.797891+00:00",
"sources": [
{
"slug": "nfip-appeal-b8",
diff --git a/examples/maintenance-triage-agent/README.md b/examples/maintenance-triage-agent/README.md
index 87c791f6f..a51abfa81 100644
--- a/examples/maintenance-triage-agent/README.md
+++ b/examples/maintenance-triage-agent/README.md
@@ -53,6 +53,10 @@ uv run triage-fault --run-id local
uv run eval-triage runs/local
```
+If the process crashes, it can leave `runs/.<run-id>.lock` and a
+`runs/.<run-id>-*` staging directory. Remove those exact abandoned paths before
+retrying the same run ID.
+
Set `SIE_CLUSTER_URL` and `SIE_API_KEY` to use SIE Cloud. The default points to
a local server at `http://localhost:8080`.
diff --git a/examples/maintenance-triage-agent/maintenance_triage/review.py b/examples/maintenance-triage-agent/maintenance_triage/review.py
index 3c508ec96..2efea06bc 100644
--- a/examples/maintenance-triage-agent/maintenance_triage/review.py
+++ b/examples/maintenance-triage-agent/maintenance_triage/review.py
@@ -1,11 +1,14 @@
from __future__ import annotations
import argparse
+import contextlib
import hashlib
import json
import math
import os
import re
+import shutil
+import tempfile
import time
from datetime import UTC, datetime
from pathlib import Path
@@ -104,6 +107,71 @@ def _write_json(path: Path, value: Any) -> None:
path.write_text(json.dumps(value, indent=2, default=_json_default) + "\n", encoding="utf-8")
+def _charged_request_rows(value: Any) -> list[tuple[dict[str, Any], dict[str, Any]]]:
+ rows: list[tuple[dict[str, Any], dict[str, Any]]] = []
+ if isinstance(value, dict):
+ request = value.get("request")
+ if isinstance(request, dict) and request.get("credits_debited"):
+ usage = request.get("usage")
+ if not isinstance(usage, dict):
+ usage = value.get("usage")
+ rows.append((request, usage if isinstance(usage, dict) else {}))
+ for child in value.values():
+ rows.extend(_charged_request_rows(child))
+ elif isinstance(value, list):
+ for child in value:
+ rows.extend(_charged_request_rows(child))
+ return rows
+
+
+def _request_rate_book_version(request: dict[str, Any], usage: dict[str, Any], source: str) -> str:
+ direct_present = "rate_book_version" in request
+ usage_present = "rate_book_version" in usage
+ direct = request.get("rate_book_version")
+ nested = usage.get("rate_book_version")
+ if direct_present and (not isinstance(direct, str) or not direct):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if usage_present and (not isinstance(nested, str) or not nested):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if direct_present and usage_present and direct != nested:
+ raise RuntimeError(f"{source} has conflicting rate-book versions for one request")
+ version = direct if direct_present else nested
+ if not isinstance(version, str) or not version:
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ return version
+
+
+def _rate_book_provenance(raw_dir: Path) -> dict[str, Any]:
+ versions: set[str] = set()
+ source_artifacts: list[str] = []
+ request_ids: list[str] = []
+ request_versions: dict[str, str] = {}
+ for path in sorted(raw_dir.glob("*.json")):
+ result = json.loads(path.read_text(encoding="utf-8"))
+ charged_rows = _charged_request_rows(result)
+ if charged_rows:
+ source_artifacts.append(f"raw/{path.name}")
+ for request, usage in charged_rows:
+ request_id = request.get("id")
+ if not isinstance(request_id, str) or not request_id:
+ raise RuntimeError(f"{path.name} has a charged request without an ID")
+ request_ids.append(request_id)
+ version = _request_rate_book_version(request, usage, path.name)
+ versions.add(version)
+ request_versions[request_id] = version
+ if len(request_ids) != len(set(request_ids)):
+ raise RuntimeError("Run contains duplicate charged request IDs")
+ if len(versions) != 1 or not request_ids:
+ raise RuntimeError("Run does not establish one settled rate book for charged requests")
+ version = versions.pop()
+ return {
+ "version": version,
+ "source_artifacts": source_artifacts,
+ "request_ids": request_ids,
+ "request_versions": request_versions,
+ }
+
+
def _dense(result: dict[str, Any]) -> list[float]:
values: Any = result.get("dense")
if isinstance(values, dict):
@@ -494,10 +562,44 @@ def build_review(data: dict[str, Any], ranked: list[dict[str, Any]]) -> dict[str
}
+def _validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError("run_id must be one safe directory name containing only letters, digits, '.', '_', or '-'")
+ return run_id
+
+
def run(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
config = load_config()
+ final_run_dir = RUNS_DIR / run_id
+ RUNS_DIR.mkdir(parents=True, exist_ok=True)
+ reservation_dir = RUNS_DIR / f".{run_id}.lock"
+ try:
+ reservation_dir.mkdir()
+ except FileExistsError as exc:
+ raise FileExistsError(f"Run ID is already reserved: {run_id}") from exc
+ try:
+ if final_run_dir.exists():
+ raise FileExistsError(f"Run evidence already exists at {final_run_dir}")
+ staging_dir = Path(tempfile.mkdtemp(prefix=f".{run_id}-", dir=RUNS_DIR))
+ try:
+ _write_run(staging_dir, config)
+ staging_dir.rename(final_run_dir)
+ except BaseException:
+ shutil.rmtree(staging_dir, ignore_errors=True)
+ raise
+ finally:
+ with contextlib.suppress(OSError):
+ reservation_dir.rmdir()
+ console.print(f"[green]Wrote[/] {final_run_dir}")
+ return final_run_dir
+
+
+def _write_run(run_dir: Path, config: dict[str, Any]) -> None:
parse_model = str(config["models"]["parse"])
- run_dir = RUNS_DIR / run_id
raw_dir = run_dir / "raw"
raw_dir.mkdir(parents=True, exist_ok=False)
calls: list[dict[str, Any]] = []
@@ -562,10 +664,20 @@ def run(run_id: str) -> Path:
)
started = time.perf_counter()
+ rerank_query = Item(id="bearing-trend-query", text=config["review"]["query"])
+ rerank_items = [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval]
+ _write_json(
+ raw_dir / "rerank-request.json",
+ {
+ "model": config["models"]["rerank"],
+ "query": rerank_query,
+ "items": rerank_items,
+ },
+ )
rerank_raw = client.score(
config["models"]["rerank"],
- Item(id="bearing-trend-query", text=config["review"]["query"]),
- [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval],
+ rerank_query,
+ rerank_items,
wait_for_capacity=True,
provision_timeout_s=timeout,
)
@@ -716,9 +828,8 @@ def run(run_id: str) -> Path:
manifest = {
"created_at": datetime.now(UTC).isoformat(),
"endpoint": config["cluster"]["url"],
- "sie_server_commit": os.getenv("SIE_SERVER_COMMIT"),
- "run_command": os.getenv("SIE_RUN_COMMAND"),
"models": config["models"],
+ "rate_book_provenance": _rate_book_provenance(raw_dir),
"fixture": {"path": str(DOCUMENT_PATH.relative_to(ROOT)), "sha256": sha256(DOCUMENT_PATH)},
"diagnostic_fixtures": [
{"path": str(path.relative_to(ROOT)), "sha256": sha256(path)} for path in SCHEMA_PROBE_PATHS
@@ -747,8 +858,6 @@ def run(run_id: str) -> Path:
),
}
_write_json(run_dir / "manifest.json", manifest)
- console.print(f"[green]Wrote[/] {run_dir}")
- return run_dir
def main() -> None:
diff --git a/examples/maintenance-triage-agent/pyproject.toml b/examples/maintenance-triage-agent/pyproject.toml
index 1c2d207b7..e23489f8f 100644
--- a/examples/maintenance-triage-agent/pyproject.toml
+++ b/examples/maintenance-triage-agent/pyproject.toml
@@ -8,7 +8,7 @@ dependencies = [
"python-dotenv>=1.0",
"pyyaml>=6.0",
"rich>=13.7",
- "sie-sdk>=0.6.23",
+ "sie-sdk==0.7.1",
]
[project.scripts]
diff --git a/examples/maintenance-triage-agent/tests/test_review.py b/examples/maintenance-triage-agent/tests/test_review.py
index dda9b7630..9085be2a7 100644
--- a/examples/maintenance-triage-agent/tests/test_review.py
+++ b/examples/maintenance-triage-agent/tests/test_review.py
@@ -2,9 +2,13 @@ import hashlib
import json
from pathlib import Path
+import pytest
+
+import maintenance_triage.review as review_module
from maintenance_triage.evaluate import evaluate_review
from maintenance_triage.review import (
_map_exact_source_fields,
+ _rate_book_provenance,
_require_entity_evidence,
_require_gliner2_evidence,
_require_ranked_evidence,
@@ -16,6 +20,18 @@ from maintenance_triage.review import (
ROOT = Path(__file__).resolve().parents[1]
[email protected]("run_id", ["", ".", "..", "../escape", "nested/run", "nested\\run"])
+def test_run_rejects_unsafe_run_id_before_setup(run_id: str, monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(
+ review_module,
+ "load_config",
+ lambda: pytest.fail("load_config must not run for an unsafe run ID"),
+ )
+
+ with pytest.raises(ValueError, match="safe directory name"):
+ review_module.run(run_id)
+
+
def test_fixture_is_the_exact_ntsb_page_spread() -> None:
source = ROOT / "fixtures" / "east-palestine-bearing-spread.pdf"
assert hashlib.sha256(source.read_bytes()).hexdigest() == (
@@ -175,6 +191,17 @@ def test_review_boundary_passes_evaluation() -> None:
assert all(check.passed for check in evaluate_review(build_review(structured_data(), ranked_evidence())))
+def test_verified_rerank_correlates_to_retrieval_query() -> None:
+ raw_dir = ROOT / "verified-run" / "raw"
+ retrieve = json.loads((raw_dir / "retrieve.json").read_text(encoding="utf-8"))
+ rerank_request = json.loads((raw_dir / "rerank-request.json").read_text(encoding="utf-8"))
+ rerank = json.loads((raw_dir / "rerank.json").read_text(encoding="utf-8"))
+ assert rerank_request["query"]["id"] == retrieve["query"]["id"]
+ assert [item["id"] for item in rerank_request["items"]] == [row["chunk_id"] for row in retrieve["ranking"]]
+ assert len(rerank["scores"]) == len(rerank_request["items"])
+ assert {row["item_id"] for row in rerank["scores"]} == {item["id"] for item in rerank_request["items"]}
+
+
def test_review_fails_closed_on_changed_temperature() -> None:
data = structured_data()
data["salem_temperature"] = "130°F above ambient"
@@ -270,3 +297,103 @@ def test_verified_manifest_hashes() -> None:
for entry in manifest["artifacts"]:
artifact = manifest_path.parent / entry["path"]
assert hashlib.sha256(artifact.read_bytes()).hexdigest() == entry["sha256"]
+
+ listed_paths = {entry["path"] for entry in manifest["artifacts"]}
+ actual_paths = {
+ path.relative_to(manifest_path.parent).as_posix()
+ for path in manifest_path.parent.rglob("*")
+ if path.is_file() and path != manifest_path
+ }
+ assert listed_paths == actual_paths
+
+ provenance = manifest["rate_book_provenance"]
+ assert provenance == _rate_book_provenance(manifest_path.parent / "raw")
+ assert provenance["request_ids"]
+ assert provenance["request_versions"] == {
+ request_id: provenance["version"] for request_id in provenance["request_ids"]
+ }
+
+
+def test_rate_book_provenance_prefers_request_usage_and_rejects_conflicts(
+ tmp_path: Path,
+) -> None:
+ payload = {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "usage": {"rate_book_version": "nested-rate-v1"},
+ },
+ "usage": {"rate_book_version": "outer-rate-v1"},
+ }
+ path = tmp_path / "request.json"
+ path.write_text(json.dumps(payload), encoding="utf-8")
+ assert _rate_book_provenance(tmp_path)["version"] == "nested-rate-v1"
+
+ payload["request"]["rate_book_version"] = "direct-rate-v2"
+ path.write_text(json.dumps(payload), encoding="utf-8")
+ try:
+ _rate_book_provenance(tmp_path)
+ except RuntimeError as exc:
+ assert "conflicting rate-book versions" in str(exc)
+ else:
+ raise AssertionError("Accepted conflicting request rate-book versions")
+
+
+def test_rate_book_provenance_rejects_missing_request_version(tmp_path: Path) -> None:
+ (tmp_path / "request.json").write_text(
+ json.dumps({"request": {"id": "request-1", "credits_debited": 1}}),
+ encoding="utf-8",
+ )
+ try:
+ _rate_book_provenance(tmp_path)
+ except RuntimeError as exc:
+ assert "without a rate-book version" in str(exc)
+ else:
+ raise AssertionError("Accepted a charged request without a rate-book version")
+
+
+def test_run_cleans_failed_staging_and_allows_retry(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
+ monkeypatch.setattr(review_module, "load_config", dict)
+
+ def fail(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "partial.json").write_text("partial", encoding="utf-8")
+ raise RuntimeError("provenance failed")
+
+ monkeypatch.setattr(review_module, "_write_run", fail)
+ with pytest.raises(RuntimeError, match="provenance failed"):
+ review_module.run("retryable")
+
+ assert list(tmp_path.iterdir()) == []
+
+ def succeed(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ monkeypatch.setattr(review_module, "_write_run", succeed)
+ final_run_dir = review_module.run("retryable")
+
+ assert final_run_dir == tmp_path / "retryable"
+ assert (final_run_dir / "manifest.json").is_file()
+
+
+def test_run_reserves_the_id_before_writing(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
+ monkeypatch.setattr(review_module, "load_config", dict)
+
+ def write(run_dir: Path, _config: dict[str, object]) -> None:
+ with pytest.raises(FileExistsError, match="already reserved"):
+ review_module.run("reserved")
+ (run_dir / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ monkeypatch.setattr(review_module, "_write_run", write)
+
+ final_run_dir = review_module.run("reserved")
+
+ assert final_run_dir == tmp_path / "reserved"
+ assert sorted(path.name for path in tmp_path.iterdir()) == ["reserved"]
diff --git a/examples/maintenance-triage-agent/uv.lock b/examples/maintenance-triage-agent/uv.lock
index d484b8c89..42ad9ae6d 100644
--- a/examples/maintenance-triage-agent/uv.lock
+++ b/examples/maintenance-triage-agent/uv.lock
@@ -202,7 +202,7 @@ requires-dist = [
{ name = "python-dotenv", specifier = ">=1.0" },
{ name = "pyyaml", specifier = ">=6.0" },
{ name = "rich", specifier = ">=13.7" },
- { name = "sie-sdk", specifier = ">=0.6.23" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -463,7 +463,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.23"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -475,9 +475,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/22/c0/b0fd1ecb9cfd92271a22de027b2d924b16b1d5b526332da38e0a1265373c/sie_sdk-0.6.23.tar.gz", hash = "sha256:7a7455badd364b8bff05d3f36004ad959e524dd9fef3d1bf4148a67eb5132778", size = 197836, upload-time = "2026-07-24T04:05:17.119Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/bd/58/ecf8d19e4a5e8797781433ebaf2e5034610c896d5a5595e7c901df34099e/sie_sdk-0.6.23-py3-none-any.whl", hash = "sha256:9e3d558a3b7b5d60f3d6deeededdd865b37a8ef7505dd922b5d2749e1efe1f0d", size = 130234, upload-time = "2026-07-24T04:05:15.755Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/maintenance-triage-agent/verified-run/manifest.json b/examples/maintenance-triage-agent/verified-run/manifest.json
index ae207c185..27969367e 100644
--- a/examples/maintenance-triage-agent/verified-run/manifest.json
+++ b/examples/maintenance-triage-agent/verified-run/manifest.json
@@ -1,15 +1,97 @@
{
- "created_at": "2026-07-25T02:35:45.228957+00:00",
- "endpoint": "http://127.0.0.1:8080",
- "sie_server_commit": "4b5ea9ccd5d5fc07c56edfea790080b05e17f0d2",
- "run_command": "Modal exact-source reference examples against public SIE main at 4b5ea9c",
+ "created_at": "2026-08-10T07:49:57.912879+00:00",
+ "endpoint": "https://api.superlinked.com",
"models": {
- "parse": "docling-project/docling",
+ "parse": "docling",
"retrieve": "BAAI/bge-m3",
"rerank": "Qwen/Qwen3-Reranker-4B",
"entities": "urchade/gliner_multi-v2.1",
"extract": "fastino/gliner2-large-v1"
},
+ "rate_book_provenance": {
+ "version": "2026-08-09-production-bootstrap-v3",
+ "source_artifacts": [
+ "raw/entities-detector-0.json",
+ "raw/entities-detector-1.json",
+ "raw/entities-detector-2.json",
+ "raw/entities-outcome.json",
+ "raw/gliner2-cause.json",
+ "raw/gliner2-derailment.json",
+ "raw/gliner2-east-palestine.json",
+ "raw/gliner2-engineer.json",
+ "raw/gliner2-salem.json",
+ "raw/gliner2-sebring.json",
+ "raw/parse.json",
+ "raw/rerank.json",
+ "raw/retrieve.json"
+ ],
+ "request_ids": [
+ "019feaa5-d3fc-7891-8f96-297130dcdc9e",
+ "019feaa6-12b0-71e2-aa34-ea5121ba270d",
+ "019feaa6-144e-7f23-8e75-c927d83555a0",
+ "019feaa6-159f-7fa0-8673-62547fc3fa3c",
+ "019feaa6-55af-72c1-84ca-bdad9c2c7354",
+ "019feaa6-5775-7073-ab7c-11de1d34234b",
+ "019feaa6-54c5-7652-8f98-bd8fa6997d0e",
+ "019feaa6-5689-78c3-a28f-ecb002fd6e54",
+ "019feaa6-53de-7171-b845-4fa72bfea160",
+ "019feaa6-1832-7361-902a-f144e07186d3",
+ "019feaa5-3784-7820-82db-00751c51935b",
+ "019feaa5-9299-7252-8722-bf102afa04c7",
+ "019feaa5-787c-7300-abbe-7e536ba6a894",
+ "019feaa5-81bf-7a32-88ee-013ef66d9283",
+ "019feaa5-84d7-7100-ad9e-54de062cfb9a",
+ "019feaa5-85a8-7d80-a5d7-5a4e7bddce29",
+ "019feaa5-8671-79f2-aef3-f7007b3ae1bf",
+ "019feaa5-8743-74c1-bf78-0d2596a024c6",
+ "019feaa5-8805-7782-b54b-a218bc93d2ba",
+ "019feaa5-88d9-7d90-abd8-6397c738e4d5",
+ "019feaa5-89ae-7f40-93a0-a6c4765f0711",
+ "019feaa5-8a71-78c3-a0cf-55e8c3e8c78f",
+ "019feaa5-8b46-7bc0-8bf1-1622e5d6a3f7",
+ "019feaa5-8c12-70c2-901d-a8e32fabddda",
+ "019feaa5-8cdc-7360-bf7d-1be24c454842",
+ "019feaa5-8db1-7930-9a6d-89badec998f9",
+ "019feaa5-8e7d-7bb0-966d-ddbc714c1b79",
+ "019feaa5-8f51-7ef2-8156-3711a8f6270b",
+ "019feaa5-9018-7c03-bd1b-4c3fad8dfc1d",
+ "019feaa5-90e5-72d3-954a-5f70d825615f",
+ "019feaa5-91c4-72f3-95b8-2ce372016b10"
+ ],
+ "request_versions": {
+ "019feaa5-d3fc-7891-8f96-297130dcdc9e": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-12b0-71e2-aa34-ea5121ba270d": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-144e-7f23-8e75-c927d83555a0": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-159f-7fa0-8673-62547fc3fa3c": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-55af-72c1-84ca-bdad9c2c7354": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-5775-7073-ab7c-11de1d34234b": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-54c5-7652-8f98-bd8fa6997d0e": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-5689-78c3-a28f-ecb002fd6e54": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-53de-7171-b845-4fa72bfea160": "2026-08-09-production-bootstrap-v3",
+ "019feaa6-1832-7361-902a-f144e07186d3": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-3784-7820-82db-00751c51935b": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-9299-7252-8722-bf102afa04c7": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-787c-7300-abbe-7e536ba6a894": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-81bf-7a32-88ee-013ef66d9283": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-84d7-7100-ad9e-54de062cfb9a": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-85a8-7d80-a5d7-5a4e7bddce29": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8671-79f2-aef3-f7007b3ae1bf": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8743-74c1-bf78-0d2596a024c6": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8805-7782-b54b-a218bc93d2ba": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-88d9-7d90-abd8-6397c738e4d5": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-89ae-7f40-93a0-a6c4765f0711": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8a71-78c3-a0cf-55e8c3e8c78f": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8b46-7bc0-8bf1-1622e5d6a3f7": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8c12-70c2-901d-a8e32fabddda": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8cdc-7360-bf7d-1be24c454842": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8db1-7930-9a6d-89badec998f9": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8e7d-7bb0-966d-ddbc714c1b79": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-8f51-7ef2-8156-3711a8f6270b": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-9018-7c03-bd1b-4c3fad8dfc1d": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-90e5-72d3-954a-5f70d825615f": "2026-08-09-production-bootstrap-v3",
+ "019feaa5-91c4-72f3-95b8-2ce372016b10": "2026-08-09-production-bootstrap-v3"
+ }
+ },
"fixture": {
"path": "fixtures/east-palestine-bearing-spread.pdf",
"sha256": "0556a971978198a493acda277dfdfd75a837be4ba5c626d6f03565cb17cee8ca"
@@ -35,19 +117,19 @@
},
{
"path": "raw/entities-detector-0.json",
- "sha256": "d2ed1eadc8c1bfb8ef13d1862616b8f80405ff90e07432692b999f47e88e05f6"
+ "sha256": "84da7520ffc90560fe7bd171cee74875d323314a4df4d6eba775618a9581ec94"
},
{
"path": "raw/entities-detector-1.json",
- "sha256": "dc1929adbfdbe184963bf232f568b6c9621b0996cebe096c9b138e140bab5f67"
+ "sha256": "7251ba39429b60014f55e4ba4ac206509f311f95149fa3194cb81bb61d0d0ea1"
},
{
"path": "raw/entities-detector-2.json",
- "sha256": "02f407aea2f62358fcc2de29e941bea74c945508f73b98e8742d27e81cda7dee"
+ "sha256": "5c3741e8a72fb794d9d80909604bd72ed35734647d1946fcbbef23c56de1281c"
},
{
"path": "raw/entities-outcome.json",
- "sha256": "987d419d16fe1c82ff6f7707b9126ad56bc39e73904c481c6f9df2b084602dba"
+ "sha256": "f7ab0f1935e955a6c3b66a7b0c132dac8c1fbbf64399d4ca5c231e031f6d0170"
},
{
"path": "raw/entities.json",
@@ -55,27 +137,27 @@
},
{
"path": "raw/gliner2-cause.json",
- "sha256": "8d2dffca0c06aa5545f2546f3910085ba3e29a7e8c060ae5e2663f597b03e1b5"
+ "sha256": "29b8ee94845a8514f5f8150d86ea2ebd2f35c0e8d04a4e76910d9e86d0dca04a"
},
{
"path": "raw/gliner2-derailment.json",
- "sha256": "35d2b38b46435e46d332c0d0b4cf8de99b3c61173641006e02093f0b4669ddc1"
+ "sha256": "e82c6d2f5663958389d2796fa992db80aa4cdc4c283bc0e3cc9e601b1e800658"
},
{
"path": "raw/gliner2-east-palestine.json",
- "sha256": "3768f34af5ad52fc5f74635fa7e1a61902926a7b72ee873582faee2f03330692"
+ "sha256": "27c72ca3ffca188cf3af7dd4a43d6a2108936c6ac378c91891aa2f7d7cc2ee14"
},
{
"path": "raw/gliner2-engineer.json",
- "sha256": "3ff4b858a3741c48b9ee86e89b62a8461b36d14d5663eb9f0bef3aa618a04651"
+ "sha256": "a911820b5729871710d385eb54da52e26cccb872e107edfa8aee84753c7ef6a5"
},
{
"path": "raw/gliner2-salem.json",
- "sha256": "1e3b58562aa8e10091b0dc5ca96c13c768cd6b1767e71dc2dff2bbf959a64ebf"
+ "sha256": "83382c151e80af09070f831104d3db7eab470df3b92985363225fc41299acfd9"
},
{
"path": "raw/gliner2-sebring.json",
- "sha256": "6f27fbd04af070d6dde9905bb94d15d766116a288fee15520698d87d8bc9933a"
+ "sha256": "766d60cf6d4c92ab2d010cb02653246918ee9d992b82c78837e3cbe9f2eca7b2"
},
{
"path": "raw/mapped.json",
@@ -83,15 +165,19 @@
},
{
"path": "raw/parse.json",
- "sha256": "818a458d3611298b32e2593a9f67825f6429fb12421c94524fa7b14626abb871"
+ "sha256": "017d997b1f7daba9e6b2d194f4dd03dc997a0263e5c224bf47ba40e0ea64de31"
+ },
+ {
+ "path": "raw/rerank-request.json",
+ "sha256": "a0fbb1f07e37cc7c48c5307bc5457450f5a071854c08cb8fb0da7412f6d59174"
},
{
"path": "raw/rerank.json",
- "sha256": "e4a55306508d2af18eb6739064f7c94da52368a37b88e6fd665e62f12a5bcd58"
+ "sha256": "c312fc84da3d14247b6c496d06b95ce2c29532d1e39a4c12caac9820ae9ea4d1"
},
{
"path": "raw/retrieve.json",
- "sha256": "3e4080ca59359cd7374616c3c0590510dc0d6e0ca21bd3cf9e77c61c1a7fdbfe"
+ "sha256": "9b0740cc9d16a13616c74b3f13e48a9f1030b24e1db071cc0de6b881a4c74be9"
},
{
"path": "evaluation.json",
@@ -107,43 +193,43 @@
{
"stage": "parse",
"model": "docling",
- "configured_model": "docling-project/docling",
- "latency_ms": 3064.6
+ "configured_model": "docling",
+ "latency_ms": 17161.9
},
{
"stage": "retrieve",
"model": "BAAI/bge-m3",
- "latency_ms": 355.0
+ "latency_ms": 6678.3
},
{
"stage": "rerank",
"model": "Qwen/Qwen3-Reranker-4B",
- "latency_ms": 546.8
+ "latency_ms": 16743.3
},
{
"stage": "entities_detector_0",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 33.4
+ "latency_ms": 16044.7
},
{
"stage": "entities_detector_1",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 31.1
+ "latency_ms": 389.6
},
{
"stage": "entities_detector_2",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 29.6
+ "latency_ms": 361.9
},
{
"stage": "entities_outcome",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 35.0
+ "latency_ms": 658.2
},
{
"stage": "gliner2_sebring",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 47.5,
+ "latency_ms": 15275.0,
"source_chunk_ids": [
"chunk-11"
],
@@ -152,7 +238,7 @@
{
"stage": "gliner2_salem",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 50.0,
+ "latency_ms": 216.7,
"source_chunk_ids": [
"chunk-12"
],
@@ -161,7 +247,7 @@
{
"stage": "gliner2_east_palestine",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 48.7,
+ "latency_ms": 244.8,
"source_chunk_ids": [
"chunk-13"
],
@@ -170,7 +256,7 @@
{
"stage": "gliner2_cause",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 44.9,
+ "latency_ms": 225.2,
"source_chunk_ids": [
"chunk-1"
],
@@ -179,7 +265,7 @@
{
"stage": "gliner2_engineer",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 47.8,
+ "latency_ms": 221.9,
"source_chunk_ids": [
"chunk-14"
],
@@ -188,7 +274,7 @@
{
"stage": "gliner2_derailment",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 44.9,
+ "latency_ms": 242.5,
"source_chunk_ids": [
"chunk-15"
],
diff --git a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-0.json b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-0.json
index ce3cdcb82..8409014e1 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-0.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-0.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "ntsb-detector-0",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019feaa5-d3fc-7891-8f96-297130dcdc9e",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 74,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-1.json b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-1.json
index 7db4d8afa..624ba9beb 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-1.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-1.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "ntsb-detector-1",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019feaa6-12b0-71e2-aa34-ea5121ba270d",
+ "credits_debited": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 120,
+ "credits_charged": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-2.json b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-2.json
index bc277915c..434aed8c4 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/entities-detector-2.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/entities-detector-2.json
@@ -61,5 +61,16 @@
"classifications": [],
"objects": [],
"id": "ntsb-detector-2",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019feaa6-144e-7f23-8e75-c927d83555a0",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 100,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/entities-outcome.json b/examples/maintenance-triage-agent/verified-run/raw/entities-outcome.json
index 155ca2e3c..0320b5f11 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/entities-outcome.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/entities-outcome.json
@@ -85,5 +85,16 @@
"classifications": [],
"objects": [],
"id": "ntsb-outcome",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019feaa6-159f-7fa0-8673-62547fc3fa3c",
+ "credits_debited": 3,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 260,
+ "credits_charged": 3,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-cause.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-cause.json
index 24316b72e..6b663afa5 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-cause.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-cause.json
@@ -13,5 +13,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-cause-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-55af-72c1-84ca-bdad9c2c7354",
+ "credits_debited": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 69,
+ "credits_charged": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-derailment.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-derailment.json
index 0e9f32883..fc5a86071 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-derailment.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-derailment.json
@@ -21,5 +21,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-derailment-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-5775-7073-ab7c-11de1d34234b",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 25,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-east-palestine.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-east-palestine.json
index b21dfb9f6..7987f7a6a 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-east-palestine.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-east-palestine.json
@@ -77,5 +77,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-east_palestine-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-54c5-7652-8f98-bd8fa6997d0e",
+ "credits_debited": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 72,
+ "credits_charged": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-engineer.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-engineer.json
index 7035cad2f..fc37c042b 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-engineer.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-engineer.json
@@ -29,5 +29,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-engineer-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-5689-78c3-a28f-ecb002fd6e54",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 49,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-salem.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-salem.json
index ea049ef94..068f95f78 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-salem.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-salem.json
@@ -77,5 +77,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-salem-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-53de-7171-b845-4fa72bfea160",
+ "credits_debited": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 91,
+ "credits_charged": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/gliner2-sebring.json b/examples/maintenance-triage-agent/verified-run/raw/gliner2-sebring.json
index 730f8e99f..eabf334db 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/gliner2-sebring.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/gliner2-sebring.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "ranked-ntsb-sebring-evidence",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019feaa6-1832-7361-902a-f144e07186d3",
+ "credits_debited": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 58,
+ "credits_charged": 2,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/parse.json b/examples/maintenance-triage-agent/verified-run/raw/parse.json
index 8e709f960..691d81c29 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/parse.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/parse.json
@@ -2205,10 +2205,10 @@
{
"page_no": 1,
"bbox": {
- "l": 558.920166015625,
- "t": 490.6365203857422,
- "r": 744.68798828125,
- "b": 301.3375244140625,
+ "l": 558.918701171875,
+ "t": 490.63624572753906,
+ "r": 744.6879272460938,
+ "b": 301.3372802734375,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2256,10 +2256,10 @@
{
"page_no": 1,
"bbox": {
- "l": 236.49266052246094,
- "t": 279.51922607421875,
- "r": 742.8156127929688,
- "b": 47.257568359375,
+ "l": 236.510498046875,
+ "t": 279.52117919921875,
+ "r": 742.8189086914062,
+ "b": 47.25885009765625,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2298,10 +2298,10 @@
{
"page_no": 1,
"bbox": {
- "l": 820.133056640625,
- "t": 161.46026611328125,
- "r": 1060.780517578125,
- "b": 46.2568359375,
+ "l": 820.126708984375,
+ "t": 161.4598388671875,
+ "r": 1060.778076171875,
+ "b": 46.25604248046875,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2406,10 +2406,10 @@
{
"page_no": 1,
"bbox": {
- "l": 1073.904296875,
- "t": 537.2559967041016,
- "r": 1536.0584716796875,
- "b": 320.5912780761719,
+ "l": 1074.0859375,
+ "t": 537.2594985961914,
+ "r": 1535.8760986328125,
+ "b": 320.4867858886719,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2449,9 +2449,9 @@
"page_no": 1,
"bbox": {
"l": 1076.4564208984375,
- "t": 315.5904541015625,
- "r": 1537.9404296875,
- "b": 235.01913452148438,
+ "t": 315.5884704589844,
+ "r": 1537.941162109375,
+ "b": 235.018310546875,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2477,10 +2477,10 @@
{
"page_no": 1,
"bbox": {
- "l": 1474.5579833984375,
- "t": 110.49270629882812,
- "r": 1544.7860107421875,
- "b": 42.13043212890625,
+ "l": 1474.5577392578125,
+ "t": 110.49072265625,
+ "r": 1544.7840576171875,
+ "b": 42.13079833984375,
"coord_origin": "BOTTOMLEFT"
},
"charspan": [
@@ -2509,5 +2509,16 @@
}
}
},
- "model": "docling"
+ "model": "docling",
+ "request": {
+ "id": "019feaa5-3784-7820-82db-00751c51935b",
+ "credits_debited": 40,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "pages": 1,
+ "credits_charged": 40,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
+ }
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/rerank-request.json b/examples/maintenance-triage-agent/verified-run/raw/rerank-request.json
new file mode 100644
index 000000000..24bd79c1a
--- /dev/null
+++ b/examples/maintenance-triage-agent/verified-run/raw/rerank-request.json
@@ -0,0 +1,81 @@
+{
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "query": {
+ "id": "bearing-trend-query",
+ "text": "How did the L1 bearing temperature and alert status change across Sebring, Salem, and East Palestine, and what did the NTSB report happened next?"
+ },
+ "items": [
+ {
+ "id": "chunk-12",
+ "text": "At 8:13 p.m. , at the Salem HBD, the reading for the L1 bearing was 103\u00b0F above ambient . This reading was high enough to trigger a noncritical alert to the Wayside Help Desk ( see box ), but not to the crew. A surveillance camera picture from Salem showed fire near the bearing ( right ). Surveillance cameras in Sebring also captured images of the train, and no anomalies were noted."
+ },
+ {
+ "id": "chunk-11",
+ "text": "At 7:37 p.m. , at the Sebring HBD, the reading for the L1 bearing was only 38\u00b0F above ambient -not high enough to trigger an alert. The R1 bearing measured 20\u00b0F above ambient. But the L1 bearing was hotter."
+ },
+ {
+ "id": "chunk-1",
+ "text": "The East Palestine derailment began when an overheated bearing burned off the accident hopper car. Here is what you need to know about bearings, hot bearing detectors (HBDs), and what happened when the accident hopper car passed over the final three HBDs of the journey in the Ohio towns of Sebring, Salem, and East Palestine."
+ },
+ {
+ "id": "chunk-13",
+ "text": "About 8:52 p.m ., the train went over the East Palestine HBD. Less than a minute later, the HBD recorded a temperature of 253\u00b0F above ambient at the L1 bearing; bearing R1 remained at 20\u00b0F above ambient. The HBD immediately transmitted a critical alarm, which was broadcast in the locomotive cab."
+ },
+ {
+ "id": "chunk-4",
+ "text": "Bearings can go from below-alarm temperature to seized in less than a minute. In this accident, however, fire was first photographed near the L1 bearing by a surveillance camera in Salem, Ohio (right), 39 minutes before the train derailed in East Palestine."
+ },
+ {
+ "id": "chunk-16",
+ "text": "The Wayside Help Desk in Atlanta, Georgia, monitors alerts from NS's HBDs. Critical alarms broadcast straight to the train crew. For noncritical alerts, the analyst monitors the train over HBDs it crosses later, paying attention to temperature trends. The single analyst on duty did not notice the Salem noncritical alert, as he dealt with higher-priority alerts. But if he did notice the alert, that would not have prevented the derailment. The analyst said that if he had seen the Salem HBD alert in real time, he would have followed NS rules and watched for alerts from HBDs it went over later. The next HBD the accident train went over was in East Palestine."
+ },
+ {
+ "id": "chunk-17",
+ "text": "In the East Palestine derailment, the alarm was received by the lead locomotive radio and broadcast over the in-cab speakers: ' Critical alarm, critical alarm, critical alarm. Norfolk Southern milepost 49.8, track 1 hotbox, axle 101, south rail. '"
+ },
+ {
+ "id": "chunk-8",
+ "text": "1. HBDs (D) measure the temperature on the outside of the bearing cup. When a bearing heats up inside, it may take 30-60 minutes for the HBD to sense it from the outside. The HBD in Salem measured a temperature of only 103\u00b0 above ambient, despite the fact that the bearing was on fire. So, it generated an alert to the Wayside Help Desk, not an alarm to the train crew."
+ },
+ {
+ "id": "chunk-9",
+ "text": "2. By the time the alarm sounded at the East Palestine HBD, the journal was worn down to a cone, and it was too late. The hopper car and 37 others derailed as the train's emergency braking system activated."
+ },
+ {
+ "id": "chunk-3",
+ "text": "Overheated wheel bearings are the most common mechanical or electrical cause of rail accidents. Because overheated bearings are so dangerous, railroad tracks are equipped with HBDs, devices located along the track that measure the bearing's temperature relative to the ambient temperature (D) . Ambient temperature means the temperature outside. For example, the ambient temperature at Sebring, Ohio, was measured by a thermometer at the nearby signal bungalow."
+ },
+ {
+ "id": "chunk-7",
+ "text": "## The undetected hot bearing burns off"
+ },
+ {
+ "id": "chunk-0",
+ "text": "## When the bearing failed"
+ },
+ {
+ "id": "chunk-5",
+ "text": "The bearing that caused the accident hopper car to derail was its L1 bearing, which is on the right side of the car, facing the direction of travel."
+ },
+ {
+ "id": "chunk-14",
+ "text": "Under NS rules, if a train's crew hears a critical alarm, they must stop the train right away and inspect the wheelset that triggered the alarm. The engineer began to slow the train before 8:54 p.m."
+ },
+ {
+ "id": "chunk-15",
+ "text": "But it was too late; the hopper car and 37 others derailed as the train's emergency braking system activated."
+ },
+ {
+ "id": "chunk-10",
+ "text": "## On fire but not 'critical'"
+ },
+ {
+ "id": "chunk-2",
+ "text": "A bearing (A) fits around the end of a railcar axle. The part of the axle extending into the bearing is called the journal (B) . The bearing's roller components allow the journal to turn within the bearing with little friction. However, when a bearing fails, the resulting friction can be catastrophic. In East Palestine, the journal's cylindrical shape was worn down to a cone (C) . ( See box below .)"
+ },
+ {
+ "id": "chunk-6",
+ "text": "Railcar axles are numbered starting from the end of the railcar with the brake wheel (the 'B end'). When the B end is in the front of the car (when it faces the direction of travel) the 'left-side' wheels and bearings are on the right."
+ }
+ ]
+}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/rerank.json b/examples/maintenance-triage-agent/verified-run/raw/rerank.json
index 3a7c0576b..c78a8f2a2 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/rerank.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/rerank.json
@@ -92,8 +92,21 @@
"rank": 17
}
],
- "query_id": "bearing-trend-query",
"usage": {
- "input_tokens": 2938
+ "input_tokens": 2938,
+ "credits_charged": 112,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "request": {
+ "id": "019feaa5-9299-7252-8722-bf102afa04c7",
+ "credits_debited": 112,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 2938,
+ "pairs": 18,
+ "credits_charged": 112,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "d365dc27037c3c16cfc7e6ee3ef02f1a9cfaca84c1967d22ab4c2bf4b31e6e4d"
}
}
diff --git a/examples/maintenance-triage-agent/verified-run/raw/retrieve.json b/examples/maintenance-triage-agent/verified-run/raw/retrieve.json
index c6384496f..e0617caf9 100644
--- a/examples/maintenance-triage-agent/verified-run/raw/retrieve.json
+++ b/examples/maintenance-triage-agent/verified-run/raw/retrieve.json
@@ -1028,12 +1028,16 @@
0.0556640625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 18.97879499999533,
- "queue_ms": 2.163505999988047,
- "tokenization_ms": 0.017859999999814136,
- "inference_ms": 16.66648600000542,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-787c-7300-abbe-7e536ba6a894",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 36,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
"chunks": [
@@ -2066,12 +2070,16 @@
0.0294189453125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 15.358657999996694,
- "queue_ms": 0.10244199999931425,
- "tokenization_ms": 0.016650000006279697,
- "inference_ms": 15.091482000002543,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-81bf-7a32-88ee-013ef66d9283",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 8,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -3103,12 +3111,16 @@
0.0654296875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 15.509692000009068,
- "queue_ms": 1.5471530000041867,
- "tokenization_ms": 0.017560000003413734,
- "inference_ms": 13.784053999998491,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-84d7-7100-ad9e-54de062cfb9a",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 84,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -4140,12 +4152,16 @@
0.00555419921875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.76146799999856,
- "queue_ms": 1.4572910000083539,
- "tokenization_ms": 0.018409999995583348,
- "inference_ms": 15.164564000002656,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-85a8-7d80-a5d7-5a4e7bddce29",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 122,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -5177,12 +5193,16 @@
0.0004329681396484375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 18.04185500000699,
- "queue_ms": 1.7034959999904231,
- "tokenization_ms": 0.01857999998833293,
- "inference_ms": 16.131075000004103,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8671-79f2-aef3-f7007b3ae1bf",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 104,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -6214,12 +6234,16 @@
0.025146484375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 17.337781000009045,
- "queue_ms": 2.2332079999927146,
- "tokenization_ms": 0.01820999999324613,
- "inference_ms": 14.968249999995464,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8743-74c1-bf78-0d2596a024c6",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 65,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -7251,12 +7275,16 @@
-0.001953125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 15.201044999997748,
- "queue_ms": 1.2174160000029133,
- "tokenization_ms": 0.020331000001760913,
- "inference_ms": 13.793675000002281,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8805-7782-b54b-a218bc93d2ba",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 39,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -8288,12 +8316,16 @@
1.9550323486328125e-05
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 17.58623499999601,
- "queue_ms": 2.079604999991602,
- "tokenization_ms": 0.03321100000164279,
- "inference_ms": 15.039851000011595,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-88d9-7d90-abd8-6397c738e4d5",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 70,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -9325,12 +9357,16 @@
0.07080078125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.822959999998943,
- "queue_ms": 1.8113290000059123,
- "tokenization_ms": 0.019399999999336615,
- "inference_ms": 14.856786999999372,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-89ae-7f40-93a0-a6c4765f0711",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 13,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -10362,12 +10398,16 @@
0.01019287109375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.007012000002874,
- "queue_ms": 1.3025869999978568,
- "tokenization_ms": 0.019829999999387837,
- "inference_ms": 14.548071000007212,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8a71-78c3-a0cf-55e8c3e8c78f",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 99,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -11399,12 +11439,16 @@
0.0272216796875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.752568000001133,
- "queue_ms": 1.2562969999976303,
- "tokenization_ms": 0.018960999994988015,
- "inference_ms": 15.356018000005633,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8b46-7bc0-8bf1-1622e5d6a3f7",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 58,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -12436,12 +12480,16 @@
0.01708984375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 15.712034999992852,
- "queue_ms": 2.1118049999984123,
- "tokenization_ms": 0.01670000000331129,
- "inference_ms": 13.468168000002834,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8c12-70c2-901d-a8e32fabddda",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 11,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -13473,12 +13521,16 @@
0.061279296875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.568403999997372,
- "queue_ms": 1.7165460000114763,
- "tokenization_ms": 0.015039999993859965,
- "inference_ms": 14.707634999993502,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8cdc-7360-bf7d-1be24c454842",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 65,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -14510,12 +14562,16 @@
0.06640625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 13.331344999997441,
- "queue_ms": 0.0751510000043254,
- "tokenization_ms": 0.014700000008360803,
- "inference_ms": 13.140731000007122,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8db1-7930-9a6d-89badec998f9",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 109,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -15547,12 +15603,16 @@
0.0791015625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.56818399999338,
- "queue_ms": 2.246248000005835,
- "tokenization_ms": 0.019860999998400075,
- "inference_ms": 14.177333999995767,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8e7d-7bb0-966d-ddbc714c1b79",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 82,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -16584,12 +16644,16 @@
0.02490234375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 14.217074000001162,
- "queue_ms": 0.11038200000257348,
- "tokenization_ms": 0.019610999999031264,
- "inference_ms": 13.970078999989255,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-8f51-7ef2-8156-3711a8f6270b",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 50,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -17621,12 +17685,16 @@
0.052734375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 14.765936000003421,
- "queue_ms": 1.2184260000083214,
- "tokenization_ms": 0.02100100000745897,
- "inference_ms": 13.391925999997056,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-9018-7c03-bd1b-4c3fad8dfc1d",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 30,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -18658,12 +18726,16 @@
0.027587890625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.744657000003826,
- "queue_ms": 0.11244200000248838,
- "tokenization_ms": 0.017149999990806464,
- "inference_ms": 16.198735999992664,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-90e5-72d3-954a-5f70d825615f",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 169,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
},
{
@@ -19695,12 +19767,16 @@
0.0478515625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.376660000005927,
- "queue_ms": 1.5239920000027496,
- "tokenization_ms": 0.01594000001148288,
- "inference_ms": 14.71642499998893,
- "postprocessing_ms": null
+ "request": {
+ "id": "019feaa5-91c4-72f3-95b8-2ce372016b10",
+ "credits_debited": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3",
+ "usage": {
+ "input_tokens": 68,
+ "credits_charged": 1,
+ "rate_book_version": "2026-08-09-production-bootstrap-v3"
+ },
+ "execution_identity_sha256": "391eac08033efcd20970b6f49a3e2254c39c4218bfb4292c058b891df582ad06"
}
}
],
diff --git a/examples/prior-authorization-review-agent/README.md b/examples/prior-authorization-review-agent/README.md
index f21010f4f..7f2e366a3 100644
--- a/examples/prior-authorization-review-agent/README.md
+++ b/examples/prior-authorization-review-agent/README.md
@@ -63,6 +63,10 @@ uv run review-pa --run-id local
uv run eval-pa runs/local
```
+If the process crashes, it can leave `runs/.<run-id>.lock` and a
+`runs/.<run-id>-*` staging directory. Remove those exact abandoned paths before
+retrying the same run ID.
+
Set `SIE_CLUSTER_URL` and `SIE_API_KEY` to use SIE Cloud. The default points to
a local server at `http://localhost:8080`.
@@ -72,6 +76,7 @@ a local server at `http://localhost:8080`.
runs/<run-id>/manifest.json endpoint, model IDs, source hash, latency
runs/<run-id>/raw/parse.json complete Docling response
runs/<run-id>/raw/retrieve.json embeddings and cosine ranking
+runs/<run-id>/raw/rerank-request.json exact reranker query and candidate IDs
runs/<run-id>/raw/rerank.json complete reranker response
runs/<run-id>/raw/entities.json combined GLiNER entity spans
runs/<run-id>/raw/entities-requirement-<index>.json per-requirement GLiNER entity spans
@@ -85,9 +90,7 @@ runs/<run-id>/review.json validated reproduction of the CMS
runs/<run-id>/evaluation.json source, arithmetic, and boundary checks
```
-The manifest records `SIE_SERVER_COMMIT` and `SIE_RUN_COMMAND` when they are
-present in the environment. Recorded latency includes model provisioning and is
-not a performance claim.
+Recorded latency includes model provisioning and is not a performance claim.
The verified manifest preserves the upstream-style Docling name configured
during acquisition and the canonical `docling` ID that SIE actually served.
New runs use the canonical ID directly.
diff --git a/examples/prior-authorization-review-agent/prior_authorization/review.py b/examples/prior-authorization-review-agent/prior_authorization/review.py
index c691b2ea2..ce17f7a41 100644
--- a/examples/prior-authorization-review-agent/prior_authorization/review.py
+++ b/examples/prior-authorization-review-agent/prior_authorization/review.py
@@ -1,11 +1,14 @@
from __future__ import annotations
import argparse
+import contextlib
import hashlib
import json
import math
import os
import re
+import shutil
+import tempfile
import time
from datetime import UTC, datetime
from pathlib import Path
@@ -152,6 +155,71 @@ def _write_json(path: Path, value: Any) -> None:
path.write_text(json.dumps(value, indent=2, default=_json_default) + "\n", encoding="utf-8")
+def _charged_request_rows(value: Any) -> list[tuple[dict[str, Any], dict[str, Any]]]:
+ rows: list[tuple[dict[str, Any], dict[str, Any]]] = []
+ if isinstance(value, dict):
+ request = value.get("request")
+ if isinstance(request, dict) and request.get("credits_debited"):
+ usage = request.get("usage")
+ if not isinstance(usage, dict):
+ usage = value.get("usage")
+ rows.append((request, usage if isinstance(usage, dict) else {}))
+ for child in value.values():
+ rows.extend(_charged_request_rows(child))
+ elif isinstance(value, list):
+ for child in value:
+ rows.extend(_charged_request_rows(child))
+ return rows
+
+
+def _request_rate_book_version(request: dict[str, Any], usage: dict[str, Any], source: str) -> str:
+ direct_present = "rate_book_version" in request
+ usage_present = "rate_book_version" in usage
+ direct = request.get("rate_book_version")
+ nested = usage.get("rate_book_version")
+ if direct_present and (not isinstance(direct, str) or not direct):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if usage_present and (not isinstance(nested, str) or not nested):
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ if direct_present and usage_present and direct != nested:
+ raise RuntimeError(f"{source} has conflicting rate-book versions for one request")
+ version = direct if direct_present else nested
+ if not isinstance(version, str) or not version:
+ raise RuntimeError(f"{source} has a charged request without a rate-book version")
+ return version
+
+
+def _rate_book_provenance(raw_dir: Path) -> dict[str, Any]:
+ versions: set[str] = set()
+ source_artifacts: list[str] = []
+ request_ids: list[str] = []
+ request_versions: dict[str, str] = {}
+ for path in sorted(raw_dir.glob("*.json")):
+ result = json.loads(path.read_text(encoding="utf-8"))
+ charged_rows = _charged_request_rows(result)
+ if charged_rows:
+ source_artifacts.append(f"raw/{path.name}")
+ for request, usage in charged_rows:
+ request_id = request.get("id")
+ if not isinstance(request_id, str) or not request_id:
+ raise RuntimeError(f"{path.name} has a charged request without an ID")
+ request_ids.append(request_id)
+ version = _request_rate_book_version(request, usage, path.name)
+ versions.add(version)
+ request_versions[request_id] = version
+ if len(request_ids) != len(set(request_ids)):
+ raise RuntimeError("Run contains duplicate charged request IDs")
+ if len(versions) != 1 or not request_ids:
+ raise RuntimeError("Run does not establish one settled rate book for charged requests")
+ version = versions.pop()
+ return {
+ "version": version,
+ "source_artifacts": source_artifacts,
+ "request_ids": request_ids,
+ "request_versions": request_versions,
+ }
+
+
def _dense(result: dict[str, Any]) -> list[float]:
values: Any = result.get("dense")
if isinstance(values, dict):
@@ -445,14 +513,17 @@ def _extract_gliner2_group(
return response, call
-def run(run_id: str) -> Path:
- config = load_config()
+def _validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError("run_id must be one safe directory name containing only letters, digits, '.', '_', or '-'")
+ return run_id
+
+
+def _write_run(run_dir: Path, config: dict[str, Any]) -> None:
parse_model = str(config["models"]["parse"])
- run_dir = RUNS_DIR / run_id
- if run_dir.exists():
- raise SystemExit(
- f"Run directory already exists: {run_dir}. Choose a new --run-id or remove the existing run directory."
- )
raw_dir = run_dir / "raw"
raw_dir.mkdir(parents=True, exist_ok=False)
calls: list[dict[str, Any]] = []
@@ -517,10 +588,20 @@ def run(run_id: str) -> Path:
)
started = time.perf_counter()
+ rerank_query = Item(id="cms-l1851-query", text=config["review"]["query"])
+ rerank_items = [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval]
+ _write_json(
+ raw_dir / "rerank-request.json",
+ {
+ "model": config["models"]["rerank"],
+ "query": rerank_query,
+ "items": rerank_items,
+ },
+ )
rerank_raw = client.score(
config["models"]["rerank"],
- Item(id="cms-l1851-query", text=config["review"]["query"]),
- [Item(id=row["chunk_id"], text=row["text"]) for row in retrieval],
+ rerank_query,
+ rerank_items,
wait_for_capacity=True,
provision_timeout_s=timeout,
)
@@ -650,10 +731,9 @@ def run(run_id: str) -> Path:
manifest = {
"created_at": datetime.now(UTC).isoformat(),
"endpoint": config["cluster"]["url"],
- "sie_server_commit": os.getenv("SIE_SERVER_COMMIT"),
- "run_command": os.getenv("SIE_RUN_COMMAND"),
"models": config["models"],
"fixture": {"path": str(DOCUMENT_PATH.relative_to(ROOT)), "sha256": sha256(DOCUMENT_PATH)},
+ "rate_book_provenance": _rate_book_provenance(raw_dir),
"artifacts": [{"path": str(path.relative_to(run_dir)), "sha256": sha256(path)} for path in artifact_paths],
"source": review["source"],
"calls": calls,
@@ -673,8 +753,33 @@ def run(run_id: str) -> Path:
),
}
_write_json(run_dir / "manifest.json", manifest)
- console.print(f"[green]Wrote[/] {run_dir}")
- return run_dir
+
+
+def run(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
+ config = load_config()
+ RUNS_DIR.mkdir(parents=True, exist_ok=True)
+ final_run_dir = RUNS_DIR / run_id
+ reservation_dir = RUNS_DIR / f".{run_id}.lock"
+ try:
+ reservation_dir.mkdir()
+ except FileExistsError as exc:
+ raise FileExistsError(f"Run ID is already reserved: {run_id}") from exc
+ try:
+ if final_run_dir.exists():
+ raise FileExistsError(f"Run evidence already exists at {final_run_dir}")
+ staging_dir = Path(tempfile.mkdtemp(prefix=f".{run_id}-", dir=RUNS_DIR))
+ try:
+ _write_run(staging_dir, config)
+ staging_dir.rename(final_run_dir)
+ except BaseException:
+ shutil.rmtree(staging_dir, ignore_errors=True)
+ raise
+ finally:
+ with contextlib.suppress(OSError):
+ reservation_dir.rmdir()
+ console.print(f"[green]Wrote[/] {final_run_dir}")
+ return final_run_dir
def main() -> None:
diff --git a/examples/prior-authorization-review-agent/pyproject.toml b/examples/prior-authorization-review-agent/pyproject.toml
index 4dc7baa1b..84ff79abf 100644
--- a/examples/prior-authorization-review-agent/pyproject.toml
+++ b/examples/prior-authorization-review-agent/pyproject.toml
@@ -8,7 +8,7 @@ dependencies = [
"python-dotenv>=1.0",
"pyyaml>=6.0",
"rich>=13.7",
- "sie-sdk>=0.6.23",
+ "sie-sdk==0.7.1",
]
[project.scripts]
diff --git a/examples/prior-authorization-review-agent/tests/test_review.py b/examples/prior-authorization-review-agent/tests/test_review.py
index 0320946d5..feaa8b2c5 100644
--- a/examples/prior-authorization-review-agent/tests/test_review.py
+++ b/examples/prior-authorization-review-agent/tests/test_review.py
@@ -18,6 +18,7 @@ from prior_authorization.review import (
SUBMISSION_FIELDS,
_chunks,
_group_source_scope,
+ _rate_book_provenance,
_require_gliner2_group_evidence,
_require_ranked_evidence,
_source_fragments,
@@ -29,6 +30,36 @@ from prior_authorization.review import (
ROOT = Path(__file__).resolve().parents[1]
[email protected]("run_id", ["", ".", "..", "../escape", "nested/run", "nested\\run"])
+def test_run_rejects_unsafe_run_id(run_id: str) -> None:
+ with pytest.raises(ValueError, match="safe directory name"):
+ review_module.run(run_id)
+
+
+def test_run_publishes_atomically_and_allows_retry_after_failure(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
+ monkeypatch.setattr(review_module, "load_config", dict)
+
+ def fail(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "partial.json").write_text("{}\n", encoding="utf-8")
+ raise RuntimeError("provenance failed")
+
+ monkeypatch.setattr(review_module, "_write_run", fail)
+ with pytest.raises(RuntimeError, match="provenance failed"):
+ review_module.run("retryable-run")
+ assert list(tmp_path.iterdir()) == []
+
+ def succeed(run_dir: Path, _config: dict[str, object]) -> None:
+ (run_dir / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ monkeypatch.setattr(review_module, "_write_run", succeed)
+ result = review_module.run("retryable-run")
+ assert result == tmp_path / "retryable-run"
+ assert (result / "manifest.json").is_file()
+
+
def test_docling_line_wraps_stay_in_complete_cms_statements() -> None:
markdown = """## Billing and Coding Criteria for Lower Limb Orthoses
@@ -354,7 +385,7 @@ def test_evaluate_main_exits_one_when_checks_fail(monkeypatch: pytest.MonkeyPatc
def test_run_reports_an_existing_run_directory(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
monkeypatch.setattr(review_module, "RUNS_DIR", tmp_path)
(tmp_path / "local").mkdir()
- with pytest.raises(SystemExit, match="Choose a new --run-id"):
+ with pytest.raises(FileExistsError, match="Run evidence already exists"):
review_module.run("local")
@@ -419,3 +450,140 @@ def test_verified_manifest_hashes() -> None:
for entry in manifest["artifacts"]:
artifact = manifest_path.parent / entry["path"]
assert hashlib.sha256(artifact.read_bytes()).hexdigest() == entry["sha256"]
+
+ listed_paths = {entry["path"] for entry in manifest["artifacts"]}
+ actual_paths = {
+ path.relative_to(manifest_path.parent).as_posix()
+ for path in manifest_path.parent.rglob("*")
+ if path.is_file() and path != manifest_path
+ }
+ assert listed_paths == actual_paths
+
+ raw_dir = manifest_path.parent / "raw"
+ retrieve = json.loads((raw_dir / "retrieve.json").read_text(encoding="utf-8"))
+ rerank_request = json.loads((raw_dir / "rerank-request.json").read_text(encoding="utf-8"))
+ rerank = json.loads((raw_dir / "rerank.json").read_text(encoding="utf-8"))
+ assert retrieve["query"]["id"] == "cms-l1851-query"
+ assert rerank_request["query"]["id"] == retrieve["query"]["id"]
+ assert [item["id"] for item in rerank_request["items"]] == [row["chunk_id"] for row in retrieve["ranking"]]
+ assert {row["item_id"] for row in rerank["scores"]} == {item["id"] for item in rerank_request["items"]}
+
+ provenance = manifest["rate_book_provenance"]
+ assert provenance == _rate_book_provenance(raw_dir)
+ assert len(provenance["request_ids"]) == 22
+ assert provenance["request_versions"] == {
+ request_id: provenance["version"] for request_id in provenance["request_ids"]
+ }
+ assert "raw/retrieve.json" in provenance["source_artifacts"]
+
+
+def _write_provenance_payload(path: Path, request: dict[str, object]) -> None:
+ path.write_text(
+ json.dumps({"request": request}) + "\n",
+ encoding="utf-8",
+ )
+
+
+def test_rate_book_provenance_rejects_a_charged_request_without_an_id(
+ tmp_path: Path,
+) -> None:
+ _write_provenance_payload(
+ tmp_path / "missing-id.json",
+ {"credits_debited": 1, "rate_book_version": "rate-v1"},
+ )
+
+ with pytest.raises(RuntimeError, match="charged request without an ID"):
+ _rate_book_provenance(tmp_path)
+
+
+def test_rate_book_provenance_rejects_duplicate_request_ids(tmp_path: Path) -> None:
+ request = {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-v1",
+ }
+ _write_provenance_payload(tmp_path / "first.json", request)
+ _write_provenance_payload(tmp_path / "second.json", request)
+
+ with pytest.raises(RuntimeError, match="duplicate charged request IDs"):
+ _rate_book_provenance(tmp_path)
+
+
+ "versions",
+ [("rate-v1", "rate-v2")],
+)
+def test_rate_book_provenance_requires_one_settled_version(
+ tmp_path: Path,
+ versions: tuple[str, ...],
+) -> None:
+ for index, version in enumerate(versions):
+ request: dict[str, object] = {
+ "id": f"request-{index}",
+ "credits_debited": 1,
+ }
+ if version:
+ request["rate_book_version"] = version
+ _write_provenance_payload(tmp_path / f"request-{index}.json", request)
+
+ with pytest.raises(RuntimeError, match="one settled rate book"):
+ _rate_book_provenance(tmp_path)
+
+
+def test_rate_book_provenance_rejects_a_charged_request_without_its_own_version(
+ tmp_path: Path,
+) -> None:
+ _write_provenance_payload(
+ tmp_path / "complete.json",
+ {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-v1",
+ },
+ )
+ _write_provenance_payload(
+ tmp_path / "missing.json",
+ {"id": "request-2", "credits_debited": 1},
+ )
+
+ with pytest.raises(RuntimeError, match="without a rate-book version"):
+ _rate_book_provenance(tmp_path)
+
+
+def test_rate_book_provenance_prefers_request_usage(tmp_path: Path) -> None:
+ (tmp_path / "nested-usage.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "usage": {"rate_book_version": "nested-rate-v1"},
+ },
+ "usage": {"rate_book_version": "outer-rate-v1"},
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ assert _rate_book_provenance(tmp_path)["version"] == "nested-rate-v1"
+
+
+def test_rate_book_provenance_rejects_conflicting_request_versions(
+ tmp_path: Path,
+) -> None:
+ (tmp_path / "conflict.json").write_text(
+ json.dumps(
+ {
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "direct-rate-v1",
+ "usage": {"rate_book_version": "usage-rate-v2"},
+ }
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ with pytest.raises(RuntimeError, match="conflicting rate-book versions"):
+ _rate_book_provenance(tmp_path)
diff --git a/examples/prior-authorization-review-agent/uv.lock b/examples/prior-authorization-review-agent/uv.lock
index 1d4c7cda5..60687631e 100644
--- a/examples/prior-authorization-review-agent/uv.lock
+++ b/examples/prior-authorization-review-agent/uv.lock
@@ -336,7 +336,7 @@ requires-dist = [
{ name = "python-dotenv", specifier = ">=1.0" },
{ name = "pyyaml", specifier = ">=6.0" },
{ name = "rich", specifier = ">=13.7" },
- { name = "sie-sdk", specifier = ">=0.6.23" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -463,7 +463,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.23"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -475,9 +475,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/22/c0/b0fd1ecb9cfd92271a22de027b2d924b16b1d5b526332da38e0a1265373c/sie_sdk-0.6.23.tar.gz", hash = "sha256:7a7455badd364b8bff05d3f36004ad959e524dd9fef3d1bf4148a67eb5132778", size = 197836, upload-time = "2026-07-24T04:05:17.119Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/bd/58/ecf8d19e4a5e8797781433ebaf2e5034610c896d5a5595e7c901df34099e/sie_sdk-0.6.23-py3-none-any.whl", hash = "sha256:9e3d558a3b7b5d60f3d6deeededdd865b37a8ef7505dd922b5d2749e1efe1f0d", size = 130234, upload-time = "2026-07-24T04:05:15.755Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/prior-authorization-review-agent/verified-run/manifest.json b/examples/prior-authorization-review-agent/verified-run/manifest.json
index f4ac2ae36..2bb46fa08 100644
--- a/examples/prior-authorization-review-agent/verified-run/manifest.json
+++ b/examples/prior-authorization-review-agent/verified-run/manifest.json
@@ -1,10 +1,8 @@
{
- "created_at": "2026-07-25T02:35:39.667778+00:00",
- "endpoint": "http://127.0.0.1:8080",
- "sie_server_commit": "4b5ea9ccd5d5fc07c56edfea790080b05e17f0d2",
- "run_command": "Modal exact-source reference examples against public SIE main at 4b5ea9c",
+ "created_at": "2026-08-09T22:39:59.037790+00:00",
+ "endpoint": "https://api.superlinked.com",
"models": {
- "parse": "docling-project/docling",
+ "parse": "docling",
"retrieve": "BAAI/bge-m3",
"rerank": "Qwen/Qwen3-Reranker-4B",
"entities": "urchade/gliner_multi-v2.1",
@@ -14,6 +12,70 @@
"path": "fixtures/cms-l1851-insufficient-documentation.html",
"sha256": "aec2408ff0e00b9960bf9e7879a7213942d32e8980da801a2c71acef4755cf91"
},
+ "rate_book_provenance": {
+ "version": "2026-07-26-production-bootstrap-v2",
+ "source_artifacts": [
+ "raw/entities-case-0.json",
+ "raw/entities-case-1.json",
+ "raw/entities-case-2.json",
+ "raw/entities-case-3.json",
+ "raw/entities-case-4.json",
+ "raw/entities-requirement-0.json",
+ "raw/gliner2-outcome.json",
+ "raw/gliner2-requirements.json",
+ "raw/gliner2-submission.json",
+ "raw/rerank.json",
+ "raw/retrieve.json"
+ ],
+ "request_ids": [
+ "019fe8ae-cb93-76c1-a002-61865cdc150a",
+ "019fe8ae-cc66-7c30-99ff-1be213f92617",
+ "019fe8ae-cd46-7eb2-b973-3629be2b7238",
+ "019fe8ae-ce14-7c10-a1d0-7246e1e84bdb",
+ "019fe8ae-cef4-77c3-816b-0e1a1f755960",
+ "019fe8ae-cab6-74a3-90f4-7697b2b69a8e",
+ "019fe8ae-d19f-7160-9d01-b0e62fa8dd18",
+ "019fe8ae-cfcc-7540-bb3b-0a7ac5aecc43",
+ "019fe8ae-d0b3-72f3-b9c4-a69d8ac6040e",
+ "019fe8ae-c909-7a13-a7f5-c912a97f62fb",
+ "019fe8ae-c07a-78a2-9976-7ada45b03c93",
+ "019fe8ae-c13f-7010-bf31-73dad483411c",
+ "019fe8ae-c1ee-7af3-a69d-86ec0f5b6750",
+ "019fe8ae-c2a9-7c12-990b-24f58845ff85",
+ "019fe8ae-c356-7a70-9386-c43b2ca4d064",
+ "019fe8ae-c411-7270-bc0b-087bb80d62f6",
+ "019fe8ae-c4ba-74d3-866a-3c98b780c7ec",
+ "019fe8ae-c572-7171-a5cd-586d4ca32bc9",
+ "019fe8ae-c623-73a0-9cb3-29d240dcaa34",
+ "019fe8ae-c6e2-7200-b207-79879ea49243",
+ "019fe8ae-c799-7af3-96ad-841eae76c210",
+ "019fe8ae-c849-7ad3-a775-a1684a5029db"
+ ],
+ "request_versions": {
+ "019fe8ae-cb93-76c1-a002-61865cdc150a": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-cc66-7c30-99ff-1be213f92617": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-cd46-7eb2-b973-3629be2b7238": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-ce14-7c10-a1d0-7246e1e84bdb": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-cef4-77c3-816b-0e1a1f755960": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-cab6-74a3-90f4-7697b2b69a8e": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-d19f-7160-9d01-b0e62fa8dd18": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-cfcc-7540-bb3b-0a7ac5aecc43": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-d0b3-72f3-b9c4-a69d8ac6040e": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c909-7a13-a7f5-c912a97f62fb": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c07a-78a2-9976-7ada45b03c93": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c13f-7010-bf31-73dad483411c": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c1ee-7af3-a69d-86ec0f5b6750": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c2a9-7c12-990b-24f58845ff85": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c356-7a70-9386-c43b2ca4d064": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c411-7270-bc0b-087bb80d62f6": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c4ba-74d3-866a-3c98b780c7ec": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c572-7171-a5cd-586d4ca32bc9": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c623-73a0-9cb3-29d240dcaa34": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c6e2-7200-b207-79879ea49243": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c799-7af3-96ad-841eae76c210": "2026-07-26-production-bootstrap-v2",
+ "019fe8ae-c849-7ad3-a775-a1684a5029db": "2026-07-26-production-bootstrap-v2"
+ }
+ },
"artifacts": [
{
"path": "evaluation.json",
@@ -25,27 +87,27 @@
},
{
"path": "raw/entities-case-0.json",
- "sha256": "7cc13bed69de37886d91ab709db0eb09213450bb1d177014e0a503024cfd01ff"
+ "sha256": "c6781416470c28e0c119ef561d31ee6c3b0863af26dec9d9edfecf6f2a20fe07"
},
{
"path": "raw/entities-case-1.json",
- "sha256": "842d45572b3a3e2bd84e9f60eb75c5c7227725d8d58de993ab03db37b82f8d9a"
+ "sha256": "53b0ee84ca07c8cb065bf806fa7ccc5462332520937e2a82ea2ac59cdfb3e1be"
},
{
"path": "raw/entities-case-2.json",
- "sha256": "9df72fcaacc8c68f9eed13f58982eb42a044073122cdd8dcb30400500cb9982e"
+ "sha256": "42953cdd9a8d60c7c7ab30d707b3c76e1c23cfb96996d43e8992c92ea72a907a"
},
{
"path": "raw/entities-case-3.json",
- "sha256": "f06147d7c35393adf4dff19b2600488334768120f98d72ed4d16b6f2e25cd9a9"
+ "sha256": "72e2136c207ca220bc4a2db2a062bb32454770783d2a095a092dbd6d55cc0190"
},
{
"path": "raw/entities-case-4.json",
- "sha256": "d97c6eac7c79d1fa503b09d6bce5204308de232d31176bd206c928711565dc44"
+ "sha256": "90e08a37525b1039c6f7a2e279ba4967dbb7ee48a2177acc06625b5cc953f7d3"
},
{
"path": "raw/entities-requirement-0.json",
- "sha256": "0c4ba08af8b389a288b44621514d81c0eb858070ee65a7a8c23a71a884f7a1b2"
+ "sha256": "c570d1f63188940b724fed1ccf86334c6c230277d999cb1f73298f4b14d6e0f7"
},
{
"path": "raw/entities.json",
@@ -53,15 +115,15 @@
},
{
"path": "raw/gliner2-outcome.json",
- "sha256": "c9ec5d4ff68870786a01c63c06146881433e2f3c62a952e4d013d27655e5003f"
+ "sha256": "414ad2e68bebca5f9be9accb2f27ef0da26340b214404fa1414e68ef2717146a"
},
{
"path": "raw/gliner2-requirements.json",
- "sha256": "809de1f98b358d9b6a6d094ef6e9754b32bfa28d94a8d7c2ae3312368754d3f2"
+ "sha256": "0b96f010e77c5cb6864cf3a39cc5228119188ddde6ee9b0080fb03a256383593"
},
{
"path": "raw/gliner2-submission.json",
- "sha256": "16ffc2a78032eaa3df46f105d8eb9156f471865b85a5133df9e89e5a97ed5008"
+ "sha256": "3b20a79d81ca9a153ded895d03dfb8bdfdbed050b40f6d50fef5c4e544307edc"
},
{
"path": "raw/mapped.json",
@@ -69,15 +131,19 @@
},
{
"path": "raw/parse.json",
- "sha256": "9fc49a18e11c8ad7bfbff26dbafbdeee4dfa09901d8986c0655121c6e8fb315f"
+ "sha256": "3e5e37536b9d0e49ec8064863eebb1bcb6588d9304bbda4984bb972f744afac5"
+ },
+ {
+ "path": "raw/rerank-request.json",
+ "sha256": "071117cd0e5212499f6fc20c30f4fe61869ec43c4d06454f4cb5ed2dfb743c8d"
},
{
"path": "raw/rerank.json",
- "sha256": "515be530e03bd31a476cfcbcf48bd2bc8625931d301997d501d3e4347236849c"
+ "sha256": "e6a55f114d2315a9b502878255cfb885256403a96d2405e9f8f7fd96baf1eb81"
},
{
"path": "raw/retrieve.json",
- "sha256": "50ee8a23ae7e74cf9ad49c81729191b4264652b89f254f00db4524e1f18a9cbd"
+ "sha256": "28e3ca0bd10305f9045a66b6f5404dfe2c13c27724c3905af2ae3bf87afe11f8"
},
{
"path": "review.json",
@@ -94,53 +160,53 @@
{
"stage": "parse",
"model": "docling",
- "configured_model": "docling-project/docling",
- "latency_ms": 35066.1
+ "configured_model": "docling",
+ "latency_ms": 342.6
},
{
"stage": "retrieve",
"model": "BAAI/bge-m3",
- "latency_ms": 6515.2
+ "latency_ms": 2190.6
},
{
"stage": "rerank",
"model": "Qwen/Qwen3-Reranker-4B",
- "latency_ms": 10605.6
+ "latency_ms": 433.7
},
{
"stage": "entities_requirement_0",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 11180.6
+ "latency_ms": 209.9
},
{
"stage": "entities_case_0",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 168.2
+ "latency_ms": 208.1
},
{
"stage": "entities_case_1",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 109.9
+ "latency_ms": 223.8
},
{
"stage": "entities_case_2",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 376.7
+ "latency_ms": 210.0
},
{
"stage": "entities_case_3",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 27.3
+ "latency_ms": 224.5
},
{
"stage": "entities_case_4",
"model": "urchade/gliner_multi-v2.1",
- "latency_ms": 29.5
+ "latency_ms": 220.0
},
{
"stage": "gliner2_requirements",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 10098.2,
+ "latency_ms": 220.2,
"source_chunk_ids": [
"chunk-2"
],
@@ -155,7 +221,7 @@
{
"stage": "gliner2_submission",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 56.4,
+ "latency_ms": 244.1,
"source_chunk_ids": [
"chunk-4",
"chunk-5",
@@ -174,7 +240,7 @@
{
"stage": "gliner2_outcome",
"model": "fastino/gliner2-large-v1",
- "latency_ms": 49.6,
+ "latency_ms": 223.0,
"source_chunk_ids": [
"chunk-9",
"chunk-10"
@@ -191,7 +257,7 @@
"parse",
"retrieve",
"rerank",
- "entities_requirements",
+ "entities_requirement",
"entities_case",
"gliner2_requirements",
"gliner2_submission",
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-0.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-0.json
index 6a109e063..5ad3c8c0c 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-0.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-0.json
@@ -4,5 +4,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_case_0",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-cb93-76c1-a002-61865cdc150a",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 14,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-1.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-1.json
index 5f393751b..3cf35be06 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-1.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-1.json
@@ -4,5 +4,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_case_1",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-cc66-7c30-99ff-1be213f92617",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 23,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-2.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-2.json
index 90cc0ecd2..6a8829793 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-2.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-2.json
@@ -13,5 +13,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_case_2",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-cd46-7eb2-b973-3629be2b7238",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 19,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-3.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-3.json
index eda67689f..02bc8097a 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-3.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-3.json
@@ -13,5 +13,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_case_3",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-ce14-7c10-a1d0-7246e1e84bdb",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 30,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-4.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-4.json
index 01939bd49..c589855df 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-case-4.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-case-4.json
@@ -4,5 +4,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_case_4",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-cef4-77c3-816b-0e1a1f755960",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 29,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/entities-requirement-0.json b/examples/prior-authorization-review-agent/verified-run/raw/entities-requirement-0.json
index 08578cc4b..21fa4458e 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/entities-requirement-0.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/entities-requirement-0.json
@@ -29,5 +29,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-entities_requirement_0",
- "model": "urchade/gliner_multi-v2.1"
+ "model": "urchade/gliner_multi-v2.1",
+ "request": {
+ "id": "019fe8ae-cab6-74a3-90f4-7697b2b69a8e",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 63,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-outcome.json b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-outcome.json
index dbf1b3cb7..7d431a811 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-outcome.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-outcome.json
@@ -61,5 +61,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-outcome",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe8ae-d19f-7160-9d01-b0e62fa8dd18",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 43,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-requirements.json b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-requirements.json
index add31c9ea..e5f13add2 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-requirements.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-requirements.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-requirements",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe8ae-cfcc-7540-bb3b-0a7ac5aecc43",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 49,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-submission.json b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-submission.json
index 3a430bbc9..63b0a082e 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/gliner2-submission.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/gliner2-submission.json
@@ -53,5 +53,16 @@
"classifications": [],
"objects": [],
"id": "cms-l1851-submission",
- "model": "fastino/gliner2-large-v1"
+ "model": "fastino/gliner2-large-v1",
+ "request": {
+ "id": "019fe8ae-d0b3-72f3-b9c4-a69d8ac6040e",
+ "credits_debited": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 112,
+ "credits_charged": 3,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/parse.json b/examples/prior-authorization-review-agent/verified-run/raw/parse.json
index 458686f23..5d33c8e0d 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/parse.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/parse.json
@@ -401,5 +401,16 @@
"pages": {}
}
},
- "model": "docling"
+ "model": "docling",
+ "request": {
+ "id": "019fe8ae-bf9f-7b62-a661-7be0ed61b11d",
+ "credits_debited": 0,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "pages": 0,
+ "credits_charged": 0,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/rerank-request.json b/examples/prior-authorization-review-agent/verified-run/raw/rerank-request.json
new file mode 100644
index 000000000..21bbf4917
--- /dev/null
+++ b/examples/prior-authorization-review-agent/verified-run/raw/rerank-request.json
@@ -0,0 +1,53 @@
+{
+ "model": "Qwen/Qwen3-Reranker-4B",
+ "query": {
+ "id": "cms-l1851-query",
+ "text": "For CMS's published L1851 example, what was required, what was submitted, what timing gap caused insufficient documentation, and what payment action followed?"
+ },
+ "items": [
+ {
+ "id": "chunk-3",
+ "text": "## Example of Improper Payments Due to Insufficient Documentation for Lower Limb Orthoses"
+ },
+ {
+ "id": "chunk-8",
+ "text": "### What Documentation Was Missing?"
+ },
+ {
+ "id": "chunk-2",
+ "text": "We require prior authorization, a face-to-face encounter, and written order prior to delivery for HCPCS codes L1832 and L1851. Conduct the face-to-face encounter within the 6 months before prescribing the item."
+ },
+ {
+ "id": "chunk-10",
+ "text": "The review contractor completes the claim as an insufficient documentation error, and the MAC recoups payment."
+ },
+ {
+ "id": "chunk-4",
+ "text": "A supplier bills the claim for L1851 (Knee orthosis (KO), single upright, thigh and calf, with adjustable flexion and extension joint (unicentric or polycentric), medial-lateral and rotation control, with or without varus/valgus adjustment, prefabricated, off-the-shelf) and submits the following documentation per the review contractor's request:"
+ },
+ {
+ "id": "chunk-0",
+ "text": "https://www.cms.gov/training-education/medicare-learning-networkr-mln/compliance/medicare-provider-compliance-tips/lower-limb-orthoses Page Last Modified: 02/11/2026 04:18 PM"
+ },
+ {
+ "id": "chunk-9",
+ "text": "The doctor didn't document the face-to-face encounter within 6 months of proof of delivery."
+ },
+ {
+ "id": "chunk-7",
+ "text": "- Proof of delivery with face-to-face encounter 7 months ago"
+ },
+ {
+ "id": "chunk-1",
+ "text": "## Billing &amp; Coding Criteria"
+ },
+ {
+ "id": "chunk-5",
+ "text": "- Standard written order with correct HCPCS coding"
+ },
+ {
+ "id": "chunk-6",
+ "text": "- Treating practitioner's medical record that has adequate medical necessity information"
+ }
+ ]
+}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/rerank.json b/examples/prior-authorization-review-agent/verified-run/raw/rerank.json
index f9953838d..73103c9c3 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/rerank.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/rerank.json
@@ -57,8 +57,21 @@
"rank": 10
}
],
- "query_id": "cms-l1851-query",
"usage": {
- "input_tokens": 1434
+ "input_tokens": 1434,
+ "credits_charged": 69,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "request": {
+ "id": "019fe8ae-c909-7a13-a7f5-c912a97f62fb",
+ "credits_debited": 69,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 1434,
+ "pairs": 11,
+ "credits_charged": 69,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
}
}
diff --git a/examples/prior-authorization-review-agent/verified-run/raw/retrieve.json b/examples/prior-authorization-review-agent/verified-run/raw/retrieve.json
index 9dcf051e7..c42d72177 100644
--- a/examples/prior-authorization-review-agent/verified-run/raw/retrieve.json
+++ b/examples/prior-authorization-review-agent/verified-run/raw/retrieve.json
@@ -1028,12 +1028,16 @@
-0.0157470703125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 829.1572609999989,
- "queue_ms": 0.16427299999577372,
- "tokenization_ms": 0.025731000000916993,
- "inference_ms": 828.5055480000026,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c07a-78a2-9976-7ada45b03c93",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 35,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
"chunks": [
@@ -2066,12 +2070,16 @@
-0.046630859375
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 17.291784000001087,
- "queue_ms": 1.426719000001242,
- "tokenization_ms": 0.028110000002357083,
- "inference_ms": 15.666430999999648,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c13f-7010-bf31-73dad483411c",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 63,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -3103,12 +3111,16 @@
0.033203125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 507.4487529999985,
- "queue_ms": 0.07402100000319933,
- "tokenization_ms": 0.02607100000062701,
- "inference_ms": 507.21563799999814,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c1ee-7af3-a69d-86ec0f5b6750",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 12,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -4140,12 +4152,16 @@
0.0220947265625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 17.09563000000003,
- "queue_ms": 1.5441620000018474,
- "tokenization_ms": 0.017890999998826373,
- "inference_ms": 15.401804999996216,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c2a9-7c12-990b-24f58845ff85",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 56,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -5177,12 +5193,16 @@
-0.032470703125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 14.464415999995595,
- "queue_ms": 0.06048100000555223,
- "tokenization_ms": 0.015709999999558022,
- "inference_ms": 14.278551999993283,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c356-7a70-9386-c43b2ca4d064",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 26,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -6214,12 +6234,16 @@
0.0034332275390625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 16.58282000000355,
- "queue_ms": 1.730706000003579,
- "tokenization_ms": 0.012819999994917453,
- "inference_ms": 14.729510999998752,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c411-7270-bc0b-087bb80d62f6",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 97,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -7251,12 +7275,16 @@
-0.0186767578125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 13.088328000002036,
- "queue_ms": 1.283085999993716,
- "tokenization_ms": 0.01969000000201504,
- "inference_ms": 11.655209000004163,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c4ba-74d3-866a-3c98b780c7ec",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 13,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -8288,12 +8316,16 @@
-0.042236328125
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 14.309153000006347,
- "queue_ms": 0.078561999998783,
- "tokenization_ms": 0.010530000004393969,
- "inference_ms": 14.125829000001033,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c572-7171-a5cd-586d4ca32bc9",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 21,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -9325,12 +9357,16 @@
-0.044921875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 13.310502999999585,
- "queue_ms": 0.07223200000083807,
- "tokenization_ms": 0.016640999994876893,
- "inference_ms": 13.09074699999968,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c623-73a0-9cb3-29d240dcaa34",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 17,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -10362,12 +10398,16 @@
0.03759765625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 13.701811000004227,
- "queue_ms": 1.3016660000033653,
- "tokenization_ms": 0.02821999999724767,
- "inference_ms": 12.013575999993975,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c6e2-7200-b207-79879ea49243",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 11,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -11399,12 +11439,16 @@
-0.008056640625
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 13.414323999995759,
- "queue_ms": 1.1518539999997301,
- "tokenization_ms": 0.009830000003319128,
- "inference_ms": 12.163289000000077,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c799-7af3-96ad-841eae76c210",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 24,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
},
{
@@ -12436,12 +12480,16 @@
0.005584716796875
],
"model": "BAAI/bge-m3",
- "timing": {
- "total_ms": 12.628009000003715,
- "queue_ms": 0.10293199999722447,
- "tokenization_ms": 0.019330000000650216,
- "inference_ms": 12.387503000006461,
- "postprocessing_ms": null
+ "request": {
+ "id": "019fe8ae-c849-7ad3-a775-a1684a5029db",
+ "credits_debited": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "input_tokens": 24,
+ "credits_charged": 1,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "dd8dbec2aaa952f8c5cbc8531b843026ee901d94719d5208c23ea875ac233eb5"
}
}
],
diff --git a/examples/retail-shelf-audit/README.md b/examples/retail-shelf-audit/README.md
index 1a8599e84..13b61e234 100644
--- a/examples/retail-shelf-audit/README.md
+++ b/examples/retail-shelf-audit/README.md
@@ -13,7 +13,17 @@ uv sync --frozen
uv run verify-retail-records
```
-The command verifies every checked-in checksum. It also rebuilds the selected evidence from the raw detector and OCR records, then compares the result with the reviewed case-042 fixture.
+The command verifies every checked-in checksum. It rebuilds both the pinned
+Modal-direct fixture and the August 9, 2026, prod-US evidence from raw detector
+and OCR responses, and verifies the production runtime model and request IDs.
+
+The published prod-US record has one documented post-generation privacy edit.
+Before checksumming, a non-claim-bearing person name in the first OCR response
+and `selection.json` was replaced with `[name redacted]`, and the affected paths
+were recorded in the manifest's `redactions` block. No detector result, geometry,
+product text, price, evaluation, or customer-facing claim was changed. A fresh
+run under `runs/` retains its API output and must receive the same publication
+review before it is promoted as a public record.
## Rerun through an SIE API
@@ -31,7 +41,8 @@ The command writes these files to `runs/cloud-042/`:
- `crops/`, containing the upper notice and lower shelf-label regions created from DINO boxes
- `selection.json`, with every geometry decision and source coordinate
- `evidence.json`, with the selected gap, shelf-label box, and OCR lines
-- `manifest.json`, with endpoint and request timing
+- `evaluation.json`, with the fail-closed geometry and OCR checks
+- `manifest.json`, with endpoint, model IDs, source hash, output hashes, and diagnostic timing
It fails if DINO returns no usable gap, if two aligned text candidates cannot be found, or if OCR does not return three upper lines and four distinct lower lines.
diff --git a/examples/retail-shelf-audit/pyproject.toml b/examples/retail-shelf-audit/pyproject.toml
index 796080c8a..b312dbd03 100644
--- a/examples/retail-shelf-audit/pyproject.toml
+++ b/examples/retail-shelf-audit/pyproject.toml
@@ -7,7 +7,7 @@ requires-python = ">=3.12,<3.13"
dependencies = [
"pillow>=11.0",
"python-dotenv>=1.0",
- "sie-sdk>=0.6.23",
+ "sie-sdk==0.7.1",
]
[project.scripts]
diff --git a/examples/retail-shelf-audit/retail_shelf_audit/audit.py b/examples/retail-shelf-audit/retail_shelf_audit/audit.py
index d5435cd95..88f8bf7aa 100644
--- a/examples/retail-shelf-audit/retail_shelf_audit/audit.py
+++ b/examples/retail-shelf-audit/retail_shelf_audit/audit.py
@@ -1,8 +1,12 @@
from __future__ import annotations
import argparse
+import contextlib
import hashlib
import json
+import re
+import shutil
+import tempfile
import time
from datetime import UTC, datetime
from pathlib import Path
@@ -20,6 +24,7 @@ from retail_shelf_audit.config import (
ROOT,
RUNS_DIR,
SOURCE_IMAGE,
+ RuntimeConfig,
load_config,
)
@@ -221,15 +226,78 @@ def build_evidence(
}
+def evaluation_checks(
+ objects: list[dict[str, Any]],
+ gap: dict[str, Any],
+ upper: dict[str, Any],
+ lower: dict[str, Any],
+ upper_text: str,
+ lower_text: str,
+ image_size: tuple[int, int],
+) -> dict[str, bool]:
+ try:
+ gap_ok = select_gap(objects, image_size) == gap
+ except (KeyError, TypeError, ValueError):
+ gap_ok = False
+ try:
+ candidates = nearby_price_candidates(objects, gap)
+ selected_upper, selected_lower = select_vertical_pair(candidates)
+ pair_ok = selected_upper == upper and selected_lower == lower
+ except (KeyError, TypeError, ValueError):
+ pair_ok = False
+ try:
+ ocr_ok = len(ocr_fragments(upper_text, lower_text)) == 7
+ except (TypeError, ValueError):
+ ocr_ok = False
+ return {
+ "non_strip_gap_selected": gap_ok,
+ "nearby_vertical_price_pair_selected": pair_ok,
+ "minimum_ocr_fragments_recovered": ocr_ok,
+ }
+
+
def _timed(call: Any) -> tuple[Any, float]:
started = time.perf_counter()
result = call()
return result, round((time.perf_counter() - started) * 1000, 1)
+def _validate_run_id(run_id: str) -> str:
+ if not re.fullmatch(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}", run_id) or run_id in {
+ ".",
+ "..",
+ }:
+ raise ValueError("run_id must be one safe directory name containing only letters, digits, '.', '_', or '-'")
+ return run_id
+
+
def run_audit(run_id: str) -> Path:
+ run_id = _validate_run_id(run_id)
config = load_config()
- run_dir = RUNS_DIR / run_id
+ final_run_dir = RUNS_DIR / run_id
+ RUNS_DIR.mkdir(parents=True, exist_ok=True)
+ reservation_dir = RUNS_DIR / f".{run_id}.lock"
+ try:
+ reservation_dir.mkdir()
+ except FileExistsError as exc:
+ raise FileExistsError(f"Run ID is already reserved: {run_id}") from exc
+ try:
+ if final_run_dir.exists():
+ raise FileExistsError(f"Run evidence already exists at {final_run_dir}")
+ staging_dir = Path(tempfile.mkdtemp(prefix=f".{run_id}-", dir=RUNS_DIR))
+ try:
+ _write_audit(staging_dir, run_id, config)
+ staging_dir.rename(final_run_dir)
+ except BaseException:
+ shutil.rmtree(staging_dir, ignore_errors=True)
+ raise
+ finally:
+ with contextlib.suppress(OSError):
+ reservation_dir.rmdir()
+ return final_run_dir
+
+
+def _write_audit(run_dir: Path, run_id: str, config: RuntimeConfig) -> None:
raw_dir = run_dir / "raw"
crops_dir = run_dir / "crops"
raw_dir.mkdir(parents=True, exist_ok=False)
@@ -274,6 +342,26 @@ def run_audit(run_id: str) -> Path:
ocr_timings[record["candidate_id"]] = duration_ms
upper_record, lower_record = crop_records
+ checks = evaluation_checks(
+ objects,
+ gap,
+ upper_detection,
+ lower_detection,
+ upper_record["text"],
+ lower_record["text"],
+ image_size,
+ )
+ passed = all(checks.values())
+ write_json(
+ run_dir / "evaluation.json",
+ {
+ "passed": passed,
+ "checks": checks,
+ },
+ )
+ if not passed:
+ failed = sorted(name for name, ok in checks.items() if not ok)
+ raise RuntimeError(f"Retail evidence checks failed ({', '.join(failed)}); manifest not published")
evidence = build_evidence(
gap,
lower_record["source_detection"],
@@ -303,7 +391,13 @@ def run_audit(run_id: str) -> Path:
},
)
output_paths = sorted(
- (*raw_dir.glob("*.json"), *crops_dir.glob("*.jpg"), run_dir / "selection.json", run_dir / "evidence.json")
+ (
+ *raw_dir.glob("*.json"),
+ *crops_dir.glob("*.jpg"),
+ run_dir / "selection.json",
+ run_dir / "evidence.json",
+ run_dir / "evaluation.json",
+ )
)
write_json(
run_dir / "manifest.json",
@@ -312,6 +406,7 @@ def run_audit(run_id: str) -> Path:
"completed_at": datetime.now(UTC).isoformat(),
"endpoint": config.base_url,
"execution": "SIE API",
+ "models": {"detection": DINO_MODEL, "ocr": OCR_MODEL},
"checksum_scope": "source input plus every generated evidence file except this manifest",
"source_input": {
"path": SOURCE_IMAGE.relative_to(ROOT).as_posix(),
@@ -328,9 +423,9 @@ def run_audit(run_id: str) -> Path:
"grounding_dino": detector_ms,
"lighton_ocr_candidates": ocr_timings,
},
+ "timing_note": "Diagnostic run timing, not a benchmark.",
},
)
- return run_dir
def main() -> None:
diff --git a/examples/retail-shelf-audit/retail_shelf_audit/config.py b/examples/retail-shelf-audit/retail_shelf_audit/config.py
index c1d5ae225..392bcc114 100644
--- a/examples/retail-shelf-audit/retail_shelf_audit/config.py
+++ b/examples/retail-shelf-audit/retail_shelf_audit/config.py
@@ -10,6 +10,7 @@ ROOT = Path(__file__).resolve().parent.parent
ASSETS_DIR = ROOT / "assets"
RECORDED_DIR = ROOT / "recorded" / "modal-direct"
RUNS_DIR = ROOT / "runs"
+VERIFIED_DIR = ROOT / "verified-run"
SOURCE_IMAGE = ASSETS_DIR / "042-pharmacy-oos-sign.jpg"
diff --git a/examples/retail-shelf-audit/retail_shelf_audit/verify.py b/examples/retail-shelf-audit/retail_shelf_audit/verify.py
index 809267d4e..ebdaf981e 100644
--- a/examples/retail-shelf-audit/retail_shelf_audit/verify.py
+++ b/examples/retail-shelf-audit/retail_shelf_audit/verify.py
@@ -8,13 +8,21 @@ from typing import Any
from PIL import Image
from retail_shelf_audit.audit import (
+ _ocr_text,
build_evidence,
candidate_crop_box,
nearby_price_candidates,
select_gap,
select_vertical_pair,
)
-from retail_shelf_audit.config import RECORDED_DIR, ROOT
+from retail_shelf_audit.config import (
+ DINO_MODEL,
+ OCR_MODEL,
+ RECORDED_DIR,
+ ROOT,
+ SOURCE_IMAGE,
+ VERIFIED_DIR,
+)
EXPECTED_OCR_FRAGMENTS = [
"Panadol Child",
@@ -130,7 +138,80 @@ def verify_recorded_case() -> None:
raise ValueError(f"Recorded detector evidence differs from reviewed case 042: {mismatches}")
+def verify_cloud_run() -> None:
+ manifest = _load(VERIFIED_DIR / "manifest.json")
+ if manifest.get("endpoint") != "https://api.superlinked.com":
+ raise ValueError("Verified run is not from the prod-US endpoint")
+ if manifest.get("models") != {"detection": DINO_MODEL, "ocr": OCR_MODEL}:
+ raise ValueError("Verified run model roster differs from the example config")
+ if manifest["source_input"].get("path") != SOURCE_IMAGE.relative_to(ROOT).as_posix():
+ raise ValueError("Verified run source image path differs")
+ if manifest["source_input"]["sha256"] != sha256(SOURCE_IMAGE):
+ raise ValueError("Verified run source image checksum differs")
+ expected_outputs = {
+ "crops/candidate-1.jpg",
+ "crops/candidate-2.jpg",
+ "evaluation.json",
+ "evidence.json",
+ "raw/grounding-dino.json",
+ "raw/lighton-ocr-candidate-1.json",
+ "raw/lighton-ocr-candidate-2.json",
+ "selection.json",
+ }
+ output_records = manifest.get("outputs")
+ if not isinstance(output_records, list):
+ raise TypeError("Verified run has no output checksum records")
+ output_paths = [record.get("path") for record in output_records if isinstance(record, dict)]
+ if len(output_paths) != len(output_records) or set(output_paths) != expected_outputs:
+ raise ValueError("Verified run output checksum scope differs")
+ for record in output_records:
+ path = VERIFIED_DIR / record["path"]
+ if sha256(path) != record["sha256"]:
+ raise ValueError(f"Verified run checksum differs for {record['path']}")
+
+ detector = _load(VERIFIED_DIR / "raw" / "grounding-dino.json")
+ upper_ocr = _load(VERIFIED_DIR / "raw" / "lighton-ocr-candidate-1.json")
+ lower_ocr = _load(VERIFIED_DIR / "raw" / "lighton-ocr-candidate-2.json")
+ request_ids: list[str] = []
+ for result, model in (
+ (detector, DINO_MODEL),
+ (upper_ocr, OCR_MODEL),
+ (lower_ocr, OCR_MODEL),
+ ):
+ if result.get("model") != model:
+ raise ValueError(f"Verified runtime model differs for {model}")
+ request = result.get("request")
+ request_id = request.get("id") if isinstance(request, dict) else None
+ if not isinstance(request_id, str) or not request_id:
+ raise ValueError(f"Verified response has no request ID for {model}")
+ request_ids.append(request_id)
+ if len(request_ids) != len(set(request_ids)):
+ raise ValueError("Verified responses reuse a request ID")
+
+ gap = select_gap(detector["objects"], (4032, 3024))
+ _upper, lower = select_vertical_pair(nearby_price_candidates(detector["objects"], gap))
+ actual = build_evidence(
+ gap,
+ lower,
+ _ocr_text(upper_ocr),
+ _ocr_text(lower_ocr),
+ )
+ if actual != _load(VERIFIED_DIR / "evidence.json"):
+ raise ValueError("Verified production evidence is not reproducible from raw responses")
+ expected_evaluation = {
+ "passed": True,
+ "checks": {
+ "non_strip_gap_selected": True,
+ "nearby_vertical_price_pair_selected": True,
+ "minimum_ocr_fragments_recovered": True,
+ },
+ }
+ if _load(VERIFIED_DIR / "evaluation.json") != expected_evaluation:
+ raise ValueError("Verified production evaluation did not pass")
+
+
def main() -> None:
verify_manifest()
verify_recorded_case()
- print("Recorded checksums, DINO geometry, and derived-crop OCR evidence are valid.")
+ verify_cloud_run()
+ print("Recorded and prod-US checksums, model IDs, geometry, and OCR evidence are valid.")
diff --git a/examples/retail-shelf-audit/tests/test_audit.py b/examples/retail-shelf-audit/tests/test_audit.py
index e673551f3..58123ec8c 100644
--- a/examples/retail-shelf-audit/tests/test_audit.py
+++ b/examples/retail-shelf-audit/tests/test_audit.py
@@ -1,10 +1,14 @@
from __future__ import annotations
+from pathlib import Path
+
import pytest
+import retail_shelf_audit.audit as audit_module
from retail_shelf_audit.audit import (
build_evidence,
candidate_crop_box,
+ evaluation_checks,
nearby_price_candidates,
ocr_fragments,
select_gap,
@@ -13,6 +17,18 @@ from retail_shelf_audit.audit import (
from retail_shelf_audit.verify import EXPECTED_OCR_FRAGMENTS
[email protected]("run_id", ["", ".", "..", "../escape", "nested/run", "nested\\run"])
+def test_run_audit_rejects_unsafe_run_id_before_setup(run_id: str, monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(
+ audit_module,
+ "load_config",
+ lambda: pytest.fail("load_config must not run for an unsafe run ID"),
+ )
+
+ with pytest.raises(ValueError, match="safe directory name"):
+ audit_module.run_audit(run_id)
+
+
def _objects() -> list[dict]:
return [
{"label": "empty shelf space", "score": 0.252384, "bbox": [8.0, 2552.5, 4019.2, 210.1]},
@@ -108,3 +124,120 @@ def test_build_evidence_preserves_model_outputs() -> None:
},
"ocr_fragments": EXPECTED_OCR_FRAGMENTS,
}
+
+
+def test_evaluation_checks_are_derived_from_selected_evidence() -> None:
+ upper, lower = select_vertical_pair(nearby_price_candidates(_objects(), _gap()))
+ checks = evaluation_checks(
+ _objects(),
+ _gap(),
+ upper,
+ lower,
+ "I am temporarily\nout-of-stock\nfrom our supplier",
+ "Panadol Child\n5-12Yrs Elixir 100ml\n101760\n10⁹⁹",
+ (4032, 3024),
+ )
+ assert checks == {
+ "non_strip_gap_selected": True,
+ "nearby_vertical_price_pair_selected": True,
+ "minimum_ocr_fragments_recovered": True,
+ }
+
+
+def test_evaluation_checks_fail_on_incomplete_ocr() -> None:
+ upper, lower = select_vertical_pair(nearby_price_candidates(_objects(), _gap()))
+ checks = evaluation_checks(
+ _objects(),
+ _gap(),
+ upper,
+ lower,
+ "one\ntwo",
+ "three\nfour",
+ (4032, 3024),
+ )
+ assert checks == {
+ "non_strip_gap_selected": True,
+ "nearby_vertical_price_pair_selected": True,
+ "minimum_ocr_fragments_recovered": False,
+ }
+
+
+def test_evaluation_checks_reject_a_full_width_strip_gap() -> None:
+ upper, lower = select_vertical_pair(nearby_price_candidates(_objects(), _gap()))
+ checks = evaluation_checks(
+ _objects(),
+ _objects()[0],
+ upper,
+ lower,
+ "I am temporarily\nout-of-stock\nfrom our supplier",
+ "Panadol Child\n5-12Yrs Elixir 100ml\n101760\n10⁹⁹",
+ (4032, 3024),
+ )
+
+ assert checks["non_strip_gap_selected"] is False
+
+
+def test_evaluation_checks_reject_a_non_nearby_price_pair() -> None:
+ checks = evaluation_checks(
+ _objects(),
+ _gap(),
+ _objects()[5],
+ _price(),
+ "I am temporarily\nout-of-stock\nfrom our supplier",
+ "Panadol Child\n5-12Yrs Elixir 100ml\n101760\n10⁹⁹",
+ (4032, 3024),
+ )
+
+ assert checks["nearby_vertical_price_pair_selected"] is False
+
+
+def test_evaluation_checks_reject_a_valid_but_lower_ranked_pair() -> None:
+ gap = {
+ "label": "empty shelf space",
+ "score": 0.9,
+ "bbox": [0, 0, 1000, 1000],
+ }
+ best_upper = {"label": "price tag", "score": 0.9, "bbox": [100, 100, 100, 100]}
+ best_lower = {"label": "price tag", "score": 0.8, "bbox": [100, 210, 100, 100]}
+ other_upper = {"label": "price tag", "score": 0.4, "bbox": [400, 100, 100, 100]}
+ other_lower = {"label": "price tag", "score": 0.3, "bbox": [400, 210, 100, 100]}
+ objects = [gap, best_upper, best_lower, other_upper, other_lower]
+
+ checks = evaluation_checks(
+ objects,
+ gap,
+ other_upper,
+ other_lower,
+ "I am temporarily\nout-of-stock\nfrom our supplier",
+ "Panadol Child\n5-12Yrs Elixir 100ml\n101760\n10⁹⁹",
+ (2000, 2000),
+ )
+
+ assert checks["nearby_vertical_price_pair_selected"] is False
+
+
+def test_run_audit_cleans_failed_staging_and_allows_retry(
+ tmp_path: Path,
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(audit_module, "RUNS_DIR", tmp_path)
+ monkeypatch.setattr(audit_module, "load_config", lambda: object())
+
+ def fail(run_dir: Path, _run_id: str, _config: object) -> None:
+ (run_dir / "partial.json").write_text("partial", encoding="utf-8")
+ raise RuntimeError("evidence failed")
+
+ monkeypatch.setattr(audit_module, "_write_audit", fail)
+ with pytest.raises(RuntimeError, match="evidence failed"):
+ audit_module.run_audit("retryable")
+
+ assert list(tmp_path.iterdir()) == []
+
+ def succeed(run_dir: Path, _run_id: str, _config: object) -> None:
+ (run_dir / "manifest.json").write_text("{}\n", encoding="utf-8")
+
+ monkeypatch.setattr(audit_module, "_write_audit", succeed)
+ final_run_dir = audit_module.run_audit("retryable")
+
+ assert final_run_dir == tmp_path / "retryable"
+ assert (final_run_dir / "manifest.json").is_file()
diff --git a/examples/retail-shelf-audit/tests/test_verify.py b/examples/retail-shelf-audit/tests/test_verify.py
index 39c5469c3..9c912532c 100644
--- a/examples/retail-shelf-audit/tests/test_verify.py
+++ b/examples/retail-shelf-audit/tests/test_verify.py
@@ -1,4 +1,12 @@
-from retail_shelf_audit.verify import EXPECTED_DETECTIONS, EXPECTED_OCR_FRAGMENTS, recorded_evidence
+import pytest
+
+import retail_shelf_audit.verify as verify_module
+from retail_shelf_audit.verify import (
+ EXPECTED_DETECTIONS,
+ EXPECTED_OCR_FRAGMENTS,
+ recorded_evidence,
+ verify_cloud_run,
+)
def test_recorded_evidence_matches_verified_case() -> None:
@@ -6,3 +14,55 @@ def test_recorded_evidence_matches_verified_case() -> None:
for key, expected in EXPECTED_DETECTIONS.items():
assert evidence[key] == expected
assert evidence["ocr_fragments"] == EXPECTED_OCR_FRAGMENTS
+
+
+def test_verified_cloud_run_rejects_a_different_source_path(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ load = verify_module._load
+
+ def changed_load(path):
+ value = load(path)
+ if path.name == "manifest.json":
+ value["source_input"]["path"] = "assets/different.jpg"
+ return value
+
+ monkeypatch.setattr(verify_module, "_load", changed_load)
+
+ with pytest.raises(ValueError, match="source image path differs"):
+ verify_cloud_run()
+
+
+def test_verified_cloud_run_rejects_reused_request_ids(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ load = verify_module._load
+
+ def changed_load(path):
+ value = load(path)
+ if path.name == "lighton-ocr-candidate-2.json":
+ sibling = load(path.with_name("lighton-ocr-candidate-1.json"))
+ value["request"]["id"] = sibling["request"]["id"]
+ return value
+
+ monkeypatch.setattr(verify_module, "_load", changed_load)
+
+ with pytest.raises(ValueError, match="reuse a request ID"):
+ verify_cloud_run()
+
+
+def test_verified_cloud_run_rejects_a_non_string_request_id(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ load = verify_module._load
+
+ def changed_load(path):
+ value = load(path)
+ if path.name == "grounding-dino.json":
+ value["request"]["id"] = 42
+ return value
+
+ monkeypatch.setattr(verify_module, "_load", changed_load)
+
+ with pytest.raises(ValueError, match="has no request ID"):
+ verify_cloud_run()
diff --git a/examples/retail-shelf-audit/uv.lock b/examples/retail-shelf-audit/uv.lock
index e5e5fdf35..00040fb52 100644
--- a/examples/retail-shelf-audit/uv.lock
+++ b/examples/retail-shelf-audit/uv.lock
@@ -391,7 +391,7 @@ dev = [
requires-dist = [
{ name = "pillow", specifier = ">=11.0" },
{ name = "python-dotenv", specifier = ">=1.0" },
- { name = "sie-sdk", specifier = ">=0.6.23" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
]
[package.metadata.requires-dev]
@@ -427,7 +427,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.26"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -439,9 +439,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/e2/4c/f2bc61df6696118c56348cc60a5f2c93ab2395ce2b004d8a11a53aa0a28d/sie_sdk-0.6.26.tar.gz", hash = "sha256:a71b1138e73a424c233d61026962152954276bab9a10f15d0ea47c0c18602137", size = 211819, upload-time = "2026-08-02T13:46:07.807Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/db/94/d7681d918d5a5c1d8e1301cf72743062c7e2e4c748d439061531fe1d2e0b/sie_sdk-0.6.26-py3-none-any.whl", hash = "sha256:9120e48f2290ede39ea53c21bb0f61c51e2a8f6ba9e222a5ef2af0bdc2161127", size = 138651, upload-time = "2026-08-02T13:46:06.435Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
diff --git a/examples/retail-shelf-audit/verified-run/crops/candidate-1.jpg b/examples/retail-shelf-audit/verified-run/crops/candidate-1.jpg
new file mode 100644
index 000000000..477cdff26
Binary files /dev/null and b/examples/retail-shelf-audit/verified-run/crops/candidate-1.jpg differ
diff --git a/examples/retail-shelf-audit/verified-run/crops/candidate-2.jpg b/examples/retail-shelf-audit/verified-run/crops/candidate-2.jpg
new file mode 100644
index 000000000..2f7740dec
Binary files /dev/null and b/examples/retail-shelf-audit/verified-run/crops/candidate-2.jpg differ
diff --git a/examples/retail-shelf-audit/verified-run/evaluation.json b/examples/retail-shelf-audit/verified-run/evaluation.json
new file mode 100644
index 000000000..b1ec997ce
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/evaluation.json
@@ -0,0 +1,8 @@
+{
+ "passed": true,
+ "checks": {
+ "non_strip_gap_selected": true,
+ "nearby_vertical_price_pair_selected": true,
+ "minimum_ocr_fragments_recovered": true
+ }
+}
diff --git a/examples/retail-shelf-audit/verified-run/evidence.json b/examples/retail-shelf-audit/verified-run/evidence.json
new file mode 100644
index 000000000..48afbcd40
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/evidence.json
@@ -0,0 +1,31 @@
+{
+ "gap_detection": {
+ "label": "empty shelf space",
+ "score": 0.264358,
+ "bbox_xywh": [
+ 2043.0,
+ 2137.0,
+ 623.0,
+ 403.0
+ ]
+ },
+ "price_detection": {
+ "label": "price tag",
+ "score": 0.251096,
+ "bbox_xywh": [
+ 2235.0,
+ 2559.0,
+ 398.0,
+ 186.0
+ ]
+ },
+ "ocr_fragments": [
+ "Panadol Child",
+ "5-12Yrs Elixir 100ml",
+ "101760",
+ "10\u2079\u2079",
+ "I am temporarily",
+ "out-of-stock",
+ "from our supplier"
+ ]
+}
diff --git a/examples/retail-shelf-audit/verified-run/manifest.json b/examples/retail-shelf-audit/verified-run/manifest.json
new file mode 100644
index 000000000..476336cbc
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/manifest.json
@@ -0,0 +1,68 @@
+{
+ "run_id": "prod-us-20260809-final",
+ "completed_at": "2026-08-09T14:32:06.544480+00:00",
+ "endpoint": "https://api.superlinked.com",
+ "execution": "SIE API",
+ "models": {
+ "detection": "IDEA-Research/grounding-dino-base",
+ "ocr": "lightonai/LightOnOCR-2-1B"
+ },
+ "checksum_scope": "source input plus every generated evidence file except this manifest",
+ "redactions": [
+ {
+ "paths": [
+ "raw/lighton-ocr-candidate-1.json",
+ "selection.json"
+ ],
+ "field": "OCR text",
+ "replacement": "[name redacted]",
+ "reason": "privacy"
+ }
+ ],
+ "source_input": {
+ "path": "assets/042-pharmacy-oos-sign.jpg",
+ "sha256": "a8654b3a7c2be143fb788f91aeef0c09b23feaee0984151eefed95f6c7a96f63"
+ },
+ "outputs": [
+ {
+ "path": "crops/candidate-1.jpg",
+ "sha256": "3320b8db154525f4ffb20842d60935eb432063a14411f5088f500d089bff9047"
+ },
+ {
+ "path": "crops/candidate-2.jpg",
+ "sha256": "8c46a297dbe38c474ec227dde16d8d4a3e9c38abbbfe454f46749d5160cc8e92"
+ },
+ {
+ "path": "evaluation.json",
+ "sha256": "8fc0edcd9b3208e4c342d302f69fffb2ba212d12486ed2e602adbe4447d9218f"
+ },
+ {
+ "path": "evidence.json",
+ "sha256": "b96272e94557252fe69a2ae7e5ea8358607a80344a6fb8127a1fa2b9ea723e00"
+ },
+ {
+ "path": "raw/grounding-dino.json",
+ "sha256": "30ae2be41a931c518f3c7d79138219e09de2a0e75288e5241e3c52878e04de4b"
+ },
+ {
+ "path": "raw/lighton-ocr-candidate-1.json",
+ "sha256": "4f8e737087a51f5aa105d66c5d4b090c78fbfef20f923bc97ffc84ca68786969"
+ },
+ {
+ "path": "raw/lighton-ocr-candidate-2.json",
+ "sha256": "8fd35b167d912e74aef2d7fdbb27131267f3ccb6b145adc9a6dfa3fd3653825f"
+ },
+ {
+ "path": "selection.json",
+ "sha256": "2f8d7619a8d22071a9a2a000adbc3b84ad4da42f91f754c3f4ab462789ae1b61"
+ }
+ ],
+ "timing_ms": {
+ "grounding_dino": 3172.0,
+ "lighton_ocr_candidates": {
+ "candidate-1": 752.0,
+ "candidate-2": 809.1
+ }
+ },
+ "timing_note": "Diagnostic run timing, not a benchmark."
+}
diff --git a/examples/retail-shelf-audit/verified-run/raw/grounding-dino.json b/examples/retail-shelf-audit/verified-run/raw/grounding-dino.json
new file mode 100644
index 000000000..0e0cc81b0
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/raw/grounding-dino.json
@@ -0,0 +1,300 @@
+{
+ "entities": [],
+ "relations": [],
+ "classifications": [],
+ "objects": [
+ {
+ "label": "price tag",
+ "score": 0.38358360528945923,
+ "bbox": [
+ 1259,
+ 1094,
+ 431,
+ 517
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.38885006308555603,
+ "bbox": [
+ 2298,
+ 1104,
+ 438,
+ 520
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.3944924771785736,
+ "bbox": [
+ 1725,
+ 1100,
+ 434,
+ 515
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.3141557276248932,
+ "bbox": [
+ 2193,
+ 1,
+ 451,
+ 341
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.31048527359962463,
+ "bbox": [
+ 1708,
+ 0,
+ 447,
+ 331
+ ]
+ },
+ {
+ "label": "out of stock sign price tag",
+ "score": 0.3453260362148285,
+ "bbox": [
+ 3193,
+ 1105,
+ 445,
+ 519
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.274545818567276,
+ "bbox": [
+ 1497,
+ 2558,
+ 335,
+ 180
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.25109636783599854,
+ "bbox": [
+ 2235,
+ 2559,
+ 398,
+ 186
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2366926223039627,
+ "bbox": [
+ 2237,
+ 2561,
+ 335,
+ 181
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2755194306373596,
+ "bbox": [
+ 784,
+ 2559,
+ 349,
+ 174
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2496301382780075,
+ "bbox": [
+ 2,
+ 2556,
+ 312,
+ 178
+ ]
+ },
+ {
+ "label": "empty shelf space",
+ "score": 0.26435837149620056,
+ "bbox": [
+ 2043,
+ 2137,
+ 623,
+ 403
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.23005375266075134,
+ "bbox": [
+ 2300,
+ 2318,
+ 335,
+ 244
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2465333193540573,
+ "bbox": [
+ 2864,
+ 2572,
+ 338,
+ 177
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2568320035934448,
+ "bbox": [
+ 3329,
+ 0,
+ 446,
+ 336
+ ]
+ },
+ {
+ "label": "price",
+ "score": 0.2030746340751648,
+ "bbox": [
+ 3723,
+ 1107,
+ 306,
+ 194
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.21502088010311127,
+ "bbox": [
+ 924,
+ 378,
+ 395,
+ 708
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2267836332321167,
+ "bbox": [
+ 1723,
+ 1753,
+ 321,
+ 773
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.21617697179317474,
+ "bbox": [
+ 1099,
+ 2772,
+ 404,
+ 245
+ ]
+ },
+ {
+ "label": "price",
+ "score": 0.21354113519191742,
+ "bbox": [
+ 1,
+ 1090,
+ 654,
+ 183
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.22988080978393555,
+ "bbox": [
+ 3488,
+ 2578,
+ 340,
+ 183
+ ]
+ },
+ {
+ "label": "empty shelf space",
+ "score": 0.2067338526248932,
+ "bbox": [
+ 4,
+ 1087,
+ 1267,
+ 204
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2223622351884842,
+ "bbox": [
+ 1403,
+ 1745,
+ 325,
+ 776
+ ]
+ },
+ {
+ "label": "empty shelf space",
+ "score": 0.2420264333486557,
+ "bbox": [
+ 7,
+ 2554,
+ 4019,
+ 207
+ ]
+ },
+ {
+ "label": "price",
+ "score": 0.21060390770435333,
+ "bbox": [
+ 1328,
+ 433,
+ 359,
+ 653
+ ]
+ },
+ {
+ "label": "price tag",
+ "score": 0.2233770787715912,
+ "bbox": [
+ 3768,
+ 0,
+ 261,
+ 332
+ ]
+ },
+ {
+ "label": "empty shelf space",
+ "score": 0.21700547635555267,
+ "bbox": [
+ 4,
+ 1269,
+ 1265,
+ 314
+ ]
+ },
+ {
+ "label": "empty shelf space",
+ "score": 0.2639787197113037,
+ "bbox": [
+ 0,
+ 1090,
+ 4031,
+ 213
+ ]
+ }
+ ],
+ "id": "hitl-042",
+ "model": "IDEA-Research/grounding-dino-base",
+ "request": {
+ "id": "019fe6f0-18bd-70c0-a90d-f312371e212d",
+ "credits_debited": 31,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "images": 1,
+ "credits_charged": 31,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ }
+}
diff --git a/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-1.json b/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-1.json
new file mode 100644
index 000000000..cc2e16d03
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-1.json
@@ -0,0 +1,28 @@
+{
+ "entities": [
+ {
+ "text": "I am temporarily \nout-of-stock \nfrom our supplier \n\nPlease ask our friendly staff \nfor a substitute. \n\n[name redacted]",
+ "label": "markdown",
+ "score": 1.0,
+ "start": null,
+ "end": null,
+ "bbox": null
+ }
+ ],
+ "relations": [],
+ "classifications": [],
+ "objects": [],
+ "id": "candidate-1",
+ "model": "lightonai/LightOnOCR-2-1B",
+ "request": {
+ "id": "019fe6f0-2381-7ec0-bcf9-87324524058a",
+ "credits_debited": 1133,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "pages": 1,
+ "credits_charged": 1133,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "ab0a02321f5880f6735446dc9d9ae7066b16d0e030f526566693d019c02f4f38"
+ }
+}
diff --git a/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-2.json b/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-2.json
new file mode 100644
index 000000000..80ceb827b
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/raw/lighton-ocr-candidate-2.json
@@ -0,0 +1,28 @@
+{
+ "entities": [
+ {
+ "text": "Please ask our friendly staff\n\nPanadol Child \n5-12Yrs Elixir 100ml \n101760 \n10\u2079\u2079 \n1 MONTHS \n10-2 YEARS \nr care.",
+ "label": "markdown",
+ "score": 1.0,
+ "start": null,
+ "end": null,
+ "bbox": null
+ }
+ ],
+ "relations": [],
+ "classifications": [],
+ "objects": [],
+ "id": "candidate-2",
+ "model": "lightonai/LightOnOCR-2-1B",
+ "request": {
+ "id": "019fe6f0-2601-71c1-a5f4-70df61af9ec7",
+ "credits_debited": 1133,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "usage": {
+ "pages": 1,
+ "credits_charged": 1133,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2"
+ },
+ "execution_identity_sha256": "ab0a02321f5880f6735446dc9d9ae7066b16d0e030f526566693d019c02f4f38"
+ }
+}
diff --git a/examples/retail-shelf-audit/verified-run/selection.json b/examples/retail-shelf-audit/verified-run/selection.json
new file mode 100644
index 000000000..b69efcc17
--- /dev/null
+++ b/examples/retail-shelf-audit/verified-run/selection.json
@@ -0,0 +1,61 @@
+{
+ "strategy": "non-strip gap, nearby price-tag candidates, vertically aligned upper/lower pair",
+ "gap_detection": {
+ "label": "empty shelf space",
+ "score": 0.264358,
+ "bbox_xywh": [
+ 2043.0,
+ 2137.0,
+ 623.0,
+ 403.0
+ ]
+ },
+ "upper_candidate_role": "notice",
+ "upper_candidate_id": "candidate-1",
+ "lower_candidate_role": "shelf_label",
+ "lower_candidate_id": "candidate-2",
+ "candidates": [
+ {
+ "candidate_id": "candidate-1",
+ "source_detection": {
+ "label": "price tag",
+ "score": 0.230054,
+ "bbox_xywh": [
+ 2300.0,
+ 2318.0,
+ 335.0,
+ 244.0
+ ]
+ },
+ "source_crop_xyxy": [
+ 2233,
+ 2257,
+ 2702,
+ 2623
+ ],
+ "display_scale": 3,
+ "ocr_text": "I am temporarily \nout-of-stock \nfrom our supplier \n\nPlease ask our friendly staff \nfor a substitute. \n\n[name redacted]"
+ },
+ {
+ "candidate_id": "candidate-2",
+ "source_detection": {
+ "label": "price tag",
+ "score": 0.251096,
+ "bbox_xywh": [
+ 2235.0,
+ 2559.0,
+ 398.0,
+ 186.0
+ ]
+ },
+ "source_crop_xyxy": [
+ 2155,
+ 2512,
+ 2713,
+ 2792
+ ],
+ "display_scale": 3,
+ "ocr_text": "Please ask our friendly staff\n\nPanadol Child \n5-12Yrs Elixir 100ml \n101760 \n10\u2079\u2079 \n1 MONTHS \n10-2 YEARS \nr care."
+ }
+ ]
+}
diff --git a/examples/taxonomy-classification/README.md b/examples/taxonomy-classification/README.md
index 5cd7c2343..c00a2239f 100644
--- a/examples/taxonomy-classification/README.md
+++ b/examples/taxonomy-classification/README.md
@@ -39,26 +39,25 @@ uv run eval-catalog-agent \
--output eval/catalog-agent.json
```
-The recorded run moves exact-path matches from `42/100` for copy alone to
-`54/100` for the catalog agent. Macro hierarchical F1 moves from `0.6710` to
-`0.7446`; six listings are flagged for review. Shopify recommends hierarchical
-F1 for this benchmark because a nearby taxonomy branch and a different
-top-level category should not count as the same error.
+The recorded prod-US run moves exact-path matches from `41/100` for copy alone
+and `50/100` for image plus copy to `62/100` for the catalog agent. Macro
+hierarchical F1 moves from `0.665525` and `0.728438`, respectively, to
+`0.777686`; five listings are flagged for review. Shopify recommends
+hierarchical F1 for this benchmark because a nearby taxonomy branch and a
+different top-level category should not count as the same error.
The run summary is in
[`results/catalog-agent-summary.json`](results/catalog-agent-summary.json).
-### What the first 55 misses showed
+### What the remaining 38 misses showed
-Image plus copy fixed 10 copy-only mistakes and introduced 7 regressions. Of
-the 55 image-plus-copy misses, 27 selected a nearby branch, 18 selected the
-wrong top-level branch, 6 selected an ancestor or descendant, and 4 stayed
-under the right top-level branch but missed elsewhere.
-
-The reference path was present in every supplied candidate list. It appeared
-in the union of the copy-only and image-plus-copy top two for 75 listings, while
-the best static blend of both reranker scores reached only 48 exact matches.
-That gap led to the verifier step.
+Of the catalog agent's 38 misses, 13 selected the wrong top-level branch, 4
+selected an ancestor or descendant, and 21 stayed under the right top-level
+branch but selected a different path. The reference path appeared in the union
+of the copy-only and image-plus-copy top two for 74 listings, which leaves 26
+rows where the verifier could not select it. The checked evaluation preserves
+the full candidate list, union, scores, source hashes, and request provenance
+for every row so this boundary is reproducible.
Several reference labels also conflict with the listing itself. Examples
include a hydraulic pump labeled as a cone crusher and a decorative banner
diff --git a/examples/taxonomy-classification/pyproject.toml b/examples/taxonomy-classification/pyproject.toml
index 20df9b500..95216401c 100644
--- a/examples/taxonomy-classification/pyproject.toml
+++ b/examples/taxonomy-classification/pyproject.toml
@@ -9,7 +9,7 @@ dependencies = [
"pillow>=12.2.0",
"polars>=1.40.0",
"python-dotenv>=1.2.2",
- "sie-sdk==0.6.24",
+ "sie-sdk==0.7.1",
"tqdm>=4.67.3",
]
diff --git a/examples/taxonomy-classification/results/catalog-agent-summary.json b/examples/taxonomy-classification/results/catalog-agent-summary.json
index 77278453b..e7f03d2df 100644
--- a/examples/taxonomy-classification/results/catalog-agent-summary.json
+++ b/examples/taxonomy-classification/results/catalog-agent-summary.json
@@ -1,11 +1,17 @@
{
"record_type": "sie_catalog_agent_evaluation_summary",
- "run_at": "2026-07-28T05:39:23.578423Z",
+ "run_at": "2026-08-09T23:15:52.551215Z",
+ "endpoint": "https://api.superlinked.com",
+ "run_command": "eval-catalog-agent --offset 0 --limit 100 --cache-dir .cache/catalog-agent --output verified-run/evaluation.json --summary-output results/catalog-agent-summary.json",
+ "timing_note": "Per-call timings are diagnostic, not benchmark results.",
"dataset": {
"id": "Shopify/product-catalogue",
"revision": "d5c517c509f5aca99053897ef1de797d6d7e5aa5",
"split": "train",
- "row_window": [0, 99]
+ "row_window": [
+ 0,
+ 99
+ ]
},
"models": {
"reranker": {
@@ -20,19 +26,43 @@
"candidate_rule": "Union of the two highest-scoring paths from copy-only and image-plus-copy reranker calls.",
"response_schema": {
"type": "object",
- "required": ["selected_index", "needs_review"],
+ "properties": {
+ "selected_index": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 3,
+ "description": "The request schema tightens this bound to the number of candidate-union entries minus one."
+ },
+ "needs_review": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "selected_index",
+ "needs_review"
+ ],
"additionalProperties": false
},
"metrics": {
- "copy_only_exact_path_correct": 42,
- "image_plus_copy_exact_path_correct": 45,
- "agent_exact_path_correct": 54,
+ "sample_size": 100,
+ "exact_path_correct": 62,
+ "exact_path_accuracy": 0.62,
+ "top_level_correct": 87,
+ "top_level_accuracy": 0.87,
+ "macro_hierarchical_f1": 0.7776861471861471,
+ "needs_review": 5,
+ "copy_only_exact_path_correct": 41,
"copy_only_top_level_correct": 81,
- "image_plus_copy_top_level_correct": 82,
- "agent_top_level_correct": 86,
- "copy_only_macro_hierarchical_f1": 0.6709681429681428,
- "image_plus_copy_macro_hierarchical_f1": 0.6881536796536796,
- "agent_macro_hierarchical_f1": 0.7446406926406923,
- "needs_review": 6
+ "copy_only_macro_hierarchical_f1": 0.6655252525252524,
+ "image_plus_copy_exact_path_correct": 50,
+ "image_plus_copy_top_level_correct": 85,
+ "image_plus_copy_macro_hierarchical_f1": 0.7284378399378397,
+ "agent_exact_path_correct": 62,
+ "agent_top_level_correct": 87,
+ "agent_macro_hierarchical_f1": 0.7776861471861471
+ },
+ "evaluation": {
+ "path": "verified-run/evaluation.json",
+ "sha256": "8a8247fc5897b31aea13131950bb9abeef609446ac7f1b4fb5e80f24e7152329"
}
}
diff --git a/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py b/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py
index ff3efe526..eda474003 100644
--- a/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py
+++ b/examples/taxonomy-classification/taxonomy_classification/catalog_agent.py
@@ -4,8 +4,12 @@ import argparse
import hashlib
import io
import json
+import math
+import re
+import shlex
import tempfile
-from dataclasses import asdict, dataclass
+import time
+from dataclasses import asdict, dataclass, field
from datetime import UTC, datetime
from pathlib import Path
from typing import Any
@@ -15,7 +19,7 @@ from urllib.request import Request, urlopen
from PIL import Image
from sie_sdk import SIEClient
-from taxonomy_classification.sie_client import create_sie_client
+from taxonomy_classification.sie_client import create_sie_client, read_sie_settings
DATASET = "Shopify/product-catalogue"
DATASET_REVISION = "d5c517c509f5aca99053897ef1de797d6d7e5aa5"
@@ -24,10 +28,23 @@ DATASET_SPLIT = "train"
DATASET_ROWS_URL = "https://datasets-server.huggingface.co/rows"
RERANKER_MODEL = "Qwen/Qwen3-VL-Reranker-2B"
+RERANKER_REVISION = "4bd860ac4f15ad1897a214615cccc700f8f71818"
VERIFIER_MODEL = "Qwen/Qwen3.6-27B"
+VERIFIER_REVISION = "6a9e13bd6fc8f0983b9b99948120bc37f49c13e9"
PROVISION_TIMEOUT_S = 900.0
DESCRIPTION_CHARS = 512
TOP_K_PER_RANKING = 2
+EXPECTED_API_CALL_MODELS = {
+ "copy_rerank": RERANKER_MODEL,
+ "image_plus_copy_rerank": RERANKER_MODEL,
+ "candidate_verification": VERIFIER_MODEL,
+}
+REQUIRED_PROVENANCE_FIELDS = (
+ "request_id",
+ "rate_book_version",
+ "execution_identity_sha256",
+)
+SHA256_RE = re.compile(r"[0-9a-f]{64}")
RERANK_INSTRUCTION = (
"Rank Shopify taxonomy paths by which path should categorize the product "
@@ -60,6 +77,105 @@ class CatalogDecision:
text_scores: list[float]
image_plus_copy_scores: list[float]
verifier_response_id: str | None
+ api_calls: list[dict[str, Any]] = field(default_factory=list)
+
+
+def _api_call_record(
+ *,
+ stage: str,
+ requested_model: str,
+ response: dict[str, Any],
+ timing_ms: float,
+) -> dict[str, Any]:
+ runtime_model = response.get("model")
+ if runtime_model != requested_model:
+ raise ValueError(
+ f"SIE {stage} runtime model {runtime_model!r} differs from "
+ f"requested model {requested_model!r}"
+ )
+ request = response.get("request")
+ request_row = request if isinstance(request, dict) else {}
+ request_id = request_row.get("id")
+ if not isinstance(request_id, str) or not request_id:
+ raise ValueError(f"SIE {stage} response has no request ID")
+ rate_book_version = request_row.get("rate_book_version")
+ if not isinstance(rate_book_version, str) or not rate_book_version:
+ raise ValueError(f"SIE {stage} response has no rate-book version")
+ execution_identity_sha256 = request_row.get("execution_identity_sha256")
+ if not isinstance(execution_identity_sha256, str) or not SHA256_RE.fullmatch(
+ execution_identity_sha256
+ ):
+ raise ValueError(f"SIE {stage} response has an invalid execution identity")
+ credits_debited = request_row.get("credits_debited")
+ if not _valid_credits_debited(credits_debited):
+ raise ValueError(f"SIE {stage} response has invalid credits debited")
+ return {
+ "stage": stage,
+ "requested_model": requested_model,
+ "runtime_model": runtime_model,
+ "request_id": request_id,
+ "timing_ms": round(timing_ms, 1),
+ "credits_debited": credits_debited,
+ "rate_book_version": rate_book_version,
+ "execution_identity_sha256": execution_identity_sha256,
+ }
+
+
+def _valid_credits_debited(value: object) -> bool:
+ return (
+ isinstance(value, int | float)
+ and not isinstance(value, bool)
+ and value >= 0
+ and (not isinstance(value, float) or math.isfinite(value))
+ )
+
+
+def _validate_api_calls(
+ api_calls: object,
+ *,
+ row_idx: int,
+) -> list[str]:
+ if not isinstance(api_calls, list) or len(api_calls) != len(
+ EXPECTED_API_CALL_MODELS
+ ):
+ raise ValueError(
+ f"Row {row_idx} must record exactly "
+ f"{len(EXPECTED_API_CALL_MODELS)} SIE API calls"
+ )
+ calls = [call for call in api_calls if isinstance(call, dict)]
+ if len(calls) != len(api_calls):
+ raise TypeError(f"Row {row_idx} has a non-object SIE API call")
+ stages = [call.get("stage") for call in calls]
+ if (
+ any(not isinstance(stage, str) for stage in stages)
+ or len(stages) != len(set(stages))
+ or set(stages) != set(EXPECTED_API_CALL_MODELS)
+ ):
+ raise ValueError(f"Row {row_idx} has incomplete or duplicate SIE API stages")
+ for call in calls:
+ stage = call["stage"]
+ expected_model = EXPECTED_API_CALL_MODELS[stage]
+ if (
+ call.get("requested_model") != expected_model
+ or call.get("runtime_model") != expected_model
+ ):
+ raise ValueError(f"Row {row_idx} has the wrong model for {stage}")
+ credits_debited = call.get("credits_debited")
+ if not _valid_credits_debited(credits_debited):
+ raise ValueError(f"Row {row_idx} {stage} has invalid credits debited")
+ for field_name in REQUIRED_PROVENANCE_FIELDS:
+ value = call.get(field_name)
+ valid = isinstance(value, str) and bool(value)
+ if field_name == "execution_identity_sha256":
+ valid = isinstance(value, str) and bool(SHA256_RE.fullmatch(value))
+ if not valid:
+ raise ValueError(
+ f"Row {row_idx} {stage} has invalid {field_name.replace('_', ' ')}"
+ )
+ request_ids = [call["request_id"] for call in calls]
+ if len(request_ids) != len(set(request_ids)):
+ raise ValueError(f"Row {row_idx} has duplicate SIE request IDs")
+ return request_ids
def _download(url: str) -> bytes:
@@ -89,6 +205,21 @@ def listing_query(listing: CatalogListing) -> str:
return query
+def listing_sha256(listing: CatalogListing) -> str:
+ payload = {
+ "row_idx": listing.row_idx,
+ "title": listing.title,
+ "description": listing.description,
+ "image_sha256": listing.image_sha256,
+ "image_format": listing.image_format,
+ "candidate_paths": listing.candidate_paths,
+ "ground_truth_path": listing.ground_truth_path,
+ }
+ return hashlib.sha256(
+ json.dumps(payload, sort_keys=True, ensure_ascii=False).encode()
+ ).hexdigest()
+
+
def load_shopify_rows(
*,
offset: int,
@@ -178,12 +309,13 @@ def candidate_union(
def rerank_listing(
client: SIEClient,
listing: CatalogListing,
-) -> tuple[list[float], list[float]]:
+) -> tuple[list[float], list[float], list[dict[str, Any]]]:
query = listing_query(listing)
candidates = [
{"id": str(index), "text": path}
for index, path in enumerate(listing.candidate_paths)
]
+ started = time.perf_counter()
text_result = client.score(
RERANKER_MODEL,
{"text": query},
@@ -192,6 +324,13 @@ def rerank_listing(
wait_for_capacity=True,
provision_timeout_s=PROVISION_TIMEOUT_S,
)
+ text_call = _api_call_record(
+ stage="copy_rerank",
+ requested_model=RERANKER_MODEL,
+ response=text_result,
+ timing_ms=(time.perf_counter() - started) * 1000,
+ )
+ started = time.perf_counter()
image_result = client.score(
RERANKER_MODEL,
{
@@ -208,9 +347,16 @@ def rerank_listing(
wait_for_capacity=True,
provision_timeout_s=PROVISION_TIMEOUT_S,
)
+ image_call = _api_call_record(
+ stage="image_plus_copy_rerank",
+ requested_model=RERANKER_MODEL,
+ response=image_result,
+ timing_ms=(time.perf_counter() - started) * 1000,
+ )
return (
_scores_in_request_order(text_result, len(candidates)),
_scores_in_request_order(image_result, len(candidates)),
+ [text_call, image_call],
)
@@ -218,7 +364,7 @@ def verify_candidates(
client: SIEClient,
listing: CatalogListing,
candidates: list[str],
-) -> tuple[int, bool, str | None]:
+) -> tuple[int, bool, dict[str, Any]]:
if not candidates:
raise ValueError(f"No candidate paths supplied for row {listing.row_idx}")
candidate_lines = "\n".join(
@@ -242,6 +388,7 @@ def verify_candidates(
"required": ["selected_index", "needs_review"],
"additionalProperties": False,
}
+ started = time.perf_counter()
response = client.generate(
VERIFIER_MODEL,
f"{VERIFIER_SYSTEM_PROMPT}\n\n{user_text}",
@@ -266,26 +413,31 @@ def verify_candidates(
raise ValueError("SIE verifier returned non-text content")
selection = json.loads(content)
selected_index = selection["selected_index"]
- if not isinstance(selected_index, int) or not (
- 0 <= selected_index < len(candidates)
- ):
+ if type(selected_index) is not int or not (0 <= selected_index < len(candidates)):
raise ValueError(f"Invalid selected_index: {selected_index!r}")
- request = response.get("request")
- response_id = request.get("id") if isinstance(request, dict) else None
- return selected_index, bool(selection["needs_review"]), response_id
+ needs_review = selection["needs_review"]
+ if type(needs_review) is not bool:
+ raise ValueError(f"Invalid needs_review: {needs_review!r}")
+ call = _api_call_record(
+ stage="candidate_verification",
+ requested_model=VERIFIER_MODEL,
+ response=response,
+ timing_ms=(time.perf_counter() - started) * 1000,
+ )
+ return selected_index, needs_review, call
def classify_listing(
client: SIEClient,
listing: CatalogListing,
) -> CatalogDecision:
- text_scores, image_plus_copy_scores = rerank_listing(client, listing)
+ text_scores, image_plus_copy_scores, rerank_calls = rerank_listing(client, listing)
candidates = candidate_union(
listing.candidate_paths,
text_scores,
image_plus_copy_scores,
)
- selected_index, needs_review, response_id = verify_candidates(
+ selected_index, needs_review, verifier_call = verify_candidates(
client,
listing,
candidates,
@@ -297,7 +449,8 @@ def classify_listing(
candidate_union=candidates,
text_scores=text_scores,
image_plus_copy_scores=image_plus_copy_scores,
- verifier_response_id=response_id,
+ verifier_response_id=verifier_call["request_id"],
+ api_calls=[*rerank_calls, verifier_call],
)
@@ -351,6 +504,28 @@ def evaluation_metrics(
}
+def _ranking_metrics(
+ listings: list[CatalogListing],
+ decisions: list[CatalogDecision],
+ score_field: str,
+) -> dict[str, Any]:
+ ranked_decisions = [
+ CatalogDecision(
+ **{
+ **asdict(decision),
+ "selected_path": listing.candidate_paths[
+ max(
+ range(len(listing.candidate_paths)),
+ key=lambda index: getattr(decision, score_field)[index],
+ )
+ ],
+ }
+ )
+ for listing, decision in zip(listings, decisions, strict=True)
+ ]
+ return evaluation_metrics(listings, ranked_decisions)
+
+
def _common_parser(description: str) -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description=description)
parser.add_argument("--offset", type=int, default=0)
@@ -368,14 +543,34 @@ def _evaluation_output(
decisions_by_row: dict[int, CatalogDecision],
*,
offset: int,
+ run_command: str | None = None,
) -> dict[str, Any]:
completed_listings = [
listing for listing in listings if listing.row_idx in decisions_by_row
]
decisions = [decisions_by_row[listing.row_idx] for listing in completed_listings]
+ request_ids = [
+ request_id
+ for decision in decisions
+ for request_id in _validate_api_calls(
+ decision.api_calls,
+ row_idx=decision.row_idx,
+ )
+ ]
+ if len(request_ids) != len(set(request_ids)):
+ raise ValueError("Catalog evaluation has duplicate SIE request IDs")
+ agent_metrics = evaluation_metrics(completed_listings, decisions)
+ copy_metrics = _ranking_metrics(completed_listings, decisions, "text_scores")
+ image_metrics = _ranking_metrics(
+ completed_listings, decisions, "image_plus_copy_scores"
+ )
+ endpoint, _api_key = read_sie_settings()
return {
"record_type": "sie_catalog_agent_evaluation",
"run_at": datetime.now(UTC).isoformat().replace("+00:00", "Z"),
+ "endpoint": endpoint.rstrip("/"),
+ "run_command": run_command,
+ "timing_note": "Per-call timings are diagnostic, not benchmark results.",
"dataset": {
"id": DATASET,
"revision": DATASET_REVISION,
@@ -391,13 +586,46 @@ def _evaluation_output(
"image-plus-copy reranker calls."
),
"response_schema": {
+ "type": "object",
+ "properties": {
+ "selected_index": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": TOP_K_PER_RANKING * 2 - 1,
+ "description": (
+ "The request schema tightens this bound to the number of "
+ "candidate-union entries minus one."
+ ),
+ },
+ "needs_review": {"type": "boolean"},
+ },
"required": ["selected_index", "needs_review"],
+ "additionalProperties": False,
+ },
+ "metrics": {
+ **agent_metrics,
+ "copy_only_exact_path_correct": copy_metrics["exact_path_correct"],
+ "copy_only_top_level_correct": copy_metrics["top_level_correct"],
+ "copy_only_macro_hierarchical_f1": copy_metrics["macro_hierarchical_f1"],
+ "image_plus_copy_exact_path_correct": image_metrics["exact_path_correct"],
+ "image_plus_copy_top_level_correct": image_metrics["top_level_correct"],
+ "image_plus_copy_macro_hierarchical_f1": image_metrics[
+ "macro_hierarchical_f1"
+ ],
+ "agent_exact_path_correct": agent_metrics["exact_path_correct"],
+ "agent_top_level_correct": agent_metrics["top_level_correct"],
+ "agent_macro_hierarchical_f1": agent_metrics["macro_hierarchical_f1"],
},
- "metrics": evaluation_metrics(completed_listings, decisions),
"results": [
{
**asdict(decision),
"ground_truth_path": listing.ground_truth_path,
+ "source": {
+ "viewer_url": listing.viewer_url,
+ "image_sha256": listing.image_sha256,
+ "row_sha256": listing_sha256(listing),
+ },
+ "candidate_paths": listing.candidate_paths,
}
for listing, decision in zip(completed_listings, decisions, strict=True)
],
@@ -447,6 +675,9 @@ def _load_checkpoint(
}
if payload.get("record_type") != "sie_catalog_agent_evaluation":
raise ValueError(f"Cannot resume from {path}: unexpected record type")
+ endpoint, _api_key = read_sie_settings()
+ if payload.get("endpoint") != endpoint.rstrip("/"):
+ raise ValueError(f"Cannot resume from {path}: SIE endpoint changed")
if (
payload.get("dataset") != expected_dataset
or payload.get("models") != expected_models
@@ -455,35 +686,134 @@ def _load_checkpoint(
listings_by_row = {listing.row_idx: listing for listing in listings}
decisions: dict[int, CatalogDecision] = {}
+ request_ids: list[str] = []
for result in payload.get("results", []):
- row_idx = int(result["row_idx"])
+ raw_row_idx = result.get("row_idx") if isinstance(result, dict) else None
+ if not isinstance(raw_row_idx, int) or isinstance(raw_row_idx, bool):
+ raise ValueError(
+ f"Cannot resume from {path}: invalid row_idx {raw_row_idx!r}"
+ )
+ row_idx = raw_row_idx
listing = listings_by_row.get(row_idx)
if listing is None:
raise ValueError(f"Cannot resume from {path}: unexpected row {row_idx}")
if row_idx in decisions:
raise ValueError(f"Cannot resume from {path}: duplicate row {row_idx}")
+ source = result.get("source")
+ if not isinstance(source, dict) or source.get("row_sha256") != listing_sha256(
+ listing
+ ):
+ raise ValueError(
+ f"Cannot resume from {path}: source changed for row {row_idx}"
+ )
if result.get("ground_truth_path") != listing.ground_truth_path:
raise ValueError(
f"Cannot resume from {path}: reference changed for row {row_idx}"
)
- decisions[row_idx] = CatalogDecision(
+ for score_field in ("text_scores", "image_plus_copy_scores"):
+ scores = result.get(score_field)
+ if (
+ not isinstance(scores, list)
+ or len(scores) != len(listing.candidate_paths)
+ or any(
+ not isinstance(score, int | float) or isinstance(score, bool)
+ for score in scores
+ )
+ ):
+ raise ValueError(
+ f"Cannot resume from {path}: {score_field} changed for row {row_idx}"
+ )
+ text_scores = result["text_scores"]
+ image_plus_copy_scores = result["image_plus_copy_scores"]
+ expected_candidate_union = candidate_union(
+ listing.candidate_paths,
+ text_scores,
+ image_plus_copy_scores,
+ )
+ if result.get("candidate_union") != expected_candidate_union:
+ raise ValueError(
+ f"Cannot resume from {path}: candidate union changed for row {row_idx}"
+ )
+ selected_path = result.get("selected_path")
+ if (
+ not isinstance(selected_path, str)
+ or selected_path not in expected_candidate_union
+ ):
+ raise ValueError(
+ f"Cannot resume from {path}: selected path changed for row {row_idx}"
+ )
+ needs_review = result.get("needs_review")
+ if not isinstance(needs_review, bool):
+ raise ValueError(
+ f"Cannot resume from {path}: needs review changed for row {row_idx}"
+ )
+ verifier_response_id = result.get("verifier_response_id")
+ if not isinstance(verifier_response_id, str) or not verifier_response_id:
+ raise ValueError(
+ f"Cannot resume from {path}: verifier_response_id missing for row "
+ f"{row_idx}"
+ )
+ api_calls = result.get("api_calls")
+ if not isinstance(api_calls, list):
+ raise ValueError(
+ f"Cannot resume from {path}: api_calls missing for row {row_idx}"
+ )
+ decision = CatalogDecision(
row_idx=row_idx,
- selected_path=result["selected_path"],
- needs_review=result["needs_review"],
- candidate_union=result["candidate_union"],
- text_scores=result["text_scores"],
- image_plus_copy_scores=result["image_plus_copy_scores"],
- verifier_response_id=result["verifier_response_id"],
+ selected_path=selected_path,
+ needs_review=needs_review,
+ candidate_union=expected_candidate_union,
+ text_scores=text_scores,
+ image_plus_copy_scores=image_plus_copy_scores,
+ verifier_response_id=verifier_response_id,
+ api_calls=api_calls,
+ )
+ row_request_ids = _validate_api_calls(decision.api_calls, row_idx=row_idx)
+ verifier_call = next(
+ call
+ for call in decision.api_calls
+ if call["stage"] == "candidate_verification"
)
+ if decision.verifier_response_id != verifier_call["request_id"]:
+ raise ValueError(
+ f"Cannot resume from {path}: verifier request changed for row {row_idx}"
+ )
+ request_ids.extend(row_request_ids)
+ decisions[row_idx] = decision
+ if len(request_ids) != len(set(request_ids)):
+ raise ValueError(f"Cannot resume from {path}: duplicate SIE request IDs")
return decisions
+def _evaluation_run_command(args: argparse.Namespace) -> str:
+ parts = [
+ "eval-catalog-agent",
+ "--offset",
+ str(args.offset),
+ "--limit",
+ str(args.limit),
+ "--cache-dir",
+ args.cache_dir.as_posix(),
+ "--output",
+ args.output.as_posix(),
+ ]
+ if args.summary_output is not None:
+ parts.extend(["--summary-output", args.summary_output.as_posix()])
+ return shlex.join(parts)
+
+
def eval_main() -> None:
parser = _common_parser(
"Evaluate the focused multimodal catalog agent on Shopify listings."
)
parser.add_argument("--output", type=Path, required=True)
+ parser.add_argument("--summary-output", type=Path)
args = parser.parse_args()
+ if args.summary_output is not None and args.summary_output.resolve() == (
+ args.output.resolve()
+ ):
+ parser.error("--summary-output must differ from --output")
+ run_command = _evaluation_run_command(args)
listings = load_shopify_rows(
offset=args.offset,
limit=args.limit,
@@ -503,7 +833,10 @@ def eval_main() -> None:
decision = classify_listing(client, listing)
decisions_by_row[listing.row_idx] = decision
output = _evaluation_output(
- listings, decisions_by_row, offset=args.offset
+ listings,
+ decisions_by_row,
+ offset=args.offset,
+ run_command=run_command,
)
_write_evaluation_output(args.output, output)
print(
@@ -512,8 +845,42 @@ def eval_main() -> None:
f"{decision.selected_path}"
)
- output = _evaluation_output(listings, decisions_by_row, offset=args.offset)
+ output = _evaluation_output(
+ listings,
+ decisions_by_row,
+ offset=args.offset,
+ run_command=run_command,
+ )
_write_evaluation_output(args.output, output)
+ if args.summary_output is not None:
+ _write_evaluation_output(
+ args.summary_output,
+ {
+ "record_type": "sie_catalog_agent_evaluation_summary",
+ "run_at": output["run_at"],
+ "endpoint": output["endpoint"],
+ "run_command": output["run_command"],
+ "timing_note": output["timing_note"],
+ "dataset": output["dataset"],
+ "models": {
+ "reranker": {
+ "id": output["models"]["reranker"],
+ "revision": RERANKER_REVISION,
+ },
+ "verifier": {
+ "id": output["models"]["verifier"],
+ "revision": VERIFIER_REVISION,
+ },
+ },
+ "candidate_rule": output["candidate_rule"],
+ "response_schema": output["response_schema"],
+ "metrics": output["metrics"],
+ "evaluation": {
+ "path": args.output.as_posix(),
+ "sha256": hashlib.sha256(args.output.read_bytes()).hexdigest(),
+ },
+ },
+ )
print(json.dumps(output["metrics"], indent=2))
diff --git a/examples/taxonomy-classification/tests/test_catalog_agent.py b/examples/taxonomy-classification/tests/test_catalog_agent.py
index 29c154baf..5dfcc2291 100644
--- a/examples/taxonomy-classification/tests/test_catalog_agent.py
+++ b/examples/taxonomy-classification/tests/test_catalog_agent.py
@@ -1,7 +1,8 @@
from __future__ import annotations
-import json
+import hashlib
import io
+import json
import sys
from contextlib import contextmanager
from pathlib import Path
@@ -20,6 +21,8 @@ from taxonomy_classification.catalog_agent import (
verify_candidates,
)
+ROOT = Path(__file__).resolve().parents[1]
+
def listing(*, reference: str) -> CatalogListing:
return CatalogListing(
@@ -34,6 +37,22 @@ def listing(*, reference: str) -> CatalogListing:
)
+def api_calls(row_idx: int) -> list[dict[str, object]]:
+ return [
+ {
+ "stage": stage,
+ "requested_model": model,
+ "runtime_model": model,
+ "request_id": f"{stage}-{row_idx}",
+ "timing_ms": 1.0,
+ "credits_debited": 1,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": "a" * 64,
+ }
+ for stage, model in catalog_agent.EXPECTED_API_CALL_MODELS.items()
+ ]
+
+
def test_candidate_union_preserves_image_ranking_then_adds_text_candidates() -> None:
paths = ["A", "B", "C", "D"]
assert candidate_union(
@@ -111,10 +130,17 @@ def test_classify_listing_runs_two_rankings_then_verifies_the_union() -> None:
else [0.3, 0.95, 0.4, 0.1]
)
return {
+ "model": catalog_agent.RERANKER_MODEL,
+ "request": {
+ "id": f"score-{len(self.score_calls)}",
+ "credits_debited": 1,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": "a" * 64,
+ },
"scores": [
{"item_id": str(index), "score": score}
for index, score in enumerate(scores)
- ]
+ ],
}
def generate(
@@ -127,8 +153,14 @@ def test_classify_listing_runs_two_rankings_then_verifies_the_union() -> None:
{"model": model, "prompt": prompt, "kwargs": kwargs}
)
return {
+ "model": catalog_agent.VERIFIER_MODEL,
"text": '{"selected_index": 0, "needs_review": false}',
- "request": {"id": "generate-54"},
+ "request": {
+ "id": "generate-54",
+ "credits_debited": 1,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": "b" * 64,
+ },
}
client = FakeClient()
@@ -158,6 +190,11 @@ def test_classify_listing_runs_two_rankings_then_verifies_the_union() -> None:
)
assert decision.needs_review is False
assert decision.verifier_response_id == "generate-54"
+ assert [call["request_id"] for call in decision.api_calls] == [
+ "score-1",
+ "score-2",
+ "generate-54",
+ ]
def test_verify_candidates_rejects_an_empty_union() -> None:
@@ -167,6 +204,83 @@ def test_verify_candidates_rejects_an_empty_union() -> None:
verify_candidates(object(), source, []) # type: ignore[arg-type]
+ ("missing_field", "match"),
+ [
+ ("id", "no request ID"),
+ ("rate_book_version", "no rate-book version"),
+ ("execution_identity_sha256", "invalid execution identity"),
+ ],
+)
+def test_api_call_record_requires_complete_request_provenance(
+ missing_field: str,
+ match: str,
+) -> None:
+ request = {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": "a" * 64,
+ }
+ del request[missing_field]
+
+ with pytest.raises(ValueError, match=match):
+ catalog_agent._api_call_record(
+ stage="copy_rerank",
+ requested_model=catalog_agent.RERANKER_MODEL,
+ response={"model": catalog_agent.RERANKER_MODEL, "request": request},
+ timing_ms=1,
+ )
+
+
+ "credits_debited",
+ [None, False, -1, "1", float("nan"), float("inf"), float("-inf")],
+)
+def test_api_call_record_rejects_invalid_credits_debited(
+ credits_debited: object,
+) -> None:
+ with pytest.raises(ValueError, match="invalid credits debited"):
+ catalog_agent._api_call_record(
+ stage="copy_rerank",
+ requested_model=catalog_agent.RERANKER_MODEL,
+ response={
+ "model": catalog_agent.RERANKER_MODEL,
+ "request": {
+ "id": "request-1",
+ "credits_debited": credits_debited,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": "a" * 64,
+ },
+ },
+ timing_ms=1,
+ )
+
+
+ "execution_identity_sha256",
+ ["a" * 63, "a" * 65, "A" * 64, "g" * 64],
+)
+def test_api_call_record_rejects_a_malformed_execution_identity(
+ execution_identity_sha256: str,
+) -> None:
+ with pytest.raises(ValueError, match="invalid execution identity"):
+ catalog_agent._api_call_record(
+ stage="copy_rerank",
+ requested_model=catalog_agent.RERANKER_MODEL,
+ response={
+ "model": catalog_agent.RERANKER_MODEL,
+ "request": {
+ "id": "request-1",
+ "credits_debited": 1,
+ "rate_book_version": "rate-book-v1",
+ "execution_identity_sha256": execution_identity_sha256,
+ },
+ },
+ timing_ms=1,
+ )
+
+
@pytest.mark.parametrize(
("response", "match"),
[
@@ -175,6 +289,14 @@ def test_verify_candidates_rejects_an_empty_union() -> None:
{"text": '{"selected_index": 2, "needs_review": false}'},
"Invalid selected_index: 2",
),
+ (
+ {"text": '{"selected_index": true, "needs_review": false}'},
+ "Invalid selected_index: True",
+ ),
+ (
+ {"text": '{"selected_index": 0, "needs_review": "false"}'},
+ "Invalid needs_review: 'false'",
+ ),
],
)
def test_verify_candidates_rejects_invalid_native_output(
@@ -241,16 +363,18 @@ def test_eval_resumes_completed_rows_from_its_checkpoint(
row_idx=7,
selected_path="A > One",
needs_review=False,
- candidate_union=["A > One"],
- text_scores=[1.0],
- image_plus_copy_scores=[1.0],
- verifier_response_id="generate-7",
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
)
output_path = tmp_path / "evaluation.json"
checkpoint = catalog_agent._evaluation_output(
listings, {7: first_decision}, offset=7
)
catalog_agent._write_evaluation_output(output_path, checkpoint)
+ assert checkpoint["response_schema"]["properties"]["selected_index"]["maximum"] == 3
classified_rows: list[int] = []
def fake_classify(_client: object, source: CatalogListing) -> CatalogDecision:
@@ -260,9 +384,10 @@ def test_eval_resumes_completed_rows_from_its_checkpoint(
selected_path="A > Two",
needs_review=False,
candidate_union=["A > Two"],
- text_scores=[1.0],
- image_plus_copy_scores=[1.0],
- verifier_response_id="generate-8",
+ text_scores=[0.0, 1.0, 0.0, 0.0],
+ image_plus_copy_scores=[0.0, 1.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-8",
+ api_calls=api_calls(8),
)
@contextmanager
@@ -292,6 +417,332 @@ def test_eval_resumes_completed_rows_from_its_checkpoint(
assert classified_rows == [8]
saved = json.loads(output_path.read_text())
assert [result["row_idx"] for result in saved["results"]] == [7, 8]
+ assert saved["run_command"] == (
+ "eval-catalog-agent --offset 7 --limit 2 "
+ f"--cache-dir .cache/catalog-agent --output {output_path}"
+ )
+
+
[email protected]("row_idx", [None, "7", True])
+def test_checkpoint_rejects_invalid_row_idx(
+ tmp_path: Path,
+ row_idx: object,
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ if row_idx is None:
+ checkpoint["results"][0].pop("row_idx")
+ else:
+ checkpoint["results"][0]["row_idx"] = row_idx
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match="invalid row_idx"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+def test_eval_rejects_a_summary_that_overwrites_the_evaluation(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
+) -> None:
+ output_path = tmp_path / "evaluation.json"
+ equivalent_path = tmp_path / "unused" / ".." / "evaluation.json"
+ monkeypatch.setattr(
+ sys,
+ "argv",
+ [
+ "eval-catalog-agent",
+ "--output",
+ str(output_path),
+ "--summary-output",
+ str(equivalent_path),
+ ],
+ )
+
+ with pytest.raises(SystemExit, match="2"):
+ catalog_agent.eval_main()
+
+ assert "--summary-output must differ from --output" in capsys.readouterr().err
+ assert not output_path.exists()
+
+
[email protected]("changed_field", ["image_sha256", "candidate_paths"])
+def test_checkpoint_rejects_changed_listing_source(
+ tmp_path: Path,
+ changed_field: str,
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ catalog_agent._write_evaluation_output(
+ output_path,
+ catalog_agent._evaluation_output([source], {7: decision}, offset=7),
+ )
+ replacement = "changed" if changed_field == "image_sha256" else ["B > Changed"]
+ changed = CatalogListing(
+ **{
+ **source.__dict__,
+ changed_field: replacement,
+ }
+ )
+
+ with pytest.raises(ValueError, match="source changed for row 7"):
+ catalog_agent._load_checkpoint(output_path, [changed], offset=7)
+
+
+def test_checkpoint_rejects_changed_sie_endpoint(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ catalog_agent._write_evaluation_output(
+ output_path,
+ catalog_agent._evaluation_output([source], {7: decision}, offset=7),
+ )
+ monkeypatch.setattr(
+ catalog_agent,
+ "read_sie_settings",
+ lambda: ("https://different.example/", "unused"),
+ )
+
+ with pytest.raises(ValueError, match="SIE endpoint changed"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+def test_checkpoint_rejects_incomplete_api_call_provenance(tmp_path: Path) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0]["api_calls"][0]["rate_book_version"] = None
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match="has invalid rate book version"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+ "credits_debited",
+ [None, False, -1, "1", float("nan"), float("inf"), float("-inf")],
+)
+def test_checkpoint_rejects_invalid_credits_debited(
+ tmp_path: Path,
+ credits_debited: object,
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0]["api_calls"][0]["credits_debited"] = credits_debited
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match="invalid credits debited"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+ ("score_field", "scores"),
+ [
+ ("text_scores", [1.0, 0.0]),
+ ("image_plus_copy_scores", [True, 0.0, 0.0, 0.0]),
+ ],
+)
+def test_checkpoint_rejects_invalid_score_arrays(
+ tmp_path: Path,
+ score_field: str,
+ scores: list[object],
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0][score_field] = scores
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match=score_field):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+def test_checkpoint_rejects_a_malformed_execution_identity(tmp_path: Path) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0]["api_calls"][0]["execution_identity_sha256"] = (
+ "not-a-sha256"
+ )
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match="invalid execution identity sha256"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
[email protected]("field_name", ["verifier_response_id", "api_calls"])
+def test_checkpoint_rejects_missing_decision_provenance(
+ tmp_path: Path, field_name: str
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0].pop(field_name)
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match=rf"{field_name} missing for row 7"):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+ ("field_name", "value", "match"),
+ [
+ ("candidate_union", ["A > Two", "A > One"], "candidate union changed"),
+ ("selected_path", "B > Three", "selected path changed"),
+ ("needs_review", 1, "needs review changed"),
+ ],
+)
+def test_checkpoint_rejects_invalid_decision_fields(
+ tmp_path: Path,
+ field_name: str,
+ value: object,
+ match: str,
+) -> None:
+ source = listing(reference="A > One")
+ decision = CatalogDecision(
+ row_idx=7,
+ selected_path="A > One",
+ needs_review=False,
+ candidate_union=["A > One", "A > Two"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id="candidate_verification-7",
+ api_calls=api_calls(7),
+ )
+ output_path = tmp_path / "evaluation.json"
+ checkpoint = catalog_agent._evaluation_output([source], {7: decision}, offset=7)
+ checkpoint["results"][0][field_name] = value
+ catalog_agent._write_evaluation_output(output_path, checkpoint)
+
+ with pytest.raises(ValueError, match=match):
+ catalog_agent._load_checkpoint(output_path, [source], offset=7)
+
+
+def test_evaluation_rejects_duplicate_request_ids() -> None:
+ sources = [
+ listing(reference="A > One"),
+ CatalogListing(
+ **{
+ **listing(reference="A > Two").__dict__,
+ "row_idx": 8,
+ }
+ ),
+ ]
+ first_calls = api_calls(7)
+ second_calls = api_calls(8)
+ second_calls[0]["request_id"] = first_calls[0]["request_id"]
+ decisions = {
+ source.row_idx: CatalogDecision(
+ row_idx=source.row_idx,
+ selected_path=source.ground_truth_path or "A > One",
+ needs_review=False,
+ candidate_union=[source.ground_truth_path or "A > One"],
+ text_scores=[1.0, 0.0, 0.0, 0.0],
+ image_plus_copy_scores=[1.0, 0.0, 0.0, 0.0],
+ verifier_response_id=f"candidate_verification-{source.row_idx}",
+ api_calls=calls,
+ )
+ for source, calls in zip(sources, (first_calls, second_calls), strict=True)
+ }
+
+ with pytest.raises(ValueError, match="duplicate SIE request IDs"):
+ catalog_agent._evaluation_output(sources, decisions, offset=7)
+
+
+def test_verified_summary_pins_the_exact_evaluation_invocation() -> None:
+ evaluation_path = ROOT / "verified-run" / "evaluation.json"
+ summary = json.loads(
+ (ROOT / "results" / "catalog-agent-summary.json").read_text(encoding="utf-8")
+ )
+ evaluation = json.loads(evaluation_path.read_text(encoding="utf-8"))
+
+ assert summary["run_command"] == evaluation["run_command"]
+ assert summary["evaluation"] == {
+ "path": "verified-run/evaluation.json",
+ "sha256": hashlib.sha256(evaluation_path.read_bytes()).hexdigest(),
+ }
+ assert all(result["source"].get("row_sha256") for result in evaluation["results"])
def test_predict_honors_the_requested_limit(monkeypatch: pytest.MonkeyPatch) -> None:
diff --git a/examples/taxonomy-classification/uv.lock b/examples/taxonomy-classification/uv.lock
index 7d4d81a64..b911b696c 100644
--- a/examples/taxonomy-classification/uv.lock
+++ b/examples/taxonomy-classification/uv.lock
@@ -1192,7 +1192,7 @@ wheels = [
[[package]]
name = "sie-sdk"
-version = "0.6.24"
+version = "0.7.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "aiohttp" },
@@ -1204,9 +1204,9 @@ dependencies = [
{ name = "pyyaml" },
{ name = "websockets" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/5f/06/d0aeec2c8b8d4437d9ad26a6d613876f777bc94ad8e66ddeec2b9a145378/sie_sdk-0.6.24.tar.gz", hash = "sha256:83feaab4ecf9779eb51c63b5881946ea1cad3d57b349f3d0c6c98151a6d67c34", size = 198889, upload-time = "2026-07-26T03:17:48.064Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/5a/c1/f7652a9c970ae53b94c005e959e02883203be3d9dc580110ef8fb85d5b17/sie_sdk-0.7.1.tar.gz", hash = "sha256:7af9416f1de592e5e9ce4d64a7eba9479cf8f1efaa0c0d3cd64e53e3d83e706c", size = 221925, upload-time = "2026-08-09T06:00:32.851Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/e0/58/aa2d5a52ae04188e8c5106c76594ed5d846b79c14a0e953e8f65cb730856/sie_sdk-0.6.24-py3-none-any.whl", hash = "sha256:4c1765479d1739403de5d75f6291700416335a915319f188d09cff49d84089fc", size = 131161, upload-time = "2026-07-26T03:17:46.419Z" },
+ { url = "https://files.pythonhosted.org/packages/f0/4c/c24d0a2f4a10be40625034d798d3eda44b0351851f08c5d38910b0a1d8c5/sie_sdk-0.7.1-py3-none-any.whl", hash = "sha256:a0a386167a33a3128ed1eb5447ec69e1caa5462ee55bf10d92a250277e9b59b7", size = 144187, upload-time = "2026-08-09T06:00:31.091Z" },
]
[[package]]
@@ -1256,7 +1256,7 @@ requires-dist = [
{ name = "pillow", specifier = ">=12.2.0" },
{ name = "polars", specifier = ">=1.40.0" },
{ name = "python-dotenv", specifier = ">=1.2.2" },
- { name = "sie-sdk", specifier = "==0.6.24" },
+ { name = "sie-sdk", specifier = "==0.7.1" },
{ name = "tqdm", specifier = ">=4.67.3" },
]
diff --git a/examples/taxonomy-classification/verified-run/evaluation.json b/examples/taxonomy-classification/verified-run/evaluation.json
new file mode 100644
index 000000000..a5f2fb30c
--- /dev/null
+++ b/examples/taxonomy-classification/verified-run/evaluation.json
@@ -0,0 +1,8003 @@
+{
+ "record_type": "sie_catalog_agent_evaluation",
+ "run_at": "2026-08-09T23:15:52.551215Z",
+ "endpoint": "https://api.superlinked.com",
+ "run_command": "eval-catalog-agent --offset 0 --limit 100 --cache-dir .cache/catalog-agent --output verified-run/evaluation.json --summary-output results/catalog-agent-summary.json",
+ "timing_note": "Per-call timings are diagnostic, not benchmark results.",
+ "dataset": {
+ "id": "Shopify/product-catalogue",
+ "revision": "d5c517c509f5aca99053897ef1de797d6d7e5aa5",
+ "split": "train",
+ "row_window": [
+ 0,
+ 99
+ ]
+ },
+ "models": {
+ "reranker": "Qwen/Qwen3-VL-Reranker-2B",
+ "verifier": "Qwen/Qwen3.6-27B"
+ },
+ "candidate_rule": "Union of the two highest-scoring paths from copy-only and image-plus-copy reranker calls.",
+ "response_schema": {
+ "type": "object",
+ "properties": {
+ "selected_index": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 3,
+ "description": "The request schema tightens this bound to the number of candidate-union entries minus one."
+ },
+ "needs_review": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "selected_index",
+ "needs_review"
+ ],
+ "additionalProperties": false
+ },
+ "metrics": {
+ "sample_size": 100,
+ "exact_path_correct": 62,
+ "exact_path_accuracy": 0.62,
+ "top_level_correct": 87,
+ "top_level_accuracy": 0.87,
+ "macro_hierarchical_f1": 0.7776861471861471,
+ "needs_review": 5,
+ "copy_only_exact_path_correct": 41,
+ "copy_only_top_level_correct": 81,
+ "copy_only_macro_hierarchical_f1": 0.6655252525252524,
+ "image_plus_copy_exact_path_correct": 50,
+ "image_plus_copy_top_level_correct": 85,
+ "image_plus_copy_macro_hierarchical_f1": 0.7284378399378397,
+ "agent_exact_path_correct": 62,
+ "agent_top_level_correct": 87,
+ "agent_macro_hierarchical_f1": 0.7776861471861471
+ },
+ "results": [
+ {
+ "row_idx": 0,
+ "selected_path": "Home & Garden > Decor > Piggy Banks & Money Jars > Piggy Banks",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Decor > Piggy Banks & Money Jars > Piggy Banks",
+ "Home & Garden > Decor > Piggy Banks & Money Jars"
+ ],
+ "text_scores": [
+ 0.5,
+ 0.6926419734954834,
+ 0.4843800365924835,
+ 0.4073334038257599,
+ 0.36296918988227844,
+ 0.3073579967021942,
+ 0.7057850360870361,
+ 0.6076632142066956
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.7057850360870361,
+ 0.42250463366508484,
+ 0.46879062056541443,
+ 0.3073579967021942,
+ 0.29421496391296387,
+ 0.7185943722724915,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6f7-ff5e-7fa2-a84f-83376bf49ace",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f7-9d6b-7452-8aea-b51b4ca664ef",
+ "timing_ms": 20808.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f7-edc4-72a1-bb6d-ba9545e5a6b6",
+ "timing_ms": 4501.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f7-ff5e-7fa2-a84f-83376bf49ace",
+ "timing_ms": 3598.1,
+ "credits_debited": 1929,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Decor > Piggy Banks & Money Jars > Piggy Banks",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=0",
+ "image_sha256": "b240d193a416b5d38111ad68f5aedef2077cb4ecf078a2e4a62c9364e9f6fe26",
+ "row_sha256": "2bd17ec5478fca7790d9c52520d9acff0680bc178af82c9dade480009f4216c8"
+ },
+ "candidate_paths": [
+ "Toys & Games > Toys > Flying Toys",
+ "Home & Garden > Decor > Piggy Banks & Money Jars",
+ "Toys & Games > Toys > Flying Toys > Model Aircrafts",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Pottery & Sculpting Materials > Clay & Modeling Dough > Clay > Sculpting Clay",
+ "Toys & Games > Toys > Beach & Sand Toys > Sand Castle Molds",
+ "Hardware > Tools > Dollies & Hand Trucks",
+ "Home & Garden > Decor > Piggy Banks & Money Jars > Piggy Banks",
+ "Toys & Games > Toys > Play Vehicles > Toy Airplanes"
+ ]
+ },
+ {
+ "row_idx": 1,
+ "selected_path": "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "Health & Beauty > Personal Care > Back Care",
+ "Health & Beauty > Personal Care > Back Care > Back & Lumbar Support Cushions"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.4378235340118408,
+ 0.32082128524780273,
+ 0.3486451208591461,
+ 0.3073579967021942,
+ 0.665410578250885,
+ 0.622459352016449,
+ 0.29421496391296387
+ ],
+ "image_plus_copy_scores": [
+ 0.6076632142066956,
+ 0.4843800365924835,
+ 0.28140559792518616,
+ 0.3486451208591461,
+ 0.3486451208591461,
+ 0.5926666259765625,
+ 0.6926419734954834,
+ 0.22270013391971588
+ ],
+ "verifier_response_id": "019fe6f8-32db-7e53-888e-54f0f15dcc16",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-0d7f-7d31-8920-e741c09cf4b2",
+ "timing_ms": 464.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-0f78-7e92-9ece-a25b08f11a34",
+ "timing_ms": 9057.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-32db-7e53-888e-54f0f15dcc16",
+ "timing_ms": 2351.6,
+ "credits_debited": 4426,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Back Care",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=1",
+ "image_sha256": "cd64d92d621922817d8de6211d958819582c15dfcec41b8ca42ac760d383c008",
+ "row_sha256": "bba6a07ad2dce149145911929d5c9ae50faa867a95318c54052906fcbb2b0469"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Back Care",
+ "Sporting Goods > Fitness & General Exercise Equipment > Balance Trainers > Balance Cushions",
+ "Business & Industrial > Hairdressing & Cosmetology > Salon Chairs > Styling Chairs",
+ "Sporting Goods > Fitness & General Exercise Equipment > Yoga & Pilates > Pilates Machines > Pilates Chairs",
+ "Sporting Goods > Fitness & General Exercise Equipment > Inversion Tables & Systems",
+ "Health & Beauty > Personal Care > Back Care > Back & Lumbar Support Cushions",
+ "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "Furniture > Chairs > Armchairs, Recliners & Sleeper Chairs > Recliners"
+ ]
+ },
+ {
+ "row_idx": 2,
+ "selected_path": "Apparel & Accessories > Clothing Accessories > Hats > Panama Hats",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing Accessories > Hats > Panama Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats > Fedoras",
+ "Apparel & Accessories > Clothing Accessories > Hats"
+ ],
+ "text_scores": [
+ 0.3775406777858734,
+ 0.5156199336051941,
+ 0.6791787147521973,
+ 0.4843800365924835,
+ 0.4843800365924835,
+ 0.2568320035934448,
+ 0.5926666259765625,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.42250463366508484,
+ 0.6076632142066956,
+ 0.6791787147521973,
+ 0.5774953961372375,
+ 0.46879062056541443,
+ 0.23370636999607086,
+ 0.5774953961372375,
+ 0.5156199336051941
+ ],
+ "verifier_response_id": "019fe6f8-430a-77c2-844c-60e04752acbb",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-3bb5-7963-a4f5-43b2d9761734",
+ "timing_ms": 362.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-3d37-7440-9c3a-12ae54afa31f",
+ "timing_ms": 1431.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-430a-77c2-844c-60e04752acbb",
+ "timing_ms": 1587.6,
+ "credits_debited": 2122,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing Accessories > Hats > Panama Hats",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=2",
+ "image_sha256": "9edb6f0acd67c61faff84746bd6d4ad2d987510c7464d8ac9b18a132a4a7ab30",
+ "row_sha256": "2b43c0b95dd21557132c4ded558897fdd4d2b5b57ee4ef3188d3e67657a578bf"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing Accessories > Hats > Cowboy Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats > Fedoras",
+ "Apparel & Accessories > Clothing Accessories > Hats > Panama Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats > Bowler Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats > Bucket Hats",
+ "Animals & Pet Supplies > Pet Supplies > Pet Apparel > Pet Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats",
+ "Apparel & Accessories > Clothing Accessories > Hats > Top Hats"
+ ]
+ },
+ {
+ "row_idx": 3,
+ "selected_path": "Home & Garden > Decor > Artwork > Sculptures & Statues",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Decor > Decorative Plaques",
+ "Home & Garden > Decor > Artwork > Sculptures & Statues"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.3345894515514374,
+ 0.3345894515514374,
+ 0.4073334038257599,
+ 0.46879062056541443,
+ 0.4073334038257599,
+ 0.531209409236908,
+ 0.2689414322376251,
+ 0.3345894515514374
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.2568320035934448,
+ 0.28140559792518616,
+ 0.2568320035934448,
+ 0.3775406777858734,
+ 0.2689414322376251,
+ 0.39233678579330444,
+ 0.2568320035934448,
+ 0.3345894515514374
+ ],
+ "verifier_response_id": "019fe6f8-57d3-7442-b244-faff9787ac15",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-48e8-7b60-90b1-39f141f04e2e",
+ "timing_ms": 350.1,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-4aa0-79a0-b84d-26c617d84c9f",
+ "timing_ms": 3320.9,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-57d3-7442-b244-faff9787ac15",
+ "timing_ms": 1615.7,
+ "credits_debited": 2965,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Kitchen & Dining > Barware > Bottle Caps > Crown Bottle Caps",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=3",
+ "image_sha256": "5ec1b2ac3366b6bcb139a831a6aaa6eef7bd1691ed9a2ad7b0e3a75589ed40f0",
+ "row_sha256": "26e0884cd6611d11599f95a447be5845c55e33f97df27bfc22cdb5d4fc70583e"
+ },
+ "candidate_paths": [
+ "Home & Garden > Decor > Decorative Plaques",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Round Ottomans",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Square Ottomans",
+ "Home & Garden > Decor > Ottoman Cushions",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > Column Stands",
+ "Home & Garden > Decor > World Globes > Antique Globes",
+ "Home & Garden > Decor > Artwork > Sculptures & Statues",
+ "Home & Garden > Kitchen & Dining > Barware > Bottle Caps > Crown Bottle Caps",
+ "Hardware > Plumbing > Plumbing Fixtures > Sinks > Bathroom Sinks > Pedestal Sinks"
+ ]
+ },
+ {
+ "row_idx": 4,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones > Bass Trombones",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones > Bass Trombones",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones"
+ ],
+ "text_scores": [
+ 0.6926419734954834,
+ 0.5467381477355957,
+ 0.3775406777858734,
+ 0.7310585379600525,
+ 0.3486451208591461,
+ 0.3775406777858734,
+ 0.622459352016449,
+ 0.5467381477355957
+ ],
+ "image_plus_copy_scores": [
+ 0.7310585379600525,
+ 0.531209409236908,
+ 0.39233678579330444,
+ 0.7549149990081787,
+ 0.39233678579330444,
+ 0.39233678579330444,
+ 0.665410578250885,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6f8-68d1-7ae3-a4c6-f0f42560471f",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-5d89-75f1-a244-f72eed91451f",
+ "timing_ms": 330.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-5f34-78f0-aed7-7f403f716d55",
+ "timing_ms": 2463.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-68d1-7ae3-a4c6-f0f42560471f",
+ "timing_ms": 1605.5,
+ "credits_debited": 2763,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones > Bass Trombones",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=4",
+ "image_sha256": "b0f4483ab40c3e1e6bd650f9a01b56287a41f06c7df531776d7fe28a485f093d",
+ "row_sha256": "aa1025a0eb96e4f579a85987618f28fcc6c91334da0a0e246c533e2999919467"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Alto & Baritone Horns > Mellophones",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Percussion Accessories > Drum Kit Hardware > Drum Pedals > Single Drum Pedals",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones > Bass Trombones",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > French Horns > Single French Horns",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > French Horns > Double French Horns",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Trombones > Tenor Trombones",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Brass Instrument Accessories > Brass Instrument Mouthpieces"
+ ]
+ },
+ {
+ "row_idx": 5,
+ "selected_path": "Sporting Goods > Athletics > Soccer",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Athletics > Soccer",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids"
+ ],
+ "text_scores": [
+ 0.4532618522644043,
+ 0.4843800365924835,
+ 0.36296918988227844,
+ 0.46879062056541443,
+ 0.562176525592804,
+ 0.5467381477355957,
+ 0.42250463366508484,
+ 0.4532618522644043
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.531209409236908,
+ 0.4378235340118408,
+ 0.5156199336051941,
+ 0.6076632142066956,
+ 0.5774953961372375,
+ 0.46879062056541443,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6f8-739d-7ef3-aa90-364290ddbc77",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-6ec0-7560-8db1-8cfd431048fc",
+ "timing_ms": 361.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-7047-7140-a533-ab417f683bc2",
+ "timing_ms": 796.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-739d-7ef3-aa90-364290ddbc77",
+ "timing_ms": 1513.9,
+ "credits_debited": 1283,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Athletics > Soccer",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=5",
+ "image_sha256": "e51f922f46e78260abee5aedcfeb22922ad93c906acd3d867f351a01e41034a3",
+ "row_sha256": "fed9536b92f8d1d9a2b4dd4cb953ccd54cbb2ef3ce059751488c2bfca478f90b"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids > Soccer Agility Poles",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids > Soccer Passing Arcs",
+ "Sporting Goods > Athletics > Soccer > Soccer Goal Accessories > Soccer Goal Dummies",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids > Soccer Training Mannequins",
+ "Sporting Goods > Athletics > Soccer",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids > Soccer Training Backpacks",
+ "Sporting Goods > Athletics > Soccer > Soccer Training Aids > Soccer Ball Launchers"
+ ]
+ },
+ {
+ "row_idx": 6,
+ "selected_path": "Electronics > Components",
+ "needs_review": false,
+ "candidate_union": [
+ "Business & Industrial > Signage > Electric Signs > LED Signs",
+ "Electronics > Components",
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays > Digital Signage Flat Panels"
+ ],
+ "text_scores": [
+ 0.562176525592804,
+ 0.5156199336051941,
+ 0.4843800365924835,
+ 0.5774953961372375,
+ 0.6076632142066956,
+ 0.3775406777858734,
+ 0.46879062056541443,
+ 0.5467381477355957,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.5926666259765625,
+ 0.4532618522644043,
+ 0.5,
+ 0.531209409236908,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6f8-85fa-7c71-9c85-426f294b42c7",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-792d-7da3-bb73-618eb403e0b0",
+ "timing_ms": 331.2,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-7ad2-7a43-a20b-31b1971c592f",
+ "timing_ms": 2854.5,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-85fa-7c71-9c85-426f294b42c7",
+ "timing_ms": 1544.9,
+ "credits_debited": 2894,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Components",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=6",
+ "image_sha256": "1d18f2177e9a7ff08c84a007dddc35961723ff82b8298917f9e25b2c0d60c034",
+ "row_sha256": "f227be592e6ef3609e6c354fa5c085f4c4c44e02605cf1ad01e0e91e73828990"
+ },
+ "candidate_paths": [
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays > Backlit Displays",
+ "Electronics > Components",
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Numeric Keypads",
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays > Digital Signage Flat Panels",
+ "Business & Industrial > Signage > Electric Signs > LED Signs",
+ "Hardware > Power & Electrical Supplies > Electrical Switches > Light Switches > Single-Pole Switches",
+ "Electronics > Electronics Accessories > Computer Components > Laptop Parts > Laptop Screen Digitizers",
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays",
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays > Digital A-Boards"
+ ]
+ },
+ {
+ "row_idx": 7,
+ "selected_path": "Hardware > Tools > Tool Knives",
+ "needs_review": false,
+ "candidate_union": [
+ "Mature > Weapons & Weapon Accessories > Weapons > Combat Knives",
+ "Hardware > Tools > Tool Knives",
+ "Hardware > Tools > Cutters > Utility Knives > Retractable Blade Knives"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.5774953961372375,
+ 0.6076632142066956,
+ 0.5,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.531209409236908,
+ 0.5467381477355957,
+ 0.4532618522644043,
+ 0.531209409236908,
+ 0.5467381477355957,
+ 0.531209409236908,
+ 0.562176525592804
+ ],
+ "verifier_response_id": "019fe6f8-97b0-7121-be16-533d281e7685",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-8ba9-7a22-8bcb-4a3fb380ab3e",
+ "timing_ms": 308.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-8d3a-7142-944d-5c04efcd692a",
+ "timing_ms": 2675.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-97b0-7121-be16-533d281e7685",
+ "timing_ms": 1588.3,
+ "credits_debited": 2918,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Tools > Tool Knives",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=7",
+ "image_sha256": "7b8ee3477d333ac07347f7a7336af1eea9fd2064a352c8f5f9d80bb98777a61a",
+ "row_sha256": "5bd6855f60bcfc1f790fb00acb4484d825f91c68b5d5d242363c4361f0a2ed0c"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Tools > Hunting & Survival Knives > Slip Joint Knives",
+ "Hardware > Tools > Cutters > Utility Knives > Retractable Blade Knives",
+ "Hardware > Tools > Tool Knives",
+ "Sporting Goods > Outdoor Recreation > Camping & Hiking > Camping Tools > Hunting & Survival Knives > Peasant Knives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons > Collectible Knives > Pocket Collectible Knives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons > Collectible Knives > Folding Collectible Knives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons > Collectible Knives > Tactical Collectible Knives",
+ "Mature > Weapons & Weapon Accessories > Weapons > Combat Knives"
+ ]
+ },
+ {
+ "row_idx": 8,
+ "selected_path": "Electronics > Video Game Console Accessories > Home Game Console Accessories > Home Game Console Skins",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Video Game Console Accessories > Home Game Console Accessories > Home Game Console Skins",
+ "Electronics > Video Game Console Accessories > Portable Game Console Accessories > Portable Game Console Skins"
+ ],
+ "text_scores": [
+ 0.4843800365924835,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.5,
+ 0.531209409236908,
+ 0.6926419734954834,
+ 0.665410578250885,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.622459352016449,
+ 0.562176525592804,
+ 0.5774953961372375,
+ 0.7057850360870361,
+ 0.6926419734954834,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6f8-a9bb-7fe3-a139-d08df90c9c08",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-9d89-7df3-90f9-97432e7cb70d",
+ "timing_ms": 353.1,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-9f43-7813-ab06-8a682d82ec71",
+ "timing_ms": 2674.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-a9bb-7fe3-a139-d08df90c9c08",
+ "timing_ms": 1582.9,
+ "credits_debited": 3084,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Video Game Console Accessories > Home Game Console Accessories > Home Game Console Skins",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=8",
+ "image_sha256": "2520c0d047447cbd89341b9b14d5dc71abee0e991458a2aebf8fd5a6edafc1c2",
+ "row_sha256": "ebde79955ee0295f0d58143f3826a6d86025fe9354852d82e1694e37815ba87b"
+ },
+ "candidate_paths": [
+ "Electronics > Video Game Console Accessories > Portable Game Console Accessories",
+ "Electronics > Video Game Console Accessories > Home Game Console Accessories",
+ "Electronics > Video Game Console Accessories",
+ "Electronics > Video Game Console Accessories > Portable Game Console Accessories > Portable Game Console Cases",
+ "Electronics > Video Game Console Accessories > Portable Game Console Accessories > Portable Game Console Screen Protectors",
+ "Electronics > Video Game Console Accessories > Home Game Console Accessories > Home Game Console Skins",
+ "Electronics > Video Game Console Accessories > Portable Game Console Accessories > Portable Game Console Skins",
+ "Electronics > Electronics Accessories > Computer Components > Input Device Accessories > Game Controller Accessories > Game Controller Skins"
+ ]
+ },
+ {
+ "row_idx": 9,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Music Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands"
+ ],
+ "text_scores": [
+ 0.665410578250885,
+ 0.531209409236908,
+ 0.6791787147521973,
+ 0.562176525592804,
+ 0.622459352016449,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.5774953961372375
+ ],
+ "image_plus_copy_scores": [
+ 0.7057850360870361,
+ 0.5774953961372375,
+ 0.6926419734954834,
+ 0.5774953961372375,
+ 0.622459352016449,
+ 0.637030839920044,
+ 0.622459352016449,
+ 0.6513549089431763
+ ],
+ "verifier_response_id": "019fe6f8-bc57-72f0-83a8-480b4c11e8e2",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-af94-71d1-9ff9-78e0a41e1ce3",
+ "timing_ms": 333.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-b172-7240-aa96-0c1df1dfc7bd",
+ "timing_ms": 2786.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-bc57-72f0-83a8-480b4c11e8e2",
+ "timing_ms": 1791.8,
+ "credits_debited": 2944,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Music Stands",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=9",
+ "image_sha256": "1a411629462a00fcd7945fc0d1049b5e5aa8cd1f61f4141b3b4893f29eec8e9d",
+ "row_sha256": "06b375d5b90f984468600847f237eeee4aa2b87b4eb31419b5658f7316202967"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Music Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > Z-Style Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > Column Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > Double Braced Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > Single Braced Stands",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Keyboard Accessories > Musical Keyboard Stands > X-Style Stands"
+ ]
+ },
+ {
+ "row_idx": 10,
+ "selected_path": "Hardware > Hardware Pumps",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Hardware Pumps",
+ "Hardware > Hardware Pumps > Utility Pumps",
+ "Hardware > Hardware Pumps > Utility Pumps > Transfer Pumps"
+ ],
+ "text_scores": [
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.5,
+ 0.6076632142066956,
+ 0.4843800365924835,
+ 0.4073334038257599,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.4532618522644043
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.46879062056541443,
+ 0.4378235340118408,
+ 0.5926666259765625,
+ 0.46879062056541443,
+ 0.4532618522644043
+ ],
+ "verifier_response_id": "019fe6f8-c839-7470-aec3-ff2e28541903",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-c2c0-7a00-bf4c-5d0dc087804f",
+ "timing_ms": 373.7,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-c454-7191-b516-52d92ebd2284",
+ "timing_ms": 997.3,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-c839-7470-aec3-ff2e28541903",
+ "timing_ms": 1690.8,
+ "credits_debited": 1547,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Business & Industrial > Mining & Quarrying > Mining & Quarrying Machinery > Crushers > Cone Crushers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=10",
+ "image_sha256": "88219751c0da028947f2a02848cfd445742dfe81dbf17481a6fbc7cdcdccb2b7",
+ "row_sha256": "bd4814fb7d58173902b63a0ab8cba52cfc93479bd6f6daa3fdf4d0bf13195004"
+ },
+ "candidate_paths": [
+ "Hardware > Hardware Pumps > Utility Pumps > Drum Pumps",
+ "Hardware > Hardware Pumps > Utility Pumps",
+ "Hardware > Hardware Pumps > Sprinkler, Booster & Irrigation System Pumps > Centrifugal Pumps",
+ "Hardware > Hardware Pumps > Utility Pumps > Transfer Pumps",
+ "Hardware > Hardware Pumps > Home Appliance Pumps > Drain Pumps",
+ "Business & Industrial > Mining & Quarrying > Mining & Quarrying Machinery > Crushers > Cone Crushers",
+ "Hardware > Hardware Pumps",
+ "Hardware > Hardware Pumps > Sprinkler, Booster & Irrigation System Pumps",
+ "Hardware > Hardware Pumps > Home Appliance Pumps"
+ ]
+ },
+ {
+ "row_idx": 11,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Compressors",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Compressors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Condensers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control"
+ ],
+ "text_scores": [
+ 0.6076632142066956,
+ 0.7310585379600525,
+ 0.4843800365924835,
+ 0.5156199336051941,
+ 0.637030839920044,
+ 0.4073334038257599,
+ 0.5774953961372375,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.665410578250885,
+ 0.7185943722724915,
+ 0.4378235340118408,
+ 0.531209409236908,
+ 0.622459352016449,
+ 0.4378235340118408,
+ 0.531209409236908,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6f8-dbf8-72f3-9e92-7de11a74f258",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-ceb7-78b2-8013-3bfbebf5bf0d",
+ "timing_ms": 425.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-d0f9-7710-a85e-3f208ce9061f",
+ "timing_ms": 2810.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-dbf8-72f3-9e92-7de11a74f258",
+ "timing_ms": 1893.9,
+ "credits_debited": 3291,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Compressors",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=11",
+ "image_sha256": "dd525657a7b0830bf083e7d50329f2431eb6dd169a4e548bc43ddca47ec0c5c7",
+ "row_sha256": "f4c2565599775a36c3ae4ae6a308aface6eebe8d6ec07e5d7c86707d0628246e"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Condensers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Compressors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > Blower Motors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Evaporators",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Climate Control > AC Hoses",
+ "Hardware > Tools > Compressors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engines > Engine Rebuild Kits"
+ ]
+ },
+ {
+ "row_idx": 12,
+ "selected_path": "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Sheet Metal Screws",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Sheet Metal Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Set Screws"
+ ],
+ "text_scores": [
+ 0.5467381477355957,
+ 0.4532618522644043,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.531209409236908,
+ 0.7772998809814453,
+ 0.562176525592804,
+ 0.5926666259765625
+ ],
+ "image_plus_copy_scores": [
+ 0.562176525592804,
+ 0.46879062056541443,
+ 0.5,
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.7981867790222168,
+ 0.5,
+ 0.5926666259765625
+ ],
+ "verifier_response_id": "019fe6f8-e785-7562-bfac-1ce5ea015c2e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-e2c8-7722-a16c-d830940e9085",
+ "timing_ms": 362.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-e44d-7593-a608-b03defd99036",
+ "timing_ms": 823.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-e785-7562-bfac-1ce5ea015c2e",
+ "timing_ms": 1309.1,
+ "credits_debited": 1224,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Sheet Metal Screws",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=12",
+ "image_sha256": "629e21fcfa6e2d6a85ae38a40c847c24cf75db1e8819c61877e4317148b122c9",
+ "row_sha256": "f23a486eab4051184e6905a46ad9f6b1e4eaac0b81d730fa9e411d61245ffd93"
+ },
+ "candidate_paths": [
+ "Hardware > Tools > Screwdrivers > Phillips Screwdrivers",
+ "Hardware > Tools > Screwdrivers",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Drywall Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Machine Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Thumb Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Sheet Metal Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Roofing Screws",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Set Screws"
+ ]
+ },
+ {
+ "row_idx": 13,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Base Rack Systems",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Base Rack Systems",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks"
+ ],
+ "text_scores": [
+ 0.39233678579330444,
+ 0.4073334038257599,
+ 0.4378235340118408,
+ 0.531209409236908,
+ 0.562176525592804,
+ 0.5774953961372375,
+ 0.531209409236908,
+ 0.531209409236908
+ ],
+ "image_plus_copy_scores": [
+ 0.4378235340118408,
+ 0.42250463366508484,
+ 0.5,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.622459352016449,
+ 0.5774953961372375,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6f8-f82b-79a3-afca-76aacb7db80e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-ec85-7732-ae49-e267f393f71c",
+ "timing_ms": 347.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-ee39-74f2-b0f8-7c53370438fb",
+ "timing_ms": 2545.3,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f8-f82b-79a3-afca-76aacb7db80e",
+ "timing_ms": 1491.5,
+ "credits_debited": 3013,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Cargo Racks",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=13",
+ "image_sha256": "7b5d44da16fb94c1e84e8ef06b168cd76ab85e02305bfc12158b327869b312ba",
+ "row_sha256": "6d99fca291c922527484e20d95411769e4f4f54a62c66c50ff72a5dbf0a32ad1"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Fishing Rod Racks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Gun Racks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Ski & Snowboard Racks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Rack Accessories",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Base Rack Systems",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Cargo Racks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Motor Vehicle Carrying Racks > Vehicle Water Sport Board Racks"
+ ]
+ },
+ {
+ "row_idx": 14,
+ "selected_path": "Hardware > Power & Electrical Supplies > Voltage Transformers & Regulators > Voltage Regulators",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Power & Electrical Supplies > Power Converters > Step-Down Converters",
+ "Hardware > Power & Electrical Supplies > Voltage Transformers & Regulators > Voltage Regulators"
+ ],
+ "text_scores": [
+ 0.5926666259765625,
+ 0.5467381477355957,
+ 0.46879062056541443,
+ 0.6513549089431763,
+ 0.36296918988227844,
+ 0.4378235340118408,
+ 0.562176525592804,
+ 0.4073334038257599,
+ 0.3775406777858734
+ ],
+ "image_plus_copy_scores": [
+ 0.6076632142066956,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.6791787147521973,
+ 0.4843800365924835,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.4843800365924835,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6f9-0bb1-77b0-9213-2e98620d4add",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-fda8-7990-ac27-5cd33c322368",
+ "timing_ms": 435.0,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f8-ffb5-7cc3-a034-ebfdff7d1ef8",
+ "timing_ms": 3067.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-0bb1-77b0-9213-2e98620d4add",
+ "timing_ms": 1863.1,
+ "credits_debited": 3386,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Circuit Boards & Components",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=14",
+ "image_sha256": "40c14938f5805d041780477bd4b1cdcea3ea04ce8e41275df680a893c28370dd",
+ "row_sha256": "96f95d2f32c7657f59f5d0011500f38068c81439cbc9a1afaee65afd386507ce"
+ },
+ "candidate_paths": [
+ "Hardware > Power & Electrical Supplies > Voltage Transformers & Regulators > Voltage Regulators",
+ "Electronics > Circuit Boards & Components",
+ "Hardware > Power & Electrical Supplies > Voltage Transformers & Regulators > Voltage Transformers",
+ "Hardware > Power & Electrical Supplies > Power Converters > Step-Down Converters",
+ "Electronics > Electronics Accessories > Power > Battery Accessories > Battery Charge Controllers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems > Voltage Regulators",
+ "Hardware > Power & Electrical Supplies > Voltage Transformers & Regulators",
+ "Electronics > Electronics Accessories > Power > Travel Converters & Adapters",
+ "Hardware > Power & Electrical Supplies > Home Automation Kits > Energy Management Kits"
+ ]
+ },
+ {
+ "row_idx": 15,
+ "selected_path": "Baby & Toddler > Baby Transport > Baby Carriers > Soft-Structured Carriers",
+ "needs_review": false,
+ "candidate_union": [
+ "Baby & Toddler > Baby Transport > Baby Carriers > Soft-Structured Carriers",
+ "Baby & Toddler > Baby Transport > Baby Carriers > Mei Tai Carriers"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.5926666259765625,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.562176525592804,
+ 0.46879062056541443,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.531209409236908
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.622459352016449,
+ 0.5,
+ 0.4843800365924835,
+ 0.5467381477355957,
+ 0.5,
+ 0.4843800365924835,
+ 0.5,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6f9-17dc-7361-a5e2-8f17c5ef7436",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-12a5-73e1-b7f0-55a72739e49a",
+ "timing_ms": 383.8,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-143f-7612-b0ec-93a187f0af4f",
+ "timing_ms": 868.7,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-17dc-7361-a5e2-8f17c5ef7436",
+ "timing_ms": 1711.2,
+ "credits_debited": 1288,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Baby & Toddler > Baby Transport > Baby Carriers > Mei Tai Carriers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=15",
+ "image_sha256": "9d8f9b83f1f97fca1d73814f6c8c6d17260e0f873d82f59637e004593aeb7671",
+ "row_sha256": "c7344ec2f966d48af99aadead1f2a59ce3efb21e3796251d6f9f4c3f1bc56bca"
+ },
+ "candidate_paths": [
+ "Baby & Toddler > Baby Transport > Baby & Toddler Car Seats > Booster Seats",
+ "Baby & Toddler > Baby Transport > Baby Carriers > Soft-Structured Carriers",
+ "Furniture > Baby & Toddler Furniture > High Chairs & Booster Seats > Booster Feeding Seats",
+ "Furniture > Baby & Toddler Furniture > High Chairs & Booster Seats",
+ "Baby & Toddler > Baby Transport > Baby Carriers > Mei Tai Carriers",
+ "Baby & Toddler > Baby Transport > Baby & Toddler Car Seats",
+ "Baby & Toddler > Baby Transport > Baby & Toddler Car Seats > Infant Car Seats",
+ "Baby & Toddler > Baby Transport Accessories > Baby Carrier Accessories > Baby Carrier Waistband Extenders",
+ "Baby & Toddler > Baby Transport > Baby Carriers > Ring Slings & Hip Carriers"
+ ]
+ },
+ {
+ "row_idx": 16,
+ "selected_path": "Apparel & Accessories > Clothing > Pants > Cargo Pants",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing > Pants > Cargo Pants",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Cargos"
+ ],
+ "text_scores": [
+ 0.36296918988227844,
+ 0.562176525592804,
+ 0.3775406777858734,
+ 0.3775406777858734,
+ 0.32082128524780273,
+ 0.3775406777858734,
+ 0.3073579967021942,
+ 0.7431679368019104
+ ],
+ "image_plus_copy_scores": [
+ 0.4073334038257599,
+ 0.5774953961372375,
+ 0.36296918988227844,
+ 0.4378235340118408,
+ 0.3345894515514374,
+ 0.4073334038257599,
+ 0.3345894515514374,
+ 0.7310585379600525
+ ],
+ "verifier_response_id": "019fe6f9-2490-7042-b63c-de10c7948fef",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-1e35-7ac0-bb5c-9887ad73685d",
+ "timing_ms": 334.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-1fa3-7c52-81c0-d092894e1bf0",
+ "timing_ms": 1262.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-2490-7042-b63c-de10c7948fef",
+ "timing_ms": 1414.6,
+ "credits_debited": 1706,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing > Pants > Cargo Pants",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=16",
+ "image_sha256": "85f660785f1a737b74ddce4ba96eb6256c1f79e0a25bf1e7c45d5381c4ec3663",
+ "row_sha256": "662eec5fb3cd18eb3be8a441578eab8c4e63d19b0572152ca65932e913de7b41"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Jeggings",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Cargos",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Chinos",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Joggers",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Jeans",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Leggings",
+ "Apparel & Accessories > Clothing > Pants > Cargo Pants"
+ ]
+ },
+ {
+ "row_idx": 17,
+ "selected_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Skirts",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Skirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Trousers"
+ ],
+ "text_scores": [
+ 0.4532618522644043,
+ 0.4378235340118408,
+ 0.42250463366508484,
+ 0.4532618522644043,
+ 0.46879062056541443,
+ 0.46879062056541443,
+ 0.7549149990081787,
+ 0.5774953961372375
+ ],
+ "image_plus_copy_scores": [
+ 0.4532618522644043,
+ 0.4378235340118408,
+ 0.4532618522644043,
+ 0.4532618522644043,
+ 0.46879062056541443,
+ 0.5,
+ 0.7772998809814453,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6f9-2e9a-7732-a2f7-62feb9c9eaed",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-29fa-76e0-85ee-245213922fab",
+ "timing_ms": 328.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-2b46-7831-a20e-141146ac1f10",
+ "timing_ms": 824.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-2e9a-7732-a2f7-62feb9c9eaed",
+ "timing_ms": 1241.3,
+ "credits_debited": 1331,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Skirts",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=17",
+ "image_sha256": "878dfb95f9e31ce5b738ed11e700ed86ff672966417f41f765b8122e7798c312",
+ "row_sha256": "a711e178fc9810dcc544c13c952671cd9521bef6ca619719cbeebf793dbe216f"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Jeans",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Leggings",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Joggers",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Jeggings",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Chinos",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Skirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Pants > Trousers"
+ ]
+ },
+ {
+ "row_idx": 18,
+ "selected_path": "Home & Garden > Decor > Figurines",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Decor > Seasonal & Holiday Decorations > Japanese Traditional Dolls",
+ "Home & Garden > Decor > Figurines",
+ "Apparel & Accessories > Clothing Accessories > Hair Accessories > Tiaras"
+ ],
+ "text_scores": [
+ 0.36296918988227844,
+ 0.5156199336051941,
+ 0.4073334038257599,
+ 0.36296918988227844,
+ 0.3775406777858734,
+ 0.4378235340118408,
+ 0.4073334038257599,
+ 0.3073579967021942
+ ],
+ "image_plus_copy_scores": [
+ 0.6076632142066956,
+ 0.39233678579330444,
+ 0.7549149990081787,
+ 0.5774953961372375,
+ 0.637030839920044,
+ 0.7185943722724915,
+ 0.4843800365924835,
+ 0.29421496391296387
+ ],
+ "verifier_response_id": "019fe6f9-3c55-7b80-ac8b-eff53384bbbe",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-335b-72f1-b51b-eddc0cd2be71",
+ "timing_ms": 301.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-34e0-7a40-984c-2f81ca8c4633",
+ "timing_ms": 1898.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-3c55-7b80-ac8b-eff53384bbbe",
+ "timing_ms": 1592.9,
+ "credits_debited": 2210,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Decor > Seasonal & Holiday Decorations > Seasonal Village Sets & Accessories",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=18",
+ "image_sha256": "3f271f9b817a7625bb1a9926cbba79961c85d5fefa3e4e94f2777c9058b22119",
+ "row_sha256": "d8af8985f8ba91575ef1f4f761c3583686390ef70dea3c7eadc00e2d8fbb731a"
+ },
+ "candidate_paths": [
+ "Home & Garden > Decor > Lawn Ornaments & Garden Sculptures",
+ "Apparel & Accessories > Clothing Accessories > Hair Accessories > Tiaras",
+ "Home & Garden > Decor > Seasonal & Holiday Decorations > Japanese Traditional Dolls",
+ "Home & Garden > Decor > Seasonal & Holiday Decorations > Nativity Sets",
+ "Home & Garden > Decor > Seasonal & Holiday Decorations > Seasonal Village Sets & Accessories",
+ "Home & Garden > Decor > Figurines",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Figurines",
+ "Home & Garden > Decor > World Globes > Antique Globes"
+ ]
+ },
+ {
+ "row_idx": 19,
+ "selected_path": "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "needs_review": false,
+ "candidate_union": [
+ "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "Food, Beverages & Tobacco > Food Items > Condiments & Sauces > Relish & Chutney"
+ ],
+ "text_scores": [
+ 0.2018132209777832,
+ 0.23370636999607086,
+ 0.42250463366508484,
+ 0.3486451208591461,
+ 0.531209409236908,
+ 0.3345894515514374,
+ 0.36296918988227844,
+ 0.46879062056541443,
+ 0.3073579967021942
+ ],
+ "image_plus_copy_scores": [
+ 0.2018132209777832,
+ 0.23370636999607086,
+ 0.46879062056541443,
+ 0.36296918988227844,
+ 0.4843800365924835,
+ 0.3345894515514374,
+ 0.39233678579330444,
+ 0.5,
+ 0.3345894515514374
+ ],
+ "verifier_response_id": "019fe6f9-4e3a-7722-a76d-acda123a5ec7",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-422f-76c0-a27e-b14e6439e53c",
+ "timing_ms": 434.2,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-443a-75f3-b300-d1ee9aad995d",
+ "timing_ms": 2555.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-4e3a-7722-a76d-acda123a5ec7",
+ "timing_ms": 1551.7,
+ "credits_debited": 2837,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=19",
+ "image_sha256": "3e11875a12cbc5de280af722024a830a4bc344fa9c32c0d24457e62083743ed1",
+ "row_sha256": "a76fe1dfa48574788c4032d66f4579d393c7a76d68dfea7cd3a688f4bd17999b"
+ },
+ "candidate_paths": [
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Cotton Candy Machine Accessories > Cotton Candy Sugar",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Fruits > Soursops",
+ "Food, Beverages & Tobacco > Food Items > Bakery > Cookies",
+ "Food, Beverages & Tobacco > Food Items > Cooking & Baking Ingredients > Molasses",
+ "Food, Beverages & Tobacco > Food Items > Condiments & Sauces > Relish & Chutney",
+ "Food, Beverages & Tobacco > Food Items > Condiments & Sauces > Curry Sauce",
+ "Food, Beverages & Tobacco > Food Items > Cooking & Baking Ingredients > Baking Chips",
+ "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Sugar Cane"
+ ]
+ },
+ {
+ "row_idx": 20,
+ "selected_path": "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Shower Heads > Fixed Shower Heads",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Shower Heads",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Shower Heads > Fixed Shower Heads",
+ "Health & Beauty > Personal Care > Cosmetics > Perfumes & Colognes > Body Mists",
+ "Health & Beauty > Personal Care > Cosmetics > Bath & Body > Shower Caps"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.32082128524780273,
+ 0.6076632142066956,
+ 0.3486451208591461,
+ 0.3775406777858734,
+ 0.3486451208591461,
+ 0.3345894515514374,
+ 0.32082128524780273,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.4378235340118408,
+ 0.5926666259765625,
+ 0.5467381477355957,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.5,
+ 0.562176525592804,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6f9-5a5c-7d33-a832-b1a47b30cbe4",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-53eb-7f00-b549-0ad82da77815",
+ "timing_ms": 339.3,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-555e-7bf2-be71-9326b3d6c42c",
+ "timing_ms": 1274.9,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-5a5c-7d33-a832-b1a47b30cbe4",
+ "timing_ms": 1404.3,
+ "credits_debited": 1680,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Bathtub & Shower Jets",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=20",
+ "image_sha256": "98992ce07fb9312ad710852f7af786565c3e6328f8b711e3e6c38dac23437b26",
+ "row_sha256": "befe30007b2153ccd1835c6b802da7e1f30324bb7873ac89dc280e58a1777193"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Cosmetics > Bath & Body > Bath Bombs",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Shower Heads > Fixed Shower Heads",
+ "Health & Beauty > Personal Care > Cosmetics > Perfumes & Colognes > Body Mists",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Shower Heads",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Toilet & Bidet Accessories > Bidet Faucets & Sprayers",
+ "Hardware > Plumbing > Plumbing Fixtures > Toilets & Bidets > Bidets",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Toilet & Bidet Accessories > Bidet Faucets & Sprayers > Bidet Sprayers",
+ "Hardware > Plumbing > Plumbing Fixture Hardware & Parts > Shower Parts > Bathtub & Shower Jets",
+ "Health & Beauty > Personal Care > Cosmetics > Bath & Body > Shower Caps"
+ ]
+ },
+ {
+ "row_idx": 21,
+ "selected_path": "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Firecrackers",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Firecrackers",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers"
+ ],
+ "text_scores": [
+ 0.39233678579330444,
+ 0.637030839920044,
+ 0.3775406777858734,
+ 0.4378235340118408,
+ 0.3345894515514374,
+ 0.637030839920044,
+ 0.6076632142066956,
+ 0.5774953961372375
+ ],
+ "image_plus_copy_scores": [
+ 0.39233678579330444,
+ 0.665410578250885,
+ 0.4378235340118408,
+ 0.4378235340118408,
+ 0.3073579967021942,
+ 0.6513549089431763,
+ 0.622459352016449,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6f9-64d0-7a70-9407-7197203e4edf",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-5fbe-7093-be27-223f172a2203",
+ "timing_ms": 379.0,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-6155-7e10-a379-184d36ed0d6e",
+ "timing_ms": 832.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-64d0-7a70-9407-7197203e4edf",
+ "timing_ms": 1412.9,
+ "credits_debited": 1210,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Firecrackers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=21",
+ "image_sha256": "a3ad80603f58c453c3ae1f8d1334e29c2acbe3725e33473a6e03b0eead3c73d6",
+ "row_sha256": "3da5b8ae948a90677effedb64ca622e6d1a1ae9cbb57baab7673213911fa2a16"
+ },
+ "candidate_paths": [
+ "Hardware > Building Consumables > Chemicals > Lighter Fluid",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Firecrackers",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Portable Cooking Stove Accessories > Fire Starters",
+ "Hardware > Tools > Lighters & Matches",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Portable Cooking Stove Accessories > Fire Mats",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Firework Assortments",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Fireworks & Firecrackers > Fountain Fireworks"
+ ]
+ },
+ {
+ "row_idx": 22,
+ "selected_path": "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Thongs",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Thongs",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Briefs"
+ ],
+ "text_scores": [
+ 0.531209409236908,
+ 0.5,
+ 0.4532618522644043,
+ 0.42250463366508484,
+ 0.531209409236908,
+ 0.39233678579330444,
+ 0.46879062056541443,
+ 0.6926419734954834
+ ],
+ "image_plus_copy_scores": [
+ 0.6513549089431763,
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.5156199336051941,
+ 0.637030839920044,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.7057850360870361
+ ],
+ "verifier_response_id": "019fe6f9-6edd-7ae0-8c9f-db21f6ed0380",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-69ff-7122-9aa2-1dabb2f62db1",
+ "timing_ms": 333.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-6b6a-7e11-9ef7-af7ae101c9c5",
+ "timing_ms": 880.9,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-6edd-7ae0-8c9f-db21f6ed0380",
+ "timing_ms": 1320.5,
+ "credits_debited": 1366,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Thongs",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=22",
+ "image_sha256": "6cf64ef1dfc1ce876d9b3a309f2cb0468146203c04711c26a1967519d15adf56",
+ "row_sha256": "7fa1ff5682669feafa908a821c645cb446f28f9f48b1b669422b13c111c88ce6"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Briefs",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Jockstraps",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Boxer Briefs",
+ "Apparel & Accessories > Clothing > Boys' Underwear",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Boxer Shorts",
+ "Apparel & Accessories > Clothing > Lingerie > Jock Straps",
+ "Apparel & Accessories > Clothing > Men's Undergarments > Men's Underwear > Thongs"
+ ]
+ },
+ {
+ "row_idx": 23,
+ "selected_path": "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Brush Mower Attachments",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Brush Mower Attachments",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Brush Mower Attachments > Blades"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.531209409236908,
+ 0.46879062056541443,
+ 0.42250463366508484,
+ 0.5156199336051941,
+ 0.5,
+ 0.32082128524780273,
+ 0.5156199336051941,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.4532618522644043,
+ 0.665410578250885,
+ 0.5,
+ 0.5926666259765625,
+ 0.6791787147521973,
+ 0.622459352016449,
+ 0.4073334038257599,
+ 0.665410578250885,
+ 0.622459352016449
+ ],
+ "verifier_response_id": "019fe6f9-7b99-7e42-874d-3c49df811a17",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-73e9-73c1-b05f-62e770385bdd",
+ "timing_ms": 388.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-758c-76d3-9011-428712da15d0",
+ "timing_ms": 1547.0,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-7b99-7e42-874d-3c49df811a17",
+ "timing_ms": 1292.0,
+ "credits_debited": 1956,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Multifunction Outdoor Power Equipment Attachments > Weed Trimmer Attachments",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=23",
+ "image_sha256": "62c0c33dd0f312dfaea8a32d291f7579b82b543b4dd30feef37476b220620a76",
+ "row_sha256": "cf0685c61dd02e747d0eea7d17af64bbed9154cbc07a143ea0e523f5e2dce5a4"
+ },
+ "candidate_paths": [
+ "Hardware > Tool Accessories > Wedge Tools > Splitting Wedges",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Brush Mower Attachments > Blades",
+ "Hardware > Tools > Axes > Splitting Axes",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Multifunction Outdoor Power Equipment Attachments > Hedge Trimmer Attachments",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Brush Mower Attachments",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Multifunction Outdoor Power Equipment Attachments > Pole Saw Attachments",
+ "Hardware > Tools > Log Splitters",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Multifunction Outdoor Power Equipment Attachments",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Multifunction Outdoor Power Equipment Attachments > Weed Trimmer Attachments"
+ ]
+ },
+ {
+ "row_idx": 24,
+ "selected_path": "Media > Music & Sound Recordings > Music CDs",
+ "needs_review": false,
+ "candidate_union": [
+ "Media > Music & Sound Recordings > Music CDs",
+ "Media > Music & Sound Recordings > Records & LPs",
+ "Media > Music & Sound Recordings"
+ ],
+ "text_scores": [
+ 0.5467381477355957,
+ 0.4073334038257599,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.4378235340118408,
+ 0.46879062056541443,
+ 0.5156199336051941,
+ 0.5
+ ],
+ "image_plus_copy_scores": [
+ 0.562176525592804,
+ 0.4843800365924835,
+ 0.5926666259765625,
+ 0.6076632142066956,
+ 0.5774953961372375,
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.5774953961372375,
+ 0.562176525592804
+ ],
+ "verifier_response_id": "019fe6f9-8601-7452-bbf7-57a7b8930701",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-8089-7ce0-a5d1-9ae9aea12265",
+ "timing_ms": 335.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-8231-7301-ba34-521382dc6110",
+ "timing_ms": 974.4,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-8601-7452-bbf7-57a7b8930701",
+ "timing_ms": 1410.5,
+ "credits_debited": 1233,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Media > Podcasts & Live Streams > Radio Shows",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=24",
+ "image_sha256": "428bf282d22924a61099c12b79283839c1330fa1f1b708f3b2cef5603be9e9c1",
+ "row_sha256": "f4264ea08ae35025666870e9174d1f768ab094639db6502a4b2be2d639cdb753"
+ },
+ "candidate_paths": [
+ "Media > Music & Sound Recordings",
+ "Media > Sheet Music",
+ "Media > Music & Sound Recordings > Records & LPs",
+ "Media > Music & Sound Recordings > Music CDs",
+ "Media > Music & Sound Recordings > Vinyl",
+ "Electronics > Audio > DJ & Specialty Audio > DJ CD Players",
+ "Media > Podcasts & Live Streams > Radio Shows",
+ "Media > Music & Sound Recordings > Digital Music Downloads",
+ "Media > Music & Sound Recordings > Music Cassette Tapes"
+ ]
+ },
+ {
+ "row_idx": 25,
+ "selected_path": "Baby & Toddler > Diapering > Diaper Pails > Diaper Disposal Systems",
+ "needs_review": false,
+ "candidate_union": [
+ "Baby & Toddler > Diapering > Diaper Pails > Diaper Disposal Systems",
+ "Baby & Toddler > Diapering > Diaper Pails"
+ ],
+ "text_scores": [
+ 0.7879312038421631,
+ 0.7310585379600525,
+ 0.637030839920044,
+ 0.637030839920044,
+ 0.6926419734954834,
+ 0.7549149990081787,
+ 0.6513549089431763,
+ 0.6926419734954834
+ ],
+ "image_plus_copy_scores": [
+ 0.7879312038421631,
+ 0.7431679368019104,
+ 0.5774953961372375,
+ 0.637030839920044,
+ 0.7057850360870361,
+ 0.7662936449050903,
+ 0.622459352016449,
+ 0.6926419734954834
+ ],
+ "verifier_response_id": "019fe6f9-9717-75d0-8ff3-1a4e659935df",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-8b2c-7ec2-b79d-bcc90d3eb305",
+ "timing_ms": 369.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-8cbd-72a0-8dd8-85d66aa16801",
+ "timing_ms": 2590.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-9717-75d0-8ff3-1a4e659935df",
+ "timing_ms": 1440.3,
+ "credits_debited": 4295,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Baby & Toddler > Diapering > Diaper Pails > Diaper Disposal Systems",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=25",
+ "image_sha256": "4ac56d724a8a3833480e5db26e6ba80688c6ed87f596d419d7af2e0135f8bd88",
+ "row_sha256": "324795cc5a9f2d392fba9fd5b58694c08ac60c4a0301e552bb1fe30ec43343bf"
+ },
+ "candidate_paths": [
+ "Baby & Toddler > Diapering > Diaper Pails > Diaper Disposal Systems",
+ "Baby & Toddler > Diapering > Diaper Pails > Diaper Trash Cans",
+ "Baby & Toddler > Diapering > Diaper Pail Accessories > Diaper Pail Bags",
+ "Baby & Toddler > Diapering > Diaper Pail Accessories > Diaper Pail Refills",
+ "Baby & Toddler > Diapering > Diaper Pail Accessories",
+ "Baby & Toddler > Diapering > Diaper Pails",
+ "Baby & Toddler > Diapering > Diaper Pail Accessories > Diaper Pail Liners",
+ "Baby & Toddler > Diapering > Diaper Pail Accessories > Diaper Pail Deodorizers"
+ ]
+ },
+ {
+ "row_idx": 26,
+ "selected_path": "Arts & Entertainment > Party & Celebration > Party Supplies > Banners",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Banners",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Flags"
+ ],
+ "text_scores": [
+ 0.6076632142066956,
+ 0.531209409236908,
+ 0.4532618522644043,
+ 0.4843800365924835,
+ 0.6076632142066956,
+ 0.622459352016449,
+ 0.4843800365924835,
+ 0.6513549089431763,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.42250463366508484,
+ 0.6076632142066956,
+ 0.622459352016449,
+ 0.5467381477355957,
+ 0.637030839920044,
+ 0.4532618522644043
+ ],
+ "verifier_response_id": "019fe6f9-a18a-7a71-81c0-1f3e24abdbf4",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-9c60-7101-8ad4-02ccf6255886",
+ "timing_ms": 340.9,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-9dd3-7301-a443-091af5a232d9",
+ "timing_ms": 946.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-a18a-7a71-81c0-1f3e24abdbf4",
+ "timing_ms": 1271.9,
+ "credits_debited": 1269,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Decor > Seasonal & Holiday Decorations > Japanese Traditional Dolls",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=26",
+ "image_sha256": "25bce06c909e82e252c768e2d20c8ee8c8a74b6ea1252d3d6ee3ad19a0f3fa50",
+ "row_sha256": "3b8b7286b713d5e989ac274550a14bf1a596ded462518bd6e0e4fa825333c16c"
+ },
+ "candidate_paths": [
+ "Home & Garden > Decor > Flags & Windsocks",
+ "Home & Garden > Decor > Mailbox Accessories > Mailbox Flags",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Decor > Vehicle Display Flags",
+ "Home & Garden > Decor > Seasonal & Holiday Decorations > Japanese Traditional Dolls",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Banners",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Flags",
+ "Business & Industrial > Advertising & Marketing > Trade Show Displays > Banner Stands",
+ "Arts & Entertainment > Party & Celebration > Party Supplies > Banners",
+ "Sporting Goods > Outdoor Recreation > Golf > Golf Flags"
+ ]
+ },
+ {
+ "row_idx": 27,
+ "selected_path": "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > GPS Collars",
+ "needs_review": false,
+ "candidate_union": [
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > GPS Collars",
+ "Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hunting Dog Equipment > Hunting Dog Collars",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.622459352016449,
+ 0.5,
+ 0.5,
+ 0.5774953961372375,
+ 0.5926666259765625,
+ 0.7057850360870361,
+ 0.562176525592804
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.622459352016449,
+ 0.4532618522644043,
+ 0.5,
+ 0.5926666259765625,
+ 0.6076632142066956,
+ 0.7057850360870361,
+ 0.665410578250885
+ ],
+ "verifier_response_id": "019fe6f9-acbc-7ce3-9245-7013aed79397",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-a668-7663-a062-ef28c63fef30",
+ "timing_ms": 382.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-a800-7223-9ab5-8d4fa24954a1",
+ "timing_ms": 1209.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-acbc-7ce3-9245-7013aed79397",
+ "timing_ms": 1669.8,
+ "credits_debited": 4184,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hunting Dog Equipment > Hunting Dog Collars",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=27",
+ "image_sha256": "2db96ded52addf3b4907233dbdc0b114feb0d5f48ccab22c5111cfdfb059f753",
+ "row_sha256": "8ae3a252d39f0d933b1f3257223c712453a0bcdab5adb2713f5ef4b83e720276"
+ },
+ "candidate_paths": [
+ "Animals & Pet Supplies > Pet Supplies > Pet Biometric Monitors",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses",
+ "Animals & Pet Supplies > Pet Supplies > Pet Biometric Monitors > Pet Pedometers",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > Martingale Collars",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > LED Collars",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > Standard Collars",
+ "Animals & Pet Supplies > Pet Supplies > Pet Collars & Harnesses > GPS Collars",
+ "Sporting Goods > Outdoor Recreation > Hunting & Shooting > Hunting > Hunting Dog Equipment > Hunting Dog Collars"
+ ]
+ },
+ {
+ "row_idx": 28,
+ "selected_path": "Home & Garden > Lighting > Landscape Pathway Lighting",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Lighting > Landscape Pathway Lighting",
+ "Home & Garden > Business & Home Security > Security Lights",
+ "Home & Garden > Lighting > In-Ground Lights"
+ ],
+ "text_scores": [
+ 0.3486451208591461,
+ 0.4378235340118408,
+ 0.42250463366508484,
+ 0.5,
+ 0.28140559792518616,
+ 0.3345894515514374,
+ 0.4073334038257599,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.3486451208591461,
+ 0.531209409236908,
+ 0.4073334038257599,
+ 0.5467381477355957,
+ 0.3073579967021942,
+ 0.42250463366508484,
+ 0.4073334038257599,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6f9-c15c-7081-a44a-43ecbae2c164",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-b32e-7c40-a92f-46710ff57ffe",
+ "timing_ms": 428.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-b52e-7bc1-96d6-838ccb5f2338",
+ "timing_ms": 3058.9,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-c15c-7081-a44a-43ecbae2c164",
+ "timing_ms": 1568.7,
+ "credits_debited": 3747,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Lighting > Landscape Pathway Lighting",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=28",
+ "image_sha256": "52e74a3e88d55236ee7fd5b611e911d4965a9fb8afa76ee82d92f93c501366f2",
+ "row_sha256": "b19abd69329c5f848add61400fabc1077a4e0143f702b2de28d0b1277a8845d1"
+ },
+ "candidate_paths": [
+ "Home & Garden > Lawn & Garden > Gardening > Hydroponics > Grow Lighting > LED Grow Lights",
+ "Home & Garden > Lighting > In-Ground Lights",
+ "Home & Garden > Lawn & Garden > Outdoor Living > Outdoor Umbrella & Sunshade Accessories > Outdoor Umbrella Lights",
+ "Home & Garden > Business & Home Security > Security Lights",
+ "Home & Garden > Lawn & Garden > Gardening > Hydroponics > Grow Lighting > Fluorescent Grow Lights",
+ "Home & Garden > Decor > Flag & Windsock Accessories > Flag & Windsock Pole Lights",
+ "Hardware > Tools > Work Lights",
+ "Home & Garden > Lighting > Landscape Pathway Lighting"
+ ]
+ },
+ {
+ "row_idx": 29,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons",
+ "Hardware > Tool Accessories > Axe Accessories > Axe Heads",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons > Collectible Swords > Historical Collectible Swords"
+ ],
+ "text_scores": [
+ 0.4532618522644043,
+ 0.3345894515514374,
+ 0.46879062056541443,
+ 0.3775406777858734,
+ 0.531209409236908,
+ 0.5926666259765625,
+ 0.562176525592804,
+ 0.4378235340118408,
+ 0.5774953961372375
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.4073334038257599,
+ 0.46879062056541443,
+ 0.3775406777858734,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.5467381477355957,
+ 0.531209409236908,
+ 0.562176525592804
+ ],
+ "verifier_response_id": "019fe6f9-d749-7880-b860-b5be280e1dd9",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-c6ec-7c90-ab8e-1bbc529cf576",
+ "timing_ms": 389.0,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-c908-7002-96d1-dc0c908d4f71",
+ "timing_ms": 3590.4,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-d749-7880-b860-b5be280e1dd9",
+ "timing_ms": 1768.6,
+ "credits_debited": 3169,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=29",
+ "image_sha256": "b00885142376c50829e7f2d9d41eec21b6ee0eeb8cc01969752b6711a4d28bfa",
+ "row_sha256": "544a7ee2561fcd53aef6a9a7f691254f4cffc982c2c8ba624e3a7024a9809a1c"
+ },
+ "candidate_paths": [
+ "Hardware > Tool Accessories > Tool Handle Wedges > Axe Handle Wedges",
+ "Hardware > Tools > Mattocks & Pickaxes > Mattocks",
+ "Mature > Weapons & Weapon Accessories > Weapons > Staff & Stick Weapons",
+ "Mature > Weapons & Weapon Accessories > Weapons > Spears",
+ "Hardware > Tool Accessories > Axe Accessories > Axe Heads",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons",
+ "Hardware > Tool Accessories > Axe Accessories > Axe Handles",
+ "Hardware > Tools > Axes > Hatchets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Collectible Weapons > Collectible Swords > Historical Collectible Swords"
+ ]
+ },
+ {
+ "row_idx": 30,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "Hardware > Hardware Accessories > Coils"
+ ],
+ "text_scores": [
+ 0.46879062056541443,
+ 0.665410578250885,
+ 0.5156199336051941,
+ 0.665410578250885,
+ 0.637030839920044,
+ 0.5,
+ 0.4073334038257599,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.637030839920044,
+ 0.5,
+ 0.6791787147521973,
+ 0.622459352016449,
+ 0.5156199336051941,
+ 0.46879062056541443,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6f9-e316-7a80-9ee9-b61a0d9870cb",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-dd63-71e0-b037-3c23742677af",
+ "timing_ms": 364.0,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-deeb-7182-b1ba-175c9e258817",
+ "timing_ms": 1066.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-e316-7a80-9ee9-b61a0d9870cb",
+ "timing_ms": 1364.0,
+ "credits_debited": 3462,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=30",
+ "image_sha256": "96bd7c4df749dc3c08be968e6f493d9a7fca46cbf2ae64bb716849645a8a3700",
+ "row_sha256": "1a5fbfbe27c05c9456f03a94e798c53828b3d8c24b92d43f2af18aab8acaa2a1"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems > Ignition Switches",
+ "Hardware > Hardware Accessories > Coils",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems > Spark Plugs",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Glow Plugs",
+ "Hardware > Hardware Accessories > Coils > Extension Coils",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Leads"
+ ]
+ },
+ {
+ "row_idx": 31,
+ "selected_path": "Electronics > Audio > Audio Components > Audio Transmitters",
+ "needs_review": true,
+ "candidate_union": [
+ "Electronics > Audio > Audio Components > Signal Processors",
+ "Electronics > Audio > Audio Components > Audio Transmitters",
+ "Electronics > Audio > Audio Components > Signal Processors > Microphone Preamps"
+ ],
+ "text_scores": [
+ 0.28140559792518616,
+ 0.531209409236908,
+ 0.23370636999607086,
+ 0.2568320035934448,
+ 0.6513549089431763,
+ 0.42250463366508484,
+ 0.4532618522644043,
+ 0.562176525592804,
+ 0.24508501589298248
+ ],
+ "image_plus_copy_scores": [
+ 0.3345894515514374,
+ 0.5926666259765625,
+ 0.3345894515514374,
+ 0.3486451208591461,
+ 0.622459352016449,
+ 0.4378235340118408,
+ 0.5,
+ 0.531209409236908,
+ 0.32082128524780273
+ ],
+ "verifier_response_id": "019fe6f9-ed92-7f33-9876-2c5f0251abe9",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-e85d-7a71-9792-fb5b54a9fab3",
+ "timing_ms": 435.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-ea05-78b3-83b6-5bc48b936504",
+ "timing_ms": 910.8,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-ed92-7f33-9876-2c5f0251abe9",
+ "timing_ms": 1265.4,
+ "credits_debited": 1169,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Alto & Baritone Horns > Mellophones",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=31",
+ "image_sha256": "46e731ad6f6addb9a3198005e90de7ffd102d1d9a92b24e57b42f01a7e38441d",
+ "row_sha256": "ebefad6247780c14183fc475705d25fe7c0bd738bbb219d8c28f2435804e7fce"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Equalizers & Crossovers > Digital Sound Processors",
+ "Electronics > Audio > Audio Components > Audio Transmitters",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Brass Instruments > Alto & Baritone Horns > Mellophones",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Subwoofers",
+ "Electronics > Audio > Audio Components > Signal Processors",
+ "Electronics > Audio > Audio Components > Channel Strips",
+ "Electronics > Audio > Audio Components > Direct Boxes",
+ "Electronics > Audio > Audio Components > Signal Processors > Microphone Preamps",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Speakers > Mid-Range Speakers"
+ ]
+ },
+ {
+ "row_idx": 32,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Embroidery Hoops",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Embroidery Hoops",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Quilting Frames"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.32082128524780273,
+ 0.562176525592804,
+ 0.7057850360870361,
+ 0.5774953961372375,
+ 0.5,
+ 0.531209409236908,
+ 0.622459352016449
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.4532618522644043,
+ 0.665410578250885,
+ 0.7431679368019104,
+ 0.6926419734954834,
+ 0.637030839920044,
+ 0.665410578250885,
+ 0.6926419734954834
+ ],
+ "verifier_response_id": "019fe6f9-f74b-7893-9712-a1c87a512e18",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-f28d-7053-9a73-f3fbe15646ac",
+ "timing_ms": 384.1,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-f427-7c00-af67-2bc7c749eb93",
+ "timing_ms": 804.0,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6f9-f74b-7893-9712-a1c87a512e18",
+ "timing_ms": 1623.1,
+ "credits_debited": 1288,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=32",
+ "image_sha256": "1dc280e0d76cc4883a318fb37149b31f659b472aed885dda3dfbd1932bdc52be",
+ "row_sha256": "0cfed96293999b555ee429a2601a1f0e936f3d4d3bcc0914e412a7e339f4c07f"
+ },
+ "candidate_paths": [
+ "Home & Garden > Decor > Window Magnets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Embellishments & Trims > Beads",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft Magnets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Embroidery Hoops",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Needlepoint Frames",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Cross-Stitch Frames",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Quilting Frames"
+ ]
+ },
+ {
+ "row_idx": 33,
+ "selected_path": "Furniture > Cabinets & Storage > Sideboards",
+ "needs_review": false,
+ "candidate_union": [
+ "Furniture > Cabinets & Storage > Sideboards",
+ "Furniture > Cabinets & Storage > Buffets",
+ "Furniture > Shelving > Wall Shelves & Ledges > Corner Wall Shelves & Ledges"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.562176525592804,
+ 0.531209409236908,
+ 0.42250463366508484,
+ 0.4532618522644043,
+ 0.4378235340118408,
+ 0.5,
+ 0.4073334038257599
+ ],
+ "image_plus_copy_scores": [
+ 0.4532618522644043,
+ 0.4073334038257599,
+ 0.6076632142066956,
+ 0.46879062056541443,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.5926666259765625,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fa-0b29-7973-bca4-cb99908251ef",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-fd87-77e0-b6ac-531e53186af8",
+ "timing_ms": 383.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6f9-ffa2-7473-bbdd-d36435ae4710",
+ "timing_ms": 2891.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-0b29-7973-bca4-cb99908251ef",
+ "timing_ms": 2222.3,
+ "credits_debited": 3207,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Furniture > Cabinets & Storage > Buffets",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=33",
+ "image_sha256": "e9727dacdecf27c29cf3c0a3a795c72eb3d87cf0168d6c1dae9dfd1e4a3db7c2",
+ "row_sha256": "1858d544743f47f06a0d594718298b4eed9d6509572d73b1ad698d98897cf0cb"
+ },
+ "candidate_paths": [
+ "Furniture > Cabinets & Storage > Kitchen Cabinets > Corner Kitchen Cabinets",
+ "Furniture > Shelving > Wall Shelves & Ledges > Corner Wall Shelves & Ledges",
+ "Furniture > Cabinets & Storage > Sideboards",
+ "Furniture > Cabinets & Storage > China Cabinets & Hutches > Corner Display Cabinets",
+ "Furniture > Cabinets & Storage > China Cabinets & Hutches > Sideboards with Hutch",
+ "Furniture > Cabinets & Storage > China Cabinets & Hutches > Corner Hutches",
+ "Furniture > Cabinets & Storage > Buffets",
+ "Furniture > Cabinets & Storage > Kitchen Cabinets > Farmhouse Kitchen Cabinets"
+ ]
+ },
+ {
+ "row_idx": 34,
+ "selected_path": "Home & Garden > Emergency Preparedness > Earthquake Alarms",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Emergency Preparedness > Earthquake Alarms",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer"
+ ],
+ "text_scores": [
+ 0.4843800365924835,
+ 0.5467381477355957,
+ 0.5,
+ 0.5156199336051941,
+ 0.4843800365924835,
+ 0.6791787147521973,
+ 0.3775406777858734,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.4378235340118408,
+ 0.6076632142066956,
+ 0.46879062056541443,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.622459352016449,
+ 0.42250463366508484,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6fa-172e-7f00-99e5-53faab7e35fa",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-1308-76e1-b2a3-08c50054fd75",
+ "timing_ms": 309.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-145a-7090-8eb6-f47834910bcf",
+ "timing_ms": 723.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-172e-7f00-99e5-53faab7e35fa",
+ "timing_ms": 1582.5,
+ "credits_debited": 1020,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Emergency Preparedness > Earthquake Alarms",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=34",
+ "image_sha256": "d732b75e4a08a981c3c68f3bd8dc226a13ff8022c6e8710de2514f1426e2695b",
+ "row_sha256": "f52d691786f53a779bbafd6e76e4695de9af84e62ae532e6c47af3dfc6278c8c"
+ },
+ "candidate_paths": [
+ "Home & Garden > Flood, Fire & Gas Safety > Water & Flood Detectors > Sensor & Alert Systems",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer",
+ "Electronics > Audio > Audio Players & Recorders > Radios > Weather Radios",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer > Broadband Seismometers",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer > Short-Period Seismometers",
+ "Home & Garden > Emergency Preparedness > Earthquake Alarms",
+ "Electronics > Electronics Accessories > Signal Jammers",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer > Long-Period Seismometers"
+ ]
+ },
+ {
+ "row_idx": 35,
+ "selected_path": "Software > Computer Software > Multimedia & Design Software > Media Viewing Software",
+ "needs_review": false,
+ "candidate_union": [
+ "Software > Computer Software > Multimedia & Design Software > Media Viewing Software",
+ "Electronics > Audio > Audio Players & Recorders > Radios"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.29421496391296387,
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.42250463366508484,
+ 0.5
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.3345894515514374,
+ 0.562176525592804,
+ 0.562176525592804,
+ 0.5467381477355957,
+ 0.5926666259765625,
+ 0.46879062056541443,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6fa-2a71-7812-bfd1-36af1e63d260",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-1d45-76f3-a912-ee6cc2243fcd",
+ "timing_ms": 384.3,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-1f5c-7721-bf0b-494ccc0d317d",
+ "timing_ms": 2831.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-2a71-7812-bfd1-36af1e63d260",
+ "timing_ms": 1789.1,
+ "credits_debited": 3642,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Software > Computer Software > Multimedia & Design Software > Media Viewing Software",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=35",
+ "image_sha256": "27673b89e8a094bf04b1d9210afcad6db18ac8ac16594002fce5b6e1998a7ce5",
+ "row_sha256": "9b036544e15b819ea2ea19853a2230c77a2f1aa42d79f1b74e70a00c37224e8e"
+ },
+ "candidate_paths": [
+ "Electronics > Video > Video Transmitters",
+ "Electronics > Electronics Accessories > Remote Controls",
+ "Electronics > Audio > Audio Players & Recorders > Radios",
+ "Electronics > Audio > Audio Players & Recorders > Radios > Internet Radios",
+ "Software > Computer Software > Business & Productivity Software > Data Analysis & Visualization Software",
+ "Software > Computer Software > Multimedia & Design Software > Media Viewing Software",
+ "Electronics > Communications > Communication Radios > Radio Scanners",
+ "Electronics > Communications > Communication Radios"
+ ]
+ },
+ {
+ "row_idx": 36,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating > Rear Seats"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.22270013391971588,
+ 0.4073334038257599,
+ 0.5926666259765625,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.42250463366508484,
+ 0.4378235340118408,
+ 0.4532618522644043
+ ],
+ "image_plus_copy_scores": [
+ 0.36296918988227844,
+ 0.3775406777858734,
+ 0.36296918988227844,
+ 0.4843800365924835,
+ 0.562176525592804,
+ 0.4532618522644043,
+ 0.4378235340118408,
+ 0.3345894515514374,
+ 0.4532618522644043
+ ],
+ "verifier_response_id": "019fe6fa-38c8-74e1-a1c3-3da6bb20be21",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-30d5-7e32-a2c9-4b64ca56f098",
+ "timing_ms": 410.1,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-328d-7f61-81c9-818d1bf1a08c",
+ "timing_ms": 1534.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-38c8-74e1-a1c3-3da6bb20be21",
+ "timing_ms": 2042.8,
+ "credits_debited": 2542,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Arcade Equipment > Video Game Arcade Cabinet Accessories > Joysticks",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=36",
+ "image_sha256": "f7201834810e026a0d47e068aa7428c94cb50a5913b210fb214fed34442c6738",
+ "row_sha256": "977a5605a7030591aef62b92422858aa53f4257069bc12defae620f9b73a0043"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicles > Motor Vehicles > Motor Sports Vehicles > Racing Sidecars",
+ "Electronics > Arcade Equipment > Video Game Arcade Cabinet Accessories > Joysticks",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & Motor Sports Vehicle Protective Gear > Racing Suits",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating > Rear Seats",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Seating > Front Seats",
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Game Controllers > Game Racing Wheels",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & Motor Sports Vehicle Protective Gear > Racing Protective Shorts",
+ "Vehicles & Parts > Vehicles > Motor Vehicles > Motor Sports Vehicles > Race Cars > Sports Prototypes"
+ ]
+ },
+ {
+ "row_idx": 37,
+ "selected_path": "Electronics > Marine Electronics > Marine Speakers",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Marine Electronics > Marine Speakers",
+ "Electronics > Marine Electronics > Marine Audio & Video Receivers"
+ ],
+ "text_scores": [
+ 0.6791787147521973,
+ 0.5156199336051941,
+ 0.3073579967021942,
+ 0.4843800365924835,
+ 0.4378235340118408,
+ 0.6513549089431763,
+ 0.4532618522644043,
+ 0.562176525592804,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.6926419734954834,
+ 0.562176525592804,
+ 0.39233678579330444,
+ 0.5467381477355957,
+ 0.42250463366508484,
+ 0.622459352016449,
+ 0.42250463366508484,
+ 0.5467381477355957,
+ 0.5156199336051941
+ ],
+ "verifier_response_id": "019fe6fa-4603-7193-a76d-d603985cad25",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-4071-70b2-a96e-0d3120c331a5",
+ "timing_ms": 395.4,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-4218-71f3-8bed-1eb4ed34b5db",
+ "timing_ms": 1003.8,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-4603-7193-a76d-d603985cad25",
+ "timing_ms": 1256.7,
+ "credits_debited": 1347,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Speakers > Woofers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=37",
+ "image_sha256": "602a93a9fe68aee9bac13097b4578fbe0fba9f961dab98bc13598f81fbedd9b8",
+ "row_sha256": "03c2f14bc0b6922ad5a7646ca56e62f3f2fb8d1e59d4c974bf19d3a9f3827e52"
+ },
+ "candidate_paths": [
+ "Electronics > Marine Electronics > Marine Speakers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Instrument Amplifiers > Bass Amplifiers",
+ "Animals & Pet Supplies > Pet Supplies > Fish & Aquatic Supplies > Aquarium Temperature Controllers > Analog Temperature Controllers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Instrument Amplifier Accessories > Musical Instrument Amplifier Knobs",
+ "Toys & Games > Toys > Remote Control Toys > Remote Control Boats & Watercraft",
+ "Electronics > Marine Electronics > Marine Audio & Video Receivers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Musical Instrument Amplifier Accessories > Musical Instrument Amplifier Footswitches",
+ "Electronics > Electronics Accessories > Remote Controls",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Speakers > Woofers"
+ ]
+ },
+ {
+ "row_idx": 38,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > String Instrument Care & Cleaning > Bow Rosin",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > String Instrument Care & Cleaning > Bow Rosin",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > String Instruments > Violas"
+ ],
+ "text_scores": [
+ 0.46879062056541443,
+ 0.4378235340118408,
+ 0.6926419734954834,
+ 0.531209409236908,
+ 0.4532618522644043,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.562176525592804
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.3486451208591461,
+ 0.7431679368019104,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.6076632142066956,
+ 0.531209409236908,
+ 0.5467381477355957
+ ],
+ "verifier_response_id": "019fe6fa-5799-7fe3-8a12-d3d176e3eb26",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-4ad1-7b12-9447-13d948a95f5c",
+ "timing_ms": 318.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-4ca8-7fb0-bfb4-2a6d41e0b23c",
+ "timing_ms": 2794.3,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-5799-7fe3-8a12-d3d176e3eb26",
+ "timing_ms": 1614.1,
+ "credits_debited": 3027,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > String Instrument Care & Cleaning > Bow Rosin",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=38",
+ "image_sha256": "bfc3472d7c98e17a02e3238c7fba7952c1aa89407f2fd19fcd03969df6139546",
+ "row_sha256": "8049e7282eab389e2d43d46475f692c5a363ad69d0c683b51e5833db93ac4bff"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > String Instrument Care & Cleaning > String Instrument Polish > Instrument Polish",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > String Instruments > Mandolins > F-Style Mandolins",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > String Instrument Care & Cleaning > Bow Rosin",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > Orchestral String Instrument Accessories > Orchestral String Instrument Bows",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > Orchestral String Instrument Accessories > Orchestral String Instrument Cases",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > String Instruments > Violas",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > Orchestral String Instrument Accessories",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > String Instrument Accessories > Orchestral String Instrument Accessories > Orchestral String Instrument Strings"
+ ]
+ },
+ {
+ "row_idx": 39,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Steam Locomotives",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Scale Models > Express Locomotives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Steam Locomotives"
+ ],
+ "text_scores": [
+ 0.6791787147521973,
+ 0.665410578250885,
+ 0.4378235340118408,
+ 0.4532618522644043,
+ 0.531209409236908,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.5
+ ],
+ "image_plus_copy_scores": [
+ 0.7310585379600525,
+ 0.6791787147521973,
+ 0.5156199336051941,
+ 0.5,
+ 0.562176525592804,
+ 0.6076632142066956,
+ 0.665410578250885,
+ 0.5467381477355957
+ ],
+ "verifier_response_id": "019fe6fa-6246-7a70-9410-c329b983aa1a",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-5d53-7730-ba73-757f03ca6a57",
+ "timing_ms": 412.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-5f08-7b31-be5c-16b968472c0f",
+ "timing_ms": 828.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-6246-7a70-9410-c329b983aa1a",
+ "timing_ms": 1539.6,
+ "credits_debited": 1404,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Steam Locomotives",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=39",
+ "image_sha256": "f8aeff5fce6dca48824c9eebadb8f1f2de9dacd84fe1a97177dfeb1c0b63ae45",
+ "row_sha256": "740f21d2356bd2c6010490b6205559e10b32b7675848f0bab394d6429b5525eb"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Scale Models > Express Locomotives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Steam Locomotives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Scale Models > Railroad Freight Car",
+ "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Diesel Locomotives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets > Electric Locomotives",
+ "Arts & Entertainment > Hobbies & Creative Arts > Model Making > Model Trains & Train Sets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Scale Models > Trains",
+ "Toys & Games > Toys > Play Vehicles > Toy Trains & Train Sets"
+ ]
+ },
+ {
+ "row_idx": 40,
+ "selected_path": "Health & Beauty > Personal Care > Hair Care > Hair Styling Tool Accessories > Hair Dryer Accessories",
+ "needs_review": true,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tool Accessories > Hair Dryer Accessories",
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tools > Hair Dryers"
+ ],
+ "text_scores": [
+ 0.5467381477355957,
+ 0.4532618522644043,
+ 0.4378235340118408,
+ 0.6076632142066956,
+ 0.4073334038257599,
+ 0.6076632142066956,
+ 0.562176525592804,
+ 0.4532618522644043,
+ 0.562176525592804
+ ],
+ "image_plus_copy_scores": [
+ 0.5774953961372375,
+ 0.46879062056541443,
+ 0.46879062056541443,
+ 0.637030839920044,
+ 0.4378235340118408,
+ 0.637030839920044,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.6076632142066956
+ ],
+ "verifier_response_id": "019fe6fa-6d44-7130-bb6a-91a2f599be7e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-682e-7e10-ab86-81b4b60e4251",
+ "timing_ms": 404.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-69ca-7532-be1f-e5630b603417",
+ "timing_ms": 895.9,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-6d44-7130-bb6a-91a2f599be7e",
+ "timing_ms": 1182.3,
+ "credits_debited": 1105,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Linens & Bedding > Towels",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=40",
+ "image_sha256": "dd444d9afd3c8b792024fa822a50a7072d8d109e968d74476f71b8b855c1b95b",
+ "row_sha256": "43ca64117bce46fde7fa7ec472045f5b46f56937b321f1a6edf21c171e62ff43"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Hair Care > Hair Steamers & Heat Caps",
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tool Accessories > Hair Curler Clips & Pins",
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tool Accessories > Hair Curler Clips & Pins > Clips",
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tool Accessories > Hair Dryer Accessories",
+ "Health & Beauty > Personal Care > Cosmetics > Bath & Body > Shower Caps",
+ "Health & Beauty > Personal Care > Hair Care > Hair Styling Tools > Hair Dryers",
+ "Home & Garden > Linens & Bedding > Towels > Head Towels",
+ "Home & Garden > Linens & Bedding > Towels > Bath Towels & Washcloths > Bath Towels",
+ "Home & Garden > Linens & Bedding > Towels"
+ ]
+ },
+ {
+ "row_idx": 41,
+ "selected_path": "Home & Garden > Kitchen & Dining > Tableware > Drinkware > Tumblers",
+ "needs_review": true,
+ "candidate_union": [
+ "Home & Garden > Kitchen & Dining > Tableware > Drinkware > Tumblers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Jerseys"
+ ],
+ "text_scores": [
+ 0.5,
+ 0.7057850360870361,
+ 0.4532618522644043,
+ 0.4073334038257599,
+ 0.46879062056541443,
+ 0.39233678579330444,
+ 0.531209409236908,
+ 0.36296918988227844,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.6926419734954834,
+ 0.4378235340118408,
+ 0.4073334038257599,
+ 0.4532618522644043,
+ 0.4073334038257599,
+ 0.5774953961372375,
+ 0.36296918988227844,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fa-7b19-7ae0-af69-da3fc326e31a",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-71ec-7070-bc8d-71f62bddfefc",
+ "timing_ms": 403.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-73db-79a2-8a27-62f3df98c431",
+ "timing_ms": 1796.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-7b19-7ae0-af69-da3fc326e31a",
+ "timing_ms": 1584.9,
+ "credits_debited": 2174,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=41",
+ "image_sha256": "6d9bbec01e900b6c23f5e3a3ee335fd60e27c6f367027f02a14e79c0eff12999",
+ "row_sha256": "b264a0dd59eddb468ad43ac4a74ea58dc2332224f72793f6045affc9ebc94256"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories",
+ "Home & Garden > Kitchen & Dining > Tableware > Drinkware > Tumblers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Keychains",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Hoodies",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Banners",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Gloves",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Jerseys",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases",
+ "Arts & Entertainment > Hobbies & Creative Arts > Collectibles > Sports Collectibles > Sports Fan Accessories > Posters"
+ ]
+ },
+ {
+ "row_idx": 42,
+ "selected_path": "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Hard Orthodontic Appliance Cases",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases",
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Soft Orthodontic Appliance Cases",
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Hard Orthodontic Appliance Cases"
+ ],
+ "text_scores": [
+ 0.7185943722724915,
+ 0.6076632142066956,
+ 0.5,
+ 0.46879062056541443,
+ 0.5156199336051941,
+ 0.7310585379600525,
+ 0.5467381477355957,
+ 0.7185943722724915
+ ],
+ "image_plus_copy_scores": [
+ 0.7185943722724915,
+ 0.5926666259765625,
+ 0.4843800365924835,
+ 0.5,
+ 0.5774953961372375,
+ 0.7431679368019104,
+ 0.5774953961372375,
+ 0.7310585379600525
+ ],
+ "verifier_response_id": "019fe6fa-862f-7061-8327-6ae338dab17b",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-80bf-71a3-abb9-93ab11c5012a",
+ "timing_ms": 408.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-8270-7210-87cf-795ed2533d8a",
+ "timing_ms": 958.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-862f-7061-8327-6ae338dab17b",
+ "timing_ms": 1159.2,
+ "credits_debited": 2314,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Soft Orthodontic Appliance Cases",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=42",
+ "image_sha256": "631c57221143d62c3d1ca1e837159326400d665f4e8dde2a8360e1c4cb41f50a",
+ "row_sha256": "7a3e8b9de52254ced2e436a08ef302c30babcd8b17fcbe3e9ef4141cef632720"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Hard Orthodontic Appliance Cases",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Tray Cases",
+ "Health & Beauty > Personal Care > Oral Care > Toothbrush Accessories > Toothbrush Covers",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Makeup Tools > Face Mirrors",
+ "Health & Beauty > Personal Care > Vision Care > Eyewear Accessories > Eyewear Cases & Holders",
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases",
+ "Business & Industrial > Dentistry > Dental Tools > Dental Mirrors",
+ "Health & Beauty > Personal Care > Oral Care > Orthodontic Appliance Cases > Soft Orthodontic Appliance Cases"
+ ]
+ },
+ {
+ "row_idx": 43,
+ "selected_path": "Toys & Games > Toys > Visual Toys",
+ "needs_review": false,
+ "candidate_union": [
+ "Toys & Games > Toys > Visual Toys",
+ "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet & Puppet Theater Accessories",
+ "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet Theaters"
+ ],
+ "text_scores": [
+ 0.3345894515514374,
+ 0.3345894515514374,
+ 0.36296918988227844,
+ 0.4073334038257599,
+ 0.3775406777858734,
+ 0.3486451208591461,
+ 0.32082128524780273,
+ 0.3775406777858734,
+ 0.42250463366508484
+ ],
+ "image_plus_copy_scores": [
+ 0.36296918988227844,
+ 0.32082128524780273,
+ 0.3486451208591461,
+ 0.42250463366508484,
+ 0.39233678579330444,
+ 0.4073334038257599,
+ 0.4532618522644043,
+ 0.5156199336051941,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fa-98ca-7f53-ab90-36ace8264355",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-8aa3-70f1-a960-6b42284d4ab4",
+ "timing_ms": 434.8,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-8cad-7ca2-a3ce-87eca791ebdc",
+ "timing_ms": 3042.8,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-98ca-7f53-ab90-36ace8264355",
+ "timing_ms": 1602.3,
+ "credits_debited": 3445,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet Theaters",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=43",
+ "image_sha256": "f22908658c13f824472e1aeb6d6058d4af9a5010cf2241664ebe3e4ea09da227",
+ "row_sha256": "800de1459d93f8b33de0cabccc3e06155269f1f676283550da785cc1ca8f2219"
+ },
+ "candidate_paths": [
+ "Toys & Games > Toys > Educational Toys > Astronomy Toys & Models > Astronomy Puzzles",
+ "Toys & Games > Toys > Educational Toys > Astronomy Toys & Models > Planetariums",
+ "Toys & Games > Toys > Play Vehicles > Toy Cars",
+ "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet Theaters",
+ "Toys & Games > Toys > Visual Toys > Kaleidoscopes",
+ "Toys & Games > Toys > Educational Toys > Astronomy Toys & Models",
+ "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Bobblehead Figures",
+ "Toys & Games > Toys > Visual Toys",
+ "Toys & Games > Toys > Dolls, Playsets & Toy Figures > Puppet & Puppet Theater Accessories"
+ ]
+ },
+ {
+ "row_idx": 44,
+ "selected_path": "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Parsley Roots",
+ "needs_review": false,
+ "candidate_union": [
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Parsley Roots",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Cactus Leaves"
+ ],
+ "text_scores": [
+ 0.4532618522644043,
+ 0.4843800365924835,
+ 0.4532618522644043,
+ 0.4532618522644043,
+ 0.4532618522644043,
+ 0.4843800365924835,
+ 0.4378235340118408,
+ 0.4532618522644043,
+ 0.39233678579330444
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.42250463366508484,
+ 0.42250463366508484,
+ 0.39233678579330444,
+ 0.39233678579330444,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.36296918988227844,
+ 0.32082128524780273
+ ],
+ "verifier_response_id": "019fe6fa-a7c5-7bb1-90c0-875e947e08cc",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-9e7a-71c3-9486-2e109d868cdb",
+ "timing_ms": 292.7,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-9ff9-78a0-be3b-e3ecc64b61d1",
+ "timing_ms": 1994.0,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-a7c5-7bb1-90c0-875e947e08cc",
+ "timing_ms": 1409.0,
+ "credits_debited": 2212,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Parsley Roots",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=44",
+ "image_sha256": "614cc27db421e539d4cdcceeb6d6a06276bc5d5fd4c771a49d4b89bca1d00bfd",
+ "row_sha256": "f2729350463ce95f56f21dfd207ffef7566f80c26f449c3c60c6723527a01944"
+ },
+ "candidate_paths": [
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Lotus Roots",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Cactus Leaves",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Peas",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Water Chestnuts",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Beets",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Vegetables > Parsley Roots",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Fruits > Papayas",
+ "Arts & Entertainment > Party & Celebration > Gift Giving > Fresh Cut Flowers"
+ ]
+ },
+ {
+ "row_idx": 45,
+ "selected_path": "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Weight Lifting Machine & Exercise Bench Accessories",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Weight Lifting Machine & Exercise Bench Accessories",
+ "Sporting Goods > Fitness & General Exercise Equipment > Suspension Trainers > Suspension Training Accessories > Suspension Training Mounts",
+ "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Free Weight Accessories > Barbells & Weightlifting Bars"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.3775406777858734,
+ 0.4843800365924835,
+ 0.3486451208591461,
+ 0.36296918988227844,
+ 0.3073579967021942,
+ 0.4843800365924835,
+ 0.46879062056541443,
+ 0.14804719388484955
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.42250463366508484,
+ 0.3775406777858734,
+ 0.562176525592804,
+ 0.531209409236908,
+ 0.23370636999607086
+ ],
+ "verifier_response_id": "019fe6fa-b676-78f0-b0de-4e5077322f3b",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-acf6-71b0-b5a7-0a6c15ca5c25",
+ "timing_ms": 419.5,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-aeb3-7f10-9c2c-8ea354d36395",
+ "timing_ms": 1987.6,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-b676-78f0-b0de-4e5077322f3b",
+ "timing_ms": 1578.6,
+ "credits_debited": 2488,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Weight Lifting Machine & Exercise Bench Accessories",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=45",
+ "image_sha256": "9a5d2192061f3cca18553716371e8c3cfef028815d65269991ae74df086ab1c7",
+ "row_sha256": "27e397ad9183156473486216bb3290b6a1ed133ec6eb04ef3b581413f5f11196"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Fitness & General Exercise Equipment > Suspension Trainers > Suspension Training Accessories > Suspension Training Anchors",
+ "Sporting Goods > Fitness & General Exercise Equipment > Cardio > Cardio Machine Accessories & Parts > Rowing Machine Accessories & Parts > Rowing Machine Tablet Holders",
+ "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Free Weight Accessories > Barbells & Weightlifting Bars",
+ "Sporting Goods > Fitness & General Exercise Equipment > Suspension Trainers > Suspension Training Accessories > Strap Extenders",
+ "Sporting Goods > Fitness & General Exercise Equipment > Cardio > Cardio Machine Accessories & Parts > Elliptical Trainer Accessories & Parts > Elliptical Trainer Tablet Holders",
+ "Sporting Goods > Athletics > Tennis > Tennis Training Aids > Tennis Grip Trainers",
+ "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Weight Lifting Machine & Exercise Bench Accessories",
+ "Sporting Goods > Fitness & General Exercise Equipment > Suspension Trainers > Suspension Training Accessories > Suspension Training Mounts",
+ "Animals & Pet Supplies > Pet Supplies > Pet Training Aids > Pet Training Pad Holders > Grid-Top Pad Holders"
+ ]
+ },
+ {
+ "row_idx": 46,
+ "selected_path": "Home & Garden > Kitchen & Dining > Barware > Coasters",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Kitchen & Dining > Barware > Coasters",
+ "Home & Garden > Kitchen & Dining > Barware > Coaster Holders"
+ ],
+ "text_scores": [
+ 0.29421496391296387,
+ 0.29421496391296387,
+ 0.42250463366508484,
+ 0.6791787147521973,
+ 0.562176525592804,
+ 0.531209409236908,
+ 0.637030839920044,
+ 0.42250463366508484
+ ],
+ "image_plus_copy_scores": [
+ 0.28140559792518616,
+ 0.2568320035934448,
+ 0.42250463366508484,
+ 0.6791787147521973,
+ 0.5926666259765625,
+ 0.5,
+ 0.637030839920044,
+ 0.39233678579330444
+ ],
+ "verifier_response_id": "019fe6fa-caa2-71c0-84ea-821c0af1031f",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-bc8b-7fa1-9b5d-3f9caa205983",
+ "timing_ms": 376.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-bed5-76b1-a37f-38a543eab563",
+ "timing_ms": 3014.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-caa2-71c0-84ea-821c0af1031f",
+ "timing_ms": 1917.1,
+ "credits_debited": 3540,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Kitchen & Dining > Tableware > Trivets",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=46",
+ "image_sha256": "378c77d2cb0341b3580268b545d9fec571e5602c5f7ef207ce379fd2324297fb",
+ "row_sha256": "0a07ff96c972617a6d7fc93bdc652cefa6b6e424ced45d43e41a60885e5293fd"
+ },
+ "candidate_paths": [
+ "Hardware > Building Consumables > Hardware Tape > Electrical Tape",
+ "Hardware > Building Materials > Weather Stripping & Weatherization Supplies > V Strips",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Steam Table Accessories > Steam Table Pan Covers",
+ "Home & Garden > Kitchen & Dining > Barware > Coasters",
+ "Home & Garden > Kitchen & Dining > Tableware > Trivets",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Food Processor Accessories > Heat Shields",
+ "Home & Garden > Kitchen & Dining > Barware > Coaster Holders",
+ "Hardware > Building Consumables > Wall Patching Compounds & Plaster > Heat Resistant Plaster"
+ ]
+ },
+ {
+ "row_idx": 47,
+ "selected_path": "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Marker & Highlighter Ink Refills",
+ "needs_review": false,
+ "candidate_union": [
+ "Office Supplies > Office Instruments > Writing & Drawing Instruments > Chalk",
+ "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Marker & Highlighter Ink Refills"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.5,
+ 0.5156199336051941,
+ 0.4378235340118408,
+ 0.562176525592804,
+ 0.3486451208591461,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.531209409236908,
+ 0.46879062056541443,
+ 0.5,
+ 0.5156199336051941,
+ 0.5156199336051941,
+ 0.46879062056541443,
+ 0.5774953961372375,
+ 0.3775406777858734,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6fa-e036-74a0-adfb-8c910fc99567",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-d14b-7ab3-9a9d-980eda31d6b6",
+ "timing_ms": 506.4,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-d39e-7f52-a79c-db5ee3813deb",
+ "timing_ms": 3221.9,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-e036-74a0-adfb-8c910fc99567",
+ "timing_ms": 1380.7,
+ "credits_debited": 3312,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tool Accessories > Spinning Wheel Accessories > Drive Wheels",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=47",
+ "image_sha256": "a1a58a94f969aea1db0840fa34819f1e9ffa3043cc9bf6bcc28e15642e19de31",
+ "row_sha256": "8fa2932c722ac217689777d2974a62e9b71a52f27324be3a5cb1d2fd1805b279"
+ },
+ "candidate_paths": [
+ "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Marker & Highlighter Ink Refills",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tool Accessories > Spinning Wheel Accessories > Drive Wheels",
+ "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Marker & Highlighter Ink Refills > Highlighter Refills",
+ "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Marker & Highlighter Ink Refills > Marker Refills",
+ "Office Supplies > Office Instruments > Writing & Drawing Instruments > Pastels > Chalk Pastels",
+ "Electronics > Print, Copy, Scan & Fax > Printer, Copier & Fax Machine Accessories > Printer Consumables > Toner & Inkjet Cartridge Refills",
+ "Office Supplies > Office Instruments > Writing & Drawing Instruments > Chalk",
+ "Electronics > Audio > Audio Accessories > Turntable Accessories > Replacement Needles",
+ "Office Supplies > Office Instruments > Writing & Drawing Instrument Accessories > Pen Ink & Refills"
+ ]
+ },
+ {
+ "row_idx": 48,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums > Metal Snare Drums",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums > Metal Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Cymbals"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.42250463366508484,
+ 0.42250463366508484,
+ 0.46879062056541443,
+ 0.4532618522644043,
+ 0.39233678579330444,
+ 0.39233678579330444,
+ 0.39233678579330444,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.5926666259765625,
+ 0.5,
+ 0.562176525592804,
+ 0.4378235340118408,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6fa-f430-7853-852b-6366adb9f71c",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-e547-77f1-8461-65cf4337fd24",
+ "timing_ms": 471.2,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-e77c-74c2-8faf-7bcdd580b871",
+ "timing_ms": 3193.7,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fa-f430-7853-852b-6366adb9f71c",
+ "timing_ms": 1539.6,
+ "credits_debited": 3599,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Drum Kits > Tom-Tom Kits",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=48",
+ "image_sha256": "95655209fafdc9248a6e58ee17f87294b99acb9d609b3dd8f0d49e7f2450ac57",
+ "row_sha256": "e1b1faa186de3d1fcfe6f24481ec695d121711325583c5c427e66f8b33e47879"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instrument & Orchestra Accessories > Percussion Accessories > Drum Heads > Snare Drum Heads",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Frame Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums > Wood Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Cymbals",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums > Metal Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums > Piccolo Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Snare Drums",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons > Snare Cajons",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Drum Kits > Tom-Tom Kits"
+ ]
+ },
+ {
+ "row_idx": 49,
+ "selected_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > T-Shirts",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > T-Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Shirts"
+ ],
+ "text_scores": [
+ 0.7431679368019104,
+ 0.6513549089431763,
+ 0.531209409236908,
+ 0.7431679368019104,
+ 0.5774953961372375,
+ 0.665410578250885,
+ 0.6926419734954834,
+ 0.4532618522644043
+ ],
+ "image_plus_copy_scores": [
+ 0.7310585379600525,
+ 0.6513549089431763,
+ 0.5467381477355957,
+ 0.7431679368019104,
+ 0.6076632142066956,
+ 0.665410578250885,
+ 0.7057850360870361,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6fb-02dc-7653-9c45-60c735e24d36",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-f9a4-74b1-8349-ecee95ddf2cd",
+ "timing_ms": 418.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fa-fb9e-7873-9bbb-e578df1941be",
+ "timing_ms": 1849.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-02dc-7653-9c45-60c735e24d36",
+ "timing_ms": 1429.7,
+ "credits_debited": 2835,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > T-Shirts",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=49",
+ "image_sha256": "1b6e350cd7f8736dc414ff6cc82bad7e686819002954d6da5550b9d3410c736b",
+ "row_sha256": "4397b91ddfbde409ef8b58dc3345df0f2ccd2c393823af3b21ad9cb8e64035ed"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Overshirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Blouses",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > T-Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Tunics",
+ "Apparel & Accessories > Clothing > Maternity Clothing",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Dresses"
+ ]
+ },
+ {
+ "row_idx": 50,
+ "selected_path": "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Mini-Cruisers",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Mini-Cruisers",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Cruisers",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.7185943722724915,
+ 0.7185943722724915,
+ 0.531209409236908,
+ 0.5,
+ 0.7662936449050903,
+ 0.637030839920044,
+ 0.36296918988227844
+ ],
+ "image_plus_copy_scores": [
+ 0.5774953961372375,
+ 0.7057850360870361,
+ 0.7549149990081787,
+ 0.531209409236908,
+ 0.531209409236908,
+ 0.7772998809814453,
+ 0.665410578250885,
+ 0.4073334038257599
+ ],
+ "verifier_response_id": "019fe6fb-0e01-7633-b47c-77c868d1015e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-081e-7c32-b1db-ce885b0bd484",
+ "timing_ms": 395.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-09c5-73d3-809b-e197bde7346d",
+ "timing_ms": 1081.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-0e01-7633-b47c-77c868d1015e",
+ "timing_ms": 1259.5,
+ "credits_debited": 1906,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Mini-Cruisers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=50",
+ "image_sha256": "bfbe18606fc76375c7e0d8894740108db3bce041abcc8150e57b601b3c6910d5",
+ "row_sha256": "734b2e367d8f9f9ab4c174f6b9d741cccd4a9abacf14db5ade1783f58749a4cc"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Longboards",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Cruisers",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Small Parts",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Skateboard Parts > Skateboard Small Parts > Skateboard Deck Footstops",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Mini-Cruisers",
+ "Sporting Goods > Outdoor Recreation > Skateboarding > Complete Skateboards > Classic Skateboards",
+ "Toys & Games > Toys > Sports Toys > Fingerboards & Fingerboard Sets"
+ ]
+ },
+ {
+ "row_idx": 51,
+ "selected_path": "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "needs_review": false,
+ "candidate_union": [
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Canned & Jarred Fruits",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Canned & Jarred Vegetables",
+ "Food, Beverages & Tobacco > Food Items > Prepared Foods"
+ ],
+ "text_scores": [
+ 0.4843800365924835,
+ 0.4843800365924835,
+ 0.3486451208591461,
+ 0.36296918988227844,
+ 0.4378235340118408,
+ 0.3345894515514374,
+ 0.36296918988227844,
+ 0.4378235340118408,
+ 0.4073334038257599
+ ],
+ "image_plus_copy_scores": [
+ 0.531209409236908,
+ 0.46879062056541443,
+ 0.32082128524780273,
+ 0.3486451208591461,
+ 0.3775406777858734,
+ 0.42250463366508484,
+ 0.46879062056541443,
+ 0.5,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fb-1dbf-7012-a955-9288cc71f147",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-12d6-7642-a2b2-db3b84cae76c",
+ "timing_ms": 356.0,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-1493-7cd1-a762-af609eb228c4",
+ "timing_ms": 2346.3,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-1dbf-7012-a955-9288cc71f147",
+ "timing_ms": 1419.1,
+ "credits_debited": 2535,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=51",
+ "image_sha256": "6a99e808a20dcd24482baf949dc1c444da5a28d117e3e3ab1f96b50b38df5ecf",
+ "row_sha256": "0ff168c8f9fceb657b420eca7eb3f96973d987e37afcbf2cf5706a8c27f62d55"
+ },
+ "candidate_paths": [
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Canned & Jarred Fruits",
+ "Food, Beverages & Tobacco > Food Items > Prepared Foods",
+ "Food, Beverages & Tobacco > Food Items > Dips & Spreads > Guacamole",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Fruits > Rambutans",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Fresh & Frozen Fruits > Guavas",
+ "Food, Beverages & Tobacco > Food Items > Meat, Seafood & Eggs > Seafood > Canned Seafood",
+ "Food, Beverages & Tobacco > Food Items > Meat, Seafood & Eggs > Meat > Canned Meats",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Canned & Jarred Vegetables",
+ "Food, Beverages & Tobacco > Food Items > Fruits & Vegetables > Canned & Prepared Beans"
+ ]
+ },
+ {
+ "row_idx": 52,
+ "selected_path": "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Air Fryer Accessories",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Air Fryer Accessories",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliances > Air Fryers",
+ "Home & Garden > Kitchen & Dining > Cookware & Bakeware > Bakeware Accessories > Baking Mats & Liners"
+ ],
+ "text_scores": [
+ 0.6926419734954834,
+ 0.6513549089431763,
+ 0.5,
+ 0.6926419734954834,
+ 0.5774953961372375,
+ 0.6791787147521973,
+ 0.665410578250885,
+ 0.5467381477355957,
+ 0.3486451208591461
+ ],
+ "image_plus_copy_scores": [
+ 0.665410578250885,
+ 0.622459352016449,
+ 0.5156199336051941,
+ 0.7057850360870361,
+ 0.562176525592804,
+ 0.6791787147521973,
+ 0.6926419734954834,
+ 0.531209409236908,
+ 0.36296918988227844
+ ],
+ "verifier_response_id": "019fe6fb-2ba1-7a80-a83b-584d02c24563",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-22ec-7e21-8315-ed567b0f76ed",
+ "timing_ms": 318.9,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-244e-7373-aa94-f68bcc3730e1",
+ "timing_ms": 1872.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-2ba1-7a80-a83b-584d02c24563",
+ "timing_ms": 1243.5,
+ "credits_debited": 2153,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Kitchen & Dining > Cookware & Bakeware > Bakeware Accessories > Baking Mats & Liners > Baking Mats",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=52",
+ "image_sha256": "64bb05b4c00f556217a2610431387b24fd9901788b898d2f701ed1214ac5278d",
+ "row_sha256": "a68aab147d11190fd8d0b0f96caaed8f01bdfd3f15a8f93cd4f0389649ded5d3"
+ },
+ "candidate_paths": [
+ "Home & Garden > Kitchen & Dining > Cookware & Bakeware > Bakeware Accessories > Baking Mats & Liners",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Microwave Oven Accessories > Baking Trays",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Food Dehydrator Accessories > Food Dehydrator Trays",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Air Fryer Accessories",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Deep Fryer Accessories",
+ "Home & Garden > Kitchen & Dining > Cookware & Bakeware > Bakeware Accessories > Baking Mats & Liners > Baking Mats",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliances > Air Fryers",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Deep Fryer Accessories > Deep Fryer Baskets",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Flour Sifters"
+ ]
+ },
+ {
+ "row_idx": 53,
+ "selected_path": "Office Supplies > Paper Handling > Paper Folding Machines",
+ "needs_review": false,
+ "candidate_union": [
+ "Office Supplies > Paper Handling > Paper Folding Machines",
+ "Office Supplies > Filing & Organization > Binding Supplies > Binding Machines",
+ "Office Supplies > Office Equipment > Postage Meters"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.5156199336051941,
+ 0.3775406777858734,
+ 0.562176525592804,
+ 0.42250463366508484,
+ 0.5,
+ 0.4532618522644043,
+ 0.6076632142066956
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.531209409236908,
+ 0.4073334038257599,
+ 0.562176525592804,
+ 0.4073334038257599,
+ 0.5467381477355957,
+ 0.4843800365924835,
+ 0.622459352016449
+ ],
+ "verifier_response_id": "019fe6fb-352c-7492-950c-7365fbb9bfae",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-3066-7710-9fe0-ada0d0132a6e",
+ "timing_ms": 375.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-31f8-7110-8fed-6eba5c6263b3",
+ "timing_ms": 820.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-352c-7492-950c-7365fbb9bfae",
+ "timing_ms": 1535.4,
+ "credits_debited": 2231,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Office Supplies > Paper Handling > Paper Folding Machines",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=53",
+ "image_sha256": "576d9961ba13c0bedb1d364b613ef777af02dd166c16b6b55936ebc0dc3e0846",
+ "row_sha256": "0c76401e27a27101a4b5b9faed97689f209342a33cac16a9549b21a74e526c28"
+ },
+ "candidate_paths": [
+ "Office Supplies > Filing & Organization > Binding Supplies > Binding Machines",
+ "Office Supplies > Office Instruments > Letter Openers",
+ "Home & Garden > Decor > Mail Slots",
+ "Office Supplies > Office Equipment > Postage Meters",
+ "Office Supplies > Office Carts > Mail Carts",
+ "Office Supplies > Filing & Organization > Mail Sorters",
+ "Office Supplies > Office Instruments > Office Stamps > Address Stamps",
+ "Office Supplies > Paper Handling > Paper Folding Machines"
+ ]
+ },
+ {
+ "row_idx": 54,
+ "selected_path": "Home & Garden > Lawn & Garden > Outdoor Power Equipment > Power Sweepers",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment > Power Sweepers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Carpet Sweepers"
+ ],
+ "text_scores": [
+ 0.562176525592804,
+ 0.4532618522644043,
+ 0.4532618522644043,
+ 0.7057850360870361,
+ 0.46879062056541443,
+ 0.6791787147521973,
+ 0.5926666259765625,
+ 0.5774953961372375
+ ],
+ "image_plus_copy_scores": [
+ 0.6513549089431763,
+ 0.5156199336051941,
+ 0.46879062056541443,
+ 0.665410578250885,
+ 0.5,
+ 0.7185943722724915,
+ 0.6076632142066956,
+ 0.6076632142066956
+ ],
+ "verifier_response_id": "019fe6fb-4d7f-76a1-9fa4-a7f4f02e1df5",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-3b22-7a02-96f3-6fd37dc547cc",
+ "timing_ms": 377.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-3d68-76c3-9c6c-501baaa42ab9",
+ "timing_ms": 4058.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-4d7f-76a1-9fa4-a7f4f02e1df5",
+ "timing_ms": 1998.7,
+ "credits_debited": 3374,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Lawn & Garden > Outdoor Power Equipment > Power Sweepers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=54",
+ "image_sha256": "00c2e7b9d851ec778de18c95806a9967430e76626ab4939f24473837cc35f915",
+ "row_sha256": "e3159da2a44aa2e62f870c07c14799e2214f6e08811ef61179542f0f08d7e5fb"
+ },
+ "candidate_paths": [
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Lawn Mower Accessories > Lawn Sweepers",
+ "Hardware > Tools > Magnetic Sweepers > Handheld Magnetic Sweepers",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Pressure Washer Accessories > Power Scrubbers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Carpet Sweepers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Scrub Brushes",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment > Power Sweepers",
+ "Home & Garden > Household Appliances > Floor & Steam Cleaners > Floor Scrubbers > Walk-Behind Floor Scrubbers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Brooms"
+ ]
+ },
+ {
+ "row_idx": 55,
+ "selected_path": "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Shapers",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Trees",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Shapers"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.6513549089431763,
+ 0.4532618522644043,
+ 0.5467381477355957,
+ 0.6791787147521973,
+ 0.46879062056541443,
+ 0.622459352016449,
+ 0.531209409236908
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.6513549089431763,
+ 0.36296918988227844,
+ 0.5774953961372375,
+ 0.665410578250885,
+ 0.4843800365924835,
+ 0.665410578250885,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6fb-5d73-72f2-a7b0-ea2f8dfd4a9a",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-5444-7073-be29-38aad3f9cc21",
+ "timing_ms": 419.1,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-563c-77f1-8a76-e7a395d816cf",
+ "timing_ms": 1844.9,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-5d73-72f2-a7b0-ea2f8dfd4a9a",
+ "timing_ms": 1478.3,
+ "credits_debited": 4348,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Shapers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=55",
+ "image_sha256": "62bce8069444c8f27a07903eea81dbd994d504cc9a7ca3a9fa63e77e3ee46551",
+ "row_sha256": "3a3d4297287e367ac80fa42c47997e0c17330d1eb1c654c8aceff7f94be5df5e"
+ },
+ "candidate_paths": [
+ "Home & Garden > Household Supplies > Storage & Organization > Clothing & Closet Storage > Shoe Racks & Organizers > Shoe Organizers",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Shapers",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Shoe Storage Ottomans",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Horns & Dressing Aids",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Dryers",
+ "Home & Garden > Household Supplies > Shoe Care & Tools > Shoe Trees & Shapers > Shoe Trees",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Frames, Hoops & Stretchers > Canvas Stretchers"
+ ]
+ },
+ {
+ "row_idx": 56,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper > Cardstock",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper > Cardstock"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.562176525592804,
+ 0.2120688259601593,
+ 0.665410578250885,
+ 0.5467381477355957,
+ 0.6926419734954834,
+ 0.6791787147521973,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.531209409236908,
+ 0.5926666259765625,
+ 0.28140559792518616,
+ 0.637030839920044,
+ 0.5156199336051941,
+ 0.6513549089431763,
+ 0.665410578250885,
+ 0.4378235340118408
+ ],
+ "verifier_response_id": "019fe6fb-6e9c-7be3-b7d7-56fbebbbc2e1",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-62e4-7531-a454-0186b5077902",
+ "timing_ms": 343.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-645b-7a61-951e-2613a74fbe0e",
+ "timing_ms": 2565.3,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-6e9c-7be3-b7d7-56fbebbbc2e1",
+ "timing_ms": 1382.8,
+ "credits_debited": 3122,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper > Cardstock",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=56",
+ "image_sha256": "84a1732b5af573917f68359ec5078f028d246e7b900972af36baba0d245a516a",
+ "row_sha256": "c0f68838e19574845ae013e1f5ce26748701111e9298ca3df4d3d48d560dc601"
+ },
+ "candidate_paths": [
+ "Home & Garden > Decor > Mirrors",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Satin",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Mirrored Armoires",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper > Scrapbooking Paper",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Craft Foil",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper > Cardstock",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Art & Craft Paper > Cardstock & Scrapbooking Paper",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Embellishments & Trims > Ribbons & Trim > Satin Ribbons"
+ ]
+ },
+ {
+ "row_idx": 57,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components"
+ ],
+ "text_scores": [
+ 0.4843800365924835,
+ 0.6791787147521973,
+ 0.5926666259765625,
+ 0.5467381477355957,
+ 0.5926666259765625,
+ 0.531209409236908,
+ 0.5,
+ 0.637030839920044
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.6926419734954834,
+ 0.5156199336051941,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.5467381477355957,
+ 0.637030839920044
+ ],
+ "verifier_response_id": "019fe6fb-80a7-7bf1-b55b-710165d22e02",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-73b9-7213-9f21-c319384f613a",
+ "timing_ms": 397.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-759d-7e53-a474-e726a2abfabc",
+ "timing_ms": 2771.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-80a7-7bf1-b55b-710165d22e02",
+ "timing_ms": 1558.6,
+ "credits_debited": 3602,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=57",
+ "image_sha256": "baaffbfc8c2e66feb9e59b28679f167933ff8fe9992098bdb63dedb91031a704",
+ "row_sha256": "6dea490ae967fd66e3e549adf717fb2063255e344e02338b7aeac32f85c050dd"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Leads",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Ignition Coils",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Watercraft Parts & Accessories > Watercraft Engine Parts > Watercraft Ignition Parts",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Distributors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems > Spark Plugs",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components > Glow Plugs",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Power & Electrical Systems > Ignition Switches",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Engine Parts > Ignition Components"
+ ]
+ },
+ {
+ "row_idx": 58,
+ "selected_path": "Hardware > Hardware Accessories > Chain, Wire & Rope > Chains",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Hardware Accessories > Chain, Wire & Rope > Chains",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Fibers > Jewelry & Beading Cord > Chain Rolls"
+ ],
+ "text_scores": [
+ 0.3486451208591461,
+ 0.2689414322376251,
+ 0.46879062056541443,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.637030839920044,
+ 0.36296918988227844,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.3775406777858734,
+ 0.36296918988227844,
+ 0.5,
+ 0.46879062056541443,
+ 0.622459352016449,
+ 0.665410578250885,
+ 0.4532618522644043,
+ 0.4378235340118408
+ ],
+ "verifier_response_id": "019fe6fb-8ae4-7791-96ad-d2168d45ac42",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-8637-7df2-84dd-1cff15222bb0",
+ "timing_ms": 330.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-8798-7171-afc6-aa4d1aa7aa40",
+ "timing_ms": 843.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-8ae4-7791-96ad-d2168d45ac42",
+ "timing_ms": 1238.9,
+ "credits_debited": 1300,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Hardware Accessories > Chain, Wire & Rope > Chains",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=58",
+ "image_sha256": "e560386163cadcd9cdf38eff4fbc8fbe2c4a87aa308ab03f30ee0305b30832c8",
+ "row_sha256": "d26fa2f6e5e6112502fa931d6e369c76bb73ea5bd3b7156e48f6459844dff870"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Fitness & General Exercise Equipment > Ab Wheels & Rollers > Ab Rollers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Thread & Yarn Tools > Fiber Cards & Brushes > Hand Carders",
+ "Home & Garden > Lawn & Garden > Gardening > Gardening Tools > Lawn Rollers",
+ "Business & Industrial > Material Handling > Conveyors > Roller Conveyors",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Fibers > Jewelry & Beading Cord > Chain Rolls",
+ "Hardware > Hardware Accessories > Chain, Wire & Rope > Chains",
+ "Sporting Goods > Outdoor Recreation > Inline & Roller Skating > Roller Skate Parts > Roller Skate Wheels",
+ "Business & Industrial > Material Handling > Lifts & Hoists > Pulleys, Blocks & Sheaves > Sheaves"
+ ]
+ },
+ {
+ "row_idx": 59,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Turn Signals",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Turn Signals",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Sensors & Gauges"
+ ],
+ "text_scores": [
+ 0.5467381477355957,
+ 0.531209409236908,
+ 0.531209409236908,
+ 0.5467381477355957,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.5774953961372375,
+ 0.5467381477355957
+ ],
+ "image_plus_copy_scores": [
+ 0.4378235340118408,
+ 0.42250463366508484,
+ 0.5156199336051941,
+ 0.6513549089431763,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fb-9c91-74d1-ab48-c0dccc03af59",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-8fa7-7922-b4c1-89b6fe4b07ae",
+ "timing_ms": 363.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-916b-7ca1-a4bb-93da6501fe5f",
+ "timing_ms": 2795.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-9c91-74d1-ab48-c0dccc03af59",
+ "timing_ms": 1522.2,
+ "credits_debited": 3146,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Turn Signals",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=59",
+ "image_sha256": "84517889461050d69332d20db6b27ae3cbb63a25bf5febc6c68f5ead293b63bb",
+ "row_sha256": "ea9d66540f2c73473c8775d9932b125906c0a86d58d0ea3687b096a1caf885b5"
+ },
+ "candidate_paths": [
+ "Business & Industrial > Signage > Electric Signs > LED Signs",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Sensors & Gauges > Tachometers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Light Bars",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Turn Signals",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Lighting > Tail Lights",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Sensors & Gauges",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Braking > Brake Light Switches"
+ ]
+ },
+ {
+ "row_idx": 60,
+ "selected_path": "Electronics > Electronics Accessories > Computer Components > Input Devices > Electronic Card Readers",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Memory Card Readers",
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Electronic Card Readers"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.5467381477355957,
+ 0.5,
+ 0.622459352016449,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.622459352016449,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.5774953961372375,
+ 0.531209409236908,
+ 0.637030839920044,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.622459352016449,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6fb-ae64-7cb2-8992-4328f4b3d633",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-a1fd-7520-99b9-822c891706fc",
+ "timing_ms": 386.1,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-a3d0-7242-a2e2-e4ee34011a8b",
+ "timing_ms": 2705.3,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-ae64-7cb2-8992-4328f4b3d633",
+ "timing_ms": 1447.9,
+ "credits_debited": 3398,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Electronics Accessories > Computer Components > Input Devices > Electronic Card Readers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=60",
+ "image_sha256": "274847505cba1f1efab2c745c0693dad76b7aa7c01b5347f13b17a1aa0f9f0bc",
+ "row_sha256": "4315bb48bafe49f66c2f94152118a8e585e5a1f5fada45de3099e28813104586"
+ },
+ "candidate_paths": [
+ "Business & Industrial > Retail > Money Handling > Cash Register & POS Terminal Accessories > Credit Card Terminals",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > USB Flash Drives",
+ "Electronics > Electronics Accessories > Cables > Storage & Data Transfer Cables > USB Cables",
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Memory Card Readers",
+ "Electronics > Electronics Accessories > Adapters > Memory Card Adapters",
+ "Electronics > Electronics Accessories > Computer Components > I/O Cards & Adapters",
+ "Electronics > Electronics Accessories > Computer Components > Input Devices > Electronic Card Readers",
+ "Electronics > Electronics Accessories > Computer Components > I/O Cards & Adapters > Computer Interface Cards & Adapters"
+ ]
+ },
+ {
+ "row_idx": 61,
+ "selected_path": "Health & Beauty > Health Care > Fitness & Nutrition > Tube Feeding Supplements",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Health Care > Fitness & Nutrition > Tube Feeding Supplements",
+ "Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > Protein Supplements"
+ ],
+ "text_scores": [
+ 0.3486451208591461,
+ 0.28140559792518616,
+ 0.6926419734954834,
+ 0.2689414322376251,
+ 0.3073579967021942,
+ 0.46879062056541443,
+ 0.3073579967021942,
+ 0.4532618522644043,
+ 0.3345894515514374
+ ],
+ "image_plus_copy_scores": [
+ 0.5467381477355957,
+ 0.32082128524780273,
+ 0.7057850360870361,
+ 0.32082128524780273,
+ 0.4532618522644043,
+ 0.562176525592804,
+ 0.4073334038257599,
+ 0.531209409236908,
+ 0.4073334038257599
+ ],
+ "verifier_response_id": "019fe6fb-b8c3-75c1-b434-f76f1aa94068",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-b3ba-7b20-8b87-b1627a045914",
+ "timing_ms": 413.7,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-b558-76a0-abbe-ebda688799a9",
+ "timing_ms": 877.2,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-b8c3-75c1-b434-f76f1aa94068",
+ "timing_ms": 1171.6,
+ "credits_debited": 1442,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Health Care > Fitness & Nutrition > Tube Feeding Supplements",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=61",
+ "image_sha256": "87beb9d1aff992a70239aa491a87ec27d95792e1ce23ecaef49c11392c4b72f4",
+ "row_sha256": "360c26c61e02a3e66967719e0ca76c433950ca3186c50945245ac0eaad4b59fd"
+ },
+ "candidate_paths": [
+ "Food, Beverages & Tobacco > Beverages > Non-Dairy Milk",
+ "Food, Beverages & Tobacco > Food Items > Tofu, Soy & Vegetarian Products > Tempeh",
+ "Health & Beauty > Health Care > Fitness & Nutrition > Tube Feeding Supplements",
+ "Food, Beverages & Tobacco > Food Items > Tofu, Soy & Vegetarian Products > Seitan",
+ "Food, Beverages & Tobacco > Beverages > Non-Dairy Milk > Soy Drinks",
+ "Health & Beauty > Health Care > Fitness & Nutrition > Vitamins & Supplements > Protein Supplements",
+ "Food, Beverages & Tobacco > Beverages > Tea & Infusions > Ready-To-Drink Herbal Infusions & Tea",
+ "Health & Beauty > Health Care > Fitness & Nutrition > Nutrition Drinks & Shakes",
+ "Baby & Toddler > Nursing & Feeding > Baby & Toddler Food > Toddler Nutrition Drinks & Shakes"
+ ]
+ },
+ {
+ "row_idx": 62,
+ "selected_path": "Home & Garden > Household Appliances > Floor & Steam Cleaners > Carpet Shampooers > Portable Carpet Shampooers",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Household Cleaning Products > Fabric & Upholstery Cleaners",
+ "Home & Garden > Household Appliances > Floor & Steam Cleaners > Carpet Shampooers > Portable Carpet Shampooers",
+ "Home & Garden > Household Supplies > Laundry Supplies > Fabric Stain Removers"
+ ],
+ "text_scores": [
+ 0.531209409236908,
+ 0.28140559792518616,
+ 0.2568320035934448,
+ 0.531209409236908,
+ 0.665410578250885,
+ 0.4532618522644043,
+ 0.46879062056541443,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.28140559792518616,
+ 0.28140559792518616,
+ 0.5156199336051941,
+ 0.622459352016449,
+ 0.5,
+ 0.4843800365924835,
+ 0.5467381477355957
+ ],
+ "verifier_response_id": "019fe6fb-c6a1-72e2-a017-f9590cf97f38",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-bd61-7f10-8d05-a1ee890d623b",
+ "timing_ms": 357.4,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-bf1f-7ca2-a865-f69b80453ab0",
+ "timing_ms": 1917.9,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-c6a1-72e2-a017-f9590cf97f38",
+ "timing_ms": 1693.0,
+ "credits_debited": 2369,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Household Appliances > Floor & Steam Cleaners > Carpet Shampooers > Portable Carpet Shampooers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=62",
+ "image_sha256": "da11d3b57ac627bf73d2c6325cd4b704e2a2cf056ab61edef3fa66f51f8f9327",
+ "row_sha256": "475398455e24997a9cbf717f32db5655752f7735a1d3d03c433d55198158c71b"
+ },
+ "candidate_paths": [
+ "Home & Garden > Household Supplies > Laundry Supplies > Fabric Stain Removers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Carpet & Upholstery Cleaners > Upholstery Cleaners",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Maintenance, Care & Decor > Vehicle Cleaning > Vehicle Carpet & Upholstery Cleaners > Stain Removers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Fabric & Upholstery Protectors",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Household Cleaning Products > Fabric & Upholstery Cleaners",
+ "Home & Garden > Household Appliances > Floor & Steam Cleaners > Carpet Steamers > Handheld Carpet Steamers",
+ "Home & Garden > Household Supplies > Household Cleaning Supplies > Household Cleaning Products > Pet Odor & Stain Removers",
+ "Home & Garden > Household Appliances > Floor & Steam Cleaners > Carpet Shampooers > Portable Carpet Shampooers"
+ ]
+ },
+ {
+ "row_idx": 63,
+ "selected_path": "Office Supplies > Office Instruments > Call Bells",
+ "needs_review": false,
+ "candidate_union": [
+ "Office Supplies > Office Instruments > Call Bells",
+ "Business & Industrial > Hotel & Hospitality > Hotel & Hospitality Accessories > Desk Bells"
+ ],
+ "text_scores": [
+ 0.7662936449050903,
+ 0.3073579967021942,
+ 0.637030839920044,
+ 0.5,
+ 0.3345894515514374,
+ 0.4073334038257599,
+ 0.7431679368019104,
+ 0.3486451208591461
+ ],
+ "image_plus_copy_scores": [
+ 0.7879312038421631,
+ 0.3486451208591461,
+ 0.637030839920044,
+ 0.5926666259765625,
+ 0.3486451208591461,
+ 0.4378235340118408,
+ 0.7772998809814453,
+ 0.36296918988227844
+ ],
+ "verifier_response_id": "019fe6fb-d9fb-7412-9881-f5887badc881",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-cce7-7e40-83c1-98d1aa09bfb7",
+ "timing_ms": 404.3,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-ceda-7ce0-b7de-06b157123bb6",
+ "timing_ms": 2791.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-d9fb-7412-9881-f5887badc881",
+ "timing_ms": 1822.3,
+ "credits_debited": 3457,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Office Supplies > Office Instruments > Call Bells",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=63",
+ "image_sha256": "ea643fa604a9be65ecffb945e113a47f0ca86120341018d8dac4bdef579380a2",
+ "row_sha256": "2a333e806f656a27c8e836a0b4ca2960c886dfe3f0dc2e509544f83c139876d4"
+ },
+ "candidate_paths": [
+ "Office Supplies > Office Instruments > Call Bells",
+ "Animals & Pet Supplies > Pet Supplies > Pet Bells & Charms > Collar Bells",
+ "Home & Garden > Decor > Decorative Bells",
+ "Hardware > Building Materials > Door Hardware > Door Bells & Chimes",
+ "Electronics > Communications > Telephony > Mobile & Smart Phone Accessories > Mobile Phone Charms & Straps > Mobile Phone Charms",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Glockenspiels & Xylophones > Metallophones",
+ "Business & Industrial > Hotel & Hospitality > Hotel & Hospitality Accessories > Desk Bells",
+ "Electronics > Communications > Telephony > Mobile & Smart Phone Accessories > Mobile Phone Charms & Straps"
+ ]
+ },
+ {
+ "row_idx": 64,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Glue Stick",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Clear Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Glue Stick"
+ ],
+ "text_scores": [
+ 0.637030839920044,
+ 0.7057850360870361,
+ 0.5156199336051941,
+ 0.665410578250885,
+ 0.6513549089431763,
+ 0.665410578250885,
+ 0.6926419734954834,
+ 0.6791787147521973
+ ],
+ "image_plus_copy_scores": [
+ 0.622459352016449,
+ 0.6791787147521973,
+ 0.531209409236908,
+ 0.6076632142066956,
+ 0.6513549089431763,
+ 0.6513549089431763,
+ 0.6791787147521973,
+ 0.637030839920044
+ ],
+ "verifier_response_id": "019fe6fb-ed48-7c03-8c2e-998d2f69ffbf",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-e086-75b3-b020-a9cf048c75da",
+ "timing_ms": 291.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-e246-7953-bf3e-2c0402161afd",
+ "timing_ms": 2814.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fb-ed48-7c03-8c2e-998d2f69ffbf",
+ "timing_ms": 1650.1,
+ "credits_debited": 2977,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Glue Stick",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=64",
+ "image_sha256": "876e98793cc627c6f14911392c79298b77a3d6804711f0b9bfc86c75a23804c5",
+ "row_sha256": "b0934068855cd256cf4e20f8d00d326cc19c084863a7ef6f1d8d8254763e18c6"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > School Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Clear Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Glue Guns",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Liquid Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > White Glue",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Glue Stick",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Crafting Adhesives & Magnets > Craft & Office Glue > Craft Glue"
+ ]
+ },
+ {
+ "row_idx": 65,
+ "selected_path": "Hardware > Tool Accessories > Tool Stands > Saw Stands > Miter Saw Stands",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Tool Accessories > Saw Accessories > Miter Saw Accessories",
+ "Hardware > Tool Accessories > Tool Stands > Saw Stands > Miter Saw Stands"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.7662936449050903,
+ 0.6791787147521973,
+ 0.7662936449050903,
+ 0.4532618522644043,
+ 0.6076632142066956,
+ 0.4843800365924835,
+ 0.7431679368019104
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.7879312038421631,
+ 0.7310585379600525,
+ 0.8080672025680542,
+ 0.4378235340118408,
+ 0.7549149990081787,
+ 0.531209409236908,
+ 0.7549149990081787
+ ],
+ "verifier_response_id": "019fe6fc-0294-7bf2-9522-51163c8acd9b",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-f328-71d0-85b6-fc2ac0cfcacd",
+ "timing_ms": 413.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fb-f560-7272-ad92-33096bb9ef0f",
+ "timing_ms": 3321.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-0294-7bf2-9522-51163c8acd9b",
+ "timing_ms": 1743.3,
+ "credits_debited": 4222,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Tool Accessories > Tool Stands > Saw Stands > Miter Saw Stands",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=65",
+ "image_sha256": "ccf7a2cb89250c568aadf0d035c7af7179861d1f41077fe42eb47f33bcc0badb",
+ "row_sha256": "18fb24d830dc82426b0d447703320db16297e24ff8e240c347a7f9dc761ceee4"
+ },
+ "candidate_paths": [
+ "Hardware > Tools > Saws > Hand Saws > Coping Saws",
+ "Hardware > Tool Accessories > Tool Stands > Saw Stands > Miter Saw Stands",
+ "Hardware > Tools > Saws > Miter Saws",
+ "Hardware > Tool Accessories > Saw Accessories > Miter Saw Accessories",
+ "Hardware > Tool Accessories > Saw Accessories > Handheld Circular Saw Accessories",
+ "Hardware > Tool Accessories > Tool Stands > Saw Stands > Table Saw Stands",
+ "Hardware > Tool Accessories > Tool Stands > Saw Stands > Band Saw Stands",
+ "Hardware > Tool Accessories > Tool Stands > Saw Stands"
+ ]
+ },
+ {
+ "row_idx": 66,
+ "selected_path": "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products > Self Tanner"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.5156199336051941,
+ 0.7057850360870361,
+ 0.637030839920044,
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.5926666259765625,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.5774953961372375,
+ 0.5156199336051941,
+ 0.7310585379600525,
+ 0.665410578250885,
+ 0.5156199336051941,
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.6076632142066956,
+ 0.4378235340118408
+ ],
+ "verifier_response_id": "019fe6fc-0ea3-7291-aa91-ecd3d1590825",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-0894-7d43-ab05-a0a847cab2d0",
+ "timing_ms": 312.1,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-0a27-79b0-b3d9-648cf7f36f1e",
+ "timing_ms": 1146.3,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-0ea3-7291-aa91-ecd3d1590825",
+ "timing_ms": 1317.4,
+ "credits_debited": 1359,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Oil",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=66",
+ "image_sha256": "e94ed77369886aa58484d2b1eba8c1be811c7f6fbd4bd5142e046dd324916bdb",
+ "row_sha256": "e04d9c5b8e7ddb8ccce809145799f34565be40b1b7091e83aa12eb30fef5fb27"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Skin Care Masks & Peels",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Oil",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products > Self Tanner",
+ "Health & Beauty > Personal Care > Shaving & Grooming > Hair Removal > Depilatories",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Facial Cleansers",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Skin Care Tools > Skin Care Extractors",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Makeup Removers",
+ "Health & Beauty > Personal Care > Shaving & Grooming > Hair Removal"
+ ]
+ },
+ {
+ "row_idx": 67,
+ "selected_path": "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cable Housings",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cable Housings",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Small Parts > Bicycle Cable Ends",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Electric Vehicle (EV) Parts & Accessories > Protective Cases > Charging Cable Cases"
+ ],
+ "text_scores": [
+ 0.36296918988227844,
+ 0.3073579967021942,
+ 0.5926666259765625,
+ 0.4378235340118408,
+ 0.3345894515514374,
+ 0.32082128524780273,
+ 0.3486451208591461,
+ 0.4532618522644043,
+ 0.32082128524780273
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.4532618522644043,
+ 0.665410578250885,
+ 0.5156199336051941,
+ 0.4378235340118408,
+ 0.39233678579330444,
+ 0.42250463366508484,
+ 0.4378235340118408,
+ 0.4073334038257599
+ ],
+ "verifier_response_id": "019fe6fc-21d8-7573-a320-2cb33d03ce7b",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-1378-7b31-974e-f3364f0fa3c1",
+ "timing_ms": 312.1,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-1545-7440-8c2d-70d0edc5ecea",
+ "timing_ms": 3215.8,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-21d8-7573-a320-2cb33d03ce7b",
+ "timing_ms": 1600.3,
+ "credits_debited": 2922,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding > Wakeboard Parts",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=67",
+ "image_sha256": "94554fb5c7c35dd5c67eccd7b77fa9156f38cf0d9aa634df4daaf8c7d66b08c2",
+ "row_sha256": "78350ca9ae4aff16b8ed6585e1402b77cb2ea82212cc81dc85a2d5cbd1c2b483"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Small Parts > Bicycle Cable Ends",
+ "Sporting Goods > Outdoor Recreation > Boating & Water Sports > Towed Water Sports > Wakeboarding > Wakeboard Parts",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cable Housings",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Cables",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Locks > Bicycle Cable Locks",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Transport Bags & Cases",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Computer Accessories > Bicycle Computer Cases",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Electric Vehicle (EV) Parts & Accessories > Protective Cases > Charging Cable Cases",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Bags & Panniers > Bicycle Top Cases"
+ ]
+ },
+ {
+ "row_idx": 68,
+ "selected_path": "Furniture > Benches > Storage & Entryway Benches > Window Seats",
+ "needs_review": false,
+ "candidate_union": [
+ "Furniture > Benches > Storage & Entryway Benches > Window Seats",
+ "Furniture > Benches"
+ ],
+ "text_scores": [
+ 0.39233678579330444,
+ 0.39233678579330444,
+ 0.6791787147521973,
+ 0.32082128524780273,
+ 0.5156199336051941,
+ 0.46879062056541443,
+ 0.42250463366508484,
+ 0.637030839920044,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.46879062056541443,
+ 0.7057850360870361,
+ 0.39233678579330444,
+ 0.5774953961372375,
+ 0.5156199336051941,
+ 0.4378235340118408,
+ 0.6513549089431763,
+ 0.5156199336051941
+ ],
+ "verifier_response_id": "019fe6fc-372a-7861-b31e-0bc2b3bfc520",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-278b-7690-bf3b-76c5b550b1dc",
+ "timing_ms": 401.5,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-29b2-7632-8cce-62abc58854f3",
+ "timing_ms": 3386.6,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-372a-7861-b31e-0bc2b3bfc520",
+ "timing_ms": 1754.0,
+ "credits_debited": 3367,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Furniture > Benches > Storage & Entryway Benches > Window Seats",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=68",
+ "image_sha256": "0e37c7f59c144ac9a6d1192e328dc2041b745de014b35745cf8728d34f7e8f6f",
+ "row_sha256": "fb9a733e07bb3da40ebf1f55aa5dae0a3890424b70a5562f48762ce833d36deb"
+ },
+ "candidate_paths": [
+ "Furniture > Benches > Kitchen & Dining Benches > Farmhouse Benches",
+ "Furniture > Benches > Kitchen & Dining Benches > Kitchen Nook Benches",
+ "Furniture > Benches > Storage & Entryway Benches > Window Seats",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Ottoman Benches",
+ "Furniture > Benches > Storage & Entryway Benches > Upholstered Storage Benches",
+ "Furniture > Benches > Kitchen & Dining Benches > Upholstered Benches",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Tufted Ottomans",
+ "Furniture > Benches",
+ "Furniture > Ottomans"
+ ]
+ },
+ {
+ "row_idx": 69,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Video Monitor Mounts > Headrest Mounts",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Video Monitor Mounts > Headrest Mounts",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Vehicle Headrest Hangers & Hooks"
+ ],
+ "text_scores": [
+ 0.2689414322376251,
+ 0.6791787147521973,
+ 0.6513549089431763,
+ 0.46879062056541443,
+ 0.29421496391296387,
+ 0.46879062056541443,
+ 0.622459352016449,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.2689414322376251,
+ 0.6791787147521973,
+ 0.637030839920044,
+ 0.46879062056541443,
+ 0.3073579967021942,
+ 0.46879062056541443,
+ 0.5926666259765625,
+ 0.46879062056541443
+ ],
+ "verifier_response_id": "019fe6fc-45ae-7050-bb01-ada07f678389",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-3d36-7483-bff8-7115244ab48a",
+ "timing_ms": 406.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-3f24-7c42-bb14-690f4fe144b4",
+ "timing_ms": 1672.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-45ae-7050-bb01-ada07f678389",
+ "timing_ms": 1343.3,
+ "credits_debited": 2236,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Video Monitor Mounts > Headrest Mounts",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=69",
+ "image_sha256": "a2dd063ee341d1f178ba8905ecd86bc7406b2cfadefa581b8b9c4bf6dcfcd19e",
+ "row_sha256": "e5763b422e9dcdadc06d7a5c02673e32670b65e1060ef71202b86c75074ebfc8"
+ },
+ "candidate_paths": [
+ "Baby & Toddler > Baby Transport Accessories > Baby & Toddler Car Seat Accessories",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Electronics > Motor Vehicle Video Monitor Mounts > Headrest Mounts",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Storage & Cargo > Vehicle Headrest Hangers & Hooks",
+ "Electronics > Communications > Telephony > Mobile & Smart Phone Accessories > Mobile Phone Car Mounts",
+ "Baby & Toddler > Baby Transport Accessories > Baby & Toddler Car Seat Accessories > Car Seat Organizers",
+ "Electronics > GPS Accessories > GPS Mounts",
+ "Electronics > Electronics Accessories > Computer Accessories > Tablet Computer Docks & Stands",
+ "Sporting Goods > Fitness & General Exercise Equipment > Cardio > Cardio Machine Accessories & Parts > Rowing Machine Accessories & Parts > Rowing Machine Tablet Holders"
+ ]
+ },
+ {
+ "row_idx": 70,
+ "selected_path": "Electronics > Electronics Accessories > Adapters > USB Adapters",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Electronics Accessories > Adapters > USB Adapters",
+ "Electronics > Electronics Accessories > Cables > Storage & Data Transfer Cables > USB Cables"
+ ],
+ "text_scores": [
+ 0.5156199336051941,
+ 0.4073334038257599,
+ 0.4843800365924835,
+ 0.42250463366508484,
+ 0.5774953961372375,
+ 0.42250463366508484,
+ 0.4532618522644043,
+ 0.5,
+ 0.42250463366508484
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.4532618522644043,
+ 0.4843800365924835,
+ 0.5156199336051941,
+ 0.5467381477355957,
+ 0.46879062056541443,
+ 0.5156199336051941,
+ 0.5,
+ 0.39233678579330444
+ ],
+ "verifier_response_id": "019fe6fc-581a-7ea1-8696-cc66e51096e4",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-4aa1-7293-8859-4efe8d82cdf2",
+ "timing_ms": 371.8,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-4c69-73c2-b7e4-469872ef6432",
+ "timing_ms": 2988.8,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-581a-7ea1-8696-cc66e51096e4",
+ "timing_ms": 1696.5,
+ "credits_debited": 3070,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Fitness & General Exercise Equipment > Cardio > Cardio Machine Accessories & Parts > Exercise Bike Accessories & Parts > Exercise Bike Computers",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=70",
+ "image_sha256": "2c24d422c8722bb4702deb1a5643db0b2041051b70119780026485ef2d7c8c7f",
+ "row_sha256": "ebb7f82b8735086983a241e88235939979696a194632ec8d4382a56dbf896e41"
+ },
+ "candidate_paths": [
+ "Electronics > Electronics Accessories > Cables > Storage & Data Transfer Cables > USB Cables",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Hard Drive Accessories > Hard Drive Docks",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > USB Flash Drives",
+ "Electronics > Video Game Console Accessories > Charging Docks",
+ "Electronics > Electronics Accessories > Adapters > USB Adapters",
+ "Electronics > Electronics Accessories > Computer Accessories > Tablet Computer Docks & Stands",
+ "Electronics > Electronics Accessories > Computer Accessories > Laptop Docking Stations",
+ "Electronics > Electronics Accessories > Computer Components > USB & FireWire Hubs",
+ "Sporting Goods > Fitness & General Exercise Equipment > Cardio > Cardio Machine Accessories & Parts > Exercise Bike Accessories & Parts > Exercise Bike Computers"
+ ]
+ },
+ {
+ "row_idx": 71,
+ "selected_path": "Furniture > Cabinets & Storage > Armoires & Wardrobes > Double Wardrobes",
+ "needs_review": false,
+ "candidate_union": [
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Double Wardrobes",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Hinged Door Wardrobes"
+ ],
+ "text_scores": [
+ 0.622459352016449,
+ 0.531209409236908,
+ 0.6513549089431763,
+ 0.5156199336051941,
+ 0.42250463366508484,
+ 0.637030839920044,
+ 0.5467381477355957,
+ 0.5156199336051941
+ ],
+ "image_plus_copy_scores": [
+ 0.622459352016449,
+ 0.4843800365924835,
+ 0.6926419734954834,
+ 0.531209409236908,
+ 0.5,
+ 0.637030839920044,
+ 0.6076632142066956,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6fc-6417-7bd0-be94-3861e5464359",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-5e6b-7cd3-8339-7a3da589bfe4",
+ "timing_ms": 350.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-5fe8-7bd0-af41-1e6b363b7336",
+ "timing_ms": 1074.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-6417-7bd0-be94-3861e5464359",
+ "timing_ms": 1252.6,
+ "credits_debited": 1644,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Furniture > Cabinets & Storage > Armoires & Wardrobes",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=71",
+ "image_sha256": "25bfc8ce2defddaf909e173aaf674251c1ed95b7fdb6406455fb50cf272c7ce4",
+ "row_sha256": "8c5e956c744fad5817fd0a6c7f696fa706cdf25aa11320a9843fd213fe879ba1"
+ },
+ "candidate_paths": [
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Mirrored Wardrobes",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Double Wardrobes",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Sliding Door Wardrobes",
+ "Furniture > Cabinets & Storage > Closet Parts & Accessories > Closet Drawers",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Hinged Door Wardrobes",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Shelved Armoires",
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Corner Wardrobes"
+ ]
+ },
+ {
+ "row_idx": 72,
+ "selected_path": "Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Weapons > Sais",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Weapons > Sais",
+ "Sporting Goods > Athletics > Gymnastics > Gymnastics Training Aids"
+ ],
+ "text_scores": [
+ 0.3775406777858734,
+ 0.7549149990081787,
+ 0.4532618522644043,
+ 0.2689414322376251,
+ 0.5,
+ 0.42250463366508484,
+ 0.562176525592804,
+ 0.5
+ ],
+ "image_plus_copy_scores": [
+ 0.3486451208591461,
+ 0.7662936449050903,
+ 0.42250463366508484,
+ 0.24508501589298248,
+ 0.46879062056541443,
+ 0.3486451208591461,
+ 0.5774953961372375,
+ 0.4532618522644043
+ ],
+ "verifier_response_id": "019fe6fc-7810-7ee2-8eb7-ca21213ee982",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-68e3-7a61-9318-ad7b7111a79b",
+ "timing_ms": 382.3,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-6afe-7683-8b9c-988560d8590f",
+ "timing_ms": 3287.0,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-7810-7ee2-8eb7-ca21213ee982",
+ "timing_ms": 1594.9,
+ "credits_debited": 3165,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Weapons > Sais",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=72",
+ "image_sha256": "4e461542d8022e2d851c2d11f49aa879bf29266713bf66cedeac861cfc9bf5aa",
+ "row_sha256": "90b57ad6159677e248005ee1fe7c7693043ece304aabbf6a18c99e2b24259a00"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Athletics > Tennis > Tennis Training Aids > Tennis Footwork Trainers",
+ "Sporting Goods > Athletics > Boxing & Martial Arts > Martial Arts Weapons > Sais",
+ "Sporting Goods > Athletics > Tennis > Tennis Training Aids",
+ "Sporting Goods > Outdoor Recreation > Outdoor Games > Badminton > Badminton Shoes",
+ "Sporting Goods > Athletics > Wrestling > Wrestling Training Aids > Wrestling Grip Trainers",
+ "Sporting Goods > Athletics > Tennis > Tennis Training Aids > Tennis Grip Trainers",
+ "Sporting Goods > Athletics > Gymnastics > Gymnastics Training Aids",
+ "Sporting Goods > Athletics > Boxing & Martial Arts > Boxing & Martial Arts Training Equipment > Punching & Training Bags > Punching & Training Punch Pads"
+ ]
+ },
+ {
+ "row_idx": 73,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Roasted Malt",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Specialty Malt",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Base Malt",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Roasted Malt"
+ ],
+ "text_scores": [
+ 0.562176525592804,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.6076632142066956,
+ 0.4073334038257599,
+ 0.6076632142066956,
+ 0.42250463366508484,
+ 0.5467381477355957
+ ],
+ "image_plus_copy_scores": [
+ 0.6076632142066956,
+ 0.665410578250885,
+ 0.6513549089431763,
+ 0.665410578250885,
+ 0.562176525592804,
+ 0.6926419734954834,
+ 0.4843800365924835,
+ 0.622459352016449
+ ],
+ "verifier_response_id": "019fe6fc-8237-7f82-a887-f03b839c2c87",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-7d7a-7cb0-9d80-fe4e49c19644",
+ "timing_ms": 344.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-7ef6-77e0-ab6c-119c20b60645",
+ "timing_ms": 830.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-8237-7f82-a887-f03b839c2c87",
+ "timing_ms": 1523.7,
+ "credits_debited": 1537,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Roasted Malt",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=73",
+ "image_sha256": "364db1ebe27a91de29f57c723c78168f436f773c19bbfaaf6cac502d0ec164f0",
+ "row_sha256": "7fb6317fda12553d65c34aaf5b7af0cbfe72f61b371b2f1ac48e5233f8cc6686"
+ },
+ "candidate_paths": [
+ "Food, Beverages & Tobacco > Beverages > Alcoholic Beverages > Beer",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Base Malt",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Roasted Malt",
+ "Food, Beverages & Tobacco > Food Items > Grains, Rice & Cereal > Barley",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Specialty Malt",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Homebrewing & Winemaking Kits > Beer Brewing Kits",
+ "Arts & Entertainment > Hobbies & Creative Arts > Homebrewing & Winemaking Supplies > Beer Brewing Grains & Malts > Adjunct Grain"
+ ]
+ },
+ {
+ "row_idx": 74,
+ "selected_path": "Electronics > Electronics Accessories > Computer Components > Storage Devices > Tape Drives",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Tape Drives",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Optical Drives"
+ ],
+ "text_scores": [
+ 0.4378235340118408,
+ 0.4532618522644043,
+ 0.562176525592804,
+ 0.5,
+ 0.42250463366508484,
+ 0.5926666259765625,
+ 0.7310585379600525,
+ 0.6513549089431763
+ ],
+ "image_plus_copy_scores": [
+ 0.5,
+ 0.4378235340118408,
+ 0.5467381477355957,
+ 0.5,
+ 0.4532618522644043,
+ 0.562176525592804,
+ 0.7431679368019104,
+ 0.665410578250885
+ ],
+ "verifier_response_id": "019fe6fc-9466-7e00-be00-784e5eee0330",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-8813-7731-ace5-ea36580143bf",
+ "timing_ms": 357.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-89d3-7de0-b6bb-ee6462b7300c",
+ "timing_ms": 2706.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-9466-7e00-be00-784e5eee0330",
+ "timing_ms": 1588.9,
+ "credits_debited": 3124,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Electronics Accessories > Computer Components > Storage Devices > Tape Drives",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=74",
+ "image_sha256": "bb2d49a96498119b05d309abcd6f7f5c26d098537cdbeedd92b539f7285b9e3b",
+ "row_sha256": "367beddbaba87b9c1ece2b6cd3198000a9013df908d3c83eba4184223d6dd785"
+ },
+ "candidate_paths": [
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Disk Duplicators > CD/DVD/Blu-ray Duplicators",
+ "Electronics > Video > Video Accessories > Rewinders",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Disk Duplicators",
+ "Electronics > Audio > Audio Players & Recorders > Reel-to-Reel Tape Players & Recorders",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Disk Duplicators > USB Drive Duplicators",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Hard Drives",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Tape Drives",
+ "Electronics > Electronics Accessories > Computer Components > Storage Devices > Optical Drives"
+ ]
+ },
+ {
+ "row_idx": 75,
+ "selected_path": "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > On-Ear Headphones"
+ ],
+ "text_scores": [
+ 0.39233678579330444,
+ 0.42250463366508484,
+ 0.5156199336051941,
+ 0.4073334038257599,
+ 0.5,
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.5,
+ 0.5774953961372375,
+ 0.4532618522644043,
+ 0.531209409236908,
+ 0.5774953961372375,
+ 0.5926666259765625,
+ 0.5467381477355957
+ ],
+ "verifier_response_id": "019fe6fc-a3d0-7210-9272-ed9220e8964e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-9a46-7552-820e-3d918171e343",
+ "timing_ms": 367.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-9c4f-7fb3-b9b9-053f0e1915a2",
+ "timing_ms": 1916.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-a3d0-7210-9272-ed9220e8964e",
+ "timing_ms": 1793.8,
+ "credits_debited": 3312,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > On-Ear Headphones",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=75",
+ "image_sha256": "d5d6c1c8050384bc488fd52da73097bb1998055825d5a4f5b74cf36fb6d58dd1",
+ "row_sha256": "609f7a855cdfd65869cfbe702769947eb5a3333fdc1901b211e9acd02808aa1e"
+ },
+ "candidate_paths": [
+ "Electronics > Audio > Audio Accessories > Audio & Video Receiver Accessories > Bluetooth Adapters",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > Bone Conduction Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > DJ Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > In-Ear Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > On-Ear Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones",
+ "Electronics > Audio > Audio Components > Headphones & Headsets > Headphones > Over-Ear Headphones"
+ ]
+ },
+ {
+ "row_idx": 76,
+ "selected_path": "Hardware > Tool Accessories > Tool Sockets",
+ "needs_review": true,
+ "candidate_union": [
+ "Hardware > Tool Accessories > Tool Sockets",
+ "Business & Industrial > Heavy Machinery > Excavators > Dragline Excavators",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cassettes & Freewheels > Bicycle Cassettes"
+ ],
+ "text_scores": [
+ 0.36296918988227844,
+ 0.24508501589298248,
+ 0.4843800365924835,
+ 0.3345894515514374,
+ 0.32082128524780273,
+ 0.4073334038257599,
+ 0.3775406777858734,
+ 0.22270013391971588,
+ 0.3486451208591461
+ ],
+ "image_plus_copy_scores": [
+ 0.2568320035934448,
+ 0.2568320035934448,
+ 0.4532618522644043,
+ 0.22270013391971588,
+ 0.3345894515514374,
+ 0.2689414322376251,
+ 0.39233678579330444,
+ 0.24508501589298248,
+ 0.2689414322376251
+ ],
+ "verifier_response_id": "019fe6fc-af71-7362-8f35-8b8d06c17414",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-aa42-7b60-b513-d27c828cad19",
+ "timing_ms": 432.3,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-abf3-79d0-9d81-8465ee3aaaea",
+ "timing_ms": 893.4,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-af71-7362-8f35-8b8d06c17414",
+ "timing_ms": 1460.7,
+ "credits_debited": 1157,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Business & Industrial > Heavy Machinery > Excavators > Dragline Excavators",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=76",
+ "image_sha256": "eee14b93c4f8b8833ed84c43fe9c53f3f80e612348e226b9ae7d24c08e0f44f3",
+ "row_sha256": "a41419c87e86ed195d51b296fa6607534008d7aea2ece8c73dcc86b6d16cc2fb"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Derailleurs",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Thread & Yarn Tools > Thread, Yarn & Bobbin Winders > Electric Winders",
+ "Hardware > Tool Accessories > Tool Sockets",
+ "Sporting Goods > Outdoor Recreation > Equestrian > Horse Care > Horse Wormers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tool Accessories > Spinning Wheel Accessories > Ratios",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cassettes & Freewheels > Bicycle Cassettes",
+ "Business & Industrial > Heavy Machinery > Excavators > Dragline Excavators",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Thread & Yarn Tools > Thread, Yarn & Bobbin Winders > Handheld Winders",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Computer Accessories > Bicycle Computer RPM Sensors"
+ ]
+ },
+ {
+ "row_idx": 77,
+ "selected_path": "Furniture > Outdoor Furniture > Outdoor Ottomans > Storage Ottomans",
+ "needs_review": false,
+ "candidate_union": [
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Storage Ottomans",
+ "Furniture > Outdoor Furniture > Outdoor Seating > Outdoor Benches > Storage Benches"
+ ],
+ "text_scores": [
+ 0.5774953961372375,
+ 0.7057850360870361,
+ 0.5156199336051941,
+ 0.531209409236908,
+ 0.22270013391971588,
+ 0.637030839920044,
+ 0.531209409236908,
+ 0.6791787147521973,
+ 0.5926666259765625
+ ],
+ "image_plus_copy_scores": [
+ 0.637030839920044,
+ 0.7057850360870361,
+ 0.5,
+ 0.5,
+ 0.3345894515514374,
+ 0.665410578250885,
+ 0.6926419734954834,
+ 0.7431679368019104,
+ 0.562176525592804
+ ],
+ "verifier_response_id": "019fe6fc-c357-79d1-8268-d6b3e67df2d9",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-b52c-77c3-aaef-cdc46b039529",
+ "timing_ms": 415.5,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-b728-75c3-abfc-8f840329034d",
+ "timing_ms": 3057.4,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-c357-79d1-8268-d6b3e67df2d9",
+ "timing_ms": 1488.1,
+ "credits_debited": 4222,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Furniture > Outdoor Furniture > Outdoor Seating > Outdoor Chairs > Club Chairs",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=77",
+ "image_sha256": "43573bb2d4dedb635d262d57facdae733d6eb85358e9e0685a8501ddab0ec990",
+ "row_sha256": "63d1b6cd929c2b0a400ea435d74cc134596b9dd1c49c3a3ce8e242d24e01d1ad"
+ },
+ "candidate_paths": [
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Shoe Storage Ottomans",
+ "Furniture > Outdoor Furniture > Outdoor Seating > Outdoor Benches > Storage Benches",
+ "Furniture > Chairs > Folding Chairs & Stools > Folding Stools",
+ "Furniture > Chairs > Folding Chairs & Stools",
+ "Hardware > Tools > Ladders & Scaffolding > Step Stools",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans",
+ "Furniture > Outdoor Furniture > Outdoor Storage Boxes",
+ "Furniture > Outdoor Furniture > Outdoor Ottomans > Storage Ottomans",
+ "Furniture > Outdoor Furniture > Outdoor Seating > Outdoor Chairs > Club Chairs"
+ ]
+ },
+ {
+ "row_idx": 78,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons > Flamencos Cajons",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons > Flamencos Cajons",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons"
+ ],
+ "text_scores": [
+ 0.4532618522644043,
+ 0.3345894515514374,
+ 0.6513549089431763,
+ 0.4532618522644043,
+ 0.39233678579330444,
+ 0.6076632142066956,
+ 0.3775406777858734,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.531209409236908,
+ 0.7310585379600525,
+ 0.5,
+ 0.46879062056541443,
+ 0.7057850360870361,
+ 0.4532618522644043,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6fc-ce9e-78c1-b9c7-2c78f94231fd",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-c899-7fb3-be7a-c1f16180c68d",
+ "timing_ms": 354.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-ca2c-7820-bc7a-09c91e119af4",
+ "timing_ms": 1157.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-ce9e-78c1-b9c7-2c78f94231fd",
+ "timing_ms": 1249.6,
+ "credits_debited": 1668,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons > Flamencos Cajons",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=78",
+ "image_sha256": "b9ff4bb03ec37de2642f9f990747d12ab4c31f54034f0c97e5e0cc735ce79471",
+ "row_sha256": "3db3d8a7cc5daec6186654f9f76c3b7ace28fe4c4c84239f41e50665845162e6"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Congas > Quintos",
+ "Toys & Games > Toys > Musical Toys > Drums & Percussion Instruments",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons > Flamencos Cajons",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets > Flamenco Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets > Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums > Cajons",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Hand Drums"
+ ]
+ },
+ {
+ "row_idx": 79,
+ "selected_path": "Hardware > Hardware Accessories > Tool Storage & Organization > Tool Organizer Liners & Inserts",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Hardware Accessories > Tool Storage & Organization > Tool Organizer Liners & Inserts",
+ "Hardware > Building Consumables > Solder & Flux > Lead-Free Solder",
+ "Hardware > Building Consumables > Solder & Flux > Rosin Flux"
+ ],
+ "text_scores": [
+ 0.3775406777858734,
+ 0.6076632142066956,
+ 0.4843800365924835,
+ 0.46879062056541443,
+ 0.36296918988227844,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.4378235340118408,
+ 0.531209409236908
+ ],
+ "image_plus_copy_scores": [
+ 0.4073334038257599,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.36296918988227844,
+ 0.36296918988227844,
+ 0.46879062056541443,
+ 0.5,
+ 0.4073334038257599,
+ 0.562176525592804
+ ],
+ "verifier_response_id": "019fe6fc-dd36-7ec1-8d60-9b9ea48a0726",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-d367-7dc0-af93-a0178e2d9263",
+ "timing_ms": 461.4,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-d593-7f73-889f-1bd1e7f707f2",
+ "timing_ms": 1949.7,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-dd36-7ec1-8d60-9b9ea48a0726",
+ "timing_ms": 1435.9,
+ "credits_debited": 2466,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Hardware Accessories > Tool Storage & Organization > Tool Organizer Liners & Inserts",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=79",
+ "image_sha256": "344283cbec970a46e65ff0f98006a4b043ceef87e5e9a1419407086161a4e5e4",
+ "row_sha256": "b85100e6fb18fce6fbcffc6b7e6de4eafe0fe53c99191c408c6bc041d510611a"
+ },
+ "candidate_paths": [
+ "Home & Garden > Kitchen & Dining > Cookware & Bakeware > Bakeware Accessories > Baking Mats & Liners",
+ "Hardware > Building Consumables > Solder & Flux > Lead-Free Solder",
+ "Electronics > Circuit Boards & Components > Circuit Board Accessories > Heat Sinks",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Cooktop, Oven & Range Accessories > Oven Gloves",
+ "Home & Garden > Kitchen & Dining > Tableware > Trivets",
+ "Hardware > Building Consumables > Solder & Flux > Rosin Flux",
+ "Hardware > Building Consumables > Solder & Flux > Lead-Based Solder",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Oven Mitts & Pot Holders",
+ "Hardware > Hardware Accessories > Tool Storage & Organization > Tool Organizer Liners & Inserts"
+ ]
+ },
+ {
+ "row_idx": 80,
+ "selected_path": "Home & Garden > Decor > Window Treatment Accessories > Window Treatment Replacement Parts > Window Hooks",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Decor > Window Treatment Accessories > Window Treatment Replacement Parts > Window Hooks",
+ "Home & Garden > Bathroom Accessories > Robe Hooks",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Needles & Hooks > Latch & Locker Hooks",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Screw Eyes & Hooks"
+ ],
+ "text_scores": [
+ 0.6076632142066956,
+ 0.4843800365924835,
+ 0.39233678579330444,
+ 0.5774953961372375,
+ 0.3345894515514374,
+ 0.3486451208591461,
+ 0.3486451208591461,
+ 0.5467381477355957
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.6791787147521973,
+ 0.5926666259765625,
+ 0.665410578250885,
+ 0.5,
+ 0.562176525592804,
+ 0.5926666259765625,
+ 0.7185943722724915
+ ],
+ "verifier_response_id": "019fe6fc-e66e-7020-8fe2-58003f379353",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-e27d-74b1-9168-3e7292090531",
+ "timing_ms": 296.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-e3a3-7331-830b-8bbb09af1eb8",
+ "timing_ms": 712.3,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-e66e-7020-8fe2-58003f379353",
+ "timing_ms": 1246.8,
+ "credits_debited": 908,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Decor > Window Treatment Accessories > Window Treatment Replacement Parts > Window Hooks",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=80",
+ "image_sha256": "debbf31bc78eecb8246da50a1c8bccee43b7ae585e59d7e5a3d182687e1f80da",
+ "row_sha256": "ff796c645fecd4f042bdb8059f4f5241ab483a80a9a0058115f677be44905c9b"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Tools > Needles & Hooks > Latch & Locker Hooks",
+ "Home & Garden > Bathroom Accessories > Robe Hooks",
+ "Home & Garden > Decor > Window Treatment Accessories > Curtain Holdbacks & Tassels",
+ "Hardware > Hardware Accessories > Hardware Fasteners > Screws > Screw Eyes & Hooks",
+ "Home & Garden > Bathroom Accessories > Shower Curtain Rings",
+ "Home & Garden > Decor > Window Treatment Accessories > Curtain Holdbacks & Tassels > Curtain Tassels",
+ "Home & Garden > Decor > Window Treatment Accessories > Curtain Holdbacks & Tassels > Curtain Holdbacks",
+ "Home & Garden > Decor > Window Treatment Accessories > Window Treatment Replacement Parts > Window Hooks"
+ ]
+ },
+ {
+ "row_idx": 81,
+ "selected_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Side Panels",
+ "needs_review": false,
+ "candidate_union": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Quarter Panels",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Carpet & Upholstery > Console Covers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Side Panels"
+ ],
+ "text_scores": [
+ 0.5,
+ 0.562176525592804,
+ 0.4532618522644043,
+ 0.5774953961372375,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.39233678579330444,
+ 0.6076632142066956
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.5156199336051941,
+ 0.4073334038257599,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.5,
+ 0.3775406777858734,
+ 0.531209409236908
+ ],
+ "verifier_response_id": "019fe6fc-f943-7130-b317-3eaeb721ad1c",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-eb5b-79d3-94ef-8babe8f2485d",
+ "timing_ms": 449.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-edaf-7550-83fa-6180ac428d83",
+ "timing_ms": 2960.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fc-f943-7130-b317-3eaeb721ad1c",
+ "timing_ms": 1650.7,
+ "credits_debited": 5745,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Carpet & Upholstery > Door Panels",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=81",
+ "image_sha256": "4f2fe359ae39e5a2cfdb11d22430bb5e6682a273bf5f0529dd5f4ef3d5d5a3c5",
+ "row_sha256": "5bbebe52a33c1cb1c063a4d9f38cb6fe7c9d0449f2c516c920e3ed83fbf0522b"
+ },
+ "candidate_paths": [
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Hoods",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Carpet & Upholstery > Door Panels",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Fenders",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Quarter Panels",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Carpet & Upholstery > Console Covers",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Doors",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Grilles",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Frame & Body Parts > Side Panels"
+ ]
+ },
+ {
+ "row_idx": 82,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Musical Shakers > Maracas",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Musical Shakers > Maracas",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases > Craft Wood & Shapes > Craft Wood Shapes",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets > Castanets"
+ ],
+ "text_scores": [
+ 0.5,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.665410578250885,
+ 0.4843800365924835,
+ 0.39233678579330444,
+ 0.5,
+ 0.4073334038257599
+ ],
+ "image_plus_copy_scores": [
+ 0.4843800365924835,
+ 0.5,
+ 0.5156199336051941,
+ 0.7185943722724915,
+ 0.5,
+ 0.46879062056541443,
+ 0.5,
+ 0.4378235340118408
+ ],
+ "verifier_response_id": "019fe6fd-0667-7803-aa03-31ee564da76c",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fc-ff27-74e0-82d2-eebfa0307ce4",
+ "timing_ms": 347.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-00a1-7812-93f8-34517cd1c3ec",
+ "timing_ms": 1479.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-0667-7803-aa03-31ee564da76c",
+ "timing_ms": 1289.3,
+ "credits_debited": 2262,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Musical Shakers > Maracas",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=82",
+ "image_sha256": "bf0bde12c1bf5b331b6d2805dd55f5969f0a7993db4c253c960faa571fdfec62",
+ "row_sha256": "044ee997390ce2575a159e28b9b6f0f30879b6451cec80a3bf6d3dabdb57ae17"
+ },
+ "candidate_paths": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets > Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases > Craft Wood & Shapes > Craft Wood Sticks",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases > Craft Wood & Shapes > Craft Wood Shapes",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Musical Shakers > Maracas",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Musical Scrapers & Ratchets > Guiros",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets > Flamenco Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Musical Instruments > Percussion > Hand Percussion > Claves & Castanets",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Craft Shapes & Bases > Craft Wood & Shapes > Craft Wood Cutouts"
+ ]
+ },
+ {
+ "row_idx": 83,
+ "selected_path": "Hardware > Power & Electrical Supplies > Extension Cords",
+ "needs_review": false,
+ "candidate_union": [
+ "Hardware > Power & Electrical Supplies > Power Outlets & Sockets",
+ "Hardware > Power & Electrical Supplies > Extension Cords",
+ "Electronics > Electronics Accessories > Power > Power Adapter & Charger Accessories > Replacement Cords"
+ ],
+ "text_scores": [
+ 0.42250463366508484,
+ 0.46879062056541443,
+ 0.5774953961372375,
+ 0.531209409236908,
+ 0.4843800365924835,
+ 0.5467381477355957,
+ 0.42250463366508484,
+ 0.4843800365924835
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.5774953961372375,
+ 0.5926666259765625,
+ 0.531209409236908,
+ 0.5,
+ 0.5467381477355957,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6fd-0f9f-77b0-be03-6898d283f6df",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-0b5c-7e71-b25e-a8fa0e453289",
+ "timing_ms": 341.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-0cb5-7bd1-a2e2-5af64653e66d",
+ "timing_ms": 746.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-0f9f-77b0-be03-6898d283f6df",
+ "timing_ms": 1198.1,
+ "credits_debited": 977,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Hardware > Power & Electrical Supplies > Power Outlets & Sockets",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=83",
+ "image_sha256": "552e521dcded8b322469882001d10be37f858cdb8527f2af379f6cabfc1caa12",
+ "row_sha256": "18337144f94b9983a9225c376de83b2c78c7232c2aad7e5049d9db706896e80c"
+ },
+ "candidate_paths": [
+ "Electronics > Electronics Accessories > Power > Power Stations",
+ "Electronics > Electronics Accessories > Power > Power Adapters & Chargers",
+ "Hardware > Power & Electrical Supplies > Extension Cords",
+ "Hardware > Power & Electrical Supplies > Power Outlets & Sockets",
+ "Hardware > Power & Electrical Supplies > Power Outlets & Sockets > Wall Outlets",
+ "Electronics > Electronics Accessories > Power > Power Adapter & Charger Accessories > Replacement Cords",
+ "Electronics > Electronics Accessories > Power > Power Strips & Surge Suppressors",
+ "Electronics > Electronics Accessories > Power > Power Adapter & Charger Accessories"
+ ]
+ },
+ {
+ "row_idx": 84,
+ "selected_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Blouses",
+ "needs_review": false,
+ "candidate_union": [
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Blouses",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops"
+ ],
+ "text_scores": [
+ 0.665410578250885,
+ 0.6926419734954834,
+ 0.6513549089431763,
+ 0.4532618522644043,
+ 0.7310585379600525,
+ 0.6926419734954834,
+ 0.7662936449050903,
+ 0.6513549089431763
+ ],
+ "image_plus_copy_scores": [
+ 0.6926419734954834,
+ 0.7549149990081787,
+ 0.7185943722724915,
+ 0.4843800365924835,
+ 0.7431679368019104,
+ 0.665410578250885,
+ 0.7662936449050903,
+ 0.6513549089431763
+ ],
+ "verifier_response_id": "019fe6fd-1cbd-7ac2-8f66-4da02e315853",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-1459-7542-a878-e0bc656180dd",
+ "timing_ms": 314.0,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-15ae-7de2-ae8d-48e4444d20fd",
+ "timing_ms": 1746.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-1cbd-7ac2-8f66-4da02e315853",
+ "timing_ms": 1359.0,
+ "credits_debited": 2224,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Blouses",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=84",
+ "image_sha256": "d7542fcc11f5c6794af5f9f160ed3b54ea31fe90926b930464d3683dc48c993b",
+ "row_sha256": "e0cadb401171a333c952584a5f45fe8326e8d07afaef5f36d19ccb67667909df"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Maternity Clothing",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Overshirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > T-Shirts",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Tunics",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Blouses",
+ "Apparel & Accessories > Clothing > Maternity Clothing > Maternity Tops > Nursing Shirts"
+ ]
+ },
+ {
+ "row_idx": 85,
+ "selected_path": "Hardware > Plumbing > Plumbing Hoses & Supply Lines",
+ "needs_review": true,
+ "candidate_union": [
+ "Hardware > Plumbing > Plumbing Hoses & Supply Lines",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Cooling Systems > Hose Fittings"
+ ],
+ "text_scores": [
+ 0.531209409236908,
+ 0.637030839920044,
+ 0.531209409236908,
+ 0.637030839920044,
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.5774953961372375,
+ 0.4532618522644043,
+ 0.531209409236908
+ ],
+ "image_plus_copy_scores": [
+ 0.562176525592804,
+ 0.6513549089431763,
+ 0.5926666259765625,
+ 0.637030839920044,
+ 0.562176525592804,
+ 0.6076632142066956,
+ 0.6076632142066956,
+ 0.5156199336051941,
+ 0.6076632142066956
+ ],
+ "verifier_response_id": "019fe6fd-25ec-7a22-b7f3-f4a38c99b748",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-21bb-7fc1-9a94-d8ddc728e2e1",
+ "timing_ms": 325.1,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-2300-7050-8e1d-0492c63ef597",
+ "timing_ms": 746.0,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-25ec-7a22-b7f3-f4a38c99b748",
+ "timing_ms": 1169.1,
+ "credits_debited": 787,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=85",
+ "image_sha256": "d1ea99c6806be0133449f38416dcedb1d8f778a4cc94369a0fdcb8761c9793b0",
+ "row_sha256": "aa3ff9b3a9b2019a2b85d0fc993023056cceecb20b9619a87b72eaf707d5fed8"
+ },
+ "candidate_paths": [
+ "Hardware > Plumbing > Plumbing Hoses & Supply Lines > Toilet Supply Lines",
+ "Hardware > Plumbing > Plumbing Hoses & Supply Lines",
+ "Hardware > Plumbing > Plumbing Hoses & Supply Lines > Washing Machine Supply Lines",
+ "Vehicles & Parts > Vehicle Parts & Accessories > Motor Vehicle Parts > Motor Vehicle Cooling Systems > Hose Fittings",
+ "Hardware > Plumbing > Plumbing Hoses & Supply Lines > Faucet Supply Lines",
+ "Home & Garden > Lawn & Garden > Watering & Irrigation > Garden Hose Fittings & Valves",
+ "Home & Garden > Lawn & Garden > Watering & Irrigation > Garden Hose Fittings & Valves > Garden Hose Fittings",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories",
+ "Home & Garden > Lawn & Garden > Outdoor Power Equipment Accessories > Pressure Washer Accessories > Suction Hoses"
+ ]
+ },
+ {
+ "row_idx": 86,
+ "selected_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Flannel",
+ "needs_review": false,
+ "candidate_union": [
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Flannel",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Fleece"
+ ],
+ "text_scores": [
+ 0.3486451208591461,
+ 0.6513549089431763,
+ 0.3775406777858734,
+ 0.3775406777858734,
+ 0.6076632142066956,
+ 0.3486451208591461,
+ 0.3775406777858734,
+ 0.3775406777858734
+ ],
+ "image_plus_copy_scores": [
+ 0.39233678579330444,
+ 0.665410578250885,
+ 0.39233678579330444,
+ 0.4843800365924835,
+ 0.622459352016449,
+ 0.4378235340118408,
+ 0.39233678579330444,
+ 0.42250463366508484
+ ],
+ "verifier_response_id": "019fe6fd-37d8-7311-b92e-435848ce18fe",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-2a8b-71e3-a8a0-639cfe46b44a",
+ "timing_ms": 343.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-2c79-7450-be29-8b13a9135343",
+ "timing_ms": 2852.8,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-37d8-7311-b92e-435848ce18fe",
+ "timing_ms": 1700.0,
+ "credits_debited": 3003,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Flannel",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=86",
+ "image_sha256": "27c8b64eb877cb4454471777c440f9f0f46dd47efef0b81a54301e9572ae2ba6",
+ "row_sha256": "97a608e62721f6a38dfc7b606842020da043e8d629b2c57e3b4aa3022220141a"
+ },
+ "candidate_paths": [
+ "Apparel & Accessories > Clothing > Baby & Toddler Clothing > Baby & Toddler Outerwear > Baby & Toddler Coats & Jackets > Pea Coats",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Flannel",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Chiffon",
+ "Home & Garden > Linens & Bedding > Bedding > Duvet Covers",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Fleece",
+ "Home & Garden > Lawn & Garden > Outdoor Living > Outdoor Umbrella & Sunshade Accessories > Outdoor Umbrella & Sunshade Fabric",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Satin",
+ "Arts & Entertainment > Hobbies & Creative Arts > Arts & Crafts > Art & Crafting Materials > Textiles > Fabric > Velvet"
+ ]
+ },
+ {
+ "row_idx": 87,
+ "selected_path": "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Erlenmeyer Laboratory Flasks",
+ "needs_review": false,
+ "candidate_union": [
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Erlenmeyer Laboratory Flasks",
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks"
+ ],
+ "text_scores": [
+ 0.29421496391296387,
+ 0.3345894515514374,
+ 0.665410578250885,
+ 0.29421496391296387,
+ 0.5774953961372375,
+ 0.7057850360870361,
+ 0.2689414322376251,
+ 0.46879062056541443
+ ],
+ "image_plus_copy_scores": [
+ 0.29421496391296387,
+ 0.3345894515514374,
+ 0.7057850360870361,
+ 0.3073579967021942,
+ 0.6513549089431763,
+ 0.7310585379600525,
+ 0.3073579967021942,
+ 0.5467381477355957
+ ],
+ "verifier_response_id": "019fe6fd-42c4-7983-bafa-b59ded53e1e7",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-3db4-73a0-8bb1-6f26e37a1726",
+ "timing_ms": 389.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-3f54-7071-ae0f-409e75e9b2d3",
+ "timing_ms": 879.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-42c4-7983-bafa-b59ded53e1e7",
+ "timing_ms": 1264.0,
+ "credits_debited": 2084,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Erlenmeyer Laboratory Flasks",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=87",
+ "image_sha256": "335b4f119b1516a94d84b845ffd04914978917daafb97ff0ef2a0cf71305b498",
+ "row_sha256": "ccf1aa0de1eb862652b48f309db4235c90517c543e42f9c83b062780bc4e9b70"
+ },
+ "candidate_paths": [
+ "Home & Garden > Kitchen & Dining > Barware > Cocktail Shakers & Tools > Cocktail Shakers",
+ "Home & Garden > Kitchen & Dining > Barware > Cocktail Shakers & Tools",
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks",
+ "Home & Garden > Kitchen & Dining > Barware > Cocktail Shakers & Tools > Cocktail Strainers",
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Volumetric Laboratory Flasks",
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Erlenmeyer Laboratory Flasks",
+ "Sporting Goods > Outdoor Recreation > Hydration System Accessories > Hydration System Flasks",
+ "Business & Industrial > Science & Laboratory > Laboratory Supplies > Laboratory Flasks > Buchner Laboratory Flasks"
+ ]
+ },
+ {
+ "row_idx": 88,
+ "selected_path": "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories > Cuvettes",
+ "needs_review": false,
+ "candidate_union": [
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories > Cuvettes",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories"
+ ],
+ "text_scores": [
+ 0.3073579967021942,
+ 0.5,
+ 0.4378235340118408,
+ 0.531209409236908,
+ 0.5,
+ 0.6926419734954834,
+ 0.5,
+ 0.3345894515514374
+ ],
+ "image_plus_copy_scores": [
+ 0.28140559792518616,
+ 0.5156199336051941,
+ 0.4378235340118408,
+ 0.5467381477355957,
+ 0.4843800365924835,
+ 0.7057850360870361,
+ 0.5,
+ 0.2689414322376251
+ ],
+ "verifier_response_id": "019fe6fd-4c71-7951-b716-7338411706cf",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-47a2-75b0-8eba-3287250a9637",
+ "timing_ms": 343.1,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-4916-76d1-b7cb-9e245ab20464",
+ "timing_ms": 858.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-4c71-7951-b716-7338411706cf",
+ "timing_ms": 1221.5,
+ "credits_debited": 1336,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories > Cuvettes",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=88",
+ "image_sha256": "582f83fdd21bca56be1825875a7d99c3a1ad6d0ad5367a4b95184d68b21627f1",
+ "row_sha256": "ca678d2a217b0b80dabf010bddabf92bdd7b25a9570dae558524f6ada9d75b6b"
+ },
+ "candidate_paths": [
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer > Short-Period Seismometers",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometers",
+ "Hardware > Tools > Measuring Tools & Sensors > UV Light Meters",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometers > Fluorescence Spectrometers",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometer Accessories > Cuvettes",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Spectrometers > UV-Vis Spectrometers",
+ "Hardware > Tools > Measuring Tools & Sensors > Seismometer > Broadband Seismometers"
+ ]
+ },
+ {
+ "row_idx": 89,
+ "selected_path": "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Vanity Bases",
+ "needs_review": false,
+ "candidate_union": [
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Vanity Bases",
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Double Sinks"
+ ],
+ "text_scores": [
+ 0.46879062056541443,
+ 0.7662936449050903,
+ 0.7057850360870361,
+ 0.7549149990081787,
+ 0.6513549089431763,
+ 0.637030839920044,
+ 0.7431679368019104,
+ 0.6791787147521973
+ ],
+ "image_plus_copy_scores": [
+ 0.39233678579330444,
+ 0.7879312038421631,
+ 0.7057850360870361,
+ 0.7185943722724915,
+ 0.637030839920044,
+ 0.5156199336051941,
+ 0.7185943722724915,
+ 0.6926419734954834
+ ],
+ "verifier_response_id": "019fe6fd-5d0b-79c1-84d6-3c82481b4a93",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-5125-71b3-aeab-d8bf5ce71eef",
+ "timing_ms": 360.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-52a9-7c93-b73e-01377d5754b4",
+ "timing_ms": 2596.9,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-5d0b-79c1-84d6-3c82481b4a93",
+ "timing_ms": 1406.3,
+ "credits_debited": 3188,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Vanity Bases",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=89",
+ "image_sha256": "b43e9475743eb0e437be12c5fd4d869dc6c26f102e8aad4e106f547bcceaa36a",
+ "row_sha256": "7fce830aca8e4e2331b5a24cd33cb5ab578cd200c649aedcde23f8064775c584"
+ },
+ "candidate_paths": [
+ "Furniture > Cabinets & Storage > Armoires & Wardrobes > Mirrored Armoires",
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Vanity Bases",
+ "Furniture > Cabinets & Storage > Vanities",
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Double Sinks",
+ "Furniture > Cabinets & Storage > Vanities > Bedroom Vanities > Bedroom Vanity Sets",
+ "Furniture > Cabinets & Storage > Vanities > Bedroom Vanities > Mirrored Vanities",
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Bathroom Cabinets",
+ "Furniture > Cabinets & Storage > Vanities > Bathroom Vanities > Bathroom Vanity Sets"
+ ]
+ },
+ {
+ "row_idx": 90,
+ "selected_path": "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories",
+ "needs_review": false,
+ "candidate_union": [
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > 3D Printer Cleaning Kits"
+ ],
+ "text_scores": [
+ 0.36296918988227844,
+ 0.3775406777858734,
+ 0.46879062056541443,
+ 0.4843800365924835,
+ 0.4378235340118408,
+ 0.42250463366508484,
+ 0.4378235340118408,
+ 0.36296918988227844
+ ],
+ "image_plus_copy_scores": [
+ 0.4073334038257599,
+ 0.46879062056541443,
+ 0.622459352016449,
+ 0.562176525592804,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.562176525592804,
+ 0.39233678579330444
+ ],
+ "verifier_response_id": "019fe6fd-687a-7202-b813-03842476b5e8",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-6245-77f0-b8b9-61c9025b4f68",
+ "timing_ms": 342.6,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-63ae-77c0-ad76-4b438fac348b",
+ "timing_ms": 1227.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-687a-7202-b813-03842476b5e8",
+ "timing_ms": 1548.3,
+ "credits_debited": 1775,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > Extruders",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=90",
+ "image_sha256": "d9ee5bc10c4a19994526f0d7c0b0596116e1866dcb632cb8f9b8eccc5e04f358",
+ "row_sha256": "28fde666faeef671104159e34a2417a0a64d9cbe5420f6bf037807b75d852ae2"
+ },
+ "candidate_paths": [
+ "Hardware > Tools > Heat Guns",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > 3D Printer Carrying Cases",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > 3D Printer Cleaning Kits",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printers",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > Nozzles",
+ "Electronics > Print, Copy, Scan & Fax > 3D Printer Accessories > Extruders",
+ "Hardware > Tools > Heat Guns > Hot Air Guns"
+ ]
+ },
+ {
+ "row_idx": 91,
+ "selected_path": "Business & Industrial > Science & Laboratory > Laboratory Equipment > Laboratory Ovens",
+ "needs_review": false,
+ "candidate_union": [
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Laboratory Ovens",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliances > Vacuum Sealers",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Vacuum Sealer Accessories",
+ "Home & Garden > Household Appliance Accessories > Furnace & Boiler Accessories > Furnace & Boiler Fixing Kits"
+ ],
+ "text_scores": [
+ 0.5467381477355957,
+ 0.531209409236908,
+ 0.5926666259765625,
+ 0.5467381477355957,
+ 0.5,
+ 0.5467381477355957,
+ 0.5467381477355957,
+ 0.28140559792518616,
+ 0.4532618522644043
+ ],
+ "image_plus_copy_scores": [
+ 0.46879062056541443,
+ 0.562176525592804,
+ 0.562176525592804,
+ 0.4532618522644043,
+ 0.5926666259765625,
+ 0.5774953961372375,
+ 0.5156199336051941,
+ 0.28140559792518616,
+ 0.5
+ ],
+ "verifier_response_id": "019fe6fd-7619-7821-a89d-736202d46224",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-6e79-7d50-918d-275914d4e8a2",
+ "timing_ms": 430.6,
+ "credits_debited": 201,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-703f-7972-9035-e3a992a3a0cf",
+ "timing_ms": 1496.1,
+ "credits_debited": 335,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-7619-7821-a89d-736202d46224",
+ "timing_ms": 1313.1,
+ "credits_debited": 3172,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Business & Industrial > Science & Laboratory > Laboratory Equipment > Laboratory Ovens",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=91",
+ "image_sha256": "7595b4494e45c198e381e9d92cf44d6e2b74e8e5f54efa9822a48357bae271df",
+ "row_sha256": "cd6a3713da6375c4151281c2836f173feeacf74d06b29971c4a81d354abaf21a"
+ },
+ "candidate_paths": [
+ "Home & Garden > Household Appliance Accessories > Furnace & Boiler Accessories > Furnace & Boiler Fixing Kits",
+ "Hardware > Plumbing > Plumbing Fittings & Supports > Gaskets & O-Rings",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Vacuum Sealer Accessories",
+ "Home & Garden > Household Appliance Accessories > Furnace & Boiler Accessories > Furnace & Boiler Hoses",
+ "Business & Industrial > Science & Laboratory > Laboratory Equipment > Laboratory Ovens",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliances > Vacuum Sealers",
+ "Home & Garden > Household Appliance Accessories > Furnace & Boiler Accessories",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Freezer Accessories > Freezer Door Gaskets",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliance Accessories > Vacuum Sealer Accessories > Vacuum Sealer Bags"
+ ]
+ },
+ {
+ "row_idx": 92,
+ "selected_path": "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drills",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drills",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drill Accessories",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools"
+ ],
+ "text_scores": [
+ 0.7057850360870361,
+ 0.46879062056541443,
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.6076632142066956,
+ 0.4073334038257599,
+ 0.5774953961372375,
+ 0.5926666259765625
+ ],
+ "image_plus_copy_scores": [
+ 0.7310585379600525,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.562176525592804,
+ 0.6513549089431763,
+ 0.4378235340118408,
+ 0.665410578250885,
+ 0.6513549089431763
+ ],
+ "verifier_response_id": "019fe6fd-80eb-71e2-9d10-83980ff7bc0c",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-7b29-7e60-b191-d52dbc231d7d",
+ "timing_ms": 421.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-7ced-7531-bde6-8e34216403d7",
+ "timing_ms": 964.1,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-80eb-71e2-9d10-83980ff7bc0c",
+ "timing_ms": 1339.6,
+ "credits_debited": 1946,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drills",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=92",
+ "image_sha256": "93d7a915eeece494dedf25fefca9a2303ce04033495f287eb887ac934cc78325",
+ "row_sha256": "57a3651244c2ba2d6ce4698db4f4572b5a3bea615d7b86749e2b15cbea07c4df"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drills",
+ "Hardware > Tools > Drills > Handheld Power Drills > Impact Drills",
+ "Hardware > Tools > Drills > Handheld Power Drills",
+ "Hardware > Tools > Drills > Handheld Power Drills > Rotary Drills",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools",
+ "Hardware > Tools > Drills > Handheld Power Drills > Hammer Drills",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Nail Drill Accessories",
+ "Health & Beauty > Personal Care > Cosmetics > Cosmetic Tools > Nail Tools > Manicure Tool Sets"
+ ]
+ },
+ {
+ "row_idx": 93,
+ "selected_path": "Health & Beauty > Personal Care > Cosmetics > Makeup > Body Makeup",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Oil",
+ "Health & Beauty > Personal Care > Cosmetics > Makeup > Body Makeup"
+ ],
+ "text_scores": [
+ 0.622459352016449,
+ 0.531209409236908,
+ 0.7057850360870361,
+ 0.5774953961372375,
+ 0.5926666259765625,
+ 0.5774953961372375,
+ 0.5,
+ 0.5926666259765625
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.4378235340118408,
+ 0.6513549089431763,
+ 0.531209409236908,
+ 0.46879062056541443,
+ 0.531209409236908,
+ 0.4378235340118408,
+ 0.4843800365924835
+ ],
+ "verifier_response_id": "019fe6fd-9213-7d13-9977-77d702b4ca70",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-85e0-7423-845f-bf0585f6db6a",
+ "timing_ms": 331.2,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-8780-7613-a716-1385cb6269f4",
+ "timing_ms": 2648.4,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-9213-7d13-9977-77d702b4ca70",
+ "timing_ms": 1318.7,
+ "credits_debited": 2922,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Cosmetics > Makeup > Body Makeup",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=93",
+ "image_sha256": "f04658f17e6c21c97affdeb18f8c448d61f07216086169fe5448de269d350230",
+ "row_sha256": "d3e0799a08ac98078440f413da36053fee5b7efea4a1459b2c57a3319a38c8ca"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Cosmetics > Makeup > Body Makeup",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Tanning Products > Self Tanner",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Oil",
+ "Health & Beauty > Personal Care > Cosmetics > Makeup > Body Makeup > Body & Hair Glitter",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Butters & Balms > Body Balms",
+ "Health & Beauty > Personal Care > Cosmetics > Makeup > Face Makeup > Highlighters & Luminizers",
+ "Health & Beauty > Personal Care > Cosmetics > Makeup > Face Makeup > Blushes & Bronzers",
+ "Health & Beauty > Personal Care > Cosmetics > Skin Care > Body Butters & Balms > Body Butters"
+ ]
+ },
+ {
+ "row_idx": 94,
+ "selected_path": "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Darkroom Easels",
+ "needs_review": false,
+ "candidate_union": [
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Darkroom Easels",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment"
+ ],
+ "text_scores": [
+ 0.6076632142066956,
+ 0.665410578250885,
+ 0.6076632142066956,
+ 0.5774953961372375,
+ 0.5926666259765625,
+ 0.7549149990081787,
+ 0.7549149990081787,
+ 0.7185943722724915
+ ],
+ "image_plus_copy_scores": [
+ 0.622459352016449,
+ 0.6926419734954834,
+ 0.5926666259765625,
+ 0.5926666259765625,
+ 0.637030839920044,
+ 0.7549149990081787,
+ 0.7662936449050903,
+ 0.7310585379600525
+ ],
+ "verifier_response_id": "019fe6fd-9c2d-7b53-bb67-f5c4cdb8bf3e",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-96bc-7063-abbc-211140a7f427",
+ "timing_ms": 405.9,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-9862-7093-8629-390773b027f3",
+ "timing_ms": 968.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-9c2d-7b53-bb67-f5c4cdb8bf3e",
+ "timing_ms": 1256.9,
+ "credits_debited": 1692,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Darkroom Easels",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=94",
+ "image_sha256": "0c031538326a4067f443a465f321b892993c6319869e6ee7dd0288815b9f9f5d",
+ "row_sha256": "2b34233439094e760c688bd01bca9d86d70ed2d2264eee06a3b31a6ae418370c"
+ },
+ "candidate_paths": [
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Photographic Analyzers",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Focusing Aids",
+ "Cameras & Optics > Photography > Darkroom > Developing & Processing Equipment > Retouching Equipment & Supplies",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Darkroom Timers",
+ "Office Supplies > Presentation Supplies > Easels",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Darkroom Easels",
+ "Cameras & Optics > Photography > Darkroom > Enlarging Equipment > Photographic Enlargers"
+ ]
+ },
+ {
+ "row_idx": 95,
+ "selected_path": "Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Bags & Cases",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Outdoor Recreation > Fishing > Tackle Bags & Boxes",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Bags & Cases",
+ "Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Care > Hockey Stick Bags"
+ ],
+ "text_scores": [
+ 0.531209409236908,
+ 0.5156199336051941,
+ 0.5,
+ 0.531209409236908,
+ 0.5926666259765625,
+ 0.36296918988227844,
+ 0.36296918988227844,
+ 0.4378235340118408
+ ],
+ "image_plus_copy_scores": [
+ 0.6513549089431763,
+ 0.6513549089431763,
+ 0.622459352016449,
+ 0.665410578250885,
+ 0.562176525592804,
+ 0.4843800365924835,
+ 0.4843800365924835,
+ 0.5774953961372375
+ ],
+ "verifier_response_id": "019fe6fd-adfc-7860-bd8c-4826debdeaf3",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-a10a-7be3-ad8e-3fb8245ff020",
+ "timing_ms": 356.7,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-a2fe-70c1-9b74-7416c0afafea",
+ "timing_ms": 2808.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-adfc-7860-bd8c-4826debdeaf3",
+ "timing_ms": 1794.9,
+ "credits_debited": 3238,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Bags & Cases",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=95",
+ "image_sha256": "b00fae795a4553e26a07a46cce5566121b218542fd703e9e3e288d5b0385a588",
+ "row_sha256": "b0613a7cdf8f876aa079029c42469edd9d2a94dc37f5b55fe5bc97e49260902e"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Bags & Cases",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Hook Removal Tools > Throwing Sticks",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Reel Accessories > Fishing Reel Bags & Cases",
+ "Sporting Goods > Outdoor Recreation > Fishing > Tackle Bags & Boxes",
+ "Sporting Goods > Athletics > Figure Skating & Hockey > Hockey Stick Care > Hockey Stick Bags",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Bait & Chum Containers",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Hook Removal Tools > Boilie Drills",
+ "Sporting Goods > Outdoor Recreation > Fishing > Fishing Rod Accessories > Fishing Rod Holders & Storage Racks"
+ ]
+ },
+ {
+ "row_idx": 96,
+ "selected_path": "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters > Food Graters",
+ "needs_review": false,
+ "candidate_union": [
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters > Food Graters"
+ ],
+ "text_scores": [
+ 0.32082128524780273,
+ 0.665410578250885,
+ 0.531209409236908,
+ 0.4532618522644043,
+ 0.24508501589298248,
+ 0.5,
+ 0.665410578250885,
+ 0.5
+ ],
+ "image_plus_copy_scores": [
+ 0.29421496391296387,
+ 0.7185943722724915,
+ 0.4532618522644043,
+ 0.36296918988227844,
+ 0.22270013391971588,
+ 0.5156199336051941,
+ 0.7310585379600525,
+ 0.4532618522644043
+ ],
+ "verifier_response_id": "019fe6fd-c13a-70d2-96bd-8b390b9edb1a",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-b472-70d3-a479-09363661344b",
+ "timing_ms": 371.8,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-b640-73b0-bb7f-28430984be4c",
+ "timing_ms": 2811.7,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-c13a-70d2-96bd-8b390b9edb1a",
+ "timing_ms": 1398.3,
+ "credits_debited": 3096,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters > Food Graters",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=96",
+ "image_sha256": "0a2ff9f2bc5fa5078d01873bdd7217578e34b7694a89f03f849c1330a339029b",
+ "row_sha256": "bffb2730ee4fdc20c5fc62e7a1dee5eac06dc8795e662f19d3856188e82ad4e2"
+ },
+ "candidate_paths": [
+ "Home & Garden > Household Appliances > Floor & Steam Cleaners > Handheld Steam Cleaners",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters > Food Graters",
+ "Home & Garden > Kitchen & Dining > Kitchen Appliances > Knife Sharpeners > Manual Knife Sharpeners",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Tongs",
+ "Hardware > Tools > Magnetic Sweepers > Handheld Magnetic Sweepers",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Garlic Presses",
+ "Home & Garden > Kitchen & Dining > Kitchen Tools & Utensils > Food Graters & Zesters",
+ "Hardware > Tools > Cutters > Handheld Metal Shears & Nibblers"
+ ]
+ },
+ {
+ "row_idx": 97,
+ "selected_path": "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > LED Light Kits",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > LED Light Kits",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Gels"
+ ],
+ "text_scores": [
+ 0.7185943722724915,
+ 0.7662936449050903,
+ 0.5774953961372375,
+ 0.562176525592804,
+ 0.6076632142066956,
+ 0.7057850360870361,
+ 0.622459352016449,
+ 0.637030839920044
+ ],
+ "image_plus_copy_scores": [
+ 0.7057850360870361,
+ 0.7185943722724915,
+ 0.562176525592804,
+ 0.562176525592804,
+ 0.5467381477355957,
+ 0.6791787147521973,
+ 0.5774953961372375,
+ 0.622459352016449
+ ],
+ "verifier_response_id": "019fe6fd-d38e-7cc2-afa9-d9498f6580d1",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-c669-7223-a6bc-83685dc5b227",
+ "timing_ms": 339.3,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-c849-7153-92e2-d04b9d1ff0ae",
+ "timing_ms": 2879.5,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-d38e-7cc2-afa9-d9498f6580d1",
+ "timing_ms": 1456.3,
+ "credits_debited": 2989,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Gels",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=97",
+ "image_sha256": "5026d607c2da0c138b69cb5b713b4c65171bf0ae5056b00c002dc05907e04b21",
+ "row_sha256": "e250eef9cda15461d6e8edcb1b971fdaca1f21e1dc5ce555030f90de66356e32"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Gels",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > LED Light Kits",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Pens",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Mouthwash",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Powder",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Pods",
+ "Health & Beauty > Personal Care > Oral Care > Teeth Whiteners > Whitening Strips"
+ ]
+ },
+ {
+ "row_idx": 98,
+ "selected_path": "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chains",
+ "needs_review": false,
+ "candidate_union": [
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chains",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Derailleurs"
+ ],
+ "text_scores": [
+ 0.4843800365924835,
+ 0.562176525592804,
+ 0.5,
+ 0.5156199336051941,
+ 0.4843800365924835,
+ 0.5467381477355957,
+ 0.5774953961372375,
+ 0.622459352016449
+ ],
+ "image_plus_copy_scores": [
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.5156199336051941,
+ 0.562176525592804,
+ 0.5774953961372375,
+ 0.6513549089431763
+ ],
+ "verifier_response_id": "019fe6fd-e567-7e20-a83a-cdbbd12319c5",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-d8ac-7a40-870f-178117f256a2",
+ "timing_ms": 374.3,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-da88-70d2-9bb6-c04f9256df3a",
+ "timing_ms": 2729.2,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-e567-7e20-a83a-cdbbd12319c5",
+ "timing_ms": 1537.6,
+ "credits_debited": 3098,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chains",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=98",
+ "image_sha256": "d42bcf0615edf3103e4731c88056ecebf6edafd45f56754f2814bc578967c57f",
+ "row_sha256": "ea462c4645d26ff2373c7a41a259583bc639fd3bc86cc1eada30cc4b93cf0c8a"
+ },
+ "candidate_paths": [
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cassettes & Freewheels",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Small Parts > Bicycle Chain Links",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Accessories > Bicycle Tools > Bicycle Chain Tools",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Shifters",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Cassettes & Freewheels > Bicycle Cassettes",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Derailleurs",
+ "Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Drivetrain Parts > Bicycle Chains"
+ ]
+ },
+ {
+ "row_idx": 99,
+ "selected_path": "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "needs_review": false,
+ "candidate_union": [
+ "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "Apparel & Accessories > Clothing Accessories > Maternity Belts & Support Bands",
+ "Health & Beauty > Personal Care > Back Care > Back & Lumbar Support Cushions"
+ ],
+ "text_scores": [
+ 0.622459352016449,
+ 0.4378235340118408,
+ 0.6513549089431763,
+ 0.4532618522644043,
+ 0.5156199336051941,
+ 0.5467381477355957,
+ 0.4532618522644043,
+ 0.28140559792518616
+ ],
+ "image_plus_copy_scores": [
+ 0.5926666259765625,
+ 0.5156199336051941,
+ 0.665410578250885,
+ 0.622459352016449,
+ 0.5774953961372375,
+ 0.5467381477355957,
+ 0.4378235340118408,
+ 0.23370636999607086
+ ],
+ "verifier_response_id": "019fe6fd-f0b4-7f42-93e2-41c1d6416589",
+ "api_calls": [
+ {
+ "stage": "copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-eae0-73f0-89fb-a5c7559526b3",
+ "timing_ms": 312.5,
+ "credits_debited": 179,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "image_plus_copy_rerank",
+ "requested_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "runtime_model": "Qwen/Qwen3-VL-Reranker-2B",
+ "request_id": "019fe6fd-ec33-7b63-b422-e05a3aabd674",
+ "timing_ms": 1092.6,
+ "credits_debited": 298,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a61058c96cb7d88459f63949845a8b35aa0b258042898d6159adf80eff846963"
+ },
+ {
+ "stage": "candidate_verification",
+ "requested_model": "Qwen/Qwen3.6-27B",
+ "runtime_model": "Qwen/Qwen3.6-27B",
+ "request_id": "019fe6fd-f0b4-7f42-93e2-41c1d6416589",
+ "timing_ms": 1345.9,
+ "credits_debited": 1526,
+ "rate_book_version": "2026-07-26-production-bootstrap-v2",
+ "execution_identity_sha256": "a51c1fb98f03033f834011229067f248afd0da11218fdbb1c6d7bd2f719fa543"
+ }
+ ],
+ "ground_truth_path": "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "source": {
+ "viewer_url": "https://huggingface.co/datasets/Shopify/product-catalogue/viewer/default/train?row=99",
+ "image_sha256": "87e246b0ebfe209d79bf0049cba278a0f758c885ee263b47f7a3ef517c3a5ba1",
+ "row_sha256": "aa46f6b11ecd5a9ae3d729ae2f825628b24b96794a98c3c2d23b21ab1e7af159"
+ },
+ "candidate_paths": [
+ "Health & Beauty > Personal Care > Back Care > Back & Lumbar Support Cushions",
+ "Business & Industrial > Medical > Medical Supplies > Ostomy Supplies > Ostomy Belts",
+ "Health & Beauty > Health Care > Supports & Braces > Back Braces",
+ "Apparel & Accessories > Clothing Accessories > Maternity Belts & Support Bands",
+ "Health & Beauty > Personal Care > Back Care",
+ "Business & Industrial > Medical > Medical Equipment > Gait Belts",
+ "Sporting Goods > Fitness & General Exercise Equipment > Weight Lifting > Weight Lifting Belts",
+ "Home & Garden > Decor > Backrest Pillows"
+ ]
+ }
+ ]
+}