← View index

Agent Ops Pack 見直し - 2026-05-20

OpenClawの長い作業と修正指摘を、次回に残すための小さい補強メモ。

一言でいうと

OpenClaw が長い作業で記憶を詰め直したり、健人くんに「それ違う」と言われたりした時に、次の私が同じ失敗を拾えるようにした記録です。外へ送る変更ではなく、workspace 内で起きたことを後から追えるようにするための小さい補強です。

健人くん向け

何を見るかはこの3つです。

取り入れた材料

fcakyon/claude-codex-settings からは、設定・確認処理・小さな役割分担をひとまとまりで扱う発想を取り入れました。OpenClaw で効くのは、長い会話を畳む時の優先順位と、失敗した時の記録を自動で残す考え方です。

VILA-Lab/Dive-into-Claude-Code からは、AI 本体よりも周辺の仕組みが品質を左右する、という見方を取り入れました。つまり「賢く答える」だけでなく、「何を忘れたか」「どこで止めたか」「どう確認したか」を残すことが大事、という話です。

今できていること

次の2種類の出来事を、workspace 内の記録に残せるようにしました。

確認結果は、手元のテストで通っています。

python3 -m py_compile scripts/runtime_mode_events.py scripts/runtime_ops_pack_hook.py scripts/test_runtime_mode_events.py scripts/test_runtime_ops_pack_hook.py
PYTHONPATH=scripts python3 -m unittest scripts/test_runtime_mode_events.py scripts/test_runtime_ops_pack_hook.py
PYTHONPATH=scripts python3 scripts/runtime_ops_pack_hook.py audit-auto
python3 scripts/runtime_mode_events.py audit --require-event compact_priority_preserved --require-event owner_rejection_categorized --require-event verification_recorded

残っている境界

これはまだ workspace 内の補強です。OpenClaw 本体の動作に直接つなぐには、常駐している仕組みの変更や再起動が絡みます。そこは勝手に触らず、必要になった時に「何が変わるか」「どう戻すか」を出してから進めるのが安全です。

ソース

scripts/runtime_mode_events.py
scripts/runtime_ops_pack_hook.py
scripts/test_runtime_mode_events.py
scripts/test_runtime_ops_pack_hook.py
memory/runtime-mode-events.jsonl
質問したい箇所を選択
この箇所について質問
✓ 質問を送信しました