Skip to content

SOFA lookup SOP, aligned generate values, 0.5.1-beta.1 - #53

Merged
headmin merged 4 commits into
mainfrom
20261117-sofa-latest-os-lookup
Nov 17, 2026
Merged

headmin merged 4 commits into
mainfrom
20261117-sofa-latest-os-lookup

Conversation

@headmin

@headmin headmin commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #52.

  • SOP os-versions (--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.
  • ddm generate and command generate take values the same way: --payload FILE then --set PATH=VALUE; a dotted path nests; a value takes the key's schema type (JSON for an array or dictionary).
    • ddm generate gains --set; --payload merges deeply.
    • 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 before writing.
  • Version 0.5.1-beta.1. Formulas follow after the release.

Breaking: command generate --set A.B=… now nests; ddm generate --payload merges into nested dictionaries instead of replacing top-level keys.

cargo test --workspace: all pass. cargo clippy --workspace --all-targets -- -D warnings: clean.

- --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
headmin changed the base branch from 20261117-schema-facets-in-every-command to main November 17, 2026 19:39
@headmin
headmin merged commit 6662840 into main Nov 17, 2026
4 checks passed
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