[P1] 13. Разобрать конкретные спорные backend dependencies #4
Closed
opened 2026-09-13 15:33:33 +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
No Assignees
renovate-bot
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WealthLedger/backend#4
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.
Источник: локальный
todo/wealthledger-engineering-improvements.md, пункт 13, анализ от 13.09.2026. Исходные критерии приведены ниже, чтобы issue не зависела от наличия локального TODO.Что осталось сделать
13. Разобрать конкретные спорные backend dependencies. Размер: S/M. Владелец: backend.
Проверить прямое и tooling-использование
source-map-support, включая сборку,debug и stack traces, прежде чем удалять.
ts-nodeуже используется вtest:debug; отсутствие production import не делает его неиспользуемым.Для
class-transformerпроверить DTO/validation compatibility и advisories;давность релиза не доказывает уязвимость или необходимость замены.
Готово, когда: ненужная прямая dependency удалена либо сохранена с понятной
текущей ролью; install/build/debug и затронутые DTO tests не сломаны. Замена
работающей библиотеки только ради возраста не выполняется.
Основание: A, с. 8, 15, 29; B, с. 13–14.
Основание текущего статуса
package.json содержит verify, изолированные test:e2e/test:sqlite и test:openapi-contract. Prisma config исключает унаследованный RUST_LOG. Пункты 03, 10, 11, 12 и 14.backend уже закрыты; их не нужно реализовывать заново.
Проверка 13.09.2026: статическая сверка текущих файлов и remediation registry; через MCP проверены репозитории, issues, ветки и Actions workflows. Все пять main-веток имеют protected=false, список workflows пуст, существующих issues не найдено. Внешние CI, server-side updater, история секретов и свежий npm audit этой сверкой не проверялись; полные application gates повторно не запускались.
Проверяемая revision backend:
197ffe21368b337f27d27c22e473570258ebdc3b.Remediation registry остаётся владельцем статусов audit findings. Создание issue не означает выполнение или изменение статуса finding. Закрыть после проверки критериев и ссылки на фактические результаты.
[Refactor] Audit supplement — unused direct compiler dependencies
Исходные пользовательские criteria/решения выше сохраняются; актуальная audit priority P2. Эта существующая задача повторно используется, дубль не создан.
Problem
ts-loader удерживает required Webpack peer/minimizer/Terser branch, хотя Nest configured builder tsc; direct source-map-support не имеет project import/preload. ts-node/tsconfig-paths нужны test:debug; class-transformer runtime validation нужен и не удаляется по возрасту.
Expected Behavior
Удалены только реально ненужные direct dev declarations, retained consumers/debug/assets работают.
Evidence
Audit date
2026-10-11; 12, DEPS-002. Revision0ad84ff4f0b4712abc7e69dc299856f14af6eadd; Confidence High configured consumer graph; Verification status static/npm graph inspected, future lock closure unverified.Affected: package.json:98–104; nest-cli.json:1–10; lock:13998–14009,14287–14310; CLI tsc/webpack branch referenced in report.
Scope
In scope
Current external/manual Webpack consumer check; remove two direct declarations with normal lock resolution.
Out of scope
Manual transitive node deletion, bare tsc replacement, removal ts-node/Prisma CLI/class-transformer, forced peers.
Proposed Approach
Normal package-manager change. Necessary transitive source-map-support может остаться; число удалённых nodes не обещать до re-resolution.
Acceptance Criteria
Verification
Existing backend verify/isolated e2e, approved disposable watch/debug + npm explain; no live DB/secret inputs.
Dependencies
Нет; SQLite driver alignment отдельный native-boundary outcome.
Traceability
Campaign WealthLedger/main#23 . Finding DEPS-002. Repository WealthLedger/backend; T16.