Repository navigation
Show the schema's key facets in every command - #52
Merged
Merged
Conversation
- 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
changed the base branch from
20261117-posture-schema-v2026.11.17-2
to
main
November 17, 2026 19:38
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 #51.
cargo test --workspace: all pass.cargo clippy --workspace --all-targets -- -D warnings: clean.