# CLI 0.0.4-microsoft-preview.30

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

## Mermaid labelled-edge recovery

- Normalize quoted or space-containing node endpoints used with Mermaid's
  labelled solid, dotted, and thick link forms before pinned grammar
  validation. Edge labels remain labels and are never converted into nodes.
- Resolve an endpoint label to its unique declared node ID when one exists. For
  example, an edge from `"ParkedAccDocWorkflow"` now reconnects to the declared
  `Orch1["ParkedAccDocWorkflow"]` node instead of creating a duplicate logical
  orchestration.
- Retain deterministic hashed-node fallback for undeclared labels, but never
  choose arbitrarily between duplicate declarations. Quoted subgraph titles and
  commented-out declarations are excluded from endpoint resolution.
- Keep normalization idempotent and fail closed through the pinned Mermaid
  parser. Malformed labelled links remain rejected and cannot replace a stored
  architecture.

The FINACCONT2024Backup-BT discovery audit submitted the same rejected diagram
in calls 11 through 14. Its ten outbound routes used quoted orchestration labels
as endpoints before `-- "Orchestration Port Binding ..." -->` links. The exact
captured payload now validates with those routes connected to `Orch1` through
`Orch5`, without creating duplicate nodes. The existing model-loop guard and
rejection audit remain unchanged and continue to stop genuinely unchanged,
unrepairable submissions.

## Verification and limits

- 146 Microsoft migration-core tests, 252 CLI tests, and 30
  release/installer/documentation tests pass. Repository lint, TypeScript
  compilation, all workspace tests, and production builds pass; the VS Code
  compatibility suite has 24 passing tests and one platform-specific pending
  test.
- The exact archived failing Mermaid payload passes the pinned grammar after
  deterministic normalization, retains all five Presto and five SAP routing
  links, and does not introduce duplicate orchestration nodes.
- This release does not claim a completed live FINACCONT2024Backup-BT
  migration, deployed Logic Apps runtime test, or business equivalence. Those
  require the fresh post-publication qualification run and deployment-specific
  validation.

## PowerShell update

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

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