Skip to content

[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #965

Merged
pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-11-26-8b6e7619270d5070
Nov 26, 2026
Merged

pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-11-26-8b6e7619270d5070

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Compatibility gap addressed

The docs (claude-workflow-conversion.md, dynamic-workflows.md, sample 411) say Claude's agent(prompt, { model: "sonnet" }) maps to call.text / call.json with 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 }) and call.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, nested workflow) 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 in src/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: no effort option, budget counts agent calls rather than tokens, pipeline stage signature is (prev, item, index), and rig has no resume journal or worktree isolation.

Generated by Daily Rig Claude Dynamic Workflow Compatibility · copilot · routed: sonnet55 high · ~38 AIC · ⌖ ~1 AIC · ⊞ 3.5K · history

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 26, 2026 14:00
@pelikhan
pelikhan merged commit 3a1c198 into main Nov 26, 2026
1 check passed
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 5.8K · history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant