Skip to content

fix(lint): in a merge the commit hook judges only the lines the merge adds - #1506

Merged
V3RON merged 3 commits into
mainfrom
bug/1456
Nov 10, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/1456

Conversation

@V3RON

@V3RON V3RON commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1456

Status

Implement: done (12/12 green) Audit: done (probed 1/1) Review: round 1 + fix-check, pass (R1 fixed) Hardware: n/a Gate: not run
Next: gate

  • In a merge, the commit hook's comment and test lints judge only the lines the merge adds, not the lines the merged branch brings (changedFiles in .agents/scripts/comments.mjs; test in src/test-lint.test.ts). — the merge test in src/test-lint.test.ts fails when the intersection or the merge check is removed (two review probes)

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 2 blocking, 1 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 3.1M.
Runs: 10. Cost USD: 1.8483. Agent seconds: 756.

Rejected:

  • code: the headers of test-lint.mjs:2 and comment-lint.mjs:2 say "lines adds since ", narrower in a merge — [nonblocking] true in general; the merge exception is documented in comments.mjs

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@V3RON

V3RON commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 7841f8a
Round fix-check: 35f72ad

Runs: 10. Cost USD: 1.8483. Agent seconds: 756.
Tokens input 165, output 39752, cache read 2377216, cache write 336633.
- build implementer: claude-sonnet-5-5 68 s $0.1682
- audit implementer: claude-sonnet-5-5 29 s $0.1034
- review 1 reviewer: claude-sonnet-5-5 256 s $0.288
- review 1 spec: claude-sonnet-5-5 14 s $0.0911
- review 1 code both: claude-opus-5-5 157 s $0.5303
- review 1 claims: claude-sonnet-5-5 9 s $0.071
- fix 1 implementer: claude-sonnet-5-5 48 s $0.1374
- review fix-check reviewer: claude-sonnet-5-5 110 s $0.163
- review fix-check code tests: claude-opus-5-5 50 s $0.2119
- review fix-check claims: claude-sonnet-5-5 15 s $0.084
Finding outcomes: {"fixed":1,"nonblocking":1}. Classes: {"architecture 13":1,"test cannot fail for its title":1}.
{"findings":[{"id":"R1","role":"code","class":"test cannot fail for its title","outcome":"fixed","path":"src/test-lint.test.ts","round":"1","fix":"35f72add8777360952fe484fdc3b15323be2e571"},{"id":"R2","role":"code","class":"architecture 13","outcome":"nonblocking","path":".agents/scripts/test-lint.mjs","round":"1"}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 10, 2026 21:07
@V3RON
V3RON merged commit fc8a897 into main Nov 10, 2026
54 checks passed
@V3RON
V3RON deleted the bug/1456 branch November 10, 2026 21:07
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.

The pre-commit test lint refuses a merge of origin/main, linting main's own lines as added

1 participant