Repository navigation
Fix Foundry IQ retrieval arguments - #79190
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved schema-validation and null-input handling defects allow malformed filters to pass validation and replace upstream tool errors with misleading connector failures.
2 open issues
What changed in this PR
Updates gh-aw’s Foundry IQ connector to match the Azure AI Search preview retrieval contract, addressing #79145 while preserving existing with.queries grants.
Changes:
- Sends
query_variantswith one approved question, limited to 150 Unicode code points, and validates grant length at compile time. - Separates upstream tool errors from interactive-input failures while withholding arbitrary provider diagnostics.
- Updates tests, examples, and documentation; also refreshes workflow event schemas and smoke-test routing.
| File | Description |
|---|---|
pkg/workflow/schemas/github-workflow.json |
Adds image-version events and pull-request activity types. |
pkg/workflow/azure_foundry_iq_connector_test.go |
Tests argument shape, Unicode limits, and error handling. |
pkg/parser/schemas/main_workflow_schema.json |
Allows string-array item length bounds. |
pkg/parser/import_schema_validation.go |
Enforces Unicode length limits on import inputs. |
pkg/parser/import_schema_validation_input_type_test.go |
Tests Unicode boundaries and invalid bounds. |
pkg/connectors/mcp.go |
Separates and sanitizes upstream error diagnostics. |
pkg/cli/workflows/azure-foundry-iq-golden.md |
Updates the consumer’s native retrieval argument. |
docs/src/content/docs/reference/imports.md |
Documents string-array length validation. |
docs/src/content/docs/reference/connectors.md |
Documents the revised retrieval contract and diagnostics. |
docs/adr/78937-extend-declarative-connectors-for-foundry-iq-retrieval.md |
Records the preview contract change. |
actions/setup/js/connector_runtime.test.cjs |
Updates tool-error and interactive-input assertions. |
actions/setup/js/connector_runtime.cjs |
Adds distinct, filtered upstream error messages. |
.github/workflows/connectors/azure-foundry-iq.md |
Declares query_variants and 150-character grant limits. |
.github/workflows/agentic_commands.yml |
Adds OpenTelemetry backend smoke-test routing. |
Review effort: Balanced (adaptive)
| if (!result.isError) assert([undefined, "", "complete"].includes(result.resultType) && !result.inputRequests && !result.needsInput, "Connector HTTP MCP tool requires unsupported interactive input"); | ||
| assert(Array.isArray(result.content) && jsonBytes(result) <= server.maxResponseBytes, "Connector HTTP MCP result exceeds its byte bound or has invalid content"); | ||
| if (result.isError) { | ||
| for (const [name, input] of Object.entries(constraints.inputs)) { |
| }, | ||
| "image_version": { | ||
| "$comment": "https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#image_version", | ||
| "$ref": "#/definitions/eventObject", |

The Foundry IQ connector sends
queries, but the Azure AI Search preview MCP server requiresquery_variants. The runtime also masks the upstream error that identifies the mismatch.query_variants, bounded to 150 Unicode characters. Existingwith.queriesgrants remain compatible and are validated at compile time.{"query_variants": ["What deployment rollback checks are documented?"]}