Skip to content

ci: add consumer contract test against grydlock-oracle-adapter's StubOracle - #61

Merged
knytcomics-ui merged 1 commit into
Gryd-lock:mainfrom
Ndifreke000:issue-46-consumer-contract-test
Jul 22, 2026
Merged

ci: add consumer contract test against grydlock-oracle-adapter's StubOracle#61
knytcomics-ui merged 1 commit into
Gryd-lock:mainfrom
Ndifreke000:issue-46-consumer-contract-test

Conversation

@Ndifreke000

@Ndifreke000 Ndifreke000 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/consumer-contract-test.yml, triggered by manual dispatch or a weekly schedule (not on every push, to avoid a hard cross-repo CI coupling).
  • Checks out grydlock-oracle-adapter at a pinned commit (currently 7e5b1b0, the current main tip at the time of writing), copies this repo's current scores.json/destinations.json over the adapter's vendored src/fixtures/testkit/ copies, and runs a vitest check asserting StubOracle.getScore() resolves to a finite 0-100 score for every destination with no throw.
  • Documents the pattern in README.md — purpose, trigger, limitations (only as good as the pin; doesn't track main; checks shape not scoring correctness), and how to bump ORACLE_ADAPTER_REF.

Closes #46

…Oracle

Adds .github/workflows/consumer-contract-test.yml: on manual dispatch
or a weekly schedule (not every push, to avoid a hard cross-repo CI
coupling), checks out grydlock-oracle-adapter at a pinned commit,
copies this repo's current scores.json/destinations.json over its
vendored src/fixtures/testkit/ copies, and runs a vitest check that
StubOracle.getScore() resolves to a finite 0-100 score for every
destination with no throw.

Documents the pattern, its purpose, and its limitations (only as good
as the pinned ref; doesn't track main; only checks shape, not scoring
correctness) in README.md, along with how to bump the pin.

Closes Gryd-lock#46

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@knytcomics-ui
knytcomics-ui merged commit 3baf477 into Gryd-lock:main Jul 22, 2026
1 of 2 checks passed
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.

Add a consumer contract test running grydlock-oracle-adapter’s StubOracle against this repo’s scores.json

2 participants