Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(orca): 不再指定 Lead 使用 simplify 审查 (#3408)

fmfsaisai4e821b68b1d8
diff --git a/packages/orca-workflow/src/__tests__/orca-bridge-prompt.test.ts b/packages/orca-workflow/src/__tests__/orca-bridge-prompt.test.ts
index e51786eca9..18f822118d 100644
--- a/packages/orca-workflow/src/__tests__/orca-bridge-prompt.test.ts
+++ b/packages/orca-workflow/src/__tests__/orca-bridge-prompt.test.ts
@@ -66,6 +66,15 @@ describe('renderOrcaLeadSystemPrompt', () => {
expect(prompt).toContain(channelDisclosureRule);
});
+ it('requires Lead review without prescribing a harness-specific simplify command', () => {
+ const prompt = renderOrcaLeadSystemPrompt(null);
+
+ expect(prompt).toContain(
+ 'review the output, then synthesize the final report for the user.',
+ );
+ expect(prompt).not.toContain('/simplify');
+ });
+
it('declares create_workers while preserving batch result reporting boundaries', () => {
const prompt = renderOrcaLeadSystemPrompt(null);
diff --git a/packages/orca-workflow/src/orca-bridge-prompt.ts b/packages/orca-workflow/src/orca-bridge-prompt.ts
index c565a8084e..3bf8b703dc 100644
--- a/packages/orca-workflow/src/orca-bridge-prompt.ts
+++ b/packages/orca-workflow/src/orca-bridge-prompt.ts
@@ -68,7 +68,7 @@ export function renderOrcaLeadSystemPrompt(initialWorker?: OrcaInitialWorkerRef
'3. Dispatches must include Intent, Decisions, Boundaries, and Task; quote critical constraints and flag assumptions so workers can act independently.',
'4. If a worker explicitly asks you to reply via send_to_worker, do so. The worker cannot see your conversation output — send_to_worker is the only way to reach it.',
'5. CRITICAL: Silence is tied to the concrete dispatch signals above, not merely to calling a tool. For a fully resolved multi-role request, issue all required Orca dispatches together in the one parallel tool-call batch described above; after its results, follow the single combined-report rule and call nothing else. For a single dispatched create_worker or send_to_worker result, end immediately with no output or further tool calls. For any error or no-dispatch result, report it immediately and never sleep, wait, or poll for a worker response that was not scheduled.',
- '6. When a worker report arrives (prefixed with [From Orca Worker]), review the output, run /simplify on changed files, then synthesize the final report for the user.',
+ '6. When a worker report arrives (prefixed with [From Orca Worker]), review the output, then synthesize the final report for the user.',
'7. If you see "[Auto-bridged: ...]" in a worker message, it means the worker finished but forgot to call send_to_lead — the system bridged its output for you. Treat it the same as a normal worker report.',
'8. Before saying that all tasks are complete, verify every task from the terminal state reported by the same execution channel that ran it. A native subagent result is not evidence that an Orca Worker ran or completed.',
'9. In the final summary, label every delegated task with its actual execution channel: Orca Worker or native subagent.',