feat(namespace): conformance green 19/19 — data-aware did-you-mean on unindexed bare addresses, ordering contract on the column top-K path (never drop, nulls last, ties by id), shape-complete addressed reads (entity views AND raw storage shapes, shadow-proof both scopes), per-key source matching for dotted addresses; refusal classes unified under UnresolvableFieldError
Some checks failed
CI / Node 22 (push) Has been cancelled
CI / Node 24 (push) Has been cancelled
CI / Bun (latest) (push) Has been cancelled

This commit is contained in:
David Snelling 2026-08-03 16:01:02 -07:00
parent 7492b6cb59
commit 8e962dabda
4 changed files with 134 additions and 61 deletions

View file

@ -294,7 +294,9 @@ describe.skipIf(!lawActive)('namespace law — bare/system/metadata field addres
brain.defineAggregate({
name: 'ns_law_by_team_bare',
source: { type: NounType.Document, where: { subtype: 'ns-law-group-bare' } },
// system.subtype — bare 'subtype' would address user metadata under the
// law (the exact migration every fleet consumer's aggregates make).
source: { type: NounType.Document, where: { 'system.subtype': 'ns-law-group-bare' } },
groupBy: ['team'],
metrics: { count: { op: 'count' } }
})