Feat/wb 682 review node - #198
Draft
dawidaksamski wants to merge 4 commits into
Draft
dawidaksamski wants to merge 4 commits into
dawidaksamski wants to merge 4 commits into
Conversation
added 4 commits
October 2, 2026 16:50
dawidaksamski
added this pull request to stack #199
October 2, 2026 15:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A second palette item, Review, with its own node type
ai-studio/review. It is Human decision with another preset: Approve and Escalate areresumeactions, each routed on its own port, and Reject is the onerejectaction with a required reason. It is the first node to use the several-resume-actions contract.defaultPropertiesDatadiffers: the palette item spreadshumanDecisionPaletteItemand overrides type, label, description, icon and the preset. The canvas draws one handle per routed action, so a Review node shows three ports with nothing new in the template.follow-up: decision-request-properties-ui).ReviewNodetype joins the AI Studio node union,executeHumanDecisionaccepts it, and the registry mapsai-studio/reviewto it. The registry is a mapped type over the union, so the new type cannot be added without its executor.data.properties.decisionRequest, never by node type.Scalesand the description "Approve, escalate or reject" follow the design spec.Docs
ai-studio/reviewjoins the node type list, with one line on what differs from Human decision.decision_request_missingrow names both nodes."type": "node"at node level, so AI Studio rendered it with the default template and one handle. It now carries"ai-studio/human-decision", which is how the SDK keys custom templates.Not in this PR
resumeaction, so Escalate is chosen through the API until the next change, which offers every resume action.Testing
errorRoute;resume,resume,reject, with reject requiring a reason; version 1, empty form, no proposal source or deadline;decisionRequestSchema, beside the two existing requests.tscon the registry, as intended.approve: the approved branch runs, the escalated one is skipped, the run endscompletedwith no outcome.escalatewith a comment: the escalated branch runs, and the comment is in the recorded decision.rejectwith a reason: both branches are skipped, the run ends withoutcome: 'rejected'.approvebehaves as before.