Docs AI Components (Transcription, Voice, Semantic Search)

AI Components — Coding, Transcription, Voice & Semantic Search

Mockarty ships four optional self-hosted components that unlock AI-adjacent features. Each one runs next to the admin node. No Mockarty cloud account is required; for a fully air-gapped installation, mirror the component images and models and point the coding runner at a model endpoint inside the same environment.

Component Binary Unlocks
Autonomous coding mockarty-coder-runner Isolated implementation and verification work for autonomous missions
Speech-to-text mockarty-whisper-runner Transcripts for voice messages and meeting recordings in Discussions, plus the AI meeting digest
Voice synthesis mockarty-tts-runner The server-side Speak action — a shared voice reply posted into the thread for everyone
Semantic search mockarty-rag-runner Semantic (meaning-based) search, “find similar” for test cases and wiki pages, and vector features across the Knowledge Base

Speech, voice and semantic features degrade gracefully when their component is absent. Autonomous missions remain visible when no coder capacity is connected, so an operator can see and fix the missing runner instead of losing the mission.


How components connect

Every component authenticates to the admin node with an API token (create one in the UI: Settings → API Tokens, or ask your administrator) and identifies itself on start. Two environment variables are always required:

MOCKARTY_URL=http://your-mockarty:5770     # admin node base URL
MOCKARTY_API_TOKEN=<api-token>

Namespace scoping. By default a component with an administrator token serves the whole installation (a shared fleet). Set RUNNER_NAMESPACE=<name> to dedicate it to a single namespace — useful when one team’s traffic should not compete with others. A token that is pinned to a namespace automatically restricts the component to that namespace.

Components send a heartbeat every 30 seconds and deregister on clean shutdown, so the admin’s component lists always reflect reality.

How work reaches a component

By default a component asks the admin node for work: it holds a long request open and starts the job as soon as one appears. This needs no inbound network access, so it works behind NAT, in CI, and on a laptop.

If the admin node can reach the component over the network, you can additionally let it hand the job over directly, which removes the wait between “job created” and “component notices it”. Both ways stay active at the same time: a direct hand-over is tried first, and anything that cannot be delivered — the component is already busy, or unreachable — simply stays in the queue and is picked up the usual way. Nothing is ever lost, and you can turn it off at any time by removing the variables.

To enable it, give the component a port to listen on, a reachable host name, and a shared secret that the admin node also has:

Variable Where Meaning
RUNNER_PUSH_ADDR component Port to accept jobs on, e.g. :8790. Empty = ask-only (the default)
RUNNER_ADVERTISE_HOST component Host name the admin node uses to reach it, e.g. tts-1. Empty = the component does not offer direct hand-over
RUNNER_PUSH_SECRET component Shared secret. Falls back to MOCKARTY_A2A_SECRET so one fleet-wide value is enough
RUNNER_STATE_DIR component Directory for the durable accepted-job journal. Mount it on persistent storage when direct hand-over is enabled
RUNNER_STATE_ID component Stable identity for that journal across process or pod replacement. It must identify exactly one advertised push endpoint
MOCKARTY_A2A_SECRET admin node The same secret. Unset = the admin node never hands jobs over directly

The component also answers GET /healthz on that port — handy as a Kubernetes liveness probe. A component never accepts more jobs at once than its RUNNER_CONCURRENCY: extra hand-overs are declined and those jobs wait in the queue instead.

Before answering that it accepted a directly handed-over transcription or
synthesis job, the component records the job identity under RUNNER_STATE_DIR.
Keep that directory on a persistent volume: after a process restart the
component can then recognize the same job and will not perform paid work twice.
The first start creates an empty journal. A corrupt or unwritable journal makes
the push listener fail closed instead of accepting work without durable
evidence, so preserve the state volume across replacements. Pull-only mode does
not use this journal. Set RUNNER_STATE_ID to a stable value that survives pod
replacement. One advertised push address must lead to exactly one runner
journal; do not put multiple push replicas behind a load-balanced address. The
Helm chart enforces replicaCount: 1 while this push lane is enabled.


Autonomous coding runner

mockarty-coder-runner executes the coding steps of autonomous missions. Pull mode is the normal on-premises setup: the runner makes outbound requests to the admin node, advertises only the engine and sandbox selected for that process, accepts work only while it has capacity, and reports a durable terminal result before deregistering. Push mode is available for installations where the admin node can reach the runner.

See Mockarty Downloads for published mockarty-coder-runner builds. If your operating system and CPU are listed, choose the matching build and compare its SHA-256 with checksums.txt from the same GitHub release. The standalone binary uses the admin public key and workspace API token described below. For a build without bundled OpenCode, install a compatible OpenCode version and set MOCKARTY_OPENCODE_BIN to its executable path.

Trust setup

The admin node signs short-lived task attestations. The runner verifies the signature, the admin URL and its own ID. To connect a runner to your installation:

  • set the admin node’s MOCKARTY_CODER_ADMIN_URL to its stable public base URL;
  • start every runner with the same URL in --admin-url and a stable --runner-id;
  • read attest_pubkey from the coder fleet routes registered startup log on your admin node. Pass it to the runner with --admin-pubkey. Use the key obtained from your own admin environment;
  • if you already build an image with CODER_ATTEST_PUBLIC_KEY_B64, the embedded pin is used when you omit --admin-pubkey.

