Skip to content

fix(config): enforce Timmy validation at startup and on settings writes - #1113

Merged
ericfitz merged 4 commits into
mainfrom
fix/1102-enforce-validate-timmy
Oct 18, 2026
Merged

ericfitz merged 4 commits into
mainfrom
fix/1102-enforce-validate-timmy

Conversation

@ericfitz

Copy link
Copy Markdown
Owner

Summary

  • In production, the server refuses to start (exit 1) when the Timmy dump flag is set or llm_provider is invalid. It checks both the env/YAML config and the effective Timmy config resolved from the database.
  • Settings writes reject the same values with 400 invalid_input through one key-to-validator map in SettingsService.Set. A malformed bool fails closed.
  • Follow-up: fix(dbtool): system setting writes bypass Timmy validation #1108 (dbtool writes settings without going through Set).

Test plan

  • Startup-check and settings tests failed before the fix and pass after it
  • make verify
  • Combined integration run: 97 passed, 0 failed

Fixes #1102

🤖 Generated with Claude Code

https://claude.ai/code/session_015szS68rpMLaq712AFsbMfr

ericfitz and others added 4 commits October 17, 2026 20:29
Refuse to start in production when the dump flag is set or llm_provider is
invalid, checking both the env/YAML config and the DB-resolved effective
Timmy config. Reject the same values on settings writes via a single
key-to-validator map in the settings service (400 invalid_input).

Fixes #1102

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n bad dump flag

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Refs #1102

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015szS68rpMLaq712AFsbMfr
@ericfitz
ericfitz merged commit 454269d into main Oct 18, 2026
18 checks passed
@ericfitz
ericfitz deleted the fix/1102-enforce-validate-timmy branch October 18, 2026 03:57
ericfitz-version-bump Bot added a commit that referenced this pull request Oct 18, 2026
Folds 1 merged commit(s):
- 454269d fix(config): enforce Timmy validation at startup and on settings writes (#1113)
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.

fix(config): enforce validateTimmy (production dump flag, LLM provider)

1 participant