Preserve P18 native evidence and deliver recorded Opus repair direction

This commit is contained in:
Takeshi
2026-10-13 14:34:06 +09:00
parent c77639a9d7
commit a0f556e135
15 changed files with 186 additions and 7 deletions
@@ -31,6 +31,7 @@ def owner_model_llm(self, task_id, role, service, prompt, cwd, schema):
chosen = decision.get('codex_model')
if decision.get('task_id') != task_id or decision.get('action') != 'run' or chosen not in ALLOWED_CODEX_MODELS or not str(decision.get('codex_model_reason', '')).strip():
raise ValueError('A recorded Claude run decision with explicit model and reason is required')
prompt = ("Recorded Claude commander run direction for this exact fixed task. Apply within the immutable spec, scope and acceptance; do not widen them.\n" + json.dumps(decision, ensure_ascii=False) + "\n" + prompt)
self._owner_codex_model = chosen
try:
return original_llm(self, task_id, role, service, prompt, cwd, schema)