{
"version": 1,
"import": {
"root": "/mnt/c/Users/barlo/projects/drydock/uat/CsvStat/runs/20261023.222823/sources",
"format": "markdown"
},
"sources": {
"INSTRUCTIONS.md": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "a4a0357965923ada8afb3528e85c937802a26eb02db8685900dbe0e9566c7a57",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": [
{
"name": "build-go-cli",
"text": "Implement in Go 1.22 or newer using only the standard library. The application root is a Go module, and its executable is the main package at `./cmd/csvstat`. Tests run under `go test`.",
"stories": [
"cli-foundation"
]
},
{
"name": "run-conformance-harness",
"text": "The harness runs `go build -o <temporary path> ./cmd/csvstat` and then runs 22 checks.",
"stories": [
"full-verification"
]
},
{
"name": "read-validate-csv",
"text": "The file is **rejected** when it is empty, when a header name is empty or repeated, or when any record has a different number of fields from the header.",
"stories": [
"cli-input"
]
},
{
"name": "resolve-columns-null-values",
"text": "Every header name and every value is trimmed of leading and trailing spaces before any other rule applies.",
"stories": [
"cli-columns"
]
},
{
"name": "infer-column-types",
"text": "A column's type is the first of these that every non-null value satisfies:",
"stories": [
"profile-types"
]
},
{
"name": "compute-profile-statistics",
"text": "Header `column,type,rows,nulls,distinct,min,max,sum,mean,median`, then one row per column in file order (or the one named by `--column`).",
"stories": [
"profile-statistics"
]
},
{
"name": "render-profile-csv",
"text": "CSV on standard output with `\\n` line endings.",
"stories": [
"profile-output"
]
},
{
"name": "list-frequent-values",
"text": "Header `value,count`, then one row per distinct non-null value of the column, ordered by count descending, then value ascending by byte value, at most `--top` rows.",
"stories": [
"frequency-values"
]
},
{
"name": "limit-frequency-rows",
"text": "`--top <n>` | With `--freq`, list at most `<n>` values. A positive integer; default `5`.",
"stories": [
"frequency-limits"
]
},
{
"name": "map-command-failures",
"text": "A failing command writes nothing to standard output and one diagnostic line to standard error naming the file and, for a rejected record, its line number.",
"stories": [
"cli-errors"
]
},
{
"name": "provide-test-gate",
"text": "The completed application provides a POSIX-compatible `bin/test.sh` that runs `go vet ./...` and `go test ./...` from the application root and exits zero only when both pass.",
"stories": [
"test-gate"
]
}
]
}
]
},
"employees.csv": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "057f30060e45647dbb5773a0f2cef7fa541bbd462f5a65746083d7a169222ee0",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": []
}
]
},
"header_only.csv": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "428b2fe8db619499f227e2ce2a56cebcf5149c161e680c5a65d792d74211f449",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": [
{
"name": "csv-header",
"text": "sku,price,in_stock",
"stories": [
"cli-input",
"cli-columns"
]
}
]
}
]
},
"orders.csv": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "93026827c46e9b0eab4a7e4e4eefc7518265dc56712f044061006b85adeb6ae8",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": [
{
"name": "read-normalize-validate-csv",
"text": "order_id,order_date,customer,qty,unit_price,coupon,ref,shipped\n5000,2025-02-01,Acme Corp ,1,116.70,,A7,2025-03-18\n5017,2025-02-05,Umbrella,9,62.85,WELCOME,-3,2025-02-30",
"stories": [
"cli-input",
"cli-errors"
]
},
{
"name": "resolve-columns-and-null-values",
"text": "order_id,order_date,customer,qty,unit_price,coupon,ref,shipped",
"stories": [
"cli-columns"
]
},
{
"name": "infer-column-types",
"text": "order_id,order_date,customer,qty,unit_price,coupon,ref,shipped",
"stories": [
"profile-types"
]
},
{
"name": "aggregate-frequent-values",
"text": "Acme Corp\nGlobex\nInitech\nUmbrella\nHooli",
"stories": [
"frequency-values"
]
},
{
"name": "compute-profile-statistics",
"text": "5000,2025-02-01,Acme Corp ,1,116.70,,A7,2025-03-18",
"stories": [
"profile-statistics"
]
}
]
}
]
},
"ragged.csv": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "fd838208607b5e74d69d29662bd4961928d69fdd80a5e2752ece90f78b333465",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": [
{
"name": "reject-ragged-row",
"text": "A3,1.25,true,extra",
"stories": [
"cli-input",
"cli-errors"
]
}
]
}
]
},
"run.sh": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "8f598aabc017377364ec4a99f5c34bb81e06d68c9ef7b191513c6e9d3999bcbb",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": [
{
"name": "build-csvstat-command",
"text": "Builds ./cmd/csvstat with `go build` and compares every command's exit code and standard output",
"stories": [
"cli-foundation"
]
},
{
"name": "profile-every-column",
"text": "# \u2500\u2500 A. Every column of each data file \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"stories": [
"cli-input",
"cli-columns",
"profile-types",
"profile-statistics",
"profile-output"
]
},
{
"name": "profile-selected-column",
"text": "# \u2500\u2500 B. One column \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"stories": [
"cli-columns",
"profile-types",
"profile-statistics",
"profile-output"
]
},
{
"name": "calculate-frequencies",
"text": "# \u2500\u2500 C. Frequencies \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"stories": [
"cli-input",
"cli-columns",
"frequency-values",
"frequency-limits"
]
},
{
"name": "reject-invalid-input",
"text": "# \u2500\u2500 E. Rejected input and operational failures \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"stories": [
"cli-input",
"cli-errors"
]
},
{
"name": "reject-usage-errors",
"text": "# \u2500\u2500 U. Usage errors \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"stories": [
"frequency-limits",
"cli-errors"
]
}
]
}
]
},
"sensors.csv": {
"state": "current",
"versions": [
{
"commit": "d94d00c",
"date": "2026-10-23",
"hash": "159d38499f5e2df7e2bfe5245c20e7f76c9d5f091aa497567b47bf707bde3c20",
"release": "",
"state": "consumed",
"via": "plan",
"ticket": null,
"requirements": []
}
]
}
}
}
Run artifact