Repository navigation
feat(server): maintenance + monitoring endpoints (#607 #608) - #611
Merged
Merged
Conversation
Add 6 new HTTP endpoints to uteke-serve: Maintenance (#607): - POST /prune: TTL-based deprecated memory cleanup (dry_run support) - POST /consolidate: near-duplicate merging (dry_run support) - POST /aging: memory lifecycle management (status/preview/cleanup) Monitoring (#608): - POST /importance: recalculate importance scores - POST /orphans: find disconnected low-importance memories (read-only) - POST /rebuild-backlinks: rebuild referenced_by from forward edges All destructive endpoints require write token. /orphans allows read-only token (read-only query). Aging cleanup supports dry_run for safety preview. Closes #607, #608
| }, | ||
|
|
||
| // ── Importance (monitoring) ──────────────────────────────────────── | ||
| (Method::Post, "/importance") => match read_body::<ImportanceRequest>(req.as_reader()) { |
🔍 Cora AI Code Review🟡 Warning (1)
Review powered by cora-cli · BYOK · MIT |
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
Add 6 new HTTP endpoints to uteke-serve for CLI parity.
Maintenance (#607)
/prunedry_runsupport)/consolidatedry_run→ find only, no merge)/agingstatus,preview,cleanupactionsMonitoring (#608)
/importance/orphans/rebuild-backlinksreferenced_byfrom forward edgesAuth
/prune,/consolidate,/aging,/importance,/rebuild-backlinks→ write token required/orphans→ read-only token allowed (read-only query)Changes
types.rs: 7 new request structs with sensible defaultshandlers.rs: 6 new route handlers +/orphansadded to read-only POST pathsCloses #607, #608