Expand description
The kernel-owned stores and their backends (spec 3.2 §7.1, §7.3, §13 Q8).
Phase 1 has one kernel-owned store, the ProcessStore side table, with the kernel’s
daily spend totals per process (the phase-1 source of ProcessView::spend_today and
spend_7d). It runs on every
backend that holds the run, schedule and governance stores, with one conformance suite
(process_store_conformance_tests!, feature conformance):
| Backend | Type | Feature | Opened from |
|---|---|---|---|
| In-memory | InMemoryProcessStore | — | — |
| SQLite | SqliteProcessStore | sqlite (default) | the pool of harness.db, with its own migration table |
| PostgreSQL | PostgresProcessStore | postgres | the URL of adk-rust serve --store |
| Redis | RedisProcessStore | redis | the URL of adk-rust serve --store |
Phase 2 adds the AgendaStore on the same four backends
(InMemoryAgendaStore, SqliteAgendaStore, PostgresAgendaStore, RedisAgendaStore,
suite agenda_store_conformance_tests!).
The driver store (drivers::DriverStore, feature drivers) runs on
the same four backends: InMemoryDriverStore, SqliteDriverStore,
PostgresDriverStore and RedisDriverStore (spec 3.2 §7.7).
The ledger store (proc::LedgerStore, feature proc) runs on the same four backends:
InMemoryLedgerStore, SqliteLedgerStore, PostgresLedgerStore and RedisLedgerStore
(spec 3.2 §7.10, suite ledger_store_conformance_tests!).
The PartitionStore — the partition table and the crossing
ledger (§7.8) — runs on in-memory, SQLite, PostgreSQL and Redis
(InMemoryPartitionStore, SqlitePartitionStore, PostgresPartitionStore,
RedisPartitionStore, suite partition_store_conformance_tests!).
Phase 4 adds these stores on MongoDB, Firestore and Neo4j (§13 Q8), each checked by its conformance suite against a live server in CI:
| Store | MongoDB (mongodb) | Firestore (firestore) | Neo4j (neo4j) |
|---|---|---|---|
ProcessStore | MongoProcessStore | FirestoreProcessStore | Neo4jProcessStore |
AgendaStore | MongoAgendaStore | FirestoreAgendaStore | Neo4jAgendaStore |
drivers::DriverStore (with drivers) | MongoDriverStore | FirestoreDriverStore | Neo4jDriverStore |
proc::LedgerStore (with proc) | MongoLedgerStore | FirestoreLedgerStore | Neo4jLedgerStore |
PartitionStore | MongoPartitionStore | FirestorePartitionStore | Neo4jPartitionStore |
CronWatermarkStore | MongoCronWatermarkStore | FirestoreCronWatermarkStore | Neo4jCronWatermarkStore |
The CronWatermarkStore — where each cron wake source left
off (§7.4) — runs on in-memory, SQLite, PostgreSQL and Redis
(InMemoryCronWatermarkStore, SqliteCronWatermarkStore, PostgresCronWatermarkStore,
RedisCronWatermarkStore, suite cron_watermark_store_conformance_tests!), and on
MongoDB, Firestore and Neo4j.
The AgentStore — the agents a person adds (spec 3.3 §5.7,
§10 K7) — runs on every backend: InMemoryAgentStore, SqliteAgentStore,
PostgresAgentStore, RedisAgentStore, MongoAgentStore, FirestoreAgentStore and
Neo4jAgentStore, suite agent_store_conformance_tests!.
There is no file backend and no Vertex AI backend (§13 Q8): no durable store on main is file-backed, and
Vertex AI holds sessions only.
Structs§
- Firestore
Agenda Store - An
AgendaStorein Firestore, shared by every replica (spec 3.2 §7.1, §7.5, §13 Q8, featurefirestore). - Firestore
Agent Store - An
AgentStorein Firestore, shared by every replica (spec 3.3 §5.7, §10 K7, featurefirestore). - Firestore
Cron Watermark Store - A
CronWatermarkStorein Firestore, shared by every replica (spec 3.2 §7.4, §13 Q8, featurefirestore). - Firestore
Driver Store - A
DriverStorein Firestore, shared by every replica (spec 3.2 §7.7, §13 Q8; featuresdrivers,firestore). - Firestore
Ledger Store - A
LedgerStorein Firestore, shared by every replica (spec 3.2 §7.1, §7.10, §13 Q8, featuresprocandfirestore). - Firestore
Partition Store - A
PartitionStorein Firestore, shared by every replica (spec 3.2 §7.1, §7.8, §13 Q8, featurefirestore). - Firestore
Process Store - A
ProcessStorein Firestore, shared by every replica (spec 3.2 §7.1, §13 Q8, featurefirestore). - InMemory
Agenda Store - An
AgendaStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.5). Its items end with the process. - InMemory
Agent Store - An
AgentStorein process memory, for tests and a kernel with no durable store (spec 3.3 §5.7). Its records end with the process. - InMemory
Cron Watermark Store - A
CronWatermarkStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.4). Its cursors end with the process, so a restarted kernel over it sees no tick it missed. - InMemory
Driver Store - A
DriverStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.7). Its records end with the process. - InMemory
Ledger Store - A
LedgerStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.10). Its rows end with the process. - InMemory
Partition Store - A
PartitionStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.8). Its records end with the process. - InMemory
Process Store - A
ProcessStorein process memory, for tests and a kernel with no durable store (spec 3.2 §7.3). Its rows end with the process. - Kernel
Stores - Every stateful store a kernel keeps, opened together on one backend (spec 3.2 §7.1, §13
Q8): the bundle
KernelBuilder::storesandTenantKernelBuilder::stores(featuremanaged) take, so a host opens one value instead of assembling each store, and a kernel never keeps a store in memory by accident. - Mongo
Agenda Store - An
AgendaStorein MongoDB, shared by every replica (spec 3.2 §7.1, §7.5, §13 Q8, featuremongodb). - Mongo
Agent Store - An
AgentStorein MongoDB, shared by every replica (spec 3.3 §5.7, §10 K7, featuremongodb). - Mongo
Cron Watermark Store - A
CronWatermarkStorein MongoDB, shared by every replica (spec 3.2 §7.4, §13 Q8, featuremongodb). - Mongo
Driver Store - A
DriverStorein MongoDB, shared by every replica (spec 3.2 §7.7, §13 Q8; featuresdrivers,mongodb). - Mongo
Ledger Store - A
LedgerStorein MongoDB, shared by every replica (spec 3.2 §7.1, §7.10, §13 Q8, featuresprocandmongodb). - Mongo
Partition Store - A
PartitionStorein MongoDB, shared by every replica (spec 3.2 §7.1, §7.8, §13 Q8, featuremongodb). - Mongo
Process Store - A
ProcessStorein MongoDB, shared by every replica (spec 3.2 §7.1, §13 Q8, featuremongodb). - Neo4j
Agenda Store - An
AgendaStorein Neo4j, shared by every replica (spec 3.2 §7.1, §7.5, §13 Q8, featureneo4j). - Neo4j
Agent Store - An
AgentStorein Neo4j, shared by every replica (spec 3.3 §5.7, §10 K7, featureneo4j). - Neo4j
Cron Watermark Store - A
CronWatermarkStorein Neo4j, shared by every replica (spec 3.2 §7.4, §13 Q8, featureneo4j). - Neo4j
Driver Store - A
DriverStorein Neo4j, shared by every replica (spec 3.2 §7.7, §13 Q8; featuresdrivers,neo4j). - Neo4j
Ledger Store - A
LedgerStorein Neo4j, shared by every replica (spec 3.2 §7.1, §7.10, §13 Q8, featuresprocandneo4j). - Neo4j
Partition Store - A
PartitionStorein Neo4j, shared by every replica (spec 3.2 §7.1, §7.8, §13 Q8, featureneo4j). - Neo4j
Process Store - A
ProcessStorein Neo4j, shared by every replica (spec 3.2 §7.1, §13 Q8, featureneo4j). - Postgres
Agenda Store - An
AgendaStorein PostgreSQL, shared by every replica (spec 3.2 §7.1, §7.5, featurepostgres). - Postgres
Agent Store - An
AgentStorein PostgreSQL, shared by every replica (spec 3.3 §5.7, §10 K7, featurepostgres). - Postgres
Cron Watermark Store - A
CronWatermarkStorein PostgreSQL, shared by every replica (spec 3.2 §7.4, featurepostgres). - Postgres
Driver Store - A
DriverStorein PostgreSQL, shared by every replica (spec 3.2 §7.7, featuresdrivers,postgres). - Postgres
Ledger Store - A
LedgerStorein PostgreSQL, shared by every replica (spec 3.2 §7.1, §7.10, featuresprocandpostgres). - Postgres
Partition Store - A
PartitionStorein PostgreSQL, shared by every replica (spec 3.2 §7.1, §7.8, featurepostgres). - Postgres
Process Store - A
ProcessStorein PostgreSQL, shared by every replica (spec 3.2 §7.1, featurepostgres). - Process
Filter - Which processes
pslists (spec 3.2 §7.3, §8.1adk-rust ps [--partition P] [--state S]). - Redis
Agenda Store - An
AgendaStorein Redis, shared by every replica (spec 3.2 §7.1, §7.5, featureredis). - Redis
Agent Store - An
AgentStorein Redis, shared by every replica (spec 3.3 §5.7, §10 K7, featureredis). - Redis
Cron Watermark Store - A
CronWatermarkStorein Redis, shared by every replica (spec 3.2 §7.4, featureredis). - Redis
Driver Store - A
DriverStorein Redis, shared by every replica (spec 3.2 §7.7, featuresdrivers,redis). - Redis
Ledger Store - A
LedgerStorein Redis, shared by every replica (spec 3.2 §7.1, §7.10, featuresprocandredis). - Redis
Partition Store - A
PartitionStorein Redis, shared by every replica (spec 3.2 §7.1, §7.8, featureredis). - Redis
Process Store - A
ProcessStorein Redis, shared by every replica (spec 3.2 §7.1, featureredis). - Sqlite
Agenda Store - An
AgendaStorein SQLite (spec 3.2 §7.1, §7.5, featuresqlite). - Sqlite
Agent Store - An
AgentStorein SQLite (spec 3.3 §5.7, §10 K7, featuresqlite). - Sqlite
Cron Watermark Store - A
CronWatermarkStorein SQLite (spec 3.2 §7.4, featuresqlite). - Sqlite
Driver Store - A
DriverStorein SQLite (spec 3.2 §7.7, featuresdrivers,sqlite). - Sqlite
Ledger Store - A
LedgerStorein SQLite (spec 3.2 §7.1, §7.10, featuresprocandsqlite). - Sqlite
Partition Store - A
PartitionStorein SQLite (spec 3.2 §7.1, §7.8, featuresqlite). - Sqlite
Process Store - A
ProcessStorein SQLite (spec 3.2 §7.1, featuresqlite). - Store
Use - One of a kernel’s stateful stores: where it came from and whether it is known to be held
in memory (
Kernel::store_uses). - Usage
Totals - What a process or a partition used over a span of UTC days (
ProcessStore::usage).
Enums§
- Spend
Scope - Whose spend
ProcessStore::spendsums (spec 3.2 §7.3, §7.10). - Store
Origin - Where one of a kernel’s stateful stores came from (spec 3.2 §7.1).
Traits§
- Process
Store - The kernel’s side table of process metadata, keyed by run id (spec 3.2 §7.3, §6 D-2).