# KIMU 5.2.0 Increment 40 build scope

## Objective

Advance the usable Increment 39 chat core with the next locked tranche:

1. Encrypt server-side artifact bodies and derived private metadata.
2. Migrate pre-existing plaintext files without silent data loss.
3. Add an IndexedDB-first queue for supported mutations.
4. Replay queued operations automatically and idempotently.
5. Detect stale writes with entity versions and return explicit 409 conflicts.
6. Preserve switchable K2.6 and K2.7 Code model behaviour.

## Included

- AES-256-GCM file envelope and metadata encryption.
- Key generation, validation, version metadata and readiness evidence.
- Serialised legacy migration.
- Versioned conversations, model preferences and owner settings.
- Sync operation and change-journal tables.
- Sync status, pull and snapshot APIs.
- Offline chat creation/send, conversation patch/delete, model preference and settings queueing.
- Reconnect replay, client operation IDs, pending/blocked UI and conflict controls.

## Excluded from this increment

- Application-level IndexedDB encryption.
- Offline binary/file upload queue.
- Full offline authentication vault.
- Automatic semantic conflict merging.
- Key rotation workflow and re-encryption UI.
- Remaining placeholder modules defined by the controlling Increment 38 specification.
