fix(storage): record truthful per-section directory versions (G-F0.1) - #5
Open
jarmen423 wants to merge 2 commits into
Open
Conversation
Preserve each Section::version() in the container directory via write_versioned_sections and engine flush. Keep legacy write_sections at directory version 1, skip unknown optional section types, fail closed on unknown required types, and document historical outer-v1 compatibility.
Apply rustfmt --edition 2024 to the four files that failed targeted format check. Formatting-only; no semantic changes.
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.
Summary
GrafeoFileManager::write_versioned_sectionsso each directory entry records the section's declared format versionwrite_sectionsas a version-1 delegate for tests/opaque callersflushretainsSection::version()through the shared writerPacket
G-F0.1 — independent format maintenance (not an E-0 / RO-evidence prerequisite)
Verification
grafeo-storagelib tests (debug + release): version preservation, legacy v1, historical outer-v1, encryption, unknown optional/requiredgrafeo-engine--test section_directory_versions(debug + release): Catalog/LPG, CompactStore, VectorStore, TextIndex, PropertyIndex writer, outer-v1 CompactStore reopen, future payload rejectStacking
Base is
agent/txn-session-batch-20260726(9781320f…) while that lineage remains unlanded onmain. Independent of G-E0.1.Commit
0d1211abf4e7bef924528b773e2943d428fdc16d