Skip to content

feat(config): make minimal-setup defaults tuned - #59

Merged
aspotton merged 8 commits into
mainfrom
feat/minimal-config-defaults
Oct 17, 2026
Merged

aspotton merged 8 commits into
mainfrom
feat/minimal-config-defaults

Conversation

@aspotton

Copy link
Copy Markdown
Owner

What changes

A first-time user today copies a 148-line annotated config.example.yaml and reasons about dozens of knobs before their first infinitum serve. After this change, the starter config is literally the upstream block (base_url + api_key), and every tuned value is a built-in default they never touch.

An existing user upgrading keeps their explicit config winning (Pydantic partial override unchanged); only fields they omitted pick up the new defaults.

Why

The defaults already support a partial config, so the only work was setting the tuned values as the program's own defaults and rewriting the docs/tests to match. No new config keys, no schema/logic changes, no new code paths, no setup steps.

The 13 retuned defaults

memory.minimum_retrieval_score 0.18→0.25 · memory.inject_max_memories 24→8 · memory.tools_enabled False→True · learning.max_tokens 2048→1024 · learning.extra_body {}→{tool_choice: none} · learning.skip_when_upstream_busy False→True · learning.upstream_idle_grace_seconds 0→5 · topic-summary debounce 30→60, update_threshold 5→3, max_changed 24→6, context 8→4, bootstrap 32→8, max_tokens 1024→512. (Unchanged: minimum_relevance_score 0.08, timeout_seconds 600, topic_summary_min_memories 3, fallback 12, consolidation_max_tokens 2048, embeddings opt-in/off.)

Two sanity-check decisions

  • learning.extra_body defaults to {tool_choice: none} only. The vendor-specific chat_template_kwargs: {enable_thinking: false} (Qwen/vLLM) stays a commented example — a strict/cloud upstream would 400 on the unknown field and silently kill background learning.
  • memory.tools_enabled now defaults true — a visible change for upgraders (two read-only drill-down tools + the server-side tool loop on memory-enabled requests). Set memory.tools_enabled: false to restore the prior tool-free behavior on upstreams without a tool parser.

Other

  • config.example.yaml slimmed to the minimal starter + commented optional stanzas.
  • New docs/CONFIGURATION.md#defaults-at-a-glance reference table; every stale default claim corrected across CONFIGURATION/README/ROADMAP/AGENTS/ARCHITECTURE; CHANGELOG records the upgrade-visible flips.
  • Dev-only benchmarks/runner.py zeroes the new idle-grace so the offline eval harness stays fast.

Verification

  • python -m pytest -q: 515 passed (~28s). Final-wave review: plan-compliance, code-quality, real TestClient QA (near-empty config boots, /health + /v1/models + POST /v1/chat/completions with tools auto-appended and a learn job enqueued), and IS-1..IS-8 fidelity all APPROVE.

@aspotton
aspotton merged commit dac77a0 into main Oct 17, 2026
1 check passed
@aspotton
aspotton deleted the feat/minimal-config-defaults branch October 17, 2026 21:14
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