Repository navigation
fix(update): suppress verified ordinary extended-stable notices - #1392
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b5d2b5fb-47b9-4337-af8b-d50fe686f9bc
|
🦞👀 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: blocked before merge. Reviewed September 11, 2026, 2:07 PM ET / 18:07 UTC (Revision 3). ClawSweeper reviewWhat this changesDefers ordinary Windows update notices when official release markers and the connected Gateway’s extended-stable channel permit it, with localized status text and protocol tests. Merge readiness⛔ Blocked before merge - 5 items remain Keep open: the requested behavior is absent from main, and the latest maintainer comment resolves the earlier direction objection. The reported single-line marker cases are fixed, but multiline and unterminated markers still defeat the promised fail-open behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Windows updater selects releases from the official GitHub repository and presents download/install prompts. This change consults the existing Gateway connection before deciding whether to defer a selected release. flowchart TD
A[Official Windows release] --> B[Select compatible update]
B --> C[Validate classification markers]
D[Connected Gateway] --> E[Read authenticated update channel]
C --> F{Verified ordinary and extended-stable?}
E --> F
F -->|Yes| G[Show deferred status]
F -->|No or unavailable| H[Keep update visible]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The release classifier still permits ambiguous security metadata to suppress an update; no dependency, credential, or execution-permission expansion was found. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the approved explicit-marker policy, reject every incomplete classification marker, and establish Release startup compatibility while preserving existing connection ownership. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: append a multiline or unterminated security-classification comment to a valid ordinary marker; the scanner ignores it and suppression remains enabled for extended-stable. This was not executed. Is this the best way to solve the issue? Not yet: the approved explicit-marker approach is focused, but the scanner does not fully enforce its malformed-metadata contract and the startup reorder lacks upgrade evidence. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c71121cdcdc9. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
…n marker Classify() previously counted only exact-match occurrences of the recognized ordinary/security-critical markers. A malformed or unknown 'openclaw-update:' marker sitting alongside a valid ordinary marker silently vanished from the count instead of being treated as ambiguous metadata, letting an update slip through as verified-ordinary (and be suppressed for extended-stable Gateways) even though the release body carried untrusted classification content. Classify() now also counts any 'openclaw-update:' marker-shaped comment via a looser regex and falls back to Unverified whenever that count exceeds the exact-match count, preserving the fail-open contract documented in docs/RELEASING.md for malformed or conflicting metadata. Added regression tests for a valid ordinary marker combined with a near-miss/malformed security marker and other marker-shape variants.
|
Fixed the marker-classification gap flagged by review: \Classify()\ only counted exact-match occurrences of the recognized ordinary/security-critical markers, so a malformed or unrecognized \openclaw-update:\ marker sitting alongside a valid ordinary marker silently disappeared from the count instead of forcing the classification to fail closed (Unverified). A valid ordinary marker plus a near-miss/typo'd security marker (or any other unrecognized marker-shaped comment) now correctly falls back to Unverified per the documented fail-open contract. Added regression coverage for that exact case plus other marker-shape variants (missing space, no leading space, unknown classification value). On the maintainer-decision item: per @shanselman, the Gateway release tagging policy has since changed and this replacement (explicit trusted markers instead of free-text scanning) is the intended direction from Karen (karkarl), so the #1299-closure objection doesn't apply here as originally reasoned. Validation on updated head: \�uild.ps1, Shared.Tests (3946 passed, 32 skipped), Tray.Tests (2887 passed, including 23 in the targeted UpdateCheckPipelineTests). |
Supersedes #1299.
A new PR was created from current
mainbecause the Gateway-aligned release tagging policy changed after #1299 was authored. This replacement uses trusted, explicit release markers (<!-- openclaw-update: ordinary -->or<!-- openclaw-update: security-critical -->) instead of broad free-text security classification, while preserving current main's correction-aware update ownership and fail-open behavior.What Problem This Solves
Fixes an issue where Windows companion users following an authenticated Gateway's
extended-stablechannel could receive ordinary companion update prompts before that channel was ready to advance.Why This Change Was Made
The existing correction-aware update pipeline now defers an update only when official release metadata explicitly classifies it as ordinary and the authenticated Gateway reports
extended-stable. Security and every uncertain or unavailable state keep the update visible. Release prose is not scanned for security keywords, and Gateway connection ownership remains inGatewayConnectionManager.User Impact
Extended-stable users no longer see verified ordinary Windows companion update notices. Security-related, unclassified, malformed, unauthorized, and error states continue to show the update.
Evidence
Focused policy tests prove trusted ordinary/security classification, malformed and incomplete marker handling, authorization and RPC fail-open behavior, extended-stable boundaries, normal channels, correction fallback selection, and App ownership. A real loopback WebSocket test captured the authenticated client wire method
update.statusand parsedeffectiveChannel=extended-stable.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: capture the localizedSkippedupdate state from a current-head Release build with controlled authenticated Gateway and official ordinary release metadata.Validation
$env:OPENCLAW_REPO_ROOT=(Get-Location).Path; .\build.ps1: passed; Shared, CLI, WinNode CLI, SetupEngine, WinUI, docs, and proof-pool gates succeeded.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,944 passed, 34 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,884 passed, 0 skipped, 0 failed.update.statuswire proof: 1 passed, 0 failed.401 Unauthorized; no findings were produced.Real Behavior Proof
d73f7fbe0e8adf0af93bbbbabf6b02812c708f06.GatewayProtocolLiveRoundTripTests.NewProtocolMethods_RealWebSocketRoundTrip_SendCorrectWireFramesAndParseResponseswith detailed console logging.{"type":"req",...,"method":"update.status","params":{}}; response parsing returnedeffectiveChannel=extended-stable.N/A.Skippedscreenshot. Debug/development builds skip release checks, and the Release path requires an authenticated admin-scoped Gateway plus official release metadata carrying the explicit ordinary marker. Thewindows-winui-interactivepool remains declared.Security Impact
NoNoYesNoNoYes, explain the risk and mitigation: the existing authenticated operator client callsupdate.statusonly after handshake and only withoperator.admin. Missing authorization and all protocol/transport failures keep the companion update visible. Release suppression requires trusted exact metadata and fails open on every ambiguous marker state.Compatibility and Migration
YesNoNoReview Conversations