fix(confidence-engine): enforce relationship endpoint references
This commit is contained in:
@@ -253,6 +253,18 @@ describe("v0.5 prompt", () => {
|
||||
expect(prompt).toContain("MUST NOT replace the supplied higher-order intervention-fit dependency");
|
||||
});
|
||||
|
||||
it("requires relationship endpoints to reuse emitted semantic-unit IDs", async () => {
|
||||
const { prompt } = await buildPrompt("Endpoint integrity scenario", "v0.5");
|
||||
|
||||
expect(prompt).toContain("Complete the semantic-unit collections first; only then construct relationships");
|
||||
expect(prompt).toContain("copy `fromId` and `toId` exactly from IDs already emitted");
|
||||
expect(prompt).toContain("never generate a new relationship-only ID");
|
||||
expect(prompt).toContain("add that semantic unit to the appropriate existing collection first");
|
||||
expect(prompt).toContain("omit the relationship rather than substituting a related endpoint");
|
||||
expect(prompt).toContain("check every relationship by finding both endpoint IDs in emitted semantic units");
|
||||
expect(prompt).toContain("not evidence that its meaning is justified");
|
||||
});
|
||||
|
||||
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