Update phased-prompt tests for the rewritten awaiting-* scripts
The ceo-phased-prompts and e2e-flows suites pinned the old "Awaiting Org Approval" heading and the now-deprecated "HIRES FIRST. STRATEGY APPROVAL LAST." shouting caps. The rewritten awaiting-org prompt reads "Awaiting Org Strategy Approval" and describes the server-enforced ordering by code (STRATEGY_BEFORE_HIRES) rather than by imperative prose. Update the expected-phrase assertions to match.
This commit is contained in:
1 parent
a99f5e581f
commit
1d172c60f1
2 files changed
+9
-8
No files matched your search
@@ -25,13 +25,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. Check for both
|
||||
// the stable Step-2 marker and the new ordering guarantee that
|
||||
// blocks the self-loop the earlier prompt enabled.
|
||||
// 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.");
|
||||
expect(prompt).toContain("hires first, strategy approval last");
|
||||
expect(prompt).toContain("STRATEGY_BEFORE_HIRES");
|
||||
expect(prompt).toContain("Submit org strategy");
|
||||
expect(prompt).not.toContain("Awaiting Org Approval");
|
||||
expect(prompt).not.toContain("Awaiting Org Strategy Approval");
|
||||
expect(prompt).not.toContain("Goal Decomposition");
|
||||
});
|
||||
|
||||
@@ -79,7 +80,7 @@ describe("Step 2: CEO phased prompts", () => {
|
||||
});
|
||||
|
||||
const prompt = buildSystemPrompt(ctx);
|
||||
expect(prompt).toContain("Awaiting Org Approval");
|
||||
expect(prompt).toContain("Awaiting Org Strategy Approval");
|
||||
expect(prompt).not.toContain("Team Building Phase");
|
||||
expect(prompt).not.toContain("Goal Decomposition");
|
||||
});
|
||||
|
||||
@@ -61,7 +61,7 @@ describe("E2E: Full autonomous CEO cold start flow", () => {
|
||||
} as ApprovalRecord],
|
||||
});
|
||||
const phase1Prompt = buildSystemPrompt(phase1Ctx);
|
||||
expect(phase1Prompt).toContain("Awaiting Org Approval");
|
||||
expect(phase1Prompt).toContain("Awaiting Org Strategy Approval");
|
||||
|
||||
// 4. Board approves hires
|
||||
const hireApprovalCTO = shared.db.requestApproval({
|
||||
@@ -278,7 +278,7 @@ describe("Review Fix: Org gate consistency (revision_requested)", () => {
|
||||
});
|
||||
|
||||
const prompt = buildSystemPrompt(ctx);
|
||||
expect(prompt).toContain("Awaiting Org Approval");
|
||||
expect(prompt).toContain("Awaiting Org Strategy Approval");
|
||||
expect(prompt).toContain("revision_requested");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user