Skip to content

feat(lint): fit the bash and yaml model rule cutoffs - #243

Merged
furedea merged 3 commits into
mainfrom
feat/fit-jev-rules-shell-yaml-markdown
Nov 19, 2026
Merged

furedea merged 3 commits into
mainfrom
feat/fit-jev-rules-shell-yaml-markdown

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

概要

bash 6・yaml 4 の jev-lint 規則に fixtures と expect.yml を加え,jev-lint eval で測った fitted midpoint を cutoff にする.分離しなかった規則は ask / criteria を書き直した.昇格は無し(全規則 advisory のまま,skill の文も残す).判断してほしいのは下の「昇格しない理由」.

結果(3 passes,中央値)

規則 fixtures tp / fp / fn 最高の clean 最低の bad cutoff 備考
bash/strict-mode-header bad 4・clean 4 4 / 0 / 0 0.15 0.97 0.56 blind(inconclusive:)
bash/usage-help-and-error-exits bad 4・clean 5 4 / 0 / 0 0.42 0.84 0.64
bash/function-variables-local-near-use bad 4・clean 5 4 / 0 / 0 0.18 0.80 0.49 書き直し・located・blind
bash/script-constants-readonly bad 3・clean 4 3 / 0 / 0 0.04 0.96 0.5 書き直し・located・blind
bash/working-directory-by-responsibility bad 3・clean 6 3 / 0 / 0 0.10 0.33 0.23 書き直し
bash/tracing-not-left-on-for-secrets bad 4・clean 6 3 / 0 / 1 0.17 0.13 0.5 分離しない,Limit を記録
yaml/cache-key-and-trust bad 4・clean 5 4 / 0 / 0 0.20 0.94 0.57 blind
yaml/job-permissions-least-privilege bad 3・clean 5 3 / 0 / 0 0.36 0.92 0.64 blind
yaml/workflow-concurrency bad 4・clean 4 4 / 0 / 0 0.03 0.76 0.4 blind
yaml/workflow-default-shell bad 4・clean 5 4 / 0 / 0 0.35 0.87 0.62 書き直し・blind

書き直しの内容(最初の eval で分離しなかったもの):

規則 最初の eval 原因と変更
script-constants-readonly clean 4 件すべて 0.69〜0.77 state: local では代入より後の行が見えない → located,criteria で「ファイル全体で名前を探す」と明記
function-variables-local-near-use 文書化された出力変数を誤検出,for の変数を見逃し 関数上のコメントが見えない → located,for・read 等の名前も個別に local が要ると明記
workflow-default-shell shell: sh 等の bad 3 件を見逃し ask が「shell が未設定」しか問うていなかった → 実効 shell を求めて pipefail の有無を問う
tracing-not-left-on-for-secrets 後で再び有効化するファイルの最初の set -x を誤検出 判定範囲を「この set -x から次の set +x まで」に限定 → 誤検出は消えたが,再有効化側の見逃しが残った
working-directory-by-responsibility popd の無い pushd を 0.23 で見逃し criteria に明記 → 0.33 に上がったが余白は小さい

昇格しない理由

  • fixtures は各 7〜10 件で,ADR-0021 の「より大きな corpus で fit してから昇格」に届かない.
  • 今の Stop hook は jev-lint review --fail-on error の非 0 終了を「実行失敗」の通知として扱う(model_rules_run.py の _Child.run).severity: error にすると finding が block されず exited with status 1 の notice になるので,昇格には hook 側の対応が先に要る.
  • したがって bash-style / github-actions-style の文は消していない.AGENTS.md から消せる文も無い.

検証

  • jev-lint eval --accept(ユーザー実行,2 回):上表のとおり.tracing-not-left-on-for-secrets 以外は全 fixture を正しく判定
  • jev-lint eval --replay agents/hooks/lint/model-rules:22 suite すべて as shipped
  • REQUIRE_JEV_LINT=1 uv run pytest tests/test_model_rule_files.py:14 passed
  • 各 expect.yml の行が matcher の subject 行と一致することを ast-grep で確認
  • lefthook(shfmt・shellcheck・ls-lint・commitlint)通過

