Realm metadata
import { defineRealm } from "@embabel/realm-types";
export default defineRealm({ name: "oncall-radar", version: "0.1.0", host: "wasm", execution: "captured", description: "Open incidents on the status pages you depend on.", tags: ["status", "incidents"], handlers: { /* ... */ },});| Field | Rule |
|---|---|
name, version |
Required. Name is kebab-case; version is the realm’s semantic version. The legacy YAML default remains 0.0.0. Neither value grants authority. |
host |
Optional "wasm" or "docker" placement hint. "docker" names the Node bundle host, which a host may run natively or in a container; it does not require Docker. Absent means infer from the available handler source/artifact using placement. A data-only realm needs no handler artifact. |
execution |
"conventional" by default; "captured" selects the captured declaration forms and admission requirements. |
runtime |
Guest language, "typescript" by default; also "python", "ruby", "lua", "compiled". A recognized language does not promise host execution support. An unsupported runtime refuses handler binding explicitly. In the captured profile, a host must refuse channels, sources or consumers when the runtime is other than "typescript", even if it supports that runtime for handlers. |
entry |
Realm-relative handler source path, with no leading slash, backslash or .. segment. Defaults to wasm/handlers.ts, wasm/handlers.py for Python, or wasm/src/lib.rs for compiled guests. An explicit entry must exist. When handlers need compilation, the effective default must exist too; a realm with no handlers needs no entry. A host that cannot build the declared or default entry refuses handler binding, naming the entry, and never selects another file. The reference source builder builds only wasm/handlers.ts or wasm/handlers.js. |
icon |
Optional path to an existing file inside the realm. Remote URLs are refused, as in Icons. |
description, author, url |
Optional descriptive strings. url is the realm’s information link, not an import or capability. |
tags |
Optional list of discovery strings; omission and an empty list both declare no tags. |
category |
Optional catalogue category. Unknown categories are reported and use the host’s fallback; they do not refuse loading. |
maturity |
Readiness claim, compared case-insensitively: experimental, beta, stable, deprecated. Missing or unknown values mean unstated, never stable. See maturity. |
exports |
Optional selection of public declarations. Complete wildcard, unknown-name and cross-kind selection semantics are not yet specified; do not rely on SDK-specific expansion for portable behavior. It never expands a grant. |
retry |
Optional retry request. A portable field/default and effect-safety contract is not yet specified. Do not assume automatic retry of an effectful call; captured retries retain the original authority. |
capabilities |
Captured-only list of requested grants. "model" asks for the model call; the owner may grant none. |
skills |
Captured-only list of shipped skill names under skills/<name>/SKILL.md. Skill content is captured and remains subject to model-call approval. |
generatedAt |
Optional legacy timestamp metadata; default 1970-01-01T00:00:00Z. It neither triggers generation nor changes permission or proves freshness. |
Shipped skills
Section titled “Shipped skills”A listed skill is a captured resource, not code to execute during definition evaluation.
Names must be unique and must resolve to a contained skills/<name>/SKILL.md file. A skill
cannot acquire tools or another realm’s capabilities by naming them. Model calls use admitted
skill content, not later edits to the working tree. The complete portable frontmatter,
reference traversal, cycle and digest-format rules are not yet specified. SDK packaging
checks alone do not establish host enforcement of those rules.

