Feature cache-lifecycle: Maintenance engine + CLI + config (hy-xg0v8)#47
Closed
philcunliffe wants to merge 2 commits into
Closed
Feature cache-lifecycle: Maintenance engine + CLI + config (hy-xg0v8)#47philcunliffe wants to merge 2 commits into
philcunliffe wants to merge 2 commits into
Conversation
…, daemon integration (hy-xg0v8) Add maintainCache API with two maintenance operations: - Snapshot expiration: keeps current + min 10 recent + all within 24h - Compaction: streams rows into new epoch with row-id dedup when partition exceeds 32 data files, avg file size < 32 MiB, or metadata > 64 MiB New CLI commands: - hyp query maintain [dataset] [--dry-run] [--force] [--compact-only] [--expire-only] - Enhanced hyp query status with partition-level stats (files, snapshots, metadata bytes) Config surface at query.cache.maintenance with all tunable thresholds. Daemon runs bounded maintenance on a configurable interval (default 60 min, 30s budget per tick). Retired epochs get a 24h grace period before cleanup. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Narrow JSDoc union type after error guard in runQueryMaintain, fix bigint/number array type in expireSnapshots, and use ColumnSpec['type'] instead of missing ColumnType export. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Rejected by refinery: 3 branch-caused typecheck errors in core_commands.js (lines 812-815). compactOnly/expireOnly/force properties not narrowed past the error union branch. Routing back to polecat for fix. |
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
hyp query maintainandhyp query statusquery.cache.maintenanceBead
hy-xg0v8— merge intointegration/cache-lifecycleTest plan