Repository navigation
[1960 by GPT-5.6 Sol] Implement the guided local Linux setup wizard in the desktop app - #1978
Conversation
… wizard in t Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/review Initial Ultrafix review for the guided local Linux setup lane. Review the full PR delta against |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds a thoughtful shared-engine-based Linux setup wizard, but it needs significant rework before merge. Renderer credential isolation, origin binding, cancellation, resume behavior, and platform gating currently have merge-blocking flaws. Two authoritative checks also remain pending. This review assumes the stated ✅ Constrained setup IPC — The new renderer bridge exposes fixed operations instead of arbitrary IPC or command execution, and main-process handlers centrally validate the renderer URL. ✅ Atomic setup-state writes — Setup snapshots use a mode- ✅ Shared health-gated setup — Desktop reuses Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Paired bearers remain renderer-readable
F2: 🔴 Credentials are not bound to their origin
F3: 🔴 Cancellation does not terminate active work
F4: 🔴 Restart resume discards setup decisions
F5: 🔴 Persisted state can bypass platform gating
F6: 🔴 Unexpected errors cross the redaction boundary
F7: 🔴 Setup IPC validation is incomplete
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Bound pairing pollingValidate and cap server-provided pairing expiry and polling intervals, validate S2: 🟢 Add adversarial regression testsExtend tests with renderer-controlled profile-origin substitution, origin edits retaining credentials, legacy-bridge token reads, a Linux snapshot loaded on Darwin/Windows, concurrent status/start hydration, cancellation during a deliberately blocked host action, and restart recovery for every setup mode. The existing tests cover useful happy paths and basic redaction, but not the security and recovery boundaries above; the exact test organization is optional. ScoreThe shared-engine integration and atomic persistence are promising, but direct bearer exposure/exfiltration paths plus incomplete cancellation and recovery make the current head unsafe to merge. The remaining two pending checks do not change these verified code blockers. Score: 4/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 57b6011 Summary of ChangesFixed the PR’s two UI lint failures:
Verification passed:
Only those two files changed; no commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the PR’s two UI lint failures: - Refactored [LocalSetupWizard.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1978-followup-2026-08-29T19-16-57/propr-ui/src/desktop/LocalSetupWizard.tsx:43) into focused phase/form components, reducing function complexity. - Reduced counted lines in [DesktopExperience.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1978-followup-2026-08-29T19-16-57/propr-ui/src/desktop/DesktopExperience.test.tsx:13) without changing behavior. Verification passed: - UI lint with zero warnings - UI typecheck - UI production build - 26 desktop renderer tests - `git diff --check` Only those two files changed; no commit was created. PR: #1978 Comment by: @github-actions[bot] (ID: 5464300976) Model: gpt-5.6-sol
|
/fix F1 F2 F3 F4 F5 F6 F7 Apply the seven Ultrafix blockers as one hardened local-setup design, with these independent requirements:
Re-run clean UI/desktop/local-setup/CLI validation, production package, and wizard tests, then request a fresh /review. Stay based on 1951-epic-desktop-experience-uxs; do not merge to main. |
|
✅ Applied the requested follow-up changes in commit 546713a
Summary of ChangesImplemented F1–F7 as a unified hardened local-setup design:
Validation passed:
The branch remains based on 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented F1–F7 as a unified hardened local-setup design: - Removed renderer credential IPC and duplicate remote pairing/auth injection. - Added native filesystem selection with session-bound, expiring, single-use capabilities. - Enforced the official relay origin and strict runtime IPC schemas. - Added process-tree cancellation with bounded cleanup and no late writes. - Added validated, redacted resume plans and shared hydration. - Centralized secret redaction across renderer events, persistence, logs, and diagnostics. - Expanded security, cancellation, restart, platform-gating, and wizard tests. Validation passed: - Desktop typecheck, tests, and lint - Local-setup tests: 10 passed - CLI setup tests: 130 passed - Wizard/UI tests: 26 passed - Process-tree cancellation test - UI production build - CLI package dry run - Electron production package - `git diff --check` The branch remains based on `1951-epic-desktop-experience-uxs`; nothing was committed or merged. A fresh `/review` should be posted after the automation commits and publishes this delta. PR: #1978 Comment by: @integry (ID: 5464383143) Model: gpt-5.6-sol
|
/review\n\nReview exact hardened local-wizard head 546713a before its final runtime-base sync. Re-audit every prior F1–F7 boundary: no renderer-readable credentials or duplicate remote auth; main-process native selection with opaque session-bound expiring single-use capabilities resistant to forgery, replay and symlink swaps; official relay/origin enforcement; complete bounded discriminated IPC schemas; AbortSignal propagation and process-tree cleanup without late writes; versioned redacted resume plans, awaited hydration, platform revalidation and surfaced persistence failures; centralized redaction in UI, persistence, logs and diagnostics; atomic mode-600 writes. Also review the broad CLI/orchestrator/shared-engine edits for regressions and require Linux platform gating. Treat any secret exposure, TOCTOU/path capability escape, uncancelled child, invalid resume bypass, or duplicate remote ownership as blocker. Score exact head only; do not modify code. |
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryReview: BlockExact head:
Focused desktop, local-setup, UI, orchestrator-cancellation, and TypeScript checks passed, but they do not exercise these boundaries. The worktree remains clean; no code was modified. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
Full Test Suite ResultsValidation failed during: Full test suite.
View Test Output |
|
!propr Repair every exact-head blocker together on 546713a. Preserve duplicate remote-auth deletion and hardcoded official relay; #1977 owns remote integration.\n\n1. Renderer secret boundary: remove webhook secret input/state/event payload from renderer. Acquire via a native main-process secure one-shot prompt/controller and expose only opaque single-use secret capability/presence label. Main consumes it; resume requires re-entry. Tests must prove a sentinel is absent from DOM, preload/setup IPC, progress/results, persistence, logs and errors.\n\n2. Root authority: default root must be a fixed app-owned 0700 directory with safe ownership/no-link validation. Configured/custom roots require fresh native chooser authority; never trust ConfigManager strings. Consuming a chooser cap must not degrade to reusable pathname authority. Keep anchored main-process directory authority with no-follow/identity-checked relative managed operations, or require reselection after restart. Persisted paths are display metadata, never authority. Regression: select+complete, quit, rename original root, create replacement at identical path, resume must reject/require reselection. Reject symlinked default/children and hardlink targets (outside hardlinked .env must remain byte-identical).\n\n3. Private keys: on capability consumption open once O_NOFOLLOW|O_CLOEXEC, fstat dev/ino/uid/mode/type/size, then atomically copy bytes into app-owned durable 0700 key storage/0600 file. Env/Docker uses only owned copy, never reopens user pathname. Random exclusive same-dir temp, fsync file, rename, fsync dir. Tests swap original after consume and during GitHub step; replacement bytes never read/mounted; cover forged/replay/expiry/session mismatch.\n\n4. Cancellation: rethrow SetupCancellation/AbortError before generic catches. saveWhitelist must not treat abort as validation failure or fall back to .env. Check signal immediately before every commit/rename; return cancelled:true/code cancelled and await settlement with no late writes. Abort each await boundary including whitelist fallback and prove filesystem unchanged.\n\n5. Docker daemon rollback: killing the docker CLI process group is insufficient. Journal deterministic run-owned container name/labels before launch. On abort use a fresh bounded cleanup signal to inspect/stop/rm exact run-owned migration/current service containers even when daemon side effect happened before client returned, then rollback previously started services and await cleanup before cancellation settles. Never touch preexisting/foreign containers; record preexistence/ownership. Stateful fake-daemon regression: container created then client aborts pre-response; owned current/migration and started containers removed, foreign/preexisting untouched, retry only after settlement.\n\n6. Linux gating: shared runSetup rejects before reporter/mutator actions on Darwin/Windows; CLI wrapper also rejects. Tests assert zero actions/writes/containers on both and on retry.\n\n7. Atomic persistence: one shared writer for resume and .env. Parent 0700; reject symlink/hardlink target; unpredictable exclusive wx 0600 temp in same dir; full write+fsync; signal check; rename; verify/chmod final 0600; fsync directory; cleanup temp on failure. No direct in-place .env writes. Test precreated PID-temp symlink, permissive temp, target symlink, hardlinked .env, mid-write/rename failure retaining prior bytes/outside unchanged, final mode 0600.\n\n8. Complete bounded schemas/redaction/hydration remain intact. Either validate/use loginAgents or remove the dead accepted field.\n\n9. Fix exact full-suite regression: test/cliAgentValidation.test.ts mock orchestrators must implement dockerAsync without weakening assertions. Clean desktop test preparation must build local-setup before setup-controller tests (coordinate with the eventual shared prepare:renderer/pretest fix from #1977; do not introduce recursion). Run clean npm ci, direct desktop tests, local-setup/CLI/orchestrator cancellation tests, configured UI tests, full suite, typechecks, production Electron package, sandboxed smoke, git diff --check. |
|
✅ Applied the requested follow-up changes in commit dfba5ac Summary of ChangesImplemented all requested exact-head blockers without committing. Key outcomes:
Validation:
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…tting. Implemented all requested exact-head blockers without committing. Key outcomes: - Renderer no longer handles webhook secret bytes; main uses a native prompt and opaque, expiring, session-bound one-shot capabilities. - Root and private-key authority now use ownership/link/inode validation, anchored directory authority, and durable app-owned key copies. - Added shared atomic 0700/0600 persistence with no-follow, hardlink rejection, fsync, cancellation checks, and failure cleanup. - Cancellation propagates correctly with no fallback or late writes. - Docker abort cleanup journals and removes only run-owned daemon-side containers. - Linux gating occurs before reporters or mutations. - Removed dead `loginAgents`; preserved official relay enforcement and existing remote-auth deletion. - Added clean desktop preparation and the missing `dockerAsync` test mock. - Stabilized the UI manager shortcut regression. Validation: - Clean `npm ci`: passed, 0 vulnerabilities. - Desktop: 46/46. - Local setup: 12/12. - Focused CLI/orchestrator: 89/89. - UI: 69 files, 496/496. - Full runner: all 323 non-UI entries passed; its final UI timing failure was fixed and the complete UI workspace then passed. - Root, desktop, and UI typechecks: passed. - Production Electron package: passed. - `git diff --check`: passed. - Packaged sandbox smoke could not run because the container cannot configure Chromium’s root-owned SUID sandbox or create user namespaces. I did not weaken it with `--no-sandbox`. PR: #1978 Comment by: @integry (ID: 5464699344) Model: gpt-5.6-sol
|
!propr Fix three exact-head correctness issues on dfba5ac while preserving all existing secret, key-copy, cancellation, Linux-gate, atomic-write, and Docker ownership hardening.
Run cancellation repeatedly plus setup-controller/security/private-filesystem/local-setup/CLI/orchestrator, clean desktop tests, configured UI, full suite, typechecks, package/smoke where supported, and git diff --check. Do not merge the advanced UX base yet. |
|
✅ Applied the requested follow-up changes in commit be3d9f9 Summary of ChangesImplemented the three exact-head fixes on Key changes:
Validation passed:
Environment limitations:
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…dd7552c55d58e0f7`. Implemented F17/F18 on exact head `b0012fb8703ded3949b254cedd7552c55d58e0f7`. - F17: [socketAuthentication.ts](/home/node/workspace/packages/api/services/socketAuthentication.ts) now uses frozen, socket-specific header facades and never mutates the shared Engine.IO request. New namespaces receive the same authentication middleware. Added deterministic failure/reconnect isolation coverage in [socketAuthenticationIsolation.test.ts](/home/node/workspace/packages/api/test/socketAuthenticationIsolation.test.ts). - F18: [ConfigManager.ts](/home/node/workspace/packages/cli/src/config/ConfigManager.ts) treats successful atomic-save resolution as the commit point, with rollback only on save rejection. Added abort-at-resolution memory/disk parity coverage. Passed: - 33 targeted tests - API/CLI lint and typecheck - Validate application gates, including 279 fast tests, 321 tunnel tests, CLI packaging, client/UI/docs builds, and notification suites - Linux x64 desktop package - 118/118 native durability tests - Desktop suite: 346 passed, 6 platform skips - Packaged executable/fuse inspection Environment-limited: - Full Suite reached file 209/350 with all prior files green, then required Redis. Docker and Redis are unavailable here. - Darwin, Windows, ARM64, Linux executable smoke, and native DEB/RPM jobs require their CI runners and missing host tools. No commit was created. PR: #1978 Comment by: @integry (ID: 5488805044) Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR delivers a substantial guided Linux setup workflow with careful attention to credential isolation, cancellation, durable state, and platform gating. Within the supplied partial diff, it needs a localized security correction before merge, and the pending platform/package checks must complete successfully. ✅ Capability-bound secrets — Setup requests carry opaque, session-bound capabilities instead of private-key paths or webhook-secret bytes. ✅ Durable private storage — Atomic writes reject symlink and hardlink targets, preserve prior bytes on failure, and enforce private permissions. ✅ Explicit platform behavior — Local setup rejects unsupported macOS and Windows execution before host actions while retaining remote-only behavior. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F19: 🔴 Existing Socket.IO namespaces bypass authentication
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation is otherwise strong and unusually well tested, but the namespace registration-order gap is an authentication-boundary blocker. Several authoritative platform and packaging checks are also still pending. Score: 6/10 🤖 Review Details
Files omitted from review diff34 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.
🤖 Review by ProPR |
|
Implement fresh review |
|
✅ Applied the requested follow-up changes in commit 7d9f097 Summary of ChangesImplemented F19 on exact head
Verification:
The remaining native matrix legs and Linux launch smoke could not run because this host lacks macOS/Windows/ARM64 runners, Docker, Redis, 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…77509dc5d692`. Implemented F19 on exact head `7866809d20e4f086718e4f6e39f177509dc5d692`. - [socketAuthentication.ts](/tmp/git-processor/worktrees/integry/propr/pr-1978-followup-2026-09-01T04-50-39/packages/api/services/socketAuthentication.ts:28) now attaches authentication to root, all pre-existing namespaces, and future namespaces through one idempotent enumeration abstraction. - [socketAuthenticationIsolation.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1978-followup-2026-09-01T04-50-39/packages/api/test/socketAuthenticationIsolation.test.ts:125) adds deterministic pre-registration coverage for missing/wrong credentials and later-namespace credential isolation. Verification: - Focused authentication: 13 passed - API typecheck/lint: passed - Full Suite: 349/350 runs passed; only `llmMetrics.test.ts` timed out because Redis/Docker is unavailable - Host-compatible Validate stages: passed - Linux x64 package, fuse inspection, typechecks: passed - Native durability: 118/118 passed - Desktop tests: 346 passed, 6 platform skips - Runtime/desktop audits: zero vulnerabilities The remaining native matrix legs and Linux launch smoke could not run because this host lacks macOS/Windows/ARM64 runners, Docker, Redis, `xvfb-run`, keyring, and RPM tooling. Only the two requested files are modified; no commit was created. PR: #1978 Comment by: @integry (ID: 5489066697) Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR delivers a comprehensive Linux setup wizard with Electron IPC, resumable setup, durable credential pairing, lifecycle controls, and explicit remote-only behavior elsewhere. The visible implementation is thoughtfully tested, but it is not ready to merge until one localized secret-redaction gap is fixed and pending checks complete. The supplied diff is explicitly partial. ✅ Shared origin policy — ✅ Durable credential lifecycle — Two-phase activation, crash-recovery fixtures, revocation handling, and native durability gates provide unusually strong coverage of credential state transitions. ✅ Renderer isolation — Setup secrets are acquired in Electron main and represented to the renderer through opaque, session-bound capabilities. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F20: 🔴 Short secrets bypass redaction
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Test profile transition isolationAdd an integration test covering remote-to-local switching and removal of the currently active remote profile. The local activation branch in S2: 🟢 Bound queued deep linksConsider imposing a small queue limit in ScoreThe implementation is broad and technically strong, but the accepted-input redaction gap is a security blocker. Pending checks and the explicitly omitted diff ranges also leave final verification incomplete. Score: 6/10 🤖 Review Details
Files omitted from review diff34 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.
🤖 Review by ProPR |
|
Implement fresh review |
|
✅ Applied the requested follow-up changes in commit c90ea0c Summary of ChangesImplemented F20 on exact HEAD
Verification passed:
Unavailable locally: GUI packaged smoke due missing Xvfb, and the five non-Linux-x64 native/package runners. No commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…702d868a5e9c`. Implemented F20 on exact HEAD `7d9f0978e0131e9db1b4b96ba235702d868a5e9c`. - Added shared 16–512 character webhook-secret policy in [webhook-secret-policy.ts](/tmp/git-processor/worktrees/integry/propr/pr-1978-followup-2026-09-01T05-27-32/apps/desktop/src/webhook-secret-policy.ts). - Enforced it in native prompt acquisition and capability issuance/validation. - Added 15-character rejection, 16-character acceptance, 512 acceptance, and 513 rejection coverage. - Added exact shortest-secret renderer/log/diagnostic redaction checks while preserving structured errors. - Confirmed one-character contextual strings are not globally redacted. Verification passed: - Full Suite: all 350 files plus native workspace suite - Desktop typecheck and tests: 349 passed, 6 platform skips - Native durability: 118/118 - Validate’s locally reproducible stages - Linux x64 package build and executable/fuse inspection - `git diff --check` Unavailable locally: GUI packaged smoke due missing Xvfb, and the five non-Linux-x64 native/package runners. No commit was created. PR: #1978 Comment by: @integry (ID: 5489339922) Model: gpt-5.6-sol
|
/review Final exact-head review for |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe visible changes implement the guided Linux setup flow with hardened secret handling, cancellation, durable state, and desktop pairing boundaries. No concrete blocker appears in the supplied ranges, but the review is necessarily partial: the diff explicitly omits files including the ✅ Native prompt policy — ✅ Useful secret-safe diagnostics — Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe reviewed ranges contain no verified code blocker, but the explicitly omitted Score: 7/10 🤖 Review Details
Files omitted from review diff35 files were omitted because patch content was unavailable from GitHub or did not fit the review context budget. Large, binary, generated, and lockfile changes are deprioritized.
🤖 Review by ProPR |
AI Implementation Summary
Closes #1960
Branch:
1960/gpt-5.6-sol-implement-the-guided-loca-20260829-1840-7k8Commits: ✅ Changes committed (587b7ee)
AI Processing Completed
Execution Details:
Summary:
Implemented the guided local Linux setup wizard.
Key changes:
@propr/local-setupusing CLI launcher host operations.Verification passed:
npm run desktop:typechecknpm run desktop:testnpm run test -w @propr/local-setupnpm run test -w propr-ui -- src/desktop/DesktopExperience.test.tsx src/desktop/browserAdapters.test.tsnpm run desktop:packageA disposable Docker-stack smoke test could not run because Docker is unavailable. The packaged-binary Xvfb smoke test and macOS/Windows runtime behavior could not be exercised locally because
xvfb-runand those platforms are unavailable.Detailed Logs:
01a04ed3-7fe4-79f0-aca5-05fda8423a2eLog files stored at:
/tmp/claude-logs/issue-1960-2026-08-29T19-03-14-616Z-conversation.json/tmp/claude-logs/issue-1960-2026-08-29T19-03-14-616Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #1960.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!