Skip to content

refactor(sketch_db): extract lifecycle/ with eviction service - #181

Merged
zzylol merged 1 commit into
mainfrom
feat/sketch-db-reorg-5-lifecycle
May 13, 2026
Merged

zzylol merged 1 commit into
mainfrom
feat/sketch-db-reorg-5-lifecycle

Conversation

@zzylol

@zzylol zzylol commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Post-M2.3 reorg #5 of 8. Creates sketch_db::lifecycle and moves SchemaEvictionService (and friends) into lifecycle/eviction.rs. The sid-level lifecycle fields and methods on SketchInstanceMetadata/SketchStore stay in index/ next to the data they gate; only the schedule-driven service moves here.

schema/mod.rs re-exports the eviction types under their legacy path so existing consumers compile unchanged.

Test plan

  • cargo test -p data_plane --lib — 783/783 pass.

🤖 Generated with Claude Code

Post-M2.3 reorg #5 of 8. Creates a new `sketch_db::lifecycle` module
and moves `SchemaEvictionService` (and friends) into
`lifecycle/eviction.rs`. The sid-level lifecycle FIELDS and
methods on `SketchInstanceMetadata` / `SketchStore` stay in
`index/` next to the data they gate — only the schedule-driven
*service* moves here.

`schema/mod.rs` re-exports the eviction types under their legacy
path (`sketch_db::schema::SchemaEvictionService`) so existing
consumers compile unchanged. Canonical home is now
`sketch_db::lifecycle::*`.

This is the structural skeleton for the upcoming sub-PRs:
- #6 will add `lifecycle::reconcile_from_streaming_config`,
  reimplementing schema/'s reconcile semantics over the sid catalog.
- #7 will then delete `schema/` once the only resident is the
  thin re-export.

783/783 lib tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit 9b3f3d2 into main May 13, 2026
@zzylol
zzylol deleted the feat/sketch-db-reorg-5-lifecycle branch July 17, 2026 20:05
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