refactor(reconstruction): strengthen open-question semantic fidelity
This commit is contained in:
@@ -211,6 +211,23 @@ describe("v0.5 prompt", () => {
|
||||
expect(result.prompt).toContain("Default prompt scenario");
|
||||
});
|
||||
|
||||
it("requires Open Questions to express the canonical uncertainty without taking over focused investigation", async () => {
|
||||
const { prompt } = await buildPrompt("Semantic equivalence scenario", "v0.5");
|
||||
|
||||
expect(prompt).toContain("canonical uncertainty meaning in `description`");
|
||||
expect(prompt).toContain("express that same uncertainty in `question`");
|
||||
expect(prompt).toContain("concise, natural, direct interrogative");
|
||||
expect(prompt).toContain("semantically equivalent");
|
||||
expect(prompt).toContain("subject, epistemic openness, material scope, timing, conditions, and qualifications");
|
||||
expect(prompt).toContain("without assuming the unresolved outcome has occurred or adding unsupported premises");
|
||||
expect(prompt).toContain("Do not narrow the uncertainty to one possible indicator or form of evidence");
|
||||
expect(prompt).toContain("evidence-gathering belongs to focused investigation");
|
||||
expect(prompt).toContain('"importantUnknowns"');
|
||||
expect(prompt).toContain('"description": "<the canonical uncertainty meaning>"');
|
||||
expect(prompt).toContain('"question": "<a natural direct question for the user>"');
|
||||
expect(prompt).toContain("Return ONLY the JSON object");
|
||||
});
|
||||
|
||||
it("keeps explicit v0.4 unchanged", async () => {
|
||||
const result = await buildPrompt("Explicit v0.4 scenario", "v0.4");
|
||||
|
||||
@@ -218,6 +235,8 @@ describe("v0.5 prompt", () => {
|
||||
expect(result.prompt).toContain(
|
||||
"with no dedicated schema field MUST be preserved explicitly in summary",
|
||||
);
|
||||
expect(result.prompt).not.toContain("semantically equivalent");
|
||||
expect(result.prompt).not.toContain("evidence-gathering belongs to focused investigation");
|
||||
});
|
||||
|
||||
it("loads the v0.5 relationship contract", async () => {
|
||||
|
||||
Reference in New Issue
Block a user