mirror of
https://github.com/wassname/pi-plan.git
synced 2026-09-26 14:10:23 +08:00
Replace historical docs, trial output and dead runtime with current source, agent definition and reusable scripts. Bundle pinned worker, Intercom and scheduler dependencies via Pi manifest. Retain 71 current tests, including real RPC proposal/editor/Ready checks and evidence edge cases; lint/typecheck pass. Historical material remains available at f22d83c.
Co-Authored-By: Pi/OpenAI <288921227+claudypoo@users.noreply.github.com>
22 lines
1.4 KiB
TypeScript
22 lines
1.4 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { planDrafting } from "../src/prompts.js";
|
|
|
|
describe("planning prompt", () => {
|
|
it("requires fact finding or a focused question before a goal", () => {
|
|
expect(planDrafting).toContain("Use read-only repository tools or web search when either can\nresolve a fact.");
|
|
expect(planDrafting).toContain("Do not use a question quota");
|
|
expect(planDrafting).toContain("Briefly reframe the request in your own words to check comprehension");
|
|
expect(planDrafting).toContain("point as unknown; do not silently replace it with an inference or turn it into a new blocking decision");
|
|
expect(planDrafting).toContain("answer materially reduces uncertainty\nwhile discovering the right plan");
|
|
expect(planDrafting).toContain("self-contained: state the relevant\ncontext, use the human's language and ASD-STE100");
|
|
expect(planDrafting).toContain("placeholder goal such as \"work out the thing\"");
|
|
expect(planDrafting).toContain("Only withhold Ready for an unanswered choice that changes scope, spending, or the user-visible result");
|
|
});
|
|
|
|
it("anchors work and sign-off to the user-visible result", () => {
|
|
expect(planDrafting).toContain("## User-visible result");
|
|
expect(planDrafting).toContain("Take it from the original request, not from your implementation plan");
|
|
expect(planDrafting).toContain("Future work may not defer any artifact or action named there");
|
|
});
|
|
});
|