Skip to content

feat(node): project truthful capability readiness - #1160

Closed
clawsweeper wants to merge 1 commit into
fix/1154-browser-proxy-preflightfrom
fix/1155-capability-truth
Closed

clawsweeper wants to merge 1 commit into
fix/1154-browser-proxy-preflightfrom
fix/1155-capability-truth

Conversation

@clawsweeper

Copy link
Copy Markdown

Summary

  • add one inspectable capability-truth projection for camera, browser proxy, and system.run
  • expose Settings, Windows permission, Gateway declaration/approval/path, local MCP exposure, runtime readiness, and repairs through Command Center and app.connection.status
  • preserve independent local-MCP and Gateway truth, including retained effective declarations during pending reapproval
  • update agent guidance, architecture ledger, and MCP/tool coverage

Closes #1155.

Stacked on #1157 because browser-proxy runtime readiness uses that PR's preflight contract.

Validation

  • git diff --check - passed at c2e36178
  • rubber-duck source review - passed after fixes for disconnected retained declarations, independent MCP/Gateway paths, stale browser readiness, pending reapproval, and prefixed Gateway permission keys
  • ./build.ps1 - not run: current Linux host has no .NET SDK or PowerShell
  • shared/tray tests - not run locally for the same host prerequisite blocker; exact-head Windows CI is required

Real behavior proof

Not verified / blocked on the current host:

  • isolated Windows Hub Command Center capability-diagnostics output
  • local MCP tools/list and app.connection.status tools/call
  • live Gateway declaration, pending-reapproval, and policy transition proof

Keep this PR draft until Windows CI and current-head MCP/Gateway proof are attached.

@clawsweeper

clawsweeper Bot commented Aug 13, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. 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 Aug 13, 2026
@clawsweeper

clawsweeper Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 10:03 PM ET / August 29, 2026, 02:03 UTC.

ClawSweeper review

What this changes

The PR adds a shared readiness projection for camera, browser proxy, and system-run to Command Center diagnostics and the local MCP app.connection.status response.

Merge readiness

⛔ Blocked until real behavior proof is added - 6 items remain

Keep open for human review. The PR adds a new agent-facing diagnostic contract but lacks required Windows/MCP/Gateway proof and is stacked on an older branch whose status schema has since changed on current main.

Priority: P2
Reviewed head: c2e361780b42eec196ca0d00374f8147d6d038a6
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation has focused source coverage, but current-main contract drift and absent real behavior proof prevent merge readiness.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: NodeCapabilityTruthSource feeds the Command Center and the app.connection.status handler, but the PR supplies only unit-level handler coverage and explicitly reports no after-fix Windows Hub, local MCP, or Gateway transition result. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: NodeCapabilityTruthSource feeds the Command Center and the app.connection.status handler, but the PR supplies only unit-level handler coverage and explicitly reports no after-fix Windows Hub, local MCP, or Gateway transition result. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Introduced production projection: The branch adds NodeCapabilityTruthSource, which derives camera, browser proxy, and system-run states from registered commands, Gateway data, and runtime observations.
Introduced MCP wiring: The local MCP status handler builds the capability projection and passes it into the diagnostic response.
Proof is not attached: The PR body explicitly reports that Windows Hub output, local MCP invocation, and live Gateway transition proof are not verified; the added MCP test uses an in-memory handler rather than the tray-hosted endpoint.
Findings 1 actionable finding [P2] Prove the revised status contract on a Windows node
Security None None.

How this fits together

The Windows tray node exposes capabilities through both Gateway node declarations and local MCP. The new projection combines settings, permissions, approval, declaration, and runtime facts for operators and agents.

flowchart LR
  A[Windows settings] --> D[Capability fact source]
  B[Gateway declaration and approval] --> D
  C[Permission and runtime checks] --> D
  D --> E[Readiness projection]
  E --> F[Command Center diagnostics]
  E --> G[Local MCP status]
Loading

Decision needed

Question Recommendation
Should app.connection.status gain this capability-readiness contract as an additive extension of current main's version-2 diagnostic schema? Sponsor a current-main port: Approve the capability fields as an additive current-main contract, then require a rebase, compatibility coverage, and real Windows proof.

Why: The PR body itself identifies this as a supported public agent-facing schema decision, while current main has since established a different version-2 status shape.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: NodeCapabilityTruthSource feeds the Command Center and the app.connection.status handler, but the PR supplies only unit-level handler coverage and explicitly reports no after-fix Windows Hub, local MCP, or Gateway transition result. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Prove the revised status contract on a Windows node (P2) - This handler is the production path that exposes the new readiness data, but the only added MCP coverage invokes an in-memory handler and the PR body says no Windows Hub, local MCP, or Gateway transition output was obtained. Attach redacted current-head winnode --list-tools and app.connection.status output, plus the applicable Gateway transition and Command Center evidence required by repository policy.
  • Resolve merge risk (P1) - The proposed capabilities response needs an explicit compatibility decision and a current-main port because current main already defines a different version-2 status contract.
  • Resolve merge risk (P1) - Capability availability and repair guidance remain unproven on a real Windows tray, local MCP endpoint, and Gateway approval transition.
  • Complete next step (P2) - A maintainer must first sponsor the public diagnostic contract; the remaining proof is contributor-owned and cannot be established by an automated repair.

