Skip to content

fix: preserve run history and match solver cache provenance - #39

Merged
aeronauty-flexcompute merged 6 commits into
harry/rustfoil-cli-flapfrom
codex/preserve-run-cache
Oct 14, 2026
Merged

aeronauty-flexcompute merged 6 commits into
harry/rustfoil-cli-flapfrom
codex/preserve-run-cache

Conversation

@aeronauty-flexcompute

@aeronauty-flexcompute aeronauty-flexcompute commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

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.ts CHANGELOG updated
  • All user-visible changes have a changelog entry
  • flexfoil-ui/package.json version matches top CHANGELOG entry (1.1.16)
  • packages/flexfoil-python/pyproject.toml version bumped (1.1.16)
  • New/changed primitive docs include theory, source extraction, working call, widget and limits
  • No stale or aspirational content remains in affected docs

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.

fix: reference-matched native drag decomposition
@aeronauty-flexcompute
aeronauty-flexcompute merged commit bda3db5 into harry/rustfoil-cli-flap Oct 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants