Skip to main content

326 docs tagged with "Technology"

All documents with this tag belong to the section for guides on technology

View all tags

Access Modifiers

CK language 2 adds three modifiers. All of them require ckLanguage: 2 (message 90 otherwise).

ActivateArchive

Activates a CkArchive: provisions the per-archive CrateDB table and transitions the archive to Activated. Use this once after rt-importing the archive entity.

AddArchiveColumn

Adds a column for an existing attribute of the target CK type to an Activated raw or time-range archive without recreating it. The table gains a nullable column (existing rows keep their data and read null), then the archive definition; the next ingested rows fill it. Idempotent. A computed column is added with AddComputedColumn.

AddComputedColumn

Adds a computed column to an Activated raw or time-range archive. The asset repository backfills the existing rows as a background job and returns at once; the column becomes visible atomically when the job completes (follow it with ListRecomputeJobs, or pass -w). A failed backfill is retried with RetryComputedColumnBackfill.

Aggregation Queries

Aggregation queries compute summary values (averages, totals, extremes) across time-series data points instead of returning individual rows. Use these when you need calculated metrics rather than raw data — for example, the average voltage over the last hour or the total energy produced per machine.

ApplyClientOverlay

Applies an overlay URI set (RedirectUris / PostLogoutRedirectUris / AllowedCorsOrigins) to a blueprint-managed client. New entries are written with Source = 'overlay:<OverlayName>', kept across blueprint re-apply by the Step 2a preservation pass. Idempotent — duplicates are silently skipped (any source). At least one of the three URI lists must be provided.

Association Roles

Association Roles define the relationship types between entities. Each role specifies the multiplicity and naming for both directions of the relationship (inbound and outbound).

Associations

Associations define relationships between entities in the runtime model. This chapter describes how to query and navigate associations.

Attach

Attach an existing database to a tenant.

Attributes

Attributes are reusable property definitions that can be applied to types. Each attribute has a value type and optional constraints.

Authentication

OctoMesh uses OAuth 2.0 and OpenID Connect (OIDC) for authentication. This page explains how authentication works, which flows are supported, and what happens during the login process.

AuthStatus

Gets authentication status to the configured identity services.

AutoIncrement

AutoIncrements provide automatic value generation for attributes when entities are inserted into the repository. They ensure unique, sequential values for attributes like customer numbers, document IDs, or any other identifier that requires automatic numbering.

BackfillRollup

Queues a durable background backfill that populates / resets a rollup over the ENTIRE history of its source archive without supplying a timestamp. Resolves the source archive's earliest timestamp and enqueues a recompute of [sourceMin, now); the heavy work runs in the background so it is never cancelled by a client timeout. Returns the Pending job id immediately. Use -w/--wait to poll until the job completes. A no-op when the source archive holds no data.

Best Practices

This chapter provides best practices for writing efficient and maintainable GraphQL queries and mutations.

Blueprint Ownership

A blueprint update re-imports the seed data into a tenant that has been in use for a while. The import is a full replace of every entity it touches, so without rules a seed that carries an empty value would erase what the tenant has entered since the install (an adapter configuration, an enforcement mode, a counter, a mail text). The rules on this page decide, for every value, whether the blueprint or the tenant owns it and what the platform does when the two disagree.

Blueprints

Blueprints are versioned, declarative bundles of Construction Kit (CK) models and runtime seed data that bootstrap a tenant — and continue to manage it across its lifetime. A blueprint can be installed, re-applied, updated, rolled back, uninstalled, and may depend on other blueprints. Versioned migration scripts transform tenant data when a blueprint's own version moves forward.

CancelQueuedExecution

Cancels one execution that is still waiting in an adapter pool's queue. It never runs.

CheckUpgrade

Pre-flight check for CK model upgrade/migration. 'Breaking Changes' is the migration view of the model itself; 'Would break' (isBlocked/blockers) is the tenant upgrade guard: which installed models the import would break, also for System.

Clean

Resets a tenant to factory defaults by deleting the construction kit and runtime model.

CleanClientOverlays

Strips overlay URI entries from every blueprint-managed client in the tenant. Without -overlayName*'. With -overlayName<name>' exactly. Destructive — typical use is before a sanitised DumpTenant export; the operator can re-apply with Apply-IdentityOverlay afterwards (idempotent, no-op if state matches).

Clients and API Scopes

In OAuth 2.0, a client is any application that requests access on behalf of a user or itself. API scopes define what operations a client is allowed to perform. The Identity Service manages both per tenant.

Common Workflows

