[Test] Сделать source publication races и rollback proofs различающими #63
Closed
opened 2026-10-11 21:45:18 +03:00 by codex-bot
·
2 comments
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#63
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
Late portfolio case вызывает local GET, deferred RPC не потребляется. Publish-failure case падает upstream до transaction и проверяет лишь points. Metadata/operations races используют 5–10 ms sleeps; portfolio unit игнорирует existing done. These tests не доказывают заявленные write/interleaving boundaries.
Expected Behavior
Assertions происходят после реально начатого и завершённого competing producer либо post-first-write rollback.
Evidence
Audit date
2026-10-11; 08, 09. IDs TQ-001, TQ-008, TI-003, TA-F08, CA-H11, CA-H13, CA-H17. Revision0ad84ff4f0b4712abc7e69dc299856f14af6eadd; Confidence High; Verification status static; false-green mutants не запускались.Affected: tbank-local-reads.e2e-spec.ts:489–514; value-history:316–333; metadata:130–178; catalog:179–225; operations-sync:152–210,523–550; portfolio.service.spec.ts:100–110,150–154.
Scope
In scope
Started→replace/join→release→done barriers, failure-path finally cleanup, genuine SQLite tx fault, cheapest meaningful unit seam.
Out of scope
Новый race DSL/test framework, fake SQLite CAS, увеличение sleeps, удаление financial/restart tests.
Proposed Approach
Use existing public request/work.done и explicit upstream started signal. Fault после первого real Portfolio write сравнивает snapshot+points. Metadata tests переводить на production-used request/savedMany; combined read API удалять только после fresh caller proof. Pure mapper/summary tests не требуют fake whole Prisma tx.
Acceptance Criteria
Verification
Affected existing SQLite suites и два portfolio unit launch cases; assert independently read persisted outcomes. Backend final gates; повторные green runs не заменяют controlled order.
Dependencies
Нет. Retired catalog-producer-only arms можно удалить вместе с T10 вместо переписывания под dead behavior.
Traceability
Campaign WealthLedger/main#23 . Findings TQ-001, TQ-008, TI-003, TA-F08, CA-H11, CA-H13, CA-H17. WealthLedger/backend; T12.
Закрываю частично: часть пунктов выполнена, остаток вынесен в отдельные задачи.
Сделано (смержено в develop):
Не сделано и вынесено:
Ссылки на задачи добавлю после создания.
Остаток вынесен в задачи: