Problem Statement
After introducing a read-only Intune capability (IdLE.Device.List) and a canonical context schema, workflows should be able to populate device inventory automatically during planning, so that:
- Step
Condition can reference device/platform hints in Request.Context
- Hosts/operators get consistent device context for manual procedures
- Plans remain deterministic and auditable (context captured in snapshot/export)
This requires integration with the planning-time ContextResolvers mechanism.
Proposed Solution
Add/extend a planning-time resolver configuration to call provider read capabilities and write results into Request.Context.*.
For Intune device inventory:
- Resolver configuration calls capability
IdLE.Device.List
- Writes result to:
Request.Context.Devices.Intune.ManagedDevices
The resolver must:
- run before step condition evaluation
- fail fast if the target path is outside
Request.Context
- only allow read-only capabilities (allow-list)
Alternatives Considered
- Host-only population: reduces portability and consistency.
- Runtime-only device list calls: less deterministic planning and harder to audit.
Impact
- Workflows can declaratively request device inventory context.
- Enables consistent BYOD orchestration patterns.
Dependencies
- Requires the generic
ContextResolvers feature (planning-time) using provider capabilities.
- Requires Intune Issue 1 (read-only provider capability + canonical schema).
- Requires snapshot/export rules for safely including
Request.Context.
Definition of Done (Step-0-Ready / Agent-Safe)
Design / Contracts
Implementation
Tests (Pester)
Docs / Examples
Non-Goals (explicit)
- No retire/wipe device actions in this issue.
- No interactive UI behavior in IdLE.
Problem Statement
After introducing a read-only Intune capability (
IdLE.Device.List) and a canonical context schema, workflows should be able to populate device inventory automatically during planning, so that:Conditioncan reference device/platform hints inRequest.ContextThis requires integration with the planning-time
ContextResolversmechanism.Proposed Solution
Add/extend a planning-time resolver configuration to call provider read capabilities and write results into
Request.Context.*.For Intune device inventory:
IdLE.Device.ListRequest.Context.Devices.Intune.ManagedDevicesThe resolver must:
Request.ContextAlternatives Considered
Impact
Dependencies
ContextResolversfeature (planning-time) using provider capabilities.Request.Context.Definition of Done (Step-0-Ready / Agent-Safe)
Design / Contracts
Capability: IdLE.Device.ListTo: Devices.Intune.ManagedDevices(relative toRequest.Context)ContextResolvers.Implementation
ContextResolverscan invokeIdLE.Device.Listand write toRequest.Context.Devices.Intune.ManagedDevices.Conditionevaluation and influences step applicability.Tests (Pester)
Request.Contextfails.Docs / Examples
ContextResolverspopulates Intune devicesRequest.Context.Devices...(e.g., platform hint for BYOD)Non-Goals (explicit)