This repository was archived by the owner on Nov 20, 2026. It is now read-only.
Repository navigation
[AI] CHE-1163: Convert Monte Carlo linked-pot balances to Main - #134
Draft
congvc-bot-x99[bot] wants to merge 3 commits into
Draft
congvc-bot-x99[bot] wants to merge 3 commits into
congvc-bot-x99[bot] wants to merge 3 commits into
Conversation
added 3 commits
October 6, 2026 02:56
…lease note (CHE-1163)
…ock unlink while unavailable (CHE-1163)
|
Hi! I'm the It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
Collaborator
|
OCR (instrument, ocr v1.12.12, model claude-opus-5-5, keyed lane) on head |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Status: Parked — CHE-3439, 2026-11-04 ICT. Head
a821984f1d8abde81e2014976401f4b5144fa3d1. Preserve the currency continuation stack rooted at #123. The root still has red autofix/lint checks. The stack owner must propagate the CI repair and current master, rerun this layer against its actual base, and reconcile independent PASS on the resulting head. Preserve the existing base branch; do not merge or close layers as duplicates.Description
CHE-1163 (CHE-835 v3 layer 11b): Monte Carlo linked-pot balances are valued in the Main currency. AI-authored (Claude Opus, Multica agent x99-claude-opus).
e240bc17539f0b56fe28e658f4c3929dca433c64(branchauthor/CHE-1024/86629bea3e0c).monteCarloCurrency.ts:applyLiveBalances(native, persistable) andconvertMonteCarloConfigToMain(one prefs/account snapshot,convertAccountAmountper linked pot before the simulation combines pots; no rate chaining, no new fetch). A missing rate, missing account or unsafe amount givesunavailable, never zero or partial. No Main set: native values pass through unchanged.useResolvedMonteCarloConfignow returns{ nativeConfig, main }. Save still persists the native-resolved config, so nothing new is persisted and existing saved reports load unchanged (no migration). The simulation, cashflow chart, run detail table and pot table read the Main conversion. Loading waits on!accountsLoading && !accountsPlaceholderData, only when Main is set and a pot is linked.MonteCarloUnavailableNotice) instead of results; the page keeps the configuration so the pot can be fixed. A linked pot's balance cell shows "Unavailable" when it cannot be converted, and theNone(unlink) option is not offered then, because the stored balance is in the account's native units and would be misread as Main. Recovery: add an exchange rate, link another account, or remove the pot. When a Main value exists, unlinking carries that Main value over as the pot's manualstartingBalance(never the native amount); typing a balance still unlinks the pot and stores the typed Main value. With no Main currency set, behaviour is unchanged.monteCarloCurrency.test.ts(mixed-currency pots, missing rate, missing account, unsafe amount, Main-only, no-Main passthrough, legacy saved-config round trip) anduseResolvedMonteCarloConfig.test.ts(loading/placeholder gating, unavailable, native vs Main),MonteCarloPotConfiguration.test.tsx(unlink carries the Main value, noNonewhile unavailable or for a deleted account, manual pot keepsNone),MonteCarloCard.test.tsxandMonteCarloUnavailableNotice.test.tsx(unavailable and loading states).Related issue(s)
Testing
Run on X99 at head
a821984f1d8abde81e2014976401f4b5144fa3d1(basee240bc17539f0b56fe28e658f4c3929dca433c64), no install:yarn workspace @actual-app/web run test src/components/reports/reports/monte-carlo: PASS, 7 files / 153 tests. Independently re-run by the reviewer on the same head: PASS.yarn workspace @actual-app/web run test src/components/reports: PASS, 37 files / 470 tests.yarn typecheck: PASS.oxfmt --checkandoxlint --type-awareon the 5 files changed in the last commit: PASS.MonteCarloPotConfiguration.tsx, 3 of the 5 new pot-row tests fail.Not run: browser smoke and VRT for Monte Carlo with a mixed-currency fixture (tracked in CHE-1197; no Monte Carlo VRT baseline exists). No full
MonteCarlo.tsxroute render test (non-blocking P2).CI at head
a821984f, disclosed, nothing waived: 16 success, 1 failure, 9 cancelled, 10 skipped.lintfails onpackages/desktop-client/locale-fork/GLOSSARY.mdformatting. This PR does not touchlocale-fork; the file comes from an earlier layer and base PR [AI] CHE-1024: Two-client persistence journey and multi-currency docs #133lintfails the same way.setup,build,compare,migrations,autofix,Functional Desktop App, both VRT shards, functional shard 3) were queued about 15 minutes with no runner assigned (emptyrunner_name, 0 steps) and cancelled. That is runner availability, not a test result. They have not passed.Checklist