Repository navigation
[3932 by GPT-6.2 Sol] Fresh instance: 'System failure: claudeAuth disconnected' notification before any Claude agent exists - #3933
Conversation
Implemented #3932. Fresh instances and agents awaiting their first sign-in no longer generate authentication failures in the Inbox. A confirmed expired Claude login creates one alert naming the agent. The alert clears when the agent signs in again or is disabled. Sprites and Fly Machines use stored credentials for agent health. Docker image warnings require an enabled agent that uses Docker. An expired Claude access token triggers an alert when the stored login has no refresh token. Targeted backend and UI tests and type checks passed. Chromium previews captured the fresh Inbox and the named expired-login alert. ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Windows Connect Discovery (ordinary user, Node 22), CLI and Connect Compatibility Guard Please investigate and fix these CI failures.
Failure evidence
Depends on the failed job(s): Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 651c67f Summary of ChangesFixed the Windows CI failure by skipping only the stored-credential filesystem test on Windows. The test creates a drive-letter path that the API’s Linux credential store rejects. The ordinary-user CLI and API discovery checks still run. Reproduced the path rejection with Windows path semantics. All 118 focused Connect tests and lint passed on Linux with Node 22. The Windows CI job has yet to verify the fix. Review digestRisk-tiered paths
Diff size: 1 file changed, +3/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the Windows CI failure by skipping only the [stored-credential filesystem test](/home/node/workspace/packages/api/test/statusRoutes.test.ts:498) on Windows. The test creates a drive-letter path that the API’s Linux credential store rejects. The ordinary-user CLI and API discovery checks still run. Reproduced the path rejection with Windows path semantics. All 118 focused Connect tests and lint passed on Linux with Node 22. The Windows CI job has yet to verify the fix. PR: #3933 Comment by: @propr-dev[bot] (ID: 7294864105) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements agent-specific authentication alerts and suppresses setup-related noise, but needs minor changes before merge to address two status-reconciliation defects. ✅ Focused authentication alerts — Only confirmed expiration creates an alert; missing credentials and unknown states do not create new failures. ✅ Recovery coverage — Added tests verify deduplication, recovery, disablement, and retirement of legacy Claude alerts. ✅ Remote runtime handling — Tests cover stored credentials for Sprites and Fly Machines without Docker health probes. The supplied current-head checks report 17 passed and 22 skipped. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Runtime lookup timeout reports false health
F2: 🔴 Removed agents lack snapshot ordering protection
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation is focused and the supplied checks pass, but runtime uncertainty can produce false health and delayed snapshots can recreate disabled-agent alerts. Both defects admit localized corrections. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix F1 F2 |
|
✅ Applied the requested follow-up changes in commit 396ae86
Summary of ChangesFixed F1 and F2 in PR #3933.
All 135 tests across six suites passed, along with API type checking and lint. Captured two Chromium previews. Separate finding: A late first observation can still create an alert for a removed agent that has never had a projection record. Review digestRisk-tiered paths
Diff size: 4 files changed, +168/−16 lines Visual previewInbox after disabling an agentAn expired-login observation from before the disable does not create an alert in the Inbox. Agent health when runtime lookup times outSystem Status shows the Claude agent as failed after the runtime lookup times out, even though its stored login is valid. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed F1 and F2 in PR #3933. - **F1:** When the inherited runtime lookup times out, the agent reports disconnected, dependent synthetic pools can degrade, and the Docker image warning remains visible. Stored credentials establish health only for confirmed remote runtimes. - **F2:** Complete snapshots advance the ordering watermark for every known absent agent, including previously healthy agents. Cached and in-flight auth observations retain their original timestamps, so they cannot recreate a retired alert. All 135 tests across six suites passed, along with API type checking and lint. Captured two Chromium previews. **Separate finding:** A late first observation can still create an alert for a removed agent that has never had a projection record. PR: #3933 Comment by: @integry (ID: 7296674621) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR replaces provider-wide authentication failures with named, per-agent alerts and separates remote credential readiness from Docker health. It needs one localized correctness fix before merge. ✅ Conservative authentication alerts — First-time sign-in and unknown credential states do not create failures; confirmed expiration does. ✅ Runtime-aware health — Sprites and Fly Machines use stored credentials, and Docker warnings depend on applicable enabled agents. ✅ Cache observation timestamps — Cached responses preserve their original authentication observation time, preventing stale updates from overwriting newer existing component state. The supplied current-head checks show 17 passed and 22 skipped, with no failures. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Fence stale observations for previously unseen agents
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation addresses the main authentication and runtime behaviors with useful regression coverage and passing checks. The remaining first-observation ordering defect can still generate an alert after an agent is disabled and requires correction before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix F3 |
|
✅ Applied the requested follow-up changes in commit b279d34
Summary of ChangesFixed F3. Once a complete authentication snapshot commits, older observations cannot create an Inbox alert for a removed or disabled agent, even if that agent has never been projected. The watermark commits in the same SQLite transaction as the agent transitions and receipt changes. Added regressions for delayed first observations, failed-write rollback, missing auth data, and refreshes that start in the same millisecond within one API process. All 142 tests across six targeted suites passed, along with lint and API type checking. The Chromium preview shows the enabled agent’s valid alert and no alert for the removed agent. Review digestRisk-tiered paths
Diff size: 7 files changed, +272/−131 lines Visual previewInbox after a delayed authentication snapshotThe still-enabled Claude agent keeps its sign-in alert after a delayed snapshot reports an expired login for a removed agent. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed F3. Once a complete authentication snapshot commits, older observations cannot create an Inbox alert for a removed or disabled agent, even if that agent has never been projected. The watermark commits in the same SQLite transaction as the agent transitions and receipt changes. Added regressions for delayed first observations, failed-write rollback, missing auth data, and refreshes that start in the same millisecond within one API process. All 142 tests across six targeted suites passed, along with lint and API type checking. The Chromium preview shows the enabled agent’s valid alert and no alert for the removed agent. PR: #3933 Comment by: @integry (ID: 7297855469) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the reviewed scope. The PR separates agent authentication from runtime health and replaces provider-wide failures with agent-specific alerts. ✅ Durable stale-observation protection — Cached authentication retains its observation timestamp, and transactional snapshot watermarks prevent older observations from recreating retired alerts. ✅ Correct alert lifecycle — The projection preserves alerts during unknown observations, dismisses them after recovery or removal, and avoids failures for agents awaiting initial sign-in. ✅ Focused regression coverage — Added tests cover remote credentials, runtime lookup timeouts, cache invalidation, cross-instance ordering, and transaction rollback. Review was static, using the supplied diff and context; no commands were run. The authoritative checks report 17 passed, none failed or pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Cover mixed-runtime pool healthConsider adding a synthetic-pool test combining Docker and remote members. The new probe callback in ScoreThe implementation addresses the stated objective with coherent lifecycle handling and substantial regression coverage. No merge blocker was verified, and current checks are passing. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |



AI Implementation Summary
Closes #3932
Branch:
3932/gpt-6.2-sol-fresh-instance-system-fai-20261130-2251-fykCommits: ✅ Changes committed (59c6843)
AI Processing Completed
Execution Details:
Summary:
Implemented #3932. Fresh instances and agents awaiting their first sign-in no longer generate authentication failures in the Inbox. A confirmed expired Claude login creates one alert naming the agent. The alert clears when the agent signs in again or is disabled.
Sprites and Fly Machines use stored credentials for agent health. Docker image warnings require an enabled agent that uses Docker. An expired Claude access token triggers an alert when the stored login has no refresh token.
Targeted backend and UI tests and type checks passed. Chromium previews captured the fresh Inbox and the named expired-login alert.
Review digest
Risk-tiered paths
packages/api/services/agentCredentialStore.ts(+54/−11): auth-looking pathpackages/api/routes/statusRoutes.ts(+94/−46)packages/api/services/notificationProjectionService.ts(+80/−25)packages/core/src/services/syntheticRoutingService.ts(+6/−3)propr-ui/src/pages/inboxUtils.ts(+3/−3)packages/api/test/notificationProjectionClaudeAuth.test.ts(+35/−24)packages/api/test/statusRoutes.test.ts(+53/−0)propr-ui/src/pages/inboxUtils.test.ts(+10/−0)Diff size: 8 files changed, +335/−112 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3932.
💡 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!
Visual preview
Expired Claude login
The Inbox identifies the Claude agent whose stored login expired.
Original unavailable: managed storage is unavailable or the upload has expired.
Fresh instance Inbox
A fresh instance has no agent authentication failures in the Inbox.
Original unavailable: managed storage is unavailable or the upload has expired.