Skip to content

feat(workflow): opt-in settled result API#109

Open
Waishnav wants to merge 2 commits into
pr/dw-9-resume-iteration-inspectionfrom
pr/dw-10-settled-results
Open

feat(workflow): opt-in settled result API#109
Waishnav wants to merge 2 commits into
pr/dw-9-resume-iteration-inspectionfrom
pr/dw-10-settled-results

Conversation

@Waishnav

Copy link
Copy Markdown
Owner

Summary

  • add an opt-in settle(() => operation) workflow primitive
  • preserve existing Claude-like defaults: agent() throws, parallel()/pipeline() map failures to null
  • return provider-independent { ok, value } | { ok, error: { kind, message, retryable } }
  • support wrapping agent() and nested workflow operations without caching failed outcomes as successes
  • teach provider fallback and failure-aware fan-out in the Dynamic Workflows skill

Stack

Test plan

  • npm run typecheck
  • npm test
  • npm run build
  • git diff --check
  • engine tests cover success, normalized provider failure, journaling, and settled branches inside parallel()
  • sandbox/script tests cover injection and execution of settle()

@coderabbitai

coderabbitai Bot commented Jul 25, 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: 8c5f4321-f86c-4b89-9c97-425c3133a929

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-10-settled-results

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