Repository navigation
fix: Codex enforcing harnessをP0 quarantine - #1849
Merged
Merged
Conversation
Contributor
Preview URLPreview removed (PR #1849 closed). |
squne121
marked this pull request as ready for review
July 29, 2026 17:00
This was referenced Jul 29, 2026
squne121
added a commit
that referenced
this pull request
Jul 30, 2026
…#1864) * fix: Codex permission profile root default を :workspace に復元する (#1859) PR #1849 の P0 quarantine が root scope の default_permissions を完全に削除し、 非空の [permissions] profile を持つ設定で Codex CLI 0.146.0 の loader が `config defines [permissions] profiles but does not set default_permissions` を返す回帰を招いた(codex status / App Server skills/list reload / 対話 TUI Skill refresh が失敗する)。 root default を OpenAI 公式 built-in profile ":workspace"(active workspace roots + system temporary directories への read/write に限定)として復元し、 JS/Python 両 validator に root default の存在・値・スコープ([features] への 誤配置拒否)・legacy sandbox_mode 混在拒否・未定義 custom profile 参照拒否を 追加した。read-only/write-capable custom agent の agent-local default_permissions(loop-protocol-readonly / loop-protocol-rtk)は変更せず、 PR #1849 の passive advisory recorder quarantine も解除しない。 tests/codex/test_codex_permission_profile_config.py を新設し、root default の semantic contract、mutation test(root default 除去/misplacement/ undefined profile/legacy sandbox_mode 混在の reject)、Codex CLI 非依存の static validation、isolated-home loader smoke(`codex doctor --json` の config.load check)を検証する。docs/dev/agent-runtime-ops.md に責務分担と rollback 手順を追記した。 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix: PR Body Japanese Check の prose block 日本語比率不足を解消する `read-only inspection` の箇条書きが日本語比率 0.071 で per-block threshold (0.1) を下回っていた。日本語訳を併記して比率を回復する。 * fix: Codex root default を network 対応 personal-dev profile へ再改訂する (#1859) owner の敵対的レビュー4blocker(:workspace read境界誤説明・isolated-home project trust不在・AC2/AC4 runtime verification未実施・JS validatorの regex誤検知見逃し)を受け、root default_permissions を built-in ":workspace" literal から、これを継承しnetworkを有効化した repository-defined custom profile "loop-protocol-personal-dev" へ変更する。 JS/Python validatorをparsed TOML構造ベースのsemantic検証へ書き換え、 mutation testを14件追加し、isolated-home trusted project登録込みの positive/negative controlを実装する。 * test: PR #1864 runtime verification 証跡を追加する (#1859) TESTED_COMMIT_SHA 22eb7f0 に対する runtime verification(App Server skills/list reload round-trip・root runtime probe・read-only/write-capable custom agent の実 spawn_agent dispatch・herdr 経由 TUI /status・isolated-home trusted project positive/negative control)の証跡を SHA256 manifest 付きで格納する。 readonly/write agent dispatch 証跡には、この WSL2 環境の既知の codex sandbox self-binary ENOENT 制約により agent-local permission profile の実効境界を確定できなかった旨を正直に記録する。 --------- Co-authored-by: Claude Sonnet 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.
概要
Closes #1830
このPRのマージによりIssue #1830を完了する。
P0緊急変更として、Issue comment #5119825424 を同一Issueへ統合した。
Codex project-local enforcing harnessをquarantineし、完全非阻害のadvisory recorderだけを維持する。
過去のordering dependencyは意図的に解除した。
変更内容
SessionEndと任意のSubagentStopだけに限定したSubagentStopの標準出力を厳密な{"continue":true}に固定した維持する安全制御
approval_policy = "on-request"を維持受け入れ条件の達成状況
各受入基準を実装、検証、安全境界へ対応付け、未検証項目を残さない。
[features].hooks = trueを維持。TOML parseとCIで確認。並列テスト設計
一時repositoryに異なるIssue番号・異なるHEADのlinked worktreeを2つ作り、
実際の2 subprocessを重ねて実行する。逐次的なambient env切替をauthorityにせず、
worktreeごとのbranch/cwd/live HEADを独立に検証する。
検証コマンド結果
git diff --check: 成功外部一次資料
approval_policy = "on-request"とproject config既知の制限
Schema Change Applicability
decision: not_schema_change(公開schema変更なし)
判定は公開schema変更なしであり、適用対象外とする。
Allowed Paths 遵守
GitHub Pull Request files APIで取得した全changed pathは、更新後のIssue #1830
Allowed PathsまたはAdditional Allowed Pathsに一致する。違反は0件である。
Runtime Verification Evidence(実行時検証証拠)
公開schemaの変更はない。
Safety Claim Matrix
Schema Consumer Inventory
public schema changeは
not_applicable。workflow consumer、FF executor、hook validator、tests、docsを同一PRで更新した。