Run artifact

workspace/targets/CsvStat/MANIFEST.md

MANIFEST: CsvStat

updated: 2026-10-23T22:30:54+00:00 state: approved blocks: 3

applied_specs: | ARCHITECTURE.md sha256=0523e9a1384a42626d0062f018639c66c4784890cecd223013d13f942f05e05a commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-1 applied_at=2026-10-23T22:33:39+00:00 build_sha256=1b65cb400b71ada1e748516a46945e602c8a1336f6ae3e03c6964025175c90a5 ARCHITECTURE_compact.md sha256=f93b01512866f3e17431cfcf3628d39220503c58898a416f43ba267f738fa15f commit=f720377c39bbb701a404bde47a9f33d217ed4677 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=f93b01512866f3e17431cfcf3628d39220503c58898a416f43ba267f738fa15f FEATURE-CLI-COLUMNS.md sha256=cb5435106eed9e90fff2a1cdb08479fdb3da9934e4db6595525929c9b9783f57 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=53125beaefd071f2fda514ebd84f0265e6f9c1994eaac41a1c911761a9b52107 FEATURE-CLI-ERRORS.md sha256=15a7016f247294d043339df797752644f3b270ad8a46fc749e66e7762f3c417a commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=14427c2f35e575705c1b448f915873409bde69926a54852eec57f55bdebde4a3 FEATURE-CLI-FOUNDATION.md sha256=c6c5960f0ced3cb98814be8f1d8b0c0aeba1a2aea602d7402910de97be2476ff commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-2 applied_at=2026-10-23T22:34:33+00:00 build_sha256=d35604ca20527bba5936c7c7f3006479a0409222ba3a0bc73062abbb3ca3e871 FEATURE-CLI-INPUT.md sha256=aeba893670805a6c76b396c1463dd19390acf414c3c461c4c7bb316f61fe5543 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=a46a4e54dc49ee0f6c4a9657f90d16eab19a7d295c0109ca8bed2f6441e001db FEATURE-FREQUENCY-LIMITS.md sha256=fbf8ed7d1fe961fe944d22667f86cb583e8ce4800aa0ff8bce58f8973c84b8ef commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=d5f81f8666f15bde63f36f059f47a1bc10d65e1ff6d292e17932209f26972472 FEATURE-FREQUENCY-VALUES.md sha256=5977f89bb31f270cc92147a276ea54e519c1f44765b3f3d9ef4759ab2732277c commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=5ede7f948d43a74a4c8a3e1c3bdb34785b98f05760a4283c6de18ec208cdbf82 FEATURE-FULL-VERIFICATION.md sha256=2a0cf9c284359ac476de725c832128b369b9fec8f841d41dca38c7d9c01895bb commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=48071e5cb1c313c17faaca679ffd41487f59fd1de1f055c83386b213687c5351 FEATURE-PROFILE-OUTPUT.md sha256=898a084a9219986fe0bb4ba1dade11d7d34d0c6bbcece528469a725429c84ec2 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=19e5a2ff955e57d7bdddbdc2a3a0cfc24ec96db93ad5065f20ec71a81741fce9 FEATURE-PROFILE-STATISTICS.md sha256=50d3864261bdb6fce634882ee684b9a83d937edd5b77df647f7db384004ac51f commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=1727bea4f844cb18eb2f68554c3d0a35bc6a4584f95c51b86307f57afe971a99 FEATURE-PROFILE-TYPES.md sha256=ad8a3173cbc1bd930655c0f7b1d0c0a1f341c667c6d84ca34b287804a5847807 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=02f88262f7598fe8a806144c5dc6862ef271d0cca7247b6ed0232d781ad213da FEATURE-TEST-GATE.md sha256=91cf287a8505f382c15d86a4cda5008d9cafa8465d7e8a4a898eeb2849d80ba4 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=1b7891a5c72bcdb09c33e104624632661afb58fe51d3ec54205a56c957b95608 employees.csv sha256=057f30060e45647dbb5773a0f2cef7fa541bbd462f5a65746083d7a169222ee0 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=057f30060e45647dbb5773a0f2cef7fa541bbd462f5a65746083d7a169222ee0 header_only.csv sha256=428b2fe8db619499f227e2ce2a56cebcf5149c161e680c5a65d792d74211f449 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=428b2fe8db619499f227e2ce2a56cebcf5149c161e680c5a65d792d74211f449 orders.csv sha256=93026827c46e9b0eab4a7e4e4eefc7518265dc56712f044061006b85adeb6ae8 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=93026827c46e9b0eab4a7e4e4eefc7518265dc56712f044061006b85adeb6ae8 ragged.csv sha256=fd838208607b5e74d69d29662bd4961928d69fdd80a5e2752ece90f78b333465 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=fd838208607b5e74d69d29662bd4961928d69fdd80a5e2752ece90f78b333465 run.sh sha256=8f598aabc017377364ec4a99f5c34bb81e06d68c9ef7b191513c6e9d3999bcbb commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=8f598aabc017377364ec4a99f5c34bb81e06d68c9ef7b191513c6e9d3999bcbb sensors.csv sha256=159d38499f5e2df7e2bfe5245c20e7f76c9d5f091aa497567b47bf707bde3c20 commit=003b4c00540a61257c6e7bb1e461f07e396c7944 applied_by=block-3 applied_at=2026-10-23T22:37:52+00:00 build_sha256=159d38499f5e2df7e2bfe5245c20e7f76c9d5f091aa497567b47bf707bde3c20

