← back to Dw Add Sellable Variant Tk10902

tk10875-cost-source-map/README.md

21 lines

# TK-10875 cost-source map

This local, read-only analyzer is the next narrowing step for the corrected
25,214-product unbuyable cohort and its approximately 24,990 cost-sourcing hole.
It discovers staging tables with explicit cost/trade columns, then counts only
exact identifier joins to affected Shopify-mirror products. Retail/MSRP columns
are deliberately excluded from cost evidence.

Run:

```sh
node analyze-cost-sources.mjs --probe-write-guard
node analyze-cost-sources.mjs
node test-cost-source-map.mjs
```

The full scan did not complete on 2026-08-30 because local `dw_unified` reads
continued to queue behind the known `shopify_products` lock pileup. No backend
was killed and no database or Shopify write was attempted. The expected report
`cost-source-map.json` therefore remains absent until the mirror is responsive.