Keep the private signing key on the admin side. The runner requires a public key at startup. MOCKARTY_CODER_ALLOW_DEV_OPEN=1 is reserved for isolated local development.

On a self-hosted Community server, a runner with coder write access to the workspace can register, stay connected and disconnect without Agent Work. It remains idle while the workspace cannot run autonomous jobs. A runner must authenticate to the server and present its own runner secret when polling.

Sub-tasks in a Desktop folder

A sub-task can target a folder registered on a connected Desktop instead of a server runner (executor: "local_session" with the project’s canonical UUID). Nothing is cloned or pushed: the work stays in the person’s folder, and only a Desktop worker advertising the local-opencode engine can lease that job. Because the Desktop is not always connected, a queued local sub-task is bounded. The bound is a stored installation setting: open Admin → AI & LLM → LLM Profiles → Local coding → Local session wait and enter a Go duration such as 20m (default 10m; invalid or non-positive values keep the default). MOCKARTY_CODER_LOCAL_SESSION_WAIT is only a first-start seed for an unset value on the headless bootstrap path — the stored value always wins and the variable is not read again:

MOCKARTY_CODER_LOCAL_SESSION_WAIT="20m"

The bound never cancels work that a Desktop has already leased.

Local sessions authenticate with the provider API key saved in the product UI: Desktop → Control Panel → AI and models → Local coding, or the installation default in Admin → AI & LLM → LLM Profiles → Local coding. The key is write-only: it is encrypted at rest, never shown again, and can be cleared. No provider-key environment variable is required. A headless runner may still export DEEPSEEK_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY or OPENROUTER_API_KEY as a fallback; a saved UI key takes precedence over it on the machine where it is saved.

Signing key on the admin node. A self-hosted installation generates its signing key once. Admin replicas that share the database use the same key after restarts. Retain the database backup to preserve the pairing. MOCKARTY_CODER_ATTEST_KEY takes precedence when configured. Other production deployments still require that setting to sign attestations.

For Helm, keep the admin URL in values. If you manage the signing key yourself, supply it from a Secret:

admin:
  env:
    MOCKARTY_CODER_ADMIN_URL: "https://mockarty.company.example"
  extraEnvFrom:
    - secretRef:
        name: mockarty-coder-attestation # key: MOCKARTY_CODER_ATTEST_KEY

Pull-mode start

Create a token for the target workspace in Settings → API Tokens. Enable read and write for registration and polling, and delete for deregistration when the runner stops. Choose a separate runner transport secret and start the image. Set --namespace to the workspace ID associated with the API token. If you use a one-time BYO enrollment token, the runner can learn the workspace during enrollment.

docker run --rm \
  -v mockarty-coder-state:/home/coder/.mockarty-coder \
  -e MOCKARTY_CODER_TOKEN=<namespace-api-token> \
  -e MOCKARTY_CODER_SECRET=<runner-transport-secret> \
  -e DEEPSEEK_API_KEY=<model-key> \
  ghcr.io/your-org/mockarty-coder-runner:version \
  --pull --admin-url https://mockarty.company.example \
  --admin-pubkey <installation-public-key> \
  --namespace my-team --runner-id coder-01 \
  --engine opencode --sandbox local

Keep the work-root volume across restarts: it contains pending result deliveries and bounded exact-replay receipts, not only temporary checkouts. Use --sandbox docker for untrusted tasks when the runner host provides Docker. The runner advertises only the selected sandbox and engine, so the admin does not dispatch work for capabilities that this process cannot execute. --max-concurrent is bounded by the process CPU budget.

Mutual TLS and a private CA

These are bootstrap connection settings, so they live on the runner command line next to --admin-url; they are not stored in the admin and do not use a new environment variable.

  • --admin-tls-cert and --admin-tls-key make the runner present a client certificate to an admin (or to an mTLS-terminating proxy) that requires one. Both flags are mandatory together: a half-configured pair stops the runner at startup instead of silently falling back to server-only TLS.
  • --admin-tls-ca is the PEM bundle used to verify the admin’s server certificate. When set, it replaces the OS trust store rather than adding to it. That is the safer choice: after you pin the admin’s trust anchor, a public certificate authority can no longer impersonate the admin. Leave it unset to use the OS roots, including an internal CA that is already installed there.
  • On macOS, Go does not read SSL_CERT_FILE; a private CA must be supplied with --admin-tls-ca.
  • All three flags require an https --admin-url. The runner refuses TLS flags on a plaintext URL or in --task-file mode, where it never dials the admin.
docker run --rm \
  -v mockarty-coder-state:/home/coder/.mockarty-coder \
  -v /etc/mockarty/pki:/etc/mockarty/pki:ro \
  -e MOCKARTY_CODER_TOKEN=<namespace-api-token> \
  -e MOCKARTY_CODER_SECRET=<runner-transport-secret> \
  ghcr.io/your-org/mockarty-coder-runner:version \
  --pull --admin-url https://mockarty.company.example \
  --admin-pubkey <installation-public-key> \
  --admin-tls-ca /etc/mockarty/pki/private-ca.pem \
  --admin-tls-cert /etc/mockarty/pki/runner.crt \
  --admin-tls-key /etc/mockarty/pki/runner.key \
  --namespace my-team --runner-id coder-01

