Skip to content

Read posture v2026.11.17-2; bring over the session branch's form fixes - #51

Merged
headmin merged 26 commits into
mainfrom
20261117-posture-schema-v2026.11.17-2
Nov 17, 2026
Merged

headmin merged 26 commits into
mainfrom
20261117-posture-schema-v2026.11.17-2

Conversation

@headmin

@headmin headmin commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator
  • Pin posture v2026.11.17-2 (mdm, mscp, windows and the seed_OS-27.3 beta).
  • Fixes from windows-session-local-first outside contour-session, contour-ask, mac/, site/ and docs: ranked key search, keep-unknown and <any>, On/Off booleans written as the word, titles for multi-document payloads, per-platform mSCP baselines, the intent fields in contour-form, contour.key.search / form.validate / form.emit. contour intent check is left out (it compiles contour-session's renderer).
  • BSI iNDIGO comes from the dataset; the bundled ios_26 list is removed.
  • mdm-schema reads posture's key facets (examples, value titles, sensitive, keywords, group, note, documentation URL, app version); windows-schema reads the DDF access type.
  • contour-form uses them: typed and labelled FormSpec options, examples, sensitive from the schema, keywords in search, app versions in requirements; Windows nodes without Add or Replace are refused.
  • A payload carrying a variant's fixed values (Kerberos SSO) is also checked against that variant.
  • Tests per posture addition (posture_v2026_11_17_2.rs) and for the facets (dataset_facets.rs).

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

- contour-form: rank_text and rank_fields rank keys against a multi-word phrase
- profile search: a query of two or more words is ranked; JSON field entries carry `path`
- profile validate: an unknown key in a known payload type is a warning, an error with --strict
- contour-form emit: writes normalize's key order, PayloadOrganization on the inner payload and a trailing newline on declarations
- contour-form emit: Emitted carries requirements (min_os, supervised, sensitive)
- contour-form: emit_settings takes a flat list of settings across payload types and returns documents and refusals
- contour-form: ask (prepare, resolve) and mscp_rules (matching rules, baselines, fix scripts)
- contour-form: the sensitive key-name list moves here from profile audit
- contour-mcp: contour.key.search, contour.form.validate, contour.form.emit; depends on contour-form without default features
- contour-form-wasm: search, emit_settings, ask_prepare, ask_resolve
- tests: intent_cases, form_emit_is_normalized, unknown_key_warns
- The santa recipe no longer needs SANTA_SYNC_SERVER or COMPANY_WIKI; the sync and link URLs are commented examples
- contour-form: intent module (Intent, sort_baseline, script_documents, os_coverage); adds the toml dependency
- contour-form-wasm: catalogue, baseline, scripts, intent_to_toml, intent_from_toml
- profile windows generate: SettingEntry::label is public
- EmitOptions::keep_unknown: an undocumented key, nested or top level,
  and a payload type missing from the schema are written as given and
  listed in Outcome::kept instead of refused
- Values of documented keys are still checked under keep_unknown
- FieldType::Any for Apple's <any>; validate accepts any value, the form
  shows it as raw (com.apple.system.logging Subsystems entries)
- When two Apple files describe one payload type, a merged key now
  accepts the union of their allowed values and the wider range, and is
  open where either variant leaves it open
- com.apple.extensiblesso(kerberos) no longer fixes Type to Credential,
  the extension to Apple's or the team to apple for every SSO extension
- typed(): a boolean for a string key with a fixed set becomes the set's
  matching word (On/Off, Yes/No, True/False, Enabled/Disabled)
- Baseline settings are typed the same way when sorted
- Test: FileVault2 Enable true is written as On, and 800-171 gives "On"
- `tags`: words for what the intent took in (baseline:<name>,
  recipe:<name>), kept when the choice is undone
- `legacy`: payload types whose profile is also written as a
  com.apple.configuration.legacy declaration
- `legacy_url`: where those profiles are served, {name} the file name
- `os_version`: the OS version devices run; what Apple removed by then
  is left out
- `keep_removed`: payload types or "type key" written anyway
- `accept_unknown`: payload types written as given where the schema does
  not know them
- `legacy_urls`: a wrapped profile's own address by payload type, over
  `legacy_url`
- com.apple.MCX merges six of Apple's documents (Wi-Fi, mobile accounts,
  energy saver, time server, …) and took the first one's title; it is
  now titled by what the titles share, else the type's last part (MCX)
- Its description names every document it combines
- Extensible Single Sign-On keeps its title, shared by both its files
- mSCP rules and baselines are indexed per platform: iOS has its own
  (iOS STIG, CIS BYOD and enterprise, NIST, CMMC, CNSSI) and visionOS
  its own; the macOS functions are unchanged
- baselines_for, baseline_for, coverage_for; tvOS has none
- intent: SortedBaseline carries its platform; sort_baseline_for and
  os_coverage_for
- mSCP 2.0 has no Indigo baseline; the ios_26 branch has indigo_base (79
  rules) and indigo_high (121); contour carries the two rule lists
- Renamed rules resolve to their 2.0 names (same keys); the two rules 2.0
  dropped carry their own keys
- A dataset baseline of the same name, once there is one, takes over
- The picker names them BSI Indigo Base and High, under BSI
- `described_from`: the payload types and tags the intent was last
  written from
- `sources`: folders the settings came from, relative to the intent
  file; rendering never reads them
- posture v2026.11.17-2 ships indigo_base and indigo_high in
  baseline_edges (iOS 17.0, 18.0, 26.0); the newest, 26.0, is used.
- Removed mscp_indigo_ios_26.toml and the code that merged it.
- Test: iOS indigo_base has 82 rules and indigo_high 124.
- Lock entries follow the crates on this branch.
- PayloadKey.facets: examples ({value, source}), sensitive, value_titles,
  keywords, group, note, documentation_url, app_introduced, from the
  key_* columns posture v2026.11.17-2 adds. Absent columns read as empty.
- Test against the embedded dataset: moduleName examples, idleTime's Apple
  example, BiometricsFallbackType labels, Santa's sensitive password,
  Touch ID as a Privileges keyword.
- NodeDetail.access_type from windows_node_details (Add, Delete, Exec,
  Get, Replace); settable() is true with Add or Replace, or when unknown.
- Test: BitLocker Status is not settable, AllowStandardUserEncryption is.
- windows generate: a node whose DDF AccessType has neither Add nor
  Replace is refused (WindowsError::ReadOnly), unless the action is delete.
- FieldDefinition.facets carries posture's examples, value titles,
  keywords, group, note, documentation URL and app version; the schema's
  sensitive flag sets FieldFlags.sensitive (names still add to it in emit).
- FormSpec nodes: options are typed by the key (numbers for an integer
  key), with option_titles, examples, group, note, documentation_url,
  app_introduced and readonly. BiometricsFallbackType's first option now
  validates.
- Search ranks a key's keywords with its name; read-only fields are left
  out.
- Requirements.app_versions names keys that need a newer app.
- Windows nodes without Add or Replace are read_only: validate and
  emit_settings refuse them.
- facets_json: the same facets in contour.key.search and the wasm search.
- Tests (dataset_facets): typed and labelled options, examples not
  enforced, Touch ID ranks RequireBiometricAuthentication, Santa's
  password is sensitive, Claude Code verbose needs 2.1.119, BitLocker
  Status is refused.
- zip_release v2026.11.17-2; new sha256 for mdm-schema, mdm-schema-beta
  (seed_OS-27.3 Seed2), mscp-schema and windows-schema. osquery- and
  app-policy-schema are unchanged.
- PayloadManifest.variants keeps each document of a payload type with
  several (com.apple.extensiblesso and its kerberos file) beside the merge.
- validate: a payload carrying all of a variant's fixed values (keys with
  one allowed value) is also checked against that variant for
  required-missing, not-in-enum and range; the message names the variant.
- Test: a Kerberos payload without Realm is refused; an Okta-style payload
  is not.
- One test per addition: Support App rows, Claude Code with Any unions
  and sensitive env keys, moduleName optional and mount-controls alert,
  SkipSetupItems names, mSCP-deployed domains, Privileges ServerType and
  webhook ServerAddress, titles for Santa, Support App and Firefox,
  examples from all three sources, FileVault2 Enable typed, iNDIGO
  metadata, clean Windows text and read-only nodes, the 27.3 beta seed.
@headmin
headmin merged commit 714499a into main Nov 17, 2026
8 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