Merged
Conversation
added 5 commits
January 25, 2026 19:30
Requirements: - Add Attachment Scope Constraints requirement to ModelManagement.md - Add Hierarchical Independence and Satisfied Refinement constraints - Add Attachment Scope Validation requirement - Add test verification with comprehensive test cases Constraints enforce: - Refinements must have satisfy relations before being attachable - Attachments only allowed from requirements outside defining hierarchy Updates: - Add constraint attachments to functional requirements and CLI commands - Update ReservedSubsections.md design document with new validation rules - Add satisfy relations to refinement elements in test fixtures - Fix test-custom-element-types git config issue in nested repo New test: tests/test-attachment-constraints/ (spec for future implementation)
Two new validation constraints ensure proper attachment semantics:
1. Attachment Satisfied Refinement Constraint:
- Refinements must have satisfy relations before being attachable
- Ensures refinements have an established owner requirement
2. Attachment Hierarchical Independence Constraint:
- Attachments only allowed from requirements outside the owner's hierarchy
- Requirements in the same derivation chain access refinements through
the hierarchy, not attachments
Implementation:
- Add SATISFACTION_RELATIONS constant in relation.rs
- Add helper functions in graph_registry.rs for hierarchy checking
- Add validation in validate_attachments(), attach_element(), merge_elements()
- Update reqvire model to use satisfiedBy instead of redundant attachments
- Update claude-plugins documentation with new constraints
- Update test fixtures to comply with new constraints
- Nav background: #1c1c1c (dark gray) - Buttons/primary: #333333 (lighter gray) - Update Web Interface Style Specification with MONO color palette - Update test expected files for new theme colors
- Update favicon and logo assets - Remove accidentally committed docs/ folder - Update www.reqvire.org submodule (copyright 2026)
|
I have read the CLA Document and I hereby sign the CLA Test User seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Collaborator
Author
|
/reqvire impact |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What does this PR do?
Implements attachment scope constraints for refinement elements (specifications, constraints, behaviors):
satisfyrelation before they can be attached to other requirementsChanges include:
SATISFACTION_RELATIONSconstant inrelation.rsgraph_registry.rs:get_defining_requirements(),refinement_has_satisfy_relations(),is_in_hierarchy()validate_attachments()for both constraintsattach_element()(link command) for both constraintsmerge_elements()for both constraintstest-attachment-constraintsType of Change
Testing
cargo test)Requirements Changes
/reqvire impactrun in PRChecklist
cargo fmt,cargo clippy)