@githolon/dsl 0.61.2 → 0.61.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/codegen_proof.ts +5 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@githolon/dsl",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Nomos 2 domain-authoring DSL: aggregates + directives in TS, executed and encoded to the Rust kernel's wire shapes.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/codegen_proof.ts
CHANGED
|
@@ -2108,17 +2108,16 @@ export function legsForDomain(mod: DomainModule, modules: readonly DomainModule[
|
|
|
2108
2108
|
// only the first left the other children compile-valid-only (unprovable through their birth).
|
|
2109
2109
|
const parentBirths = allBirths.filter((b) => b.parentDomain === domain);
|
|
2110
2110
|
const childBirths = parentBirths.map((b) => {
|
|
2111
|
-
const withParent = attachParentSetup(b, allBirths);
|
|
2112
2111
|
// BIRTHS ISOLATION: with >1 birth leg, uniquify each leg's synthesized child so the legs don't collide
|
|
2113
2112
|
// on one generated child workspace name (the discriminator = the birth directive id, unique per leg).
|
|
2113
|
+
// MUTABLE leg — uniquify does NOT short-circuit the relationSetup attachment below (co2's two sibling
|
|
2114
|
+
// gated births both need BOTH: a distinct child AND the seeded authority chain).
|
|
2115
|
+
let withParent = attachParentSetup(b, allBirths);
|
|
2114
2116
|
if (parentBirths.length > 1) {
|
|
2115
2117
|
const birthDir = (mod.directives as Directive<unknown>[]).find((d) => d?.id === b.birthDirectiveId);
|
|
2116
2118
|
const schema = birthDir?.payloadSchema as z.ZodTypeAny | undefined;
|
|
2117
|
-
const
|
|
2118
|
-
|
|
2119
|
-
if (uniq !== withParent.birthPayload) {
|
|
2120
|
-
return { ...withParent, birthPayload: uniq };
|
|
2121
|
-
}
|
|
2119
|
+
const uniq = uniquifyBirthPayload(withParent.birthPayload, b.birthDirectiveId, schema);
|
|
2120
|
+
if (uniq !== withParent.birthPayload) withParent = { ...withParent, birthPayload: uniq };
|
|
2122
2121
|
}
|
|
2123
2122
|
// A GATED birth with no parent-birth authority path: seat its relation via the SAME granter/seed
|
|
2124
2123
|
// discovery the relation-bootstrap leg uses (the law's own authority path, e.g. co2's
|