Skip to content

refactor(#1471): one run-log module — parseLogFile, listLogFiles, resolveLogDir, formatDuration defined once - #1547

Merged
admarble merged 4 commits into
mainfrom
feature/1471-refactor-logs-one-run-log-module-parselogfile-list
Oct 19, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1471-refactor-logs-one-run-log-module-parselogfile-list

Conversation

@admarble

@admarble admarble commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Branch: feature/1471-refactor-logs-one-run-log-module-parselogfile-list, two commits.

What changed

AC results (I ran each Evidence command)

AC Result
AC-1 1 1 1 1 then 0
AC-2 run-logs.test.ts 7 passed, 0 failed
AC-3 npm run build clean; the listed vitest files 0 failed (see below)
AC-4 accretion dups prints none, exit 0

Checks

  • npm run build and npm run lint pass with 0 warnings.
  • One run covered run-logs, stats, stats-source, stats-failure-categories, mcp/tools/run, merge-check/watch, phase-executor, commands/logs and everything under src/mcp: 12 files, 458 of 459 passed.
  • The one failure was my own new global-fallback test. HOME and cwd were the same tmpdir, so the project and global dirs coincided. I fixed it and re-ran run-logs.test.ts with scripts/qa/tautology-detector-cli.test.ts: 13 passed. I did not re-run the full 12-file set after that test-only fix.
  • I didn't run the full suite, per the affected-tests rule.
  • commands/logs.ts has no existing test file.

Pre-PR confidence check

  • Weakest part: the fs mock in mcp/tools/run.test.ts. The shared module imports * as fs from "fs", and that test file passed after the move.
  • Coverage gaps: phase-executor.ts and commands/merge.ts only had import changes and are covered by their existing tests.

Mutation record: none. AC-1 and AC-4 are command-evidence ACs, not gate tests.

Next: /qa.

Fixes #1471

QA verdict: NEEDS_VERIFICATION — acceptance criteria met, pending external verification (e.g. CI or a manual test). See the QA review comment.

Runner verification (2026-10-19)

After main (with #1548) was merged in, the runner re-ran AC-1..AC-4 at 90f06c6: 1 1 1 1 / 0, accretion none, build exit 0, 388 passed across run-logs.test.ts and the six listed files. npm run lint:health: no metric rose. The CHANGELOG union needed one blank line restored.

First pass, at d07385d:

The runner re-ran AC-1..AC-4 verbatim in the worktree and every one holds:

  • AC-1: 1 1 1 1 / 0
  • AC-2: 7 passed
  • AC-3: build exit 0, 381 passed across the six listed files
  • AC-4: none, exit 0

CI test passed on d07385d, which settles QA's only gap. Diff read: every removed copy matched the shared module, and the #1515 and #1484 behaviour in run.ts and merge-check is unchanged.


🤖 Generated with Claude Code

…olveLogDir, formatDuration defined once

Entire-Checkpoint: 423a09d924b1
@admarble
admarble merged commit 1423db8 into main Oct 19, 2026
9 checks passed
@admarble
admarble deleted the feature/1471-refactor-logs-one-run-log-module-parselogfile-list branch October 19, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(logs): one run-log module — parseLogFile, listLogFiles, resolveLogDir, formatDuration defined once

1 participant