Skip to content

fix(autopilot): move edited inventories out of .claude/ to stop permission stalls#822

Merged
takaokouji merged 1 commit into
developfrom
fix/move-inventory-out-of-claude
Jun 29, 2026
Merged

fix(autopilot): move edited inventories out of .claude/ to stop permission stalls#822
takaokouji merged 1 commit into
developfrom
fix/move-inventory-out-of-claude

Conversation

@smalruby3-editor-bot

Copy link
Copy Markdown

Summary

autopilot の implement/review が .claude/ 配下ファイルの編集で stall する問題(#820)を、
権限バイパスではなく根本原因の除去で解決する。

子 Claude は root で動くため bypassPermissions / --dangerously-skip-permissions は拒否される。
acceptEdits でも .claude/ 配下の編集は「自分の設定の編集」確認プロンプトが出て、無人実行が
止まっていた(#631/#633 の implement で実際に発生)。CLAUDE.md が必須とする prettier/マーカーの
一覧更新が .claude/ 配下にあったのが原因。

routine な bookkeeping で .claude/ を編集しないようにする。

Changes

  • prettier ミラー廃止: .claude/rules/{scratch-gui,scratch-vm}/smalruby-prettier-files.md を削除。
    .prettierignore(既に全ホワイトリストを保持)を唯一の真実にする(二重管理の解消)。
  • マーカー一覧を移動: docs/maintenance/smalruby-markers-gui.md / -vm.md
    (vm はマーカー節を scratch-vm/development.md から抽出)。
  • 参照の更新: CLAUDE.md と、旧パスを指していた .claude/rules/* / docs/*(計 25 ファイル)。

効果

通常の機能実装が編集するのは source / locale / .prettierignore / docs/ / tests のみ=
すべて .claude/ 外 → acceptEdits がそのまま通り、確認プロンプトで止まらない
root / sandbox バイパスは不要

.claude/ の編集が残るのは autopilot 自身(スキル/ルール)を直す稀なケースだけで、そこは
手動アンブロックで足りる。

注意

  • コード変更なし(docs / rules のみ)。.prettierignore は無変更=Prettier 対象は不変。
  • マージ後、稼働中 daemon を develop から再起動すると、以後の implement/review が
    .claude/ stall なしで無人完走できる。

Closes #820

🤖 Generated with Claude Code

…ssion stalls

The autopilot runner's child Claude runs as root, where bypassPermissions and
--dangerously-skip-permissions are refused. In acceptEdits mode, editing files
under .claude/ still triggers the "edit its own settings" prompt, which stalled
unattended implement/review runs (#631/#633) whenever they updated the prettier
or marker inventories that CLAUDE.md requires.

Fix the root cause instead of bypassing permissions: stop editing .claude/ for
routine bookkeeping.

- Drop the smalruby-prettier-files.md mirrors; .prettierignore is the single
  source of truth (it already carried the full whitelist).
- Move the marker inventories to docs/maintenance/smalruby-markers-{gui,vm}.md
  (extracted the vm list out of scratch-vm/development.md).
- Repoint CLAUDE.md and the rules/docs that referenced the old locations.

Now a normal feature implement edits only source / locale / .prettierignore /
docs / tests -- all outside .claude/ -- so acceptEdits never prompts. No root
or sandbox bypass needed.

Closes #820

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@smalruby3-editor-bot smalruby3-editor-bot Bot added 🤖 autopilot autopilot(AI)が管理する PR/Issue(AI処理対象) 🙋 HITL 人間の対応待ち(レビュー/判断/マージ) labels Jun 29, 2026
@smalruby3-editor-bot

smalruby3-editor-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

🤖 autopilot status

field value
Status Review
AI Status
HITL Yes
Size middle

Linked issue #633. Maintained by autopilot (single writer); do not edit.

@takaokouji takaokouji merged commit a19be1a into develop Jun 29, 2026
1 check passed
@takaokouji takaokouji deleted the fix/move-inventory-out-of-claude branch June 29, 2026 06:37
smalruby3-editor-bot Bot added a commit that referenced this pull request Jun 29, 2026
The smalruby-prettier-files.md mirrors were removed (#820/#822); .prettierignore
is now the single source of truth. Drop the dead doc references from the header
comments.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 autopilot autopilot(AI)が管理する PR/Issue(AI処理対象) 🙋 HITL 人間の対応待ち(レビュー/判断/マージ)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(autopilot): runner が .claude/ 編集の権限プロンプトで stall する (非対話化)

1 participant