Skip to content

feat(server): maintenance + monitoring endpoints (#607 #608) - #611

Merged
ajianaz merged 2 commits into
developfrom
feat/server-maintenance-monitoring
Jul 7, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/server-maintenance-monitoring

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add 6 new HTTP endpoints to uteke-serve for CLI parity.

Maintenance (#607)

Endpoint Method Description
/prune POST TTL-based deprecated memory cleanup (dry_run support)
/consolidate POST Near-duplicate merging (dry_run → find only, no merge)
/aging POST Memory lifecycle: status, preview, cleanup actions

Monitoring (#608)

Endpoint Method Description
/importance POST Recalculate importance scores
/orphans POST Find disconnected low-importance memories (read-only)
/rebuild-backlinks POST Rebuild referenced_by from forward edges

Auth

  • /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 defaults
  • handlers.rs: 6 new route handlers + /orphans added to read-only POST paths

Closes #607, #608

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()) {
@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)

  • unknown:? — Cora AI review could not complete: failed to parse LLM JSON response: parse failed (original: EOF while parsing a value at line 1 column 0, after repair: EOF while parsing a value at line 1 column 0). Review was skipped; no code quality issues were found by the automated check.

Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit 2478784 into develop Jul 7, 2026
9 checks passed
@ajianaz
ajianaz deleted the feat/server-maintenance-monitoring branch July 7, 2026 13:55
ajianaz added a commit that referenced this pull request Aug 13, 2026
…toring

feat(server): maintenance + monitoring endpoints (#607 #608)
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.

Feature parity: POST /prune, POST /consolidate, POST /aging (maintenance via HTTP)

2 participants