# CLI 0.0.4-microsoft-preview.32

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

## Workflow Mermaid input compatibility

- Keep `input.mermaid` as the canonical top-level sibling of
  `input.workflowDefinition`, and place it before the large workflow object in
  the advertised tool schema. The tool description and BizTalk planning skill
  now state that location explicitly.
- Accept the exact compatibility alias `input.workflowDefinition.mermaid` only
  when top-level `input.mermaid` is absent. The host removes the alias from the
  Logic Apps runtime wrapper before workflow validation and storage, while the
  engine audit retains the raw submitted input and records which Mermaid
  location was used.
- Continue to reject a missing, non-string, invalid, or conflicting diagram
  without writing a workflow file. Lifting the alias does not correct or bypass
  Logic Apps workflow validation, orchestration coverage, reference-evidence
  requirements, connector checks, or Mermaid grammar validation.

The preview.31 qualification run completed Microsoft Discovery and advanced
through target architecture and reference lookup. Planning calls 25 through 27
then supplied the same valid 915-character diagram under
`workflowDefinition.mermaid` instead of at top-level `mermaid`. Schema
validation rejected all three before tool execution. No workflow file was
written. Preview.32 recognizes only that observed structural alias so the
existing strict workflow validator can report the remaining workflow-body
errors instead of terminating in a field-placement loop.

## Earlier reliability fixes retained

This preview retains preview.31's bounded, audited recovery for an Ollama 2xx
stream that ends without `done: true`, and preview.30's deterministic Mermaid
repair for quoted or space-containing endpoints on labelled solid, dotted, and
thick links. Partial model output still cannot reach tool execution, and
ambiguous Mermaid labels are never resolved arbitrarily.

## Verification and limits

- 149 Microsoft migration-core tests, 254 CLI tests, and 30
  release/installer/documentation tests pass. Repository lint, TypeScript
  compilation, all production builds, and 24 VS Code compatibility tests pass;
  one platform-specific extension test remains pending on Windows.
- Coverage includes nested-alias canonicalization, canonical storage, missing
  diagrams, non-string aliases, invalid Mermaid, conflicting duplicate values,
  and preservation of the no-write boundary for rejected submissions.
- The failed preview.31 reports and stage audits are preserved under
  `failure-evidence/2026-09-21T18-01-41-preview31-workflow-mermaid-invalid` in
  the test workspace. They establish a model tool-shape error, not absent
  source evidence or a successfully stored workflow.
- A complete fresh FINACCONT2024Backup-BT migration with preview.32 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.32/install-cli.ps1' -OutFile install-cli-preview32.ps1
# Review the downloaded script before running it.
& .\install-cli-preview32.ps1 -SkipDependencies
li.cmd --version
```

Expected version: `0.0.4-microsoft-preview.32`. 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.
