Conversation
This was referenced Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A behavior-neutral cleanup inside the files of three areas: settings loading, service wiring and the vendor adapters; sign-in, sessions, abuse checks and guest reports; the database scripts, seeds and backfills. Large functions are split into named helpers, repeated code is shared, magic numbers and strings are named, and dead code and needless exports are removed. Nothing a user sees should change.
Before you start
Verify
Nothing new to verify: every step below is a regression check.
Regression
Signing in with an emailed code, then out — [Web] [Mobile]
Signing in with Google or Apple — [Web]
Editing your profile and handle — [Web] [Mobile]
Deleting an account — [Web]
Filing a guest report and claiming it — [Web]
Real-time chat — [Web]
Findings addressed
Campaign PRs 7 to 10: the LOCAL DUP, READ and DEAD ledger findings for chunks B01 to B03, plus local magic values, large-function splits and un-exports.
Largest splits: settings loading (
loadEnv, 355 lines) into section loaders with the same messages in the same order and the same fake-seam consequences; the container (buildContainer, 375 lines) into lazy, memoized builders that stay socket-free; the auth routes into five registrars; account erasure into named steps in the same transaction and order; the guest report transaction into five steps; the demo seed into generators plus a data module, with identical output per seed.Decisions for the reviewer
jose,arcticand@node-rs/argon2are imported statically outside the adapters folder.User-visible copy changes
None. One unused i18n key (the old one-time-code body line) is removed from the four backend catalogs.
Tests changed
None. No test file was edited.
Verification
pnpm lint, prettier check,check:sqlclean; api unit suite by explicit path 428 files, 7116 passed, 3 skipped; media-worker unit 300 passed, 2 failed (the known arm64 ffprobe helper issue fixed in Backend test safety net: SQL transcripts, CSRF pairing, authz and characterization tests #92).Staging checks
https://api.civfix.dev/readyzanswers ready after the deploy (no migration in this PR).Not covered
🤖 Generated with Claude Code