fix: harden runtime durability and concurrency #30
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
isyuricunha/yue-discord-bot!30
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/economy-runtime-durability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Hardens Yue's runtime around database concurrency, high-frequency message paths, Voice XP restart durability, internal Bot ↔ API requests, configuration parsing, and reproducible database migrations.
This milestone keeps existing user-facing behavior while moving correctness-sensitive state transitions into PostgreSQL, removing avoidable hot-path work, and restoring clean fresh-database deployment with the same migration path used in production.
Economy and cooldown correctness
Message hot path
Voice XP durability
Internal Bot ↔ API hardening
@yuebot/shared/env123abcDatabase migration replay
prisma migrate deployon a brand-new PostgreSQL 16 databaseschema.prismaDatabase / cleanup
sessionstablevoice_xp_sessionsstorage and checkpoint indexPermanent CI guardrails
The normal
checksjob now:prisma migrate deployschema.prismaRUN_DATABASE_INTEGRATION=1Secret-scan remediation
A temporary CI iteration had contained a hardcoded disposable PostgreSQL test credential. The credential was removed and the pull-request branch history was rewritten to a single clean commit based directly on
main, so the flagged intermediate commit is no longer part of the PR range.GitGuardian now scans the single clean PR commit with no secrets detected.
Final validation
prisma migrate deploy✅schema.prisma✅pnpm lint✅pnpm type-check✅pnpm testincluding real PostgreSQL concurrency tests ✅pnpm build✅pnpm knip✅linux/amd64✅linux/arm64✅The pull request remains open and unmerged.
️✅ There are no secrets present in this pull request anymore.
If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.