feat(schema): v2.0.0 extension schema — citations, provenance, schema version#20
Merged
LittleCoinCoin merged 9 commits intoCrackingShells:mainfrom Apr 15, 2026
Conversation
Closed
5 tasks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove ToolsValidation and EntryPointValidation imports and assignments. validate_tools and validate_entry_point now delegate via next_validator. validate_dependencies delegates Hatch/Python/System to v1.2.2 via next_validator and handles only the Docker-specific subset owned by v2.0.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Remove validate_dependencies override — base class default delegates it fully to v1.2.2 for Hatch/Python/System. Add validate_docker_dependencies as a new v2.0.0-only concern, following the same pattern as validate_provenance and validate_citations. validate() calls it directly alongside the other new concerns. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deleted 13 tautological tests from test_package_validator_for_v2_0_0.py (all asserting only isinstance(errors, list) or restating implementation) and deleted test_v2_0_0_integration.py entirely (7/7 tests either checked factory boilerplate or depended on GitHub HTTP fetches that 404). Kept: test_authors_array_access (v2.0.0 structural change: authors is an array), test_v2_0_0_validator_can_handle, test_v2_0_0_accessor_can_handle. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
322ea87 to
c4f6f81
Compare
cracking-shells-semantic-release Bot
pushed a commit
that referenced
this pull request
Apr 15, 2026
## 0.9.0 (2026-04-15) * Merge pull request #20 from HartreeY/feat/schema-v2.0.0-extension ([9c1b618](9c1b618)), closes [#20](#20) * fix(test): use get_field("author") matching accessor convention ([c4f6f81](c4f6f81)) * test(schema-v200): drop tautological tests, keep 3 behavioral ([88767e8](88767e8)) * refactor(schema-v200): delegate non-docker deps to v1.2.2 ([8255279](8255279)) * refactor(schema-v200): delegate tools and entry-point to chain ([1509b51](1509b51)) * refactor(schema-v200): drop citations and provenance strategies ([f5f4fb1](f5f4fb1)) * refactor(schema-v200): own docker dep validation exclusively ([113c578](113c578)) * refactor(schema-v200): remove citations and provenance dead code ([5b5d728](5b5d728)) * refactor(schema-v200): remove over-owned strategies from validator ([150a1ad](150a1ad)) * feat(schema): add v2.0.0 schema with citations and provenance ([52a0d78](52a0d78))
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.
Support for Hatch-Schemas' new v2.0.0 package schema. #19
The validator now fully supports v2.0.0 packages while maintaining backward compatibility.
Core Implementation
PackageServiceto support bothhatch_schema_versionandpackage_schema_versionfor backward compatibilityValidatorFactoryandHatchPkgAccessorFactoryaccessor.py- Authors array access, tools desc field handlingvalidator.py- Main validator with strategy compositionschema_validation.py- Uses v2.0.0 schemadependency_validation.py- Docker digest required, version_constraint rejectedtools_validation.py- Desc field preferred over deprecated descriptionentry_point_validation.py- v2.0.0 entry point validationprovenance_validation.py- Provenance validation (rejects created_by/created_at)citations_validation.py- Citations array validationTest Coverage
test_v2_0_0_integration.py: End-to-end testing with official published examplestest_package_validator_for_v2_0_0.py: Unit tests covering schema routing, authors array, tools desc field, Docker requirements, provenance, and citations validationKey v2.0.0 Features
descfield preferred,descriptiondeprecated but supporteddigestrequired,version_constraintrejected,tagoptionalcreated_by/created_atfields2.0.0schema versionValidation & Testing