Skip to content

Add experimental azure-web-iq connector - #78924

Merged
pelikhan merged 6 commits into
mainfrom
pelikhan/azure-web-iq-connector
Nov 18, 2026
Merged

pelikhan merged 6 commits into
mainfrom
pelikhan/azure-web-iq-connector

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add experimental azure-web-iq, a declaration-only connector for Microsoft Web IQ.

  • Expose native web, news, and indexed-only browse methods through the fixed https://api.microsoft.ai/v3/mcp endpoint.
  • Require explicit capability selection and exact approved query/URL grants; importing alone selects nothing. Bound result counts, passage lengths, and response bytes.
  • Include embedded setup guidance, a source-only consumer that stages at most one cited research issue, and offline compiler, Go, and bundled Node coverage.

This follows the declaration-only approach in ADR-74077, which remains Proposed, not approved.

Authentication and scope

Requires a paid Web IQ resource and an externally acquired and renewed Entra app-only token stored as AZURE_WEB_IQ_READ_ACCESS_TOKEN, bound to exactly one Web IQ AppID. No token acquisition, exchange, refresh, or credential fallback is added. API-key authentication and multi-AppID selection are unsupported.

No provider writes, triggers, live crawling, Auto/Auto Advanced, full-page formats, or arbitrary API proxy are exposed. browse requires liveCrawl: none, the documented indexed-content lookup mode.

Trust boundaries

  • Query/URL length and syntax constraints are enforced at tool-call time, before credential or HTTP access, not when importing string-array grants. Browse rejects empty hosts, authority userinfo, and fragments.
  • Permitted queries and URLs are disclosed to Microsoft in full. Public-IP/DNS validation and secret detection in paths or query parameters are not implemented; no provider-side destination-filtering guarantee is claimed.
  • Hosted passages remain untrusted. The adapter does not independently verify result identity, count, freshness, or completeness, or deterministically strip/isolate passage instructions. Staged proposals require independent human verification before publication or action.
  • Staging suppresses GitHub publication, not billable reads or inference. Zero Query Logging is not enabled or guaranteed.

Validation

  • Focused Go checks passed for both IQ connectors, imports, documentation consumers, setup guidance, and the 16-provider catalog.
  • Bundled Node boundary checks and all 249 hosted-runtime Vitest cases passed.
  • Formatting, compile/vet, JavaScript lint, and package Go lint passed. Custom-linter findings are confined to files unchanged from main.
  • Built the merged CLI and successfully recompiled all 366 installed workflows.

Merged main and resolved the overlapping connector documentation and catalog expectations. Review follow-up now checks actual plan JSON with positive selection controls, asserts specific rejection reasons, and covers Azure Web IQ in canonical offline setup tests.

Live authentication and provider behavior have not been verified.

Expose native web, news and approved-URL browse MCP reads with exact grants and bounded passage requests. Include a staged GitHub research handoff, setup documentation and offline Go/Node conformance coverage.

Credential review: AZURE_WEB_IQ_READ_ACCESS_TOKEN is an externally renewed Entra bearer token delivered only to the selected agent-phase adapter at the fixed Microsoft endpoint. No provider writer, new action, token exchange or credential fallback is introduced.

Co-authored-by: Copilot App <[email protected]>
Match runtime test names to the connector ID used by conformance CI and encode official references as XML source elements.

Co-authored-by: Copilot App <[email protected]>
Require a nonempty HTTPS host and reject authority userinfo with a Go/Node-compatible pattern. Cover explicitly granted credential URLs, empty hosts and valid IPv6, ports and @ characters outside the authority before any credential or HTTP access.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 18, 2026 05:20
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 05:20
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78924 · copilot · gpt56 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~12 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #78924 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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 analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Request changes: the connector advertises public HTTPS browsing but does not prevent grants to private, loopback, or link-local IP destinations, allowing the hosted provider to be used to fetch internal resources. The inline comment describes the required validation and regression coverage.

