Replace missing evaluator tools in Daily GitHub Docs SEO Optimizer with a Copilot SDK driver - #47984
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing tools in Daily GitHub Docs SEO Optimizer
Replace missing evaluator tools in Daily GitHub Docs SEO Optimizer with a Copilot SDK driver
Jul 25, 2026
pelikhan
reviewed
Jul 25, 2026
| @@ -0,0 +1,11 @@ | |||
| const { runDailyGitHubDocsSEOOptimizerDriver } = require("../../actions/setup/js/daily_github_docs_seo_optimizer_driver_helpers.cjs"); | |||
Collaborator
There was a problem hiding this comment.
@copilot keep all the code for this driver here in a single file
Contributor
Author
There was a problem hiding this comment.
Addressed in 58d28a1. The driver implementation now lives entirely in .github/drivers/daily_github_docs_seo_optimizer_driver.ts, and the separate helper module was removed.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Jul 25, 2026
| @@ -0,0 +1,100 @@ | |||
| import { describe, expect, it, vi } from "vitest"; | |||
Contributor
Author
There was a problem hiding this comment.
Addressed in d366a07.
pelikhan
reviewed
Jul 25, 2026
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Replaces unavailable SEO evaluation tools with a custom Copilot SDK driver while retaining safe-output reporting.
Changes:
- Adds isolated request generation and baseline evaluation orchestration.
- Updates the workflow to consume the driver-supplied dataset.
- Regenerates the compiled workflow.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/daily-github-docs-seo-optimizer.md |
Configures the driver and updates reporting instructions. |
.github/workflows/daily-github-docs-seo-optimizer.lock.yml |
Reflects the recompiled TypeScript-driver execution. |
.github/drivers/daily_github_docs_seo_optimizer_driver.ts |
Implements collection, validation, isolation, and reporting orchestration. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 3
- Review effort level: Medium
Comment on lines
+5
to
+9
| import { applyModelFallback } from "../../actions/setup/js/model_fallback.cjs"; | ||
| import { getErrorMessage } from "../../actions/setup/js/error_helpers.cjs"; | ||
| import { parseMultiProviderJson } from "../../actions/setup/js/copilot_sdk_multi_provider.cjs"; | ||
| import { parsePermissionConfigFromServerArgs } from "../../actions/setup/js/copilot_sdk_permissions.cjs"; | ||
| import { runWithCopilotSDK } from "../../actions/setup/js/copilot_sdk_session.cjs"; |
| return runSession(finalPrompt, permissionConfig); | ||
| } | ||
|
|
||
| const currentFile = fileURLToPath(import.meta.url); |
Comment on lines
+183
to
+185
| if (typeof page.title !== "string" || typeof page.url !== "string" || typeof page.used_for !== "string") { | ||
| throw new Error(`documentation_pages entries for request ${JSON.stringify(expectedRequest)} must include title, url, and used_for strings`); | ||
| } |
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Daily GitHub Docs SEO Optimizer depended on two unavailable tools (
automation-request-generatorandbaseline-copilot-evaluator), so the workflow could not perform its baseline collection phase in this environment. This change moves that orchestration into a dedicated Copilot SDK TypeScript driver and keeps the reporting phase inside the workflow.Workflow execution model
engine.driver: .github/drivers/daily_github_docs_seo_optimizer_driver.tsCustom Copilot SDK driver
Isolation and permission boundaries
Driver-side validation