Expand description
Job templates: signed data a job is made from (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4, §5.5).
A template comes compiled in (templates/jobs/, published by AgentMux),
installed from a folder or a zip, or from a private catalog. Installed
templates live in ~/.agentmux/job-templates/, beside the widgets. Every
template waits for the operator’s approval, which only the host carries,
like a widget’s; a template that isn’t approved, or changed since, can’t
make a job (JobTemplates::resolve_approved). Publisher keys are pinned
on first approval, in job-template-publishers.json beside the widgets’
pins. Approving a template runs nothing.
Re-exports§
pub use manifest::JobTemplateManifest;pub use manifest::RenderedBrief;
Modules§
- catalog
- Private job template catalogs (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md
§5.5): an
index.jsonat a URL the operator added, signed by the key they pinned for it (index.json.sig, the widget catalog’s scheme). - cloud
- What a cloud job’s manifest declares beyond a template’s own fields (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §4.3): who owns it, which reporter’s events count, the schedule it is expected on, how long a run may take, and how to start it.
- graph
- The Drone graph a template carries in
graph.json(docs/specs/SPEC_DRONE_REAL_WORLD_JOBS_2026_11_11.md, “What is a template?”). - manifest
template.jsonandbrief.md: what a job template declares, its checks, the Rule of Two, and the brief it renders from parameters (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4, §6).- package
- A template package, in a folder or compiled in: its files, its content hash and its signature (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4).
Structs§
- Approved
Template - A template the operator approved, exactly as approved: what a job is made from. A job records its id, version and hash.
- Builtin
- A template compiled into srv from
templates/jobs/<id>/ortemplates/drones/<id>/. - JobTemplate
Info - A template as the UI lists it.
- JobTemplates
Enums§
Constants§
- BUILTIN_
PUBLISHER - The publisher of the templates AgentMux ships; no other template may use it.
Statics§
- BUILTINS
- The templates AgentMux ships (§5.5, §5.6). Each still needs the operator’s approval once, so they see its outputs.
- DRONE_
BUILTINS - The Drone templates AgentMux ships: graphs that run on the blocks this build has, each easy to build off.
Functions§
- service
- start
- Start the service: this instance’s approvals, pins and catalogs, from
data_dirbeside the widgets’. - templates_
dir ~/.agentmux/job-templates, beside the widgets folder.