Skip to content

feat(concerto-analysis): add size validator compatibility comparers and tests - #1300

Merged
jamieshorten merged 2 commits into
accordproject:mainfrom
muhabdulkadir:moh/analysis
Aug 26, 2026
Merged

jamieshorten merged 2 commits into
accordproject:mainfrom
muhabdulkadir:moh/analysis

Conversation

@muhabdulkadir

@muhabdulkadir muhabdulkadir commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1292

Add compatibility analysis for collection size validators, detecting breaking and non-breaking changes when size constraints are added, removed, tightened, or loosened.

Changes

  • Add propertySizeValidatorChanged comparer to detect size validator changes on properties
  • Add property-validator-loosened rule mapped to PATCH
  • Gate "loosened" reports to only fire when bounds actually differ (identical validators produce no findings)
  • Add CTO fixture files for size validator comparison scenarios
  • Add comparison tests

Compatibility rules

Change Classification
Size validator added MAJOR
Size validator removed PATCH
Bounds tightened (incompatible) MAJOR
Bounds loosened (compatible) PATCH
No change (identical) NONE

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

@jamieshorten
jamieshorten merged commit 6802355 into accordproject:main Aug 26, 2026
12 checks passed
@muhabdulkadir
muhabdulkadir deleted the moh/analysis branch August 26, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants