Skip to content

test(plugins): align Copilot auth-choice registry expectations - #148981

Merged
steipete merged 1 commit into
mainfrom
fix/copilot-registry-contract-20260915
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/copilot-registry-contract-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The strict Copilot registry assertion still expects the manifest shape from before the shared account-connection change. The manifest now declares credentialOnly: true on both choices and channelLogin: {} on the device choice.

User Impact

No runtime behavior change. This updates the test to assert the existing manifest metadata without weakening equality or dropping any prior expectation.

Why This Change Was Made

The manifest normalizer preserves these fields, and the registry forwards them unchanged. Adding the three missing expected fields keeps the contract test aligned with its producer. Production delta is zero; tests add three lines.

Evidence

  • The original contracts job passed its first 24-file group, then failed this assertion in the second 23-file group: 368 passed and 1 failed.
  • Complete test, manifest, normalizer, registry forwarding, and provider-auth-choice sibling coverage were inspected.
  • Independent source review, exact oxfmt 0.66.0, git diff --check, and isolated autoreview through P2 passed with no findings.
  • Exact-head CI passed for ffacb4f5071af62e97e0f34ebab315857573e537, including the plugin contract lane and required checks. Dependency Guard passed on attempt 2 after a GitHub HTTP 500 in attempt 1. A fresh independent review through P2 found no actionable issues.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 09:43
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 5:57 AM ET / 09:57 UTC.

ClawSweeper review

What this changes

Updates the Copilot registry test to expect the credential-only and chat-login metadata already declared by the plugin.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a correct, focused repair for an assertion that remains stale on current main. No actionable patch defects were found, and the member-authored, protected PR is not eligible for cleanup closure.

Priority: P3
Reviewed head: ffacb4f5071af62e97e0f34ebab315857573e537

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported assertion repair with no correctness findings or production changes.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR changes only a registry assertion, so contributor runtime proof is exempt; supplied plugin-contract CI success supports the test repair without establishing live sign-in behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR changes only a registry assertion, so contributor runtime proof is exempt; supplied plugin-contract CI success supports the test repair without establishing live sign-in behavior.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff adds only the three expected properties and retains the existing full-object equality assertion. The host-verified test merge likewise changes only this test.
Existing metadata producer: The device choice declares credentialOnly and an empty channelLogin object; the enterprise choice declares credentialOnly without channelLogin. These match the added expectations.
Normalization and forwarding: The normalizer preserves credentialOnly:true and accepts channelLogin:{}; manifest-registry.ts:559 forwards providerAuthChoices unchanged. The sibling provider-auth-choices test also checks preservation of these metadata fields.
Findings None None.
Security None None.

How this fits together

Plugin manifests describe sign-in capabilities before provider runtime loads. The manifest registry normalizes and exposes those declarations to setup consumers, while this contract test checks the resulting Copilot metadata.

flowchart LR
  A[Copilot manifest] --> B[Metadata normalization]
  B --> C[Plugin manifest registry]
  C --> D[Setup sign-in choices]
  C --> E[Registry contract assertion]
  F[Expected Copilot metadata] --> E
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 0 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 0 +3

Review metrics

None.

Technical review

Best possible solution:

Keep the existing manifest contract and assert its complete normalized Copilot metadata without weakening equality.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main compares complete Copilot metadata against objects missing three properties preserved by normalization. Supplied CI reports corroborate the mismatch; this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes. Updating the existing expected objects matches the authoritative manifest and preserves all prior checks without changing production behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5594775538a3.

Labels

Label changes:

  • add P3: This is a bounded test-expectation correction with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR changes only a registry assertion, so contributor runtime proof is exempt; supplied plugin-contract CI success supports the test repair without establishing live sign-in behavior.

Label justifications:

  • P3: This is a bounded test-expectation correction with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR changes only a registry assertion, so contributor runtime proof is exempt; supplied plugin-contract CI success supports the test repair without establishing live sign-in behavior.

Evidence

What I checked:

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 2b8c9f1 into main Sep 15, 2026
173 of 174 checks passed
@steipete
steipete deleted the fix/copilot-registry-contract-20260915 branch September 15, 2026 10:21
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

@vincentkoc

Copy link
Copy Markdown
Member Author

