Skip to main content

Module agenda

Module agenda 

Source
Expand description

The agenda: proactivity under control (spec 3.2 §7.5).

The agenda is the kernel-scope todo list: AgendaItems that outlive a session and may become processes. Proposing is free; running is governed. An item starts Proposed and runs only once it is Approved — by a person, or by an Auto partition’s policy (K-I10) — and then only outside quiet hours and within the partition’s daily budget (K-I11). An item of AgendaOrigin::Consolidation needs a person’s approval in every mode, Auto included (K-I23).

An item of AgendaOrigin::Observation is a question, answered and never scheduled (spec 3.2 §7.10): it needs a person in every mode, becomes no process, and closes with the person’s AgendaAnswer. Confirmed, it is Done and the partition’s ObservationAudience records its statement as a Known fact; rejected or withdrawn, it is Rejected and nothing is recorded.

StateMeaning
ProposedWaiting for approval, or held by a ReadOnly or Plan partition
ApprovedApproved; the kernel schedules it next
ScheduledA sleeping process waits on its wake set
RunningIts process runs
Done, Rejected, ExpiredFinished

Items live in an AgendaStore on every backend the ProcessStore has: in-memory, SQLite, PostgreSQL and Redis.

Structs§

Agenda
The agenda of a kernel (spec 3.2 §7.5): proposals, approvals and the processes items become. Kernel::agenda returns it; cloning shares it.
AgendaAnswer
A person’s answer to a question item (AgendaOrigin::is_question), recorded on the item when it closes (spec 3.2 §7.10).
AgendaFilter
Which agenda items AgendaStore::list returns (spec 3.2 §7.5, §8.1 adk-rust agenda list). An empty field matches everything.
AgendaHandle
A handle on a kernel’s agenda that does not keep the kernel alive, bound when the kernel is built (spec 3.2 §7.5, §10 HK1): the harness’s propose_followup tool exists before the kernel that hosts it.
AgendaItem
One item of the agenda (spec 3.2 §7.5).
PlanRef
The plan an agent proposed with its follow-up (spec 3.2 §7.5, spec 3.1 §7.11): the steps as the harness writes them, each a spec 3.1 PlanStep in JSON, and their digest. The kernel stores them without reading them (§6 D-1).
ProactivityPolicy
The proactivity limits of a partition (spec 3.2 §7.5, §9.1 runaway proactivity).

Enums§

AgendaOrigin
Who proposed an AgendaItem (spec 3.2 §7.5).
AgendaState
Where an AgendaItem stands (spec 3.2 §7.5).
AgendaStateKind
The kind of an AgendaState, without its payload: what an AgendaFilter selects and an AgendaStore::transition compares (spec 3.2 §7.5).
ProactiveApproval
How agenda proposals are approved (spec 3.2 §7.5).
ProposalOutcome
What Agenda::propose did with a proposal (spec 3.2 §7.5).

Constants§

AGENDA_TOOL_NAME
The approval-inbox tool name of agenda proposals (spec 3.2 §7.5): an Ask partition’s proposal waits in the inbox as an ApprovalRequest with this tool_name, the item as args_redacted and allowed_actions = [Approve, Edit, Reject].

Traits§

AgendaStore
The kernel’s store of agenda items (spec 3.2 §7.5, §13 Q8), on every backend the ProcessStore has.
ObservationAudience
Whom a partition’s observations are put to, and where a confirmed one is remembered (spec 3.2 §7.10, spec 3.1 §7.15): the kernel reads no harness type, so the harness implements this over its long-term memory (adk_harness::Harness::observation_audience) and registers it with KernelBuilder::observation_audience.

Functions§

item_session
The session an item’s process runs in: agenda-<item id>, a session of its own.