Skip to content

feat(config)!: remove COI_LIMIT_* env overrides — no env-var config layer at all#538

Merged
mensfeld merged 1 commit into
masterfrom
feat/remove-coi-limit-env-vars
Jul 3, 2026
Merged

feat(config)!: remove COI_LIMIT_* env overrides — no env-var config layer at all#538
mensfeld merged 1 commit into
masterfrom
feat/remove-coi-limit-env-vars

Conversation

@mensfeld

@mensfeld mensfeld commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Completes the 0.10 configuration principle: after the flags (#532, #536) and the legacy CLAUDE_ON_INCUS_* vars (#537), this removes the last env-var config layer.

The seven COI_LIMIT_* vars (CPU, CPU_ALLOWANCE, MEMORY, MEMORY_SWAP, DISK_READ, DISK_WRITE, DURATION) duplicated the [limits.*] config sections and silently outranked explicit config files. Limits are config/profile-only now.

The configuration hierarchy is exactly: defaults → user config ($COI_CONFIG) → project config → profile — nothing else. loadFromEnv is deleted entirely.

Unaffected (operational, not config): $COI_CONFIG (selects which config file), test infrastructure (COI_USE_DUMMY, COI_CONTAINER_PREFIX), debug toggles (COI_NFT_DEBUG, COI_BUILD_SCRIPT_FROM_DISK).

Tests: the three env-var limits tests became removal assertions — COI_LIMIT_* set must apply nothing, and config values must win when both are present. README precedence section updated.

Gates: go build/vet/test, golangci-lint v2.12.2 (0 issues), gofmt, ruff — green.

…ayer at all

The seven COI_LIMIT_* vars duplicated [limits.*] config and silently
outranked explicit config files. Limits are config/profile-only now; the
configuration hierarchy is exactly defaults -> user config ($COI_CONFIG) ->
project config -> profile, nothing else. loadFromEnv is gone entirely.
Operational env vars ($COI_CONFIG, test/debug toggles) are unaffected —
they select or diagnose, they don't configure.

The env-var limits tests were converted into removal assertions: setting
COI_LIMIT_* must apply nothing, and config values must win when both are
present.
@mensfeld mensfeld self-assigned this Jul 3, 2026
@mensfeld mensfeld added the enhancement New feature or request label Jul 3, 2026
@mensfeld mensfeld merged commit f5a05ce into master Jul 3, 2026
25 checks passed
@mensfeld mensfeld deleted the feat/remove-coi-limit-env-vars branch July 3, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant