Repository navigation
[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #965
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
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.
Compatibility gap addressed
The docs (
claude-workflow-conversion.md,dynamic-workflows.md, sample 411) say Claude'sagent(prompt, { model: "sonnet" })maps tocall.text/call.jsonwith a per-call{ model }, which an Anthropic engine receives as a full Claude id. No test checked that this mapping actually reaches the engine.Why this helps transfer
Per-call model selection is one of the most common Claude dynamic-workflow idioms. The new test pins the documented behavior (
call.text(..., { model })andcall.json(..., schema, { model })pass the model to the engine factory), so docs and runtime can't drift. I reviewed the README, SKILL.md, the conversion and dynamic-workflow references, and samples 310/340/411. Every other concept (meta,args→input,agent, schema calls,parallel,pipeline,phase,log,budget, nestedworkflow) already has a documented Rig home and a test.Files changed
src/workflow.test.ts: added one test in the "dynamic-workflow parity" block. No API or doc changes.Validation
npm run typecheck: passes.npx vitest run src/workflow.test.ts: 29/29 pass.npm test: 6 failures insrc/launcher-default-engine.test.ts, which also fail on the base commit without my change (they depend on sandbox environment variables). They are unrelated.Remaining intentional differences
Unchanged and already documented in
claude-workflow-conversion.md: noeffortoption, budget counts agent calls rather than tokens,pipelinestage signature is(prev, item, index), and rig has no resume journal or worktree isolation.