Merge upstream/main into main (weekly sync, 2026-09-26 b)
Summary
The weekly upstream sync that #118 ("Staying in sync", duty 1) requires. #232 merged earlier today and left fork main level with upstream 7cc6aa0; since then the mirror has moved 7 commits. This PR brings fork main level with we-promise/sure 45ab75ae6.
It is one merge commit, 2f4a7a2, with both parents: 8569fe0 (fork main, including #236) and 45ab75ae6 (mirror/upstream-main). Merge it with a merge commit, not a squash, per #118 duty 4.
Scope and dependencies
- Issue: #118 (weekly sync duty)
- Parent PR/branch, if stacked: none. The base is
mainat8569fe0. - Intentionally out of scope: no fork-side changes beyond resolving conflicts.
Upstream commits (7)
| Commit | Upstream PR | Change |
|---|---|---|
63c6362 | we-promise/sure#3671 | Export and import provider-assigned merchants, and reuse the existing taxonomy on Sure import |
600d57e | we-promise/sure#3725 | ProviderMerchant does not support color. Adds migration 20260925220151_null_provider_merchant_colors.rb (data only) |
34bdc78 | we-promise/sure#3636 | Bills: custom repeat interval, dated search rows, and a fix for the French price notice |
e7f882c | we-promise/sure#3710 | Removes the dead credit card overview partial and its locale keys. Nothing on the fork references credit_cards/overview or credit_cards.overview.* (checked with grep) |
aaf3fda | we-promise/sure#3450 | Plaid: keep the bank's description in the transaction name, and show the provider metadata behind it |
58e8922 | we-promise/sure#3689 | Completes the ru, uk and tr translations. This commit caused the conflicts below |
45ab75a | we-promise/sure#3703 | Makes on-chain wallet transfers cash-neutral |
Conflicts and resolutions (3 files)
config/locales/views/loans/ru.yml, tr.yml and uk.yml conflicted the same way. Upstream's #3689 translated these files while the fork's loan epic had changed them:
- The fork added keys: offset accounts, the day-count basis, the schedule projection figures, and the chart and extra-payment strings.
- The fork removed the dead
loans.overview.*scope from all 19 locales (#7). - The fork renamed three
loans.tabs.overviewkeys (#115).
Git merged everything except the loans.overview block, which upstream had extended and the fork had deleted.
| What | Resolution |
|---|---|
loans.overview.* (the conflict hunk) | Kept upstream's block. On the fork these keys are dead: no view reads them, and #7 removed them from every other locale. They are kept because this sync does not delete upstream keys, and keeping them avoids a conflict on every later upstream edit. Owner decision: keep them, or drop them in line with #7. |
| Fork-only keys missing from ru/tr/uk (44 per file) | Added in English, copied line for line from the fork's en.yml. Every key in the fork's en loans locale now exists in each file. |
| Upstream's translated strings | All kept, unchanged. No upstream value in these files was altered. |
loans.tabs.overview.{interest_rate,monthly_payment,original_principal} | Git applied the fork's #115 rename (to current_interest_rate, current_monthly_payment and original_loan_balance) without a conflict. Upstream's translations remain under the new names. These three old names are the only upstream keys absent from the result. |
The fork-only keys ship in English, not translated. config.i18n.fallbacks = true would already render English for them, so explicit English copies change nothing a user sees today. They do, however, hide these keys from i18n-tasks missing. The fork's other 15 locales rely on fallback for the same keys. Translating them into ru, tr and uk is a follow-up.
Schema regeneration (duty 2)
db/schema.rb merged cleanly (upstream only moved the version stamp), but it was not taken on trust:
- Loaded fork
main'sdb/schema.rbinto a fresh development database (sure_sync2_dev, PostgreSQL 16.15). db:migrate:statusshowed exactly one pending migration:20260925220151 Null provider merchant colors.db:migrateran it; it is anUPDATE, with no DDL.- Compared the dump with both parents:
- Against fork
main: the version stamp (2026_09_24_140000becomes2026_09_25_220151) and one line. Thefinancekit_lineage_account_origincheck constraint came out asARRAY['created'::character varying::text, ...]instead ofARRAY[...]::text[]. The constraint is the same; only the way this local PostgreSQL build prints it differs. Both parents contain the::text[]form byte for byte, so the committed file keeps it. - Against upstream: the delta, not counting the version line, is the same 142 lines as fork
mainagainst upstream. All of them are fork-only tables and columns, and the migration adds none.
- Against fork
- The committed
db/schema.rbis therefore forkmainplus the new version stamp.
Evidence checklist
- Each issue in this PR has its own acceptance criteria and no unrelated issue work is included. This is a sync only.
- Contract rows touched by this change name existing tests. Not applicable: no contract rows change.
- Any gate test has an observed failing mutation transcript attached. Not applicable.
- Fixtures used as evidence assert internal consistency. Not applicable.
- Financial calculations use
BigDecimaland documented rounding points. Not applicable. - De-identification uses token-shape allowlists; no personal data is included.
- Files changed, decisions, tests/runtime, risks, and next unblocked issue are documented below.
Validation
- Locale check (a Ruby script run over the merged files), for each of ru, tr and uk:
- all three parse;
- no duplicate keys (Psych AST walk);
- no
enloans key missing; - no fork-
mainkey or value dropped or changed; - no upstream value changed;
- no
%{}interpolation that differs fromen.
bin/rails test test/i18n_test.rb: 7 runs, 0 failures (4 skipped by design).- Full
bin/rails test: 10624 runs, 46590 assertions, 4 failures, 3 errors, 33 skips on the final tree2f4a7a2, using Ruby 3.3.6. All 7 are the known Ruby 3.3.6 environment failures, and nothing else fails:Provider::RegistryTest(anthropic ENV),Provider::OpenaiTest(extra_headers), threeSettings::HostingsControllerTestanthropic_base_url tests,ActiveStorageAuthorizationTest(variants) andAdmin::UsersControllerTest(profile picture). The first tree, built ona52e804, gave 10616 runs with the same 7. bin/rubocopon the 47 added or modified Ruby files: no offences.erb_linton the 14 added or modified ERB files: no errors.bin/brakeman --no-pager -q: 0 warnings.- The tree was rebuilt once. The first merge was built on
a52e804; forkmainthen gained #236 (8569fe0). The branch had not been pushed, so the merge was redone on8569fe0with the same resolution. The resulting tree equals the first one plus exactly #236's 7 files. None of those files is touched by the 7 upstream commits.
Risks, blockers, and follow-up
- Owner decision: whether to keep upstream's dead
loans.overview.*block in ru/tr/uk (kept here) or drop it to match #7. - Follow-up: translate the 44 fork-only loan keys per file into ru, tr and uk. Today they are English copies.
- The 7 local test failures come from the environment. Locally this runs on Ruby 3.3.6 because 3.4.9 cannot be installed here; CI runs 3.4.9. The same 7 tests also fail on unmerged
mainin this environment.