Skip to content

Use version-correct Babysitter fixtures for SDK 3 tests - #716

Open
willwashburn wants to merge 2 commits into
mainfrom
codex/sdk3-babysitter-fixtures
Open

willwashburn wants to merge 2 commits into
mainfrom
codex/sdk3-babysitter-fixtures

Conversation

@willwashburn

@willwashburn willwashburn commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

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 8b33eba. 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.

Written for commit c5bb1ed. Summary will update on new commits.

View guided diff Turn on auto-fix

@willwashburn willwashburn added the merge-train:hold Hold merge train entry pending an explicit blocker resolution label Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes add a Babysitter v0.2.0 manifest fixture, update SDK tests to use its entries and manifest bytes, and adjust extension compatibility ranges and incompatibility test inputs.

Changes: Babysitter SDK fixtures and compatibility

Layer / File(s) Summary
Add the pinned Babysitter manifest fixture
testdata/plugins/babysitter-v0.2.0/flows-plugin.json, packages/sdk/tests/babysitter-v0.2.0-fixture.ts
Adds a v0.2.0 manifest and exports fixture entries that substitute its bytes for the Babysitter manifest.
Use static fixture entries in SDK tests
packages/sdk/tests/babysitter-native-extension.test.ts, packages/sdk/tests/software-garden-babysitter-composition.test.ts
Replaces directory-based test entries with fixture entries. The catalog-export assertion compares its manifest with the fixture’s manifest bytes.
Update compatibility declarations and test inputs
testdata/plugins/extension-babysitter/flows-plugin.json, packages/sdk/tests/flow-extension-compose.test.ts, packages/sdk/tests/plugin-extension.test.ts
Expands the extension’s surface and SDK compatibility ranges. The incompatibility tests explicitly require surface ^2.0.22 before checking rejection on runtime surface 3.0.0.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • AgentWorkforce/flows#715: Adds a native Babysitter 0.2.1 manifest with SDK and Surface 3.0.x compatibility; the supplied context says its compatibility outcome is related to this PR’s native artifact and runtime pin.

Suggested reviewers: khaliqgant, agentrelaybot

Merge Risk: Minimal · up to c5bb1

This change only updates test fixtures so the SDK 3 tests reach the behavior they are meant to check, and it does not affect production behavior. One known hosted-runner test failure remains. It depends on the separate native-artifact release work and is not caused by this change.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the PR makes the Babysitter test fixtures version-correct so the SDK 3 tests run. The raw summary shows the synthetic manifest compat range widened, native tests using…
Description check Passed The description matches the changeset. It explains widening the synthetic Babysitter project to load on 3.0.x, keeping 2.x-only manifests for the exclusion tests, and using historical v0.2.0 manifest …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the PR makes the Babysitter test fixtures version-correct so the SDK 3 tests run. The raw summary shows the synthetic manifest compat range widened, native tests using the historical v0.2.0 manifest bytes, and the exclusion tests keeping 2.x-only manifests. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description matches the changeset. It explains widening the synthetic Babysitter project to load on 3.0.x, keeping 2.x-only manifests for the exclusion tests, and using historical v0.2.0 manifest bytes for the mocked commit 8b33eba in the native tests. It also lists the commands run and the one remaining failure.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the manifest bytes,
Then hops through fixture paths with care.
The tests now use the pinned entries,
Compatibility ranges shift.
One green leaf marks the version check,
And soft paws close the review.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d9d4a0b3-0cd5-4cec-8aeb-c3f8fe7bd01a
Commits

Reviewing files that changed from the base of the PR and between fa65e68 and c5bb1ed.

Files selected for processing: 7

  • packages/sdk/tests/babysitter-native-extension.test.ts
  • packages/sdk/tests/babysitter-v0.2.0-fixture.ts
  • packages/sdk/tests/flow-extension-compose.test.ts
  • packages/sdk/tests/plugin-extension.test.ts
  • packages/sdk/tests/software-garden-babysitter-composition.test.ts
  • testdata/plugins/babysitter-v0.2.0/flows-plugin.json
  • testdata/plugins/extension-babysitter/flows-plugin.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T16:20:01.472436Z 625d16f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · These fixture changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] These fixture changes appear safe to merge.

Summary

Updates Babysitter test fixtures without changing runtime code or trust pins.

  • SDK 3 test runs can now load the sample Babysitter plugin.
  • Native tests now pair the pinned commit with its saved manifest.

willwashburn explicitly acknowledges the existing production composition failure and defers the native artifact and pin update to separate work.

Reviews (2) · Last reviewed commit: "Merge branch 'main' into codex/sdk3-baby..." · Reviewed by Greptile

@willwashburn

Copy link
Copy Markdown
Member Author

The full Linux SDK run finished with 5,035 tests passing, 14 skipped and four failures. The five synthetic-fixture failures from the v3.0.0 baseline now pass, including the serial replay case. All four remaining failures exercise the hosted runner and its release-pinned native Babysitter 0.2.0 artifact. The 3.0.0 runtime refuses that artifact's declared 2.x range before dispatch. The release manifest prerequisite is #715. The runtime needs a separately reviewed immutable ref and digests for the compatible package. Full Linux run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train:hold Hold merge train entry pending an explicit blocker resolution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant