Expand description
The subscription models through the Cloud models gateway (mz6,
docs/model-access-subscription.md §4): the connector’s
CloudTokenSource for the proxy’s built-in leanctx provider, and the
catalog of lean-ctx models and of the Local Read kind
cloud.models.catalog (read_catalog).
Order of every admission, each step before the next one may run:
Cloud on, enrolled, the models origin on the Cloud host (a foreign
models_url is refused before any token is read or minted), lease valid
or in grace and granting models.subscription, no hold of the models
path (throttle::Scope::Models), then the instance token.
Structs§
- Catalog
Read - The catalog as Cloud served it, with what the engine knows beside it.
- Catalog
Row - One row of
lean-ctx models.
Constants§
- CATALOG_
DOMAIN - Signing domain of the catalog Cloud serves (Cloud
cloud_wire::models). - GATEWAY_
BASE_ PATH - Path of the LeanCTX gateway below the Cloud origin (Cloud
routes::gateway::GATEWAY_BASE_PATH): an OpenAI-compatible base URL.
Functions§
- catalog_
rows - The rows of a catalog document (
leanctx.cloud.model-catalog/v1). Display only: nothing is served or refused on these rows. - catalog_
verified - Whether
documentis signed by a key set v3policykey valid atreceived_at(ms): Ed25519 (verify_strict) overCATALOG_DOMAIN‖ canonical JSON of the document withoutsignature(128 hex), with the key named bykey_id, as the effective policy is verified. - ensure_
registered - Register the connector as this process’s subscription-model token source (once).
- fetch_
catalog GET /v1/models/catalogwith this instance’s credentials.- gateway_
base_ url - The gateway base URL of a Cloud enrolled at
cloud_url. - note_
answer_ at - Record what a gateway refusal says about the models path at
now. - origin_
for - The models origin of the instance in
store, or why there is none. Reads only the instance record and the config, never a token. - read_
catalog GET /v1/models/catalogas the connected instance, verified against the stored key set v3 (fetched once when it does not know the key).