feat: isNoWiderThan(), fromPartial() and fromArray() — the envelope helpers beside meet() - #35
Merged
Conversation
…elpers beside meet() isNoWiderThan(): the ONE comparator — this profile is <= that one on every axis, Unknown weighing as the top of its axis. It is what a gate asserts after a meet (the never-widens tripwire) and what a policy uses to admit a call under a tightened envelope. One ordering in one place: a second comparator elsewhere is the duplicate-judge defect. fromPartial(): a human's tightening as a profile — the named axes, Unknown on the rest, so a meet with the declared ceiling leaves omitted axes at the ceiling. Refuses non-axis keys (a value change is a new proposal, not a tightening — greenhouse decisions/0065) and Guaranteed (needs a producer-backed rollback contract, never a click). fromArray(): the inverse of toArray(), so a stored envelope rehydrates for comparison; all five axes required. Greenhouse decisions/0067.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
isNoWiderThan()— the ONE comparator: this profile is<=that one on every axis,Unknownweighing as the top of its axis. It is what a gate asserts after a meet (the never-widens tripwire) and what a policy uses to admit a call under a tightened envelope. One ordering in one place: a second comparator elsewhere is the duplicate-judge defect.fromPartial()— a human's tightening as a profile: the named axes,Unknownon the rest, so a meet with the declared ceiling leaves omitted axes at the ceiling. Refuses non-axis keys (a value change is a new proposal, not a tightening — greenhousedecisions/0065) andGuaranteed(needs a producer-backed rollback contract, never a click).fromArray()— the inverse oftoArray(), so a stored envelope rehydrates for comparison; all five axes required.Second piece of the structural-counter tier (greenhouse
decisions/0067, panelevidence/0268); milpa/agent will depend on command for these. Ships as a command minor.