Implement implicit object references and capability query foundations

This commit is contained in:
Timothy J. Aveni
2026-09-26 11:44:32 -07:00
parent 58a75da83f
commit 3728612e8c
13 changed files with 401 additions and 35 deletions
+11
View File
@@ -61,6 +61,17 @@ test("record/list query values preserve nested projections and leaf predicates",
}
}
const raw = JSON.stringify(checked.output);
const node = extent.selection[0]!.selection[0]!;
assert.equal(node.selection.filter((field) => field.key === "_camino").length, 1);
const assertValuesOnly = (fields: typeof node.selection): void => {
for (const field of fields) {
assert.notEqual(field.name, "_camino", "Structured values do not acquire graph identity");
assertValuesOnly(field.selection);
}
};
assertValuesOnly(node.selection.filter((field) => field.key !== "_camino"));
assert.equal(checked.selection[0]!.selection.some((field) => field.key === "_camino"), false);
assert.equal(extent.selection.some((field) => field.key === "_camino"), false);
assert.match(raw, /"begin"/);
assert.match(raw, /"tags":\{"kind":"list"/);
assert.equal(checked.effects.filter((e) => e.memberId === "range").length, 1);