Expand description
The idempotency key of each wake source (spec 3.2 §7.4 key table, §13 Q7).
§Example
use chrono::{TimeZone, Utc};
use adk_kernel::keys;
let at = Utc.with_ymd_and_hms(2026, 10, 22, 9, 0, 0).unwrap();
assert_eq!(keys::cron("nightly", at), "cron:nightly:2026-10-22T09:00:00Z");
assert_eq!(keys::schedule("nightly-report", at), "schedule:nightly-report:2026-10-22T09:00:00Z");
assert_eq!(keys::webhook("github", "msg_1"), "hook:github:msg_1");
assert_eq!(keys::queue("orders", "m-1"), "queue:orders:m-1");
assert_eq!(keys::vision("conveyor-1", "shift-1", 7, "torn-seal", "detected"), "queue:conveyor-1:shift-1:7:torn-seal:detected");
assert_eq!(keys::run_finished("run-7", adk_core::RunState::Completed), "run:run-7:completed");
assert_eq!(keys::trigger("hook:github:msg_1", "triage"), "hook:github:msg_1#triage");Functions§
- approval
- The approval request id.
- budget
budget:<partition>:<UTC day>:<asleep>: the partition’s budget has room on that day for the processes asleep on it,asleepa tag of those processes and their claims (spec 3.2 §7.9). One wake goes out per partition, day and set of sleepers, so work held again after a wake, by a new day’s spend or a cap raised twice in a day, gets its own.- cron
cron:<source>:<scheduled_for>; every tick’s payload carriesscheduled_for, catch-up ticks included.- file
file:<root>:<path>:<modification time>, the time read when the event arrives, so the several notifications one save produces wake once and a later save, even back to earlier contents, wakes again.- queue
queue:<source>:<message id>, asQueueIngress::idempotency_keysets it.- run_
finished run:<pid>:<final state>, the state as the run store serializes it (completed,failed,cancelled).- run_now
now:<target>:<request id>: a run now of a cron sleeper (targetits pid) or a standing trigger (targettrigger:<name>); a retried request with the same id routes once.- schedule
schedule:<id>:<time>, asSchedule::run_forsets it.- trigger
<event key>#<trigger name>: the run aTriggerenqueues for an event, so two triggers that match one event on one queue each run.- vision
queue:<source>:<session>:<track>:<condition>:<event>, asVisionWakeSourcesets it (spec 3.7 §7.10): one track of one stream session under one watch condition wakes once, however many frames show it.- webhook
hook:<name>:<webhook-id>, asWebhookHook::idempotency_keysets it.