Skip to content

feat: report repository build metadata - #309

Merged
graywolf336 merged 1 commit into
feat/diagnostics-repository-metricsfrom
feat/repository-build-metadata
Oct 29, 2026
Merged

graywolf336 merged 1 commit into
feat/diagnostics-repository-metricsfrom
feat/repository-build-metadata

Conversation

@graywolf336

Copy link
Copy Markdown
Contributor

Stacked on #308.

Summary

  • Record the creating build, the latest completed additive-table, legacy-layout, or path-claim migration build, and the latest normal writable table-initialization open in atomic_meta.
  • Expose these fields in text and JSON diagnostics without writing to the repository; report missing or invalid metadata as unknown.
  • Preserve existing creation metadata and leave historical values unknown rather than guessing.

The writable-open field is deliberately not an all-access timestamp: read-only queries and fast writable opens do not update it. The migration field does not currently include redb internal format upgrades.

Validation

  • cargo test -p atomic-core build_metadata --lib
  • cargo test -p atomic-core --test merge_test
  • cargo test -p atomic-repository --lib writable_open_atomically_backfills_claims_and_removes_reverse_only_rows
  • cargo test -p atomic-cli --test it diagnostics_integration_test (40 passed; followed by targeted diagnostics tests after the final changes)
  • cargo clippy -p atomic-core --lib -- -D warnings
  • cargo clippy -p atomic-cli --bin atomic -- -D warnings
  • cargo fmt --all -- --check

@graywolf336
graywolf336 added this pull request to stack #307 October 29, 2026 07:37
@graywolf336
graywolf336 merged commit 63cd271 into dev Oct 29, 2026
8 checks passed
@graywolf336
graywolf336 deleted the feat/repository-build-metadata branch October 29, 2026 09:40
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.

1 participant