Skip to main content

Module cloud_events

Module cloud_events 

Source
Expand description

Cloud jobs report in: the signed run event (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §4.1, §4.2).

A cloud job posts a small event when a run starts, while it runs, and when it finishes. Each arrives as an envelope: the event’s JSON body as the reporter wrote it, the reporter’s public key, and an Ed25519 signature over agentmux-job-event-v1\0<job_id>\0<run_id>\0<event_id>\0<hex SHA-256 of the body>. An event counts only if its key is one the operator pinned (super::reporters), its signature holds, and an approved cloud job manifest names that job with that key. Anything else is dropped and counted (drops), never shown as a run.

The text in an event (summary, link labels) is data: it is clipped here and shown as text, never an instruction.

Structs§

CloudJob
An approved cloud job (§4.3): which key may report for it, and its name for the ledger.
EventLink
JobEvent
The event body (schema/agentmux-job-event.v1.schema.json).
SignedJobEvent
One event as it arrives: the body exactly as the reporter signed it, the key, the signature.
Tokens

Enums§

Applied
What a valid event did.
Dropped
Why an event was not written. The label is what the Jobs tab’s diagnostic line says (“3 events dropped: unknown job”).
Infra
Outcome
Phase
Trigger

Constants§

MAX_AGE_MS
Events older than this are refused (§4.2).
MAX_AHEAD_MS
How far ahead of this computer’s clock an event may claim to be, for a reporter whose clock runs fast.
MAX_BODY_BYTES
The most a body may be.
SCHEMA
The schema name every event carries.
SIGNED_PREFIX
The bytes an Ed25519 signature over an event starts with, so it can’t pass as a widget’s or a template’s.

Traits§

CloudJobs
Where approved cloud jobs are found.

Functions§

drops
How many events were dropped since this AgentMux started, by label.
parse
Parse and check one event body.
signed_bytes
The bytes the reporter signed for ev’s body.