Expand description
The consolidation tick (spec 3.2 §7.5, §13 Q1, Q12).
The tick is a Maintenance process on the distiller’s model that distils the sessions
the spec 3.1 distiller never reached and consolidates a partition’s Assumed facts in
two passes. ConsolidationTick holds its admission gates, its spend caps and the
thresholds of both passes; ProactivityPolicy::consolidation
turns it on for a partition. It is on in the CLI’s Ask and Auto partitions and off in
the library and on servers, so the policy’s default is None.
| Part | Role |
|---|---|
Consolidator | What the harness gives the kernel (spec 3.2 §6 D-1, §10 HK2): a partition’s new material since the last tick, and one tick’s work on its memory |
admit_tick | The admission gate: new material and min_interval and debounce idle, outside quiet hours, under the daily proactive budget and budget_share of it; a bare schedule only when set |
kernel.consolidation (CONSOLIDATION_TARGET) | The workflow a tick runs as: a ProcessKind::Maintenance durable run on the maintenance queue with no tools (K-I1); its spend counts toward the partition’s daily proactive budget, and its proposals go to the agenda as AgendaOrigin::Consolidation items, which a person approves in every mode (K-I23) |
The kernel evaluates the gate on its scheduler tick, at most once a minute of the kernel’s
clock per partition, when KernelBuilder::consolidator
registered a consolidator for the partition and the policy turns the tick on.
Structs§
- Consolidation
Tick - The consolidation tick of one partition (spec 3.2 §7.5, §13 Q1, Q12).
- Tick
Inputs - What the tick gate reads (spec 3.2 §7.5): a partition’s
TickMaterialwith the kernel’s view of it. - Tick
Material - What a partition holds for a consolidation tick, as its
Consolidatorreports it (spec 3.2 §7.5). - Tick
Outcome - What one tick did, in counts, and what it proposes (spec 3.2 §7.5).
- Tick
Proposal - A follow-up a tick proposes; the kernel files it as an
AgendaOrigin::Consolidationitem, which a person approves in every mode (K-I23). - TickRun
- One tick a
Consolidatorruns (spec 3.2 §7.5). - Tick
Spend - What the consolidation ticks of a partition spent today (spec 3.2 §7.5): what
budget_shareis measured against.
Enums§
- Tick
Admission - The tick gate’s decision (spec 3.2 §7.5).
Constants§
- CONSOLIDATION_
LABEL - The label a tick’s process carries, with the value
consolidation(spec 3.2 §7.5). - CONSOLIDATION_
TARGET - The workflow a consolidation tick runs as (spec 3.2 §7.5): a
Maintenancedurable run on themaintenancequeue.
Traits§
- Consolidator
- The memory a consolidation tick works on (spec 3.2 §7.5, §6 D-1): the kernel reads no
harness type, so the harness implements this for a partition
(
adk_harness::Harness::consolidator) and registers it withKernelBuilder::consolidator.
Functions§
- admit_
tick - Whether
tickadmits a consolidation tick oninputs(spec 3.2 §7.5, §13 Q1), and with what budget.