Skip to main content

Module consolidation

Module consolidation 

Source
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.

PartRole
ConsolidatorWhat 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_tickThe 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§

ConsolidationTick
The consolidation tick of one partition (spec 3.2 §7.5, §13 Q1, Q12).
TickInputs
What the tick gate reads (spec 3.2 §7.5): a partition’s TickMaterial with the kernel’s view of it.
TickMaterial
What a partition holds for a consolidation tick, as its Consolidator reports it (spec 3.2 §7.5).
TickOutcome
What one tick did, in counts, and what it proposes (spec 3.2 §7.5).
TickProposal
A follow-up a tick proposes; the kernel files it as an AgendaOrigin::Consolidation item, which a person approves in every mode (K-I23).
TickRun
One tick a Consolidator runs (spec 3.2 §7.5).
TickSpend
What the consolidation ticks of a partition spent today (spec 3.2 §7.5): what budget_share is measured against.

Enums§

TickAdmission
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 Maintenance durable run on the maintenance queue.

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 with KernelBuilder::consolidator.

Functions§

admit_tick
Whether tick admits a consolidation tick on inputs (spec 3.2 §7.5, §13 Q1), and with what budget.