Use version-correct Babysitter fixtures for SDK 3 tests

WI
6d ago
+49-9

The synthetic Babysitter project used by CLI, export and replay tests declares only 2.x compatibility, so SDK 3 exits before the tests exercise their actual contracts. Allow the synthetic project to load on 3.0.x. The two tests specifically checking exclusion still use a 2.x-only manifest and retain their original refusal assertions.

The native tests simulate a GitHub read of commit 8b33ebab. Use the historical manifest bytes for that mocked commit so a future edit to the live native manifest cannot silently change the fixture. The existing complete bundle and manifest digest checks still verify the exact bytes. The runtime code, trust pins and CI workflows are unchanged.

Ran npm ci --ignore-scripts --no-fund --no-audit, npm run build, and node_modules/.bin/vitest run tests/babysitter-native-extension.test.ts tests/babysitter-catalog-export.test.ts tests/software-garden-babysitter-composition.test.ts tests/plugin-extension.test.ts tests/flow-extension-compose.test.ts in Node 24 on Linux, including the proposed manifest from #715. Result: 184 passed, 3 skipped because bubblewrap was unavailable, and one failure in the production composition path because the runtime still requires the historical 2.x native artifact. That failure remains visible. #715 proposes the separate native artifact for review, followed by an exact-reviewed-release pin update.


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes SDK 3 tests against the Babysitter fixtures so they exercise their actual contracts instead of exiting on the declared 2.x-only compatibility. Widens the synthetic manifest's compat to allow 3.0.x loads, while the two tests that specifically verify exclusion override compat back to 2.x-only and keep their refusal assertions.

Native tests now mount the historical v0.2.0 manifest bytes from testdata/plugins/babysitter-v0.2.0/flows-plugin.json for the mocked commit 8b33ebab, so future edits to the live native manifest cannot silently change the fixture. The complete bundle and manifest digest checks still verify the exact bytes. Runtime code, trust pins, and CI workflows are unchanged.