memory-consolidate::on-config-change
Internal: hot-reload memory-consolidate from the authoritative configuration when it changes.
- idstring
- okbooleanrequired
Scheduled hygiene for the memory worker: deterministic dedup of near-duplicate memories and an opt-in verify tier that checks notes against their source transcript; every write goes through memory's supersede and correct seams, pinned untouchable. Install, stop, or remove it without touching stored memory.
iii call compose::add worker=memory-consolidate@0.2.6Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Internal: hot-reload memory-consolidate from the authoritative configuration when it changes.
Internal: schedule heartbeat (observer of cron::on-tick + boot catch-up backstop). Runs a pass only when interval_hours have elapsed since the last one.
A pass actually ran (false = not due yet or disabled).
Internal: target of the memory-consolidate REST routes, the http::on-request observers with args { method: POST, path: /memory-consolidate/run | /memory-consolidate/status }. Receives the HttpRequest, runs the function the route's path names with the request's JSON body, and returns the HttpResponse { status_code, body }: 200 with the function's result, or 400/404/500 with { error }.
The request body parsed as JSON; `null` when it is empty or not JSON.
The matched route's path: `/memory-consolidate/run` or `/memory-consolidate/status`.
Run one consolidation pass now (all configured banks, or one bank). Deterministic near-duplicate dedup, plus the optional LLM tiers when enabled (reorder judge; semantic merge/supersede of new memories, each with a reason; verify of notes against their source transcript, replacing a contradicted one), applied strictly through memory::supersede and memory::correct; pinned memories are untouchable. dry_run plans without writing.
Consolidate only this bank (must be in the configured allowlist, when one is set).
Override the configured dry_run for this call.
Work left behind by the per-run cap; the next pass picks it up.
Notes the verify tier replaced through `memory::correct` (each one also spends the per-run supersede cap; not counted in `superseded`).
Real failures (reads, writes). Any error keeps the pass due.
Texts of the losers, aligned with `loser_ids` (the judge tier and human review need the words, not just ids).
True = surfaced for review only (token-set match: same words, different order — potentially different meaning). Never written automatically.
Losers left alone because they are pinned (pinned is untouchable).
Model call attempts by the judge, semantic and verify tiers, failed ones included.
The router's cost in USD, summed over the calls the router priced; absent when none.
Prompt tokens the router reported, cached ones included.
Reorder groups merged after the LLM judge confirmed equivalence.
Output tokens the router reported.
Soft skips (an optional tier unavailable, a sibling too old) — telemetry only: they never block the checkpoint, so an absent router cannot re-run the whole pass on every heartbeat.
Standing-instruction lines the judge promoted into the bank's `learned` rule.
Winner reinforcements applied (one per absorbed duplicate).
Live memories scanned.
Applied semantic-tier decisions, each with the judge's reason (the tier never runs on dry runs).
Merge survivor / supersede replacement.
Merge duplicate / supersede outdated record.
New memories the judge could not decide even alone while another reply of the pass parsed (a poison input); skipped past the cursor.
Judge actions dropped by validation (unknown alias, pinned target, wrong direction, a lost number, ...).
Supersedes actually applied (0 on dry runs).
Notes the verify tier found supported by their source transcript.
Verify-tier judge replies refused: a correction that failed a guard (quote, numbers, length), or a reply cut short or never parsed.
Notes the verify tier passed without a verdict or a write (no span, reinforced, session gone, record changed, ...); a note lists why.
The pass completed cleanly AND its last-run checkpoint persisted. False = the schedule will retry the pass next check.
Total supersedes applied across banks this pass.
Check the consolidation schedule and last pass: enabled, interval, last run, due, and the reports of the last 30 passes (newest first), each with per-bank results and LLM calls, tokens and cost; only the newest lists its groups and semantic actions.
A scheduled pass is overdue right now.
Milliseconds since epoch of the last completed pass; 0 = never.
The last 30 passes, newest first: `{ ms, dry_run, banks }`. Older passes' banks leave out `groups` and `semantic`.
Find workers, kits and executables, or jump to a page.