Skip to content

Migrate Groups shared directives to v3 wrappers - #3865

Merged
Ramses Sanchez-Hernandez (ramsessanchez) merged 25 commits into
powershell-v3from
ramsessanchez-groups-v3-migration
Nov 19, 2026
Merged

Ramses Sanchez-Hernandez (ramsessanchez) merged 25 commits into
powershell-v3from
ramsessanchez-groups-v3-migration

Conversation

@ramsessanchez

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

Copy link
Copy Markdown
Contributor

N/A - module migration; no standalone issue is closed.

Changes proposed in this pull request

  • Migrate/audit only 17 shared Groups.md groups: nine curated configurations (including retained coverage), one existing structural-naming disposition, and seven verified compatible-spec absences. Preserve the original 7 v1.0 / 10 beta operation-ID selections, published item-reference nouns, ordinary default/path-ID behavior, and every original AutoRest directive.
  • Support v1.0 and beta, with no exclusion. Ignore global/profile-local readmes. There are zero deferred parameter/schema groups here; those directive classes remain outside this shared cmdlet scope. Groups has zero authored variant groups or new route/default selectors.
  • Preserve all existing migration/profile commits and the same PR. Normally integrate current target and add separate current-profile combined full-generation commits. No shared generator/spec/Auth edits, unmerged overlays, binaries, bin/obj files, or dependency shims are introduced.

Current contract and target

This final revalidation integrates 6475f3f5beb4908d39ea356db32bf1e0fd3273cb normally in 64227ae7bad36bfcf859efeb977e1dffe24dfbd4. #3886 intentionally replaces implicit PATCH readback:

PATCH 204: one successful PATCH, no output, no GET. PATCH 200 with a model: one PATCH and its actual typed model. The caller may issue a separate GET with its own headers/query/permissions. No PassThru, ReadBack, or Refetch switch is added. GET-only queries are not injected into PATCH.

The old captured generic-header-loss-on-implicit-refetch failures are user-superseded historical evidence, not relabeled passing runs or current unresolved failures. Fresh probes configure GET to return 403 while testing both PATCH cases, so any hidden readback fails.

Source correction 64605014c5 pins this contract in actual-spec Groups emission tests and independently audits current required queries. Exactly four native required @id DELETE-query operations exist per profile, all collection-reference DELETEs selected by the original shared suppression. They remain suppressed. No surviving emitted operation requires these queries; item-reference/no-query neighbors are unchanged, and no query routes are restored to satisfy a test.

All 17 literal mappings and complete original/current endpoint/ID selection equality remain verified, with no reserved legacy bridge fields. True absent OneNote/direct-site operations and the frozen photo cross-path merge preference remain explicit.

Current commit boundaries

Commit Content
64227ae7ba Normal current target merge, preserving all earlier owned history
64605014c5 Own independent PATCH and original query-suppression regression correction
d8dd0654ece9245a86dff6831486d7e8fd3b9dbc Current full v1.0 combined Kiota/client/cmdlet/project/lock generation
ddda9f999083ede48a3889eeaee0898009fb9c03 Current full beta combined Kiota/client/cmdlet/project/lock generation

Prior migration and profile boundaries remain intact, including 75d4e37d73, acf6f3a5a6 / 901632f19c, 035e6fb7c8 / 8558169e32, ce2d58b183 / f666beaa69, and fbf99c596b / ac608b8ebc. Every owned commit carries the Copilot App co-author trailer.

Fresh full-profile gates

All new proof is retained under:

C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final

pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\871a5292-dc5b-423e-8083-5165b0006603\files\Invoke-QueuedModuleBuild.ps1' -RepoRoot (Get-Location).Path -Module Groups -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 Groups -ApiVersion beta -Configuration Release

The unchanged four-mutex queue invokes the complete existing builder, v1.0 then beta, compatible specs only. No SkipKiota, GenerateOnly, NoCollisionData, fallback spec, or NO-CMDLETS acceptance.

Profile Full Release result Exports Compiled route assertions
v1.0 PASS, exit0/statusOK, 188.4s 319 41
beta PASS, exit0/statusOK, 430.3s 347 49

Supplemental explicit clean compiler gates (not substitutes for either full pipeline):

dotnet build .\src\Groups\wrapper\v1.0\Microsoft.Graph.Wrapper.Groups.csproj -c Release --no-incremental --no-restore --nologo -v minimal
dotnet build .\src\Groups\wrapper\beta\Microsoft.Graph.Wrapper.Groups.csproj -c Release --no-incremental --no-restore --nologo -v minimal

PASS both, exit0; retained raw logs confirm fresh build success with zero errors.

Kiota is isolated 1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943, cap 1; current .NET is 10.0.403 and PS7/Core only. The approved complete locally built normal Authentication 2.41.2 is FIRST in process-local PSModulePath. All 64 file hashes and physical package SHA256 2FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB are verified. No Gallery/old2.38 package, copied DLL bundle, preloads, or global environment edits.

Both normal wrapper manifests require Authentication2.41.2, no RequiredAssemblies, and only their three own DLLs. Package/manifest/assembly hashes and normal load identities are retained.

Exact current source/test/compiled gates

dotnet test .\tools\WrapperGenerator.Tests\WrapperGenerator.Tests.csproj --no-restore --filter 'FullyQualifiedName~GroupsDirectiveMigrationTests|FullyQualifiedName~NamingTests|FullyQualifiedName~DerivedCollisionResolutionsTests|FullyQualifiedName~CmdletConfiguratorTests|FullyQualifiedName~RequiredQueryTests|FullyQualifiedName~PatchOperationTests' --logger 'trx;LogFileName=targeted.trx' --results-directory 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final' --verbosity minimal

PASS: actual TRX Total/Executed/Passed 193, Failed/NotExecuted 0. Module tests preserve separate derived profiles, both data modes, complete source selection, meaningful naming, original suppression, and no-GET/no-new-switch PATCH emission.

pwsh -NoProfile -NonInteractive -File .\tools\Get-WrapperDirectiveMigrationInventory.ps1 -Module Groups -FailOnUnresolved -AsJson -OutputPath 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final\strict-inventory.json'
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final\Verify-Compiled.ps1' -Profile v1.0
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final\Verify-Compiled.ps1' -Profile beta

Strict PASS 17/17 Mapped, no Deferred/Unresolved/Invalid. PASS: 319/347 nonzero exports, 41/49 exact migrated/neighbor route assertions, 96/106 mutation metadata checks, ordinary default List/mandatory-ID binder, original collection-reference query suppressions, and no new GET-only PATCH parameters/readback switches.

Fresh actual HTTP acceptance

pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-memory-final\Verify-Transport.ps1' -Profile v1.0 -Environment Global
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-memory-final\Verify-Transport.ps1' -Profile beta -Environment Global
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-memory-final\Verify-Transport.ps1' -Profile v1.0 -Environment USGov
pwsh -NoProfile -NonInteractive -File 'C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-memory-final\Verify-Transport.ps1' -Profile beta -Environment USGov

PASS all four actual guarded runs, zero live Graph requests.

Profile/cloud Result Positive cases HTTP requests Genuine declined prompts Actual shared MockDataStore checks
v1.0 / Global PASS, exit0 25 20 7 44
v1.0 / USGov PASS, exit0 25 20 7 44
beta / Global PASS, exit0 29 22 9 48
beta / USGov PASS, exit0 29 22 9 48

Actual compiled commands use real Connect-MgGraph + in-memory MockDataStore + Authentication's GraphHttpClientFactory token pipeline + offline terminal handlers, never live Graph/OAuth. They verify typed GET/default List streaming, Add/RemoveLifecycle typed bodies/results, beta Rule/unboundRenew typed bodies, reference POST, bodyless reference/resource DELETE and renewal action, encoded IDs, finite optional query/header forwarding, conflicting binding/off-host continuation zero HTTP, WhatIf and genuine No confirmation zero HTTP, one declined prompt per mutation, client/root adapter reuse/invalidation, reconnect/disconnect and single Auth/Kiota/RMS/UriTemplate identity.

Both PATCH204/no-output/no-GET and PATCH200/actual-model send exactly one PATCH even with sibling GET configured 403. Caller-explicit GET independently fails 403 or succeeds with its own headers/select/typed result. Beta and USGov URIs retain their actual service roots despite factory Global/v1.0 BaseAddress; no shared-client mutation.

Normal package proof and limits

Supplemental Pack-VerifiedOutput.ps1 -Profile <profile> uses normal dotnet pack --no-build on the already completed full outputs; package smoke invokes repository Test-WrapperModule.ps1 on those exact packages. PASS both normal package smoke gates:319/347exports equalmanifest,0orphans,complex/enum/scalar1/untyped19. PackageSHA256v1.0 5760F23534925718D98DCFFDD3CC0ECED93CF23879C361F42A64A99AE1C37476; beta D27BF192A659E9DCA74FF61D3F1148E8169A902A6EE1D0023A271B7B314056CB. Exact actual package paths and arguments are retained in package-.json and package-smoke--result.json.

Fresh raw parity is PASS v1.0 319/319 routes, FAIL beta 0/347 routes; exact logs/CSV and actual exitcodes are retained separately. Exact package paths/hashes and gate commands are in the canonical handoff and referenced evidence. No normalized beta prefix is called a raw pass. Existing beta global-prefix/action-name/missing-oracle differences remain out of scope. The photo singleton preference and unsupported unsuppressed PUT photo/intermediate site operations remain explicit. New HTTP evidence covers representative owned contracts, not tenant certification or every Graph API.

Runtime isolation addendum (probe setup only)

Guarded runtime evidence and the NEW canonical self-contained scalar handoff are under:

C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-memory-final

The original unguarded v1.0 runtime reports in C:\Users\ramsess\.copilot\session-state\67950e19-7236-463e-8fbc-ef966f82fcef\files\post3886-6475-final remain untouched and are not cited as guarded proof. Source/TRX/full-build/compiled-metadata/package evidence remains valid in that original folder, referenced by exact existing paths and SHA256s; no generation/build/test rerun or source change was introduced for this setup correction.

The second-runspace import is now completed before Connect, then the existing Set-MgTestDataStore helper is reapplied. Each recorded guard reflects the actual shared GraphSession.DataStore.GetType().FullName and requires Microsoft.Graph.Authentication.Test.Mocks.MockDataStore plus the same object identity. Assertions run after the last import, before Connect/HTTP, before context/reconnect/disconnect and logout, and after transport. Reports preserve the observed post-import pre-correction DiskDataStore type without inferring credential I/O from that type alone. All four final runtime commands above use the corrected script and proof paths.

Current exact compatible-spec Git blobs remain v1.0 38e0783c1f5e451dcfcbadfdadb96bd39bb10d09, beta a27315fdbed377229a3b6a19ea0b3015acdb14a6. Original/old-target/failed evidence is unchanged and not reused as current proof. No #3881 or #3897 overlay, PR merge, protection bypass, or new PR.

Other links

Review all 17 shared Groups directive groups against both compatible profiles, preserve active AutoRest directives, and pin migrated plus neighboring behavior without generation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Repair four published item-reference nouns and reuse four exact v1.0 collision dispositions for both compatible profiles. Record authoritative published route evidence separately from shared-directive mappings, including the existing deferred photo cross-path merge limitation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Bridge all seven v1.0 and ten beta source operation-ID matches by exact method and normalized route, retaining old/new IDs and qualified paths as evidence. Suppress four selected collection-reference DELETEs without affecting published item-reference routes. Pin source-intent coverage and existing reviewed collision policies.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Distinguish unsuppressed compatible routes from baseline unsupported PUT-photo responses and intermediate site-function emission, without changing AutoRest directives or generator behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run full end-to-end Release generation against the pinned v1.0 compatible spec. Kiota client sources, cmdlets and project files regenerate byte-identically; only the client lock Kiota version changes. Compiled module discovery exports 319 cmdlets; 41 exact migrated/neighbor route assertions pass and published-name parity is 268/268.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Create the missing beta client, cmdlets, projects and lock files together using full end-to-end Release generation against the pinned compatible spec. Compiled module discovery exports 347 cmdlets; 49 exact migrated/neighbor route assertions pass. Existing beta global prefix/action naming differences and unsupported neighboring response/function shapes remain documented, not broadened into this migration.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Pin all seven reviewed qualified-to-bare conversions to real matching action/function metadata on both sides, identical parent routes and exact final operation names. Shared strict inventory acceptance remains dependency-gated.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mark only the seven changed final-operation qualification records with UnqualifyFinalOperation and ensure same-path evidence does not opt in. Real operation-kind and exact parent/name guards remain pinned by module tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Verify literal current selector equality with all seven v1.0 and ten beta legacy endpoints, retaining exact legacy and qualified-path proof without requiring unmerged inventory APIs. Refresh every reviewed method/path ID to target abab9da. Strict inventory maps all 17 groups and 146 targeted regressions pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota 1.36.1 and wrapper Release pipeline on target abab9da succeeds with 319 compiled exports and 41 exact migrated/neighbor route checks. Client models and lock update together; freshly generated cmdlets and projects are byte-identical. v1.0 published-name parity passes 268/268 plus 51 dispatchers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota 1.36.1 and wrapper Release pipeline on target abab9da succeeds with 347 compiled exports and 49 exact migrated/neighbor route checks. Client models and lock update together; freshly generated cmdlets and projects are byte-identical. Existing global beta prefix/action parity differences remain explicitly out of scope.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adapt module tests to merged GeneratorConfig run settings and explicitly propagate apiVersion to naming/suppression calls for both profiles and data modes. Remove reserved legacy-only ledger fields while independently retaining complete original seven/ten source-selection, ID, and qualified-path proof from actual specs. Strict inventory maps all 17 groups and 151 targeted tests pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Fresh full queued Release generation on integrated target08e409a6aa:exit0,OK319exports,99.5s,Kiota1.36.1cap1officialAuth2.38.1. Client,cmdlets,projects,andlocks regenerate byte-identically; this explicit empty combined-profile boundary records the required actual run. Fresh compiled verification passes41routeassertions,96mutationWhatIf/Confirmmetadata checks,and2safeactionWhatIfprobes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Fresh full queued Release generation on integrated target08e409a6aa:exit0,OK347exports,140.6s,Kiota1.36.1cap1officialAuth2.38.1. Client,cmdlets,projects,andlocks regenerate byte-identically; this explicit empty combined-profile boundary records the required actual run. Fresh compiled verification passes49routeassertions,106mutationWhatIf/Confirmmetadata checks,and4safeactionWhatIfprobes. Existing beta raw parity limitations remain disclosed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add actual Groups item GET/PATCH and migrated action emission regressions for v1.0 and beta using separate runtime profile context. Preserve complete seven/ten source selectors and all17reviewed directive groups. Current targeted suite153passes with retained TRX; no shared transport/config changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…e root

Fresh full queued Release on844672target:exit0,OK319exports,40.6s,Kiota1.36.1cap1normalAuth2.41.2. Combined generation updates profile-aware cmdlets and wrapper project; clients and locks regenerated byte-identically. Normal manifests/packages require2.41.2,containonly3ownedDLLs,nopreloads. Compiled41routechecks and normal offline factory typed/safety/cloud checks retained. Generic headers on PATCH204GET refetch remain explicit KNOWNFAIL3886,not certified pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ervice root

Fresh full queued Release on844672target:exit0,OK347exports,67.7s,Kiota1.36.1cap1normalAuth2.41.2. Combined generation updates profile-aware cmdlets and wrapper project; clients and locks regenerated byte-identically. Normal3DLLmanifest/packageimports,compiled49routechecks,andactualfactorybeta/USGovroots/typedactions/safetyverified. Generic refetch header loss3886 and rawbetaoracleparity remain explicit limits,nooverlay.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…racts

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Verify generated Groups PATCH keeps only its own inputs and returns only its model without GET/readback flags. Audit all four native @id required-query DELETE operations per profile:all remain within original shared suppression; item-reference neighbors remain unchanged. Complete original7v1/10beta selector and17Mapped proof retained;193targetedtests pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
FullqueuedRelease6475targetexit0/OK319exports188.4s;explicitnoincrementalbuildpasses. CombinedKiota/client/cmdlet/project/lockrunupdatesPATCHsourceswithoutautomaticGET;client/locksregeneratebyte-identically. Freshnormalmanifest41routeassertions and actualfactoryGlobal/USGov24checks each verify204onePATCHnooutputnoGETwithGET403,200onePATCHtypedmodel,callerexplicitGETindependent. Alloriginal17Mappings7selectorspreserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
SequentialfullqueuedRelease6475targetexit0/OK347exports430.3s;explicitnoincrementalbuildpasses. CombinedKiota/client/cmdlet/project/lockrunupdatesPATCHwithoutautomaticGET;clientsandlocksregeneratebyte-identically. NormalAuth2.41.2metadata49routeassertionsandcurrentfactoryGlobal/USGov29checkseach pass204onePATCHnooutputnoGETwithGET403/200singletypedmodel/callerexplicitGET. Existingselectors10betaand17Mapped,typedactions,itemrefs,naming/defaultspreserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) merged commit 047e42d into powershell-v3 Nov 19, 2026
3 of 4 checks passed
@ramsessanchez
Ramses Sanchez-Hernandez (ramsessanchez) deleted the ramsessanchez-groups-v3-migration branch November 19, 2026 00:25
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