Skip to content

feat: report Windows capability gaps on Gateway publication - #1694

Merged
karkarl merged 2 commits into
karkarl-upstream-gateway-protocol-monitorfrom
karkarl-gateway-capability-gap-reports
Oct 15, 2026
Merged

karkarl merged 2 commits into
karkarl-upstream-gateway-protocol-monitorfrom
karkarl-gateway-capability-gap-reports

Conversation

@karkarl

@karkarl karkarl commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #1692 (feat: monitor upstream Gateway protocol changes nightly). Both remain draft in native stack 1695.

What Problem This Solves

The monitor must flag Windows capability gaps on exact publications and must not misidentify publication tooling as released Gateway source.

User Impact

Maintainers get read-only main/schema/local capability reports, including pending Q&A on first run and unchanged upstream. No application or Q&A UI behavior changes.

Implementation issue publication and agent handoff are blocked until independent package-source-to-exact-artifact verification is implemented. The remediation pipeline is not activated or complete. Missing source coverage is explicit, not a zero-delta success or a configurable bypass.

Why This Change Was Made

The six-field publication contract retains source_commit as the sender-declared package source. The receiver checks GitHub existence, not artifact binding. Exact npm metadata/digest and registry SLSA identify a separate publication workflowSha. Only the announced package is pinned; the other package remains independent latest.

Concrete 2026.9.9 evidence disproved the earlier released-source interpretation: both packages' SLSA predicates identify tooling 2b988ee83444f08ccaf37aa5e98f370726c75f6e, while the signed release tag identifies candidate bcfc88812a35243893585dbeca87ca41b48272ca. There is no candidate dependency in those SLSA statements. Neither a version tag nor commit existence independently binds candidate source to the exact published tarball.

Report v2 therefore records sourceCoverage: unverified and null released commit/tree/diff. It never inventories the tooling tree as released source. Legacy v1 observations cannot supply a trusted baseline. Main early warning, verified schema tarball comparison and current Windows evidence remain useful independently.

Windows support is conservative: string occurrence, DTOs, mocks and wiring candidates do not imply support. Reviewed decisions require production/test evidence. Producer-only question.request/waitAnswer have narrow role exemptions. Unknown surfaces remain unassessed/pending, not automatically defective. Retained remediation state machines preserve bounded work, deduplication and partial-failure handling, but their public entry points now fail before API writes. Separate source-binding and transient-observation health issues prevent the permanent activation blocker from hiding collection failures.

Evidence

52 focused tests pass. Clean-head live nightly and both publication reports distinguish the real candidate/tooling mismatch, omit unverified released comparisons and retain Q&A. Replayed main/schema deltas are zero with stable fingerprints; released delta is null, not zero. Both public implementation entry points reject the live report with zero API calls.

Follow-up rubber-duck review found no blocking issues. Adopted separate health issues, guard diagnostics, independent fingerprint policy version and negative source-claim coverage. Earlier claims that tooling SHA 2b988ee8 proved released source are withdrawn and superseded by this proof.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • none: monitor/workflow/report-only changes; no capacity-dependent runtime or UI change.

Validation

Command Result
actionlint.exe .github\workflows\upstream-gateway-protocol.yml v1.7.11 native Windows ARM64, final head exit 0, no diagnostics
node --test .github\scripts\upstream-gateway-protocol.test.cjs .github\scripts\gateway-capabilities.test.cjs 52 passed, 0 failed/skipped; rerun on unchanged final head
.\build.ps1 Passed all 5 targets in final serialized closeout
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,262 passed, 35 existing skips, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,996 passed, 0 failed/skipped

Final local closeout completed on 2026-10-11 with exit 0 at 3f25a2726ecf424aa8ac2abb85f5108b909bada9. The earlier GitVersion AbandonedMutexException recovered on retry. A subsequent interrupted closeout was not counted as success; the complete serialized build/Shared/Tray rerun above passed. Logs are retained as v2-resumed-build.log, v2-resumed-Shared-tests.log, v2-resumed-Tray-tests.log, and v2-resumed-focused.log in session artifacts.

Current-head hosted CI also passed CI Gate, Core/CLI, Tray/setup/integration, UI/accessibility, setup/connect, revocation/network recovery E2E, and artifact builds. No failing or pending checks were present at closeout; conditional release/security jobs were skipped, not claimed as executed proof.

Official actionlint ARM64 archive SHA256 4900eb60e084604850935705306305f0bb0ca532e07c2b4ae642917142aba75d was verified before execution. No Go or tracked dependency changes. OPENCLAW_REPO_ROOT points at this worktree and tray settings are isolated. Generated bin/obj use session-local C: junctions due host storage limits.

Real Behavior Proof

  • Environment tested: native Windows ARM64, Node 22.19.0, .NET 10.0.401; live npm/GitHub read-only calls.
  • PR head or commit tested: 3f25a2726ecf424aa8ac2abb85f5108b909bada9.
  • Exact steps or command run: node .github\scripts\upstream-gateway-protocol.cjs with external OUTPUT_DIR and a legacy PREVIOUS_REPORT; then both exact 2026.9.9 package events using GITHUB_EVENT_NAME=repository_dispatch and GITHUB_EVENT_PATH with the documented payload, declared source bcfc8881; replay the protocol event. Invoke public publish/handoff with the resulting report and an API stub that rejects any call.
  • Evidence after fix:
Head                    : 3f25a2726ecf424aa8ac2abb85f5108b909bada9
Dirty                   : False
ReportVersion           : 2
DeclaredSource          : bcfc88812a35243893585dbeca87ca41b48272ca
WorkflowSha             : 2b988ee83444f08ccaf37aa5e98f370726c75f6e
SourceCoverage          : unverified
ReleasedTreeIsNull      : True
ReleasedDeltaIsNull     : True
MainDeltas              : 0
SchemaDeltas            : 0
Gap                     : question-answer
LegacyBaselineDiscarded : True
SameReplayFingerprint   : True
publish: blocked, API calls=0
handoff: blocked, API calls=0
  • Observed result: honest partial coverage; Q&A remains pending, producer exemptions remain scoped, unassessed counts are not defect counts. Registry publisher identity is verified against package digest/repository, but package-source binding is not verified. No report invocation performs writes.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A; copied current-head output above, detailed logs/reports retained in session artifacts.
  • Not verified or blocked: independent candidate-to-exact-artifact receipt verification is a real implementation/activation blocker, not deferred configuration. Automated remediation is disabled. End-to-end dispatch delivery and authenticated handoff are not proven. No Q&A production/UI/fixture implementation is claimed.

Security Impact

  • New permissions or capabilities? (Yes/No): No new receiver job permissions.
  • Secrets or tokens handling changed? (Yes/No): No; existing COPILOT_GITHUB_TOKEN remains confined to guarded handoff.
  • New or changed network calls? (Yes/No): Yes; exact metadata/provenance and declared-source existence checks; released tooling-tree fetch removed.
  • Command or tool execution surface changed? (Yes/No): Yes; bounded read-only git evidence collection.
  • Data access scope changed? (Yes/No): Yes; local source/test path/hash/wiring evidence, not exported source content.
  • If any answer is Yes, explain the risk and mitigation: strict payload validation, fixed hosts/repository/packages, no payload shell interpolation or upstream code execution; separate read-only observer and write jobs; unverified/malformed/legacy source claims cannot activate implementation writes. Registry attestations are not claimed as independently signature-verified.

Compatibility and Migration

  • Backward compatible? (Yes/No): Runtime unchanged; six-field event v1 retained. Report v2 intentionally rejects old misleading source-coverage claims.
  • Config or environment changes? (Yes/No): Yes, sender/default-branch activation eventually required, but not sufficient for remediation.
  • Migration needed? (Yes/No): Fresh report baseline required; no runtime migration.
  • If yes, list the exact upgrade steps: legacy reports are discarded with a diagnostic. Independently verified candidate-to-exact-artifact receipts require a future reviewed implementation before publication/handoff can activate; no bypass setting is provided. Then verify default-branch event delivery and authenticated handoff. Keep nightly reconciliation and token isolation.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Add exact publication verification, conservative local evidence assessment, persistent tracked gaps, and bounded existing-work-aware handoff.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0e9789a8-ec09-45db-897e-b32c16d447ef
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 10, 2026
@karkarl
karkarl added this pull request to stack #1695 October 10, 2026 01:12
@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR adds exact-publication observations and conservative Windows capability reports while disabling implementation publication and handoff until package-source binding is independently verified.

