Repository navigation
feat: notify Windows monitoring after Gateway package publication - #173567
Conversation
Record immutable package identities after successful npm writes and dispatch them through a separate optional job. Preserve publication and recovery behavior when notification bookkeeping or delivery fails. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 684c0d64-6714-41cf-9563-cca0d5928c14
|
🦞👀 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. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR sends exact Gateway package publication identities to Windows monitoring through a separate optional release job. Example: The release workflow publishes [email protected].
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: the maintainer approved the optional integration and ClawSweeper App reuse, and the reviewed diff has no actionable code finding; the explicit review-readiness hold remains. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe npm publication workflow records package identities after successful publication; a separate job verifies registry metadata and dispatches a Windows monitoring event, while both release-result readers preserve required publication failures. flowchart TD
A[Approved npm publication] --> B[Record tarball identity]
B --> C[Optional notification job]
C --> D[Verify exact npm metadata]
D --> E[GitHub repository dispatch]
E --> F[Windows monitoring]
A --> G[Release result readers]
C --> G
Technical reviewBest possible solution: Retain the focused optional sender and existing release owners, with GitHub enforcing dispatch authorization and no parallel revocation mechanism. Do we have a high-confidence way to reproduce the issue? This PR adds a maintainer-approved capability rather than repairing a reproduced upstream bug; inspection establishes the intended sender path without executing contributor code. Is this the best way to solve the issue? The smallest complete implementation uses the existing publication step for package identity, one isolated sender for delivery, and the two existing release-result owners for optional-failure handling; the retained test groups protect distinct identity, sequencing, refusal, and recovery contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9d2ac90d14da. Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: The fixed endpoint, isolated credentials, and GitHub-owned authorization reveal no concrete bypass in the reviewed source. EvidenceWhat I checked:
PR surfaceTests +324, Config +60, Other +231. Total +615 across 7 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed October 21, 2026, 7:58 PM ET / 23:58 UTC (Revision 4). |
…cation Integrate current main without restoring retired child registry readback. Keep required publication failures blocking while treating the named optional notification job consistently in the release monitor and final verifier. Preserve historical recovery and cover notification failure, cancellation, and original publisher identity through the production release readers. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review Maintainer direction is now to proceed with this optional integration for Windows feature adoption: additive Gateway features can remain unused on Windows even while protocol compatibility and existing tests stay green. The PR description now makes that goal and acceptance explicit. This task is review-readiness only; do not merge or activate the sender. Current head remains Disposition of the medium authority item: retain it as an explicit deployment-verification gap, not a reproduced code bypass. The destination is fixed, redirects are rejected, and the pinned token action requests only the Windows repository and Contents write; GitHub owns token authorization at the dispatch effect. No parallel authorization/revocation protocol is warranted without a concrete failure. The dedicated App variable/key are absent at both repository and inherited organization scope, and receiver PR openclaw/openclaw-windows-node#1692 is still unmerged, so live sender delivery and scope/revocation proof cannot honestly be supplied yet. No publication, credentials activation, or test dispatch was performed. Please reassess the current description and distinguish source findings from the recorded activation prerequisites. |
|
🦞👀 Re-review progress:
|
Reuse the existing App and Actions key instead of notification-specific credentials. Keep the installation token scoped to the Windows repository and Contents write; no new App installation or permission grant is introduced.
|
@clawsweeper re-review Maintainer follow-up: use an existing GitHub App, not another dedicated App. Signed head Independent source review found only an INDEX-only staging issue, now resolved; no additional production-code defect was found. Static checks passed and fresh-head CI is running. Prior-head green checks are labeled historical in the refreshed PR body. Please review this corrected candidate and distinguish source findings from the remaining deployment-proof gaps: the receiver is not yet on its default branch, the exact installed Contents grant is not independently verified, and authenticated delivery/scope/revocation proof is still absent. This task remains review-readiness only: do not merge or activate the sender. |
|
🦞👀 Re-review progress:
|
Remove the added release documentation and copied workflow assertions. Consolidate repeated unit cases while retaining exact package identity, notification failure sequencing, and release-reader regression coverage. Preserve the maintainer’s ClawSweeper App reuse without production changes. Co-authored-by: RomneyDa <[email protected]>
Live dispatch and Copilot API proof (2026-10-22)Scope: maintainer-authorized live integration checks using RomneyDa's existing Exact heads:
Real behavior proof
Not verified / blocked
Next deployment prerequisite: land the receiver on its default branch under separate merge authority, run report-only observation, then exercise the actual App sender and explicitly enabled receiver/configured Copilot token. Keep the deployment-proof hold until that chain is observed. Task cleanup updateThe sender cloud run completed successfully and its task is |
…enclaw#173567) * feat: notify Windows monitoring after Gateway package publication Record immutable package identities after successful npm writes and dispatch them through a separate optional job. Preserve publication and recovery behavior when notification bookkeeping or delivery fails. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 684c0d64-6714-41cf-9563-cca0d5928c14 * test(release): avoid shadowing workflow in notification regression Co-authored-by: RomneyDa <[email protected]> * fix(release): reuse ClawSweeper for Windows notifications Reuse the existing App and Actions key instead of notification-specific credentials. Keep the installation token scoped to the Windows repository and Contents write; no new App installation or permission grant is introduced. * test(release): trim Windows notification proof to core contracts Remove the added release documentation and copied workflow assertions. Consolidate repeated unit cases while retaining exact package identity, notification failure sequencing, and release-reader regression coverage. Preserve the maintainer’s ClawSweeper App reuse without production changes. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Copilot-Session: 684c0d64-6714-41cf-9563-cca0d5928c14
Related receiver: openclaw/openclaw-windows-node#1692
What Problem This Solves
New Gateway capabilities can go unnoticed on Windows. Publication events prompt the Windows monitor immediately, with nightly reconciliation as the fallback.
User Impact
This is an optional notification, not a release gate. Gateway runtime, ordinary CI, npm-latest selection, and published packages are unchanged. No merge or live activation is included in this work.
The receiver addresses the existing tracker #1829 by fixed issue number, with no discovery or automatic replacement, and maintains deduplicated, focused review candidates. Its Copilot task starts with automatic PR creation disabled, investigates current Windows support, and is instructed to open a draft implementation PR only for a confirmed gap. Repeated observations and existing work do not create another task. The sender itself never opens an issue, starts an agent, or waits for Windows work.
Admin setup: retain the existing ClawSweeper App key upstream; ensure the installation includes the Windows repository and grants Contents write. Land the receiver on its default branch before enabling delivery. Windows writes stay disabled until its owner sets
UPSTREAM_GATEWAY_MONITOR_ENABLED=true; manualreport_onlydefaults to true. Issue updates use its workflow token; the separate Windows-onlyCOPILOT_GITHUB_TOKENneeds Agent tasks read/write and an eligible Copilot Business or Enterprise account. Do not put that token in this sender.Why This Change Was Made
Record each published tarball's identity, verify exact registry integrity, and dispatch the fixed six-field notification from a separate optional job. There is no automatic POST retry or npm rollback. Both release-result readers ignore only the exact optional notification job; required failures still block.
The receiver architecture needs no sender payload change. Source remains at
224d7edff3392139554ce23ef2c5d384cb4790dc: seven files, +620/-5, no added documentation.source_commitremains sender-declared, not independently verified package-source provenance. The receiver distinguishes verified schema bytes and upstream main evidence from that unresolved provenance.Evidence
43942215407554c0db52ac7a4926b1e4de6b636a: 54 secretless native Windows boundary tests and docs passed; full-context P0-P3 follow-up review found no actionable source defects. Loose prose matches now provide investigation context rather than suppressing candidates. Full native build/shared/tray closeout remains blocked by missing host SDK/runtime prerequisites andwinget, recorded in the receiver PR. New receiver-head hosted CI is pending. Prior-head receiver CodeQL and UI suites passed. Build and Test remains red on three WSL installer/runtime lanes also observed on main, plus their aggregate gate. The prior testhost crash remains unexplained, not claimed fixed. Prior-head ClawSweeper reports zero actionable source findings but retains the live authorization-proof hold. No production dispatch, Copilot task creation, credential activation, or package publication was performed.