Skip to content

docs(registration): correct why a registration mutation must not retry - #379

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/docs-registration-retry-comment
Nov 9, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/docs-registration-retry-comment

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

  • src/config/query-client.ts explains retry: 0 with a claim that stopped being true: a re-sent registration is no longer a duplicate signup. The conclusion is unchanged; the reason is now stronger.

Change outline

Behaviour — none. One comment, in the mutations default

 mutations:
   # why retry: 0
   both mutations are unsafe to repeat
-    a re-sent registration is a duplicate signup to `user-submissions`
+    a re-sent registration folds into the row this app already created,
+    clearing its screening verdict and re-sending the confirmation (SahajCloud#1092)
    a re-sent report replays a spent Turnstile token
   retry: 0                                       # unchanged

sydevs/SahajCloud#1092 shipped mergeRepeatRegistration, which folds a repeat signup into the registration the sender already holds. So a retried registration does not add a row — it overwrites the one this app just created, takes it back to pending, clears its screening verdict, and has a fresh confirmation mailed, which moves the registrant's calendar entry rather than adding one (the row keeps its uuid).

That is a better reason for retry: 0 than the one the comment gave, which is why the line is corrected rather than dropped. A reader who believed the old line could reasonably conclude a retry was a harmless duplicate and add one.

Preview

Comment only — no route, component or bundle change, so neither Cloudflare preview shows anything this PR did. Read the diff.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh — lint, typecheck, 1965 unit tests in 165 files, 52s
  • Targeted specs: N/A — no behaviour changed
  • Build: N/A — CI runs build + size

comment-fingerprint.mjs --base origin/main reports 1 codeHash identical · 0 problems — comments changed, code did not, no comment moved. comment-lint.mjs adds no finding. Security review skipped: src/config/query-client.ts matches no path in securityReview.triggerPattern, and the diff introduces none of its contentPattern sinks.

Manual verification

Nothing to do. The claim rests on SahajCloud's merged mergeRepeatRegistration hook, not on anything in this repo.

Notes for reviewer


Generated by Claude Code

`retry: 0` is still right, and the reason given for it is no longer true.
sydevs/SahajCloud#1092 made a repeat signup fold into the registration the
sender already holds, so a re-sent registration is not the duplicate row this
comment describes.

What it is instead is worse, which is why the line is corrected rather than
deleted: the server takes the existing row back to `pending`, clears its
screening verdict, and re-sends a confirmation that moves the registrant's
calendar entry. A reader who believed the old line could reasonably decide a
retry was harmless and add one.

Comment only — `comment-fingerprint.mjs` reports the code hash unchanged.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjZCvvJ6ufDPXM1YJsE
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 81ead1f Nov 09 2026, 09:30 AM

@sydevs-bot

sydevs-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running
pending since 16:50Z

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot
sydevs-bot marked this pull request as ready for review November 9, 2026 09:37
@sydevs-bot
sydevs-bot requested a review from Ardnived November 9, 2026 09:37
@sydevs-bot
sydevs-bot enabled auto-merge November 9, 2026 09:37
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 1 file(s), 4 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 9, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 9, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit df3823a Nov 9, 2026
22 of 23 checks passed
@sydevs-bot
sydevs-bot deleted the claude/docs-registration-retry-comment branch November 9, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants