[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #442
Draft
github-actions[bot] wants to merge 1 commit into
Draft
[rig-claude] Improve Claude dynamic-workflow compatibility for rig#442github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
The 'Incremental migration with rig/globals' section in
claude-workflow-conversion.md ended with `export default summaries`
(a raw array), which violated the construction rule that a program must
export an agent or a workflow.
Replace with `export default workflow({ meta, body: async () => summaries })`,
consistent with 340-flat-workflow-port.md and the SKILL.md canonical export rule.
Also add the missing `workflow` import.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 "Incremental migration with
rig/globals" section inclaude-workflow-conversion.mdended with:This violates the construction rule that every rig program must export an
agentor aworkflow— a rule that Claude dynamic-workflow users learn immediately when reading SKILL.md or the canonical example. The inconsistency would cause confusing typecheck/lint failures for anyone who copy-pasted the example.Why this improves transfer
The fixed example now matches:
340-flat-workflow-port.md(the dedicated sample for this pattern)rig/globalsexample in the same file (which already usedworkflow({...}))A Claude dynamic-workflow user porting a flat script can now copy the example verbatim and have it typecheck.
Files changed
skills/rig/references/claude-workflow-conversion.mdworkflowimport to the incremental migration code blockexport default summarieswithexport default workflow({ meta, body: async () => summaries })// Workflow role:comment per construction ruleValidation run
Docs-only change — no typecheck or test run required per the validation rules.
Remaining intentional differences
None introduced. The existing behavior differences table (failure holes, pipeline stage signature, budget units, no sandbox restrictions) is unchanged.