Repository navigation
docs(skills): name the Codex adversarial review as the lane review command - #17
Merged
Merged
Conversation
…mmand The lane skills only said "the Codex review command", so a lane picked codex-companion.mjs review. Its separate review thread never runs SessionStart, and the verification hook rejects its git diff. Name adversarial-review with --wait --base origin/main and say why review is not used. Closes #14 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
## 概要 固定版の agent-harness で `agents/` を描画して `agent-harness verify` を通すジョブと,描画した Codex execpolicy 規則を固定版 Codex で照合するジョブを CI に追加する. Closes #10 実装計画: #10 (comment) ## 変更点 - `.github/actions/install-agent-harness/action.yml`:test ジョブにあった固定版 agent-harness の導入手順(rev 解決,cache,Rust,`cargo install`,PATH 追加)を composite action に抽出し,test・render・execpolicy の 3 ジョブで共有する(計画のファイル一覧に対する追加.Issue 上で合意済み) - `tests/codex/execpolicy.bats`:`agent-harness install` で配置された `.codex/rules/default.rules` を `codex execpolicy check` で照合する(許可 `git fetch origin`,確認 `uvx ruff check`,拒否 `brew install ffmpeg`) - `.github/workflows/ci.yml`:`render` と `execpolicy` ジョブを追加し,`all-green` の前提に入れる - Codex は既に `package.json` / `package-lock.json` で 0.162.1 に固定済みのため変更なし ## 補足 - composite action 内の `GITHUB_PATH` 書き込みは zizmor の `github-env` に該当するが,書き込み先は固定の runner ディレクトリなので行内で抑止している - 既存の pytest(`tests/codex/test_execpolicy.py`)は `generate-codex-rules` の出力を網羅的に照合し,今回の bats は実際に install される規則ファイルを代表例で照合する 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
#6) ## 概要 `package.json` と `package-lock.json` を消すだけの差分で,Stop フックの検証が `invalid test configuration` を返していた問題を直す. - `scope_plan` に `removed` 判定を追加した.目印(`project_markers`)が 1 つも残っておらず,その言語に掛かった変更(ソース拡張子または `full_suite_triggers` に一致するもの)がすべて削除済みで,さらにその言語のソースがリポジトリに 1 つも残っていなければ,その言語を計画から外す.JS に限らず全言語に適用する - `project_markers` の判定自体は緩めていない.目印だけ消してソースが残る場合,JS ソースを変えたのに目印がない場合は従来どおりエラー - 目印の判定を `recognizable` / `project_markers` にまとめ,`missing_marker` と共有した - `check_selection.py` が 500 行制限を超えたため,Selection に依存しない JS のパッケージマネージャとランナーの判定を `agents/hooks/lib/javascript_runner.py` に切り出した(振る舞いは変えていない) Refs #5 計画:#5 (comment) ## 計画からの変更 - 計画の条件に「その言語のソースがリポジトリに残っていない」を加えた(ユーザー承認済み).計画どおりだと既存の `test_deleted_project_marker_is_reported_instead_of_passing`(`pyproject.toml` の削除を報告する)と矛盾するため.このテストは `.py` が残る状況に書き換えて契約を保った - `test_sources_without_a_project_marker_report_instead_of_passing` は変更対象のファイルをディスクに置くようにした.置かないと「削除」を表すことになり,新しい規則の対象になるため - 行数制限のための `javascript_runner.py` への切り出し ## 検証 - 追加テスト:言語ごとのプロジェクト削除(JS,Python,Rust)でスキップ,JS ソースを変えて目印なしでエラー,ロックファイルが残り目印なしでエラー,`foo.py` 削除でテストが残れば関連テストを実行 - 1 行目(プロジェクト削除)のテストは修正前に 3 件とも `require a project marker` で失敗することを確認した - `uv run --frozen pytest --no-header -q tests`:2521 passed - shared verify:passed.pre-commit(ruff,ty,file-length ほか):passed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…figs (#16) ## 概要 dotfiles がなくてもフックが整形できるように,既定の dprint と prettier の設定を agent-config に同梱しました. - `agents/hooks/defaults/dprint.json` と `prettier.json` を追加しました.中身は dotfiles の `dprint/dprint.json` と `prettier/.prettierrc` と同じです.agent-harness は `agents/hooks` 以下の全ファイルをコピーするので,同梱した設定は `~/.claude/hooks/defaults/` に配置されます. - 設定は「プロジェクト → `~/dprint.json`・`~/.prettierrc` → 同梱の既定」の順に探します(`formatter_policy.personal_config`).prettierd の `PRETTIERD_DEFAULT_CONFIG` にも同じ順序を使います. - `project_files` は上位ディレクトリをたどってホームディレクトリまで上がると,`~/dprint.json` と `~/.prettierrc` をプロジェクトの宣言として拾っていました.そのため `~` の下にあって自前の設定を持たない JSON や TOML は「conflict」になり,整形されませんでした.今回の修正で,ホーム(`resolve()` 済み)ではこの 2 つの個人設定だけを除外します.ホームそのものがプロジェクトの場合も,ほかの宣言はこれまでどおり有効です. - Claude の sandbox の `allowWrite` に `~/.cache/dprint` を追加しました(Linux での dprint のキャッシュ先です). Refs #8 計画:#8 (comment) (hooks レーン) ## 検証 - 共有検証(`verification_session.py verify`):pytest 全体で 2521 件成功 - 追加したテスト:`tests/hooks/test_formatter_config.py`(優先順位,同梱の既定への切り替え,シンボリックリンクのホーム,ホーム自体がプロジェクトの場合),`tests/test_python_runtime.py`(描画後に既定の設定ファイルが配置されること),`tests/claude/test_settings.py`(`~/.cache/dprint` の許可) - Codex レビューで 2 件の指摘(ホームがシンボリックリンクの場合,ホーム自体がプロジェクトの場合)を受け,修正しました.再レビューで新しい指摘はありませんでした. ## 計画との違い - ホームディレクトリでの探索の修正は計画に含まれていませんでした.同じ優先順位の不具合なので,ユーザーの確認を得てこのレーンに含めました. - 優先順位のテストを `test_lint_format.py` から `test_formatter_config.py` に分けました.ファイルが 500 行の上限を超えたためです. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…mmand The lane skills only said "the Codex review command", so a lane picked codex-companion.mjs review. Its separate review thread never runs SessionStart, and the verification hook rejects its git diff. Name adversarial-review with --wait --base origin/main and say why review is not used. Closes #14 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Review of Claude's implementation runs codex-companion.mjs task without --write, with the requirements location, diff range, focus, and read-only intent in the prompt. review is never used because its thread skips SessionStart; adversarial-review is only for challenging the design. Closes #14 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nto docs/codex-adversarial-review # Conflicts: # agents/skills/git-workflow/references/branches.md # agents/skills/herdr-delegation/SKILL.md
The read-only task review prompt now asks for P0 to P3 tags, allows reading any file, and prefers no finding over a weak one. A lane runs at most two reviews and fixes only P0 and P1; the rest goes to the user. review stays unused until the verification hook accepts its thread. Closes #14 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
レーンが Claude の実装を Codex にレビューさせるとき,skill が「the Codex review command」としか書いていなかったため,レーンが
codex-companion.mjs reviewを選び,検証の hook に拒否されました(#11).レビューに使うコマンドと,回数・直す範囲の決まりを書きます.agents/skills/git-workflow/references/branches.mdagents/skills/herdr-delegation/SKILL.mdtask "<prompt>"(--writeなし)origin/main...HEAD,読み取り専用であること,どのファイルでも読んで確かめてよいこと,指摘ごとに P0〜P3 を付けること,弱い指摘より指摘なしを選ぶこと,文体と名前は指摘しないことを入れるreviewadversarial-reviewレビューは最初と確認の 2 回まで.自動で直すのは P0 と P1 だけで,P2 以下と設計の判断は PR 本文か Issue に書いてユーザーに回します.
LANE-READYの条件も「P0 と P1 の指摘が残っていない」に合わせました.実装の依頼(task --write,codex:rescue)の記述は変えていません.対象外
reviewの会話を hook で通せるようにすること(#19).テスト
文言を固定するテストは追加していません(
tests/test_workflow_skill_layout.pyは prose の主張を検査しない方針).uv run pytest tests/test_workflow_skill_layout.pyは 64 件成功しました.レビュー
新しい決まりに沿った
taskで 1 回レビューし,指摘はありませんでした.Codex のサンドボックスでは pytest を実行できず,テストの合格はレーン側と CI で確認しています.履歴
方針の変更ごとに書き換えたため,コミットが複数あります(squash merge 前提).
Closes #14
🤖 Generated with Claude Code