story 1: Define the CsvStat command architecture and module boundaries.

id: architecture finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-1.md summary: Define the CsvStat command architecture and module boundaries. type: foundational kind: capability phase: 1 block: 1 implements: ARCHITECTURE.md instructions: | Establish the Go module layout, command boundary, internal package responsibilities, standard-library-only constraint, and error/output contracts for CsvStat. Keep application logic separate from process exit handling and preserve all supplied sources as read-only test assets. stack: go.md stack_mode: builder size: 6232 provides: csvstat architecture acceptance: yes state: closed/implemented

story 2: Build the csvstat command entry point and module.

id: cli-foundation finding: ADVISORY: implemented, not verified — every binding criterion this story passed was already green before the story built, so none measured the work. Repair the criteria in the Blueprint to exercise this story and rebuild to obtain a verdict. evidence: evidence/block-2.md summary: Build the csvstat command entry point and module. type: foundational kind: capability phase: 1 block: 2 implements: FEATURE-CLI-FOUNDATION.md covers: CLI-001 accepts: st-003 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3114 provides: ./cmd/csvstat, csvstat help consumes: csvstat architecture instructions: | Create the Go module and ./cmd/csvstat executable using only the standard library. Implement the documented invocation surface and useful help text for profile and frequency forms. Keep process exit handling in main and expose testable command behavior internally. acceptance: yes depends: architecture state: closed/implemented

story 3: Read, normalize, and structurally validate CSV input.

id: cli-input finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Read, normalize, and structurally validate CSV input. type: service kind: capability phase: 1 block: 3 implements: FEATURE-CLI-INPUT.md covers: CLI-002 accepts: st-007 context: employees.csv, sensors.csv, orders.csv, header_only.csv, ragged.csv, ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 4418 provides: RFC 4180 CSV parsing, trimmed records, structural validation consumes: ./cmd/csvstat instructions: | Implement CSV loading with encoding/csv. Trim headers and values before downstream processing, preserve quoted fields, reject empty files, invalid headers, and ragged records, and retain rejected-record line information for diagnostics. Do not read or embed answers from the supplied grader. acceptance: yes depends: cli-foundation state: closed/implemented

story 4: Resolve named columns and classify null values.

id: cli-columns finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Resolve named columns and classify null values. type: service kind: capability phase: 1 block: 3 implements: FEATURE-CLI-COLUMNS.md covers: CLI-003 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3218 provides: column lookup, null normalization consumes: RFC 4180 CSV parsing, trimmed records, structural validation instructions: | Implement recognition of empty, NA, N/A, and NULL values case-insensitively after trimming. Resolve --column and --freq names against the validated header and reject absent names without producing stdout. Preserve the command's usage-versus-rejected-input exit-code distinction. acceptance: yes depends: cli-input state: closed/implemented

story 5: Infer each column type using the specified precedence.

id: profile-types finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Infer each column type using the specified precedence. type: service kind: capability phase: 1 block: 3 implements: FEATURE-PROFILE-TYPES.md covers: PROFILE-001 accepts: st-004 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3239 provides: integer, number, date, boolean, text, and empty inference consumes: column lookup, null normalization instructions: | Infer each column from non-null values in the required order: integer, number, date, boolean, then text. Validate integer and number lexical forms, validate real calendar dates, handle case-insensitive booleans, and classify all-null columns as empty. acceptance: yes depends: cli-columns state: closed/implemented

story 6: Aggregate and order frequent non-null column values.

id: frequency-values finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Aggregate and order frequent non-null column values. type: service kind: capability phase: 1 block: 3 implements: FEATURE-FREQUENCY-VALUES.md covers: FREQ-001 accepts: st-006 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3375 provides: frequency aggregation and deterministic ordering consumes: column lookup, null normalization instructions: | Count distinct non-null values for the requested column. Sort by descending count and then bytewise ascending value, excluding all null spellings and preserving exact normalized values. acceptance: yes depends: cli-columns state: closed/implemented

