Seatbelt: require explicit nestedPty opt-in for 1.1+
Description of the new feature / enhancement
Default nested PTY allocation to denied for Seatbelt requests using 1.1.0-alpha and later contracts. Workloads that need to allocate nested terminals should explicitly set seatbelt.nestedPty: true.
At PR #1720 revision bc59687f, normalization defaults omitted nestedPty to true, including for 1.1.0-alpha. This grants terminal allocation without an explicit request for it.
Keep the existing defaults for V1 and below (1.0.0 and 0.9.0-alpha) unchanged. This follow-up is limited to the nestedPty default, not the other Keychain or GUI compatibility discussions in #1720.
@theelliotm requested tracking this in a separate issue and PR: https://github.com/microsoft/mxc/pull/1720#issuecomment-6808334752.
Proposed technical implementation details
Acceptance criteria:
- In normal enforcement mode for
1.1.0-alphaand later contracts, omittednestedPtyor explicitfalsedenies nested PTY allocation; explicittruegrants it. Cover omitted Seatbelt options blocks as well as an omitted field within a present block. - Preserve the existing omitted-field default of
truefor1.0.0and0.9.0-alpha. - Preserve omitted-versus-explicit field presence so learning mode continues to distinguish omitted settings from authored restrictions.
- Add version-boundary tests for omitted, explicit
false, and explicittrue, including typed V1 SDK requests and JSON configuration. Add the corresponding observable behavior scenarios to the existing scheduled macOS Seatbelt suite. - Update the canonical backend/schema documentation and regenerate development artifacts as needed; do not modify released schemas.
Implementation should be a separate PR, as requested in the linked discussion.