Skip to content

refactor(workflow): strengthen contracts and zod boundaries#100

Open
Waishnav wants to merge 1 commit into
pr/dw-6-native-schemafrom
pr/dw-7-typed-contracts-zod
Open

refactor(workflow): strengthen contracts and zod boundaries#100
Waishnav wants to merge 1 commit into
pr/dw-6-native-schemafrom
pr/dw-7-typed-contracts-zod

Conversation

@Waishnav

Copy link
Copy Markdown
Owner

Summary

  • Add shared JSON-safe values and JSON Schema contracts, plus schema-derived agent() output typing via json-schema-to-ts.
  • Validate workflow metadata, agent options, persisted JSON, provider ids, run states, and event payloads with Zod.
  • Make provider capabilities exhaustive and replace loosely typed event payloads with a discriminated map.
  • Preserve tuple positions in parallel() and add typed pipeline overloads.

Stack

Test plan

  • npm run typecheck
  • npm test
  • npm run build
  • Compile-time coverage for schema-derived agent output and tuple-preserving parallel results
  • Runtime coverage for metadata/options/event/provider validation

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a38d959c-24be-4d21-b6a5-174a1a0b6220

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pr/dw-7-typed-contracts-zod

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

Comment @coderabbitai help to get the list of available commands.

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.

1 participant