From b6ae39bf3e81112a1877187e81106550fca64384 Mon Sep 17 00:00:00 2001 From: toki Date: Sat, 15 Aug 2026 10:35:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(edge):=20worker=20=EC=82=B0=EC=B6=9C?= =?UTF-8?q?=EB=AC=BC=20=EA=B2=BD=EA=B3=84=EB=A5=BC=20plan=EC=97=90=20?= =?UTF-8?q?=EA=B3=A0=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/edge/internal/openai/provider_model_rewrite.go | 3 ++- apps/edge/internal/openai/provider_model_rewrite_test.go | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/edge/internal/openai/provider_model_rewrite.go b/apps/edge/internal/openai/provider_model_rewrite.go index 0fc9a883..28ee48fb 100644 --- a/apps/edge/internal/openai/provider_model_rewrite.go +++ b/apps/edge/internal/openai/provider_model_rewrite.go @@ -43,7 +43,8 @@ You are the Planner. Apply this compact Plan workflow before authoring the pair: Copy every exact literal, filename, command, and required output string from the task verbatim into an executable Plan step or Verification bullet. 3. Convert that analysis into 2-6 closed, executable steps. The Worker must be able to implement without rediscovering requirements or choosing among alternatives. 4. Write 1-3 deterministic verification bullets with observable pass conditions. -5. Make the final Plan step require the Worker to read the pending REVIEW path above, then as the Work stage's final action replace that same file while preserving its exact headings. Every Plan item status must be exactly "completed"; actual changes, actual verification evidence, and deviations must be non-empty. +5. Resolve every requested output path against the caller workspace current working directory. Never place a task output beside PLAN or anywhere under .iop unless the immutable user task explicitly requests that exact path. +6. Make the final Plan step require the Worker to read the pending REVIEW path above, then as the Work stage's final action replace the whole file with one full-file Write operation while preserving its exact headings. Never use Edit or Patch for this handoff. Every Plan item status must be exactly "completed"; actual changes, actual verification evidence, and deviations must be non-empty. Write every PLAN field in English using ASCII characters only and use exactly this grammar: # Plan diff --git a/apps/edge/internal/openai/provider_model_rewrite_test.go b/apps/edge/internal/openai/provider_model_rewrite_test.go index b1693909..f5b42576 100644 --- a/apps/edge/internal/openai/provider_model_rewrite_test.go +++ b/apps/edge/internal/openai/provider_model_rewrite_test.go @@ -321,7 +321,11 @@ func TestHotPathSelectorPairInstructionCarriesCompactPlanContract(t *testing.T) "Preserve every explicit requirement, constraint, deliverable, and acceptance condition.", "Copy every exact literal, filename, command, and required output string", "The Worker must be able to implement without rediscovering requirements", + "Resolve every requested output path against the caller workspace current working directory.", + "Never place a task output beside PLAN or anywhere under .iop", "Make the final Plan step require the Worker to read the pending REVIEW path", + "replace the whole file with one full-file Write operation", + "Never use Edit or Patch for this handoff.", "Every Plan item status must be exactly \"completed\"", "actual verification evidence", } {