Give back only checked data from visibility(), and test that every stated value beats its default
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- visibility() returned the held-back checks object as the file passed it, so a key the schema doesn't name (a check's paths, or a function) reached the policy. It now returns the checked suite, re-attaching only the areas as written (checked with the rest) so AreaOf keeps their names. - New test: a suite stated with a paths key comes back without it (red by assertion before the fix). - New test: every value stated off its default (attempts, admit, layer, env setters, release, audience, readers, writers, notice, maxDays, two kinds' sunsets) comes through, and canary defaults to false. The OSR tests passed values equal to the defaults, so a builder that ignored them stayed green; seen red against planted perClaim: 3, a fixed release and Math.max for the sunset. - layer()'s sunset doc says the layer takes the soonest (the protocol keeps one sunsetDays); the sdk and CLI entry headers name visibility.ts and a layer's layer.ts, reflowed.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+115 added−14 removed
- tests:+94 added−0 removed
- other:+21 added−14 removed