Merge upstream/main into main (weekly sync, 2026-09-30)
Summary
Brings jaysbeekay/sure fork's main up to we-promise/sure's upstream main head (20352e1a0). Fork main was 17 commits behind before this merge.
Merge commit SHA: 798002ee8
Parents: 95868f40f (fork main, post-#226) + 20352e1a0 (upstream head)
Head branch: sync/upstream-2026-09-30
17 upstream commits merged
| SHA | Subject | Upstream PR |
|---|---|---|
20352e1a0 | Bump version to next iteration after v0.7.5-alpha.13 release | #3873 |
19cc353de | fix(kraken): keep a transfer fee out of the movement it is charged on | #3759 |
a09107c57 | feat(transactions): filter by AI / AI history categorization status | #3603 |
3366ac223 | fix(ibkr): anchor the balance on the statement's date, not on today | #3815 |
0da863b78 | Rescue #1775: loans overview new insights (editable fields, amortization, editable-field insights) - loan engine change | #3327 |
e16971b23 | Make a blank goal earmark read as a choice, and editable in privacy mode | #3857 |
1ee66b8b4 | Deploy alpha images to Render demo | #3865 |
34398b087 | Align the bank sync drawers with the Up panel | #3821 |
14b4b9290 | Fix Trade Republic cash kinds, activity labels and trade settlements | #3800 |
31323d167 | Let self-hosted super admins opt into the demo family refresh | #3859 |
5edddc354 | Support GPT-6 Sol and GPT-6.1 Sol in the native OpenAI provider | #3771 |
6317e4000 | Fix patch release branch naming | #3863 |
8cc050672 | Step through Reports periods with the arrow keys | #3855 |
1d64efef6 | fix(rules): stop "Dismiss" on the rule prompt silently snoozing all prompts | #3773 |
8fa8300cd | Remove dead account identifier columns (Questrade/Redbark/Monobank) | #3827 |
58c012cfb | Filter one-time codes from logs and hide raw DB errors from the API | #3831 |
952ba0817 | Delete imported transactions that Plaid retracts | #3852 |
Conflict resolutions (per #184 / #264 precedent)
Precedent: #264 (604fdb698 "Keep the fork's loan engine where upstream #3474 replaced it"). Fork keeps its loan engine (variable-rate schedule, amortization schedule, payoff projection, minimum-payment math); upstream #3327's engine (down_payment, insurance, leverage bands) is dropped where it conflicts.
9 files - took the fork's side (loan-engine files)
These files are the fork loan engine, which differs structurally from upstream #3327's version. Upstream's version of these files is rejected in favor of the fork's:
app/models/loan.rbapp/models/demo/generator.rbapp/controllers/loans_controller.rbapp/views/loans/_form.html.erbconfig/locales/views/loans/en.ymlconfig/locales/views/loans/fr.ymltest/models/loan_test.rbtest/models/demo/generator_test.rbtest/controllers/loans_controller_test.rb
2 files - merged (both sides needed)
app/models/transaction.rb
- Kept: fork's
pending_sql/not_pending_sql/pending_flag_false_values_sqlfamily (used acrossprovider_import_adapter.rb,up_account/transactions/processor.rb,goal/withdrawal_detector.rb,portfolio/flow_classifier.rb,entry.rb,akahu_account/transactions/processor.rb). - Kept upstream:
AUTO_CATEGORY_SOURCES = %w[ai bayes].freeze(required by the auto-mergedapp/models/transaction/search.rbfrom #3603; 6 references atsearch.rb:252,255,256,258). - Dropped: upstream's simpler
PENDING_CHECK_SQL = PENDING_PROVIDERS.map { |p| "(t.extra -> '#{p}' ->> 'pending')::boolean = true" }...body - the fork'sPENDING_CHECK_SQL = pending_sql("t").freeze(line 162) covers it and is a superset.
db/schema.rb
- Loans table - took the fork's side; dropped upstream #3327's
down_payment,insurance_rate,insurance_rate_typecolumns and their three check constraints. - Version - took the fork's
2026_09_30_090000(the renumbered version from #264'srerun_trade_republic_activity_label_normalizationmigration). Upstream's2026_09_29_120000is below that - the fork's renumber is the authoritative max. redbark_accounts- kept the fork'saccount_details_fetched_at(added by fork migration20260921120000_add_raw_account_details_payload_to_redbark_accounts.rb), dropped theaccount_numbercolumn per #3827 (upstream did not haveaccount_details_fetched_at; fork side is kept for the column that is fork-added).
1 file - auto-merged but the fork must win (#264-class trap)
app/views/loans/tabs/_overview.html.erb - the file auto-merged but the merged result contains a bottom-half that renders the upstream account.loan.insurance / total_cost_with_insurance / account.loan.leverage_band / loan_leverage_band_class / repayment_progress partial the fork engine does not provide. #264 lesson (604fdb698) is that these are exactly the files that broke 45 tests in the previous sync. Resolution: took the fork's 102-line version wholesale.
9 files - dropped (upstream #3327 loan engine that the fork does not have)
app/models/loan/insurance.rb(new upstream classLoan::Insurance)app/helpers/loans_helper.rb(fork deleted; upstream re-addedloan_insurance_rate_type_options,loan_leverage_band_class,loan_rate_type_options)app/views/loans/tabs/_repayment_progress.html.erb(new upstream partial)db/migrate/20260916210000_add_down_payment_to_loans.rbdb/migrate/20260916210100_add_insurance_to_loans.rbtest/models/loan_insurance_test.rbtest/models/loan_progress_test.rbtest/system/loan_overview_test.rbtest/views/loans/overview_view_test.rb
Non-loan upstream changes that ARE kept (auto-merged cleanly)
- #3603 (
a09107c57) AI filter (transaction/search.rb,_ai_filter.html.erb, filter-parameter-logging tests, etc.) - #3827 (
8fa8300cd) remove-dead-account-identifier-columns - #3759 kraken transfer fee
- #3815 ibkr balance anchor
- #3857 goal earmark
- #3865 alpha images deploy
- #3821 bank sync drawers
- #3800 Trade Republic cash
- #3859 demo family refresh
- #3771 GPT-6 Sol
- #3863 release naming
- #3855 reports arrow keys
- #3773 rules dismiss
- #3831 log filter
- #3852 Plaid retracts
- #3873 version bump
Local validation
NOT run - no working Ruby toolchain in this environment (verified wall: both Rubys ship openssl_missing; net/https still throws NoMethodError on OpenSSL::SSL::SSLContext#set_params against the prepared shared libs; no prebuilt Rails gemset under /opt/data). bundle install cannot fetch from rubygems over HTTPS, so bin/rails test, bin/rubocop, and bin/brakeman cannot run locally.
Per the orchestrator constraint (2026-09-30 ~13:20 SAST) and #264 precedent, the fork's own GitHub-hosted CI (.github/workflows/ci.yml) is the authoritative gate. CI results will be reported as observed - never hand-marked green. If a CI job fails for reasons outside this change (flaky / known-baseline from #264: Provider tests, image-processor tests, Hash#inspect on this Ruby), the job name is called out explicitly.
Merge protocol
Per #118 duty 4: merge with a merge commit, not a squash.
Issue
Closes #270 (weekly upstream-sync reminder). The open up/* branches (#268, #248, #233, #229, #211, #191) already base on upstream head 20352e1a0, so no bin/upstream-rebase is needed this round.