Skip to content

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

Merged
pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-08-23-ce35bb3ac55451dd
Aug 24, 2026
Merged

[rig-claude] Improve Claude dynamic-workflow compatibility for rig#476
pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-08-23-ce35bb3ac55451dd

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Compatibility gap addressed

The schema conversion table in skills/rig/references/claude-workflow-conversion.md was missing two entries that a Claude dynamic-workflow user would frequently encounter when porting schemas:

  1. s.record(X) for additionalProperties: X — Claude dynamic workflows commonly return count maps, label→value maps, and other open-ended string-keyed objects using the { type: "object", additionalProperties: X } JSON Schema pattern. There was no row for this in the table, leaving porters to discover s.record on their own.

  2. s.int("d") for { type: "integer", description: "d" } — The table already had s.string("d") and s.number("d") but not s.int("d"). The inconsistency would confuse someone scanning the table top-to-bottom.

Why this improves transfer

The schema conversion table is the first reference a Claude dynamic-workflow user consults when they hit a type they can't map. Missing s.record caused a dead-end for anyone porting a workflow whose output used additionalProperties (e.g. extCounts: { type: "object", additionalProperties: { type: "integer" } }). Adding the row plus an explanatory note makes the mapping mechanical and obviates a separate search through the API docs.

Files changed

  • skills/rig/references/claude-workflow-conversion.md — added s.record(X) row and updated the prose note; added s.int("d") row for consistency

Validation run

Docs-only change; no code or samples modified. No extra validation required beyond reviewing the edited file for correct links and content.

Remaining intentional differences

None introduced. All existing intentional differences (failure holes, pipeline stage signature, budget units, no sandbox restrictions, no resume journal) remain documented in the "Behavior differences" section.

Generated by Daily Rig Claude Dynamic Workflow Compatibility · sonnet46 70.5 AIC · ⌖ 8.03 AIC · ⊞ 5.4K ·

Add missing s.record(X) row for JSON Schema additionalProperties: X
patterns -- common in real Claude dynamic workflows that output count maps,
label->value maps, and similar open-ended string-keyed objects.

Also add s.int("d") to match the s.string("d") and s.number("d")
pattern already in the table; omitting it was inconsistent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review August 24, 2026 11:35
@pelikhan
pelikhan merged commit a25a060 into main Aug 24, 2026
1 check passed
@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /grill-with-docs — changes are accurate and clearly explained; approving.

📋 Key Themes & Highlights

Key Themes

  • Both new rows (s.int("d") and s.record(X)) are verified against the actual rig.ts implementation and are correct
  • The s.record row correctly maps the additionalProperties: X JSON Schema pattern
  • Prose update clearly contextualises when to prefer s.record over s.object

Positive Highlights

  • ✅ Fills a real discoverability gap for additionalPropertiess.record — the most common dead-end for Claude workflow porters
  • ✅ Adds the missing s.int("d") row, completing the consistency pattern already established by s.string("d") and s.number("d")
  • ✅ The inline example (s.record(s.int) for count maps) makes usage immediately concrete

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 20.1 AIC · ⌖ 4.1 AIC · ⊞ 6.3K
Comment /matt to run again

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