Review details
  • 1 actionable security finding
  • The grumpy-coder specialist pass was unavailable because its pre-fetched file reads were denied; this verdict is based on independent diff analysis.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-92c76da2-ad72-4bd5-b253-520e2dd3209f","parents":[],"payload":{"id":"ldg-a03ef2bb-83f3-47da-b8d7-cd1f82e278cd","operation":"append","value":{"finding_count":0,"head_sha":"735857912861a8042e699cb5ab2d85932facb71c","outcome":"aligned"}},"sha":"sha256:43dfc3c9ffac24ffe59d2be812d3cef16be1680c0a7ac3c1591f82f5cacc7682","timestamp":"2026-11-18T05:27:17.711Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-18655622-ca68-4cff-8324-0f56f41d5639","parents":[],"payload":{"id":"ldg-14ad2793-519b-4c64-baf0-65d462c989a5","operation":"append","value":{"finding_count":1,"head_sha":"735857912861a8042e699cb5ab2d85932facb71c","outcome":"findings"}},"sha":"sha256:0a5eb2bfbc05095808d3d78da0bfdc0260e3e3ee63841e3a768d4fdc81f88c7d","timestamp":"2026-11-18T05:27:51.810Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate — ADR Verified

ADR reviewed: ADR-74077: Declarative Connectors Replace Native Provider Integrations (status: Proposed). The implementation aligns with its stated decision.

This PR adds one declarative connector declaration, a source-only golden consumer, docs, and tests. It changes no production Go code, which is the provider-addition path ADR-74077 describes. Linking ADR-74077 in the PR body would make the match explicit.

📋 Verification Summary

Checked against the Decision section of ADR-74077, using the PR diff and the test source (tests were not executed in this gate):

  • Location: .github/workflows/connectors/azure-web-iq.md, the declaration path the ADR specifies.
  • Import selects nothing: queries and urls default to [], and the declaration states that importing selects nothing.
  • Fixed endpoint, exact grants: (api.microsoft.ai/redacted), with exact native web, news, and browse` methods and bounded input schemas.
  • Pruning: TestAzureWebIQConnectorTargetedSelection asserts that unselected methods, URLs, and safeOutputs are absent from the frozen plan.
  • Secret names only: the plan records AZURE_WEB_IQ_READ_ACCESS_TOKEN by name.
  • Staging: the golden consumer sets safe-outputs.staged: true explicitly.
  • No proxy, writer, or trigger: none declared.
  • External auth: the connector performs no token acquisition, exchange, refresh, or fallback.

Divergences: none found.

📝 Notes for the maintainer
  • Proposed ADR: ADR-74077 is still Proposed and pending maintainer review. This result holds only as far as that ADR is accepted.
  • Provider-specific auth route: the decision to use an externally renewed Entra app-only token and to reject API keys (because x-apikey differs from the shared X-API-Key contract) is recorded in the declaration and docs, not in ADR-74077. If maintainers consider it an architectural decision, a PR-specific ADR is needed.
  • Scope of this check: it verifies alignment with the decision. It does not verify live authentication, provider behavior, or research quality, which the PR body already lists as unverified.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷
Comment /review to run again

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The pruning assertions inspect base64 rather than JSON and can pass despite retained data, while the new connector is missing from offline setup golden coverage.

2 open issues
What changed in this PR

Adds an experimental Microsoft Web IQ connector to gh-aw’s declarative connector catalog, enabling bounded public-web research without exposing provider writes.

Changes:

  • Declares native web, news, and browse methods with exact grants, bounded requests, and Entra token authentication.
  • Adds a source-only consumer that stages one cited GitHub research issue, plus setup and privacy guidance.
  • Extends compiler, CLI, and Go/Node boundary coverage for the new connector.
File Description
pkg/​workflow/​connector_scenario_compile_test.go Adds Web IQ to connector compilation scenarios.
pkg/​workflow/​connector_documentation_scan_test.go Derives the declaration count from compiler scenarios.
pkg/​workflow/​connector_authoring_metadata_test.go Aligns authoring-order checks with the scenario count.
pkg/​workflow/​azure_web_iq_connector_test.go Tests validation, selection, hosted calls, XML examples, and Node parity.
pkg/​cli/​workflows/​azure-web-iq-golden.md Provides a staged web/news research handoff specimen.
pkg/​cli/​connectors_command_test.go Updates the expected bundled declaration count.
docs/​src/​content/​docs/​reference/​connectors.md Documents Web IQ capabilities, authentication, and limits.
.github/​workflows/​connectors/​azure-web-iq.md Defines the connector, grants, schemas, and embedded setup guidance.
.github/​aw/​connectors.md Adds Web IQ to the connector guide and scenario catalog.

Review effort: Max (adaptive)

Comment thread pkg/cli/connectors_command_test.go Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /tdd and /grill-with-docs. The connector works as designed and the focused tests pass on a clean HEAD export, but one test cannot detect the leak it is meant to catch.

📋 Key Themes & Highlights

Key Themes

  • Vacuous omission checks: Encode() is base64, so the targeted-selection NotContains assertions can never fail. Decoding the plan confirms only the web tool is present, so the gap is in the test, not the plan.
  • Loose rejection assertions: invalid-argument and approval tests use bare require.Error, so they would pass for unrelated failures.
  • Import-time limits: the urls and queries descriptions promise per-item limits that the import schema does not enforce; they are enforced only at call time.

Positive Highlights

  • ✅ Redirects are blocked in both the Go and Node runtimes.
  • ✅ Arguments are validated before credentials are resolved.
  • ✅ Hosted failures are not retried and do not echo private error text.

Notes

  • Tests were run against a clean git archive of HEAD because the local working tree is dirty (azure-web-iq.md is deleted there). These findings are not affected by that.
  • The earlier userinfo thread is consistent with the current browse pattern, which rejects @ in the authority.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~12 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this design-gate notice, no change is needed because it identifies no missing decision record or requested fix.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this processing-start notice, no code change is needed because it requests none. A start notice is not evidence that the review completed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this skills-review notice, no code change is needed because the notification contains no actionable finding.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this Test Quality Sentinel result, reported_no_action supplies no requested fix, so no change is needed for this comment. That status alone does not establish that all review or publication work completed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this specification-review notice, no code change is needed because it contains no finding or requested fix.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to this code-quality status notice, no change is needed for the notification itself. The substantive URL-policy finding is being handled in its inline review thread.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For my earlier response, the completion notice still requires no source change. The separate ADR-link suggestion has now been applied without treating the Proposed ADR as approved.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to the completed skills-review notice, no additional change follows from this status alone. Its actionable test and import-description findings are addressed in their inline review threads.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to Ponytail's completed review, reported_no_action contains no requested fix. It does not independently establish current validation or publication.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to the specification-review ledger, this records zero findings and an aligned result for the earlier head 7358579. It contains no change request and does not establish validation of the updated PR.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

For my earlier specification-review response, the now-completed notification still contains no concrete finding or requested fix, so no additional source change is needed for it.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Update to my earlier response: the URL-policy finding was discussed and its inline thread resolved in the prior pushed batch. The status notification adds no further change request.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to the code-quality ledger, this records one finding against the earlier head 7358579 rather than a new change request. The substantive URL-policy feedback was handled in the prior review batch.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to Test Quality Sentinel's result, reported_no_action supplies no requested change. The updated tests are validated separately rather than treating this status as validation.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to the ADR alignment result, added a link to ADR-74077 in the PR body while preserving its Proposed status. No new architecture decision is introduced by this declaration-only provider addition, and the gate is not proof of approval or live authentication.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

In response to the completed code-quality review notice, the status itself requests no change. The separate URL-policy finding was discussed and resolved in its prior inline thread.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this skills-review notice: the status adds no new requested change. The substantive findings remain addressed in their inline threads.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this Test Quality Sentinel result: reported_no_action supplies no requested change. Current test evidence is separate from this historical notification.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this code-quality ledger: its single finding concerns earlier head 7358579 and was handled previously. This historical entry introduces no additional request.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this ADR result: the requested PR-body link is present and ADR-74077 remains explicitly Proposed. No additional ADR or status change is warranted by this declaration-only addition.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked my earlier response: the completed specification-review notice still supplies no concrete finding or requested fix, so no further source change follows.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this specification ledger: its aligned result applies to earlier head 7358579, not current HEAD. It contains no new change request.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked my earlier acknowledgment: the completion notice still requests no additional change. Its concrete findings remain handled separately.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this design-gate notice: the completion status requests no source change. The PR body already links ADR-74077 while preserving its Proposed status.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this specification-review status: it reports completion but names no concrete finding or requested fix. The existing no-change disposition remains valid.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked my earlier response: no further change is needed. reported_no_action is neither a requested fix nor proof that every review or publication step succeeded.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

The update after my earlier response already records Ponytail's completed reported_no_action result, rather than a processing-start status. No source change follows, and the status is not current validation evidence.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked my earlier response: no further source change is needed. The separate ADR-link suggestion is satisfied without changing Proposed status.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked Ponytail's result: reported_no_action requests no fix. Completion alone does not establish current validation or publication.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

Rechecked this code-quality status: the notification requests no further change. Its separate URL-policy finding was handled in the prior inline thread.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

The update after my earlier response already records that the URL-policy finding was handled and its inline thread resolved. The status notice adds no further change request.

@pelikhan
pelikhan merged commit 30aaa01 into main Nov 18, 2026
159 checks passed
@pelikhan
pelikhan deleted the pelikhan/azure-web-iq-connector branch November 18, 2026 06:25
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

3 participants