[Test] Ждать client settlement проигравшего в late-response cases #61
Closed
opened 2026-10-11 21:50:28 +03:00 by codex-bot
·
0 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/frontend#61
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
StocksPage после release old response ждёт уже видимый new result; resource races ждут затвор, не body/client/query application. Exact false-green mutant runtime-unverified. Unused Bond failBond option поддерживает несуществующий scenario.
Expected Behavior
Final assertions происходят после завершения old operation и React/query flush, а не после handler release.
Evidence
Audit date
2026-10-11; 08, 09. IDs TQ-002, TI-006, TA-F08. Revisionc8821200ce699dab1ce65360d1968d5877a2e78b; Confidence Medium barrier risk/High unused flag; Verification status static/runtime-unverified mutant.Affected: StocksPage.test.tsx:175–236; resource-query.test.tsx:139–209; client.test.ts:92–123 good awaited rejection; BondPage.test.tsx:88–107.
Scope
In scope
Existing test awaited operation/probe, started before newer intent, failure-path gate cleanup; local unused failBond deletion.
Out of scope
Global request registry, race DSL, production epochs, new test ради отсутствия option, removal access/session fences.
Proposed Approach
Capture actual calling Promise/observable terminal boundary, release в finally и await settlement. MSW handler-return marker сам по себе недостаточен. Observe-only test при T20 pruning заменить live refetch/cancel boundary или удалить retired scenario.
Acceptance Criteria
Verification
Targeted existing StocksPage/resource-query/client/BondPage suites; no arbitrary sleeps и no new harness. Frontend final gate для changed test boundary.
Dependencies
Нет; coordinated T20 pruning может устранить obsolete observe arm, не обязательно ждёт полного polling migration.
Traceability
Campaign WealthLedger/main#23 . Findings TQ-002, TI-006, TA-F08. WealthLedger/frontend; T25.