feat: EffectProfile::meet() — the greatest-lower-bound, mirror of join() - #33
Merged
Conversation
Where join() composes upward (the more dangerous of each axis, so a ceiling
covers both), meet() composes downward (the safer), so the result can only lower
and never raises any axis. It is the primitive a structural counter rests on: a
human tightening a gated call's envelope ("only if reversible / only Read")
yields the tightened ceiling meet(ceiling, P_human), safe because a meet is <=
both operands on every axis.
Preserves the profile invariants: a no-mutation meet clamps subject to None
(None <= every subject, still a GLB); a meet that reaches Guaranteed carries the
rollback contract from whichever side declared it. The "never raises any axis"
property is tested as an invariant across every profile pair (greenhouse
decisions/0066).
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.
Where
join()composes upward (the more dangerous of each axis, so a ceiling covers both),meet()composes downward (the safer), so the result can only lower and never raises any axis.It is the primitive a structural counter rests on: a human tightening a gated call's envelope ("only if reversible / only Read") yields the tightened ceiling
meet(ceiling, P_human), safe precisely because a meet is<=both operands on every axis. That "never raises" is the whole safety claim, so it's tested as an invariant across every profile pair, not an example.Preserves the two profile invariants: a no-mutation meet clamps subject to
None(None <=every subject, still a GLB); a meet reachingGuaranteedcarries the rollback contract from whichever side declared it.Frame: greenhouse
decisions/0066(the first piece of the structural-counter tier; the gate adjudication that consumes it is a separate slice). Ships as a command minor.