Skip to content

data: revert cheaper-direction CC price regressions (>=5x) to prior overrides - #29

Merged
icemansparks merged 1 commit into
merkerhoodfrom
data/revert-cheaper-cc-regressions
Aug 12, 2026
Merged

data: revert cheaper-direction CC price regressions (>=5x) to prior overrides#29
icemansparks merged 1 commit into
merkerhoodfrom
data/revert-cheaper-cc-regressions

Conversation

@icemansparks

Copy link
Copy Markdown
Collaborator

What

Reverts 1061 price override rows where the 2026-07-01 ChromieCraft regeneration made an item 5x or cheaper than the previous curated value. Values restored from tools/price-backfill/reports/deviations-2026-07-01.csv (existing_avg/existing_min).

The original import only guarded the pricier direction (1005 single-listing troll spikes were reverted); cheaper-direction outliers shipped unchecked. Medium Hide (4232) is the reported case: 7702/4589 was overwritten with 175/166, listing just above vendor price. It returns to 77s02c/45s89c.

Selection rule

cc_avg < existing_avg AND existing_avg / cc_avg >= 5 -> restore (existing_avg, existing_min). Milder drops (<5x) stay at CC market prices.

Verification

  • All 1061 changed rows machine-checked: old value == CSV cc values, new value == CSV existing values, ratio rule holds; 0 CSV rows meeting the rule were missed.
  • No row was touched whose current values had been overwritten after the import (reagent derivation / troll revert) - none matched.
  • File keeps 11469 rows, 0 rows with minPrice > avgPrice.
  • The file is a full DROP+CREATE snapshot, so deploy replays the whole table (same mechanism as the July data commits).

Closes #26

…rrides

The ChromieCraft regeneration only guarded against pricier-direction
outliers (the troll-spike revert); rows the import made drastically
cheaper shipped unchecked. Restore the curated values for every row
where the CC price undercut the previous override by 5x or more,
sourced from deviations-2026-07-01.csv (existing_avg/existing_min).

Example: Medium Hide (4232) returns to 77s02c/45s89c after the import
dropped it to 1s75c/1s66c, just above vendor.

Closes #26
@icemansparks
icemansparks merged commit c3f3530 into merkerhood Aug 12, 2026
1 check passed
@icemansparks
icemansparks deleted the data/revert-cheaper-cc-regressions branch August 12, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant