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.
| State | Meaning |
|---|---|
Proposed | Waiting for approval, or held by a ReadOnly or Plan partition |
Approved | Approved; the kernel schedules it next |
Scheduled | A sleeping process waits on its wake set |
Running | Its process runs |
Done, Rejected, Expired | Finished |
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::agendareturns it; cloning shares it. - Agenda
Answer - A person’s answer to a question item (
AgendaOrigin::is_question), recorded on the item when it closes (spec 3.2 §7.10). - Agenda
Filter - Which agenda items
AgendaStore::listreturns (spec 3.2 §7.5, §8.1adk-rust agenda list). An empty field matches everything. - Agenda
Handle - 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_followuptool exists before the kernel that hosts it. - Agenda
Item - 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
PlanStepin JSON, and their digest. The kernel stores them without reading them (§6 D-1). - Proactivity
Policy - The proactivity limits of a partition (spec 3.2 §7.5, §9.1 runaway proactivity).
Enums§
- Agenda
Origin - Who proposed an
AgendaItem(spec 3.2 §7.5). - Agenda
State - Where an
AgendaItemstands (spec 3.2 §7.5). - Agenda
State Kind - The kind of an
AgendaState, without its payload: what anAgendaFilterselects and anAgendaStore::transitioncompares (spec 3.2 §7.5). - Proactive
Approval - How agenda proposals are approved (spec 3.2 §7.5).
- Proposal
Outcome - What
Agenda::proposedid 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
ApprovalRequestwith thistool_name, the item asargs_redactedandallowed_actions = [Approve, Edit, Reject].
Traits§
- Agenda
Store - The kernel’s store of agenda items (spec 3.2 §7.5, §13 Q8), on every backend the
ProcessStorehas. - Observation
Audience - 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 withKernelBuilder::observation_audience.
Functions§
- item_
session - The session an item’s process runs in:
agenda-<item id>, a session of its own.