Multi-command playbooks for typical octo-cli usage scenarios. Each step has its own copyable code block — paste them one at a time. Full per-command documentation is in the Command Reference sidebar section.

Communication Methods

Since System.Communication 4.17.0 the operations on adapters, workloads and adapter pools, since 4.18.0 the

Compiler Messages

The compiler and the engine report CK language 2 problems with the message numbers below (Error 112 types/types.yaml: ...). The same checks run when a compiled model is resolved — on publish and on import into a tenant — so a model that bypassed the compiler is refused as well. All messages are errors unless marked warning.

Config

Configures the active context.

Construction Kit

The Construction Kit defines the schema and structure of your data model. Unlike the Runtime Model which stores actual data instances, the Construction Kit contains the metadata that defines what types of entities can exist, their attributes, relationships, and constraints.

CPU and Memory Sizing

Adapters and applications that are deployed through a Deployment Site can declare how much CPU and memory Kubernetes reserves and allows for them. You set this on the workload itself, without writing Helm values.

Create

GraphQL allows to query and mutate data. Mutations are operations like create, update and delete. This chapter describes how data can be created.

Create

Creates a new tenant and provisions the current user as admin.

CreateExternalTenantUserMapping

Creates an external tenant user mapping: grants a user of another tenant (registry ancestor or a sibling tenant that permits this one) access to the tenant of the context, with roles and/or groups.

Cross-Tenant Authentication

OctoMesh supports a hierarchical tenant model where a parent tenant can authenticate users in child tenants. This allows organizations to maintain a single user directory while granting access to multiple isolated tenants.

Data Model Concepts

This document explains the fundamental data modeling concepts in OctoMesh, including Construction Kits, Runtime Entities, and Stream Data.

Delegation

Some pipelines exist to serve a specific person in the moment: the clearest

Delete

GraphQL allows to query and mutate data. Mutations are operations like create, update and delete. This chapter describes how data can be deleted.

Delete

Deletes an existing tenant.

DeleteArchive

Drops the per-archive CrateDB table and soft-deletes the CkArchive entity. Destructive — historical data is lost.

DeleteSecretSweepDump

Deletes the pre-sweep dump of a secret sweep run before it expires (requires SecretManagement). Use -y to skip confirmation.

DeployDeploymentSite

Triggers a deploy of a deployment site. The Communication Operator creates the deployment site resources; workloads are deployed separately via DeployWorkload.

Deployments

This page lists the hosted MCP (Model Context Protocol) Services endpoints and how to register each with your AI client. For the registration mechanics see Getting started.

DeployPipeline

Deploys a pipeline definition to the corresponding adapter.

DeployWorkload

Triggers a deploy of one workload (Adapter or Application) through its parent deployment site.

Detach

Detaches a child tenant. The database is kept and can be re-attached with Attach.

DisableAi

Disables the AI Adapter for the current tenant. The seeded AgentConfig and CK model are not removed; re-enabling is idempotent.

DisableArchive

Disables a CkArchive: transitions to Disabled (data preserved). Allowed only from Activated.

Display Name Rules

Display name rules let a Construction Kit type declare how instances of that type should be labeled for humans. When a rule is defined, the engine computes the read-only system fields rtDisplayName and rtDisplayDescription for every entity on save, so all consumers — GraphQL queries, Refinery Studio lists, MeshBoard entity selectors and pickers — show a consistent, meaningful label without duplicating naming logic in each application.

DownloadFile

Downloads a file of the platform file system of the tenant to a local file.

Downsampling Query

A downsampling query reduces the density of time-series data by dividing a time range into equal-sized buckets and applying an aggregation function to each bucket. This is essential for visualizing large datasets on dashboards and charts — instead of transferring thousands of raw data points, you get a manageable number of summarized values.

Dump

Dumps a tenant to a file

Email Domain Group Rules

Email domain group rules automatically assign users to groups based on their email address domain. When a user registers or logs in for the first time, the Identity Service checks their email against configured rules and adds them to matching groups.

EnableAi

Enables the AI Adapter for the current tenant. The Communication Controller must be enabled first (run EnableCommunication beforehand).

EnableArchive

Re-enables a previously disabled archive: transitions Disabled → Activated. Re-validates column paths against the current CK model; no DDL.

Enums

Enums are used for establishing a set of predefined constants, which can represent various states, types, or configurations within the library. Enums are embedded within a Runtime Entity Object and do not need any navigation through associations.

Enums

Enums define a fixed set of allowed values for an attribute. Each enum value has a numeric key, a name, and an optional description.

Error Handling

This chapter describes how errors are returned in GraphQL responses and how to handle them.

Event Log

The event log of a tenant is the set of runtime entities of the type Event (and its derived type StatefulEvent) of the

ExportArchiveData

Exports the row data of an archive to a downloadable ZIP. Omit both --fromUtc and --toUtc to export the whole archive; supply them to export the half-open slice [fromUtc, toUtc).

ExportRtByDeepGraph

Schedules a job to export runtime model graph by providing RtId's and type as starting point. File is specified using -f argument. The file is downloaded in ZIP-format after job is finished.

ExportRtByQuery

Schedules a job to export runtime models using a query. File is specified using -f argument. The file is downloaded in ZIP-format after job is finished.

FixAll

Imports all CK models that need update or fix. Updates that are blocked only by each other (exact pins) are imported together in one guarded set. Updates that would break an installed model even then are skipped and reported (FixAll never forces them; use ImportFromCatalog --force deliberately). Use -w to wait, -y to skip confirmation. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

Fixup Scripts

Fixup Scripts are MongoDB-compatible scripts that can be applied to databases for maintenance, migration, and data correction tasks. They are executed by the bot service in a defined sequence order, ensuring consistent and predictable database modifications.

Formula Expressions

Several OctoMesh features let you enter a formula — a small numeric expression that

FreezeRollupArchive

Freezes a CkRollupArchive at the given timestamp. Monotonic — rejected when the new value is earlier than the current FrozenUntil. The orchestrator stops producing buckets whose bucketEnd falls within the frozen range; already-aggregated rows are preserved.

GetAdapter

Gets the configuration for a specific adapter.

GetAdapterNodes

Gets aggregated node descriptors from all connected adapters.

GetAiCredentialsStatus

Returns the AI credential-lease status (expiries + generation) for the active tenant. Token plaintext is never disclosed.

GetClientMirrors

Lists the sub-tenants a ClientCredentials client has been auto-provisioned into.

GetFiles

Lists the platform file system of the tenant: the folder roots, or the folders and files of a root or folder.

GetLatestPipelineExecution

Returns the latest pipeline execution. For a failed execution, FailureKind tells whether a write was not acknowledged (OutcomeUnknown) or the pipeline failed (Failed).

GetOperation

Shows an operation of an asynchronous CK method (e.g. a dump): state, progress and the result or error. Read only.

GetPipelineExecutions

Returns pipeline execution history. For a failed execution, FailureKind tells whether a write was not acknowledged (OutcomeUnknown) or the pipeline failed (Failed).

GetRollupRepairStatus

Shows the state (Pending, Running, Done, Failed) of a rollup repair request started by RepairRollups --apply, with the final report once it has ended. Read only.

GetTenantFeatures

Gets the enabled-state of the current tenant's capabilities (Stream Data, Communication, Reporting, AI Services).

GetTenants

Gets all direct child tenants, or with --all every tenant of the installation.

Getting Started

This page walks you through registering the MCP (Model Context Protocol) Services with an AI client and making your first authenticated tool call. The hosted endpoints are listed on the Deployments page.

GetWorkloadsByChart

Lists every Adapter / Application in the active tenant whose ChartName matches.

GraphQl

Runs a GraphQL query or mutation against a tenant and prints the response JSON to standard output. Authenticates with a token for that tenant.

GraphQL Mapping

This page describes how CK language 2 elements appear in a tenant's GraphQL schema (asset repository): attribute access, CK interfaces as GraphQL interfaces, and the CK meta API.

Groups

Groups are organizational units that simplify role management. Instead of assigning roles to each user individually, you assign roles to a group and then add users to that group.

How archives work

This page is the architectural foundation for stream data: the mental model and vocabulary you need before reading either the full Stream Data Archives reference or the Rollups & recompute deep-dive. It explains how the pieces fit together — the two-store split, the three archive types, how rows are stored, how an archive moves through its lifecycle, and what happens on the write and read paths — and then hands off to the reference and deep-dive pages for the exhaustive detail.

Identity Methods

Since System.Identity 2.29.0 the model declares the security-critical operations of users, groups, clients and data

Identity Providers

Identity providers allow users to authenticate with OctoMesh using external identity systems. Each tenant can configure multiple providers independently.

Identity Service Overview

The OctoMesh Identity Service provides centralized authentication and authorization for the entire platform. It supports OAuth 2.0 and OpenID Connect protocols.

Implementing Method Handlers

A method is declared in a Construction Kit model. A handler is the code that runs when the method is called. This guide shows how to write one for each of the three ways a method can be handled, and which rules every handler follows. The consistency rules (transactions, failures, retries) are stated in the Method Consistency Model; read it first.

ImportArchiveData

Imports archive row data from an export ZIP into a target archive. The target archive must be Disabled during the import (see DisableArchive). The bot validates that the export schema matches the target archive before any rows are written.

ImportCk

Schedules an import job for construction kit files. File is specified using -f argument. To wait for job, use -w argument. Accepted: a compiled CK model (json, yaml or a zip of one) or a zip of the source ConstructionKit/ folder (a zip that holds ckModel.yaml); the service compiles a source zip like ValidateCk and refuses compile errors with CKMODELCOMPILEFAILED (file and element of each error) before anything is imported. The tenant upgrade guard refuses a file that would break an installed model (also for System) with CKUPGRADE_BLOCKED; --forceBreakingUpdate overrides it. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

ImportFromCatalog

Imports one or more CK models from a catalog with all dependencies. A comma-separated -m list is imported as one set (judged together by the tenant upgrade guard, sent in dependency order). Use -w to wait for completion. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

ImportRt

Schedules an import job for runtime files. File is specified using -f argument. To wait for job, use -w argument.

Installation

OctoMesh uses Communication Operators to manage distributed computing resources using Kubernetes. The Communication Operators are responsible for managing the lifecycle of a Deployment Site's workloads (Adapters and Applications), including creating, updating, and deleting them.

InstallBlueprint

Installs a blueprint into the current tenant. CK models are loaded and seed data is imported via upsert. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

Interfaces

An interface is a versioned contract that types implement. It names attributes, associations and methods a type must provide, without fixing the type's position in the inheritance hierarchy. Dependent models can then rely on "anything that is Named-1" instead of on a concrete type of another model — which is what keeps a change of that concrete type from cascading into every dependent.

Introduction

In the realm of OctoMesh, adapters and pipelines play a crucial role as the connective tissue between the OctoMesh platform and external data sources and services. These small, but powerful pieces of software are designed to facilitate communication and data exchange across a diverse set of endpoints, including APIs, file systems, databases, message brokers, and other custom or standard protocols. To cater to different architectural needs and deployment scenarios, OctoMesh distinguishes between two main types of adapters: Edge Adapters and Mesh Adapters.

Introduction

At the heart of OctoMesh lies the concept of Construction Kits. These kits serve as a fundamental building block for defining object models and providing the essential context that transforms data into actionable insights. With OctoMesh, you can construct models that align with your specific needs, allowing you to shape data in ways that make sense for your organization.

Introduction to Technology Guide

Welcome to the OctoMesh Technology Guide, your comprehensive resource for leveraging the transformative power of OctoMesh to architect and manage robust data mesh solutions. This guide is crafted to serve as your navigator through the expansive features of OctoMesh, shedding light on the underlying concepts, providing detailed how-to instructions, and offering practical recipes that help you harness the full potential of your data.

Library Management

OctoMesh provides built-in tools for managing Construction Kit (CK) model libraries across tenants. This includes browsing available libraries from catalogs, checking compatibility, resolving dependencies, and importing libraries with full dependency resolution.

LibraryStatus

Shows installed CK model libraries with catalog availability. Use --needs-action to filter.

ListBlueprints

Lists blueprints available across configured catalogs. Fetches all pages unless -s/-t is given.

ListCatalogModels

Lists CK models from catalogs. Use -cn to filter by catalog, -q to search.

ListContexts

Lists all configured contexts. Pass -n to show details for a single context.

ListOperations

Lists operations of asynchronous CK methods (e.g. dumps), newest first: the caller's own, or every caller's with --allOwners. Read only.

ListRecomputeJobs

Lists the most recent recompute jobs for a rollup archive (newest first, capped at 50) — for debugging why a recompute failed.

ListRollupsForArchive

Lists every rollup archive attached to the given source CkArchive — runtime id, status, schedule, watermark, freeze state, reference time zone and day start.

LogIn

LogIn to the configured identity services.

LogInClientCredentials

Non-interactive login using OAuth2 clientcredentials. Reads the client ID from -id or OCTOCLICLIENTID and the secret from OCTOCLICLIENTSECRET, standard input (--secret-stdin) or a hidden prompt. Tenant comes from the effective context (--context, OCTOCLI_CONTEXT or the active one).

LookupSourceTenantUser

Finds one user of a source tenant by exact user name or e-mail, to grant that user access to the tenant of the context.

Maintenance Dashboard

The Maintenance Dashboard allows to get insights about costs and maintenance activities. It provides a comprehensive overview of the maintenance status of the assets and the costs associated with the maintenance activities. The dashboard is designed to help maintenance managers and technicians to monitor the maintenance activities, track the costs, and identify potential issues that require immediate attention.

MCP (Model Context Protocol) Services

The OctoMesh MCP (Model Context Protocol) Services is the Model Context Protocol server for OctoMesh. It exposes the platform's full administrative surface — tenants, identity, blueprints, communication adapters, time-series archives, generic Construction Kit entity CRUD, and aggregation queries — as about 208 typed tools that AI assistants (Claude Code, Claude Desktop, and any other MCP-capable client) call over the MCP streamable HTTP transport.

Method Consistency Model

This page states what a method may assume about transactions, failures, ordering and repeated calls, and what the caller can rely on. It is the contract between the platform, the author of a method handler and the caller of a method. The practical how-to is in Implementing Method Handlers.

Method Definitions

CK language 2 lets a type or an interface declare methods MethodOnly) and to replace ad-hoc REST endpoints.

Model Migrations

When a Construction Kit (CK) model evolves to a new version, existing runtime entities in tenant databases may need to be updated to match the new schema. CK model migrations automate this process by defining versioned transformation scripts that update entity data (rename types, change attributes, etc.) during model import.

Models

Models are containers that group related types, attributes, enums, and records. Each model has a name, version, and can depend on other models.

MovePipelines

Reassigns one or more pipelines from their current adapter to a new target adapter. Each pipeline is moved atomically; per-pipeline failures do not abort the batch. Source and target adapter must share the same CkTypeId.

octo-cli

octo-cli is the command-line interface for managing and administering OctoMesh. It provides commands for configuring services, managing tenants, users, identity providers, and more.

On-Demand Lifecycle (Scale-to-Zero)

Adapters that are only used occasionally — for example an adapter that generates documents on request, or one that imports data once per night — do not need to run around the clock. With the on-demand lifecycle, OctoMesh scales such an adapter down to zero replicas after a period of inactivity and wakes it automatically as soon as it is needed again. Adapters that process live data streams keep running permanently.

Overview

service coreServices(common:meshLogo)[Core Services] in central

Overview

Adapters are executing pipelines and pipeline consists of nodes. There are nodes that are common for all adapters and there are nodes that are specific for each adapter. For example the Modbus adapter comes with Modbus nodes, the OPC UA adapter comes with OPC UA nodes, etc.

Overview

The integration of OctoMesh with SAP provides a seamless and efficient way to exchange data between the two systems. Leveraging the SAP NetWeaver SDK,

Overview

In Refinery Studio, data flows are managed under Integration > Data Flows: see the User Guide.

Overview

OctoMesh uses Communication Operators to manage distributed computing resources using Kubernetes. The Communication Operators are responsible for managing the lifecycle of a Deployment Site's workloads — Adapters (Plugs and Sockets) and Applications (containerized business applications) — including creating, updating, and deleting them. Each workload is deployed from a Helm chart via helm upgrade --install; see Communication Operator for details.

Overview

Pipeline triggers are used to start the execution of a pipeline based on a cron schedule using the Bot Service.

Overview

CK language 2 is an opt-in extension of the Construction Kit YAML language. A model that declares ckLanguage

Overview

In OctoMesh, we understand that data is at the heart of your operations. This chapter focuses on how you can access and interact with your data through our Construction Kits (CK), tailored for both runtime data and stream (time series) data. Leveraging GraphQL endpoints, OctoMesh offers a seamless and efficient way to work with your data, regardless of its nature.

Overview

Stream data provides access to time-series data stored in CrateDB. While runtime queries retrieve the current state of entities from MongoDB, stream data queries retrieve historical measurements and events recorded over time — such as sensor readings, machine metrics, or energy production values.

Persisted Queries

Persisted queries are saved query definitions stored as runtime entities. Instead of specifying all query parameters every time, you create a query definition once and execute it by its rtId. This is useful for dashboard widgets, recurring reports, and any scenario where the same query needs to be executed repeatedly.

Pipeline design

Edge and Mesh Pipelines enable the data flow between the edge and the mesh (cloud) environment. The Edge Pipelines are responsible for preprocessing the data before sending it to the Mesh Pipelines. The Mesh Pipelines are responsible for processing the data in the cloud environment.

Prerequisites

OctoMesh is operated using Kubernetes in production. This guide runs the same Helm-chart deployment on a local kind (Kubernetes in Docker) cluster.

ProvisionClientInExistingTenants

Backfill: provisions a flagged ClientCredentials client into every existing sub-tenant of the active context tenant. Idempotent.

Query Limits

A runtime-entity query that loads every entity of a CK type can exhaust the memory of the asset repository, especially when

Range Retention

Today a compiled model freezes every dependency range into an exact pin: System-2.5,3.0) in ckModel.yaml becomes System-2.5.0 in the compiled model, and a tenant must hold exactly that version (see [Versioning rules). Every new System version therefore forces every dependent to be rebuilt and republished.

RecomputeArchive

Triggers (or coalesces) an optimistic recompute of a rollup archive over [from, to). Returns the resulting job snapshot (state, counts, error reason).

RecomputeDisplayNames

Recomputes rtDisplayName/rtDisplayDescription of a tenant's entities from the CK display rules (idempotent, runs asynchronously).

ReconcileTenantRegistry

Finds tenants that a parent lists but the system registry lacks (GetTenants -r vs -a) and, with --apply, inserts the missing registry rows. Dry run by default.

Records

Records are composite value types that group related attributes together. Unlike types, records are embedded directly within entities rather than being independent entities with their own runtime IDs.

RedeemAiTicket

Redeems a one-time AI credential ticket and persists the Anthropic subscription tokens on the AI Adapter. Runs anonymously — the ticket code authenticates the call, no OctoMesh login required. The tokens come from the environment variables OCTOCLIAIACCESSTOKEN / OCTOCLIAIREFRESHTOKEN (the -at / -rt arguments are deprecated). Token-related values are optional for developer smoke tests; missing values default to a fake pair with a far-future expiry.

RefreshBlueprintCatalogs

Refreshes blueprint catalog caches at the asset repository. Use -cn to refresh a specific catalog. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

RefreshCatalogs

Refreshes CK model catalog caches. Use -cn to refresh a specific catalog. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

Release Notes r3.5.0

What is new and what changes for operators in OctoMesh r3.5.0 (System.Communication 4.x, Deployment Sites, adapter pools and leasing, blueprint dependency resolution).

RemoveComputedColumn

Removes a computed column from an archive. Rejected when another computed column still references it.

RepairRollups

Repairs the rollup inconsistencies that ValidateRollups finds after a restore (rows above the pointer, a pointer without rows, a watermark ahead of the rows, a missing generation map). Idempotent lists the planned steps per rollup and changes nothing; --apply runs them.

Repository Backup & Restore

OctoMesh provides comprehensive backup and restore capabilities for repositories through the octo-cli tool. These

ReprotectSecrets

Starts a secret sweep job: re-encrypts all Secret attributes with the active key (Reprotect, default), encrypts remaining legacy values (Encrypt), removes values whose key id is not in the key ring (CleanupUnreadable, requires -y) or only counts them (Verify). Use -w to wait, -y to skip confirmation.

ReRunTenantSetup

Re-opens a tenant's provisioning so the background reconciler completes it.

Restore

Restore a tenant from a dump file

RestoreSecretSweepDump

Restores the pre-sweep dump of a secret sweep run into the same tenant, replacing its data (requires SecretManagement). Use -y to skip confirmation, -w to wait.

Retrieve

This chapter describes common query patterns for retrieving Construction Kit metadata. The Construction Kit API is read-only - you query the model structure but cannot modify it through GraphQL.

RetryComputedColumnBackfill

Queues the backfill of a computed column again — for a column whose backfill Failed, or that is stuck in Pending / Backfilling without a running job — without removing and re-adding it. The backfill runs as a background job on the asset repository; follow it with ListRecomputeJobs or pass -w. Rejected for an Active column.

ReviewTenantOwnership

Lists this instance's tenant databases without an ownership marker, with the marker of another OctoMesh instance, or registered by another instance on the same MongoDB server and, with --stamp, stamps the unambiguous ones. Lists only by default.

RevokeAiCredentials

Revokes the active tenant's AI credential lease. New sessions cannot start until a fresh subscription is registered. Ciphertext is preserved for audit.

RevokeShadowUserSessions

Revokes all sessions and tokens of the cross-tenant shadow users (xt_*) of the tenant (refresh tokens, authorizations, browser sessions; rotates the security stamps). Issued access tokens stay valid until they expire. Dry run (counts only) unless --apply is given.

RevokeUserSessions

Revokes all sessions and tokens of a user (refresh tokens, authorizations, browser sessions; rotates the security stamp). Issued access tokens stay valid until they expire.

RewindRollupWatermark

Resets the rollup's watermark (truncated down to the bucket boundary) so subsequent orchestrator ticks re-aggregate the rewound range. Destructive: rows in that range are temporarily out of sync until the orchestrator catches up.

Rollups & recompute

This page is the engineer-facing companion to Stream Data Archives. It explains how a RollupArchive keeps its derived aggregations correct as the underlying data changes — the detection criterion, the dirty-windows ledger, the dependency graph, the periodic orchestrator, and the optimistic atomic swap that keeps readers on a consistent snapshot throughout.

RotateAdapterServiceAccountSecret

Rotates the client secret of an adapter's pipeline service account. The previous secret stops working immediately, and the adapter's pipelines / data flows must be redeployed afterwards before the new secret takes effect.

Run OctoMesh on a local kind cluster

This guide walks you through deploying OctoMesh locally using the official OctoMesh Helm charts inside a local kind (Kubernetes in Docker) cluster — the same deployment model OctoMesh uses in real clusters.

Runtime Model

GraphQL allows to query and mutate data. Mutations are operations like create, update and delete. This chapter describes how data can be created, retrieved, updated and deleted. It provides a reference for the GraphQL scalar types, input types, and enums used in the OctoMesh GraphQL API.

SearchFilter

The SearchFilter provides text search capabilities across multiple attributes of an entity. It is optimized for text-based searches and is typically used for search fields in list views.

Secret Attributes

The attribute value type Secret stores credentials — passwords, client secrets, API keys, bot tokens, private keys, refresh tokens — encrypted at rest. The engine enforces it: a Secret value is encrypted on every write, no public API returns it, and readers only see whether a value is set.

Secret Attributes

This page describes how the asset repository GraphQL API, the identity-provider REST API, MCP and octo-cli handle attributes of value type Secret. The rule in one sentence: you can write a secret, and you can see whether it is set — no API returns the value.

Secret Encryption Key Ring

Values of Secret attributes are encrypted with a key ring that every engine-hosting service receives through its configuration. This guide is for operators: what the key is, how it is delivered, how to back it up and rotate it, how existing plaintext credentials are migrated, and how to monitor the result.

SecretStatus

Shows the encryption status of Secret attributes: environment status (key ring, active and known key ids, strict mode, recurring Verify), recent sweep runs with their dump state and the last sweep report (counts per form and key id, unreadable secrets to re-enter). Never shows secret values.

Service Accounts

A service account is the identity a pipeline uses when it runs on its own —

SetClientAutoProvision

Flips the AutoProvisionInChildTenants flag on an existing ClientCredentials client. Flipping to true does not auto-backfill — use ProvisionClientInExistingTenants for that.

SetCommunicationLifecycle

Sets the tenant's communication lifecycle configuration: scale-to-zero and adapter pool leasing. Runtime configuration - effective without a controller redeploy; '-sze false' and '-le false' are the per-tenant emergency stops. Only the flags you pass are changed.

SetCrossTenantGrantPermissions

Replaces the list of tenants that may look up users of the tenant of the context by exact name or e-mail and grant them access.

SetKnowledgePageStatus

Sets the verification status of a knowledge page (Draft, InReview, Verified, Rejected) as the logged-in person and records it as a new page version. The only way to set Verified: AI clients over MCP never can.

Setup

Sets identity services up

Simple Query

A simple query retrieves raw time-series rows from CrateDB. You choose which columns to return and can apply filters, sorting, and time range restrictions. This is the most fundamental stream data query type — use it when you need individual data points rather than aggregated summaries.

Solution Architecture Overview

This document provides a comprehensive overview of the OctoMesh platform architecture, designed to help developers understand the system components, data flows, and integration patterns.

Stream Data Archives

A Stream Data Archive is the unit of configuration and storage for time-series data in OctoMesh. Each archive is a versioned, typed, per-tenant CrateDB table that captures a curated set of attribute paths from a Construction Kit type. Archives have a strict lifecycle (Created → Activated → Disabled / Failed), a schema that is frozen once activated (the one exception is adding a declared column, see Conflict precedence), and a three-tier activation gate (instance → tenant → archive) that determines whether the data plane is open.

System Queries

This chapter describes how to create System Queries. For an overview of System Queries and their use cases, see System Queries.

System Queries

System Queries are reusable query configurations stored in the repository. They allow you to define a query once and execute it from multiple places using only its ID.

System Queries

This chapter describes how to update System Queries. For an overview of System Queries and their use cases, see System Queries.

Tenant Database Ownership

Several OctoMesh instances can share one MongoDB server. Typical cases are the main instance and the

Tenant Database Prefix

Two OctoMesh instances can share one MongoDB server. Each instance has its own system database

Tenant Lifecycle

This guide explains what happens when tenants are created, attached, or restored, and what steps you need to take in each scenario.

Tenant Topology API

Reference of GET /api/tenant-topology, the identity endpoint that tells an app which tenants below its root tenant the signed-in user may use.

Timezone-Aware Queries

Stream data is always stored in UTC. Many questions, however, are asked in civil (wall-clock) time for a specific place: "what were the values **yesterday**? this week? last month?" — meaning the local day / week / month boundaries of a chosen time zone, not a UTC day that is shifted against the local one.

Tool Reference

The MCP (Model Context Protocol) Services exposes about 210 tools (MCP Services 3.4, October 2026), grouped into the families below. Most platform-admin tools mirror the matching octo-cli command (snakecase names — e.g. CLI CreateTenant → MCP createtenant); the aggregation and persisted-query tools mirror the asset-repository's GraphQL transient-query surface.

Transient Queries

Transient queries allow you to dynamically query runtime entities with configurable column paths. Unlike regular queries where the returned fields are defined in the GraphQL query itself, transient queries return data in a table-like structure with rows and cells.

Troubleshooting

Common failure modes and how to fix them. The MCP (Model Context Protocol) Services never throws out of a tool — every problem comes back as IsSuccess: false plus an ErrorMessage. Read the message first; the table below maps the typical messages to root causes.

Types

Types define the structure of entities in the Runtime Model. Each type has attributes, can inherit from a base type, and can participate in associations with other types.

UndeployDeploymentSite

Undeploys a deployment site through the Communication Operator. Undeploy the deployment site's workloads first (UndeployWorkload); Cloud deployment sites release their operator resources.

UndeployWorkload

Undeploys one workload (Adapter or Application) through its parent deployment site. Destructive — the operator helm-uninstalls the chart.

UnfreezeRollupArchive

Clears FrozenUntil on a CkRollupArchive. Idempotent. Pass --acceptGaps when source data inside the previously frozen range has been truncated and the resulting gaps are acceptable.

UninstallBlueprint

Removes a blueprint from the active tenant; with --cascade, dependents and orphan dependencies go too. Erases the locked entities and the tenant-owned seed entities the tenant never edited; edited or referenced ones stay and are listed with the reason (tenantOwnedKept). --dry-run shows what would be erased and kept, changing nothing. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

Update

GraphQL allows to query and mutate data. Mutations are operations like create, update and delete. This chapter describes how data can be updated.

UpdateBlueprint

Applies a blueprint update to the active tenant. Tenant values the update would blank are kept unless confirmed. Requires the tenant role DataModelManagement (TenantOwners carry it); otherwise 403 DataModelManagementRequired.

UpdateComputedColumnFormula

Changes the formula of an existing computed column on an active archive. Readers keep the previous values while the asset repository backfills the new formula as a background job, then switch atomically; a failed job reverts to the previous formula. Returns once the job is queued (follow it with ListRecomputeJobs, or pass -w). Rejected if another computed column references this one, or while a backfill of the column is still running.

UpdateSystemCkModel

Updates the system construction kit model of a tenant to the latest version.

UpdateWorkloadChartVersion

Sets ChartVersion on a single workload. Does NOT trigger a deploy — call DeployWorkload afterwards if needed.

UpdateWorkloadResources

Shows and sets the CPU and memory requests and limits of an adapter or application. Does NOT trigger a deploy — call DeployWorkload afterwards.

Upgrade Guide r3.5.0

How to upgrade an OctoMesh installation from r3.4.x to r3.5.0 - backup, ordered rollout, data migration to System.Communication 4.x, operators, adapters, blueprints and rollback.

UploadFile

Uploads a local file into the platform file system of the tenant.

ValidateRollups

Checks the rollup archives of the tenant for the inconsistencies a restore (or a dump taken during a recompute) can leave the server runs counts and MAX/MIN statements, nothing is changed.

Versioning Rules

CK model versions follow SemVer, and dependencies are declared as version ranges — but which concrete version a range resolves to depends on where the resolution happens. Getting this wrong is the most common cause of ResolveFailed models and failed blueprint installs, so the rules are spelled out here in one place.

Write Restriction

A type can restrict who may write its runtime entities. With a writeAccess block, only the listed principal kinds and trusted service channels may create, update, replace or delete entities of the type, or change associations that have such an entity at either end. Everyone else is refused with message 144, and nothing is written.