The private key is read from the file only; it is never logged, written to the work root, or included in a task or report. Replacing the client certificate or key file on disk is picked up on the next connection without restarting the runner; the CA bundle is read at startup, so restart the runner after changing it. If the admin certificate is publicly trusted and no client certificate is required, omit all three flags.

Docker isolation also requires a pre-pulled engine image in --image and access to a dedicated or rootless Docker daemon. The runner image contains the Docker CLI but no daemon. Mount the daemon socket into the runner container (normally at /var/run/docker.sock) and add the socket’s group ID with Docker’s --group-add; the runner fails before registration if the CLI or daemon is unavailable. A host Docker socket grants broad control over that host, so do not share a general-purpose production daemon with untrusted autonomous workloads. Anyone who controls that daemon can inspect a workload container’s environment; treat the daemon and its operators as part of the trusted secret boundary. Prefer a dedicated runner host or rootless daemon and restrict its network separately. The --sandbox local example above is intentionally unsandboxed and is suitable only for an isolated development runner.

Model for transferred interactive sessions

A standalone OpenCode runner uses DeepSeek deepseek-flash and the runner’s DEEPSEEK_API_KEY by default when continuing an interactive session transferred from Desktop. To use an OpenAI-compatible service managed by your organization, add --hosted-model-base-url https://models.company.example/v1 to the persistent runner’s --pull or --listen command. The default provider and model for that endpoint are deepseek and deepseek-flash. Set --hosted-model-provider and --hosted-model to select a different provider and model.

Use an HTTPS base URL without credentials, query parameters, or a fragment. HTTP on 127.0.0.1 or [::1] is available for a service running next to the runner in a local test. If the service requires a key, inject MOCKARTY_CODER_HOSTED_MODEL_API_KEY into the runner’s launch environment through your secret manager. The runner keeps that key in its provider relay. These options apply to transferred interactive sessions. Autonomous jobs continue to use their assigned server model.

Sandbox isolation: single-tenant and pooled fleet

Each Coder Runner registration serves one concrete workspace. Several users of that workspace can use the runner at the same time. The default is one ordinary task (--max-concurrent=1) and up to two retained interactive sessions (--max-hosted-sessions=2), subject to sandbox capacity. Each Docker session has its own checkout and container. To serve another workspace from the same machine, use a separate runner process with its own registration, credentials, and work directory.

The pooled preset requires --sandbox docker. A runner configured with --sandbox local and the pooled preset refuses startup.

--sandbox docker gives every task its own container. A sandbox preset decides how strict that container is. The default, onprem, is safe for a single-tenant runner and keeps the historical bridge network. A pooled fleet starts with --sandbox-isolation pooled:

onprem (default) pooled
Root filesystem read-only; writable /work and /tmp read-only (cannot be disabled); writable /work and /tmp
Privilege escalation all capabilities dropped, no-new-privileges same
CPU / memory / processes 2 CPU / 2g / 512 1 CPU / 1g / 256, no swap
Writable /tmp 1g 256m
Network egress allow deny
Shared Docker capacity for tasks and interactive sessions MOCKARTY_CODER_SANDBOX_MAX when set --max-concurrent by default, overridden by MOCKARTY_CODER_SANDBOX_MAX

A pooled runner defaults to --sandbox-egress deny: the container has no network interface, so it cannot reach an LLM endpoint or a package registry. Use it for jobs that need no egress. Jobs that need network access run with an allowlist proxy instead:

docker run --rm \
  -v mockarty-coder-state:/home/coder/.mockarty-coder \
  -e MOCKARTY_CODER_TOKEN=<namespace-api-token> \
  -e MOCKARTY_CODER_SECRET=<runner-transport-secret> \
  -e MOCKARTY_CODER_SANDBOX_EGRESS=proxy \
  -e MOCKARTY_CODER_SANDBOX_EGRESS_NETWORK=mockarty-egress \
  -e MOCKARTY_CODER_SANDBOX_EGRESS_PROXY=http://egress-proxy:3128 \
  ghcr.io/your-org/mockarty-coder-runner:version \
  --pull --admin-url https://mockarty.company.example \
  --namespace my-team --runner-id coder-01 \
  --engine opencode --sandbox docker --sandbox-isolation pooled \
  --image <pre-pulled-engine-image>

egress=proxy sets HTTP_PROXY/HTTPS_PROXY/NO_PROXY itself (a task cannot override them) and, for a pooled runner, attaches the container only to the named Docker network — the network is mandatory there. Create that network as internal and run your allowlist proxy on it; the proxy owns the allowlist. An on-premises runner may omit the network and keep the default bridge. The guarded server-model transport uses a host loopback relay, so it needs egress=allow (or egress=proxy on the default bridge with the Docker gateway — usually 172.17.0.1 — listed in MOCKARTY_CODER_SANDBOX_NO_PROXY); a deny sandbox cannot use it. The runner refuses to start on an inconsistent combination instead of silently running a weaker sandbox.

The two flags override the corresponding environment variables. The runner reads:

Variable Meaning
MOCKARTY_CODER_SANDBOX_ISOLATION preset: onprem (default) or pooled
MOCKARTY_CODER_SANDBOX_EGRESS egress mode: allow, deny or proxy
MOCKARTY_CODER_SANDBOX_EGRESS_NETWORK, MOCKARTY_CODER_SANDBOX_EGRESS_PROXY, MOCKARTY_CODER_SANDBOX_NO_PROXY proxy-mode settings; the proxy URL may contain credentials and is never logged
MOCKARTY_CODER_SANDBOX_CPUS, MOCKARTY_CODER_SANDBOX_MEMORY, MOCKARTY_CODER_SANDBOX_PIDS, MOCKARTY_CODER_SANDBOX_TMPFS container ceilings
MOCKARTY_CODER_SANDBOX_ULIMITS extra limits as name=soft:hard, comma-separated, e.g. nofile=1024:1024
MOCKARTY_CODER_SANDBOX_FILE_BYTES, MOCKARTY_CODER_SANDBOX_WORKSPACE_BYTES per-file ceiling and post-run workspace accounting
MOCKARTY_CODER_SANDBOX_MAX, MOCKARTY_CODER_SANDBOX_QUEUE_TIMEOUT concurrent sandbox ceiling (0 = unlimited) and how long a job waits for a free one before the typed sandbox_unavailable refusal
MOCKARTY_CODER_SANDBOX_REAPER_INTERVAL how often containers left by previous runner processes are removed (0 = startup only)

MOCKARTY_CODER_SANDBOX_READONLY=0 disables the read-only root filesystem for an on-premises image that writes outside /work; a pooled runner refuses that value.

A task workspace is deleted after the job unless it is retained for recovery. At startup and on the reaper interval, a connected runner removes containers left by previous processes of the same deployment. Keep the server URL, workspace, installation identity when assigned, and work directory stable so the runner can recognize its own containers. Containers from versions without deployment labels need an operator check before removal. If no sandbox slot becomes free within the queue budget, the job fails with sandbox_unavailable so the admin can route it elsewhere.

Repository-provided Git hooks and filters are not executed by the host runner.
If a task changes protected repository settings or its sandbox cannot be
confirmed stopped, the runner refuses finalization or publication and retains
the failed workspace for recovery. Review the reported failure before starting
a new attempt.

When a coder task declares original files, the runner redeems them before the
engine starts. Configure the exact HTTPS POST endpoint in
MOCKARTY_CODER_MATERIAL_BROKER_URL and inject its Bearer service credential
through MOCKARTY_CODER_MATERIAL_BROKER_TOKEN. Neither value may be named by a
task as a model, repository, or workspace credential. The runner verifies each
declared size, SHA-256 digest, MIME type, and response body, stages the complete
set under .mockarty-materials/, and does not expose one-time handles to the
coding engine or its report. The broker must bind redemption to the supplied
task, lease generation, logical attempt, design digest, and plan digest.

Air-gapped (offline) installation