Additional proof for reviewed head ffacb4f5071af62e97e0f34ebab315857573e537, now merged by squash: 1,146 targeted cases passed.

These are pre-merge test receipts for the reviewed head.

@Finn763

Finn763 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Heads-up: this merge left main red on the core lint shard.

src/plugins/contracts/registry.contract.test.ts now has duplicate object keys, flagged as eslint(no-dupe-keys) by check-lint-core-3 / check-lint-hosted-core-shard (and therefore by openclaw/ci-gate on every other PR):

196:9  error  Duplicate key 'credentialOnly'
197:9  error  Duplicate key 'channelLogin'
217:9  error  Duplicate key 'credentialOnly'

git blame on origin/main (d872aaba81a7) attributes 197 to 2b8c9f1ad6, which added channelLogin: {} while an identical key already sat two lines below at 199 (0f86e02796). Same pattern for credentialOnly: true at 196 vs the pre-existing 211, and 217 vs 225 in the enterprise entry.

Removing the duplicated lines clears it. I'd open the one-line fix myself, but I'm at the repo's 20-open-PR limit, so flagging it here instead — it currently makes unrelated PRs look red.

vincentkoc added a commit that referenced this pull request Sep 15, 2026
* commit '1226eecf4ff909de172a6837422cfa64723fade8': (39 commits)
  test: align model auth and setup fixtures with current behavior (#149023)
  refactor: reuse web search request context (#148949)
  fix(ci): remove duplicate Copilot auth metadata (#149016)
  test(agents): align auth fixtures with runtime store reads (#149004)
  improve: reduce data fetched during reminder maintenance (#148996)
  fix(cron): skip availability checks when session pruning is idle (#148920)
  fix(auth): guard GitHub Copilot device flow authority (#148999)
  fix(agents): prevent early recovery aborts of foreground exec (#148959)
  fix(github-copilot): remove retired Raptor mini (#116505)
  improve(feishu): reduce preparation work for documents with tables (#148997)
  improve: reduce database work when recording participants (#148841)
  test: accept Bun error labels in plugin assertions (#148955)
  fix(models): clarify saved account health and catalog status (#148987)
  test(plugins): align Copilot auth-choice registry expectations (#148981)
  fix(channels): reject blank integer channel add options (#145534)
  fix(ui): preserve archive undo after chat navigation (#148831)
  feat: show cited source previews in macOS and iOS chat (#148906)
  fix: avoid redundant tab updates while chats stream (#148865)
  test(qa): run Discord through Crabline (#116446)
  perf(crabbox): prepare project runtimes during worker download (#148952)
  ...
vincentkoc added a commit that referenced this pull request Sep 15, 2026
vincentkoc added a commit that referenced this pull request Sep 15, 2026
* commit '84114b5a2711764e2ca333e327e808fd88316063': (40 commits)
  improve(sessions): reuse compiled transcript metadata queries (#148773)
  fix(ci): repair Copilot contracts and config failure diagnostics (#149001)
  test: align model auth and setup fixtures with current behavior (#149023)
  refactor: reuse web search request context (#148949)
  fix(ci): remove duplicate Copilot auth metadata (#149016)
  test(agents): align auth fixtures with runtime store reads (#149004)
  improve: reduce data fetched during reminder maintenance (#148996)
  fix(cron): skip availability checks when session pruning is idle (#148920)
  fix(auth): guard GitHub Copilot device flow authority (#148999)
  fix(agents): prevent early recovery aborts of foreground exec (#148959)
  fix(github-copilot): remove retired Raptor mini (#116505)
  improve(feishu): reduce preparation work for documents with tables (#148997)
  improve: reduce database work when recording participants (#148841)
  test: accept Bun error labels in plugin assertions (#148955)
  fix(models): clarify saved account health and catalog status (#148987)
  test(plugins): align Copilot auth-choice registry expectations (#148981)
  fix(channels): reject blank integer channel add options (#145534)
  fix(ui): preserve archive undo after chat navigation (#148831)
  feat: show cited source previews in macOS and iOS chat (#148906)
  fix: avoid redundant tab updates while chats stream (#148865)
  ...
vincentkoc added a commit that referenced this pull request Sep 15, 2026
)

* feat(qa): retain invocation evidence and explicit proof ownership

* test(qa): require evidence in maturity attestation guard

* refactor(qa): document evidence assertion invariants

* fix(qa): preserve typed scenario grouping and nested evidence

* test(qa): use canonical direct conversation fixture

* refactor(qa): keep internal evidence definitions private

* refactor(qa): split evidence validation and command planning

* test(qa): remove unused planning mock import

* refactor(qa): preserve matrix evidence with explicit copying

* fix(qa): preserve invocation ownership across retained child evidence

* fix(qa): preserve immutable publication and artifact bases

* fix(qa): preserve continuation artifacts and selected outcomes

* fix(qa): retry observed outcomes while retaining selected evidence

* fix(qa): frame source evidence and preserve artifact test boundaries

* fix(qa): separate diagnostics from scenario proof

* fix(qa): evaluate rowless retry proof by selection

* fix(qa): retain unresolved maturity evidence

* fix(qa): preserve child coverage and repeated Docker lanes

* refactor(qa): keep evidence schemas independent of consumers

* test(qa): isolate matrix interruption from the test runner

* test(qa): pass the signal name to the interruption listener

* test(plugins): align Copilot auth-choice registry expectations (#148981)

(cherry picked from commit 2b8c9f1)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…claw#147756)

* feat(qa): retain invocation evidence and explicit proof ownership

* test(qa): require evidence in maturity attestation guard

* refactor(qa): document evidence assertion invariants

* fix(qa): preserve typed scenario grouping and nested evidence

* test(qa): use canonical direct conversation fixture

* refactor(qa): keep internal evidence definitions private

* refactor(qa): split evidence validation and command planning

* test(qa): remove unused planning mock import

* refactor(qa): preserve matrix evidence with explicit copying

* fix(qa): preserve invocation ownership across retained child evidence

* fix(qa): preserve immutable publication and artifact bases

* fix(qa): preserve continuation artifacts and selected outcomes

* fix(qa): retry observed outcomes while retaining selected evidence

* fix(qa): frame source evidence and preserve artifact test boundaries

* fix(qa): separate diagnostics from scenario proof

* fix(qa): evaluate rowless retry proof by selection

* fix(qa): retain unresolved maturity evidence

* fix(qa): preserve child coverage and repeated Docker lanes

* refactor(qa): keep evidence schemas independent of consumers

* test(qa): isolate matrix interruption from the test runner

* test(qa): pass the signal name to the interruption listener

* test(plugins): align Copilot auth-choice registry expectations (openclaw#148981)

(cherry picked from commit 2a19a12)
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* refactor(agents): centralize tool description exclusions

* Merge main into refactor/tool-description-exclusions-20260915

* commit '84114b5a2711764e2ca333e327e808fd88316063': (40 commits)
  improve(sessions): reuse compiled transcript metadata queries (#148773)
  fix(ci): repair Copilot contracts and config failure diagnostics (#149001)
  test: align model auth and setup fixtures with current behavior (#149023)
  refactor: reuse web search request context (#148949)
  fix(ci): remove duplicate Copilot auth metadata (#149016)
  test(agents): align auth fixtures with runtime store reads (#149004)
  improve: reduce data fetched during reminder maintenance (#148996)
  fix(cron): skip availability checks when session pruning is idle (#148920)
  fix(auth): guard GitHub Copilot device flow authority (#148999)
  fix(agents): prevent early recovery aborts of foreground exec (#148959)
  fix(github-copilot): remove retired Raptor mini (#116505)
  improve(feishu): reduce preparation work for documents with tables (#148997)
  improve: reduce database work when recording participants (#148841)
  test: accept Bun error labels in plugin assertions (#148955)
  fix(models): clarify saved account health and catalog status (#148987)
  test(plugins): align Copilot auth-choice registry expectations (#148981)
  fix(channels): reject blank integer channel add options (#145534)
  fix(ui): preserve archive undo after chat navigation (#148831)
  feat: show cited source previews in macOS and iOS chat (#148906)
  fix: avoid redundant tab updates while chats stream (#148865)
  ...

* refactor(agents): consolidate tool description exclusions

* chore: merge main for tool summary validation

* commit '926bb1e1d75c6b102bcbf93114c690312c23cf18': (1903 commits)
  refactor(matrix): reuse startup verification account key (#157310)
  perf(config): avoid repeated environment scans during publication (#156457)
  chore(i18n): refresh native locales (#157495)
  fix(update): show quiet step progress and date recorded outcomes (#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (#157454)
  test(scripts): await CLI admission fixture lifetimes (#157424)
  fix(ci): preserve consumer selection across core type stripes (#157373)
  fix(wizard): preserve typed plugin enum values (#127577) (#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (#157458)
  test: prebuild run-node signal fixture (#157478)
  refactor(exec): reuse approval policy rule keys (#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (#157365)
  fix(config): apply Gateway writes without waiting for file events (#157372)
  fix: count recorded nested tool operations once (#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (#137810)
  refactor(claws): share resource capability changes (#154680)
  improve(channels): reduce redundant preparation for button messages (#157050)
  fix(build): package preparation fails on unrelated test types (#157318)
  refactor(claws): share bounded document reading (#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…8966)

* refactor(agents): centralize tool description exclusions

* Merge main into refactor/tool-description-exclusions-20260915

* commit '4a994031abb1b54d51b76755a55ac8f6e918162d': (40 commits)
  improve(sessions): reuse compiled transcript metadata queries (openclaw#148773)
  fix(ci): repair Copilot contracts and config failure diagnostics (openclaw#149001)
  test: align model auth and setup fixtures with current behavior (openclaw#149023)
  refactor: reuse web search request context (openclaw#148949)
  fix(ci): remove duplicate Copilot auth metadata (openclaw#149016)
  test(agents): align auth fixtures with runtime store reads (openclaw#149004)
  improve: reduce data fetched during reminder maintenance (openclaw#148996)
  fix(cron): skip availability checks when session pruning is idle (openclaw#148920)
  fix(auth): guard GitHub Copilot device flow authority (openclaw#148999)
  fix(agents): prevent early recovery aborts of foreground exec (openclaw#148959)
  fix(github-copilot): remove retired Raptor mini (openclaw#116505)
  improve(feishu): reduce preparation work for documents with tables (openclaw#148997)
  improve: reduce database work when recording participants (openclaw#148841)
  test: accept Bun error labels in plugin assertions (openclaw#148955)
  fix(models): clarify saved account health and catalog status (openclaw#148987)
  test(plugins): align Copilot auth-choice registry expectations (openclaw#148981)
  fix(channels): reject blank integer channel add options (openclaw#145534)
  fix(ui): preserve archive undo after chat navigation (openclaw#148831)
  feat: show cited source previews in macOS and iOS chat (openclaw#148906)
  fix: avoid redundant tab updates while chats stream (openclaw#148865)
  ...

* refactor(agents): consolidate tool description exclusions

* chore: merge main for tool summary validation

* commit 'e0f58a77476acbe382bff5e55cd520e9d228d478': (1903 commits)
  refactor(matrix): reuse startup verification account key (openclaw#157310)
  perf(config): avoid repeated environment scans during publication (openclaw#156457)
  chore(i18n): refresh native locales (openclaw#157495)
  fix(update): show quiet step progress and date recorded outcomes (openclaw#153407)
  feat(gateway): preserve browser sign-in requirements before connecting (openclaw#157454)
  test(scripts): await CLI admission fixture lifetimes (openclaw#157424)
  fix(ci): preserve consumer selection across core type stripes (openclaw#157373)
  fix(wizard): preserve typed plugin enum values (openclaw#127577) (openclaw#138090)
  fix(qa): title mock Code Mode fixture calls
  refactor: simplify SQLite worker lifecycle and test fixtures (openclaw#157458)
  test: prebuild run-node signal fixture (openclaw#157478)
  refactor(exec): reuse approval policy rule keys (openclaw#157198)
  fix(ci): reuse prepared runtime for changed-target E2E shards (openclaw#157365)
  fix(config): apply Gateway writes without waiting for file events (openclaw#157372)
  fix: count recorded nested tool operations once (openclaw#157438)
  fix(telegram): stop leaking raw file:// markdown links in messages (openclaw#137810)
  refactor(claws): share resource capability changes (openclaw#154680)
  improve(channels): reduce redundant preparation for button messages (openclaw#157050)
  fix(build): package preparation fails on unrelated test types (openclaw#157318)
  refactor(claws): share bounded document reading (openclaw#157436)
  ...

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants