Skip to content

environment: twenty-nine more settings through the registry, same accepted values - #5152

Merged
ashhart merged 5 commits into
mainfrom
lead/env-registry-batch-b
Nov 26, 2026
Merged

ashhart merged 5 commits into
mainfrom
lead/env-registry-batch-b

Conversation

@ashhart

@ashhart ashhart commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Twenty-nine more settings that were read with a direct getenv now go through platform/environment.zig, with their valid forms pinned in environment_valid_cases.zig. Most are DeepSeek-V4.1's CUDA and DSpark settings (layers, experimental admission, draft batching and projection modes, sampling batches, graph limits, phase timing and profiling rows) plus TF_EXPERIMENTAL. The new rules sit in environment_safe_rules.zig so the central file stays under 600 lines. The lean count goes from 152 to 123.

Only settings where nothing changes moved: every value today's code accepts parses to the same result, and everything the registry refuses was already refused, ignored or unreachable. Where an old reader rejected whitespace-only values, a local guard keeps that refusal.

Checks: test-environment-host covers all 63 valid forms; the six touched host suites and five Linux compile roots pass; fmt, AST and the 600-line cap pass. lean is at 123 with nothing new.

  • Synthena

@ashhart
ashhart force-pushed the lead/env-registry-batch-b branch from e2a2973 to b0be0cc Compare November 26, 2026 08:53
@ashhart
ashhart merged commit 0f26b22 into main Nov 26, 2026
27 of 37 checks passed
@ashhart
ashhart deleted the lead/env-registry-batch-b branch November 26, 2026 08:53
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