Skip to content

feat: notify Windows monitoring after Gateway package publication - #173567

Merged
RomneyDa merged 5 commits into
openclaw:mainfrom
karkarl:gateway-publication-notifications
Oct 23, 2026
Merged

RomneyDa merged 5 commits into
openclaw:mainfrom
karkarl:gateway-publication-notifications

Conversation

@karkarl

@karkarl karkarl commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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; manual report_only defaults to true. Issue updates use its workflow token; the separate Windows-only COPILOT_GITHUB_TOKEN needs 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_commit remains sender-declared, not independently verified package-source provenance. The receiver distinguishes verified schema bytes and upstream main evidence from that unresolved provenance.

Evidence

  • Exact-head CI run 39695982959 succeeded. ClawSweeper reviewed the same head with no actionable source findings.
  • Secretless proof: 92 tests passed in the changed sender/verifier suites, plus tooling-test typecheck, targeted lint, format, and diff checks. Sender suite: 14 tests, 5.70 s wall. Verifier suite: 78 tests, 49.13 s including existing CLI/integration fixtures and worker setup. Unchanged release-parent and historical-recovery proof was retained.
  • Receiver implementation updated at 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 and winget, 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.
  • Live App scope, HTTP 204 plus receiver acceptance, out-of-scope denial, and revocation behavior remain deployment checks, not claims made by these tests.

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
@clawsweeper

clawsweeper Bot commented Oct 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Oct 15, 2026
@karkarl
karkarl marked this pull request as ready for review October 15, 2026 23:56
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR sends exact Gateway package publication identities to Windows monitoring through a separate optional release job.

Example: The release workflow publishes [email protected].

  • Before: Windows monitoring waits for scheduled reconciliation.
  • After: An optional job verifies the published package integrity and submits its exact identity to the Windows receiver.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The approved implementation has no actionable source finding, but authenticated cross-repository behavior remains unproven.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Backward-compatible Gateway features can remain unused on Windows until monitoring next reconciles upstream packages.
Reason: RomneyDa explicitly approved prompt optional publication notifications and reuse of the existing App; the sender stays within that direction and leaves Windows feature assessment to the receiver.

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
Reviewed head: 224d7edff3392139554ce23ef2c5d384cb4790dc

Before merge

  • Add real behavior proof - Authority-chain proof required: sender tests mock registry and dispatch responses, while release-reader harnesses support optional-failure handling; neither exercises the reused ClawSweeper App through the shipped notification job. In an authorized deployment window, verify the exact installation's Contents grant, demonstrate HTTP 204 with matching receiver acceptance, and show that dispatch outside the token's repository scope and delayed dispatch after revocation cause no receiver effects. The receiver remains unmerged, and the body explicitly records that no live delivery occurred. Supply redacted terminal output or logs, excluding keys, IPs, phone numbers, and non-public endpoints, then request @clawsweeper re-review; no parallel authorization protocol is requested.
  • Resolve security review attention item - The fixed endpoint, isolated credentials, and GitHub-owned authorization reveal no concrete bypass in the reviewed source.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not exercise authenticated delivery through the notification job with receiver acceptance, out-of-scope rejection, and rejection after token revocation.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Release workflow publication sequencing keeps the original intent (062f88e: Core package publication follows prepared tarball verification; recording is added after successful writes without changing publication ownership or registry convergence.)
  • Parent release child-failure handling changes intended behavior with a stated reason (6a883dd: The parent collects required child results and preserves partial npm publication for recovery; this PR narrowly excludes its newly optional notification job.)
  • Final release verification and historical publisher recovery keeps the original intent (bd058c2: Only the admitted historical delayed-readback failure may bypass unsuccessful publisher evidence; the PR retains that predicate and adds a separate named optional-job exclusion.)

Testing

Proof path: in-process harness.

Security

Needs attention: The fixed endpoint, isolated credentials, and GitHub-owned authorization reveal no concrete bypass in the reviewed source.

Evidence

What I checked:

PR surface

Tests +324, Config +60, Other +231. Total +615 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 324 0 +324
Docs 0 0 0 0
Config 1 60 0 +60
Generated 0 0 0 0
Other 3 236 5 +231
Total 7 620 5 +615

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is an optional release-monitoring improvement with scheduled reconciliation retained and no demonstrated urgent runtime regression.
  • merge-risk: 🚨 security-boundary: The new job consumes an App credential for a cross-repository effect; requested scope and action-owned revocation are source-verified, while final-effect authorization proof remains outstanding.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Prove allowed delivery and nearest-forbidden repository rejection, then prove token revocation prevents a delayed dispatch before receiver effects.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-16T00:13:00.796Z sha 6c26277 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-21T21:17:21.023Z sha 4d5c864 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-21T23:05:34.546Z sha 4d5c864 :: needs real behavior proof before merge. :: none

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]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member

@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 4d5c8643e07eb8b3eab45ba0fd8dea449dcfeb65. The already-completed cleanup resolves conflicts and keeps the optional notification from blocking either release-result reader. Exact-head CI is green: 37 successful jobs, 30 skipped, no failed or pending jobs. An additional source/test pass found no further actionable code defect; no source changes or test reruns were needed for this description-only clarification.

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.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

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.
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 21, 2026
@RomneyDa

Copy link
Copy Markdown
Member

@clawsweeper re-review

Maintainer follow-up: use an existing GitHub App, not another dedicated App. Signed head 6570acfdb2bafddc7cc6e3787bbfe0d4237d9882 now reuses the existing ClawSweeper client ID and CLAWSWEEPER_APP_PRIVATE_KEY. The token remains restricted to the Windows repository and Contents write, outside the npm publisher, with action-owned revocation. Documentation and the existing workflow/authentication assertions were updated together. No new App, Actions variable, secret, installation or permission grant was created.

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.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 21, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
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]>
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Oct 21, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@RomneyDa

RomneyDa commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Live dispatch and Copilot API proof (2026-10-22)

Scope: maintainer-authorized live integration checks using RomneyDa's existing gh user credential. This is partial live proof, not end-to-end deployment acceptance. No merge, package publication, secret change, activation-variable change, or source edit.

Exact heads:

Real behavior proof

  1. Executed the exact sender notifyPublications() implementation and its unchanged import, fetched from the sender SHA, on macOS / Node v26.9.0. A thin observer forwarded real fetch calls unchanged and recorded response statuses, not credentials. Replayed already-published @openclaw/[email protected] with its exact npm SHA512 integrity. Registry GET returned 200; exactly one POST to repos/openclaw/openclaw-windows-node/dispatches, event gateway-protocol-published, returned 204 at 08:54:01 UTC. GitHub request ID: FDE2:31EE37:61F3EA:6966BF:6AD9CF29. Sender exited 0 with accepted by GitHub; downstream validation is not awaited. No POST retry.
  2. Replayed that same six-field payload through the receiver's current-head CLI with GITHUB_EVENT_NAME=repository_dispatch and a local event JSON file, using real GitHub/npm reads. Collector exited 0. verifyInvestigation() then passed in 3468 ms, checking main ancestry, immutable tree and exact schema bytes; local head matched, dirty=false. Schema SHA256: 90d43d4fd014ad5cd8814c07676a43002624043695757462cec7a01e4797ec88. This is local replay, not GitHub workflow receipt. Declared source is the v2026.10.5 tag commit 1b58cb9a1b4f4353e1add63c8506db4d890962e8; package-source binding correctly remains unverified.
  3. The existing direct Agent tasks POSTs returned 201 Created, with create_pull_request: false, using the same user identity: sender task and receiver task. Both reached in_progress, with branch artifacts but no pull-request artifacts at observation. These prove user-token task creation, not monitor handoff or completed agent disposition. The earlier test-only tasks are separate from this live integration check.

Not verified / blocked

  • Receiver workflow is absent from main (contents API 404; workflow directory confirms absence). The Actions API reports zero repository_dispatch runs. HTTP 204 therefore does not establish receiver acceptance.
  • UPSTREAM_GATEWAY_MONITOR_ENABLED is unset. COPILOT_GITHUB_TOKEN secret metadata exists, but its value/effective permissions were not read or exercised. No fabricated default-branch context or bypass of the monitor's authority checks was used.
  • Actual ClawSweeper installation-token Contents grant, narrowed repository scope, out-of-scope denial and revocation remain unverified. A personal-token POST cannot prove those App boundaries.
  • Hosted report/artifact delivery, tracker/candidate reservation, configured-token task creation, deduplication and final agent disposition remain deployment checks. No claim of native Windows validation or all-green CI is added here.

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 update

The sender cloud run completed successfully and its task is completed; no pull-request artifact was created. The receiver cloud run was canceled after the requester clarified that live integration, not independent suite reruns, was the desired scope. Both the run and task reached cancelled, with no pull-request artifact. A green cloud-run exit is not a test-count claim, and the canceled run is not test success. The direct HTTP 201 task-creation proof above remains valid; configured-token monitor handoff and candidate disposition remain unverified.

@RomneyDa
RomneyDa merged commit 7d31fe0 into openclaw:main Oct 23, 2026
175 of 176 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants