Skip to main content

Module job_template_handlers

Module job_template_handlers 

Source
Expand description

Job templates’ RPCs and the operator’s host route (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4, §5.5, §7).

Anyone may list the templates and preview a brief. Installing one, approving one and browsing a catalog are the operator’s own client’s (operator_only). Approving a template, forgetting a publisher’s key and pinning a catalog’s key can also be carried by the host, as a widget’s approval is: the instance auth key, which every agent has, isn’t enough. Pinning or forgetting a cloud reporter is open to agents too, recorded as the caller; the host route carries the operator’s own decisions on them as well.

Structs§

JobReporterAddReq
JobReporterForgetReq
JobReporterInfo
A cloud reporter the operator pinned, and the approved cloud templates that report as it.
JobReportersResult
JobTemplateApproveReq
The operator’s approval of exactly what their prompt showed.
JobTemplateCatalogInfo
A catalog the operator added, as Settings shows it.
JobTemplateCatalogInstallReq
JobTemplateCatalogReq
JobTemplateCatalogResult
JobTemplateDetail
JobTemplateGetReq
JobTemplateIdReq
JobTemplateInstallReq
JobTemplateInstallResult
JobTemplatesResult

Functions§

add_reporter 🔒
Pinning a reporter is open to agents, like any write (recorded as the caller): a pin alone lets no event in, since an event also has to match the key of an approved template, which is the operator’s decision.
add_reporter_now 🔒
approve 🔒
blocking 🔒
f on a blocking thread: every call reads and hashes template files.
detail 🔒
forget_reporter 🔒
forget_reporter_now 🔒
handle_host_job_templates 🔒
POST /api/v1/host/job_templates: the operator’s decisions, relayed by the host with its own token. action is approve (id, hash, and the signer fingerprint their prompt showed), forget_key (publisher), add_catalog (url, public_key), remove_catalog (url), add_reporter (name, public_key) or forget_reporter (name).
install 🔒
pinned_catalog 🔒
register
reporters_result 🔒
result 🔒
svc 🔒