Skip to content

[2040 by GPT-5.6 Sol] Make webPushDispatcher claim timing tests deterministic - #2043

Merged
integry merged 1 commit into
1953-epic-desktop-transport-apifrom
2040/gpt-5.6-sol-make-webpushdispatcher-cl-20260901-0042-8am
Sep 1, 2026
Merged

integry merged 1 commit into
1953-epic-desktop-transport-apifrom
2040/gpt-5.6-sol-make-webpushdispatcher-cl-20260901-0042-8am

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2040

Branch: 2040/gpt-5.6-sol-make-webpushdispatcher-cl-20260901-0042-8am
Commits: ✅ Changes committed (10563fb)


AI Processing Completed

Execution Details:

Summary:
Implemented the deterministic harness fix in webPushDispatcher.test.ts.

Changes:

  • Added a fixed dispatcher/SQLite clock for deterministic claim and lease validation.
  • Replaced randomly generated VAPID private keys, which could occasionally serialize to an invalid 31-byte key, with a fixed full-width test key.
  • Updated quiet-hour and lease lifecycle tests to use the fixture clock.
  • Preserved stop and Planner Studio intent assertions without production changes.

Validation passed:

  • Complete dispatcher suite repeated 10 times.
  • API build, lint, and typecheck.
  • All server and UI notification regression tests.
  • Fast unit suite.
  • Full Suite completed 187 files successfully, then was blocked by unavailable Redis infrastructure; Docker and Redis/Valkey are not installed in this environment.

Detailed Logs:

  • Conversation: 116 messages
  • Session: 01a05a6b-9899-7e41-9ef6-3d2b60989fae

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2040-2026-09-01T01-04-34-071Z-conversation.json
  • output: /tmp/claude-logs/issue-2040-2026-09-01T01-04-34-071Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #2040.


💡 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!

…sts determin

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Sep 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry integry removed the AI label Sep 1, 2026
@propr-dev

propr-dev Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR correctly stabilizes the dispatcher test harness by aligning the injected dispatcher clock with SQLite’s time-dependent views and triggers, while replacing nondeterministic VAPID key generation. It is ready to merge within scope, subject to the four pending checks completing successfully.

✅ Aligned fixture clocks — The dispatcher and SQLite now consistently evaluate claims, leases, and quiet hours at DISPATCH_FIXTURE_TIME.

✅ Valid deterministic VAPID key — The fixed 32-byte scalar produces a matching public key and satisfies the configuration contract without intermittent leading-zero serialization failures.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Fail on unsupported SQL formats

fixtureStrftime in packages/api/test/webPushDispatcher.test.ts silently returns NULL for unrecognized formats or modifiers. Throwing an explicit error would make future schema changes easier to diagnose instead of potentially producing misleading test behavior. This is optional because the current dispatcher paths use the supported ISO format and modifiers.

Score

The implementation is focused, internally consistent, and directly addresses both identified sources of nondeterminism without production changes. No current-head checks have failed, though four remain pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 34s
  • Tokens: 31,801 (30,087 in / 1,714 out)
  • Cost: $0.16

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit 6b4f868 into 1953-epic-desktop-transport-api Sep 1, 2026
30 checks passed
@integry
integry deleted the 2040/gpt-5.6-sol-make-webpushdispatcher-cl-20260901-0042-8am branch September 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant