Repository navigation
feat(lint): fit the TypeScript model rules on eval fixtures - #242
Conversation
Select arrow functions and function expressions wherever they sit, rejected promises, Date() and `new Date`, Vitest suite() and classes that keep state in fields; send the whole file where the justifying code lies outside the subject. Refs #220 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Give each TypeScript rule without a suite violating and conforming fixtures and an expect.yml, so that `jev-lint eval` can measure it and fit its cutoff. Refs #220 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the 0.5 starting value with jev-lint's fitted midpoint for each TypeScript rule, record the basis beside the cutoff, and declare the suites whose fixtures leave no boundary case as inconclusive. Every rule stays advisory (ADR-0021). Refs #220 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@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 summaryI read the whole diff but ran no tests or ast-grep (shell commands were blocked). I read the rule.yml changes, the matcher test changes and the PR description, and only skimmed the fixtures and baselines. I found no P0 or P1 issues.
Checked and looked fine: the fitted cutoffs follow the worst-pass midpoints in the PR table, and dropping the |
|
Codex Review: Didn't find any major issues. 👍 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". |
Refs #220 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary I found no P0 or P1 issues. I did not run the tests or ast-grep; this is a read-only review of the diff.
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
## 概要 #220 の Rust 分.Rust の jev-lint 規則 14 件すべてに eval の fixtures と baseline を揃え,cutoff を jev-lint の fitted midpoint に置き換えた.分離しなかった規則は ask / criteria を書き直した.規則はすべて advisory のままで(ADR-0027),style skill の文章も消していない. ## 変更 - fixtures がなかった 11 規則に `fixtures/violating.rs`・`fixtures/conforming.rs`(clean は criteria の false 側に寄せた境界例)と `expect.yml` を追加した. - `no-reaching-through-collaborators`:matcher の `$A.$B.$C.$D($$$)` はフィールドの連鎖しか選ばず,`self.session.connection().pool().acquire()` のようなメソッド連鎖の違反例 5 件をどれも選んでいなかった.中間がメソッド呼び出しの 3 形も選ぶよう広げた(#196 の「matcher は広め」).agent-harness の大型 PR では subject が 30〜55 件増える. - 1 回目の eval で分離しなかった 5 規則の criteria を書き直した:`construction-separate-from-execution`(composition root を誤検出していた,0.89),`no-exposed-mutable-collection`(clean 4 件すべてを誤検出していた,0.69〜0.96;struct 定義が見えるよう `state: located` に変更),`serde-types-follow-config-conventions`(命名の混在を見逃していた,0.19),`domain-states-are-enums`,`filesystem-code-keeps-paths-and-symlinks-safe`(gap が狭かった). - Rust の criteria だけを変えた 2 規則(`construction-…`,`no-exposed-…`)は,jev-lint の drift 警告に従い `divergent:` で理由を宣言した. - 各 `rule.yml` に cutoff の根拠(ケース数,clean の最高値,violation の最低値,baseline の日付)をコメントで書いた. - `tests/test_model_rule_files.py`:main の `SUITE_RULE_IDS` で Rust も Go と同じく全規則(`None`)に eval スイートを求める. - `tests/test_agents_md_model_rules.py`:この PR で全 74 規則に baseline が揃い,実ディレクトリでは tier が 1 つになる.「tier に分けても subject が減らない」というテストが自分自身と比べるだけになるので,一時コピーで Python の baseline を外して 2 tier を作るようにした. - 1 回目の eval でできた `last.json` を誤ってコミットしていたので,消した. ## cutoff の fit baseline は 2026-11-18,3 passes.値は 3 passes を通じた最高・最低.tp / fp / fn は新しい cutoff での値で,保存した baseline から `jev-lint eval --replay agents/hooks/lint/model-rules/rust` で求めた(モデル呼び出しなし). | 規則 | bad / clean | clean の最高 | bad の最低 | cutoff(旧 → 新) | tp / fp / fn | 備考 | | --- | --- | --- | --- | --- | --- | --- | | `command-query-naming` | 4 / 6 | 0.53 | 0.84 | 0.68 → 0.69 | 4 / 0 / 0 | | | `construction-separate-from-execution` | 5 / 5 | 0.36 | 0.88 | 0.5 → 0.62 | 5 / 0 / 0 | blind | | `conversion-and-query-names-follow-rust-convention` | 6 / 7 | 0.10 | 0.46 | 0.5 → 0.28 | 6 / 0 / 0 | 0.5 では violating.rs:29 を 3 pass 中 2 回見逃していた | | `domain-states-are-enums` | 5 / 5 | 0.27 | 0.88 | 0.5 → 0.57 | 5 / 0 / 0 | blind | | `error-message-names-operation` | 8 / 7 | 0.15 | 0.56 | 0.5 → 0.36 | 8 / 0 / 0 | | | `filesystem-code-keeps-paths-and-symlinks-safe` | 4 / 6 | 0.20 | 0.85 | 0.5 → 0.53 | 4 / 0 / 0 | blind | | `function-single-purpose` | 4 / 5 | 0.25 | 0.71 | 0.5 → 0.48 | 4 / 0 / 0 | | | `known-defect-marker-names-removal` | 6 / 5 | 0.16 | 0.58 | 0.36 → 0.37 | 6 / 0 / 0 | | | `no-comment-restating-code` | 5 / 5 | 0.22 | 0.93 | 0.5 → 0.58 | 5 / 0 / 0 | blind | | `no-exposed-mutable-collection` | 4 / 4 | 0.06 | 0.96 | 0.5 → 0.51 | 4 / 0 / 0 | blind | | `no-reaching-through-collaborators` | 5 / 5 | 0.46 | 0.78 | 0.5 → 0.62 | 5 / 0 / 0 | | | `paths-are-joined-not-formatted` | 5 / 5 | 0.14 | 0.96 | 0.5 → 0.55 | 5 / 0 / 0 | blind | | `public-types-protect-invariants` | 5 / 5 | 0.24 | 0.83 | 0.5 → 0.53 | 5 / 0 / 0 | blind | | `serde-types-follow-config-conventions` | 4 / 5 | 0.18 | 0.24 | 0.5 → 0.21 | 4 / 0 / 0 | unstable | 「blind」は fixtures が境界から遠すぎて劣化を検出できないという replay の判定で,「unstable」は最も弱い違反の pass ごとの揺れが cutoff との余白より大きいという判定.どちらも各 `rule.yml` に `inconclusive:` で理由を宣言した. ## 昇格しない ADR-0027(#250)により,model-judged の規則は gate(`severity: error`)にせず,すべて advisory のままにする.この PR でもどの規則も昇格しておらず,昇格の計画もない.規則の文章は `AGENTS.md` と style skill に残す. ## Stop あたりの subject 数と費用 agent-harness(Rust)の直近 60 PR を `jev-lint review --dry-run` で数えた(キー不要). - Rust 規則だけの subject 数は中央値 6,p90 219,最大 667. - #246 で上限(`SUBJECT_CAP`)が 250 から 2000 に上がる(数値は #246 の PR 本文による.この PR ではコードを変えていない).2000 では 60 PR のどれも上限を超えず,最大の 667 でも約 3 分の 1 に収まる.250 のままなら超えていたのは 4 件で,どれも大型のリファクタ PR だった(main の規則だけでも 612,596,571,406). - 1 subject あたり約 0.000025 USD なので,最大の 667 subject で約 0.017 USD,上限いっぱいの 2000 で約 0.05 USD.60 PR 分の合計は 0.12 USD. - 1 回の Stop は 1 PR より小さいことが多いので,Rust 規則を足しても上限 2000 で足りると考える. ## 検証 - `jev-lint eval --replay agents/hooks/lint/model-rules`:74 suite(s), all as shipped(origin/main 1721d17 に rebase 後). - `jev-lint rules --no-config -R agents/hooks/lint/model-rules`:74 rule(s) loaded, 0 error(s).Rust の drift 警告なし. - `uv run pytest`:rebase 後に全件実行し,`test_the_tiers_together_plan_the_same_subjects_as_the_whole_directory` の 1 件が上記の理由で落ちたので直した.直した後,`tests/test_model_rule_files.py` と `tests/test_agents_md_model_rules.py` は 19 passed. - モデル呼び出しの費用(ユーザーが実行,キーは guard によりエージェントから使えない):1 回目の eval(11 suites)0.0069 USD,gaps 0.0078 USD,`eval --accept`(14 suites)約 0.0089 USD.合計約 0.024 USD. ## Limits - fixtures は規則ごとに 8〜15 件で,較正とは言えない.blind の 8 規則には境界の fixture がない. - `gaps` を全 Rust fixtures にかけると(criteria を書き直す前),`command-query-naming` と `error-message-names-operation` で,他の規則の fixtures に cutoff の直下(余白 0.01,0.04)の subject があった. - #196 の 2 コメントには Rust の項目がなかった. - `docs/DESIGN.md` の「Five cutoffs are fitted …」の段落は古くなった.全言語で共有している文書なので,全レーンが終わった後に親で更新してほしい. - 計画からの逸脱:なし(昇格しないことは ADR-0027 の決定どおり). - rebase(#240,#242,#243,#244,#250 などの後)の衝突は `tests/test_model_rule_files.py` の 1 か所で,main の `SUITE_RULE_IDS` に寄せて解消した.cutoff と baseline は変えていない. Refs #220 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <132188853+furedea@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
🤖 I have created a release *beep* *boop* --- ## [0.3.0](v0.2.0...v0.3.0) (2026-11-19) ### Features * **lint:** fit the bash and yaml model rule cutoffs ([#243](#243)) ([d5eab6b](d5eab6b)) * **lint:** fit the Go model rules on eval fixtures ([#244](#244)) ([cf87c36](cf87c36)) * **lint:** fit the Rust model rules to eval fixtures ([#241](#241)) ([3275ce2](3275ce2)) * **lint:** fit the TypeScript model rules on eval fixtures ([#242](#242)) ([bb41bb7](bb41bb7)) * **lint:** make bash_local_underscore_prefix an error ([#251](#251)) ([cd8c5b8](cd8c5b8)) ### Bug Fixes * **hooks:** let cleanup_worktrees remove worktrees left with only regenerable outputs ([#235](#235)) ([a25ce5b](a25ce5b)) * **hooks:** raise the model rules subject cap and keep cached findings under it ([#246](#246)) ([a451e93](a451e93)) * **hooks:** show each Stop model-rule finding once per session ([#252](#252)) ([49cd6f9](49cd6f9)) * **hooks:** skip commits already on the default branch in model rules ([#247](#247)) ([3df49a2](3df49a2)) --- 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>
#196 の Rust / TypeScript の項目(lane `rsts`)を片付ける.template の linter だけが強制する文章を戻し,Jev の Rust / TS 規則の matcher を #196 で見逃した書き方まで広げ,新しい baseline で cutoff を当て直した.規則はすべて advisory のまま(ADR-0027). Refs #196 ## 変更 | 区分 | 変更前 | 変更後 | | --- | --- | --- | | 文章 | template の lint が覆うとして削除 | template 以外のプロジェクト向けに戻す(ユーザー決定 2026-11-19) | | Rust matcher | turbofish・構造体リテラル・`&'a mut`・`let` のクロージャ・trait のメソッド宣言・block comment 後の serde 型・関数直前のコメント・呼び出しで終わらないフィールド連鎖を選ばない | 選ぶ | | TS matcher | `ReadonlyArray` などを選ぶ.戻り値型のないメソッド・関数直前のコメント・呼び出しで終わらないプロパティ連鎖を選ばない | `readonly` / `Readonly*` は選ばない.残りは選ぶ | | no-comment(Rust / TS) | `state: local`(直前のコメントがモデルに見えない) | `state: located`,ask / criteria に「直前のコメント」を追加 | | TS no-exposed | `state: local` | `state: located`(戻り値型がないときは field の型をファイルから読む) | ## 項目ごとの状態 | 項目 | 状態 | | --- | --- | | rust-style `errors.md` の `unwrap_used` / `expect_used` / `indexing_slicing`,`# Panics`(helper 経由を含む),`todo!` / `unimplemented!` | 修正(文章を戻した) | | typescript-style `errors.md` の promise lint の 1 文 | 修正 | | `tooling.md` の package-level guard,`types.md` の `to_owned()` と網羅的 `match`,`package_design.md` の `pub` | 修正(同じ方針で戻した) | | `construction-separate-from-execution`:turbofish,構造体リテラル | 修正 | | `no-exposed-mutable-collection`:Rust `&'a mut`,TS `Readonly*` の除外,TS 戻り値型の省略 | 修正 | | `function-single-purpose`:Rust の `let` クロージャ | 修正 | | `conversion-and-query-names-follow-rust-convention`:trait のメソッド宣言 | 修正 | | `serde-types-follow-config-conventions`:block comment,複数行 derive | 修正(block comment)/済(複数行は既存の `(?s)`) | | `no-comment-restating-code`:関数直前のコメント(Rust / TS 分) | 修正 | | `no-reaching-through-collaborators`:呼び出しで終わらない連鎖(Rust / TS 分) | 修正 | | `paths-are-joined-not-formatted`:raw string,`std::format!` / `alloc::format!`,エスケープ,入れ子の `replace` の fixture | 修正(criteria も更新) | | `public-types-protect-invariants`:tuple struct・スカラーの fixture | 済(#241) | | `domain-states-are-enums` の文章 | 修正(`types.md` の網羅的 `match` を戻した) | | TS jev 規則 11 項目(`suite`,`it.concurrent`,`Date()`,`getRandomValues`,`pair` / `export default` / `Promise.reject`,クラスのフィールド,`state: located` 各種,同名ヘルパー) | 済(#242) | | `rs_no_mocking_library`:`automock`,`pub use`,グループ `use`,`cfg_attr` | 済(#216) | | `rs_no_follow_links`:import 別名,途中で型を変える連鎖 | 済(#216 で `Limits` に記録) | | `rs_fs_call_needs_context`,`rs_no_get_prefix`(`extern "C"`,コメントを挟む属性),`ts_*` / `tsx_*` の ast-grep 規則すべて | 不要(規則を削除済み) | ## 検証 - [x] matcher テスト 12 件(`tests/test_model_rule_files.py::test_rule_selects_each_form_recorded_for_it`):実装前に 12 件失敗,実装後に通過 - [x] 変更した 11 suite の fixture で subject 数とラベル数が一致 - [x] `jev-lint eval --accept`(ユーザー実行,2026-11-19 11:35Z と no-comment 2 suite の 12:19Z).cutoff は fitted midpoint に合わせた - [x] `jev-lint eval --replay`:74 suite すべて as shipped - [x] `uv run pytest`:6184 passed,2 skipped ## cutoff | 規則 | 旧 → 新 | 宣言 | | --- | --- | --- | | rust/construction-separate-from-execution | 0.62 → 0.63 | blind | | rust/no-exposed-mutable-collection | 0.51 → 0.44 | blind | | rust/function-single-purpose | 0.48 → 0.52 | | | rust/conversion-and-query-names-follow-rust-convention | 0.28 → 0.29 | | | rust/serde-types-follow-config-conventions | 0.21 → 0.24 | unstable を削除(stale) | | rust/no-comment-restating-code | 0.58 → 0.56 | blind を削除(stale) | | rust/no-reaching-through-collaborators | 0.62 → 0.63 | | | rust/paths-are-joined-not-formatted | 0.55 → 0.75 | blind を削除(境界の例が 0.52) | | typescript/no-exposed-mutable-collection | 0.93 | unstable(`violating.ts:12` が 0.92〜0.96) | | typescript/no-comment-restating-code | 0.53 → 0.54 | blind | | typescript/no-reaching-through-collaborators | 0.65 → 0.69 | | <details><summary>範囲・前提・制限</summary> - 範囲:#196 の Rust / TS 項目と文章 2 件(lane brief の `rsts`).Go / Python / 共有ファイルは他の lane.#196 は閉じない. - 文章の方針:template から作ったプロジェクトでだけ有効な linter が覆う規則は文章を残す(ユーザー決定 2026-11-19).#216 の「戻さない」はこれで置き換わる. - 制限:TS no-exposed の cutoff は,criteria のプレーンなデータレコードの例外を絞って fit し直すまで当てにできない(`inconclusive` に記録).`state: located` にした 3 規則は 1 subject ごとにファイル全体を渡すので,入力 token が増える. - レビューで出た制限(直さずに記録.再 fit には eval がもう 1 回要る): - `rust/serde-types-follow-config-conventions`:`violating.rs:26` が 0.29〜0.43 と揺れる.cutoff 0.24 との差は平均で 0.14 で,jev-lint は `inconclusive: Unstable` を stale として拒否する. - `rust/no-comment-restating-code`:clean の doc comment(`conforming.rs:30`,0.44〜0.50)と bad(0.62〜0.66)の間が狭い.`///` の付いた関数もすべて subject になるので,公開 API の doc comment で誤検出がありうる. - `typescript/no-exposed-mutable-collection`:戻り値型のない scalar の getter(`getName() { return this.name; }`)も subject になり,ファイル全体を渡す.入力 token と誤検出が増えうる. - 後続(見逃し):`rust/construction-separate-from-execution` は,型引数がネストした turbofish(`ApiClient::<Wrapper<T>>::new`)と `ApiClient<Wrapper<T>>::new` を選ばない.正規表現の `<[^>]*>` が内側の `>` で止まるため.次に Rust 規則を fit し直すときに AST 条件で直す. - eval の費用:2 回で約 $0.0095(見積もり). - Decisions needed:なし. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <132188853+furedea@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
概要
TypeScript の jev-lint 規則 16 件を fixtures で測り,cutoff を仮の 0.5 から fitted midpoint に置き換える.#196 の TypeScript 向け指摘(PR #195 由来の 11 項目)を matcher と state に反映する.規則はすべて advisory のままで,style skill の文章も残す(親の指示:今回は昇格と文章削除をしない).
変更
repeated-cases-use-it-each:Vitest のsuite(...)も選ぶ.inject-time-and-randomness:Date()と括弧なしのnew Dateも選ぶ.state: locatedにし,criteria の false 側に「node:crypto/ Web Crypto 由来でない同名ヘルパー」を加えた.comment-explains-why・expected-failure-returned-as-value・inject-time-and-randomness:アロー関数・関数式は親(pair,export_statement,jsx_expression,代入,配列,三項演算子など)を問わず subject にする.expected-failure-returned-as-value:Promise.reject(...)も選び,ask / criteria を「throw または rejected promise」にした.states-modeled-as-discriminated-union:クラスのフィールド(optional,boolean 型,= true/false)で状態を持つクラスも選ぶ.type-assertion-follows-validation・angle-bracket-assertion-follows-validation・mock-only-external-boundaries・comment-explains-why:state: located.tests/model_rule_samples.pyとtests/test_model_rule_files.pyの件数(旧規則では 5 規則の件数が合わないことを確認).fixtures/violating.ts|conforming.ts(テスト系は.test.ts)とexpect.yml(各 bad 4・clean 4,境界寄りの例を含む).ラベルの行がすべて matcher に選ばれることを ast-grep で確かめた.threshold:の上のコメントに書いた.境界の fixture が無く replay が blind と判定した 8 規則にはinconclusive:で理由を宣言した.baseline.json:ユーザーが実行したjev-lint eval --acceptの記録(3 passes).fit の結果(3 passes,平均.括弧内は最悪 pass)
ask / criteria は書き直していない:16 規則とも平均でも最悪 pass でも clean と bad が分かれた(#220 の「分離しない規則は書き直す」に当たる規則が無い).そのため追加の eval は依頼していない.
angle-bracket-assertion-follows-validationcommand-query-namingcomment-explains-whyconstruction-separate-from-executionerror-message-names-operationexpected-failure-returned-as-valuefunction-single-purposeinject-time-and-randomnessknown-defect-marker-names-removalmock-only-external-boundariesno-comment-restating-codeno-exposed-mutable-collectionno-reaching-through-collaboratorsrepeated-cases-use-it-eachstates-modeled-as-discriminated-uniontype-assertion-follows-validation新 cutoff では 16 規則とも tp 4(
command-query-namingは 8)・fp 0・fn 0.jev-lint eval --replayは 16 suite すべて通る.昇格の候補(今回は昇格しない)
ADR-0021 の条件(fixtures で fp 0)はすべて満たすが,各 8 件程度で較正とは言えない(ADR-0020).また Stop hook は
--fail-on errorの非ゼロ終了を実行失敗として扱うため,severity: errorにすると finding が隠れる(親の指示).最悪 pass でも clean と bad の差が 0.3 以上ある規則を候補とする.agents/skills/typescript-style/references/)type-assertion-follows-validation,angle-bracket-assertion-follows-validationascasts except immediately after validation, as in the brand example above.」comment-explains-whyknown-defect-marker-names-removaltest.failsand a comment naming the condition for removing it; …」のうち comment の部分mock-only-external-boundariesvi.mockonly for external dependencies at module boundaries.」states-modeled-as-discriminated-unioninject-time-and-randomnessrepeated-cases-use-it-eachit.eachfor the same behavior across multiple inputs.」error-message-names-operation候補外(余白が狭い):
expected-failure-returned-as-value(errors.md の「Return expected failures as values …」「throwonly for programmer errors …」),no-exposed-mutable-collection,no-reaching-through-collaborators,command-query-naming.AGENTS.md(共有の文.このレーンでは編集しない)
AGENTS.md の規則は言語をまたいで共有されるので,全言語のレーンで昇格がそろったときだけ消せる.TypeScript 側で候補になったのは以下:
construction-separate-from-execution→「Separate object creation/configuration from execution logic.」function-single-purpose→「Keep functions single-purpose at one abstraction level, with short variable lifetimes.」の前半no-comment-restating-code→「Minimize comments and docstrings; …」no-exposed-mutable-collection(「do not expose mutable raw collections」),no-reaching-through-collaborators(「Law of Demeter」),command-query-naming(「name command functions for their side effects …」)は TypeScript では候補外.測定
eval --dry-runで,TypeScript 16 suite を 3 passes 回すと約 0.0089 USD(約 211k input tokens).--acceptは 1 回だけ実行した.jev-lint review --dry-run,全 model rules,未コミットの変更として計測)確認
jev-lint rules:16 規則,エラー 0.jev-lint eval --replay:TypeScript 16 suite すべて通過.uv run pytest tests/test_model_rule_files.py tests/test_agents_md_model_rules.py tests/hooks/test_model_rule_fixtures.py:29 passed.test_every_saved_eval_baseline_still_scores_as_accepted(新しい suite に baseline が無い)の 1 件だけで,baseline 追加後に通過..ts/.test.tsで通過).Limits
no-exposed-mutable-collectionは「不変条件の無いデータ record が自分の配列を返す」clean の例が 0.89 で,余白は 0.04 しかない.criteria の例外の書き方が弱い可能性があるので,rule.yml のコメントで cutoff を暫定値と明記した(review 指摘 P3).states-modeled-as-discriminated-unionのクラス分岐は,フィールド全体のテキストに regex を当て,入れ子のクラスまで探す.そのため,初期化式の中に= trueがあるフィールドや,内側のクラスのフィールドでも外側のクラスが subject になる(review 指摘 P2).余分な subject と誤検出が増えるだけで見逃しは起きないので,このレーンでは直さない.value/typeの子に限定し,負のサンプルを足すのは後の変更で行う.inject-time-and-randomnessの criteria の除外文(node:cryptoや Web Crypto API から import していない同名の呼び出しは違反ではない)のせいで,import なしで使えるグローバルの Web Crypto の呼び出し(crypto.randomUUID(),crypto.getRandomValues(...))を見逃すおそれがある.fixtures にもこの形の例が無い(再レビュー指摘 P2.レビュー対応は 1 巡までの方針と,規則が advisory であることから,このレーンでは直さない).除外を「名前を覆い隠すプロジェクトのヘルパー,または注入されたrng」に限り,グローバル呼び出しの bad 例を足して refit するのは後の変更で行う.comment-explains-why(style skill 由来)とno-comment-restating-code(AGENTS.md 由来)はほぼ同じことを判定している.統合は範囲外.jev-lint reviewは本文が同じ subject を 1 件にまとめる(matcher テストのサンプルでは文言を変えて回避した).docs/DESIGN.mdの「Model Rules at Stop」の「Five cutoffs are fitted …; the others … stay at the 0.5 starting value」は,この PR で TypeScript について古くなる.共有の文書で他レーンと衝突するので,親が全レーンの後で直す前提で編集していない.Refs #220
🤖 Generated with Claude Code