Преглед изворни кода

Tighten scheduler reminder wording

Alvin Unreal пре 3 месеци
родитељ
комит
ebbfb8290a
3 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 3
      src/config/constants.ts
  2. 2 0
      src/utils/session-manager.test.ts
  3. 1 1
      src/utils/session-manager.ts

+ 1 - 3
src/config/constants.ts

@@ -93,9 +93,7 @@ export const FALLBACK_FAILOVER_TIMEOUT_MS = 15_000;
 export const DEFAULT_MAX_SUBAGENT_DEPTH = 3;
 export const DEFAULT_MAX_SUBAGENT_DEPTH = 3;
 
 
 // Workflow reminders
 // Workflow reminders
-export const PHASE_REMINDER_TEXT = `!IMPORTANT! Recall the workflow rules:
-Understand → build a short work graph with independent lanes, dependencies, and advisory ownership → dispatch independent specialists as background tasks → record task/session IDs → continue orchestration → poll task_status for terminal results → reconcile → verify.
-Only consume outputs or advance dependent work when background results are terminal. !END!`;
+export const PHASE_REMINDER_TEXT = `!IMPORTANT! Scheduler workflow: plan lanes/dependencies → dispatch background specialists → track task IDs → poll task_status → reconcile terminal results → verify. Do not consume running-job output or advance dependent work. !END!`;
 
 
 // Tmux pane spawn delay (ms) — gives TmuxSessionManager time to create pane
 // Tmux pane spawn delay (ms) — gives TmuxSessionManager time to create pane
 export const TMUX_SPAWN_DELAY_MS = 500;
 export const TMUX_SPAWN_DELAY_MS = 500;

+ 2 - 0
src/utils/session-manager.test.ts

@@ -26,6 +26,8 @@ describe('SessionManager', () => {
     });
     });
 
 
     const prompt = manager.formatForPrompt('parent-1');
     const prompt = manager.formatForPrompt('parent-1');
+    expect(prompt).toContain('completed/reconciled threads');
+    expect(prompt).toContain('Background Job Board');
     expect(prompt).toContain('exp-1 first thread');
     expect(prompt).toContain('exp-1 first thread');
     expect(prompt).toContain('exp-3 third thread');
     expect(prompt).toContain('exp-3 third thread');
     expect(prompt).not.toContain('exp-2 second thread');
     expect(prompt).not.toContain('exp-2 second thread');

+ 1 - 1
src/utils/session-manager.ts

@@ -258,7 +258,7 @@ export class SessionManager {
 
 
     return [
     return [
       '### Resumable Sessions',
       '### Resumable Sessions',
-      'Reuse only for clear continuation of the same thread. Otherwise start fresh.',
+      'Reuse only completed/reconciled threads. Poll running jobs from Background Job Board.',
       '',
       '',
       ...lines,
       ...lines,
     ].join('\n');
     ].join('\n');