# CLI 0.0.4-microsoft-preview.40

Microsoft migration engine preview. Stable `latest` remains 0.0.3.

## Atomic grouped/ungrouped reconciliation

- Extends the revision-bound `applyAuthoritativeBindingMemberships` correction
  to remove contradictory ungrouped markers only for artifacts already owned by
  retained groups after assignments and helper-group merges.
- Preserves genuinely ungrouped artifacts and never invents or changes a group
  destination from an ungrouped marker.
- Counts overlap reconciliation as real progress, rejects a true no-op without
  advancing the correction revision, and reruns the unchanged strict Microsoft
  grouping validator before storage.
- Updates the packaged BizTalk grouping guidance so the bounded operation and
  its safety limits are explicit to the model.
- Retains preview.39's complete parser-proven shared-binding repair, atomic
  discovery persistence, parser-backed Mermaid validation, and bounded Ollama
  stream recovery.

The fresh preview.39 qualification run completed precheck and parsed all 180
selected BizTalk artifacts. Its ranged grouping proposal placed every artifact
in a flow and also marked indexes 0 through 179 ungrouped. The first correction
merged the helper-only flow and repaired the authoritative binding, but 179
stale ungrouped markers remained. Calls 4 through 10 repeatedly touched only
the already-correct binding, so the host stopped the loop on the first remaining
conflict, `BizTalk Financial Accounting.sln`, without claiming success.
Preview.40 reconciles that exact contradiction within the existing atomic
correction instead of increasing model-call limits or weakening source-evidence
validation.

## Verification and limits

- 193 Microsoft migration-core tests, 257 CLI tests, and 30
  release/installer/documentation tests pass. The VS Code extension has 24
  passing tests and one expected pending POSIX-permission test on Windows;
  repository lint, TypeScript compilation, and production builds pass.
- Regression coverage includes the exact live merge-plus-binding correction,
  preservation of a truly ungrouped artifact, flag-only overlap repair, and
  true no-op rejection.
- The failed preview.39 evidence remains under
  `failure-evidence/2026-09-22T09-53-11-preview39-grouping-ungrouped-loop` in
  the test workspace. It establishes a model/tool convergence defect, not a
  missing binding, missing dependency, or successful discovery.
- A complete fresh FINACCONT2024Backup-BT migration with preview.40 remains a
  post-publication qualification step. This release does not claim an Azure
  deployment, deployed Logic Apps runtime test, or business equivalence.

## PowerShell update

```powershell
Invoke-WebRequest 'https://tools.lambogenius.com/lambogenius-integration-migration/0.0.4-microsoft-preview.40/install-cli.ps1' -OutFile install-cli-preview40.ps1
# Review the downloaded script before running it.
& .\install-cli-preview40.ps1 -SkipDependencies
li.cmd --version
```

Expected version: `0.0.4-microsoft-preview.40`. This preview is not promoted to
the stable `latest` alias. Preserve existing reports and generated output before
upgrading. Use a fresh generated workspace because the Microsoft engine
fingerprint changed; do not edit fingerprint records to force checkpoint reuse.
Installation does not reset license counters.