費用と subject 数

  • eval:記録済み baseline の合計 $0.0078,上書きした最初の 5 suite の分(dry-run 見積もり約 $0.0027)を含め約 $0.011.
  • Stop 1 回の最悪ケース(このグループの規則を対象ファイル 32 件すべてに当てた jev-lint check --dry-run -c none):151 subjects,34 requests,約 $0.0057.上限 250 に収まる(内訳:function-variables-local-near-use 46,ADR 規則 各 26,workflow-default-shell 19).located への変更で bash 2 規則の 1 subject あたりの token は増える(dry-run で eval 1 回あたり +$0.0003 程度).
範囲・前提・Limits
  • shell の fixtures は .bash:CI の shellcheck / shfmt は *.sh だけを対象にするため,意図した違反で CI が落ちない.jev-lint は .bash も Bash として選ぶ.
  • markdown の 2 規則は feat(lint): judge ADR rationale with Jev #228 で fit 済みのため変更なし.fix(lint): address review findings deferred from the #74 migration PRs #196 の verification notes に bash / yaml / markdown 向けの項目は無い.
  • Limit:tracing-not-left-on-for-secrets は set +x の後で再び set -x を有効にしてから秘密を展開する場合を見逃す(0.13).
  • Limit:working-directory-by-responsibility の cutoff 0.23 は clean の最高 0.10 との余白が小さい.
  • Limit(レビュー指摘):tracing-not-left-on-for-secrets の matcher(-[a-zA-Z]*x\b)は set -xe・set -euxo pipefail を subject にしない.-[a-zA-Z]*x[a-zA-Z]* に広げると全 spelling を選ぶことを確認したが,matcher の変更は baseline を無効にし新しい eval が要るため,この PR では変えない.次の eval と同時に matcher を広げ,set -euxo pipefail の bad fixture を足す.
  • Limit(レビュー指摘):model_rules_gate.rule_tiers() は baseline の有無だけで tuned tier を決めるので,分離しない tracing-not-left-on-for-secrets も subject 上限を先に使う.baseline を外すと replay テストが落ちるため残す.全レーンの後はほぼ全規則が baseline を持ち tier の差は小さくなるが,tier の基準(分離したかどうか)は hook 側の課題.
  • Limit(レビュー指摘):script-constants-readonly は同じ変数をトップレベルで複数回代入するスクリプトで,最後の代入を定数違反と誤検出し得る(criteria が後続の変更しか見ない).criteria の変更も新しい eval が要るため,余分な指摘として記録だけする.
  • docs/DESIGN.md の「Five cutoffs are fitted ...」の文は他レーンと共有の記述なので触っていない.全レーン終了後に親で更新が要る.
  • jev-lint 本体,hook,他言語の規則は範囲外.

Refs #220

🤖 Generated with Claude Code

furedea and others added 3 commits November 18, 2026 15:35
Each rule gets violating and conforming fixtures with an expect.yml,
including real code from scripts/ and .github/ as clean cases. Shell
fixtures use .bash so that the shellcheck and shfmt jobs, which list
*.sh, do not lint planted defects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Record the eval baselines of the bash and yaml suites. The five rules
whose fixtures separate take jev-lint's fitted midpoint as their cutoff,
with the basis in the rule file. The four that do not separate get
rewritten criteria, and two of them see the whole file (located), since
the evidence for their answer sits outside the matched node.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Re-record the baselines of the four rewritten rules and take their
fitted midpoints. tracing-not-left-on-for-secrets still misses tracing
turned back on before a secret, so it keeps 0.5 with the limit noted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 18, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T06:42:21.955632Z 28df217 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Review summary

I read the diff read-only and found one issue. The PR is mostly fixtures, expect.yml files, baselines, and ask/criteria rewrites. I did not re-run jev-lint eval, so the baseline numbers are unchecked. I did check the fixture counts in the PR table against the expect.yml subjects, and they match. For example, the 6 clean cases for tracing and working-directory are counted per subject, not per file.

P2 bash/tracing-not-left-on-for-secrets/rule.yml:18: the matcher regex does not match set -xe, set -xu or set -euxo pipefail. I confirmed this with grep -P. Scripts that turn tracing on that way are never evaluated. No fixture uses those spellings, so the reported fp/fn figures don't cover them. The matcher was not changed here, so this is not a regression. I suggest widening the regex and adding one bad fixture.

Things I checked that need no action:

  • No rule is promoted: severity stays at warning and the prose in the skill stays.
  • The "does not separate" case for the tracing rule is documented, including the 0.13 vs 0.17 limit. Its cutoff stays at 0.5.
  • The working-directory-by-responsibility cutoff of 0.23 is a fitted midpoint over 9 cases. The rule comment already says it is not a calibration.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown

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: 28df2179a6

