Run artifact

evidence/prompt_outputs/20261026.153728.666Z_drydockstats_build_claude.output.txt

The build block covers two stories. `logread` already skips non-objects and invalid JSON, but it has no required-field check, no duplicate detection, and no structured record of skip line numbers. `cli` has no date validation. I'll start with the reader.Now the reader tests. Each one reads back the returned `Result` (records, counts, skip line numbers) rather than matching warning text.The reader tests pass. The notice says the test file changed on disk; that's my own append plus `gofmt -w`. I'll confirm the content before moving on.The reader side is in place. Next, date validation in `ParseArgs`.Now the five date tests named in the spec, appended to the existing CLI test file.Both stories are implemented, and the new tests pass: the full `bin/test.sh` (vet plus all packages) exits 0.

I didn't run `sources/run.sh`. It's the terminal story, and the spec says to run it once, last. It would also fail here because `cmd/ddkstat/main.go` is still an empty stub (later blocks wire that up).

**What changed**

- **log-skip** (`internal/logread/logread.go`): a line is now skipped when a required field is absent, empty, or not a string. Duplicate `execution_id`s are skipped across the whole file, keeping the first occurrence. Only kept lines register their ID, so a malformed line never blocks a later valid one. Each skip still gets one warning line on the warning writer.
- **cli-dates** (`internal/cli/args.go`): `--since` and `--until` values must round-trip through `time.Parse("2006-01-02")`. Impossible dates, wrong shapes, and empty values are `*UsageError`s. A missing value was already a usage error.
- **Tests**: I added the seven required logread tests and the five required cli date tests, named as the spec names them. Each one reads back the returned `Result` or `Options` rather than matching warning text.

**Choices you may want to redirect**

- I added `Result.Skips []Skip` (line number and reason) alongside `Result.Skipped`. The line-number test checks that structured field, not stderr text, so the oracle is a return value. ARCHITECTURE.md doesn't mention this field, so it's an additive change to the reader's public shape.
- A line whose non-required field has the wrong JSON type (for example `returncode` as a string) is still skipped as a whole line. That was already the behavior, and the spec doesn't ask to change it.

<blueprint-decisions>
[{"spec":"FEATURE-LogSkip.md","severity":"Low","subject":"Structured skip record","decision":"Warnings were required on the warning writer only. I also added Result.Skips, a slice of {Line, Reason}, so the warning line-number test can read the line back as a value instead of matching text. Skipped is still the count. Is this acceptable, or should it move out of Result on replan?"}]
</blueprint-decisions>

RESULT: SUCCESS

FILES CHANGED:
- internal/logread/logread.go
- internal/logread/logread_test.go
- internal/cli/args.go
- internal/cli/args_test.go

SUMMARY:
Implemented the log-skip and cli-dates stories. The reader skips non-objects, incomplete or empty required fields, and duplicate execution_ids across the whole file, with one warning per skip and no effect on the exit code. A malformed line does not register its ID. ParseArgs rejects --since/--until values that are not real YYYY-MM-DD calendar dates. Checks run: `go vet ./...` and `go test ./...` via `sh bin/test.sh` both pass (exit 0). All twelve required test names (seven log-skip, five cli-dates) run and pass. `sources/run.sh` was not run; it is the terminal story and main.go is still a stub.

BLOCKERS:
- None.