The request
Trustworthy sales analysis project with witnessed report
Read the full request
Produce a small, reproducible sales analysis that a finance reviewer can trust. Deliver a Node project with a bundled sample CSV of orders (at least 80 rows: order id, date, region, product, quantity, unit price) and a script that computes: revenue by region, the top 5 products by revenue, and month-over-month revenue change. Deliver a report.md that explains the findings in plain English. Every table and every number in report.md must be generated from the scripts by the preinstalled Wit utility (witness markers in the Markdown), so that running Wit's check on report.md passes and changing the CSV makes the check report stale output. Include a README explaining how to regenerate and re-check the report. No network access is needed.
The journey
- Read the requestTurned it into a list of things it would have to prove before calling the work done.
- Did the workPlanned the pieces, built them and checked the result as it went.
- Delivered12 files handed over.
The result
- data/orders.csv3.6 KB
- dist/sales-analysis.js6.8 KB
- eslint.config.js901 B
- package-lock.json96.1 KB
- package.json732 B
- README.md1.0 KB
- report.md1.2 KB
- src/sales-analysis.ts6.8 KB
- tests/sales-analysis.test.ts2.6 KB
- tsconfig.build.json230 B
- tsconfig.json531 B
- vitest.config.ts143 B