Repository navigation
[Epic] PWA & Web push - #1731
Conversation
… model and d Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
…ce and authe Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
…ush subscrip Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all genuine merge conflicts in:
Verification:
One Git limitation remains: 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/api/routes/index.ts - packages/api/server.ts PR: #1731 Model: gpt-5.6-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit e030373 Summary of ChangesFixed the PR build check failures without committing:
Verified successfully:
Only those two files are modified. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the PR build check failures without committing: - Typed the planner update mock so TypeScript can inspect its call arguments safely in [plannerBackgroundLifecycle.test.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/api/test/plannerBackgroundLifecycle.test.ts:180>). - Compacted notification exports to satisfy the 400-line lint limit in [index.ts](</tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-04T14-41-14/packages/core/src/index.ts:383>). Verified successfully: - Root, shared, core, API, UI, and docs builds - Core/API/UI lint and UI typecheck - Fast and hosted-tunnel tests - Planner lifecycle tests - CLI packaging - `git diff --check` Only those two files are modified. PR: #1731 Comment by: @github-actions[bot] (ID: 5180607485) Model: gpt-5.6-sol
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all five conflict files. A repository-wide scan confirms no merge markers remain.
Validation passed:
No commit was created. One environment issue remains: Git could not stage the resolutions because the linked worktree index is root-owned, producing 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - .env.example - CHANGELOG.md - docs/docs/operations/configuration-reference.md - packages/api/server.ts - packages/api/test/plannerBackgroundLifecycle.test.ts PR: #1731 Model: gpt-5.6-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 8cd8e17 Summary of ChangesFixed the PR build failure without behavior changes.
Verified successfully:
Only those two files are modified; no commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the PR build failure without behavior changes. - Compacted notification exports in [packages/core/src/index.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/core/src/index.ts:406). - Compacted imports in [packages/api/server.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-23T23-08-14/packages/api/server.ts:13). Verified successfully: - Exact changed-core-source ESLint gate - Core build - API lint with zero warnings - API build - `git diff --check` Only those two files are modified; no commit was created. PR: #1731 Comment by: @github-actions[bot] (ID: 5388991706) Model: gpt-5.6-sol
…led, and sys Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
…ith VAPID, r Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
…t, icons, an Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
Co-authored-by: Rinalds Uzkalns <[email protected]>
|
github-advanced-security Bot found potential problems 13 hours ago Show more details Sorry, we could not generate an autofix suggestion.  Show more details Sorry, we could not generate an autofix suggestion.  Show more details Sorry, we could not generate an autofix suggestion.  Show more details  |
|
✅ Applied the requested follow-up changes in commit 9ce0a4c Summary of ChangesImplemented the CodeQL follow-up fixes:
Validation passed:
No commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented the CodeQL follow-up fixes: - Added the existing API rate limiter to the authenticated Express test fixture in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/api/test/notificationRoutes.test.ts:11). - Replaced both polynomial padding regexes with linear scanning in [notifications.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-14-03/packages/shared/src/notifications.ts:734). Validation passed: - Notification route tests: 12/12 - Notification schema tests: 32/32 - Padded Web Push key regression test - Shared and API TypeScript checks - `git diff --check` No commit was created. PR: #1731 Comment by: @integry (ID: 5395023659) Model: gpt-5.6-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 726a162 Summary of ChangesFixed the API lint failure by consolidating Express imports in notificationRoutes.test.ts, bringing it within the 400-line limit. Validated:
No commit was created. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit. Fixed the API lint failure by consolidating Express imports in [notificationRoutes.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1731-followup-2026-08-24T12-20-51/packages/api/test/notificationRoutes.test.ts:4), bringing it within the 400-line limit. Validated: - API lint passed - API build passed - Notification route tests passed: 12/12 - `git diff --check` passed No commit was created. PR: #1731 Comment by: @github-actions[bot] (ID: 5395100590) Model: gpt-5.6-sol
…fication preferences settings (#1936) * fix(ai): Resolve issue #1722 - Build the browser push enrollment flow and notific Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * feat(ai): Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method. Fixed the failed complexity lint check in [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1936-followup-2026-08-24T11-54-19/packages/core/src/services/notificationService.ts:412) by extracting preference-settings persistence into a focused private method. Verification passed: - Core package lint with zero warnings - Core package build - Notification service tests: 22/22 - `git diff --check` No commit created. PR: #1936 Comment by: @github-actions[bot] (ID: 5394814538) Model: gpt-5.6-sol * fix(notifications): make badge migration reversible --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com> Co-authored-by: Rinalds Uzkalns <[email protected]>
…g, unread state, dismissal, and badging (#1937) * fix(ai): Resolve issue #1723 - Create the mobile-first Inbox page with grouping, Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * fix(ui): preserve notification dismiss identity * feat(ai): Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107). Implemented F1 only in [GlobalHeader.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1937-followup-2026-08-24T14-43-32/propr-ui/src/components/GlobalHeader.tsx:107). - Removed `hidden` and `sm:block` from Logout, keeping it accessible below 640px. - Typecheck passed. - Focused ESLint passed. - `git diff --check` passed. - No commit created, as requested. PR: #1937 Comment by: @integry (ID: 5396851385) Model: gpt-5.6-sol * fix(ui): keep mobile account actions visible * fix(ui): keep inbox pagination reachable * fix(ui): reconcile inbox response races * fix(ui): isolate notification state by account * fix(ui): replay notification mutations safely * fix(ui): preserve read failure feedback * fix(ui): keep demo inbox read only --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com> Co-authored-by: Rinalds Uzkalns <[email protected]>
…llowing up, opening PRs, and dismissing (#1938) * fix(ai): Resolve issue #1724 - Add mobile Inbox actions for stopping tasks, follo Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * feat(ai): Implemented F1 only. Implemented F1 only. - Dismiss now renders whenever `mutationsEnabled` is true, independent of advertised actions: [NotificationActions.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/components/Inbox/NotificationActions.tsx:111) - Added regression coverage for notifications with an empty actions array: [InboxPage.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T17-12-21/propr-ui/src/pages/InboxPage.test.tsx:187) Validation passed: - Focused ESLint - Inbox tests: 14/14 - UI TypeScript typecheck - `git diff --check` No commit created. PR: #1938 Comment by: @propr-ultrafix (ID: 0) Model: gpt-5.6-sol * feat(ai): Implemented only F2, F3, and F4. Implemented only F2, F3, and F4. - `open_pr` is advertised only when a trusted GitHub PR URL is constructed. - Trusted legacy PR links remain available when advertised actions are absent or empty. - Advertised actions now use a versioned metadata envelope, preserving legacy `metadata.actions` and validating combined metadata size before insertion. - Added regression coverage for all three findings. Validation passed: - 65 core/shared schema tests - 8 projection tests - 28 notification route/Web Push tests - 18 Inbox UI tests - Shared, core, API, and UI type checks - Focused lint and `git diff --check` Changes were not committed, as requested. PR: #1938 Comment by: @integry (ID: 5398849258) Model: gpt-5.6-sol * feat(ai): Implemented F5–F8 only: Implemented F5–F8 only: - Dismiss now respects advertised actions, with the legacy empty-action fallback. - Follow-up and Stop successes remain successful if Inbox refresh fails; refresh failures use separate warnings. - `follow_up` is advertised only when the stored task has a valid GitHub repository and issue identity. - Action lists, including empty lists, now use a v2 persistence envelope; legacy reserved-key producer metadata remains intact. - Added focused UI, projection, schema, and persistence regressions. Validation passed: - Root and UI typechecks - 58 schema/service tests - 9 projection tests - 16 focused UI tests - UI lint - `git diff --check` No commit was created. PR: #1938 Comment by: @integry (ID: 5399080238) Model: gpt-5.6-sol * feat(ai): Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes. Fixed the sole CI failure in [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-03-38/packages/api/services/notificationProjectionService.ts:152) by extracting follow-up eligibility logic into a helper, reducing method complexity without behavior changes. Validation passed: - API ESLint with zero warnings - API TypeScript build - Notification projection suite: 9/9 tests - `git diff --check` No commit was created. PR: #1938 Comment by: @github-actions[bot] (ID: 5399234375) Model: gpt-5.6-sol * feat(ai): Implemented only F9, F10, and F11. Implemented only F9, F10, and F11. - Review follow-ups are advertised only when the persisted issue number matches the reviewed PR. - Added nullable `advertised_actions_json` storage; `NULL` identifies legacy events. - Producer metadata remains unchanged in `metadata_json`, preserving the full published size limit. - Added migration and regression coverage for legacy metadata, maximum-size metadata, and mismatched review threads. Key files: [notificationProjectionService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/api/services/notificationProjectionService.ts), [notificationService.ts](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/services/notificationService.ts), [migration](/tmp/git-processor/worktrees/integry/propr/pr-1938-followup-2026-08-24T18-07-31/packages/core/src/db/migrations/20260824020000_add_notification_advertised_actions.js). Validation passed: - 100 notification, projection, schema, migration, and Web Push tests - Core and API type checks - Core and API lint - Migration rollback smoke test - Diff whitespace check No commit was created. PR: #1938 Comment by: @integry (ID: 5399346966) Model: gpt-5.6-sol * feat(ai): Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`. Fixed the flaky full-suite failure in `webPushDispatcher.test.ts`. The retry assertion now validates the exact 10 ms backoff from the attempt timestamp instead of comparing against a later database-managed timestamp. Validation passed: - Dispatcher suite: 16/16, repeated 3 times - API lint - API typecheck - `git diff --check` No commit created. PR: #1938 Comment by: @github-actions[bot] (ID: 5399462590) Model: gpt-5.6-sol * feat(ai): Implemented F12 and F13 only. Implemented F12 and F13 only. - Legacy `NULL` action rows now receive explicit `open_pr` and `dismiss` compatibility actions; stored `[]` remains actionless. - UI controls now require explicit advertised actions. - Follow-up is advertised only when the projected issue matches `tasks.issue_number`. - Added/updated regression coverage for both cases. Validation passed: - Core: 26 tests - API projection: 10 tests - UI: 16 tests - Core, API, and UI type checks - Focused ESLint and `git diff --check` No commit was created. PR: #1938 Comment by: @integry (ID: 5401069287) Model: gpt-5.6-sol --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…ove/execute notification intents (#1939) * fix(ai): Resolve issue #1725 - Add plan refinement and confirmation-gated approve Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * feat(ai): Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit. Fixed the CI lint failure in [notificationProjectionService.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-34-39/packages/api/test/notificationProjectionService.test.ts:114). The assertions retain equivalent coverage while staying within the 400-line lint limit. Validated: - API lint passes - API typecheck passes - Notification projection tests: 10/10 pass - `git diff --check` passes No commit created. PR: #1939 Comment by: @github-actions[bot] (ID: 5401662774) Model: gpt-5.6-sol * feat(ai): Implemented the rollback correction and regression coverage. Implemented the rollback correction and regression coverage. - [Migration](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/src/db/migrations/20260824030000_add_plan_notification_actions.js) now filters stored arrays to the four prior actions, preserving order and valid JSON, before restoring the old trigger. - [Regression test](/tmp/git-processor/worktrees/integry/propr/pr-1939-followup-2026-08-24T21-44-35/packages/core/test/planNotificationActionsMigration.test.ts) exercises the real SQLite up/down transition, service persistence/reads, rollback filtering, and restored trigger validation. Validation passed: - Core typecheck - Migration ESLint - Targeted migration regression test - `git diff --check` No commit created. PR: #1939 Comment by: @integry (ID: 5401772474) Model: gpt-5.6-sol --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…ttom navigation (#1940) * fix(ai): Resolve issue #1726 - Replace the mobile desktop-style header with botto Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * feat(ai): Implemented F1 only. Implemented F1 only. - Added Dashboard to the mobile More sheet. - Added Access for users with `instance.manage_members`. - Marked More active on `/` and `/admin/members`. - Added tests for visibility, permission gating, and active states. Changed: - [MobileBottomNavigation.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.tsx) - [MobileBottomNavigation.test.tsx](/tmp/git-processor/worktrees/integry/propr/pr-1940-followup-2026-08-24T23-23-38/propr-ui/src/components/MobileBottomNavigation.test.tsx) Validation passed: TypeScript, ESLint, and all 444 UI tests. No commit created. PR: #1940 Comment by: @integry (ID: 5402825666) Model: gpt-5.6-sol --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…orkflows reached from notifications (#1941) * fix(ai): Resolve issue #1727 - Restore mobile Planner Studio and task-review work Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * fix(ui): size Planner Studio within app shell * fix(ui): constrain mobile task summary to route * fix(ui): wrap multi-agent execution controls * fix(ui): keep approved plan header stacked on mobile --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com> Co-authored-by: Rinalds Uzkalns <[email protected]>
… mobile navi (#1942) Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…nel, and deployment configuration (#1943) * fix(ai): Resolve issue #1729 - Document and validate PWA, Web Push, badge, tunnel Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully. * docs: link canonical WebKit push article * fix: complete web push deployment contract --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com> Co-authored-by: Rinalds Uzkalns <[email protected]>
|
/review codex |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codexOverall EvaluationThis PR delivers a broad notification, Web Push, PWA, Inbox, and mobile-navigation foundation with strong validation and targeted regression coverage. No merge-blocking defect is verified in the supplied diff, but the review is explicitly partial and eight current-head checks remain pending, so it is only conditionally ready to merge. ✅ Consequential intents are gated — Ambiguous intents are rejected, consumed parameters are removed, and approval or execution requires an explicit foreground confirmation. ✅ Security boundaries are explicit — VAPID pairs are validated without exposing secrets, notification cursors are strictly bounded, and PR actions accept only matching HTTPS GitHub URLs. ✅ Layered tests cover critical paths — The changes add migration, persistence, API, push, service-worker, intent, responsive UI, and browser smoke coverage. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise service workers in-browser
S2: 🟢 Diagnose malformed enablement
ScoreThe visible implementation is thoughtful and well tested, with no verified code blocker or current-head failure. The score remains limited by the explicitly omitted diff ranges and eight pending checks, which prevent a complete merge-readiness determination. Score: 7/10 🤖 Review Details
Files omitted from review diff21 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 |
|
/review codex |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codexOverall EvaluationThis PR aims to deliver the durable notification, projection, subscription, and Web Push backend. However, the supplied diff explicitly omits the six production files and two schema migrations requested for this review. Their cross-layer concurrency, retry, deduplication, authorization, and migration behavior therefore cannot be verified. The PR needs a targeted follow-up review before merge approval; no scoped code defect can be established from the available evidence. No positive implementation observation can be verified for the scoped files. The authoritative current-head checks are all passing, but that does not substitute for reviewing the omitted code. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Provide the scoped backend diffRepeat the targeted review with complete base-to-head ranges for the requested notification contract, persistence, projection, dispatcher, subscription, and schema-migration files. This is a review-coverage follow-up rather than evidence of a defect, because the current excerpt explicitly omits the code needed to substantiate a merge blocker. ScoreAll current checks pass and no code blocker is verifiable, but the material diff gap prevents a merge-ready assessment for the requested scope. Score: 7/10 🤖 Review Details
Files omitted from review diff21 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 |
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — claude:claude-sonnet-5Overall EvaluationThis PR implements a very large, self-contained notification/PWA/Web Push subsystem spanning schema migrations, a durable persistence layer, authenticated REST routes, a Web Push dispatcher, lifecycle projection from existing task/plan/indexing events, and a full mobile Inbox/notification UI with bottom navigation, browser enrollment, and confirmation-gated consequential actions. Given the scope (100+ files, thousands of lines), I focused on tracing the changed control/data paths for the security- and correctness-sensitive parts: recipient/authorization scoping, PR-URL/action safety in the service worker, idempotency of Inbox mutations, VAPID key handling, and the plan approve/execute confirmation flow. The implementation is unusually careful for its size: user-supplied identifiers are stripped before database writes, the private VAPID key is never serialized, "Open PR" actions are cryptographically constrained to the actual event's repository/PR number and to ✅ Confirmation-gated consequential actions — ✅ Trusted PR-link enforcement across layers — Both ✅ Broad, layered test coverage — Migration round-trip tests, service-level idempotency/race tests, API authorization tests, dispatcher policy tests, and Playwright smoke tests are all present and exercise the primary changed behaviors described in the linked issues. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Verify Web Push capability wiring order at server startup
S2: 🟢 Align the null-
|
|
|
…ed to this PR's preview-cache work.
Fixed. The failure was a pre-existing timing flake, unrelated to this PR's preview-cache work.
## What failed
I pulled the shard's uploaded artifact rather than guessing. Of 131 units, 130 passed and one failed:
- `test/notificationSchema.test.ts` → *"uses one database-timed claim statement for pending, retryable, and expired processing jobs"*
- `AssertionError: Missing expected rejection` at line 2921, in a test that took **4.3s** — the tell-tale sign of a loaded runner.
## Root cause
The test inserted a retry attempt with `next_retry_at = now + 0.200 seconds`, read that value back off the job row, and used it as `claimed_at` in an update it expected the `push_delivery_jobs_valid_transition` trigger to reject.
That rejection hinged entirely on the trigger condition `NEW.claimed_at <= strftime('now')` being **false** — i.e. on the timestamp still being in the future. The margin was 200 ms of wall clock covering an INSERT, a SELECT and an UPDATE. On a busy CI runner that window elapses, `claimed_at` becomes the past, the transition becomes genuinely legal, and no rejection is raised.
The test file is untouched by this branch (`git diff main...HEAD` shows nothing; it was last modified in #1731), so this was latent flakiness that this run happened to trip.
## Verification
I didn't just assert the diagnosis — I reproduced it. Injecting a 300 ms stall before the UPDATE on the **original** code produced the identical `Missing expected rejection.` error from CI.
The fix pins `claimed_at` to a fixed far-future constant (`futureClaimedAt = '2099-08-02T08:05:00.000Z'`, kept below `leaseExpiresAt` so the row stays coherent) instead of deriving it from the 200 ms window. Rejection now comes from the future-`claimed_at` condition deterministically, which is what the `future-time-worker` claim token shows the test always meant to check.
Then re-ran with that same stall applied to the fixed code:
- 300 ms stall → passes; 3000 ms stall → passes (timing-independent)
- Full file: **32/32 pass**; three repeat runs of the target test all green
- Full file again under 12 busy-loops on 12 cores (saturated CPU, closest analogue to the loaded runner): **32/32 pass**
- `tsc --noEmit` clean
I also audited the rest of that test for the same fragility. The other timing constructs are "sleep 250 ms, then act on a 200 ms window" — those only get *more* valid as a machine slows, so they don't fail in the same direction. The one I fixed was the only assertion requiring a timestamp to still be in the future.
Two notes worth flagging: this fix is confined to one assertion, so if the suite is genuinely CPU-starved other latent timing tests could surface — the 4.3s duration suggests real runner contention. Separately, shard 1/4 and 4/4 were still in progress when I checked, and an earlier comment records a `propr-ui` shard 4 failure; that's outside this request's scope, so I left it alone. No preview files were generated — a test-only timing fix has no user-visible surface.
PR: #2502
Comment by: @propr-dev[bot] (ID: 5800966925)
Model: claude-opus-5
Failed to authenticate: OAuth session expired and could not be refreshed
This Epic PR aggregates all changes for the plan: Failed to authenticate: OAuth session expired and could not be refreshed
Issues in this Epic
Auto-close
When this PR is merged, the following issues will be automatically closed:
Fixes #1716
Fixes #1717
Fixes #1718
Fixes #1719
Fixes #1720
Fixes #1721
Fixes #1722
Fixes #1723
Fixes #1724
Fixes #1725
Fixes #1726
Fixes #1727
Fixes #1728
Fixes #1729
Created automatically by ProPR