Repository navigation
fix(app): stop Mind Map onboarding rebuild after failed reads - #23712
Merged
Merged
Conversation
aryanorastar
marked this pull request as ready for review
October 26, 2026 11:25
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 26, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Onboarding still treated a failed Mind Map read as an empty legacy account and sent a rebuild POST. This could turn a canonical read outage, invalid response or replaced account session into an unnecessary/rejected mutation. The optional prebuild now stops on read failure; the normal map view retains its read/retry path.
The orchestration moves from the widget to
KnowledgeGraphApi.prebuildForOnboarding, which uses the existing production reader, rebuild and polling owners. Successful canonical reads and populated compatibility maps never rebuild. A positively absent canonical account can still use legacy rebuild; 409 remains terminal and a queued legacy rebuild retains bounded stability polling. No server guard, memory promotion, storage, auth policy or wire schema changes.Refs #20481. The issue discussion by julio23jaz-dotcom also identified this catch-and-rebuild path. Builds on merged #20744 and #22078; #12878 is closed unmerged and is not a dependency. This finishes the reproduced failed-read onboarding gap, not a claim about every affected account's current graph.
Verification
avoid_printin unchanged stability polling; no new diagnostic.372cfbcb56b5c69c787b4a1a8a1394ca1beb69econ 2026-10-26.make mobile-verify ARGS="fast --paths app/lib/backend/http/api/knowledge_graph_api.dart app/lib/pages/onboarding/wrapper.dart": both selected hermetic journeys passed (9 checks; source43866f9f0032844e08902aa01f41ce390cc6ef14, clean).The loopback flow exercises the entire changed orchestration boundary, including parsing, read failures, account replacement, no-write outcomes, terminal conflict and successful legacy polling. No UI layout, native or hardware behavior changes; no physical-device test is needed for this boundary.
Failure class
Failure-Class: new
FC-failed-probe-permits-mutating-recovery: a failed probe was caught and reinterpreted as permission to mutate. Why isn't this a shared primitive instead? It is: the API owner now holds the prebuild flow, and its loopback contract tests are the reusable prevention artifact rather than a widget-specific source check.Release and customer follow-up
The code is merged; release the mobile update on iOS/Android. No additional backend deployment is required for this incremental fix. Existing canonical-read backend support from #22078 remains required and was previously verified deployed. Keep support tracking open until the affected users confirm their map loads and remains available after refresh/reopen on the released build. No customer data, assignment, deployment or account mutation was performed.
UI-Evidence: none
The widget only delegates its existing optional background request; no visible control or layout changes.
Product invariants affected
none; canonical read/mutation and promotion authority are preserved (INV-MEM-1, INV-MEM-4).