Skip to main content

Module runtime_lease

Module runtime_lease 

Source
Expand description

The Cloud lease as the Intelligence runtime’s licence.

The runtime lease is {"schema": "leanctx.cloud.runtime-lease/v1", "lease": <lease envelope>, "keys": <key set>}, both exactly as Cloud sent them. The runtime verifies root → key set → lease → right runtime and the validity window itself, against roots compiled into it; this engine only offers the bytes while its own lease is valid or in grace and grants runtime.

Constants§

RUNTIME_LEASE_SCHEMA
RUNTIME_LEASE_SCHEMA_V2
v1 plus root_cert (a self-hosted Cloud); runtimes that declare runtime_lease: "v2" read it, v1 runtimes refuse it (hosted-only).

Functions§

ensure_registered
Register the Cloud lease as this process’s runtime lease source (once).
runtime_lease_bytes
The runtime lease of the instance in store, if it may run the runtime now.