Expand description
One-way import of the pre-view semantic snapshot format.
The importer deliberately leaves semantic.bin untouched until a complete
manifest is visible. A caller can therefore roll back by removing the view
directory and continue to use the legacy snapshot.
Configure maintenance calls import_legacy_semantic once when views are
enabled, the checkout owns shared artifact writes, and no manifest exists.
Admission uses the shared cold-build limiter and runs after the configure
acknowledgement. The importer reads the whole snapshot, then re-reads and
hashes every eligible source row before writing compatible rows, so its cost
scales with the corpus. A RebuildRequired outcome records
migration-state.json; later attempts observe that marker rather than
repeatedly scheduling the same rebuild.
Structs§
- Semantic
Migration Report - Observable result of a semantic migration attempt.
- Semantic
Migration Request - Input for importing the semantic snapshot that predates view assembly.
Enums§
- Callgraph
Migration Outcome - Whether the existing staged callgraph build had to do cold work.
- Migration
Error - Errors returned before a migration has a terminal report.
- Semantic
Migration Outcome - Terminal classification of one import attempt.
Functions§
- import_
legacy_ semantic - Imports an eligible root’s old
semantic.binwithout making embedding requests. - rebuild_
legacy_ callgraph_ once - Runs the existing staged cold callgraph build exactly when no usable store exists.
A later rebind opens the published store and returns
CallgraphMigrationOutcome::AlreadyCurrent.