Repository navigation
fix(bonanza): enforce DarkPeers 45-minute giveaway limit - #29
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54d3e12e25
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4d8f4e07ff
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please perform a fresh, full review of the entire PR at its latest HEAD, not only the latest diff or previously reported lines. Review the source fragments, regenerated Tampermonkey userscript, tests,
Both prior findings have been fixed and their threads resolved. CI passed with 58 tests, 0 failures, including bundle freshness and syntax checks. Please report any remaining actionable issues, even outside the modified reminder lines. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 609d7d5609
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ead-only discovery
|
@codex review Please perform another independent, adversarial review of the ENTIRE PR at HEAD Three latest findings addressed with tests and documentation:
Prior invariants to challenge again: strict 45-minute public opening cap and bounded send window; durable pre-POST checkpoint and authoritative exact announcement verification; Gift History calibrated fractional uncertainty and uncalibrated fail-closed pot accounting; gift/payout idempotency and final reconciliation; Silent Mode command PM feedback, but explicit Current Validate BONanza CI passed 124 tests, 0 failures, generated userscript and syntax verified. Please flag any remaining actionable correctness/safety findings anywhere in the whole PR. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c998a343d2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please perform a NEW, INDEPENDENT, ADVERSARIAL FULL-PR review at HEAD The most recent two findings were addressed:
Please stress-test all interleavings: multi-tab races, Web Lock failures, BFCache/pagehide, localStorage unavailable/corrupt/malformed/hostless/foreign records, stale restore snapshots, ambiguous publication checkpoints, duplicate opening and payout/refund ledgers; verified sponsor boundaries with calibrated Gift History precision/clock uncertainty; 45-minute absolute deadline; chat Please report any remaining actionable P1/P2 safety or correctness issues, including outside the latest changes, and explain an exact reproduction scenario. DO NOT MERGE, RELEASE OR PUBLISH. |
|
@codex review Final follow-up: please do another FULL, ADVERSARIAL review of this entire PR at HEAD Please independently challenge recovery under Web Lock, host-scoped storage, old/corrupt/empty/missing-host JSON, concurrent tabs, BFCache, page lifecycle and asynchronous ownership handoffs. Review exact opening proof and absolute 45-minute cap, sponsor Gift History boundary calibration, uncertain gifts and final settlement idempotency, all BON gift/payout/refund routes, Silent Mode PM routing, public Report actionable safety/correctness findings with reproducible conditions. DO NOT MERGE, RELEASE OR PUBLISH. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34ce04dc73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please perform a FRESH, FULL, INDEPENDENT, ADVERSARIAL SECURITY AND CORRECTNESS REVIEW at the LATEST HEAD The P1 from the previous review on Please independently search for remaining safety issues including interleaving of concurrent tabs, BFCache/pagehide, storage failures, ancient snapshots, settlement ledger/idempotency and pending transfers, ambiguous opening publication, conservative 45-minute cap, sponsor Gift History clock-calibration and bucket uncertainty, missing recovery proof, duplicate BON transfers or gifts, Silent Mode private command replies but PUBLIC DO NOT MERGE, RELEASE OR PUBLISH. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42861041f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please perform a FRESH, FULL, INDEPENDENT, ADVERSARIAL review of the ENTIRE BONanza PR at the latest HEAD The last P2 at The latest Validate BONanza CI is GREEN: 131 tests, zero failures, 15-fragment regenerated bundle and syntax verified. Please look critically for P1/P2 issues anywhere, especially subtle cross-tab races and storage conflicts, loss of confirmed/committed settlement state, duplicate real BON payouts, ambiguous opening proof, conservative absolute 45-minute cap, Gift History timestamp uncertainty and uncalibrated fail-closed behavior, Silent Mode private replies versus PUBLIC explicit DO NOT MERGE, RELEASE OR PUBLISH. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0ed1335b06
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please perform a fresh, rigorous but PRACTICALLY GROUNDED review of the complete PR at the NEW HEAD Review standard: prioritize real, reachable, consequential defects, NOT nitpicks or finding P2s merely for the sake of another review cycle. For each alleged P1/P2, give:
The latest review flagged an omitted legacy deletion read-back in single-slot migration. We fixed it in Please examine the full behavior critically, including legitimate everyday workflows (normal starts, extending, reminders, sponsors, winners, reloading and multi-tab), and the serious failure modes of crash, network timeouts, delayed chat messages and settlement. Do not manufacture a finding from a contrived scenario with no credible production trigger. If there is no realistic actionable issue, explicitly say so or approve; don't insist on another P2. Reminder of required behavior: 45-minute hard maximum, Silent Mode private routine replies but public explicit Do not merge, release, deploy or publish. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Rollback opening verification and 45-minute duration hard cap introduced by #29. Preserve subsequent repo README and bump the Tampermonkey version to ensure users receive the rollback.
Why
DarkPeers permits giveaways of 1–45 whole minutes. Previously the form and
!addtime/!time addcould extend giveaways beyond that limit. A reliable hard cap must also survive delayed opening messages, reloads, concurrent tabs, and partial settlement without risking real BON.User-visible behavior
!addtimeand!time addreject over-limit extensions instead of silently changing the deadline. In ordinary mode, authorized chat-command feedback uses the public reply path.!reminderand scheduled reminders still broadcast to Main Chat.Recovery and real-BON safety
Source, documentation and validation
userscripts/giveaway/src/*.jsfragments and regenerate the committed TampermonkeyDarkPeers_BONanza_Giveaway.user.jsfromscripts/build-bonanza.mjs. Do not edit the generated script directly.AGENTS.md, component README and the BONanza runbook. Bump the userscript to 1.5.15.f8831d4: 133 tests passed, 0 failures, source/bundle consistency and syntax checks passed.Deployment: This is a PR only. The publish-to-Gist workflow runs after eligible pushes to
main, not from this PR. Do not merge, release or publish until the final independent Codex review is assessed.This userscript enforces the 45-minute rule for its own users; only DarkPeers server-side enforcement can prevent violations by other or modified clients.