← back to Harlequin Sample Price Analysis
verification/e2e-proof.json
62 lines
{
"ticket": "TK-10870",
"model": "codex",
"risk_tier": "R1",
"environment": "local tooling plus server-enforced read-only dw_unified session",
"timestamp_utc": "2026-08-30T16:40:00Z",
"intent": "Independently compare Claude's Harlequin analysis to the current mirror without Shopify or dw_unified writes.",
"baseline": "Claude observed 32 missing-Sample products and no populated cost basis on 2026-08-26; TK-10877 later backfilled trade pricing.",
"checks": [
{
"name": "pure pricing and classifier suite",
"command": "node --test tests/pricing.test.mjs",
"verdict": "PASS",
"evidence": "14 tests passed, 0 failed"
},
{
"name": "live read-only analyzer",
"command": "node scripts/analyze-harlequin.mjs",
"verdict": "PASS",
"evidence": "32 total; 31 computable; 1 price gap; 5 null catalog dw_sku; 31 formula matches"
},
{
"name": "catalog-wide independent SQL census",
"command": "PGOPTIONS='-c default_transaction_read_only=on' psql ... SELECT",
"verdict": "PASS",
"evidence": "842 rows; 732 populated price_trade; 732 formula matches"
},
{
"name": "original-cohort identity join",
"command": "server-read-only join on gid://shopify/Product/<shopify_product_id>",
"verdict": "PASS",
"evidence": "32/32 product IDs matched DWHQ-335xxx live rows; 32 ACTIVE"
},
{
"name": "Cranes In Flight identity integrity",
"command": "server-read-only catalog and shopify_products enumeration for HAW0065",
"verdict": "PASS",
"evidence": "Confirmed catalog Emerald and Marine share product ID 7787420680243; live DWHQ-335001 and DWHQ-335002 both carry the Marine mfr_sku. Family must be excluded from repricing until repaired."
},
{
"name": "write boundary",
"verdict": "PASS",
"evidence": "No Shopify calls; PostgreSQL session forced default_transaction_read_only=on; analysis SQL is SELECT-only"
}
],
"negative_checks": [
{
"name": "missing/non-positive cost",
"verdict": "PASS",
"evidence": "computeRetail returns null; classifier refuses to mark sell price computable"
},
{
"name": "weak sibling inference",
"verdict": "PASS",
"evidence": "disagreeing or single sibling never marked confident"
}
],
"side_effects": "Local report timestamps and documentation only; no external or production mutation.",
"cleanup": "No external test state created.",
"overall_verdict": "PASS"
}