fix(confidence-engine): clarify relationship direction
This commit is contained in:
@@ -230,6 +230,21 @@ describe("v0.5 prompt", () => {
|
||||
expect(result.prompt).toContain("MUST reference IDs of semantic units");
|
||||
});
|
||||
|
||||
it("defines literal directional semantics for typed relationships", async () => {
|
||||
const { prompt } = await buildPrompt("Direction contract scenario", "v0.5");
|
||||
|
||||
expect(prompt).toContain("fromId → relationship → toId");
|
||||
expect(prompt).toContain("A depends_on B");
|
||||
expect(prompt).toContain("A causes B");
|
||||
expect(prompt).toContain("A may_cause B");
|
||||
expect(prompt).toContain("A supports B");
|
||||
expect(prompt).toContain("A weakens B");
|
||||
expect(prompt).toContain("FROM [relationship] TO");
|
||||
expect(prompt).toMatch(
|
||||
/`?compares_with`? may use either endpoint order/,
|
||||
);
|
||||
});
|
||||
|
||||
it("retains the provenance stop boundary and interpretation separation", async () => {
|
||||
const { prompt } = await buildPrompt("Contract retention scenario", "v0.5");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user