Repository navigation
fix(lint): close the misc gaps of #196 in the bash and yaml model rules and the Stop resume - #260
Conversation
…reviews A resume records the position of the review that failed. When the commits move after the failure (for example `git reset --soft`), the same inputs regroup into other reviews, and the saved position skipped reviews that were never judged. The resume now carries a digest of the reviews' bases, rules and files, and a run of different reviews ignores it. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sh and yaml model rules The matchers missed forms recorded in #196: a step or job written as a flow mapping (workflow-default-shell, job-permissions-least-privilege, cache-key-and-trust), a quoted `"jobs":` key, an `if` that tests `$#`, the bare `h` label of a getopts loop, and an assignment inside an arithmetic expansion. Each form now has a dry-run selection test. Refs #196 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nges Accept new eval baselines for the six suites whose matchers changed (user-run eval of 2026-11-19, 3 passes) and move the cutoffs to the fitted midpoints: job-permissions-least-privilege 0.65, workflow-default-shell 0.63; the others keep theirs. workflow-default-shell is no longer blind and drops `inconclusive:`. tracing-not-left-on-for-secrets still misses the re-traced case (0.16), recorded as a Limit. Refs #196 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 summaryNo P0 or P1 findings. What I checked
Findings
Observations, not findings
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 94df8182d4
ℹ️ 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".
概要
#196 の misc グループ(bash / GitHub Actions,hook,共有の項目)を片付ける.bash・yaml のモデル規則 6 件で,見逃していた書き方を選ぶようにし,eval を取り直して cutoff を当て直した.Stop の resume が別の review 構成で再開してしまう不具合も直した.判断が必要な項目はない.
Refs #196
変更前と変更後
workflow-default-shell/cache-key-and-trust- {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-secretsset -xe,set -euxo pipefailを選ばない(#243 の Limit)git reset --soft),保存した位置から再開し,未実行の review を飛ばす検証
tests/test_bash_and_yaml_model_rules.py(新規,dry-run の選択テスト 15 件):変更前は 11 件失敗,変更後はすべて成功tests/hooks/test_model_rules_resume.py:別構成の resume で最初からやり直すテストを追加(変更前は失敗)jev-lint eval --accept(ユーザーが実行,2026-11-19,3 passes):6 suite の baseline を記録jev-lint eval --replay agents/hooks/lint/model-rules:74 suite がすべて as shippeduv run pytest(jev-lint 0.7.0 をPATHに置く):6188 passed,2 skippedruff check,ruff format --check,ty check(pre-commit)eval の結果(3 passes,中央値)
bash/usage-help-and-error-exitsbash/function-variables-local-near-usebash/tracing-not-left-on-for-secretsyaml/cache-key-and-trustyaml/job-permissions-least-privilegeyaml/workflow-default-shellinconclusive:を削除)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 mappingScope:に記録)bash_readonly_constant_name:関数内のreadonly,declare -rdeclare -r/-grは検査,関数内のreadonlyはScope:に記録)gha_job_timeout_minutes:jobsが flow mapping,引用符付きの"jobs":Scope:に記録)gha_pinned_uses_version_comment:action.ymlfiles:にaction.ymlを追加)gha_workflow_concurrencyの'on':,gha_workflow_default_shell,bash_strict_mode_header.batsを ast-grep で Bash として読むかSUBJECT_CAPscripts/bootstrap_server.shに ast-grep がない(#202)skipped_files,2 tier の順序のテスト(#191)workflow-default-shellの flow stepjob-permissions-least-privilegeの引用符付き"jobs":,flow jobjobsそのものが flow mapping の場合は対象外.下の Limits)cache-key-and-trustの flow stepusage-help-and-error-exitsの$#,bare なhfunction-variables-local-near-useの: "$((count++))"tracing-not-left-on-for-secretsのフラグ連結(#243 の Limit)SKILL_NAMESが.で始まるディレクトリを拾うtest_main_is_thin_selects_…をcommand-query-namingが指摘するselectsなのは matcher の選択を検証するためerror-message-names-operationがguard_git.py:46,herdr_ownership.py:26を指摘する(#216)no-comment-restating-code,no-exposed-mutable-collection,no-reaching-through-collaborators,construction-separate-from-execution(言語ごと)Limits と範囲
tracing-not-left-on-for-secretsは,set +xのあと秘密の前で再びset -xするケース(bad_retraced_before_secret.bash:10)を 0.16 と判定し,clean と分離しない.advisory のまま rule.yml に記録した.job-permissions-least-privilegeとworkflow-default-shellは,jobs自体が flow mapping(jobs: {build: {...}})の workflow を選ばない.実際にはほぼ書かれない形.usage-help-and-error-exitsの bare なh)は,getopts ではないcaseのh)も選ぶ.モデル規則の matcher は広く取る方針(fix(lint): address review findings deferred from the #74 migration PRs #196)なので,criteria で判定する.cache-key-and-trustは,別のアクションの入力(with: {uses: actions/cache@v4})も選ぶ.余分な subject で,block 形式にも以前からある.祖先の条件で step の mapping に限る修正は matcher を変えて eval の取り直しが要るため,次の eval で直す.function-variables-local-near-useは,$(( flags <<= 1 ))のように<<=/>>=で代入する$(( ))を選ばない.次の eval で(<<|>>)=を加える.script-constants-readonlyは,同じ変数をトップレベルで再代入するスクリプトで余分に指摘し得る.layoutなし)の resume は,一致しないものとして扱い,最初からやり直す.🤖 Generated with Claude Code