[Bug] Передать durable hourly attempt в Accounts/Income resource meta #58
Closed
opened 2026-10-11 21:43:36 +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/backend#58
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
Accounts meta factory получает work=null без lastAttempt, хотя top-level sync уже содержит hourly state. Income meta смешивает source work и hourly outcome: timestamps null, completed work становится none, operation failure может называться membership.
Expected Behavior
Стандартное meta.lastAttempt отражает current connection и relevant account/operations hourly state, отдельно от source freshness.
Evidence
Audit date
2026-10-11; 06. Finding BE-008. Revision0ad84ff4f0b4712abc7e69dc299856f14af6eadd; Confidence High; Verification status static.Affected code: brokerage-accounts.service.ts:38–76; operations/application/brokerage-operations.service.ts:438–445,489–540; income/income-analytics.service.ts:45–70,114–135; investment-resource.mapper.ts:60–61,91–103. Корректный пример portfolio.service.ts:223–229.
Scope
In scope
Accounts и все Income meta levels, existing hourlyAttempt helper/repository, account/section relevance.
Out of scope
Новый status registry, fake source timestamps, скрытая personal work из metadata read, удаление top-level sync compatibility.
Proposed Approach
Reuse existing durable projection; global partial issue не выдавать за unrelated account failure.
Acceptance Criteria
Verification
Existing local-read/income/portfolio SQLite HTTP suites с meaningful hourly fixtures; assert envelope values, не только schema presence. Backend verify конечного diff.
Dependencies
Нет технического blocker: fixtures могут подготовить durable outcome независимо от T01; actual default Income side-effect fix координируется с T05.
Traceability
Campaign WealthLedger/main#23 . Finding BE-008. Repository WealthLedger/backend; T07.