Example: Observe [email protected] with declared source bcfc88812a35243893585dbeca87ca41b48272ca and publication workflow 2b988ee83444f08ccaf37aa5e98f370726c75f6e.

  • Before: The stacked monitor treats the publication workflow revision as released Gateway source.
  • After: Report v2 separates the identities, marks released-source coverage unverified, omits its comparison, and retains question-answer as pending.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct collector proof, explicit legacy-report rejection and completed validation support the reporting deliverable; no introduced defect was identified.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Current-head Windows ARM64 collector CLI output exercises nightly observation, both exact 2026.9.9 publication events, unchanged replay, pending question-answer and legacy-baseline rejection; public implementation entry points reject the resulting report with zero API calls, matching the disabled-remediation scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Maintainers can miss Windows capability gaps and mistake publication tooling provenance for released Gateway source.
Reason: The collaborator-approved reporting scope provides useful evidence while explicitly withholding automated remediation authority.

Merge readiness

✅ Ready for maintainer review

Keep open: this collaborator-authored draft adds useful reporting absent from current main, and the earlier validation blocker is resolved with no actionable introduced defect found.

Priority: P2
Reviewed head: 3f25a2726ecf424aa8ac2abb85f5108b909bada9

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository automation receives scheduled or publication triggers, reads GitHub/npm metadata and local Windows source evidence, and produces report artifacts plus bounded health issues.

flowchart TD
  A[Publication or schedule] --> B[Read only collector]
  C[GitHub and npm metadata] --> B
  D[Windows source and tests] --> B
  B --> E[Report artifacts]
  E --> F[Source binding guard]
  F --> G[Implementation writes blocked]
Loading

Technical review

Best possible solution:

Land the scoped reporting work with its parent stack while keeping source verification and implementation activation in separately reviewed work.

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

This is new monitoring capability; supplied current-head CLI output demonstrates the tooling/source discrepancy and conservative report behavior.

Is this the best way to solve the issue?

Separating publication identity from unverified package source preserves useful observations without authorizing implementations from unsupported provenance claims.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Offline regression boundary keeps the original intent (c939e39: Provide deterministic repository-contained checks against a reviewed protocol subset.)
  • Released-source interpretation changes intended behavior with a stated reason (d90dee1: The parent monitor used digest-bound registry provenance to identify released source; this PR records concrete evidence that the revision instead identifies publication tooling.)
  • Implementation publication and handoff changes intended behavior with a stated reason (d90dee1: Create bounded review issues and hand confirmed gaps to an implementation agent; this PR deliberately disables those entry points until independent source binding exists.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Useful maintainer monitoring capability without a demonstrated urgent application regression.
  • merge-risk: 🚨 automation: Publication jobs intentionally fail closed and maintain a source-binding health issue until independent verification exists; the collaborator explicitly accepts this limitation for the reporting deliverable.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 (4 earlier review cycles)
  • reviewed 2026-10-10T01:15:38.911Z sha 60c6eb0 :: needs real behavior proof before merge. :: [P2] Keep title matches advisory when deciding handoff relevance
  • reviewed 2026-10-10T01:21:01.122Z sha 60c6eb0 :: needs real behavior proof before merge. :: [P2] Keep title matches advisory when deciding handoff relevance
  • reviewed 2026-10-10T01:42:29.381Z sha 60c6eb0 :: needs real behavior proof before merge. :: [P2] Keep title matches advisory when deciding handoff relevance
  • reviewed 2026-10-10T02:28:29.847Z sha 3f25a27 :: needs changes before merge. :: none

Reviewed October 11, 2026, 9:41 PM ET / October 12, 2026, 01:41 UTC (Revision 5).

@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 10, 2026
Retain honest partial main/schema/capability coverage, omit unverified released-source comparisons, and block implementation writes until independent source-to-artifact verification exists.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0e9789a8-ec09-45db-897e-b32c16d447ef
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Oct 10, 2026
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 12, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@karkarl
karkarl removed this pull request from stack #1695 October 15, 2026 22:58
@karkarl
karkarl merged commit 3f25a27 into karkarl-upstream-gateway-protocol-monitor Oct 15, 2026
34 checks passed
@karkarl
karkarl deleted the karkarl-gateway-capability-gap-reports branch October 15, 2026 22:58
@karkarl

karkarl commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

Consolidated into #1692 (feat: monitor upstream Gateway protocol changes nightly) at the user's request. Stack 1695 was dissolved, and the surviving branch was fast-forwarded to this exact head, 3f25a27. All commits and the provenance safeguards are preserved. GitHub automatically marked this PR merged when its commits reached its target feature branch; nothing was merged into main. Continue review on #1692. Fresh consolidation validation passed: full build, 52 focused tests, Shared 4,262 passed/35 existing skips, Tray 3,996 passed. Independent source-to-artifact verification remains an explicit remediation activation blocker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant