# human-in-the-loop

## 2.4.0

### Patch Changes

- Updated dependencies [4d58f5f]
- Updated dependencies [d30c2e8]
  - ai-functions@2.4.0
  - business-as-code@2.4.0
  - digital-tasks@2.4.0
  - digital-workers@2.4.0

## 2.3.0

### Patch Changes

- Updated dependencies [9e2779a]
  - ai-functions@2.3.0
  - business-as-code@2.3.0
  - digital-tasks@2.3.0
  - digital-workers@2.3.0

## 2.2.2

fix: expose lifecycle subpath exports (request-lifecycle, escalation-engine, lifecycle-store, lifecycle-channel-adapter) so consumers can import them. The main entry still requires `org.ai` and remains unusable for consumers that don't depend on org.ai — use the lifecycle subpaths.

## 2.2.1

- fix: pin `ai-functions`, `business-as-code`, `digital-tasks`, `digital-workers` to `^2.1.3` — 2.2.0 referenced in-tree versions (2.2.0/2.1.4) that were not yet published to npm, causing `npm install` to exit non-zero.
- fix: move `org.ai` to optional `peerDependencies` — `org.ai@0.0.1` was published with `workspace:^` deps that npm cannot resolve (`EUNSUPPORTEDPROTOCOL`). Consumers using the lifecycle sub-modules (`request-lifecycle`, `lifecycle-store`, `lifecycle-store-memory`, `lifecycle-channel-adapter`) do not need `org.ai` at runtime; consumers using the legacy API surface should provide `org.ai` themselves.

## 2.2.0

### Minor Changes

- **request-lifecycle** — pure state machine for Human Function request lifecycle:
  transitions (`claim`, `startProgress`, `release`, `resolve`, `timeout`, `escalate`, `cancel`),
  queries (`forAssignee`, `sortByPriorityThenSLA`, `timeToDeadline`, `isBreached`),
  and migration helpers (`LEGACY_KIND_MAP`, `legacyKindToRequestKind`).

- **escalation-engine** — pure SLA evaluation and escalation routing:
  `evaluateEscalation`, `batchEvaluate`, `buildEscalatedItem`, `buildVantageLadder`,
  and canonical Vantage ladder fixture policies (`FIXTURE_IC`, `FIXTURE_TEAM`,
  `FIXTURE_BUSINESS`, `FIXTURE_STUDIO`, `FIXTURE_POLICIES`, `getFixturePolicy`).

- **LifecycleStore** (port + in-memory impl) — lifecycle-native persistence layer:
  `LifecycleStore` interface (`LifecycleStoreFilters`, `LifecycleItemPatch`, `LifecycleResponse`)
  and `LifecycleStoreMemory` in-memory implementation.

- **LifecycleChannelAdapter** (port + stubs) — deliver + inbound-response seam:
  `LifecycleChannelAdapter` interface, `LifecycleAdapterRegistry`, `adapterRegistry`,
  and no-op stub adapters `emailAdapter` and `slackAdapter` (replace with real impls).

- **Deprecated legacy aliases retained for back-compat** — `LegacyRequestKind`,
  `LEGACY_KIND_MAP`, `legacyKindToRequestKind` exported from `request-lifecycle` for
  consumers upgrading from v2.1.4 verbose types.

## 2.1.3

### Patch Changes

- Updated dependencies
  - ai-functions@2.1.3
  - digital-workers@2.1.3

## 2.1.1

### Patch Changes

- Updated dependencies [6beb531]
  - ai-functions@2.1.1
  - digital-workers@2.1.1

## 2.0.3

### Patch Changes

- Updated dependencies
  - rpc.do@0.2.0
  - ai-functions@2.0.3
  - digital-workers@2.0.3

## 2.0.2

### Patch Changes

- Updated dependencies
  - ai-functions@2.0.2
  - digital-workers@2.0.2

## 2.0.1

### Patch Changes

- Updated dependencies
  - ai-functions@2.0.1
  - digital-workers@2.0.1
