# CLI 0.0.4-microsoft-preview.36

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

## Audited Ollama connection-reset recovery

- Classifies an Ollama socket reset before response headers or during an
  accepted response as an incomplete model stream. Any captured response is
  retained in the engine audit as rejected output and is never parsed or
  executed as a migration tool call.
- Reuses the existing bounded Microsoft tool-loop recovery: one fresh model
  round may regenerate the current action, consumes the normal stage call
  budget, and cannot continue the discarded partial JSON. A second consecutive
  incomplete stream still fails closed.
- Preserves the original behavior and structured diagnostics for intentional
  absolute/inactivity deadlines, malformed stream records, response-size
  limits, non-success HTTP responses, and model output limits. These failures
  are not relabeled as transient connection resets.
- Retains preview.35's ranged flow-group submission and targeted correction,
  including exact global bounds and authoritative orchestration and binding
  membership validation.

The preview.35 qualification run proved the ranged grouping transport worked:
the initial ranged submission and two targeted corrections reached normal tool
execution. During round 5, Ollama then reset the connection after 774 response
characters while generating another correction. The audit retained the partial
JSON with `toolExecuted: false`, but the raw `ECONNRESET` lacked the structured
incomplete-stream issue needed to invoke the already bounded recovery.
Preview.36 closes that transport-classification gap; it does not accept the
partial response or replay any tool side effect.

## Verification and limits

- 164 Microsoft migration-core tests, 257 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.
- Regression coverage destroys a local Ollama socket both before response
  headers and after valid partial NDJSON, verifies the structured
  `MODEL_STREAM_INCOMPLETE` result and rejected partial response, and confirms
  the original timeout cases remain `MODEL_TIMEOUT` with truthful usage
  accounting.
- The failed preview.35 evidence remains under
  `failure-evidence/2026-09-21T23-04-32-preview35-ollama-econnreset` in the test
  workspace. It establishes an external stream interruption after an
  unexecuted partial model response, not missing BizTalk source or a completed
  discovery stage.
- A complete fresh FINACCONT2024Backup-BT migration with preview.36 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.36/install-cli.ps1' -OutFile install-cli-preview36.ps1
# Review the downloaded script before running it.
& .\install-cli-preview36.ps1 -SkipDependencies
li.cmd --version
```

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