Skip to content

fix(B-0272): address ROM tool review nits#2166

Merged
AceHack merged 1 commit into
mainfrom
codex/b0272-rom-review-nits-followup
May 9, 2026
Merged

fix(B-0272): address ROM tool review nits#2166
AceHack merged 1 commit into
mainfrom
codex/b0272-rom-review-nits-followup

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 9, 2026

Summary

  • document the actual ROM canonicalizer JSON output fields
  • hash ROM files with bounded memory and ignore extensionless files by default
  • validate option values, use dirname for rename targets, fix the DAT fixture, and bump B-0272 last_updated

Checks

  • bun test tools/roms/canonicalize.test.ts
  • git diff --check origin/main..HEAD

Follow-up to #2165 after the auto-merge raced the review-nit commit.

Tighten the ROM canonicalizer review surface by documenting the actual JSON fields, hashing files with bounded memory, ignoring extensionless files by default, using dirname for rename targets, validating option values, bumping the backlog timestamp, and keeping the DAT fixture realistic.

Focused checks: bun test tools/roms/canonicalize.test.ts; git diff --check. Local typecheck remains blocked because tsc is not installed in this worktree.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 9, 2026 02:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f2ebe24e29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/roms/canonicalize.ts
@AceHack AceHack merged commit 47dea4d into main May 9, 2026
30 checks passed
@AceHack AceHack deleted the codex/b0272-rom-review-nits-followup branch May 9, 2026 02:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refines the ROM canonicalization tool introduced for B-0272 by tightening CLI behavior, making hashing more memory-bounded, and aligning docs/tests with the actual JSON output and filtering semantics.

Changes:

  • Document the actual JSON output shape and adjust rename target directory handling (dirname).
  • Switch SHA1 hashing to buffered reads (bounded memory) and ignore extensionless files by default in directory scans.
  • Improve CLI option validation, fix the test DAT fixture, add a CLI error-path test, and bump B-0272 last_updated.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tools/roms/canonicalize.ts Updates hashing to streaming reads, tightens scan filtering, improves option parsing, and fixes rename target dir handling/documented output fields.
tools/roms/canonicalize.test.ts Fixes DAT fixture and adds coverage for extensionless-file ignoring and clearer CLI error messaging.
docs/backlog/P1/B-0272-atari-rom-canonical-naming-tosec-lookup-2026-05-08.md Updates last_updated for the backlog row.

Comment thread tools/roms/canonicalize.ts
AceHack added a commit that referenced this pull request May 16, 2026
…th pure-drift this session) (#3820)

10th pure-drift close of the resume-session sequence. All 3
acceptance items verifiably shipped via PRs #2166 + #2168 + #2172:

- Script at tools/roms/canonicalize.ts (8953 bytes)
- TOSEC + No-Intro matching via Logiqx XML
- Rename + unmatched-hash reporting

Surfaced by peer Otto's audit-backlog-status-drift.ts (PR #3758);
per-acceptance verification confirmed pure-drift.

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants