Repository navigation
fix(models): require explicit GitHub Copilot activation - #144749
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
landpr-approve-admin-merge |
|
landpr-approve-admin-merge |
|
Codex review: blocked before merge. Reviewed September 11, 2026, 3:51 AM ET / 07:51 UTC. ClawSweeper reviewWhat this changesThe PR makes GitHub Copilot require explicit credentials, retires its discovery switch through a shared migration, and preserves generic GitHub token auditing with Doctor guidance. Merge readiness⛔ Blocked before merge - 4 items remain This remains useful: current main and v2026.9.4 still accept generic GitHub tokens for Copilot. No blocking code defect was found, but listed security-owner involvement is not established by the available approval comments. Priority: P2 Review scores
Verification
How this fits togetherCopilot’s provider plugin resolves credentials and supplies model catalogs to the Gateway. Its manifest also feeds onboarding and credential discovery, while Doctor handles retired configuration and upgrade guidance. flowchart TD
A[Environment and saved credentials] --> B[Copilot credential selection]
C[Provider and agent configuration] --> B
B --> D{Explicit Copilot credentials?}
D -->|Yes| E[Copilot catalog requests]
D -->|No| F[No Copilot discovery]
E --> G[Gateway model catalog]
C --> H[Doctor migration and guidance]
Decision needed
Why: Repository policy requires listed-owner involvement, and the available admin-merge comments do not identify that coverage. Before merge
Agent review detailsSecurityNone. PR surfaceSource -8, Tests +56, Docs -8, Generated 0, Other 0. Total +40 across 36 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the documented explicit-activation cutover and shared upgrade migration, with security-owner confirmation that credential auditing and cleanup remain correct. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main accepts a generic GitHub token without Copilot-specific credentials and passes it into catalog acquisition; the PR also records a real Gateway reproduction. This review did not execute it. Is this the best way to solve the issue? Yes, for the recorded product decision: changing the provider’s credential owner and manifest avoids a competing activation mechanism, while one shared migration handles the retired setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 57b14335665b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
landpr-approve-unrelated-red |
|
Landed after exact-head review and real Gateway/CLI proof.
The guarded CI exception covers only
OPENCLAW_E2E_USE_PREBUILT_DIST=1 NODE_OPTIONS=--max-old-space-size=4096 pnpm exec vitest run extensions/memory-core/src/memory/manager-temporal-ranking.test.ts --maxWorkers 2The fixture uses mocked embeddings and replaces the full-text search table with a view. Copilot activation and secret classification do not affect that availability contract. No memory source changed. The test and assertion originate in The user-posted owner-review approval resolved the procedural security-owner review hold for this exact head. Code, security, proof, and CI gates remained in force. The completed-attempt CI approval names only the memory job. The Windows worker-transform timeout from attempt 1 passed on its single fresh-runner retry with the same source, assertions, and timeout. It is retained as a historical timeout and excluded from the exception. The hosted review's procedural owner hold is covered by the head-pinned approval above and the clean required local review. Its upgrade checklist is covered by the complete prior-release state corpus and real Doctor/Gateway migration proof; no schema change was introduced. |
) Require explicit Copilot configuration, a saved profile, or COPILOT_GITHUB_TOKEN within the existing agent scope. Generic GitHub credentials continue to serve other tools and remain covered by secret audit and cleanup. Retire the discovery opt-out through the shared Doctor migration and add one-time upgrade guidance. Update provider documentation and generated configuration inventories. Validated with focused plugin and secret tests, real Gateway starts across all 16 sanitized configs, and independent CLI checks for activation, Doctor notices, secret detection, and matching-value cleanup. Related: openclaw#144726 Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #144726, #705, #106198, #129624.
What Problem This Solves
Fixes an issue where generic repository-service tokens activated an unconfigured model provider and caused catalog refresh warnings.
Why This Change Was Made
Require explicit provider configuration, a saved provider login or its dedicated token. Authentication, discovery, onboarding, usage and import stop treating generic tokens as provider credentials. One shared migration removes the retired discovery switch; secret auditing still recognizes generic tokens.
User Impact
Unrelated tokens no longer activate the provider. Existing explicit configuration and saved logins continue to work. Doctor shows sign-in guidance once per state directory. This reverses the earlier default; @steipete, for awareness.
Consumers: provider discovery/authentication and credential import now require provider-specific intent.
Evidence
Real Gateway checks reproduced the generic-token warning and confirmed its removal; explicit-token controls remained active. Doctor emitted guidance once and removed the retired setting. All 16 startup configurations passed, along with focused migration, secret and corpus tests.