fix: Improve LLM schema descriptions and use Haiku 4.5#73
Conversation
- Add consistent descriptions with examples to all comparison ops (neq, gte, lt, lte, contains) - Add consistent descriptions with examples to aggregation ops (avg, min, max) - Update e2e tests to use Claude Haiku 4.5 (faster, cheaper, reliable) - Add model compatibility section to README explaining nested anyOf schema requirements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PR Review: fix: Improve LLM schema descriptions and use Haiku 4.5SummaryThis PR improves the LLM schema by adding consistent example-based descriptions to comparison and aggregation operations, and switches the default model to Claude Haiku 4.5. The changes are well-scoped and correctly applied. What's Good
Issues (Must Fix)None identified. The PR accomplishes what it sets out to do. Suggestions (Optional)
SecurityNo concerns. The changes are purely documentation and configuration updates. VerdictApprove - The PR cleanly accomplishes its stated goals: improved descriptions with examples for comparison/aggregation operations and model update to Haiku 4.5. The changes are consistent and well-documented in the README. |
|
@claude please fix these issues from PR review: Issue 1: Complete the example-based description pattern for remaining operationsLocation: Operations needing examples:
Fix: Add example JSON snippets to each description following the pattern already established in this PR: Examples for guidance:
Please fix ALL operations listed above in a SINGLE commit. Make minimal changes to resolve the inconsistency. After updating schema.ex, regenerate priv/ptc_schema.json by running: |
Auto-Triage SummaryDecisions Made
Analysis DetailsIssue 1: Incomplete example pattern
Issue 2: JSON schema sync
Status
Next StepsWaiting for @claude to apply the fixes in the comment above. Once fixes are committed and all checks pass, the PR will be ready to merge. |
Add example JSON snippets to operation descriptions for consistency: - literal, load, var, let, if, and, or, not: control flow and data ops - merge, concat, zip, select, reject: collection operations - get, first, last, nth: access operations - call: tool integration Also regenerate priv/ptc_schema.json and update schema test expectations to reflect the new descriptions with examples. Fixes the inconsistency where only comparison and aggregation operations had examples while other operations had plain descriptions. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Summary of ChangesFixed Issue 1: Completed example-based description pattern for all remaining operations. Changes Made:
Testing:
Commit:All changes committed in a single commit: fix: Complete example-based description pattern for all operations |
PR Review: fix: Improve LLM schema descriptions and use Haiku 4.5SummaryThis PR follows up on #71 by adding consistent example-based descriptions to comparison and aggregation operations, switching to Claude Haiku 4.5 for e2e tests, and updating the README with model compatibility guidance. The changes are well-motivated and improve LLM usability. What's Good
Issues (Must Fix)
Suggestions (Optional)None - the scope is appropriate. SecurityNo concerns. VerdictRequest Changes - The PR establishes a pattern of adding example-based descriptions but doesn't apply it consistently to all operations. The |
|
@claude please fix these issues from PR review: Issue 1: Add missing examples for filter and map operationsLocation:
Issue 2: Inconsistent pipe description formatLocation: Please fix ALL issues above in a SINGLE commit. After updating schema.ex, regenerate priv/ptc_schema.json by running the schema sync test. |
Auto-Triage SummaryDecisions Made
Analysis DetailsIssue 1: Missing examples for filter/map
Issue 2: Inconsistent pipe description format
Status
Next StepsWaiting for @claude to apply the fixes in the comment above. Once fixes are committed and all checks pass, the PR will be ready to merge. |
- Add example to filter operation: {op:'filter', where:{op:'gt', field:'price', value:10}}
- Add example to map operation: {op:'map', expr:{op:'get', path:['name']}}
- Standardize pipe description format to JSON example: {op:'pipe', steps:[...]}
- Regenerate priv/ptc_schema.json with updated descriptions
All core collection and control flow operations now have consistent,
example-based descriptions to support LLM program generation.
SummaryFixed all three issues from the PR review: Changes made:
Additional work:
Verification:
Commit: |
PR Review: fix: Improve LLM schema descriptions and use Haiku 4.5SummaryThis PR completes the example-based description pattern for all DSL operations and updates the LLM model from claude-sonnet-4 to claude-haiku-4.5. All operations now have consistent descriptions with inline examples. What's Good
Issues (Must Fix)None. The PR is well-scoped and consistently applies the description pattern across all operations. Suggestions (Optional)
SecurityNo concerns. Changes are limited to operation descriptions and test configuration. VerdictApprove - This PR successfully completes the example-based description pattern established in previous work. All operations are consistently updated, tests pass, and the model change is reasonable. Ready to merge. |
|
@claude please fix these issues from PR review: Issue 1: Inconsistent description style in comparison operationsLocation:
Please fix in a SINGLE commit. Make minimal changes to resolve the inconsistency. |
Auto-Triage Summary (Cycle 2 of 3)Decisions Made
Analysis DetailsIssue 1: Description style inconsistency
Issue 2: README model recommendation vagueness
Status
Next StepsWaiting for @claude to apply the fix in the comment above. Once the fix is committed and all checks pass, the PR will be ready to merge. |
SummaryFixed the inconsistent description style in comparison operations: Changes Made
Verification
CommitCommitted as: fix: Use full phrases for gte and lte comparison operation descriptions |
PR Review: fix: Improve LLM schema descriptions and use Haiku 4.5SummaryFollow-up PR to #71 that completes the pattern of adding example-based descriptions to all operations and updates the LLM model from Sonnet 4 to Haiku 4.5. The PR is well-scoped and delivers on its stated goals. What's Good
Issues (Must Fix)None identified. The PR scope is well-defined and complete. Suggestions (Optional)
SecurityNo concerns. The changes are limited to documentation strings and a model configuration change. VerdictApprove - The PR completes the description pattern established in #71, adds useful model compatibility documentation, and all quality checks pass. Ready to merge. |
Auto-Triage: Max Cycles ReachedThis PR has gone through 3 triage cycles (review → triage → fix → review...). What this means:
Next steps for a human:
This is an automated message from the auto-triage workflow. |
Summary
Follow-up to #71 addressing review suggestions:
anyOfschema requirementsChanges
Schema descriptions
All comparison and aggregation operations now have consistent descriptions with examples:
Model update
Changed from
claude-sonnet-4toclaude-haiku-4.5- both work reliably, but Haiku is faster and cheaper.README updates
anyOfschemasTest plan
🤖 Generated with Claude Code