Skip to content

feat: accept the coding and general savings profiles (headroom 0.30.0)#12

Merged
lkosewsk merged 1 commit into
mainfrom
lk/headroom-0.30
Jul 6, 2026
Merged

feat: accept the coding and general savings profiles (headroom 0.30.0)#12
lkosewsk merged 1 commit into
mainfrom
lk/headroom-0.30

Conversation

@lkosewsk

@lkosewsk lkosewsk commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

headroom-ai 0.30.0 added two workload-persona profiles, coding and general, alongside agent-90 and balanced. Both apply cleanly via the library compress() path (they set only the standard CompressConfig knobs), but tsheadroom's whitelist rejected them with a 400 — leaving us more restrictive than the running headroom.

Add both to savingsProfiles, and derive the validation error message from the whitelist (sorted) so the accepted-values text can't drift from the map again. No worker change needed: worker.py already resolves any profile the installed headroom knows via get_agent_savings_profile().

Docs/tests: extend the config validation cases and refresh the README savings_profile row, error-text example, version note, and example headroom_version.

headroom-ai 0.30.0 added two workload-persona profiles, `coding` and
`general`, alongside `agent-90` and `balanced`. Both apply cleanly via
the library compress() path (they set only the standard CompressConfig
knobs), but tsheadroom's whitelist rejected them with a 400 — leaving us
more restrictive than the running headroom.

Add both to savingsProfiles, and derive the validation error message
from the whitelist (sorted) so the accepted-values text can't drift from
the map again. No worker change needed: worker.py already resolves any
profile the installed headroom knows via get_agent_savings_profile().

Docs/tests: extend the config validation cases and refresh the README
savings_profile row, error-text example, version note, and example
headroom_version.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lkosewsk lkosewsk merged commit 2795259 into main Jul 6, 2026
2 checks passed
@lkosewsk lkosewsk deleted the lk/headroom-0.30 branch July 6, 2026 05:13
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