Repository navigation
fix(hooks): take the model-rule cached count from the dry-run plan - #167
Conversation
jev-lint review --json has no cachedCount key, so the Stop footer always showed 0 cached. The dry-run plan carries the count; Plan now holds it and Judgement reads it from there. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary: no blocking findings. The fix is correct.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9d4f1d70ed
ℹ️ 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".
The whole-diff dry run gives one cached total, not one per file. Plan the kept files again so the footer shows their exact cached count. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryNo blocking findings (0 × P0, 0 × P1). The fix looks correct.
One optional point (P3, inline): when the cap applies, a failure in the second dry run now cancels the whole review, even though it only feeds a number in the message. Consider falling back to 🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Rename report and plan_of_files to write_report and write_plan_of_files. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) The fix itself is correct. The cached count now comes from the dry-run plan's Findings:
Blocking findings (P0/P1): 0 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b0fd52806
ℹ️ 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".
A count taken at plan time can differ from the judgement when another session writes the cache. Plan the files to judge again under the lock; plan() is one dry run and Plan has no cached field. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) No P0/P1/P2 findings.
One P3 inline: the new failure path where the second dry run makes the review stop has no test. Blocking findings: 0 |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
A counting dry run that prints a non-integer cached stops the review before op is run. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
レビュー結果(自動)指摘なし(P0: 0,P1: 0,P2: 0,P3: 0). 確認した点:
補足(指摘未満):dry run がロック内に入ったため,ロック保持時間と判定に使える残り時間が最大 |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🤖 I have created a release *beep* *boop* --- ## [0.1.2](v0.1.1...v0.1.2) (2026-11-12) ### Features * **hooks:** add Go and Rust model rules with eval fixtures ([#158](#158)) ([9731488](9731488)) * **hooks:** show model-rule timing and skip rule fixtures ([#157](#157)) ([d0c32ae](d0c32ae)) * **hooks:** show the model rules as one result line with cost ([#170](#170)) ([41b9033](41b9033)) ### Bug Fixes * **hooks:** allow a jq filter after read-only GraphQL queries ([#180](#180)) ([cfb80d8](cfb80d8)) * **hooks:** keep model-rule eval fixtures out of Stop test verification ([#160](#160)) ([a4f1c6c](a4f1c6c)) * **hooks:** read paths literally in every jev-lint child process ([#173](#173)) ([0d2c683](0d2c683)) * **hooks:** remove model-rule false positives with principles and eval fixtures ([#163](#163)) ([b07fc4e](b07fc4e)) * **hooks:** report one count per runner in the Stop test lines ([#177](#177)) ([0f36b82](0f36b82)) * **hooks:** take the model-rule cached count from the dry-run plan ([#167](#167)) ([c87fdfd](c87fdfd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
概要
Stop の表示が,すべての対象が判定キャッシュから来た場合でも「0 cached」になる問題を直します.
jev-lint review --jsonの報告(jev-lint 0.7.0)にはcachedCountがありません._judgementはそのキーを読んでいたため,常に 0 でした.--dry-run --jsonのcachedから取ります.件数の出どころは dry run の 1 か所だけです.cachedは,上限で残したファイルの件数とは限りません.Planは件数を持ちません._judge_lockedに分けました.ネストの上限に当たったため,責務で分けています.jev-lintが,実物にはないcachedCountを出していたので外しました.write_reportとwrite_plan_of_filesに改名しました.Refs #74(計画コメント:Issue #74 の「計画:モデル判定の改善」)
検証
cached=4のとき表示が「4 cached」).修正前は「0 cached」で失敗しました.test_model_rules_process.pyの 2 つのテストを「計画用と判定直前用の 2 回」に合わせました.uv run --offline pytest tests/hooks -q:3698 passed, 1 skipped計画からの変更
なし
レビュー指摘の扱い
min(...)で件数を推測している(claude P3,codex P2)