[Refactor] Согласовать SQLite driver приложения и SQL/durability checks #67
Closed
opened 2026-10-11 21:47:20 +03:00 by codex-bot
·
1 comment
No Branch/Tag Specified
Labels
Clear labels
Kind/Dependencies
Kind/Investigation
Kind/Process
Kind/Refactor
audit/2026-10-11
kind/investigation
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Dependency update or dependency-management work
Research or decision required before implementation
Developer workflow, CI/CD, tooling, or process improvement
Internal code or configuration restructuring without new product behavior
Technical Audit Remediation — 2026-10-11
Нужна проверка evidence до решения; runtime-дефект не утверждается
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
Technical Audit Remediation — 2026-10-11
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WealthLedger/backend#67
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Prisma adapter 7.10 использует nested better-sqlite3@12.11.1, smoke/durability — direct13.0.3. Обе production версии остаются после omit-dev. Direct driver нужен; это не unused dependency или доказанная SQLite malfunction.
Expected Behavior
Приложение и SQL consumers используют один официально adapter-supported driver, либо documented proof обосновывает два поколения.
Evidence
Audit date
2026-10-11; 12, DEPS-003. Revision0ad84ff4f0b4712abc7e69dc299856f14af6eadd; Confidence High; Verification status static (npm graph inspected), native-change runtime-unverified.Affected: package.json:50–53, :144–148; lock:3762–3784,6284–6294; prisma.service.ts:16–21; test/container-smoke.cjs:34–64; bank-cards-durability.cjs:24,74–81.
Scope
In scope
Exact compatible direct version, normal lock resolution и install permissions/native proof.
Out of scope
Удаление direct SQL consumer, forced incompatible adapter override, storage/migration history rewrite.
Proposed Approach
12.11.1 — минимальный кандидат под adapter range. Если v13 API реально необходима, оставить до официальной поддержки adapter с evidence; не применять --force/legacy-peer-deps.
Acceptance Criteria
Verification
Clean npm ci/ls/audit, backend verify/isolated e2e, actual image smoke и existing durability с disposable baseline. Manifest/lock/permissions rollback совместно; live DB не использовать.
Dependencies
Нет; compiler cleanup #4 независимо.
Traceability
Campaign WealthLedger/main#23 . Finding DEPS-003. WealthLedger/backend; T15.
Implemented and merged via #87 (
203cc72).Verified: clean
npm ci, one resolvedbetter-sqlite3@12.11.1graph, SQLite FK smoke check, andnpm run test:sqlite. Container/durability scripts remain parameterized checks requiring an image and historical baseline.