Repository navigation
fix: preserve run history and match solver cache provenance - #39
Merged
aeronauty-flexcompute merged 6 commits intoOct 14, 2026
Merged
Conversation
5 tasks done
This was referenced Oct 14, 2026
fix: reference-matched native drag decomposition
aeronauty-flexcompute
merged commit Oct 14, 2026
bda3db5
into
harry/rustfoil-cli-flap
3 checks passed
This was referenced Oct 14, 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.
Preserve run history while preventing stale or unconverged cache hits from hiding corrected solver results. The old unique operating-point index is migrated to an ordinary lookup index; retries append new attempts rather than overwriting or silently ignoring history.
Cache reuse now requires successful convergence plus a known matching release/content-hashed WASM artifact, solver mode, Reynolds scaling type and both forced trips, alongside the existing geometry and operating-point fields. Legacy/unknown-provenance, development and failed runs remain visible but do not qualify. Browser SQLite, local-API payloads/client lookup, Python SQLite and the lookup endpoint use the same nullable namespace. Geometry hashes remain geometry-only.
Import validates/migrates a separate database before replacing live history. Browser inserted IDs are captured before sql.js export resets connection-local state. Existing explicit clear/import and 50,000-row retention remain unchanged.
Validation: 155 Python tests, 67 UI tests, production UI build, and Docusaurus/API build passed locally. Regression coverage uses real SQLite/sql.js for old-index migration, failed retry, corrected reuse, revision/mode/Re-type/trip misses, export/import and invalid-import history preservation. The required Python CI job now also builds shipping web bindings, runs UI tests and builds the production UI. Current-head CI/reference gates must pass before integration.
PR impact
Stacked on updated #18 (
harry/rustfoil-cli-flap) at 8c5ec25; head 8ca9796. Merge base 8c5ec25. This slice changes cache/history paths and CI; inherited #35/#38/#18 provide the scientific gate, doc tooling and validated flap feature.Source-confirmed routes:
SolvePanel.solveOrCache→solverCacheKey+ runStore.lookup → BrowserBackend/LocalAPIBackend → SQLite/loaded run rows; a miss runs the existing WASM solver and appends history. Browser/server insert and lookup share cache_key. Run-table/restore/export consumers continue reading legacy rows. Migration removes only the old index and adds nullable metadata, without deleting rows; invalid import keeps live history.Activation: reuse requires known production artifact/settings and converged success; changing a relevant setting/artifact blocks reuse. Unprovenanced Python/sweep attempts remain history-only. The ordinary index bounds lookup work; local clients can harmlessly miss older rows outside their fetched window. Old clients that recreate the unique index cannot import repeated-point history; use updated paired UI/server versions. Cached summaries still omit full distributions; eligibility is not a scientific accuracy guarantee.
Changelog, Versions & Docs
flexfoil-ui/src/lib/version.tsCHANGELOG updatedflexfoil-ui/package.jsonversion matches top CHANGELOG entry (1.1.16)packages/flexfoil-python/pyproject.tomlversion bumped (1.1.16)Validated integration of #40
#40 is merged into this candidate. Its physical wall-shear CDf/CD−CDf correction, matching reference component checks and docs are now inherited here. The source tree is identical to tested #40 head5a056e4 (tree0cf465db8188da67202828237786e3716bf58fe6). Fresh current-head Rust/Python/Bugbot all pass on run38560314860. Base/impact/version metadata were refreshed after the flap follow-up and this integration. Shared canonical force reach and numerical limits from #40 apply; this is no longer only a cache diff. No main merge or manual deployment.