Repository navigation
Demo examples: live play-test fixes for the graph-engineering workshop - #166
Conversation
toAiSdkTools rebuilt openai.tools.webSearch() and other provider tools as plain tools, dropping their id, so the provider never ran them.
…eads choices - Every run failed in vite dev with SerovalUnsupportedTypeError: Nitro adds the development condition, so Vite and Node loaded two seroval copies. Drop it from server externalConditions. - A failed or cancelled run with no wait to return to offers Run again; a failed resume restores its buttons. - Typed text maps onto a state's payload choices, and covered events no longer swallow the whole text as a payload. - An unsure reading falls back to the state's text event, never to a button. - A guard refusal says the state's rules refused the event. - Idle bubbles: a chat reply leads even when other prose changed; text the prompt already shows is not repeated.
Refund labels review vs limit; routing names the confidence bar; pipeline's verify gates complete; tools only looks up stored keys and says when the cap forced an answer; reflection drafts without a staged weak first pass; retry has an all-models-down starter that reaches failed; email drafters drop placeholder sign-offs.
Fixes found by driving each example through the demo's runner with real models: duplicated output, starters that never reach the example's rule, purposes that headlined scaffolding instead of the bound, and real bugs (machine-as-tool's limit was only a Jev judgment, sql-agent filtered on a misspelled category, swarm-handoff lost the conversation on handoff, chameleon leaked its reasoning before the vote). deep-research now runs real web search and keeps only citations the search returned. Demo goldens regenerated.
🦋 Changeset detectedLatest commit: 0d15b83 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedToo many files! This PR contains 192 files, which is 92 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configuration
📒 Files selected for processing: 192
You can disable this status message by setting the
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. Comment |
| "Trusted patch with SQL injection (votes fall short)": [ | ||
| { | ||
| "sent": "start {\"patch\":\"Speed up user search by building the query directly.\\n\\n--- a/src/users.ts\\n+++ b/src/users.ts\\n@@ export async function findUsers(db: Db, name: string) {\\n- return db.query(\\\"SELECT * FROM users WHERE name = $1\\\", [name]);\\n+ return db.query(`SELECT * FROM users WHERE name = '${name}'`);\\n }\",\"source\":\"trusted\"}", | ||
| "status": "done", | ||
| "trace": [ | ||
| "transition @xstate.init -> {\"reviewing\":{\"security\":\"working\",\"reliability\":\"working\",\"maintainability\":\"working\"}}", | ||
| "transition xstate.done.actor -> {\"reviewing\":{\"security\":\"done\",\"reliability\":\"working\",\"maintainability\":\"working\"}}", | ||
| "transition xstate.done.actor -> {\"reviewing\":{\"security\":\"done\",\"reliability\":\"done\",\"maintainability\":\"working\"}}", | ||
| "transition xstate.done.actor -> \"accepted\"" | ||
| ], | ||
| "response": "- Approved: yes\n- Human reviewed: no\n\n**Votes**\n\n| Approve | Reason | Reviewer |\n| --- | --- | --- |\n| yes | approve (approve 100% · reject 0% · abstain 0%) | security |\n| yes | approve (approve 100% · reject 0% · abstain 0%) | reliability |\n| yes | approve (approve 100% · reject 0% · abstain 0%) | maintainability |" |
There was a problem hiding this comment.
🔍 SQL-injection starter snapshot takes the opposite branch
The new starter promises insufficient votes, but its mock snapshot records three approvals and automatic acceptance. The dedicated test scripts rejecting votes instead. The golden does not demonstrate the advertised path.
Was this helpful? React with 👍 or 👎 to provide feedback.
…lide in just-one - self-improving-refunds: the sample world verified a claim that contained the email, which every ticket carries. It now wants the private detail on file (order date, last four, zip); starter labels name it. - just-one: "-es" also comes off after a single s, and a final "-se" loses its e, so bus/buses and house/houses collide.
Every demo entry (70 examples, 10 curated scenarios) was played against live models (gpt-5.4-mini, Jev) through the demo's own runner, as a workshop attendee would, before the graph-engineering workshop on 2026-10-22.
Demo host
vite devonnext. Every run, including the default "Refund guard", threwSerovalUnsupportedTypeError. Nitro adds thedevelopmentcondition, so Vite handed Node seroval's dev build while@tanstack/router-coreloaded the default build: twoStreamclasses. A plugin indemo/vite.config.tsdropsdevelopmentfrom serverexternalConditions.choicesare text candidates, and events they cover no longer take the whole text as a payload ("look up their order first" was sent asorderId: "look up their order first").Library
toAiSdkToolspasses provider-defined tools (openai.tools.webSearch()) through unchanged. Before, it rebuilt them without theirid, so the provider never ran them. Changeset included.Examples and scenarios
Most fixes: duplicated output, starters that never reach the rule, and purposes that headlined scaffolding instead of the bound. Real bugs:
{ joke, earlierJokes }(no duplicate jokes).complete; reflection drafts without a staged weak first pass; retry has an[all-models-down]starter that reachesfailed.Demo goldens (
example-behavior) regenerated and reviewed.Verification
pnpm run check,pnpm vitest run(1594), demopnpm vitest run(280),pnpm run docs:checkLOOKUP_ORDER ORD-1002