Skip to content

Show the schema's key facets in every command - #52

Merged
headmin merged 14 commits into
mainfrom
20261117-schema-facets-in-every-command
Nov 17, 2026
Merged

headmin merged 14 commits into
mainfrom
20261117-schema-facets-in-every-command

Conversation

@headmin

@headmin headmin commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #51.

  • profile info and contour.schema.key: labelled values, examples, notes, docs links, app versions, read-only Windows nodes.
  • profile validate holds a payload to its variant (Kerberos SSO needs Realm), as form validate does.
  • profile audit finds schema-marked credentials in nested keys and in domains a managed-preferences payload wraps.
  • profile search --json carries the facets.
  • mscp presets: bsi-indigo-base and bsi-indigo-high; nist-privacy removed (mSCP 2.0 has no 800-53r5_privacy baseline).
  • profile docs: a Field details section.
  • profile generate and ddm generate: a key with no default scaffolds as its example (never for a sensitive key).
  • profile variables --payload: credential keys and the $FLEET_SECRET_ to use for each.
  • census counts examples, sensitive keys and read-only Windows nodes.
  • profile enrollment compares skip-key versions numerically ("10.10" was <= "10.9").
  • SKILL.md: how to use allowed values, examples, sensitive and app versions; ask for real values in place of placeholders and review scaffolded values.

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

- profile info: JSON fields carry the facets (examples, value_titles,
  sensitive, keywords, group, note, documentation_url, app_introduced,
  read_only) and a Windows node's access_type; text shows labelled values,
  examples, the needed app version, the note, the docs link and a
  read-only marker.
- contour.schema.key: the same facets per key, read_only and access_type
  for a Windows node a profile cannot set; documented in the output
  schema. contour-mcp reads windows-schema for the node details.
- Test: BiometricsFallbackType labels and docs link, idleTime's Apple
  example, a read-only BitLocker Status node.
- contour-form: variant_diagnostics() is the variant check validate uses,
  now public.
- profile validate: a payload carrying a variant's fixed values is also
  checked against that variant (VARIANT_REQUIREMENT), unless the field
  already has an issue. A Kerberos SSO payload without Realm is refused,
  as contour form validate refuses it.
- Test: Kerberos without Realm is refused; an Okta-style payload is not.
- schema_sensitive follows dictionaries and array elements to keys the
  dataset marks sensitive, and unwraps the domains a
  com.apple.ManagedClient.preferences payload carries (Forced
  mcx_preference_settings), each against its own schema.
- A field flagged by the schema is not flagged again by name.
- Test: Claude Code's env.ANTHROPIC_API_KEY in a managed-preferences
  payload is found.
- Field hits in --json, ranked and by exact name, carry examples,
  value_titles, keywords, group, note, documentation_url, app_introduced
  and read_only (contour_form::facets_json), as contour.key.search does.
- bsi-indigo-base and bsi-indigo-high expand to indigo_base and
  indigo_high on iOS. Generating needs an mSCP checkout that ships the
  baseline file; the embedded dataset already carries both.
- nist-privacy is removed: mSCP 2.0 has no 800-53r5_privacy baseline, so
  the preset could not generate.
- Test: every preset names a baseline in the embedded baseline_meta.
- docs/contour-mscp.md table follows.
- SKILL.md "Choosing values": allowed values with value_titles, examples
  as illustrations (not limits, placeholders not deployed), sensitive as
  secret variables, app_introduced as an app version, read_only Windows
  nodes, note and documentation_url.
- sop-mcp.md: what contour.schema.key now returns per key.
- contour-form comments: the dataset marks credentials where a source
  states them; the name list is the fallback.
- A "Field details" section per key with value titles, examples, the app
  version it needs, the vendor's note or documentation page.
- The XML example uses a scalar example from the dataset for a required
  key instead of a comment.
- Test: Privileges' labelled BiometricsFallbackType and docs link, the
  screensaver's examples.
- A key with no default takes its first example of the right type
  (string, integer, real, boolean) instead of "" or 0; never for a key
  marked sensitive.
- Test: the screensaver scaffold writes moduleName Message and idleTime 60.
…riable

- For a payload type, each key the dataset marks sensitive ("schema") or
  whose name reads as a credential ("name"; free text or data only, no
  fixed set), with the $FLEET_SECRET_<NAME> to use in its place. --json
  gives path, by and fleet.
- Test: Santa's certificate password and Claude Code's API key come from
  the schema.
- A declaration key with no default and no fixed set takes its first
  example of the right type (Apple's declaration examples among them)
  instead of "" or 0; never for a key marked sensitive.
- Test: a defaultless declaration string key scaffolds as its Apple
  example.
- apple_keys_with_examples, apple_sensitive_keys and
  windows_read_only_nodes, counted from the registries the CLI answers
  from; in the report, the skill-file line and --json.
- every_figure_is_counted covers them.
- load_skip_keys used text comparison, so "10.10" <= "10.9" and a 10.9
  Mac was offered 10.10+ panes. It now uses the file's numeric
  version_le, as the deprecation check already did.
- Test: on 10.9 only the keys Apple gives no version remain, AppleID
  among them.
- clippy collapsible_match on the schema_sensitive walker; no change in behaviour.
- A placeholder-looking example (Example Name, com.example.*) is never
  deployed; the agent asks the person for the real value and replaces it.
- profile generate and ddm generate scaffolds usually fill a key with no
  default from its first example; every scaffolded value is reviewed with
  the person before the profile ships.
@headmin
headmin changed the base branch from 20261117-posture-schema-v2026.11.17-2 to main November 17, 2026 19:38
@headmin
headmin merged commit b8cf863 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