Skip to content

fix(ci): repair Copilot contracts and config failure diagnostics - #149001

Merged
vincentkoc merged 3 commits into
mainfrom
test/ci-config-observation-failure-probe-20260915
Sep 15, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
test/ci-config-observation-failure-probe-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Main CI fails core lint and type checks because Copilot auth choices contain repeated keys in the registry contract test. The plugin manifest repeats the same three declarations. An independent runtime-inspection failure also lacks enough evidence to distinguish the original config observation from a failed fallback observation.

Post-merge correction: #149016 (ba441dd2) removed the opposite duplicate copies on main. This PR landed as f31b419 against 1226eecf4ff909de172a6837422cfa64723fade8, removing the three remaining capability fields: device credentialOnly and channelLogin, and enterprise credentialOnly.

The independently verified correction is #149038, merged at 2026-09-15 11:39:30 UTC as 80936b0. Its three added lines restore the exact pre-merge parent manifest, blob 77f4b5b054e429150a93944c87ec45782cb8ba2f. This PR alone did not preserve those capabilities through integration.

User Impact

The follow-up above restores Copilot capability metadata. This PR also adds bounded failure diagnostics to one test; the underlying config observation failure remains unresolved.

Why This Change Was Made

The reviewed change retained the first manifest declarations and intended contract expectations. It preserved complete assertions.

Inspect existing observation results only after failure, retain fixture-matching call indices, and limit output to four records with fixed error classifications. Unknown details remain withheld; no raw paths, errors or config are emitted. The pure classifier lives in the existing test helper to keep the test within its line limit.

The observer returns the original promise. Vitest adds normal bookkeeping reactions; this does not establish zero timing overhead. Existing assertions, waits and error propagation remain intact.

Evidence

These historical receipts qualify reviewed head 373d1129aeeccf06c2fcffeb98a68bd82eb88c27 and hosted merge 23b4052e2f78f63df43750ed3ac403f5743d4a91 with main 2f00b4e3dd4674d9bf97ac0c875b74de22b1a6bf. They do not validate the later squash composition with 1226eecf.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@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 marked this pull request as ready for review September 15, 2026 10:18
@openclaw-barnacle openclaw-barnacle Bot added size: S 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, 7:08 AM ET / 11:08 UTC (Revision 3).

ClawSweeper review

What this changes

Removes duplicate Copilot authentication metadata declarations and adds bounded, sanitized configuration-error details to a plugin inspection test.

Merge readiness

✅ Ready for maintainer review

Keep open: the duplicate-key repair and additional failure diagnostics remain useful on fetched main. No actionable introduced defect was found; the maintainer-authored PR is protected from automatic closure.

Priority: P3
Reviewed head: 373d1129aeeccf06c2fcffeb98a68bd82eb88c27

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with useful failure diagnostics and no actionable review findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate; it changes metadata duplication and test diagnostics without altering runtime authority. Current-revision execution is pending in the captured evidence and is not claimed as verified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate; it changes metadata duplication and test diagnostics without altering runtime authority. Current-revision execution is pending in the captured evidence and is not claimed as verified.
Evidence reviewed 9 items Current-main repair remains necessary: Fetched main still contains duplicate channelLogin and credentialOnly properties in the Copilot registry expectations. The PR removes repeated declarations while retaining their values.
Metadata compatibility verified: Read-only parsing and serialization of the pinned base manifest and checkout manifest produced identical JSON, including key order. Existing credential-only and chat-login capabilities remain intact.
Failure-path preservation: The test retains its reply, listener-cleanup, and disposal assertions; captures existing observation calls; preserves original indices after fixture filtering; reports at most four observations; rethrows the original failure; and restores both spies.
Findings None None.
Security None None.

How this fits together

Plugin manifests supply authentication choices without loading provider runtime. The plugin inspection tests exercise chat commands and report configuration failures encountered before inspection completes.

flowchart TD
  A[Copilot manifest] --> B[Authentication contract checks]
  C[Chat inspection test] --> D[Configuration snapshot reader]
  D --> E[Configuration health observation]
  E --> F[Inspection reply and assertions]
  F --> G[Failure diagnostics]
  G --> H[Bounded sanitized CI output]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -3, Tests +74. Total +71 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 3 -3
Tests 3 121 47 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 121 50 +71

Review metrics

None.

Technical review

Best possible solution:

Keep Copilot metadata semantically unchanged while using the existing inspection test to expose the unresolved configuration failure safely.

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

Yes for the duplicate-key defect: fetched main visibly repeats properties in the TypeScript expectations. No deterministic reproduction of the separate intermittent configuration-observation failure is established.

Is this the best way to solve the issue?

Yes: removing identical declarations preserves the contract, and extending the existing failure diagnostic supplies missing evidence without weakening assertions or claiming to repair the intermittent failure.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a bounded internal contract cleanup and diagnostic improvement with no changed user-facing behavior.
  • 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: The MEMBER-authored PR is exempt from the external-contributor proof gate; it changes metadata duplication and test diagnostics without altering runtime authority. Current-revision execution is pending in the captured evidence and is not claimed as verified.

Evidence

What I checked:

  • Current-main repair remains necessary: Fetched main still contains duplicate channelLogin and credentialOnly properties in the Copilot registry expectations. The PR removes repeated declarations while retaining their values. (src/plugins/contracts/registry.contract.test.ts:196, d872aaba81a7)
  • Metadata compatibility verified: Read-only parsing and serialization of the pinned base manifest and checkout manifest produced identical JSON, including key order. Existing credential-only and chat-login capabilities remain intact. (extensions/github-copilot/openclaw.plugin.json:280, 373d1129aeec)
  • Failure-path preservation: The test retains its reply, listener-cleanup, and disposal assertions; captures existing observation calls; preserves original indices after fixture filtering; reports at most four observations; rethrows the original failure; and restores both spies. (src/plugins/status.runtime-inspection.test.ts:843, 373d1129aeec)
  • Diagnostic sanitization: Error names, codes, messages, and stack owners are projected onto fixed allowlists. Unknown details are withheld, and throwing getters cannot replace the original failure. (src/plugins/status.runtime-inspection.test-helpers.ts:61, 373d1129aeec)
  • Relevant dependency contract: The introduced observer spy uses Vitest mock call/results bookkeeping, including settledResults, and the PR explicitly discusses original-promise preservation. The lockfile selects Vitest 5.0.0; this establishes the relevant dependency boundary. (src/plugins/status.runtime-inspection.test.ts:908, 373d1129aeec)
  • Spy promise semantics: Vitest 5.0.0 records fulfillment or rejection through reactions attached to the returned promise, then returns the original value. This supports the PR's stated behavior without claiming zero timing overhead. (packages/spy/src/index.ts:611, f441c6fab25e)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-15T10:24:22.801Z sha ac4a00e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T10:48:03.616Z sha df8932a :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc changed the title chore(ci): diagnose config snapshot observation failures fix(ci): repair Copilot contracts and config failure diagnostics Sep 15, 2026
@vincentkoc
vincentkoc merged commit f31b419 into main Sep 15, 2026
110 checks passed
@vincentkoc
vincentkoc deleted the test/ci-config-observation-failure-probe-20260915 branch September 15, 2026 11:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev

Copy link
Copy Markdown
Member

Follow-up from #137828 exact-head CI: the landed patch f31b419 now removes the remaining credentialOnly declarations (both choices) and channelLogin (device choice) from the Copilot manifest, after #149016 had already deduplicated them. Current main still strictly expects those fields. The resulting deterministic mismatch is visible in https://github.com/openclaw/openclaw/actions/runs/34963535200/job/104363066909 .

I am reproducing this exact main regression and preparing the narrow three-line restoration prerequisite, preserving the strict assertion and the diagnostic additions. #149003 is the earlier already-landed expectation repair, not a fix for this subsequent manifest deletion. If another restoration writer is already active, please link the canonical branch so we avoid collisions.

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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…nclaw#149001)

* chore(ci): diagnose config snapshot observation failures

* test(plugins): extract config observation error classifier
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

extensions: github-copilot 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: S 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.

2 participants