Repository navigation
feat: real enforcement for habitability + living-community principles - #2
Merged
Merged
Conversation
Resolves the 4 semantic warnings by adding enforcement, not by silencing them. State machine (community-space-brand): - add guard_relational_quality, guard_activation_color_ratio (principle_habitability) and guard_living_community (principle_living_community) - attach them to real transitions (space_state_selection -> generate_response, generate_response -> response_ready) - add guard.constraint_ids linking every constraint to an enforcing guard Model upgrade principle -> constraint -> guard -> transition: - schema: add guards[].constraint_ids (pattern ^constraint_[a-z0-9_]+$) - validator: add direct constraint->guard coverage check; add --strict mode (warnings fail) for real, non-fictional examples - luxury example: map its constraints via constraint_ids to stay warning-free Tests + CI: - tests/test_semantic_coverage.py: principles have guards, constraints have direct guard mapping, habitability guards attached to runtime flow, real examples are warning-free - CI: strict validation for metadata.fictional_example==false, plus pytest Result: community-space-brand now passes with 0 errors / 0 warnings.
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.
Resolves the 4 semantic warnings by adding enforcement, not by silencing them.
State machine (community-space-brand):
Model upgrade principle -> constraint -> guard -> transition:
Tests + CI:
Result: community-space-brand now passes with 0 errors / 0 warnings.