Repository navigation
docs(docs): add a no clean default rule for result models - #3844
Merged
Merged
Conversation
Owner
Author
|
Local checks on the final commit, full
Premise: The scope of the title is |
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.
ARCHITECTURE.md section 7 now has a bullet, No Clean Default on a Result. The result model of a lookup or a check has a field that names how the lookup ended. That field has no default that reads as clean, and a missing value raises a ValidationError. A result that no lookup marked then never reads as verified.
The bullet cites #2504 and #2636, which removed the clean default from NetworkReputationRecord, NetworkReference and PackageLookupResult. It names the two merged tests that fail if a clean default returns, so the rule rests on a check and not on prose alone.
Closes #2660
Change:
openspec/changes/archive/2026-11-06-2660-no-clean-default-guardrail/