Repository navigation
[2084 by GPT-5.6 Sol] Bind desktop credentials to strict public instance identity before bearer use - #2086
Conversation
…lic instance Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Native Windows durability (x64) Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned win32-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
/ultrafix goal=9 max=3 Correct exact head 5022ab8 for macOS/Linux/shared identity readiness only. First update apps/desktop/scripts/run-native-durability.mjs credential-service expected count from 68 to 72; the total is derived and must become exactly 119. Do not weaken or remove the fail-closed count gate. Add explicit adversarial assertions for: (1) ProPR Connect rotation from a saved old canonical tunnel origin to a newly rediscovered canonical tunnel origin, proving the new origin/public identity receives a fresh credential generation and transport scope while the old credential, old scope, and old Socket.IO reconnect are never reused or sent; and (2) an identity-specific concurrent switch/rotation race, proving a stale discovery/mismatch cannot detach or activate the replacement generation and that mismatch detaches the exact old credential before any bearer-bearing request. Assert zero old bearer-bearing REST/socket requests before the current strict identity match. Reuse the existing main-owned Connect claim and generation fencing; do not broaden renderer contracts. Run the focused shared/client/desktop tests and typechecks, npm run test:native-durability -w @propr/desktop, git diff --check, and macOS/Linux packaged Connect/package lanes where available. Do not change package-lock.json, any workflow, release/profile behavior, visual geometry, or Windows code/publication/tests. Windows work is paused and Windows-only red lanes are out of scope. Do not merge. Report exact resulting head and test evidence for independent audit. |
|
🔄 Ultrafix loop started (goal: 9/10, max cycles: 3) First action:
|
|
CI failed: Packaged Connect (win32-x64) Please investigate and fix this CI failure.
Failure evidence
|
|
/review Ultrafix cycle 1: review exact head 5022ab8 only for #2084 strict identity security and macOS/Linux/shared readiness. Confirm the known stale fail-closed native durability count (credential-service 68 expected versus 72 executed, derived total 115 versus 119) and require the two explicit missing adversarial proofs: Connect old-origin to rediscovered new-origin rotation with fresh credential generation/transport scope and zero old bearer/socket reuse; and identity-specific concurrent switch/rotation fencing so a stale mismatch cannot detach/activate the replacement while the exact old credential is detached before bearer use. Preserve the current production design unless review finds a concrete violation. Do not modify workflows, package-lock.json, release/visual behavior, or Windows code/publication/tests. Windows-only failures are out of scope. Do not merge. |
|
CI failed: Packaged Connect (win32-arm64) Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned win32-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
🛑 Execution Cancelled The task processing was stopped by user request. You can post a new comment to restart processing. |
|
/review AI-labeled ultrafix cycle 1. Review exact head 5022ab8 for the scoped #2084 correction already specified in the preceding /ultrafix and /review comments: native durability count 68→72 (derived total 119), explicit Connect old→new tunnel rotation proof, and identity-specific concurrent switch/rotation proof. macOS/Linux/shared only; no workflow, lockfile, visual, release, or Windows changes; do not merge. |
|
/review SCOPED MACOS/LINUX/SHARED ULTRAFIX REVIEW — exact head 5022ab8. Ignore every automated Windows CI comment and do not modify or rerun Windows work. Review and then correct only: (1) apps/desktop/scripts/run-native-durability.mjs credential-service expected 68→72, derived total exactly 119, gate retained; (2) explicit end-to-end Connect saved old canonical tunnel→rediscovered new canonical tunnel rotation assertion proving fresh credential generation and transport scope, with old credential/scope/socket never reused or sent; (3) identity-specific concurrent switch/rotation assertion proving stale mismatch cannot detach/activate replacement and exact old credential detaches before any bearer. Assert zero old bearer-bearing REST/socket requests before current strict identity match. No workflow, package-lock, release/profile, visual, geometry, or Windows changes. Run focused tests/typechecks/native durability and macOS/Linux checks. Do not merge. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR establishes a strong identity-bound credential foundation, but it needs significant changes before merge. The real Connect claim implementation permits old-origin pairing after rotation, concurrent rotations are not fenced through pairing completion, and the native durability gate remains stale. The scoped Linux unsigned validations are also currently failing, although the supplied evidence does not trace those failures to PR-changed code. ✅ Strict shared discovery parsing — The shared wire parser rejects duplicate members, oversized payloads, malformed JSON, and noncanonical schema values consistently across CLI and client consumers. ✅ Identity-bound credential storage — Version-2 credentials bind the profile, canonical origin, public identity, and token, while legacy unbound credentials fail closed. ✅ Socket reconnect verification — WebSocket reconnects perform unauthenticated discovery and cancel without attaching a bearer when identity validation fails. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Native durability count remains stale
F2: 🔴 Rotated Connect origin bypasses its claim
F3: 🔴 Connect rotation does not fence pairing
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe strict parser, fail-closed migration, and socket identity gate are solid, but two Connect identity-boundary defects and the deterministic durability-count failure remain. The unexplained current Linux validation failures further prevent merge readiness within the requested scope. Score: 5/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F1 F2 F3 SCOPED MACOS/LINUX/SHARED FIX on exact head 5022ab8. Ignore all automated Windows CI comments; do not modify or rerun Windows work. F1: change only native durability credential-service expected 68→72 so derived total is exactly 119; retain exact equality gate. F2: eliminate null-means-unrestricted ambiguity—distinguish no main-owned Connect claim from a claimed profile presented at the wrong/stale origin, and reject the stale origin before pairing. F3: carry an unforgeable main-owned Connect claim generation/snapshot through pairing and revalidate it immediately before server activation and durable credential commit; concurrent rotation must cancel/clean up the stale pairing without detaching or activating the replacement. Add the exact old→new Connect rotation and deferred concurrent rotation assertions requested above, proving fresh credential generation/transport scope and zero old bearer/scope/socket reuse or transmission before current identity match. Preserve manual HTTPS/loopback pairing when no Connect claim exists. No workflow, package-lock, release/profile, visual/geometry, or Windows changes. Run focused shared/client/desktop tests/typechecks, native durability, diff-check, and macOS/Linux checks. Do not merge. |
|
✅ Applied the requested follow-up changes in commit df077c2
Summary of ChangesImplemented F1–F3 on exact head
Verification passed:
Only six scoped desktop files changed. No Windows, workflow, lockfile, release/profile, visual, or geometry changes. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…rge performed. Implemented F1–F3 on exact head `5022ab85`; no commit or merge performed. - Updated native durability expectation to 72, preserving exact equality at 119 total. - Added explicit unclaimed, claimed, and stale-origin Connect states. - Added main-owned claim generations and per-profile commit fencing. - Revalidated claim snapshots before activation and durable publication. - Added old→new and deferred concurrent-rotation coverage proving fresh credentials/scopes and no stale bearer, scope, socket, activation, or commit reuse. - Preserved manual HTTPS/loopback pairing without a Connect claim. Verification passed: - Shared typecheck/build - Client typecheck and 69/69 tests - Desktop typecheck and focused 76/76 tests - Native durability: exact 119/119 - Linux x64 package and executable/fuse inspection - Portable Darwin verification: 2 passed; 1 native-macOS-only check skipped on Linux - `git diff --check` Only six scoped desktop files changed. No Windows, workflow, lockfile, release/profile, visual, or geometry changes. PR: #2086 Comment by: @integry (ID: 5516273937) Model: gpt-5.6-sol
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR substantially improves desktop credential binding, strict discovery parsing, and Connect claim generation handling, but it is not ready to merge. Three PR-introduced lifecycle and timeout defects remain and require significant correction. ✅ Strict shared parsing — CLI and client discovery now share a bounded parser that rejects duplicate, malformed, oversized, and noncanonical documents. ✅ Identity-bound credentials — Version-2 credentials bind profile, origin, public instance identity, and token, while legacy unbound credentials fail closed. ✅ Requested regressions covered — Native durability is correctly gated at 72 credential-service tests and 119 total, and packaged fixtures correctly map Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F6: 🔴 Pending claims survive failed discovery
F7: 🔴 Discovery generation crosses profile scopes
F8: 🔴 Discovery timeout excludes response headers
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe identity-binding design and adversarial coverage are strong, but the pending-state leaks, cross-profile generation interference, and unbounded header wait are merge-blocking regressions. Current non-Windows checks are also still pending. Score: 5/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F6 F7 F8 Mac/Linux/shared only on exact head f5649ed. F6: generation-conditionally finalize every unsuccessful Connect claim intent (thrown/invalid native discovery, missing/non-Connect profile, stale completion) so pending is cleared only by its owning current intent; retain the prior claim but keep pre-intent active snapshots fenced, and prove manual HTTPS/loopback is not permanently blocked. F7: remove service-wide cross-profile discovery cancellation; use per-profile/fixed-discovery intent generations and add deferred independent-profile overlap coverage, including stale same-profile completion. F8: enforce one caller-visible timeout/cancellation deadline beginning before header fetch and covering header plus bounded body reads even if a fetch/stream implementation ignores AbortSignal; abort/dispose safely and retain credential omission, manual redirect, strict bounded/fatal-UTF8 parsing, and exact timeout-vs-abort classification. Add adversarial never-headers and headers-then-stall tests. Preserve F4/F5 fences, exact 72/119 durability, first→AAA/second→BBB, manual unclaimed pairing, and no workflow/lock/release/Windows changes. Run focused client/connect/credential/native durability tests and Mac/Linux package gates. Do not merge. |
|
🛑 Execution Cancelled The task processing was stopped by user request. You can post a new comment to restart processing. |
|
/review Final Mac/Linux/shared review of exact head a82b926. Re-evaluate all F1–F8: strict shared bounded identity parsing before bearer; persisted profile/origin/identity/generation/scope binding; synchronous old REST/socket/scope fencing at Connect rotation intent; non-committable pending claims; generation-conditional cleanup on every failed/stale exit; independent per-profile discovery; and one end-to-end header+body deadline that settles even for ignored AbortSignal while preserving exact timeout/caller-abort classification. Confirm exact 72/119 durability, first→AAA/second→BBB fixtures, manual unclaimed HTTPS/loopback, no workflow/lock/release/Windows drift, and no new lifecycle leaks. Goal >=9. Ignore Windows-only lanes. Do not merge. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR substantially implements strict identity-bound desktop authentication, but two focused correctness issues remain, so it is not ready to merge. ✅ Strict credential-free discovery — Shared parsing rejects oversized, duplicate, malformed, extra, and noncanonical discovery data before bearer use, with fatal UTF-8 decoding and bounded body reads. ✅ Connect rotation fencing — Per-profile intent generations, non-committable pending snapshots, commit serialization, and generation-conditional cleanup fence stale REST, socket reconnect, and transport-scope activation paths. ✅ Scoped verification updates — Durability is gated at exactly 72 credential-service tests and 119 total tests; packaged fixtures map Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F9: 🔴 Early exits retain mismatched credentials
F10: 🔴 Late header responses are not disposed
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe core security model and adversarial coverage are strong, but the missed mismatch-detachment path and late-response resource leak violate explicit changed-behavior invariants. Both appear locally correctable. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
Full Test Suite ResultsValidation failed during: Full test suite.
View Test Output |
|
/review Final Mac/Linux/shared review of exact head 1e87f07, goal >=9. Re-evaluate F1–F10. In particular confirm F9 detaches any readable persisted identity mismatch generation-conditionally before incompatible/capability exits with zero bearer and correct old-token cleanup, and F10 owns/cancels late header Responses after timeout/caller abort without canceling an accepted Response. Confirm the native headers-then-stall fixture now waits for reader body ownership (pull, not construction), exact 72/119 passes, F4–F8 remain closed, all four packaged fixtures remain first→AAA/second→BBB, and no workflow/lock/release/Windows drift. Ignore Windows-only lanes. Do not merge. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR substantially strengthens desktop credential identity binding, strict discovery parsing, Connect rotation fencing, and bearer isolation. It needs one localized cancellation fix before merge; current-head checks show no failures, though 19 checks remain pending. ✅ Identity mismatch cleanup is correctly ordered — ✅ Connect races are well fenced — Pending intents are published synchronously per profile, stale snapshots become non-committable, publication is serialized with pairing commits, and failed intents retain the prior claim without re-enabling pre-intent activations. ✅ Scoped regressions are covered — The durability gate requires exactly 72 credential-service tests and 119 total; the stalled-body fixture signals ownership from Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F11: 🔴 Pre-aborted discovery can succeed
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe identity-binding and generation-fencing work is otherwise comprehensive, but the remaining F10 cancellation race violates an explicit changed contract. The pending checks should also complete before merge. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/review Final exact-head review of 0213483, Mac/Linux/shared only, goal >=9. Verify F11: pre-aborted callers short-circuit before fetch; synchronous in-fetch caller abort and already-settled deadlines are authoritative; both immediate and deferred ignored-signal Responses are canceled as late values; accepted Responses are not canceled; timeout vs caller-abort remains exact with no unhandled rejection. Reconfirm F1–F10, F9 early identity detach with zero bearer, exact 72/119 native durability, four first→AAA/second→BBB packaged lanes, and no workflow/lock/release/Windows drift. Ignore Windows-only lanes. Do not merge. |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe PR is ready to merge within the requested Mac/Linux/shared scope, conditional on both pending Project Options checks succeeding. No workflow, lockfile, release-profile, or Windows-specific drift is present in the supplied diff; Windows-only lanes were not assessed, and no merge was performed. ✅ Authoritative deadline handling — Pre-aborted callers bypass fetch, synchronous aborts remain authoritative, late ignored-signal responses are canceled, accepted responses are not canceled, and timeout-versus-caller-abort classification follows the first settled deadline without unhandled rejections. ✅ Identity fencing is complete — Strict unauthenticated discovery precedes bearer use, identity mismatches detach credentials before compatibility or capability exits, and generation-bound Connect claims fence stale REST, Socket.IO, pairing, and publication paths. ✅ Release evidence is internally consistent — Native durability is exactly 72 + 37 + 10 = 119, while packaged fixtures consistently map Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation resolves the reviewed F1–F11 concerns with strong adversarial coverage and no verified scoped regression. The two authoritative checks are still pending, so final merge readiness remains conditional on their successful completion. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
8bcd46b
into
1953-epic-desktop-transport-api
AI Implementation Summary
Closes #2084
Branch:
2084/gpt-5.6-sol-bind-desktop-credentials--20260902-1955-ytgCommits: ✅ Changes committed (5022ab8)
AI Processing Completed
Execution Details:
Summary:
Implemented issue #2084.
Key changes:
/api/auth/useruse, Socket.IO reconnects, pairing, and revocation.package-lock.json, workflows, visual geometry, or Windows publication.Verification passed:
git diff --checkGraphical packaged Connect smoke was unavailable because this environment lacks Xvfb/D-Bus/keyring helpers.
Detailed Logs:
01a063b1-c329-7f63-ab1f-449ba23d8664Log files stored at:
/tmp/claude-logs/issue-2084-2026-09-02T20-31-34-218Z-conversation.json/tmp/claude-logs/issue-2084-2026-09-02T20-31-34-218Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2084.
💡 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!