reasoning: normalise graph relationship contract at proposal boundary

This commit is contained in:
2026-08-10 06:16:47 +01:00
parent cf6c5cb57f
commit 46503b4507
3 changed files with 163 additions and 0 deletions
+13
View File
@@ -62,6 +62,19 @@ function applyKnownEnumAliases(proposal, normalisationsApplied) {
});
}
if (Array.isArray(proposal.addedEdges)) {
proposal.addedEdges = proposal.addedEdges.map((edge, index) => {
if (edge?.relationship === "affects") {
normalisationsApplied.push({
path: ["addedEdges", index, "relationship"],
change: "Converted affects to other",
});
return { ...edge, relationship: "other" };
}
return edge;
});
}
return proposal;
}