Calculate net revenue, gross profit, return rate, and stock coverage, then select SKUs to reorder.
Use the synthetic sales data (sales.csv) and inventory data (inventory.json) to calculate key metrics and select SKUs to reorder next week. There are no hidden requirements; the definitions below are the scoring rules.
Data
Each sales.csv row is a sales batch with sku, units sold, gross revenue and cost in KRW, and returns from that row.
revenue and cost are before returns. A SKU may appear in multiple rows.
inventory.json gives observedDays, current stock, and leadDays per SKU.
Calculations
Unit price = revenue / units; unit cost = cost / units. A row with zero units has zero money and returns.
Refund = returns × that row's unit price. Restored cost = returns × that row's unit cost.
netRevenue = Σ(revenue − refund).
Net cost = Σ(cost − restored cost); grossProfit = netRevenue − net cost.
netUnits = Σ(units − returns).
returnRate = Σreturns / Σunits, using pre-return sales as the denominator.
Daily net demand per SKU = Σ(units − returns) for that SKU / observedDays.
coverDays[SKU] = stock / daily net demand. Use null, not zero or a string, when net demand is zero or negative. Include every inventory SKU.
reorder contains SKUs with non-null coverDays < leadDays. Do not reorder at equality.
recommendationEvidence lists the SKUs referenced in your rationale. It must be nonempty and include every reordered SKU.
Money and counts require exact integers; returnRate and coverDays allow absolute error up to 1e-6.
Order does not matter for reorder or recommendationEvidence. Duplicates, unknown SKUs, and non-string entries fail the relevant check.
The evidence check only verifies that referenced SKUs exist and include all reordered SKUs; it does not judge the quality of the explanation.
Missing or non-object metrics.json gives zero on every automatic check.
A reviewer scores structure, practicality, and depth (1,000 basis points each) from optional analysis.md or the explanation. Scores remain provisional until review.
Submission guide
Put netRevenue, grossProfit, netUnits, returnRate, coverDays, reorder, and recommendationEvidence in metrics.json (a UTF-8 JSON object). Write the action plan and evidence in optional analysis.md or the explanation field. Follow metrics.schema.json.
Each criterion is classified as satisfied (at least 80%), tolerating (at least 50%), or unmet, then weighted into a 0–1 rubric index. This is not a measured user satisfaction rate.
Current policy: AI assesses quality points for new submissions. Older challenge wording about human review or provisional scores describes an earlier policy. Each result records the method actually used.