Cash flow: skip an item marked as already happened instead of counting it today #390
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 391 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #390"
general
weight: 0.35
ethanteng
What changed
Marking an upcoming item as already happened on the cash position now skips it. The item is counted on no day: not its own date, not the first forecast day, and not on the card it pays.
Before this change, a mark moved the item to the first forecast day.
| Marked item | Before | Now |
|---|---|---|
| Paycheck, bill, planned income or expense | Counted on the first forecast day | Not counted |
| Planned transfer | Each leg counted on the first day (or the leg not yet posted) | Both legs skipped |
| Card payment | Left cash and came off the card on the first day (or the unposted part) | Skipped in cash and on the card |
| "Starts from" line | "…, plus $X you marked as already happened" | The reported balance, nothing added |
Savings and the cards panel are unchanged, as before. A mark changes when cash moves, never what is earned or spent.
Why
A mark means the user's live balance already has the item: a paycheck the balance includes while the bank shows it pending, a bill paid early. Counting it on the first day added it on top of a balance that already had it, so it was counted twice.
Whether a provider's reported balance includes pending transactions varies by bank. Only the user can say it does, so the forecast takes their word for it.
Removed, since skipping makes it unnecessary
markedOn) and the time-zone plumbing that computed it. No schema change: the column it came from iscreatedAt, which stays.cash_flow_marked_happened_netandcash_flow_cash_now_with_marked. The pack's details now say marked items are already in the balance and counted in no projection, without naming payees.counted,inBalance,paidFromElsewhere,happenedStartNote.Reviewer notes
docs/CASH_FLOW_FORECAST.md("Items that already happened") and the cash flow paragraph inCLAUDE.mdare rewritten to match.Tests
CashFlowPageClienttests pass (96)..nextartifacts from another branch's preview page.🤖 Generated with Claude Code