Skip to content

Audit ConfigurationManagement v3 shared directive migration - #3851

Merged
Ramses Sanchez-Hernandez (ramsessanchez) merged 16 commits into
powershell-v3from
ramsessanchez-configurationmanagement-v3-migration
Nov 12, 2026
Merged

Ramses Sanchez-Hernandez (ramsessanchez) merged 16 commits into
powershell-v3from
ramsessanchez-configurationmanagement-v3-migration

Conversation

@ramsessanchez

@ramsessanchez Ramses Sanchez-Hernandez (ramsessanchez) commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

N/A - existing ConfigurationManagement module migration PR; final revalidation after the user's normally merged #3886 contract.

Changes proposed in this pull request

  • Preserve the original zero-shared-directive audit, empty configurator and mappings: []. No shared module markdown existed at original baseline 51d441eeb5; standard historical require wiring is retained. All profile-local readmes and src/readme.graph.md stay ignored and untouched. Parameter aliases/transforms and schema/response classes remain Deferred, not implemented. No invented groups, suppression, names, aliases, selectors, or other-owner/global changes.
  • Normally merge verified powershell-v3 target 6475f3f5beb4908d39ea356db32bf1e0fd3273cb, preserve all earlier commits, and pin the new one-operation PATCH contract in the owned real-spec tests. PATCH204 succeeds with no returned object and no automatic GET; PATCH200 returns the actual typed server model from one PATCH. Callers explicitly choose any readback GET. No PassThru/ReadBack/Refetch switch.
  • Run fresh full queued v1.0 then beta generation/builds and normal compiled transport acceptance after final source changes. The two specs each contain 18 operations (14 GET, 1 POST, 1 PATCH, 2 DELETE), zero required-query operations, and zero native PATCH query inputs. GET-only query requirements/options are not added to PATCH. Existing defaults, exact routes and public names are preserved.

Current 6475 full builds and source gates

Both compatible profiles are supported; none is excluded. No legacy fallback or skipped generation.

Profile Compatible spec Git blob Full queued Release Normal compiled import
v1.0 dd8ef9256120c1a463b2394238b81cfcc07ec5c0 exit0 / OK / 90.5s / 23 cmdlets 23 exports and exact named route identities; all18 spec routes
beta 0893ccbc044acbfc320945f06b26c378e7554c7b exit0 / OK / 243.9s / 23 cmdlets 23 exports and exact named route identities; all18 spec routes

Actual commands run from the owned worktree, sequentially:

pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\Invoke-QueuedModuleBuild.ps1' -RepoRoot (Get-Location).Path -Module ConfigurationManagement -ApiVersion v1.0 -Configuration Release
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\Invoke-QueuedModuleBuild.ps1' -RepoRoot (Get-Location).Path -Module ConfigurationManagement -ApiVersion beta -Configuration Release

Both passed with 23 nonzero exports, and both slots released. The unchanged four-mutex queue runs full Kiota and WrapperGenerator/build/manifest generation on openApiDocs_KiotaCompat; no SkipKiota, GenerateOnly, NoCollisionData, archive restoration or fallback. Kiota is isolated 1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943 with process-local parallelism cap1.

The process-local module path starts with the normal-source-equivalent adapted Authentication2.41.2 root:
C:\Users\ramsess\.copilot\session-state\4aa86cf9-d43c-4d2b-a4a3-aeaed01b8f29\files\authentication-v2-sync\final-source\modules,
followed by existing user, AllUsers and PSHOME roots. Fresh children import from that exact root; all64 file SHA256s and the physical nupkg SHA256 2FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB are verified. No stock/old2.38 Auth, preload, dependency copies, shim or unmerged overlay.

$e = 'C:\Users\ramsess\.copilot\session-state\fc452189-e6df-43d8-8e46-324d32deb991\files\post3886-6475-final'
$m = 'C:\Users\ramsess\.copilot\session-state\fc452189-e6df-43d8-8e46-324d32deb991\files\post3886-6475-memory-final'
dotnet test .\tools\WrapperGenerator.Tests\WrapperGenerator.Tests.csproj --no-restore --filter 'FullyQualifiedName~ConfigurationManagementDirectiveMigrationTests|FullyQualifiedName~CmdletConfiguratorTests|FullyQualifiedName~WrapperGenerator.Tests.NamingTests|FullyQualifiedName~RequiredQueryTests' --logger 'trx;LogFileName=targeted.trx' --results-directory $e --verbosity quiet
.\tools\Get-WrapperDirectiveMigrationInventory.ps1 -Module ConfigurationManagement -FailOnUnresolved

157 total/executed/passed, 0 failed/not-executed, including 5 real owned module results in targeted.trx; ordinary strict0 shared rows, mapped0/deferred0/unresolved0/no stale mappings. Zero-row pipeline evidence is retained in strict-inventory.log. Own real-spec tests check every operation ID/path/method, structural names/suppression with derived data on/off, explicit separate oracle/profile context, all18 emitted adapter calls, no native PATCH query borrowing and no GET in mutation source.

Positive compiled HTTP/default/binder/safety acceptance

Fresh normal manifests require Auth2.41.2, have no RequiredAssemblies, and bins plus validation packages carry only3 owned DLLs (client/runtime/module). Exact23 named route identities, all18 spec routes and five ordinary default List/Get pairs pass per profile.

pwsh -NoProfile -NonInteractive -File "$e\Test-CompiledOwnership.ps1" -RepoRoot (Get-Location).Path -Profile v1.0 -OutputPath "$e\ownership-v1.0-Global.json"
pwsh -NoProfile -NonInteractive -File "$e\Test-CompiledOwnership.ps1" -RepoRoot (Get-Location).Path -Profile beta -OutputPath "$e\ownership-beta-Global.json"
pwsh -NoProfile -NonInteractive -File "$m\Test-OfflineTransport.ps1" -RepoRoot (Get-Location).Path -Profile v1.0 -Environment Global -OutputPath "$m\compiled-v1.0-Global.json"
pwsh -NoProfile -NonInteractive -File "$m\Test-OfflineTransport.ps1" -RepoRoot (Get-Location).Path -Profile v1.0 -Environment USGov -OutputPath "$m\compiled-v1.0-USGov.json"
pwsh -NoProfile -NonInteractive -File "$m\Test-OfflineTransport.ps1" -RepoRoot (Get-Location).Path -Profile beta -Environment Global -OutputPath "$m\compiled-beta-Global.json"
pwsh -NoProfile -NonInteractive -File "$m\Test-OfflineTransport.ps1" -RepoRoot (Get-Location).Path -Profile beta -Environment USGov -OutputPath "$m\compiled-beta-USGov.json"

All pass. Ownership checks also ran in fresh USGov-named proof processes. Each of four cloud/profile probes uses real Connect-MgGraph + in-memory MockDataStore + GraphHttpClientFactory token pipeline + terminal offline capture, not a bare default-free marker client. 15 actual HTTP captures per probe, zero live Graph/OAuth:

Post-import datastore isolation correction: normal Authentication import in an additional runspace can reset the shared datastore. Only affected offline probes were rerun in the new $m root; full builds, TRX, source and generation commits were not rerun or changed. The existing Set-MgTestDataStore helper runs after the last confirmation-runspace import and before Connect. Each fresh probe repeatedly reflects the actual current GraphSession.Instance.DataStore, verifies it is Microsoft.Graph.Authentication.Test.Mocks.MockDataStore, and records the actual type/assembly/instance plus helper/mock source hashes before HTTP and request-context/reconnect/disconnect/logout. New DataStoreProof.ActualChecks proves isolation; old unguarded runtime reports are retained and are not represented as newly guarded proof. A prior datastore type alone is not evidence that credential I/O occurred.

Case Asserted result
PATCH204 while sibling GET rejects403 Success; exactly1PATCH, zero output, zero automatic GET; native header/body retained
PATCH200 while sibling GET rejects403 Exactly1PATCH, actual typed patch200-response model and typed body; no GET
Caller explicit GET403 One independent GET with its own header and GraphRequestFailed error; prior PATCH remains successful
Caller explicit GET200 One independent GET with its own $select, header and typed result
Existing default List/item/POST/two DELETE Optional GET query values/native encoding, escaped IDs, nested typed JSON/enum/result and bodyless DELETE preserved
Safety/binders Four WhatIf and four genuine No confirmations send0HTTP, exactly4 prompts; invalid enum binding sends0HTTP
Session/profile/cloud Global/USGov URI and /beta correct while real factory BaseAddress stays global/v1.0; adapter reuse and alternating profile roots, request-context/reconnect rebuild, disconnect guard pass
Loader/package identity One normal Auth/Kiota/RMS/UriTemplate closure, exact packaged source and expected load contexts; no copies/preloads

The old bound-header-on-implicit-refetch failure is user-superseded, not waived or relabeled PASS. Old 844672 failed captures are immutable; the new204/200/explicitGET positive cases were executed independently on regenerated6475 code. No3881 PostPath or3897 optional-query overlay. This proves offline behavior, not live tenant/API certification.

Supplemental dotnet pack <generated-project> -c Release --no-build -p:NuspecFile=$e\ConfigurationManagement.nuspec -p:NuspecBasePath=<fresh-bin> -p:NoPackageAnalysis=true -o <profile-output>: both pass without regenerating; both repository Test-WrapperModule.ps1 -PackagePath <profile-validation-package> smokes pass with23 exports/no orphan workers, dispatcher NoGraphSession, complex/enum and19 untyped cases. Full exact invocation/exit arrays are in commands-v1.0.json and commands-beta.json.

.\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\ConfigurationManagement\wrapper\v1.0\Cmdlets -OutLedger "$e\raw-parity-v1.0.csv"
.\tools\Compare-WrapperCmdletNames.ps1 -GeneratedPath .\src\ConfigurationManagement\wrapper\Beta\Cmdlets -OutLedger "$e\raw-parity-beta.csv"

Raw parity remains v1.0 exit0/23of23, beta exit1/0of23 for the unchanged Mg versus oracle MgBeta prefix. Beta raw parity is not normalized or claimed passed. No naming sweep. Existing YamlReader3.7.0 NU1903 advisory warnings remain unchanged. PS7/Core only; no5.1 work.

Preserved history and current evidence

All original migration/profile commits and previous normal target merges remain. Current additions:

Commit Scope
5cad94d345639de7e2ef163b5b3fa24566e0aa1a Normal6475 merge onto prior head61631f4994877d84d179b4045d0de175542ceb4d
9cc274ade5735f673cc38cc4f63ea6073f428c68 Own source test/audit correction for one-PATCH/native-query contract
b1d2c78bf315d6077638e42b7f6784ca0ab4a879 Full combined v1.0 Kiota/client/cmdlet/project/lock regeneration
b4d24a6a47ca875c4edf786aaf83601599051932 Full combined beta Kiota/client/cmdlet/project/lock regeneration

Latest generated delta: removal of monitor PATCH's automatic GET/readback block per profile plus benign blank-line formatting in GET sources; freshly generated clients/projects/locks are otherwise identical. Runtime manifests, assemblies and supplemental packages are hashed in evidence, not committed. All required source/profile commits have Copilot coauthor; full Git scope includes only ConfigurationManagement and its module-specific test. Beta casing and all older boundaries/proofs remain; no force push/newPR/merge/other-owner edits.

Canonical evidence $m\handoff.json retains scalar TRX/strict/profile counts, exact current heads/commits/spec/Auth64/tool/queue/source identities, memory-guarded actual HTTP bodies/headers/counts and actual datastore checks, normal manifest/assembly/package hashes, complete Git scope and absolute artifact SHA256s. It references the unchanged full-build/TRX/unit/strict/hash/package proofs in $e by their exact existing paths; corrected offline commands/exits are in $m\commands-v1.0.json and $m\commands-beta.json. Earlier runtime proofs are retained, not relabeled as guarded acceptance. A pre-build runner interpolation/parser correction is retained in $e\runner-attempt1.txt; a probe-only loop-scope correction and its failed caller-GET assertion/captures are retained there too. No production source changed for either probe setup correction, no full build or unit test was restarted for the datastore fix, and no product failure was hidden.

Other links

Document the absent shared directive source, preserve empty cmdlet configurations, and pin all 18 unaffected operations in both compatible profiles.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the full Kiota 1.36.1 and wrapper Release pipeline against the pinned compatible spec. Client sources, both projects, and cmdlets are byte-identical after normalizing line endings; the Kiota lock records the actual tool version. Compiled module exports 23 cmdlets across all 18 spec operations with unchanged names.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the full Kiota 1.36.1 and wrapper Release pipeline against the pinned beta compatible spec. Client sources, both projects, and cmdlets are byte-identical after normalizing line endings; lock metadata records the actual tool version and compatible-spec casing. Preserve committed wrapper/Beta output casing. Compiled module exports 23 cmdlets across all 18 spec operations with unchanged names.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the standard shared readme require in the new audit file because Copy-ModuleTemplate skips existing destinations. No directives, overrides, or generated outputs change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use GeneratorConfig's three run settings and explicitly pass each oracle profile to naming and configurator lookups. Refresh the real-spec operation-ID inventory and audit blobs against normally merged powershell-v3 target 08e409a. Keep empty shared mappings/configuration and all original operation names.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full queued Kiota 1.36.1 and wrapper Release generation on target 08e409a with compatible spec dd8ef92 and official Auth 2.38.1. Build status OK in 100s. Fresh import validates 23 exports, all 18 exact routes, 10 dispatcher guards and four CRUD WhatIf/Confirm guards. Client/cmdlet source and both projects remain unchanged; only the real current-spec description hash changes in the Kiota lock.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full queued Kiota 1.36.1 and wrapper Release generation on target 08e409a with compatible spec 0893ccb and official Auth 2.38.1. Build status OK in 109.3s. Fresh import validates 23 exports, all 18 exact routes, 10 dispatcher guards and four CRUD WhatIf/Confirm guards. Preserve Beta casing and all names. Client/cmdlet source and both projects remain unchanged; only the real current-spec description hash changes in the Kiota lock. Raw Mg-versus-MgBeta oracle prefix differences are unchanged, not treated as a parity pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refresh audit target to normal Authentication3891 merge and generate real-spec test sources for both runtime profiles. Require all 18 transport implementations to pass their explicit profile to GetRequestAdapter while preserving all 23 names and empty shared configurations.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota1.36.1 and wrapper Release build on normal844672 target: OK23 cmdlets in21.3s. Regenerate explicit v1.0 adapter calls and normal dependency-ownership project layout. Fresh normal manifest requires adapted Authentication2.41.2, only3 owned DLLs, all18 routes/23 named exports. Real factory Global/USGov typed GET/POST/PATCH204 refetch/bodyless DELETE/safety pass; known bound refetch-header loss3886 remains explicitly failed and unmodified.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota1.36.1 and wrapper Release build on normal844672 target: OK23 cmdlets in30s. Regenerate explicit beta adapter calls and normal dependency-ownership project layout, preserving Beta casing and public names. Normal manifest/import and only3 owned DLLs pass. Factory Global/USGov beta transport, typed JSON/results/escaped routes and safety pass; bound PATCH204 refetch-header preservation remains explicitly failed3886, not overlaid or hidden.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Revalidate real compatible specs against normal6475 target. Native monitor PATCH has no query inputs and no sibling GET prerequisite; generated source writes only actual non-null mutation model and never performs automatic readback. Preserve original empty shared inventory and explicit profile context.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota1.36.1 and wrapper Release on normal6475: exit0/OK23 in90.5s, adaptedAuth2.41.2. Remove automaticGET after monitor PATCH, preserving native header/body and actual non-null200 result;204 returns no object. Global+USGov factory probes each15HTTP verify forbidden siblingGET does not affect mutation, explicit callerGET owns headers/query/result/error, typedCRUD/safety/cache/loader. Client/project/locks otherwise identical; old failedrefetch reports retained as user-superseded history.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Actual full queued Kiota1.36.1 and wrapper Release on normal6475: exit0/OK23 in243.9s. Preserve Beta casing, original18routes/23exports and nativePATCH body/header context. Regenerate monitor mutation with no automaticGET and actual200model-onlyoutput/204noobject. Real factory Global+USGov positive204/200/explicitGET,ShouldProcess,binder,profile/cache/loader proof; later post-import actualMock isolation gates rerun onlyoffline against samebins, no source/fullbuild rerun.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) merged commit 075532e into powershell-v3 Nov 12, 2026
6 checks passed
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) deleted the ramsessanchez-configurationmanagement-v3-migration branch November 12, 2026 23:59
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