# CLI 0.0.4-microsoft-preview.21

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

## Cross-stage reliability fixes

- Compact grouping submissions use explicit inventory indexes, translated exactly
  to selected artifact IDs before the original Microsoft grouping and coverage
  checks. Empty or malformed groups no longer enter membership-only repair.
- All model phases support bounded write-input chunks. Only a complete JSON input
  reaches the original authorized tool; schema, scope and finalization checks remain.
  One output-limit correction per phase is allowed within the existing round limit.
  Truncated output is audited, never executed or artificially completed.
- Persistent phase guidance, pagination validation and structured failure reports
  identify outstanding work. Unchanged reads/drafts cannot evade loop detection.
- Test, package and cost records are tied to current input/configuration hashes.
  Test records include generated runtime binaries. Cost resume also checks the
  report hash and a 24-hour age limit. Legacy unfingerprinted records require reruns.
- Package verification rejects missing, changed, linked and unlisted content.
  Replacement builds separately and retains the previous package for recovery.
- Deployment saves intent before queuing and its run ID before polling.
  `deploy --resume` reattaches without submitting another run; `--new-run` requires
  an explicitly completed prior run. Unknown queue outcomes require reconciliation.

Microsoft stage logic and mandatory verification remain in place. This release
does not select a smaller model, raise the production tool-call limit, change
customer YAML, reset license counters, or perform an Azure deployment.

## PowerShell update

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

Expected version: `0.0.4-microsoft-preview.21`. Omit `-SkipDependencies` if you
want the installer to install missing prerequisites. Preserve earlier output
and select a fresh generated workspace: the engine fingerprint changed, so do
not force an old discovery/conversion checkpoint to resume. Keep your model and
supported context settings; installation does not reset entitlements.

## Verification and limits

- 107 Microsoft-core, 240 CLI and 24 release/installer tests passed (371 total).
  Compilation, CLI lint and production build passed.
- A fresh live FINACCONT-BT grouping run passed in three model/tool calls, with
  no seeded responses, covering 98 selected files and five orchestrations.
  It used the unchanged local `qwen3-coder:30b`, 64K context and 8192 output tokens.
  The isolated qualification allowed a 600-second response deadline. Customer
  source, generated output and original audit files remained unchanged.
- An earlier seeded recovery test reached a compact submission but stopped at
  its ten-call test cap with two explicitly missing memberships; it was not
  reported as successful. Model responses can still fail validation.
- Cross-stage fixture tests exercise parsing, discovery, planning, conversion,
  finalization, output-limit handling, freshness and deployment failure paths.
  Deployment queuing/polling tests use mocks, not live Azure resources.

**Fresh grouping success is not a complete FINACCONT-BT migration qualification.**
Full discovery, planning, conversion, local tests and deployed business behavior
remain to be validated against the actual solution. Static coverage and package
integrity do not establish runtime equivalence. Clean-machine dependency setup
on every supported OS/architecture also remains a separate qualification task.
