Fix filing taxonomy persistence schema mismatch that breaks sync and overview loading #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Background filing workflows are failing with
SQLiteError: table filing_taxonomy_snapshot has no column named parser_engine, and the Overview workflow can then sit in a non-recovering loading state.Evidence
bun run test:e2ee2e/analysis.spec.tstimed out while waiting for the company overview to render.bun run e2e:webservershowed/analysisstuck onLoading company overview.Expected
Acceptance Criteria
filing_taxonomy_snapshot ... parser_engineerrors./analysisno longer hangs indefinitely in a loading state when the backend workflow fails.Issue #2 implementation update:
Implemented the SQLite bootstrap/schema-compat fix for the filing taxonomy drift that was causing
filing_taxonomy_snapshot.parser_enginefailures in local/e2e runs.What changed:
lib/server/db/sqlite-schema-compat.ts.ensureLocalSqliteSchema(...)to repair the missing taxonomy sidecar columns/tables/indexes forfiling_taxonomy_snapshot,filing_taxonomy_context,filing_taxonomy_concept, andfiling_taxonomy_fact.faithful_rows,surface_rows,detail_rows,kpi_rows).scripts/e2e-prepare.tsto stop replaying the stale hardcoded migration list and instead bootstrap through the shared compat helper, then run ingestion schema repair.scripts/dev.tsso compat bootstrap runs beforeensureFinancialIngestionSchemaHealthy(...)on existing DBs.Verification run summary:
bun test lib/server/db/index.test.ts✅bun test scripts/e2e-prepare.test.ts✅bun x tsc --noEmit✅bun run test:e2e:workflowstill has 3 existing timeout failures unrelated to the taxonomy schema fix.bun run test:e2estill has 6 existing browser/e2e failures unrelated to the taxonomy schema fix.bun testis not green overall; it also includes pre-existing non-issue-#2 failures plus Bun trying to execute Playwright specs directly undere2e/.Important result for this issue:
SQLiteError: table filing_taxonomy_snapshot has no column named parser_enginefailure after the change.parser_engineschema error.Status: