Make team-building prompt single-action, POST-first

Operator reports that a new CEO burns heartbeat after heartbeat on
filesystem analysis without ever filing a hire_agent approval — the
previous four-step structure (analyse → design → hire → strategy)
encouraged the model to stop after the analysis step thinking it had
made progress. Every subsequent wake re-read the same README and
package.json and returned.

Rewrite team-building.en.md as a single directive: file 3–5 hires
this wake, show the exact POST /agents curl, then file the single
approve_ceo_strategy. Analysis becomes a 20-second optional
side-note; plan-document writing is explicitly prohibited. The
strategy POST still rides on the server-enforced 409 gates from the
earlier fix. No new business logic, only prompt shape.
This commit is contained in:
ZacharyZhang-NY committed 2026-04-19 19:44:04 -04:00
1 parent f59acd2778
commit e438d619dc
2 files changed
+60 -46

No files matched your search

@@ -24,14 +24,14 @@ describe("Step 2: CEO phased prompts", () => {
const prompt = buildSystemPrompt(ctx);
expect(prompt).toContain("Team Building Phase");
// The rewritten prompt uses "Design a minimal org" instead of the
// old "Design the Organization Structure" header. The hires-first
// rule is now server-enforced at /approvals with 409 codes, so the
// prompt describes the contract instead of begging the model.
expect(prompt).toContain("Design a minimal org");
expect(prompt).toContain("hires first, strategy approval last");
// The rewritten prompt is action-first: it names the single job,
// shows the hire POST curl up front, and reaches for the
// server-enforced STRATEGY_BEFORE_HIRES / STRATEGY_ALREADY_FILED
// codes instead of prose ordering directives.
expect(prompt).toContain("file 3–5 `hire_agent` requests");
expect(prompt).toContain("Do this first — file the hires");
expect(prompt).toContain("STRATEGY_BEFORE_HIRES");
expect(prompt).toContain("Submit org strategy");
expect(prompt).toContain("STRATEGY_ALREADY_FILED");
expect(prompt).not.toContain("Awaiting Org Strategy Approval");
expect(prompt).not.toContain("Goal Decomposition");
});