Repository navigation
SOFA lookup SOP, aligned generate values, 0.5.1-beta.1 - #53
Merged
Merged
Conversation
- --set 'Updates=[{"ProductKey":"…","InstallAction":"InstallASAP"}]'
writes ScheduleOSUpdate's Updates as an array of dictionaries; it was
written as a string, which the device refuses.
- A value that is not valid JSON stays text; true/false and integers as
before.
- Test: an array of dictionaries with a string and an integer.
… agent - sop-os-versions.md: SOFA's summary feed as the lookup source for current versions, builds, macOS update product keys, betas and exploited CVEs; jq filters for each; contour itself makes no network call. - Using the result: a DDM software update enforcement declaration, a ScheduleOSUpdate command by product key, --os-version for validation, betas against contour census. - Registered as --sop os-versions (aliases sofa, latest-os, os-updates, product-keys); routed from SKILL.md.
- Both: --payload FILE (JSON or TOML object) is the base and each --set PATH=VALUE is applied over it. A dotted PATH nests; VALUE takes the schema key's type (text for a string key, so 27 stays "27"; JSON for an array or dictionary). - ddm generate gains --set; --payload merges deeply instead of replacing top-level keys. The declaration is validated as before. - command generate gains --payload; --set no longer writes a dotted key literally or a JSON array as text. Values are checked against the command's schema (unknown keys, required keys, types, allowed values) and refused before anything is written (SCHEMA_VIOLATION). - Interactive command prompts type answers by the key's type. - Shared in cli/values.rs, with tests; SOP os-versions uses --set.
headmin
changed the base branch from
20261117-schema-facets-in-every-command
to
main
November 17, 2026 19:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #52.
--sop os-versions, aliases sofa, latest-os, os-updates, product-keys): SOFA's summary feed as the lookup source for current OS versions, builds, macOS update product keys, betas and exploited CVEs, with jq filters. contour itself makes no network call.--payload FILEthen--set PATH=VALUE; a dotted path nests; a value takes the key's schema type (JSON for an array or dictionary).--set;--payloadmerges deeply.--payload;--setno longer writes a dotted key literally or a JSON array as text; values are checked against the command's schema before writing.Breaking:
command generate --set A.B=…now nests;ddm generate --payloadmerges into nested dictionaries instead of replacing top-level keys.cargo test --workspace: all pass.cargo clippy --workspace --all-targets -- -D warnings: clean.