Run artifact

workspace/targets/DupFind/ANALYSIS.md

Blueprint Analysis: DupFind

Commander Expectations

Crew

CrewCharge
CommanderDefines intent and decides what done means.
Team LeadConfirms epic completeness and stakeholder expectations.
Planning CrewAuthors atomic specifications and the ordered Manifest.
Shipyard CrewBuilds the tickets without synchronous Commander access.

Story List

Feature: Command and Directory Scanning

IDStoryHigh-level AC
CLI-001Parse command options and validate argumentsAccept the documented options and one directory; reject malformed arguments with the documented exit code and no standard output.
CLI-002Scan files and identify duplicate groupsRecursively examine regular files, skip unreadable files with a warning, ignore zero-byte files, and group same-size files by SHA-256 digest.
CLI-003Order duplicate groups and pathsOrder groups by reclaimable bytes descending then digest ascending, and paths by byte value ascending; emit relative paths with / separators.

Feature: Duplicate Results

IDStoryHigh-level AC
OUT-001Write duplicate listing as CSVEmit the specified CSV header and one row per duplicate file, quoting fields as RFC 4180 requires.
OUT-002Write duplicate summaryWith --summary, emit the specified header and totals for groups, duplicate files, and reclaimable bytes.

Feature: Build and Verification

IDStoryHigh-level AC
DEL-001Build the command-line executableFrom the application root, go build ./cmd/dupfind produces the executable using only the standard library.
DEL-002Run the Go quality suiteProvide POSIX-compatible bin/test.sh that exits zero only when go vet ./... and go test ./... pass.
DEL-003Pass the supplied conformance graderRun the complete supplied grader; every supplied case passes. This terminal verification story depends on all implementation stories.

Story Guidance

Named stories planning must produce. Authoritative record: STORY_GUIDANCE.json.

None.

Surfaced Acceptance Criteria

IDStory IDCriterion
AC-001CLI-001Provide help text describing the command and its options.

Source Inventory

PathContent kindDispositionReason
sources/INSTRUCTIONS.mdmarkdownanalyzedreadable UTF-8
sources/run.shcodeanalyzedreadable UTF-8

Relationship Model

Source or groupRelationship typeRelated source or groupEvidenceDelivery implication
sources/INSTRUCTIONS.mdinstruction-to-testsources/run.shThe instructions define the command behavior; the harness builds ./cmd/dupfind and checks command output and exit codes.Implement the specified behavior and stage the harness for terminal verification.
sources/run.shtest-kit-to-implementationcmd/dupfindThe harness invokes the built executable against a fixed directory tree.Build the executable before running the grader.
sources/INSTRUCTIONS.mddependencybin/test.shThe instructions require go vet ./... and go test ./... through the project script.Implement the script and its test suite as part of delivery.
cmd/dupfinddependencyDEL-003The grader builds and exercises the executable.Terminal verification follows all implementation stories.

Source Roles

PathRolePlan dispositionBuild disposition
sources/INSTRUCTIONS.mdauthor intentprompt-onlynone
sources/run.shconformance harnesscontextstage

Planning Instructions

Delivery Shape

A standard-library Go command-line application takes options and a directory path, recursively scans regular files, groups exact duplicates, and writes either a CSV listing or summary to standard output. Diagnostics go to standard error; exit codes distinguish usage errors from operational failures. The required execution flow is build, parse and validate arguments, scan and group files, format results, then verify the complete supplied grader.

Story Realization Map

Story IDDurable Blueprint scopeEvidenceRelated filesRequires
CLI-001Option parsing, validation, usagesources/INSTRUCTIONS.md command and exit-code sectionscmd/dupfindcapability, focused tests
CLI-002Recursive traversal, regular-file handling, size and digest grouping, unreadable-file handlingsources/INSTRUCTIONS.md rules 1–3 and 6cmd/dupfindcapability, focused tests
CLI-003Group and path ordering; relative path formattingsources/INSTRUCTIONS.md rules 4–5cmd/dupfindcapability, focused tests
OUT-001Listing CSV outputsources/INSTRUCTIONS.md Output: Listingcmd/dupfindcapability, focused tests
OUT-002Summary CSV outputsources/INSTRUCTIONS.md Output: Summarycmd/dupfindcapability, focused tests
DEL-001Go module and executable buildsources/INSTRUCTIONS.md Stack and Run Harnessgo.mod, cmd/dupfindbuild gate
DEL-002Vet and automated test entry pointsources/INSTRUCTIONS.md Testsbin/test.sh, Go teststest harness
DEL-003Full supplied grader runsources/run.shstaged sources/run.sh, built cmd/dupfindacceptance contract; depends on CLI-001–CLI-003, OUT-001–OUT-002, DEL-001–DEL-002

Test and Acceptance Strategy

Use focused tests with temporary directory trees for argument validation, traversal rules, grouping, ordering, CSV formatting, summaries, and exit codes. bin/test.sh runs vet and the automated tests. The terminal verification story runs the complete supplied grader and declares Suite: full; its acceptance is bounded to the harness result. Sea Trial st-001 records the same project-level full-grader proof.

Sequencing and Dependencies

Build the Go module and executable before exercising the command. Implement argument handling before scanning; scanning and grouping precede ordering and output formatting. The listing and summary depend on the same duplicate results. The automated test script runs vet and tests. The terminal verification story follows every implementation story and runs the staged grader from the application root.

Source Conflicts and Gaps

No source conflicts or blockers. The CLI baseline’s help-text gap is recorded as surfaced acceptance criterion AC-001.

Analysis Notes

generated: 2026-10-24 blueprint: /mnt/c/Users/barlo/projects/drydock/uat/DupFind/runs/20261024.140514/workspace/targets/DupFind/blueprint

Quality: Ready blockers: 0 questions: 0 features: 3 stories: 8 stack: Go 1.22 or newer; standard library only display_name: not proposed short_description: not proposed

None.