-
Notifications
You must be signed in to change notification settings - Fork 0
feat: enable label validation by default #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Label validation (--labels) is now enabled by default for validate-data command. This catches AI hallucinations where valid term IDs have incorrect labels - the primary use case for this validator. Users can disable with --no-labels if they only want ID validation. Closes #8 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Claude finished @cmungall's task —— View job PR Review: Enable Label Validation by Default✅ Overall Assessment: EXCELLENT - This is a well-implemented, consistent change that improves the tool's primary use case. 🎯 SummaryThis PR changes the default value of ✅ Strengths1. Excellent Consistency
2. Well-Motivated Change
3. Clean Implementation
📝 Code Quality AssessmentSecurity: ✅ No Concerns
Performance:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR changes the default behavior of label validation from opt-in to opt-out by setting validate_labels=True as the default for both the CLI and the BindingValidationPlugin. This catches AI hallucinations where valid term IDs have incorrect labels, addressing the primary use case for the validator. Users who only want ID validation can use the --no-labels flag to disable it.
Key Changes
- Default value changed from
FalsetoTruefor thevalidate_labelsparameter in both the CLI and plugin - Updated documentation across README.md and docs/ to reflect the new default behavior
- Updated doctest example to show the new default value
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/linkml_term_validator/plugins/binding_plugin.py |
Changed validate_labels parameter default from False to True and updated docstring |
src/linkml_term_validator/cli.py |
Changed validate_labels default from False to True in both validate_data and validate_all commands |
docs/plugin-reference.md |
Updated documentation to reflect new default value and clarified that it's enabled by default |
docs/binding-validation.md |
Updated parameter table to show True as the default |
README.md |
Updated example configuration comment to show default: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
Summary
--labels) is now enabled by default forvalidate-datacommand--no-labelsif they only want ID validationChanges
cli.py: Changedvalidate_labelsdefault fromFalsetoTruebinding_plugin.py: Changedvalidate_labelsparameter default fromFalsetoTrueTest plan
[default: labels]Closes #8
🤖 Generated with Claude Code