ℹ️ 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".

@furedea
furedea merged commit d5eab6b into main Nov 19, 2026
29 checks passed
@furedea
furedea deleted the feat/fit-jev-rules-shell-yaml-markdown branch November 19, 2026 02:58
furedea added a commit that referenced this pull request Nov 19, 2026
## 概要

#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 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
furedea pushed a commit that referenced this pull request Nov 19, 2026
🤖 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>
furedea added a commit that referenced this pull request Nov 20, 2026
…es and the Stop resume (#260)

## 概要

#196 の misc グループ(bash / GitHub Actions,hook,共有の項目)を片付ける.bash・yaml のモデル規則
6 件で,見逃していた書き方を選ぶようにし,eval を取り直して cutoff を当て直した.Stop の resume が別の review
構成で再開してしまう不具合も直した.判断が必要な項目はない.

Refs #196

## 変更前と変更後

| 対象 | 変更前 | 変更後 |
| --- | --- | --- |
| `workflow-default-shell` / `cache-key-and-trust` | flow 形式の step(`-
{run: …}`,`steps: [{uses: …}]`)を選ばない | 選ぶ |
| `job-permissions-least-privilege` | 引用符付きの `"jobs":`,flow 形式の job の
`permissions` を選ばない | 選ぶ |
| `usage-help-and-error-exits` | `$#` を調べる `if`,getopts の bare な `h)`
を選ばない | 選ぶ |
| `function-variables-local-near-use` | `: "$((count++))"` を選ばない | 代入を含む
`$(( ))` を選ぶ(`$((1 + 2))` は選ばない) |
| `tracing-not-left-on-for-secrets` | `set -xe`,`set -euxo pipefail`
を選ばない(#243 の Limit) | 選ぶ.bad fixture を 1 件追加 |
| Stop の resume | 失敗後にコミット構成が変わっても(`git reset --soft`),保存した位置から再開し,未実行の
review を飛ばす | resume に review 構成(base・rules・files)の digest
を保存し,一致しなければ最初からやり直す |

## 検証

- [x] `tests/test_bash_and_yaml_model_rules.py`(新規,dry-run の選択テスト 15
件):変更前は 11 件失敗,変更後はすべて成功
- [x] `tests/hooks/test_model_rules_resume.py`:別構成の resume
で最初からやり直すテストを追加(変更前は失敗)
- [x] `jev-lint eval --accept`(ユーザーが実行,2026-11-19,3 passes):6 suite の
baseline を記録
- [x] `jev-lint eval --replay agents/hooks/lint/model-rules`:74 suite
がすべて as shipped
- [x] `uv run pytest`(jev-lint 0.7.0 を `PATH` に置く):6188 passed,2 skipped
- [x] `ruff check`,`ruff format --check`,`ty check`(pre-commit)

## eval の結果(3 passes,中央値)

| 規則 | tp / fp / fn | 最高の clean | 最低の bad | cutoff |
| --- | --- | --- | --- | --- |
| `bash/usage-help-and-error-exits` | 4 / 0 / 0 | 0.45 | 0.83 |
0.64(据え置き) |
| `bash/function-variables-local-near-use` | 4 / 0 / 0 | 0.17 | 0.79 |
0.49(据え置き,blind) |
| `bash/tracing-not-left-on-for-secrets` | 4 / 0 / 1 | 0.16 | 0.16 |
0.5(分離しない) |
| `yaml/cache-key-and-trust` | 4 / 0 / 0 | 0.20 | 0.94 |
0.57(据え置き,blind) |
| `yaml/job-permissions-least-privilege` | 3 / 0 / 0 | 0.40 | 0.91 |
0.64 → 0.65(blind) |
| `yaml/workflow-default-shell` | 4 / 0 / 0 | 0.41 | 0.86 | 0.62 →
0.63(`inconclusive:` を削除) |

- `job-permissions-least-privilege` の `inconclusive:` は,指示では削除だった.しかし
margin が 0.26 / 0.25 で jev-lint の blind 判定(0.25 以上)に当たり,削除すると replay
が失敗する.このため残し,数値だけ 0.28 から 0.25 に直した.
- `cost`:eval 1 回(6 suite,ユーザー実行).このセッションでは model に問い合わせていない.

## #196 の misc 項目

| 項目 | 状態 |
| --- | --- |
| `gha_workflow_permissions_deny_all`:引用符付きの `"jobs":`,ルート全体が flow
mapping | 対応済み(#216.引用符は修正,flow は `Scope:` に記録) |
| `bash_readonly_constant_name`:関数内の `readonly`,`declare -r` |
対応済み(#216.`declare -r` / `-gr` は検査,関数内の `readonly` は `Scope:` に記録) |
| `gha_job_timeout_minutes`:`jobs` が flow mapping,引用符付きの `"jobs":` |
対応済み(#216.引用符は修正,flow は `Scope:` に記録) |
| `gha_pinned_uses_version_comment`:`action.yml` | 対応済み(#216.`files:` に
`action.yml` を追加) |
| `gha_workflow_concurrency` の
`'on':`,`gha_workflow_default_shell`,`bash_strict_mode_header` | 不要(#194
でモデル規則に降格) |
| `.bats` を ast-grep で Bash として読むか | 対応済み(#216.有効化しないと決定) |
| `SUBJECT_CAP` | 対応済み(#246) |
| `scripts/bootstrap_server.sh` に ast-grep がない(#202) | 対応済み(#216) |
| 後段 review の失敗で毎ターン block する件,失敗理由,`skipped_files`,2 tier の順序のテスト(#191)
| 対応済み(#216) |
| resume が別の review 構成に当たる(#216 のレビュー) | **修正**(この PR) |
| `workflow-default-shell` の flow step | **修正** |
| `job-permissions-least-privilege` の引用符付き `"jobs":`,flow job |
**修正**(`jobs` そのものが flow mapping の場合は対象外.下の Limits) |
| `cache-key-and-trust` の flow step | **修正** |
| `usage-help-and-error-exits` の `$#`,bare な `h` | **修正** |
| `function-variables-local-near-use` の `: "$((count++))"` | **修正** |
| `tracing-not-left-on-for-secrets` のフラグ連結(#243 の Limit) | **修正** |
| `SKILL_NAMES` が `.` で始まるディレクトリを拾う | 対応済み(#214) |
| `test_main_is_thin_selects_…` を `command-query-naming` が指摘する |
対応しない.advisory な余分の指摘で,テスト名が `selects` なのは matcher の選択を検証するため |
| `error-message-names-operation` が
`guard_git.py:46`,`herdr_ownership.py:26` を指摘する(#216) | 対象外.guard 系 hook
は #197 / #255 の担当 |
|
`no-comment-restating-code`,`no-exposed-mutable-collection`,`no-reaching-through-collaborators`,`construction-separate-from-execution`(言語ごと)
| 各言語レーンの担当.規則ファイルが言語ごとに分かれていて,共有ファイルがない |

<details><summary>Limits と範囲</summary>

- Limit:`tracing-not-left-on-for-secrets` は,`set +x` のあと秘密の前で再び `set -x`
するケース(`bad_retraced_before_secret.bash:10`)を 0.16 と判定し,clean
と分離しない.advisory のまま rule.yml に記録した.
- Limit:`job-permissions-least-privilege` と `workflow-default-shell`
は,`jobs` 自体が flow mapping(`jobs: {build: {...}}`)の workflow
を選ばない.実際にはほぼ書かれない形.
- Limit:`usage-help-and-error-exits` の bare な `h)` は,getopts ではない `case`
の `h)` も選ぶ.モデル規則の matcher は広く取る方針(#196)なので,criteria で判定する.
- Limit(レビュー指摘,P2):`cache-key-and-trust` は,別のアクションの入力(`with: {uses:
actions/cache@v4}`)も選ぶ.余分な subject で,block 形式にも以前からある.祖先の条件で step の
mapping に限る修正は matcher を変えて eval の取り直しが要るため,次の eval で直す.
- Limit(レビュー指摘,P3):`function-variables-local-near-use` は,`$(( flags <<=
1 ))` のように `<<=` / `>>=` で代入する `$(( ))` を選ばない.次の eval で `(<<|>>)=` を加える.
- Limit(#243 から継続):`script-constants-readonly`
は,同じ変数をトップレベルで再代入するスクリプトで余分に指摘し得る.
- 古い receipt(`layout` なし)の resume は,一致しないものとして扱い,最初からやり直す.
- 範囲外:Jev 規則の昇格(ADR-0027),guard / permission hook,#181,release.

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant