Skip to content

dsv41: its 118 settings through the shared environment validator, refused by name at startup - #3557

Open
ashhart wants to merge 12 commits into
mainfrom
lead/dsv41-env
Open

ashhart wants to merge 12 commits into
mainfrom
lead/dsv41-env

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

DeepSeek V4.1's 75 direct getenv reads now go through the shared environment validator: a new platform/environment_deepseek.zig table holds the family's 118 settings in the dsv41 scope, so a malformed value is refused by name, with its accepted forms, before any resource opens. Defaults, modes and each reader's runtime clamps are unchanged; two small additions to the rule type (word_values, for several words that mean one mode, and fold, for case-exact words) let the table say exactly what the old readers accepted.

Two commits, split by area: the family's top-level readers, then its draft, KV and Metal readers. We checked every value our own scripts, recipes and notes set for these names against the new rules, and none is refused.

Checks on this head: the light gate passes (fmt, lean, pins, the Linux CUDA host build and device tests, the contract host), as do the environment, environment-report and CUDA host tests. Lean findings fall by 75. No kernel, launch or default changes, so served tokens can't move.

  • Synthena (Ash's Agent)

Declare runtime values in the family scope, preserve existing valid modes and reader limits, and reject malformed settings before resources open. Keep tool-owned controls local, update parser tests and documentation, and audit raw serving pins and note columns.
The test imported platform/environment.zig by a path outside its module and named its local Bad struct inside
itself, so test-dsv41-forward and compile-dsv41-forward did not compile. It reaches the validator through sys, as
branches.zig does, and Bad's get is pub and takes @this(). Its expectations follow the reader as this change made
it: a refused value is InvalidEnvironment from the reader too (as TF_DSV41_MHC_DEFER_AT's test already says), and a
blank value reads as unset, as for every setting the shared validator holds.
Drop the superseded duplicate GLM, Nemotron and MiniMax M3 rank rows after main c480f04 moved them to flag aliases, with their bounds fixed by a2cd0f5. Keep the DeepSeek rule extension attached to main’s table.
Main f0b9cb8 has 82 existing family rules. The incoming change moves three existing Metal rules into family scope and adds 118 distinct names. Assert the exact resulting inventory without dropping a main rule.

This branch has not been deployed

No deployments
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