Skip to content

DEV-15014: Update field blueprint prompt_config to use description#448

Merged
jacobmanderson merged 7 commits into
masterfrom
feat/dev-15014-prompt-config-description
Mar 13, 2026
Merged

DEV-15014: Update field blueprint prompt_config to use description#448
jacobmanderson merged 7 commits into
masterfrom
feat/dev-15014-prompt-config-description

Conversation

@jacobmanderson
Copy link
Copy Markdown
Contributor

@jacobmanderson jacobmanderson commented Mar 13, 2026

Changelog

  • Updated field blueprint GraphQL queries to request promptConfig.description instead of prompt.
  • Updated field blueprint queries to request fieldConfig.validationConfig as a scalar (no subfield selection), matching current schema.
  • Updated tests to validate description usage and scalar validationConfig query shape.

Confluence Changelog

Changelog Summary

  • Updated field blueprint prompt config usage from prompt to description.
  • Removed subfield selection from validationConfig in field blueprint queries to match GenericScalar schema.

Contract Changes

  • ExtractionPromptConfig selection uses description.
  • ExtractionFieldConfig.validationConfig is queried as validationConfig (scalar), not validationConfig { ... }.
  • Client create payload contract is hard-updated to promptConfig.description.

Backward Compatibility / Breaking Changes

  • Breaking for callers/environments still expecting prompt under prompt config.

Tests and Verification Added

  • pytest -q tests/test_field_blueprints.py
  • Query regression assertions now cover prompt and scalar validation config shape.

Net New Behaviors Requiring Integration Tests

  • Field blueprint create/get/list operations against environments running updated schema with promptConfig.description and scalar validationConfig.

Note

Medium Risk
Medium risk because it changes the GraphQL contract for promptConfig (from prompt to description) and alters validationConfig selection shape, which can break compatibility against older schemas or callers relying on the previous fields.

Overview
Updates field blueprint GraphQL queries (CreateFieldBlueprint, GetFieldBlueprints, ListFieldBlueprints) to request promptConfig.description instead of prompt.

Adjusts fieldConfig.validationConfig (and related formatConfig/inputConfig) to be queried as scalar fields rather than selecting subfields, and expands tests to assert the new query shapes and response parsing for description.

Written by Cursor Bugbot for commit 6199319. This will update automatically on new commits. Configure here.

@jacobmanderson jacobmanderson marked this pull request as ready for review March 13, 2026 14:29
@jacobmanderson jacobmanderson requested a review from a team as a code owner March 13, 2026 14:29
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread tests/test_field_blueprints.py
Sung96kim
Sung96kim previously approved these changes Mar 13, 2026
@jacobmanderson jacobmanderson disabled auto-merge March 13, 2026 15:06
@jacobmanderson jacobmanderson merged commit 8d79a05 into master Mar 13, 2026
5 checks passed
@jacobmanderson jacobmanderson deleted the feat/dev-15014-prompt-config-description branch March 13, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants