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 declareruntime_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.