story 7: Validate and apply frequency row limits.

id: frequency-limits finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Validate and apply frequency row limits. type: service kind: capability phase: 1 block: 3 implements: FEATURE-FREQUENCY-LIMITS.md covers: FREQ-002 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3415 provides: --top validation and frequency CSV output consumes: frequency aggregation and deterministic ordering instructions: | Implement --top with default five and positive-integer validation. Reject --top without --freq, limit output after ordering, and render the value,count CSV header and rows. acceptance: yes depends: frequency-values state: closed/implemented

story 8: Compute exact profile statistics and decimal formatting.

id: profile-statistics finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Compute exact profile statistics and decimal formatting. type: service kind: capability phase: 1 block: 3 implements: FEATURE-PROFILE-STATISTICS.md covers: PROFILE-002 accepts: st-005 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3713 provides: rows, nulls, distinct, extrema, sum, mean, median consumes: inferred column types, normalized records instructions: | Compute every required profile statistic from the normalized records. Use exact arithmetic, including exact decimal sums, means, and medians, and round once half away from zero to exactly two decimal places. Apply type-specific extrema and leave nonnumeric statistic fields empty. acceptance: yes depends: profile-types state: closed/implemented

story 9: Render profile results as CSV.

id: profile-output finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Render profile results as CSV. type: service kind: capability phase: 1 block: 3 implements: FEATURE-PROFILE-OUTPUT.md covers: PROFILE-003 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3380 provides: profile CSV output consumes: rows, nulls, distinct, extrema, sum, mean, median instructions: | Emit the exact profile header and rows in source-column order, or only the requested named column. Use encoding/csv so commas, quotes, and newlines are RFC-compliant, and emit empty fields as empty CSV fields. acceptance: yes depends: profile-statistics state: closed/implemented

story 10: Map operational, usage, and rejected-input failures.

id: cli-errors finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Map operational, usage, and rejected-input failures. type: service kind: capability phase: 1 block: 3 implements: FEATURE-CLI-ERRORS.md covers: CLI-004 accepts: st-007, st-008 context: ARCHITECTURE_compact.md stack: go.md stack_mode: consumer size: 3456 provides: exit-code and diagnostic contract consumes: CSV validation, column lookup, profile output, frequency output instructions: | Centralize command validation and error mapping. Return 1 for file open/read failures, 2 for malformed arguments, and 3 for rejected input. Write no stdout on failure and write one diagnostic line to stderr naming the file and rejected record line when applicable. acceptance: yes depends: cli-columns, profile-output, frequency-limits state: closed/implemented

story 11: Provide the Go vet and test project gate.

id: test-gate finding: ADVISORY: implemented, not verified — every binding criterion this story passed was already green before the story built, so none measured the work. Repair the criteria in the Blueprint to exercise this story and rebuild to obtain a verdict. evidence: evidence/block-3.md summary: Provide the Go vet and test project gate. type: service kind: test harness phase: 1 block: 3 implements: FEATURE-TEST-GATE.md covers: TEST-001 accepts: st-002 context: ARCHITECTURE_compact.md stack: common.md, go.md stack_mode: builder size: 4878 provides: bin/test.sh consumes: Go module and command packages instructions: | Add a POSIX-compatible bin/test.sh that runs go vet ./... and go test ./... from the application root. Ensure it exits zero only when both commands succeed and add focused Go tests for the implemented behavior. acceptance: yes depends: cli-foundation state: closed/implemented

story 12: Run the complete supplied CsvStat conformance suite.

id: full-verification finding: ADVISORY: implemented, not verified — no governed acceptance command covers this story. Declare one in ACCEPTANCE.json to gate it. evidence: evidence/block-3.md summary: Run the complete supplied CsvStat conformance suite. type: service kind: test harness phase: 1 block: 3 implements: FEATURE-FULL-VERIFICATION.md covers: VERIFY-001 accepts: st-001 context: run.sh, employees.csv, sensors.csv, orders.csv, header_only.csv, ragged.csv, ARCHITECTURE_compact.md stack: common.md, go.md stack_mode: consumer size: 6503 provides: full CsvStat conformance verification consumes: bin/test.sh, ./cmd/csvstat, complete CsvStat implementation instructions: | Assemble the completed CLI and execute the supplied sources/run.sh without filtering, modification, or reinterpretation. Treat its exit status as the release verification result and preserve the supplied sources byte-for-byte. acceptance: yes depends: architecture, cli-foundation, cli-input, cli-columns, profile-types, profile-statistics, profile-output, frequency-values, frequency-limits, cli-errors, test-gate state: closed/implemented