Skip to content

refactor(server): read [tier] from uteke.toml (#1418) - #1419

Merged
ajianaz merged 1 commit into
developfrom
refactor/server-tier-config-1355
Oct 9, 2026
Merged

ajianaz merged 1 commit into
developfrom
refactor/server-tier-config-1355

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

What

uteke-serve reads [tier] (hot_days, warm_days, hot_boost) from uteke.toml and passes it to the store at open (resolve_tier), as the CLI does. Absent keys keep the core defaults (7 days, 30 days, boost 0.1), so existing deployments without the section are unchanged.

Why

Closes #1418, step C of #1355. The server opened the store with the default TierConfig and ignored the section the CLI honours; hot_boost changes recall scores and warm_days is the age at which memories count as cold.

Testing

  • fmt, clippy -D warnings, cargo test --workspace green; 2 new unit tests (defaults equal the core defaults; file values are applied and a partial section keeps the other defaults)
  • End to end, run locally with the built uteke-serve and a fake OpenAI-compatible embedder, strategy=vector: after the memory was accessed once, a second (different) query scored 0.9349 with the default tier and 1.125 with [tier] hot_boost = 0.5, so the section reaches the scoring. (A repeated identical query is served from the recall cache and keeps the first score, so the check uses a different query.)
  • Behaviour change: a server whose uteke.toml already has a [tier] section now uses it, which can change scores and what counts as cold. Not tested: the effect of warm_days on the lifecycle jobs

🤖 Generated with Claude Code

uteke-serve now passes hot_days, warm_days and hot_boost from [tier] to the
store at open, as the CLI does; absent keys keep the core defaults (7 / 30 days,
boost 0.1). Third step of #1355.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4cbe3a3 into develop Oct 9, 2026
15 checks passed
@ajianaz
ajianaz deleted the refactor/server-tier-config-1355 branch October 9, 2026 09:37
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.

refactor(server): read [tier] from uteke.toml (#1355 step C)

1 participant