Findings

  • [P2] Prove the revised status contract on a Windows node — src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:263-281
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Change surface 20 files, +755/-13 lines The broad diagnostics and node-service change needs current-main reconciliation before landing.
Production versus tests production +420, tests +326, docs +9 The production growth is substantial for a diagnostics contract and needs real behavior evidence.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #1155
Summary: This PR is a candidate implementation of the maintained capability-truth issue; the browser-preflight PR is an adjacent dependency rather than the same root cause.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Port the approved contract to current main (recommended)
    Rebase the feature onto the present diagnostic schema and preserve current protocol diagnostics before considering merge.
  2. Pause the stacked feature
    Keep the draft closed to merge activity if maintainers do not want an agent-facing readiness schema.

Technical review

Best possible solution:

If sponsored, reimplement the approved capability fields in current-main diagnostic owners, preserve the current protocol fields, then attach redacted Windows Hub, local MCP, and Gateway-transition evidence.

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

Not applicable as a feature review. The claimed new behavior has no after-fix Windows, local MCP, or Gateway transition evidence attached.

Is this the best way to solve the issue?

No. The branch should not be advanced unchanged because current main has a different status contract and the requested public schema still needs sponsorship.

Full review comments:

  • [P2] Prove the revised status contract on a Windows node — src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs:263-281
    This handler is the production path that exposes the new readiness data, but the only added MCP coverage invokes an in-memory handler and the PR body says no Windows Hub, local MCP, or Gateway transition output was obtained. Attach redacted current-head winnode --list-tools and app.connection.status output, plus the applicable Gateway transition and Command Center evidence required by repository policy.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f46400aab24e.

Labels

Label justifications:

  • P2: This is a bounded, user-facing diagnostics and capability-readiness feature with no demonstrated urgent production regression.
  • merge-risk: 🚨 compatibility: The branch proposes a public MCP status shape on top of an older version-2 contract that current main has since changed.
  • merge-risk: 🚨 availability: The projection reads registration and runtime readiness in NodeService, but real Windows and Gateway transition behavior has not been shown.
  • 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. Needs real behavior proof before merge: NodeCapabilityTruthSource feeds the Command Center and the app.connection.status handler, but the PR supplies only unit-level handler coverage and explicitly reports no after-fix Windows Hub, local MCP, or Gateway transition result. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • Karen: The current-main rewrite that defines the present app.connection.status version-2 shape was authored by Karen. (role: recent current-main status-contract contributor; confidence: high; commits: f46400aab24e; files: src/OpenClaw.Tray.WinUI/Services/ConnectionDiagnosticsProjection.cs, src/OpenClaw.Tray.WinUI/App.CapabilityHandlers.cs)
  • Barbara Kudiess: Barbara's recent connection/protocol work owns adjacent Gateway status and compatibility behavior that the new diagnostic contract must preserve. (role: recent connection and protocol contributor; confidence: medium; commits: 428db773d8be, f4e1cf3a9894; files: src/OpenClaw.Tray.WinUI/Services/ConnectionDiagnosticsProjection.cs, src/OpenClaw.Tray.WinUI/Services/NodeService.cs)
  • Jeremy McKeehen: Jeremy introduced the recent browser-control registration work that the proposed browser readiness state consumes. (role: browser-proxy feature contributor; confidence: medium; commits: 8ac00c5f4977; files: src/OpenClaw.Tray.WinUI/Services/NodeService.cs)

Rank-up moves

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

  • Obtain maintainer sponsorship for the current-main MCP diagnostic contract.
  • Rebase or reimplement against current main and attach redacted Windows Hub, MCP, and Gateway-path evidence.

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 (1 earlier review cycle)
  • reviewed 2026-08-13T22:59:42.462Z sha c2e3617 :: needs real behavior proof before merge. :: [P2] Prove the changed MCP contract through winnode

@clawsweeper

Copy link
Copy Markdown
Author

ClawSweeper feedback follow-up (current head c2e361780b42eec196ca0d00374f8147d6d038a6):

  • The requested winnode --list-tools plus live app.connection.status invocation has not been obtained.
  • A 2026-08-15 Crabbox AWS Windows desktop attempt on lease cbx_129687b80dc6 (violet-crab) synced the dependency head, but the stock image lacks .NET 10, Node LTS, Windows SDK 26100, WebView2, and App Installer / winget, so repository setup and MCP invocation could not run.
  • Azure provisioning failed before lease creation because the available low-priority core quota is 3 and the Windows class requires 16. No operator-connected Windows node was available through this session.
  • This PR is still stacked on fix: preflight browser proxy readiness #1157 and still requires maintainer acceptance of app.connection.status schema version 2 as the supported public diagnostic contract.

Accordingly, Windows Hub, local MCP, and live Gateway transition proof remain not verified. This PR stays draft and blocked on both real behavior proof and the explicit maintainer schema decision.

@shanselman

Copy link
Copy Markdown
Collaborator

Closing this stale draft because it is stacked on the now-declined #1157, is 76 commits behind, and lacks current capability/MCP proof. The underlying request remains preserved in #1155 and can be reimplemented independently if it is still valuable.

@shanselman shanselman closed this Sep 4, 2026
@shanselman
shanselman deleted the fix/1155-capability-truth branch September 7, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal priority bug or improvement with limited blast radius. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants