Repository navigation
Audit Compliance v3 directives and regenerate both API profiles - #3842
Closed
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 15 commits into
Closed
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 15 commits into
Ramses Sanchez-Hernandez (ramsessanchez) wants to merge 15 commits into
Conversation
Record retired eDiscovery operation coverage as expected absence in both profiles while retaining dormant exact suppressions and structural naming semantics. Add real-spec and neighboring-route regressions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the full Release pipeline with Kiota 1.36.1 against the current compatible specification. Remove stale privacy/eDiscovery sources absent from that specification; compiled output exports the two current root cmdlets. Generated projects remain byte-identical. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Create the previously absent beta client, cmdlets, generated projects and lock files with the full Kiota 1.36.1 Release pipeline. Build/import exports two current root operations. Existing shared generator Mg prefix differs from the beta oracle; no module-specific workaround applied. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Ramses Sanchez-Hernandez (ramsessanchez)
requested a review
from a team
as a code owner
October 22, 2026 00:28
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refresh aligned operation IDs and original/compatible spec hashes after #3849. Prove complete same-profile original selections have no compatible survivors, and exercise naming, suppression and full-spec emission with explicit runtime profiles and derived data on/off. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Queued full Kiota and cmdlet Release pipeline passed on 08e409a: OK, two cmdlets, 81 seconds. Fresh original Authentication 2.38.1 import, exact compiled GET/PATCH routes, WhatIf and raw 2/2 parity passed. Only the Kiota specification hash changed; generated client/cmdlet source and projects are byte-identical. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Queued full Kiota and cmdlet Release pipeline passed on 08e409a: OK, two cmdlets, 136.5 seconds. Fresh original Authentication 2.38.1 import, exact compiled GET/PATCH routes and mutation WhatIf passed. Refresh the current beta model closure and specification hash; cmdlets/projects remain unchanged. Raw beta parity retains the known Mg versus MgBeta prefix mismatch (0/2). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refresh the current normally merged source audit and assert explicit v1.0/beta GetRequestAdapter calls in both generated root operations. Preserve retired directive coverage and unchanged source selections. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Queued full Kiota/cmdlet Release build succeeds with Authentication 2.41.2 and explicit v1.0 service root. Regenerate module project pruning and cmdlet calls; client and locks are identical. Normal manifest imports carry only three owned DLLs. Real authenticated offline GET/query/PATCH-204-refetch/typed-result and mutation safety gates pass. Preserve raw bound generic refetch-header failure for unmerged #3886. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Queued full Kiota/cmdlet Release build succeeds with Authentication 2.41.2 and explicit beta service root. Regenerate module project pruning and cmdlet calls; client and locks are identical. Normal manifests import only three owned DLLs. Real authenticated offline GET/query/PATCH/refetch results retain beta and cloud roots despite factory v1 BaseAddress. Keep documented raw beta prefix and unmerged #3886 bound refetch-Headers failures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Refresh final normally merged audit and prove generated PATCH retains native inputs/output metadata, explicit service profile, and no implicit GetAsync. Preserve empty compatible selection and dormant shared directive semantics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota/cmdlet Release build and nonincremental refresh pass on final 6475 target. Fresh Global/USGov real authenticated probes each pass 11 requests: PATCH204 no output/one PATCH/no GET with GET403, PATCH200 actual typed result/one PATCH, caller-explicit GET, headers/query/safety and session lifecycle. Remove automatic readback; client/projects/locks remain byte-identical. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Full queued Kiota/cmdlet Release build and supplemental nonincremental refresh succeed on final6475 target with two exported cmdlets. Regenerate current root GET/PATCH including removal of automatic readback; client/projects/locks remain byte-identical. Preserve beta service-root context and original source directive audit. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Compliance Module will be removed for V3 |
Ramses Sanchez-Hernandez (ramsessanchez)
deleted the
ramsessanchez-compliance-v3-migration
branch
November 24, 2026 01:01
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.
N/A
Changes proposed in this pull request
The Compliance pilot referenced nested eDiscovery dataSource operations absent from both compatible specs. This reconciles the shared directive audit without inventing APIs, retains dormant suppression/structural naming semantics, and regenerates both profiles against the normally merged v3 framework. Current validation also proves the user-directed #3886 contract: PATCH returns only its own response and never performs a hidden GET.
src/Compliance/Compliance.md. Both shared directives have reviewed expected absence in v1.0 and beta. Keep active AutoRest directives, dormant exact PATCH/DELETE suppressions, and structural naming for the retired GET. No redundant renames or route groups are introduced.2023-02-01. None survives in its same-profile compatible spec. Parent-item operations are distinct neighbors, not numbered variants. No expired API is restored.Current target, history, and generated outputs
Normal target:
6475f3f5beb4908d39ea356db32bf1e0fd3273cb(#3886), integrated through normal merge6153c090224944a3bd112375aadbf54bd5500203. Current pushed PR head:0406c92ef294a3987a6524a1912b9641252fc76e.Prior publication
e88678e7eaand all original source/profile commits remain ancestors. New source/audit regression:7df094f5cc; separate combined full-generation commits: v1.0ae06280f51, beta0406c92ef2. No rebase, squash, amendment, cherry-pick, or force-push. Clients, projects, and locks were genuinely regenerated and are byte-identical; each profile's cmdlet delta removes automatic PATCH readback and reflects the current GET emitter. Normal manifests require Authentication 2.41.2 without dependency preloads; each bin carries only its three owned client/runtime/module DLLs. No bin/obj, binaries, packages, or session artifacts are committed.Current acceptance results
/betaon correct cloud hostActual targeted TRX: 168 total/executed/passed, 0 failed/not-executed (Compliance/configurator/naming/required-query/PATCH operation tests). Ordinary strict inventory: 2 Mapped, zero unresolved/invalid/unreviewed candidates. Both final full pipelines ran sequentially v1.0 then beta after final authored changes. No SkipKiota, GenerateOnly, NoCollisionData, or legacy fallback was used.
Four fresh compiled probes verify 44 total authenticated offline requests, four genuine declined confirmation prompts, zero live Graph/OAuth calls, exact
Get-MgComplianceGET andUpdate-MgCompliancePATCH/complianceexports, no retired/grouped routes, and normal single Auth/Kiota identities/load contexts. The actualGraphHttpClientFactorytoken pipeline retains its global/v1.0/BaseAddress while generated beta/USGov requests use the correct service root; it is not replaced by a bare marker client.Positive PATCH acceptance is new, not an old failure relabeled: PATCH204 sends exactly one PATCH, returns no object, and succeeds while sibling GET rejects 403. PATCH200 sends exactly one PATCH and returns the actual typed
Complianceresponse. Both forward headers and empty typed JSON without inventing expanded public body fields. A caller-explicit GET independently selects its query/headers/result or 403 error. No PassThru/ReadBack/Refetch switch or GET-only PATCH inputs are added. Root Compliance has no surviving required query operations. Existing GET select/expand/header binding, invalid binding before HTTP, WhatIf/declined Confirm zero HTTP, cache/root isolation, request-context/reconnect/disconnect, and metadata/3-DLL ownership checks pass.Runtime isolation correction and preserved historical evidence
The confirmation runspace imports normally before initial Connect/transport. The existing
Set-MgTestDataStorehelper is then reapplied after the final import. Every transport/lifecycle/logout checkpoint reflects the actual sharedGraphSession.DataStore.GetType().FullNameand requiresMicrosoft.Graph.Authentication.Test.Mocks.MockDataStore. Each proof records 26 actual checks, stages, fixture source/hash, and assembly/manifest hashes. No production/Auth changes, global settings, dependency preloads, or load-context shims were used.The new memory-guarded proof root is
post3886-6475-memory-final; old unguarded runtime artifacts remain untouched and are not claimed as newly guarded. The original successful full-build/TRX/source/generation artifacts inpost3886-6475-finalremain valid, with absolute references and hashes in the new canonicalhandoff.json. No source, FULL, or TRX rerun was performed for this probe-only correction. Earlier 844672 implicit-GET header failures remain historical: the user-superseded readback contract is no longer a current failure gate.Remaining baseline limits
Mgwhile the oracle usesMgBeta. No normalization or naming workaround claims a pass.Exact commands and retained results
Kiota
1.36.1+fd3bf87790149b87f40f7eae1a5feb9016625943, .NET10.0.403, PowerShell7.6.9. Verified adapted normal Authentication 2.41.2 all 64 file SHA256s and physical nupkg SHA2562FC09BFE6B70D313BC56DF8ADCCFB1976FB4E90A1898BF8A916B4B8B792898EB; no stock gallery/old 2.38 package.Current compatible-spec blobs: v1.0
31064dc0edea9597e66f0e9e30aaa271a8990eba, beta219ed1b31d134f57bcbde55e7e02361ed599fb29. Original-source blobs: v1.0c684bccc4da19c2469703cd42473ac1ea380b648, betad9ead892c982b360e557ed3e11613675de368717. Canonical$runtimeEvidence\handoff.jsonretains scalar counters, full Git scope, current head/history, absolute valid build/TRX/strict paths, memory-guarded HTTP/assembly captures, exact commands/exits, and SHA256 artifacts; older target/candidate reports remain separate.Other links
src/Compliance/wrapper/Compliance_directiveMigrationMap.json.tools/WrapperGenerator.Tests/ComplianceDirectiveMigrationTests.cs.