The platform notices a process is slow, proposes its own fix, proves the fix with a counterfactual replay of real history, and opens a config change PR for a human to approve. Autonomous process improvement — with a human always in the loop and an audit trail behind every step. The platform may propose and prove. Only a human may change anything.
Proposals that fail their gate or a guardrail are discarded before any human sees them — recorded for provenance, never surfaced. Nothing reaches a person unless it survived the validation gate and (for rule changes) a replay proof on real history.
| Mutation | Example | Evidence |
|---|---|---|
| Adjust a rule threshold | "Raise the auto-approve limit to $750" | Replay-proven — cohort counterfactual with cycle-time, auto-ratio and cost deltas |
| Add an auto-approve rule | "Auto-approve claims under $200 with passed KYC" | Replay-proven |
| Adjust an SLA duration | "Move the resolution goal from 4h to 8h" | Descriptive — observed duration percentiles |
| Swap a routing strategy | "Route approvals to the least-loaded agent" | Descriptive — step wait statistics |
| Reorder / parallelize steps | "Run document check and credit check in parallel" | Descriptive — a labelled sum-vs-max estimate; the structural gate allows moving steps only, never adding, removing or editing them |
replay.cohorts.run capability the manual HxReplay cohort endpoint requires, and honours the same one-cohort-at-a-time tenant cap (a busy tenant gets an honest insufficient evidence, never a queued second cohort).Open change PR re-validates the proposal against the current config (a stale insight is refused), then stages it through HxBranch: a new rule is created disabled behind a branch whose merge enables it; every other change becomes a branch on the live artifact carrying the patched config. The replay evidence, the AI's rationale, and a policy alternative (the non-automation option) land in the PR description. A reviewer — never the proposer, never the platform — approves, and approval is the same audited merge every other config change uses. There is no auto-merge tier: it was deliberately struck from the design.
Open Studio > Process Mining, pick a case type, and switch to the insights tab.
Click Scan for optimizations. The loop runs: mining signals > gated proposals > replay/descriptive evidence. Only survivors appear as cards.
Read a card: the mutation, the rationale, the evidence badge, and the signal that triggered it. Dismiss what you disagree with.
Click Open change PR on an insight you like — review and approve it in HxBranch like any other change.
(Optional) Configure per-case-type guardrails and enable the hourly scheduled scan via the config API — scheduled scans produce insights only; they can never stage or apply anything. Enabling it is the standing authorization for unattended scanning: only an admin can flip it, and the tenant cohort cap still applies.
# Run the loop for one case type (admin; 429 inside the frequency window) curl -s -X POST http://localhost:8200/api/v1/hxevolve/scan \ -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ -d '{"case_type_id":"...","days":30}' # List surfaced insights (add include_discarded=true for the provenance trail) curl -s "http://localhost:8200/api/v1/hxevolve/insights?case_type_id=..." \ -H "Authorization: Bearer $TOKEN" # Open the human-approved change PR for an insight curl -s -X POST http://localhost:8200/api/v1/hxevolve/insights/{id}/stage \ -H "Authorization: Bearer $TOKEN" # Per-case-type guardrails + scheduled scanning curl -s -X PUT http://localhost:8200/api/v1/hxevolve/config/{case_type_id} \ -H "Authorization: Bearer $TOKEN" \ -d '{"min_improvement":0.15,"max_auto_ratio_rise":0.1,"min_coverage":0.8, "min_determinate":100,"scan_frequency_hours":24,"scan_enabled":true}'