An air-gapped installation runs the same admin node and pull-mode runner with
no outbound network at all. The reference shape is a single isolated host: the
admin node, the runner, the model endpoint and the git repository all stay on
loopback or on the local filesystem.

  • The admin node uses local state: DB_USE=sqlite, DB_DSN=<path>,
    CACHE_TYPE=inmemory, and listeners bound to loopback
    (HTTP_BIND_ADDR=127.0.0.1, MCP_BIND_ADDR=127.0.0.1).
  • The licence is a self-contained token signed before the install. Activate it
    in Settings → License (the same action is
    POST /api/v1/admin/licenses/activate); no licence server is contacted.
  • Model access is a local OpenAI-compatible endpoint (Ollama, vLLM, LM Studio,
    or another gateway on the same host). Create an LLM profile with provider
    custom, the local baseUrl (for example
    http://127.0.0.1:11434/v1) and an empty API key. That profile serves
    mission decomposition and the advisory review; the coding engine uses the
    model configured for the engine itself.
  • The coding engine must already be present in the runner image, or on the
    runner host when --sandbox local is used. Pre-pull engine and sandbox
    images and copy model weights before crossing the air gap.
  • Keep the runner work root (--workroot) on persistent storage separate from
    the admin database. It holds pending result deliveries and replay receipts,
    not only checkouts.

Admin node, loopback only, production mode, local state:

ENV=production \
HTTP_BIND_ADDR=127.0.0.1 HTTP_PORT=5770 \
MCP_BIND_ADDR=127.0.0.1 MCP_PORT=5772 HTTPS_ENABLED=false \
DB_USE=sqlite DB_DSN=/srv/mockarty/data.db CACHE_TYPE=inmemory \
MOCKARTY_CODER_ADMIN_URL=http://127.0.0.1:5770 \
MOCKARTY_CODER_ATTEST_KEY="<base64-ed25519-seed>" \
ANALYTICS_ENABLED=false \
./mockarty

Runner, pull mode, local state:

MOCKARTY_CODER_TOKEN=<namespace-api-token> \
MOCKARTY_CODER_SECRET=<runner-transport-secret> \
./mockarty-coder-runner \
  --pull --admin-url http://127.0.0.1:5770 --namespace my-team \
  --admin-pubkey <installation-public-key> \
  --runner-id coder-airgap-01 --sandbox docker --image <pre-pulled-engine-image> \
  --workroot /var/lib/mockarty-coder --engine opencode

--sandbox local removes process isolation; use it only on a dedicated,
isolated host. The runner advertises only the engine and sandbox named on its
command line, so the admin never dispatches work this process cannot execute.

Acceptance check. Run the admin and runner in a network context that can
reach loopback and nothing else — a loopback-only network namespace or a
firewall rule that denies all other egress. Proxy environment variables alone
are not proof: a client that ignores them still reaches the network. Then
verify all four points:

  1. an outbound request from the same context fails, for example
    curl https://api.deepseek.com/v1/models cannot resolve or connect;
  2. curl http://127.0.0.1:5770/health answers 200;
  3. a coding mission completes and its commit is present in the local
    repository;
  4. a mock answers at /stubs/<namespace>/<route> and an API Tester collection
    run passes.

The reference run used an OS-level loopback-only sandbox on the host plus a
proxy pointing at a closed port, and sampled the admin, runner and engine
sockets for the whole run: no non-loopback connection appeared.

Managed fleet through a proxy. Pull mode uses the runner host’s standard
HTTP client, so HTTP_PROXY and HTTPS_PROXY are honoured for the admin URL.
A runner registered and polled through a forward proxy while every other
outbound connection stayed blocked. The runner does not present a client
certificate itself; when your policy requires mTLS, terminate TLS at an owned
proxy in front of the admin and point the runner at that proxy.

Custom CA. The runner verifies TLS against its host trust store. Install
the issuing CA there before starting the runner. On Linux, Go also honours
SSL_CERT_FILE; on macOS the system keychain is used and adding a CA to it
requires an administrator.

Upgrade, drain and rollback. The schema records a compatibility floor.
Before a rolling upgrade, check the database and both binaries:

./mockarty --migrate version

The output names the database version, the binary schema version, and the
oldest binary version the database accepts. A binary below that floor refuses
to start and names the floor and the remedy. To roll back deliberately, run
the newer binary with ./mockarty --migrate down-to <version>, then confirm
the older binary reports that it can serve the schema.

Queued jobs survive a runner restart: stop the runner with SIGTERM, start the
replacement process with the same --workroot, and it registers again and
leases the pending jobs. A stopped admin also keeps its missions and queued
jobs in the local database; both were verified across a restart.

Push-mode start

Push mode suits installations where the admin node can reach the runner directly: the admin hands a job to the runner the moment it is queued, instead of waiting for the runner’s next poll.

The runner still registers with the admin, so it needs the same namespace token as a pull runner, plus the address the admin will dial:

docker run --rm -p 7480:7480 \
  -v mockarty-coder-state:/home/coder/.mockarty-coder \
  -e MOCKARTY_CODER_TOKEN=<namespace-api-token> \
  -e MOCKARTY_CODER_SECRET=<runner-transport-secret> \
  -e DEEPSEEK_API_KEY=<model-key> \
  ghcr.io/your-org/mockarty-coder-runner:version \
  --listen 0.0.0.0:7480 --callback-url http://coder-01.internal:7480 \
  --admin-url https://mockarty.company.example \
  --admin-pubkey <installation-public-key> \
  --namespace my-team --runner-id coder-01 \
  --engine opencode --sandbox local

--callback-url is the address the admin dials. When --listen already names a concrete host it is derived automatically; a wildcard bind such as 0.0.0.0:7480 has no dialable form, so the runner refuses to start without an explicit value rather than advertising an address nothing can reach.

The admin authenticates its outbound pushes with a credential it issues to this runner at registration. The runner adopts it automatically.

A declined push job returns to the queue. Results travel back over the same durable path as in pull mode. SIGTERM drains accepted work before shutdown.

When the server and a long-lived OpenCode push runner both support session recovery, the runner keeps its registration on shutdown while it has recoverable sessions. Restart with the same work directory, runner ID, Space, callback URL and credentials. If the original runner stays offline, the session owner can choose another eligible runner in Development once the saved copy is available. Older servers continue to accept ordinary push jobs.

Repository credentials

A task may name a repository credential through repo.tokenEnv; it never carries the token value. The runner accepts that environment name only when MOCKARTY_CODER_REPO_TOKEN_BINDINGS binds the repository’s exact HTTPS origin to it:

MOCKARTY_CODER_REPO_TOKEN_BINDINGS="git.company.example=GITLAB_TOKEN,github.com=GH_TOKEN"

The format is host=ENV[,host=ENV]. For default HTTPS port 443, use only the host. For a non-default port, use host:port=ENV, for example git.company.example:8443=GITLAB_TOKEN. Matching is exact, repository URLs must use HTTPS, and one environment variable must not be rebound to another origin. Runner-internal credentials such as MOCKARTY_CODER_TOKEN, MOCKARTY_CODER_SECRET, the attestation signing key, and the Mockarty MCP key are never valid repository credentials.

A task that names no credential — which is every autonomous mission, because the Delivery Config holds a credential reference rather than the runner’s environment names — uses the binding for the repository’s exact origin automatically. An origin with no binding stays anonymous, which is the correct behaviour for a public repository. Configure the binding and the token in the runner’s environment once: missions then push to that origin with the credential assigned to it, and the token is never sent to the admin or stored in a mission.

The token is provided to Git through a private, short-lived askpass helper. It is not placed in process arguments or saved in .git/config.

Health and shutdown

Push mode exposes GET /healthz for liveness and GET /readyz for admission readiness. Readiness becomes unavailable as soon as draining starts, while liveness stays available until in-flight work has finished. Completed-task receipts are written atomically under the work root. If the same queue attempt is physically redelivered after a lost response or process restart, the runner sends the cached result instead of repeating the paid task; an explicit new retry remains a new execution even when its task text is unchanged. A result saved immediately before a crash is delivered before the restarted runner accepts more work, and push mode keeps retrying a durable pending result without requiring another restart. Pull mode also stops claiming work when heartbeat/lease safety or durable result delivery is uncertain. Shutdown budgets follow the longest admitted task timeout plus result-delivery time; the runner does not report a clean deregistration while paid work remains unresolved.


Speech-to-text (transcription)

When at least one transcription component is live, Discussions gain:

  • automatic text transcripts under voice messages,
  • transcripts + an AI digest (decisions, questions, action items) for meeting recordings.

Audio travels only between the component and the admin node. For step-by-step
setup (local binary, Docker, Helm, model sizes and troubleshooting), see
Voice transcription.

Long recordings (meetings) are transcribed segment by segment, and the text
grows on the transcription job as each segment is recognised — you do not have
to wait for the whole file before reading the first minutes. The finished
transcript is still posted once, complete, under the recording.

When the assistant reuses a transcription for a recording, its requested
language must match. If the source cannot be checked, the request fails without
creating a second job. A selected model is not confirmation of which model
produced an existing transcript: model information remains unavailable unless
execution evidence confirms it.

Run with Docker Compose

A ready compose file ships with the distribution (deploy/compose/docker-compose.whisper-runner.yml). The image bakes in a small multilingual model, so the minimal start is two variables:

MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<token> \
  docker compose -f docker-compose.whisper-runner.yml up -d

Dedicate a pool to one namespace and scale it:

MOCKARTY_URL=... MOCKARTY_API_TOKEN=... RUNNER_NAMESPACE=my-team \
  docker compose -f docker-compose.whisper-runner.yml up -d --scale whisper-runner=2

Use a different recognition model without rebuilding the image — mount a directory with a GGML model file:

WHISPER_MODEL_DIR=/srv/models WHISPER_MODEL_FILE=ggml-large-v3-turbo-q5_0.bin \
  MOCKARTY_URL=... MOCKARTY_API_TOKEN=... \
  docker compose -f docker-compose.whisper-runner.yml up -d

Run in Kubernetes (Helm)

The Mockarty Helm chart includes the component — enable it in your values:

whisperRunner:
  enabled: true
  namespace: "sandbox"     # namespace it serves
  apiToken: ""             # inline for dev; use existingSecret in production
  existingSecret: ""       # Secret holding API_TOKEN

Run the binary directly

The component wraps a local whisper-server process (from the whisper.cpp project) — install it and point the runner at a GGML model:

Variable Required Meaning
MOCKARTY_URL yes Admin node base URL
MOCKARTY_API_TOKEN yes API token
WHISPER_MODEL_PATH yes Path to the GGML model file
WHISPER_SERVER_BIN no Path to whisper-server (default: found on PATH)
WHISPER_LANGUAGES no Languages to advertise (default auto)
RUNNER_NAME no Display name (default whisper-<hostname>)
RUNNER_NAMESPACE no Serve only this namespace (empty = shared fleet)
RUNNER_CONCURRENCY no Parallel jobs (default 1)
WHISPER_TRIM_SILENCE no 1 = pre-trim silence with ffmpeg for faster jobs
RUNNER_PUSH_ADDR no Accept jobs handed over directly (see How work reaches a component)
RUNNER_ADVERTISE_HOST no Host name the admin node uses to reach this component
RUNNER_PUSH_SECRET no Shared secret for direct hand-over (falls back to MOCKARTY_A2A_SECRET)
MOCKARTY_URL=http://localhost:5770 MOCKARTY_API_TOKEN=<token> \
  WHISPER_MODEL_PATH=/models/ggml-small-q5_1.bin \
  ./mockarty-whisper-runner

For CI-style ephemeral use, --once processes a single job and exits.

Alternative: external transcription API

If you already operate a speech-to-text service with an OpenAI-compatible audio endpoint, skip the component and point the admin node at it:

MOCKARTY_TRANSCRIBE_URL=https://stt.internal/v1/audio/transcriptions
MOCKARTY_TRANSCRIBE_KEY=<key>          # optional
MOCKARTY_TRANSCRIBE_MODEL=whisper-1    # optional

When both are present, live components take priority; the external API handles namespaces no component covers.


Voice synthesis (server-side Speak)

Text messages in Discussions always offer browser-side read-aloud (each person hears it locally). With a voice-synthesis component installed, the Speak action can also produce a shared voice reply — an audio message posted into the thread that everyone can play.

Run with Docker Compose

A ready compose file ships with the distribution (deploy/compose/docker-compose.tts-runner.yml). The image bakes in a Russian voice by default, so the minimal start is two variables:

MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<token> \
  docker compose -f docker-compose.tts-runner.yml up -d

Dedicate a pool to one namespace and scale it:

MOCKARTY_URL=... MOCKARTY_API_TOKEN=... RUNNER_NAMESPACE=my-team \
  docker compose -f docker-compose.tts-runner.yml up -d --scale tts-runner=2

Use another voice without rebuilding the image — mount a directory with a Piper voice model (.onnx + its .onnx.json):

PIPER_VOICE_DIR=/srv/voices PIPER_VOICE_FILE=en_US-lessac-medium.onnx \
  MOCKARTY_URL=... MOCKARTY_API_TOKEN=... \
  docker compose -f docker-compose.tts-runner.yml up -d

Run in Kubernetes (Helm)

The Mockarty Helm chart includes the component — enable it in your values:

ttsRunner:
  enabled: true
  namespace: "sandbox"     # namespace it serves
  apiToken: ""             # inline for dev; use existingSecret in production
  existingSecret: ""       # Secret holding API_TOKEN

Run the binary directly

The component wraps the Piper speech synthesizer — install piper and download a voice model (.onnx):

Variable Required Meaning
MOCKARTY_URL yes Admin node base URL
MOCKARTY_API_TOKEN yes API token
PIPER_MODEL yes Path to the Piper voice model (.onnx)
PIPER_BIN no Path to piper (default: found on PATH)
PIPER_VOICE_NAME no Voice name to advertise (default: model file name)
RUNNER_NAME no Display name (default tts-<hostname>)
RUNNER_NAMESPACE no Serve only this namespace (empty = shared fleet)
RUNNER_CONCURRENCY no Parallel jobs (default 1)
RUNNER_PUSH_ADDR no Accept jobs handed over directly (see How work reaches a component)
RUNNER_ADVERTISE_HOST no Host name the admin node uses to reach this component
RUNNER_PUSH_SECRET no Shared secret for direct hand-over (falls back to MOCKARTY_A2A_SECRET)
MOCKARTY_URL=http://localhost:5770 MOCKARTY_API_TOKEN=<token> \
  PIPER_MODEL=/models/ru_RU-irina-medium.onnx \
  ./mockarty-tts-runner

--once is supported for ephemeral CI use. Without this component the shared-voice option is unavailable; local browser read-aloud keeps working.


Voice task defaults (per namespace)

A namespace can say two things about its automatic voice work — voice notes queued for transcription and replies queued for speech — in Settings → AI & Meetings:

  • Voice language — the default language (BCP-47, e.g. ru-RU) stamped on automatically queued voice tasks. A request that names its own language always wins.
  • Voice runner selector — comma-separated key=value labels a runner must advertise (for example region=eu,gpu=true). Leave empty to let any capable runner serve the namespace.

Both settings are constraints on where work goes: the queue skips a runner that does not match the selector (or the advertised language) and leaves the task for one that does. When no live runner matches, the task stays in the queue with a visible reason instead of being served by the wrong runner or hanging silently — add a runner whose advertised labels fit, and the queue picks it up.

The same settings are available over the API (GET/PUT /api/v1/namespaces/{namespace}/ai-settings, fields voiceLanguage and voiceRunnerSelector) and to agents through the namespace_voice_settings_get / namespace_voice_settings_update MCP tools.

Semantic search is also available to external agents through semantic_search and semantic_similar. Wiki results are checked against current page and parent permissions; hidden, deleted or outdated indexed excerpts are omitted. Whiteboard results also require current read permission and matching content from a live board and workbook. Deleted diagram labels are not included. Search reads at most 1 MiB from any board scene and at most 4 MiB of board source data per request; oversized sources are omitted and the response reports degraded: true with reason: source_budget. Similarity requests whose starting board exceeds the limit return HTTP 503 with the same reason. The search examines up to 100 candidates, so fewer results do not prove that no other relevant source exists. Use the ProjectMemory tools for governed product facts and personal/project knowledge. Re-indexing a wiki page by reference also requires current read access. Legacy meeting transcripts are excluded from this generic search until their current message and access can be verified; excludedKinds identifies the omitted source families. Open meeting history through its authorized chat instead.

With a semantic component registered, Mockarty adds meaning-based capabilities on top of regular keyword search:

  • Semantic search across product entities (cases, wiki pages, mocks…),
  • Find similar — near-duplicate detection for test cases, related wiki pages,
  • vector-backed Knowledge Base features.

Vectors are stored in Mockarty’s own database — the component is stateless compute. Killing or scaling it loses nothing.

Unlike the two components above, the admin node calls this component, so it must be reachable from the admin at a URL you advertise:

Variable Required Meaning
MOCKARTY_URL yes Admin node base URL
MOCKARTY_API_TOKEN yes API token
ADVERTISE_URL yes URL the admin uses to reach this component
EMBED_MODEL_PATH yes Path to the GGUF embedding model
EMBED_SECRET yes for network listeners Bearer secret the admin must present. It may be omitted only when LISTEN_ADDR is an explicit loopback IP
LISTEN_ADDR no Listen address (default :8090)
RUNNER_NAME no Display name (default rag-<hostname>)
RUNNER_NAMESPACE no Serve only this namespace (empty = shared fleet)
LLAMA_ARG_THREADS no llama.cpp worker threads (default: detected container CPU budget)
LLAMA_ARG_CTX_SIZE no Context size (default 2048)
LLAMA_ARG_BATCH no Physical batch size; must be at least the context size (default 2048)
LLAMA_ARG_UBATCH no Micro-batch size; must not exceed the physical batch (default 2048)
LLAMA_ARG_N_PARALLEL no Concurrent embedding slots (default: the smaller of 2 and the configured worker-thread budget)

The component wraps a local llama-server (from the llama.cpp project) in embeddings mode. GET /healthz is the liveness endpoint. GET /readyz returns ready only after the model is available and the component is registered with the admin node. Embedding requests must use POST /v1/embeddings with JSON and the configured Bearer secret. Requests over 8 MiB are rejected; when all configured slots are busy, the component returns 429 with Retry-After so callers can retry without overloading the model.

Run with Docker Compose

MOCKARTY_URL=http://admin:5770 MOCKARTY_API_TOKEN=<token> \
  ADVERTISE_URL=http://rag-runner:8090 EMBED_SECRET=<random-secret> \
docker compose -f docker-compose.rag-runner.yml up -d

Set RAG_RUNNER_IMAGE to the image mirrored into your registry. If Compose needs to build it locally, set RAG_MODEL_SHA256 to the verified SHA-256 of RAG_MODEL_URL; a missing or mismatched checksum stops the build. Set RAG_MODEL_MODE=NONE only when your own model is mounted at runtime: set EMBED_MODEL_DIR to its host directory and point EMBED_MODEL_PATH to /ext-models/<file>.

Run in Kubernetes (Helm)

ragRunner:
  enabled: true
  namespace: ""          # empty = shared; set a namespace for dedicated compute
  embedSecret: ""       # bearer the admin presents on embedding calls
  apiToken: ""          # inline for dev; use existingSecret in production
  existingSecret: ""    # Secret holding API_TOKEN + EMBED_SECRET

The chart wires ADVERTISE_URL to the in-cluster service automatically.

Alternative: external embedding API

Any OpenAI/Ollama/TEI-compatible embedding server works — point the admin node at it instead of running the component:

MOCKARTY_EMBED_URL=https://embeddings.internal/v1/embeddings
MOCKARTY_EMBED_KEY=<key>              # optional
MOCKARTY_EMBED_MODEL=<model-name>     # optional

Without a component and without MOCKARTY_EMBED_URL, semantic features stay hidden and regular keyword search keeps working.


Monitoring

Registered components are visible over the API:

curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/transcribe/runners
curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/transcribe/jobs
curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/tts/runners
curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/semantic/endpoints
curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/semantic/status

Each entry carries the component’s name, model, namespace, last heartbeat and job counters — a component that stops heartbeating drops out of dispatch automatically.
Recent transcription jobs show recording details only to people who can open
the source recording. System administrators and integration tokens with Space
access can monitor the queue status separately.
After an admin restart removes a speech runner’s registration, the runner
registers again on its next heartbeat. A temporary network or server error
does not create another registration; check the runner list once the admin
recovers.

Jobs waiting on an unanswered runner

When Mockarty pushes a job to a component and the response never comes back —
a dropped connection, a timeout, a component that died mid-answer — the job is
held, not retried. The component may already be doing the work, and
transcription and synthesis both cost real money, so handing the same job to a
second component would pay for it twice.

Held jobs are listed on their own. Listing requires read access to the target
namespace; a namespace outside the caller’s scope is hidden:

curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/transcribe/jobs/fenced
curl -H "Authorization: Bearer <token>" http://localhost:5770/api/v1/tts/jobs/fenced

Each entry names the component the job is held under and how long it has been
waiting. Nothing moves it until you say what happened — check the component,
then record the answer. Reconciliation requires write access to the target
namespace; viewers and auditors cannot settle paid work.

curl -X POST -H "Authorization: Bearer <token>" -H "Content-Type: application/json" \
  -d '{"runnerId":"<component id>","outcome":"not_started"}' \
  http://localhost:5770/api/v1/transcribe/jobs/<job id>/reconcile-delivery
  • not_started — the component never began. The job goes back in the queue for
    another component and the failed delivery is not counted against its retries.
  • started — it did begin. The job is closed without being repeated.

An agent does the same through media_delivery_queue and
media_delivery_reconcile. Both record a fact you established; neither one
checks the component for you.

The CLI and all supported SDKs expose the same two operations:

CLI

mockarty-cli media-delivery queue --engine transcribe
mockarty-cli media-delivery reconcile <job-id> --engine transcribe \
  --runner-id <component-id> --outcome not_started

Go

page, err := client.MediaDelivery().ListFenced(ctx, "transcribe")
err = client.MediaDelivery().Reconcile(ctx, "transcribe", jobID, runnerID, "not_started")

Python

page = client.media_delivery.list_fenced("transcribe")
client.media_delivery.reconcile("transcribe", job_id, runner_id, "not_started")

Java

Map<String, Object> page = client.mediaDelivery().listFenced("transcribe");
client.mediaDelivery().reconcile("transcribe", jobId, runnerId, "not_started");

See also