Repository navigation
feat(setup): enforce validated protocol-v4 Gateway releases - #1105
Conversation
|
Codex review: found issues before merge. Reviewed August 8, 2026, 12:13 AM ET / 04:13 UTC. ClawSweeper reviewWhat this changesThis PR replaces the managed Gateway last-known-good pin with an exact protocol-v4 release policy, install and handshake validation, a manual fallback, and release-candidate discovery automation. Merge readiness⛔ Blocked by patch quality or review findings - 11 items remain Keep open. Two prior P1 blockers remain: explicit existing Gateway versions outside the new embedded map will fail on upgrade, and the new candidate workflow gives a downloaded verifier write credentials. Likely related people: Scott Hanselman (high confidence), Ranjesh Jaganathan (medium), and Barbara Kudiess (medium). Priority: P1 Review scores
Verification
How this fits togetherWindows setup provisions a managed WSL Gateway, then pairs the tray operator and Windows node through it. The changed policy chooses the Gateway release before installation and blocks setup when the installed runtime or Gateway handshake does not match. flowchart LR
A[Setup configuration] --> B[Gateway release policy]
B --> C[Exact Gateway installer]
C --> D[CLI and Node verification]
D --> E[Gateway protocol handshake]
E --> F[Tray operator and Windows node]
E --> G[Typed fallback retry]
Decision needed
Why: Current main preserves explicit versions, while this PR deliberately changes that persisted configuration contract and combines the stricter policy with a write-credentialed verifier. Before merge
Findings
Agent review detailsSecurityNeeds attention: The new scheduled workflow executes a downloaded npm package while holding repository-write credentials. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep validated exact releases as the fresh-install default, preserve the legacy explicit-version contract unless maintainers approve a strict migration, and split candidate verification from credentialed publishing. Do we have a high-confidence way to reproduce the issue? Yes for the upgrade regression: an existing config with a stable official Gateway.Version absent from the embedded map follows the legacy exact path and is rejected before installation. The token exposure is directly established by the workflow and verifier source. Is this the best way to solve the issue? No. The release-validation goal is sound, but the patch changes a supported persisted-version contract without an approved migration and leaves the verifier inside a write-credentialed job. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 650247d9b703. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
66cd1c8 to
9bba2f5
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]>
9bba2f5 to
8412451
Compare
Summary
latestand the Windows-owned LKG with an exact, reviewable release policy.2026.6.34, protocol generation 4, using exact Node22.22.3.2026.6.11as the explicit validated fallback and security floor. Fallback is never automatic and is offered only for typed release-addressable failures.hello-ok.server.versionchecks.This is one cohesive commit rebased directly onto current main
650247d9. It preserves current-main managed-local provenance, mirrored-WSL port allocation, hybrid reload/restart recovery, credential handoff, attribution, and loopback testhost guards. It has no dependency on #1101 or deferred refactor stacks.Release decisions
2026.6.342026.6.112026.7.12026.7.1-2Validation
Current head:
8412451127056373f277045fe68e3c163c21cf8b./build.ps1: passed.Test-GatewayReleaseCandidate.ps1 -Version 2026.6.34 -AllowEmbeddedPolicyEvidence: eligible; SHA-512, npm signatures, Sigstore provenance, signed extended-stable tag, package-build/tag identity, and protocol 4 verified.2026.6.34: rejected because provenance source commit differs from the tag.2026.3.12: rejected below embedded floor2026.6.11.scripts/validate-mxc-e2e.ps1: 17/17 passed without-AllowSkip.gpt-5.6-sol, high): two evidence-boundary P1 findings accepted and fixed; final rerun clean with 90% confidence.Real behavior proof
Current-head disposable proof passed 4/4 in 5.88 minutes:
2026.6.34 (recommended, protocol v4).2026.6.34; Node reported exactv22.22.3;hello-okreported protocol4and exact server version2026.6.34.node.invokerouted harmlesssystem.whichto Windows and resolvedcmd.exe.Strict MXC proof passed real Gateway
system.run, contained direct execution, and denied writes to isolated tray data. Artifacts are underTestResults/E2EandTestResults/MxcE2E; secret-bearing gateway/settings files are excluded by the harness.UI and manual
winnodeMCP proof: Not verified / blocked. An isolatedrun-app-local.ps1 -NoBuild -Isolated -AllowNonMainlaunch surfaced a Windows Security PickerHost window. Per the safety gate, the isolated tray process was stopped immediately without interaction. The disposable E2E harness did exercise isolated local MCP tool calls, but no manual UI screenshot orwinnode --list-tools/--commandclaim is made.No real paired Gateway, credentials, or user profile were mutated.