This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 13:19:43 -04:00
1 parent aba2dac3c5
commit dffeccf3e2
17 files changed
+1296 -120

No files matched your search

@@ -28,10 +28,10 @@ describe("Step 2: CEO phased prompts", () => {
// 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("file 3–5 `hire_agent` tool calls");
expect(prompt).toContain("Do this first — file the hires");
expect(prompt).toContain("STRATEGY_BEFORE_HIRES");
expect(prompt).toContain("STRATEGY_ALREADY_FILED");
expect(prompt).toContain("file_approval.strategy.before_hires");
expect(prompt).toContain("file_approval.strategy.already_filed");
expect(prompt).not.toContain("Awaiting Org Strategy Approval");
expect(prompt).not.toContain("Goal Decomposition");
});
@@ -174,7 +174,7 @@ describe("work_products archived visibility", () => {
expect(
harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}
@@ -236,7 +236,7 @@ describe("work_products bulk retirement", () => {
expect(second).toHaveLength(0);
expect(
harness.db.documentsMod.resolveWorkProductTarget(id, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}
@@ -278,7 +278,7 @@ describe("work_products bulk retirement", () => {
expect(
harness.db.documentsMod.resolveWorkProductTarget(workProductId, harness.companyId),
).toBeNull();
).toMatchObject({ kind: "error", reason: "archived" });
} finally {
harness.db.close();
}