feat(contracts): migrate to hawk-core-contracts and enforce boundaries#15
Open
Patel230 wants to merge 6 commits into
Open
feat(contracts): migrate to hawk-core-contracts and enforce boundaries#15Patel230 wants to merge 6 commits into
Patel230 wants to merge 6 commits into
Conversation
Move inspect off the hawk umbrella dependency and onto the shared hawk-core-contracts module: - severity.go re-exports hawk-core-contracts/types instead of hawk/shared/types - add contracts.go adapters converting inspect findings/reports to and from the shared verification contracts (hawk-core-contracts/verify) - go.mod: depend on hawk-core-contracts via local replace - add scripts/check-ecosystem-boundaries.sh, wired into Makefile + CI - document the one-way ecosystem boundary in README/AGENTS/docs - ignore the local .gocache build directory build, vet, tests, and the boundary guard all pass.
…lace Match the ecosystem binding convention: depend on the published module version and keep local-dev overrides in a gitignored go.work, not in committed files. - go.mod: require hawk-core-contracts v0.1.0 (was v0.0.0), remove the `replace => ../hawk-core-contracts` - stop tracking go.work and gitignore it (it held a now-stale `replace hawk` override; inspect no longer depends on hawk)
Now that hawk-core-contracts v0.1.0 is published, record its module checksums so CI (which has no local go.work override) resolves it from the network. Verified: GOWORK=off go build ./... passes.
…ontracts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
hawk/shared/typestohawk-core-contractscontracts.goadapters for neutral verification report contractshawk-core-contracts v0.1.0and addcheck-ecosystem-boundaries.shin CITest plan
bash scripts/check-ecosystem-boundaries.shgo test ./...Made with Cursor