Use the official MCP transport and the relevant supplementary guide for your task: semantic intake, native execution, VFS/VRAM continuity, Observer learning, assessment and delivery. Keep each runtime family and its evidence explicit.
Operational BRAINK and private VFS capabilities retain their separate owner boundary.
Native runtime client / 1.0.0
Connect to the existing WEB4 runtime.
The WEB4 client follows the source-bound gateway contract for runtime status, domain topology, spawning and reanchoring. Supply an existing authorised HTTP adapter; this download does not provision a gateway or credentials. Domain changes retain the native owner and pipeline admission controls. Public MCP exposes only public catalogue and indexing-policy reads.
01 / Choose your purpose
One clear starting point. Separate authority when you need it.
Explore public information
Start here. The downloaded starter reads Keddeh’s published route catalogue. No account token is needed for this public transport.
https://www.keddeh.com/api/mcp
Use an MCP client, not an ordinary browser GET. This endpoint accepts protocol POST requests and exposes published_public_catalogue and public_indexing_allow_list; it cannot administer, sign or access private files.
Operational tasks use the separate owner-runtime client and the exact resource supplied by its supported connection. Public catalogue access does not supply owner authority.
Use the endpoint supplied by your connected app. The intended managed route is https://www.keddeh.com/mcp, but availability on a custom domain depends on hosting support. It is not the public starter’s default.
If the supported connection challenges with 401, use its OAuth flow for that exact resource. Do not reuse an owner-runtime token on a different endpoint, embed credentials in source files or fall back silently.
02 / Your first read
From download to a catalogue response.
Requires Node.js 22 or later. This example reads public information only; it does not dispatch work or change your systems.
Keep three files together.
Save the client, example and package manifest in the same folder.
Open a terminal in that folder. The example already selects the public endpoint.
npm install
npm start
Check the actual response.
A successful call prints a JSON result containing the published route catalogue. Check for an error before using it; a catalogue is not a runtime health check.
published_public_catalogue returns public route paths, titles, purposes and families from the deployed route contracts. It is read-only and does not fabricate runtime health.
Initialize → list tools → call the published tool → close the client. The client propagates errors so your application can report and retry them deliberately.
Routing and diagnostics
The starter consistently uses /api/mcp on www.keddeh.com. An ordinary browser visit can return 405 because the transport requires POST; that is not a failed MCP connection test.
What to check when a connection fails
Response
Next step
400
Check MCP initialization, JSON and required protocol headers.
401 / 403
Check the exact resource and supported authentication flow. Do not send a token intended for another runtime.
404
Check host and path against the selected contract.
405
Use the MCP client’s POST transport instead of a browser GET.
Network / 5xx
Keep the error and endpoint, then check service availability. Do not assume the call succeeded.
No automatic fallback to owner services, no automatic mutation retries.
Public indexing / ALLOW LIST
Check the reviewed search policy.
Use client.publicIndexingAllowList(['/SDK', '/apps/storage']) to inspect exact canonical-path eligibility. Omit paths to inspect the policy. Up to 50 literal site paths are accepted; URLs, query strings, fragments and dot segments are rejected. Encoded paths are matched literally, never decoded. Aliases identify their canonical target rather than becoming separate index entries.
Download the current allow list. This read-only service does not crawl, publish, submit pages to search engines or grant owner/customer access. It is not a runtime authorization allow list.
04 / Runtime and native file workflow
Carry the original record through.
Owner runtime client
The separate client discovers agent_registry, agent_dispatch and agent_receipt on the owner runtime. Use its supported managed OAuth connection or your authorised OAuth provider for that exact resource. Authentication failures propagate; catalogue access never supplies owner authority.
Read the namespace before each dependent mutation. Retain the original command identity, expectedVersion and server-issued lease. Resolve an interrupted request through its durable execution record before choosing a retry.
Use native Storage
Export the original record with exportRuntimeExecutionRecord(record), save the returned JSON to a file, then use Upload in Keddeh Storage. Native upload stores and reads back the full bytes; valid SDK exports retain their command identity and content digest.
Storage is VFS software with local and optional Drive sources. Importing a file does not execute a command, publish it, or produce an independent assessment. An actor record remains an actor record; assessment uses the existing separate report document number.
Large text files keep their full stored bytes without duplicating them in the upload metadata cache. Preview and download use the retained file.
Agentics / BRAINK integration guide
Connect the architecture, work and evidence.
Use this guide with the required supplementary contracts. The hosted task coordinator is one adapter within BRAINK, KEX, IL-LLM, VFS and ServerSpace. A complete workflow also resolves semantic intake, mirror admission, executable capability, state custody, observation, canonical learning, assessment and delivery.
Read the integrated supplementary guides for architecture, R26 governance, R6 Update Mirror, R5.1 Observer, R7 Process Genome, Observer², Language-as-Code, native teams, VFS/VRAM, local node, WEB4 and publication. Each guide states its prerequisites, handoff, verification and recovery. Source-defined programmes and current callable handlers are identified separately.
A credential authenticates a server-configured principal. The hosted namespace adapter does not attest which software model is acting and records model: UNATTESTED. A namespace partitions state within the owner estate. A task scope is an eligibility label. Neither a namespace name, a declared foundry nor an actor description creates permission.
Connection
Actual authority
Caller action
Public catalogue
Published public route data only
Use /api/mcp; no owner token is needed.
Managed owner connection
Trusted owner identity supplied by the hosting platform
Use the supported managed sign-in. Never forge oai-authenticated-* headers.
Existing dedicated agent bearer
Three transport tools: agent_registry, agent_dispatch and agent_receipt; multiple admitted capabilities behind dispatch
Use only the exact runtime resource and assigned work.
Existing scoped team bearer
Exact server-granted tools, namespaces, capabilities and foundries; enabled and unexpired
Use command IDs prefixed with the configured principal ID plus “:”, expectedVersion and a structured rationale.
Dedicated runtime MCP bearer
Its existing server-configured runtime scope; not equivalent to Sites owner identity for OWNER_CONTROL handlers
Use only when explicitly assigned. Catalogue access cannot supply it.
Grants are checked on requests. This documentation and SDK create no credentials, OAuth grants, memberships or persistent access. If the required scope is absent, stop and have the owner review access through the established process; do not switch credentials to evade denial.
2. Discover registration before scheduling
Initialize the MCP connection, call tools/list, then agent_registry({}). Select the exact capability ID and require cloud_state: BOUND, a nonempty runtime_binding and its actual input_constraints. The registered coordinator is skill://engineering/translation-ledger. Finding-specific knowledge projections without an executable contract remain BLOCKED.
Capability registration in this hosted adapter lives in source-bound registry/dispatcher contracts. Native template teams can instantiate admitted team/member definitions and execute registered adapters; see the team and execution guide. A client-declared capability or arbitrary uploaded program is not automatically a registered hosted executor. TASK_ENQUEUE registers a task in the queue, not a new capability. CONSTRUCTION_MAP records a provenance graph, not execution permission. New handlers and access grants require the separate authorised source/deployment and security workflows.
3. Read a coherent namespace
Call agent_registry({namespaceId, taskOffset: 0, taskLimit: 100}) with the exact assigned namespace. Follow nextOffset until null; verify that version and snapshotDigest remain unchanged across pages. If either changes, discard the partial view and start a new read. Retain id, foundryId, version, snapshotDigest, task state and lease identity. A missing namespace is not permission to create one.
The downloaded read-only example runs with Node.js 22+, the existing package manifest and runtime client. Set KEDDEH_NAMESPACE to an assigned existing namespace and use an already-authorised KEDDEH_RUNTIME_TOKEN or adapt the client to your supported OAuth provider. Keep tokens out of source control and logs.
4. Queue, claim, execute, heartbeat, submit
Queue the bounded task: dispatch the translation-ledger capability with input.kind: TASK_ENQUEUE and data fields id, foundry, capabilityId, scope, dependencies, maxAttempts, retryPolicy. Use an explicit retry policy, NEVER or IDEMPOTENT. Set dependencies to [] for the currently supported independent-task path.
Claim eligible work: TASK_CLAIM supplies scopes, capabilityIds and leaseMs. Omit taskId for fair eligible selection using foundry rotation and attempt ordering. Include taskId for an exact selected eligible task; an ineligible selection never falls through to another task. Inspect returned taskId, leaseId and leaseUntil; a prepared packet is not a lock.
Execute the task body separately: invoke the specific authorised handler or worker appropriate to that task. Queuing or leasing alone does not run the task. The registered native-team execute path does run its bounded worker and retains/submits the result; KEX and host controls have their own execution contracts. Follow the selected handler’s supplement.
Maintain the live lease: TASK_HEARTBEAT uses the returned taskId and original leaseId, plus a bounded leaseMs. Refresh namespace version before dispatch. The server enforces principal ownership and expiry.
Submit real evidence: retain the actual artifact, identify its digest scope, then TASK_SUBMIT with artifactId and a lowercase 64-hex SHA-256. TASK_SUBMITTED is pending independent assessment, not completed research approval or a deployed release.
import {prepareTaskCommand, inspectExecutionRecord} from './agentics-workflow.mjs';
// Preparation is local. Only runtime.dispatch(packet) requests a mutation.
const namespace = await inspectNamespace(runtime, assignedNamespace);
const packet = prepareTaskCommand({
namespace,
commandId: stableCommandId, // Team: exact configured principal ID + ':' + unique suffix.
foundryId: namespace.foundryId, // Retain existing context; omit when null.
kind: 'TASK_CLAIM',
data: {taskId: selectedTaskId, scopes: [assignedTaskScope], capabilityIds: [assignedTaskCapability], leaseMs: 300000},
rationale: {
objective: 'Claim eligible work in the assigned namespace',
reason: 'The authorised worker is ready to process matching work',
evidence: [namespace.snapshotDigest, originalTaskReference],
expectedEffect: 'One eligible task lease, or IDLE with blockers',
rollback: 'Read this command record before any retry; reconcile uncertain work',
impact: {users: 'Assigned operator workflow', systems: 'Existing namespace only', services: 'Native coordinator'}
}
});
// Inspect packet and confirm authority for this specific operation before dispatching.
const actorRecord = await runtime.dispatch(packet);
const result = inspectExecutionRecord(actorRecord);
// taskId requests that exact eligible task; the server will not substitute a sibling.
// Omit taskId only when fair eligible selection is intended.
if (result.semanticState === 'TASK_CLAIMED') {
console.log(result.output.taskId, result.output.leaseId, result.output.leaseUntil);
} else { console.log(result); }
// The worker separately executes the assigned task through its authorised handler.
// Retain the REAL artifact first; calculate SHA-256 over the documented artifact bytes.
const latest = await inspectNamespace(runtime, assignedNamespace);
const submit = prepareTaskCommand({
namespace: latest, foundryId: latest.foundryId, commandId: newSubmissionCommandId,
kind: 'TASK_SUBMIT',
data: {taskId: claimedTaskId, leaseId: originalLeaseId,
submission: {artifactId: retainedArtifactId, sha256: retainedArtifactSha256}},
rationale: submissionRationale
});
const submitted = await runtime.dispatch(submit);
console.log(inspectExecutionRecord(submitted));
// TASK_SUBMITTED retains actor evidence. It is not independent approval or publication.
5. Compare-and-swap and command identity
Each namespace mutation in this workflow carries the current expectedVersion. Owner-control and local-node families use their separate revision or generation contracts. The host restores the digest-checked namespace snapshot, executes the registered handler, stores the next snapshot and execution record, then commits the version through compare-and-swap (CAS). Concurrent changes return a conflict rather than silently overwrite state. Keep the existing namespace foundryId unchanged; omit a null foundry context. Scoped team calls additionally require an explicit matching foundry grant.
A stable command ID binds to a fingerprint containing capability, input, namespace, foundry and expectedVersion. Exact retries retain the original ID and payload. Changed payload or version is a new request and requires a new ID after the original outcome has been reconciled. Never rebase expectedVersion automatically under the old command ID. The downloadable client performs preflight reads but the server’s CAS remains authoritative. Its expectedVersion preflight can reject an exact retry even when the original command already committed, because that commit advanced the namespace. Query the original command with runtime.receipt(originalCommandId) before any manual retry; a stale client preflight is not evidence that the original command failed.
6. Read what actually happened
Use agent_receipt({commandId}) for the original durable record. Check its command identity, namespace version/digest, handler state and semantic result. AGENT_EXECUTED only says the handler ran; its semantic output may be IDLE or a rejected task transition. The record classification is ACTOR_EXECUTION_RECORD_NOT_INDEPENDENT_ASSESSMENT; the compatibility field “receipt” is not an assessment report number.
const saved = await runtime.receipt(originalCommandId);
const observed = inspectExecutionRecord(saved);
console.log(observed.transportState, observed.handlerState, observed.semanticState);
// Export produces a string. This example retains it to a new local file.
import {writeFile, readFile} from 'node:fs/promises';
import {createHash} from 'node:crypto';
import {exportRuntimeExecutionRecord} from './runtime-client.mjs';
const exported = await exportRuntimeExecutionRecord(saved);
await writeFile('execution-record.json', exported, {flag: 'wx'});
const retained = JSON.parse(await readFile('execution-record.json', 'utf8'));
const hash = createHash('sha256').update(JSON.stringify(retained.record), 'utf8').digest('hex');
if (retained.commandId !== saved.commandId || hash !== retained.sha256) {
throw Error('Retained execution-record identity or digest mismatch');
}
// Digest scope: UTF-8 JSON.stringify(record), not the export envelope or task artifact.
7. Recover without replaying uncertain work
Observation
Required next step
Lost response, AGENT_DISPATCHING or AGENT_UNCERTAIN
Read the original command record and namespace. Determine whether an effect committed before any retry.
Retain the conflict record, reread the namespace, and prepare a new authorised command with a new ID if the action is still needed.
COMMAND_ID_PAYLOAD_CONFLICT
Do not overwrite identity. Inspect the original command; use a new ID only for a genuinely new request.
Expired lease with retryPolicy NEVER
Automatic reclaim is blocked. Owner-authorised TASK_RECOVER_EXPIRED_LEASE requires the exact prior lease, foundry, reason, evidence and bounded attempts. Recovery does not replay the prior task body.
Expired lease with retryPolicy IDEMPOTENT
The coordinator may make it eligible within maxAttempts. The separately executed task must really be idempotent; the label alone cannot make an external side effect safe.
401 / 403 or scope-denied error
Stop. Check the exact resource and existing grant with the owner. Do not fall back to a broader identity.
SUBMITTED, dependency still blocked
Submission is not assessment. The hosted translation-ledger TASK dispatcher supplies no verified-dependency binding, so its nonempty TASK dependencies remain blocked. This does not disable resident dependency traversal or native-team typed artifact handoffs.
8. Keep the SDK families distinct
The runtime client supports owner-control packet families whose current registry entry explicitly declares the supported exact contract, including owner://kex-toolchain/v1, owner://host-actuator/v1 and other qualified registered owner controls through runtime.dispatch({capabilityId,commandId,input}). These packets contain exactly those three outer fields, without namespace, foundry or expectedVersion fields. Before sending, the client requires current registry evidence for the exact owner-only binding, outer field set and operation fields. It does not infer permission from an owner URI or create a capability. All existing native request identities, revision and host-descriptor fences remain unchanged inside input; the server validates them and owner authority. Namespace-backed capabilities still use the separate namespace CAS preflight. No automatic retry occurs; read the original command record after an uncertain outcome. These controls do not provide a generic Site uploader or deployment method.
The hosted /api/agentics/developer-kit is authenticated preparation and readback. GET projects a namespace; POST prepares claim, heartbeat or submission packets, or classifies an existing record. It does not dispatch those packets. Its workspace helper preserves the selected namespace and observed foundry, omitting a null foundry. Its default GET is the workbook; explicit namespaces are supported. It prepares exact-task claims and rejects incomplete one-page readback above 100 tasks. The downloadable inspectNamespace helper paginates separately.
The separately supplied local node-package/sdk.mjs exports KeddehNode. It targets a running local node (default http://127.0.0.1:8080), not the hosted owner MCP resource. Its methods include packages, runPackage, capabilities, volume, execute, receipts and mcp. Local execution uses {volume, capability, input, expectedGeneration}; read the volume first. The node binds the volume namespace and authenticated principal server-side. Its MCP tools include runtime_execute, volume_read and foundry_run, not hosted agent_dispatch. Do not swap method names, credentials, namespace versions or volume generations between these APIs.
Ordinary translation-ledger events can retain a release proposal as data. A label such as RELEASE_PROPOSAL is not a registered publication validator or deploy operation. The task coordinator has no native Site deployment method. Use the publication supplement to choose structured page publication, a development carrier pointer, public VFS projection or native source deployment and verify its distinct destination.
9. Current evidence and operation-specific limits
Source and authenticated discovery checked 14 November 2026 against deployed owner runtime v245. The coordinator and additional native families were registered and bound. Discovery establishes the available contract, not that every operation or proposed programme has executed.
Translation-ledger queue: up to 512 tasks; registry pages 1–100; enqueue batch 1–72.
Namespace capability input limit: 65,536 bytes. Owner controls and local packages have their own limits and required fields.
The existing hosted development different-model critique reported not ready on this check: DIFFERENT_MODEL_ADAPTER_NOT_CONFIGURED. Its implementation and other assessment paths remain separately identified.
Development carrier publication uses CARRIER_PUBLISHED with deploymentExecuted:false. Structured content and native Site application deployment are separate mechanisms.
Current runtime source: 3b13a80dff90653a23b1c629ef6e87f9841715ec. The downloadable machine contract preserves the resident-source digests with their actual scope and identifies the supplementary contracts. No private tasks, tokens or source bodies are exposed here.
Required supplementary guides
Follow the whole integration path.
The queue example is one part of the system. Start with architecture and connection, then use each guide required by your operation. Carry its output and evidence into the next stage.
Required for: Every integration, before choosing a transport or editing a runtime.
Before you start: Identify the task, owner, audience, original application, canonical source revision and actual destination. Preserve the independent foundry, runtime and sector identities.
Keep BRAINK execution and evidence, IL-LLM semantic relationships, KEX typed state and addressing, VFS state techniques, and ServerSpace host services independently identified. A common interface connects them; it does not replace them.
Trace the source-defined architecture sequence against the original implementations: word → node → node equipped with VFS → IL-LLM → bootstrapper → compiler → assembler → KEX seed → KEX engines → IL-LLM module of KEX seeds. The educational source labels this a proposed construction chain. Identify source and execution evidence for each stage the selected operation actually reaches; do not infer a completed pipeline from the architecture or a queue event.
Record source URI/revision, input and output contracts, state lifetime, dependencies, affected users/systems/services, permitted actions and observable acceptance criteria. Separate authored files, generated bundles and retained originals. Assign one integration owner and serialize shared release steps.
Use the R26 review progression DEVELOPMENT → CANDIDATE → ADMITTED → EXECUTED → VERIFIED → PROMOTED as governance stages, with before/after evidence and a recovery path. These are review stages, not invented enum values in every API. Design, implementation and test work retain their own results when a later release gate is blocked.
Carry forward: An exact source/dependency map, scoped action and acceptance record ready for the appropriate connection guide.
Verify: Compare the intended service and every visible action with its actual handler, persistence and failure behaviour. Source, build, deployment, observed delivery and independent assessment each need their own evidence.
Recover: Preserve the original and failed candidate. Diagnose context, path and version before changing architecture or substituting another application.
Required for: Connecting an SDK, MCP client, external participant or local node.
Before you start: Know whether the task concerns public discovery, hosted namespace execution, an owner control, a browser document or an admitted local host.
For public discovery, use /api/mcp with the official MCP client: initialize, tools/list, published_public_catalogue, then close. The public indexing allow list concerns search eligibility only.
For hosted operations use the existing supported connection for the exact owner-runtime resource. Discover tools under that principal, then agent_registry. A dedicated agent bearer exposes three tool names, but agent_dispatch reaches multiple admitted capabilities. Tool names are not the capability count.
For an external team participant, resolve an actual identity, responsibility, expiry and exact tools/namespaces/capabilities/foundries through the existing access process. Credential creation or new grants require a separate authorized security operation. A namespace, model name or team member ID does not supply a grant.
Use the resource returned by the supported connection, not a guessed hostname. On the public Site, browser GET documentation and MCP requests are selected by method/content negotiation; letter case alone is not a protocol boundary. Local KeddehNode and WEB4 use their own contracts below.
Carry forward: A selected resource, discovered schema and principal-specific permitted capability, with no copied tokens or forged trusted headers.
Verify: Read current discovery successfully with the actual principal. Owner-only OWNER_CONTROL entries require the server-verified Sites owner identity; a generic runtime bearer is not equivalent.
Recover: On 401/403 stop the affected action and review the exact existing grant/resource. Do not switch to a broader credential or silently fall back to public discovery.
Required for: A governed state-changing operation, initialisation, restart, recovery or promotion across any selected adapter.
Before you start: The original runtime and adapter contract, identifiable state owner, fresh pre-observation, explicit authority and a reproducible recovery path. These R26 control requirements are not additional fields to inject into the hosted SDK packet.
Prepare an immutable operation envelope containing operation and lineage identity, capability and actor, source revision, fresh base observation, intended delta and forbidden delta, change/risk class, admission, stable idempotency identity, expiry, compensation and observable postcondition. Bind the envelope to the selected adapter’s real schema and evidence store.
Acquire the qualified exclusive lease and monotonic fence required for the operation. Bind reads, admission, side effects and commit to the same lineage and current fence. A process-local mutex, identity label or successful transport response alone does not establish exclusive authority across processes.
Initialise with create-if-absent semantics. On restart, reconcile retained lineage, current state, command outcome, lease and fence before creating or advancing state. Never overwrite an existing lineage because the new process lacks its in-memory context.
For a suspected dead owner, establish liveness through the declared recovery procedure, preserve the monotonic fence and acquire the next valid ownership epoch. Reconcile any prepared or partially committed work before retrying effects. A timeout alone does not prove the old operation had no effect.
Observe readiness and convergence separately. /health is process liveness; /ready is readiness for the declared work. Verify the operation’s actual postcondition and forbidden-delta invariants through independent readback, rather than treating either endpoint as completion evidence.
Qualify contention and recovery using genuinely separate processes and injected interruption/failure at the adapter’s real persistence boundaries. Record the durability guarantees of that adapter, including acknowledged writes, restart readback and what remains uncertain. In-process tests do not establish multiprocess or physical failover guarantees.
Keep DESIGN, IMPLEMENTATION and TEST results separately evidenced. Promote through the governed release stages only when their specific admission, execution, verification and promotion conditions are satisfied; a blocked release does not erase an independently valid design or test result.
Carry forward: The immutable operation envelope, current lineage/fence, observed before/after state, actual postcondition evidence and a reconciled recovery or promotion decision.
Verify: R26 v1.1 supplies the control standard. Inspect the selected implementation for each required control and record any missing binding. Do not infer that every lease, SDK expectedVersion or health endpoint implements the full R26 law.
Recover: Preserve the original operation and failed candidate. Diagnose execution context, exact path and version, then use the admitted compensation or lineage-reconciliation procedure. Do not clear fences, silently recreate state or label an uncertain side effect failed.
Keddeh Systems R26 Runtime & Control Governance Standard v1.1, 2026-09-09
Language-as-Code whole-estate programme
Required for: Planning the complete semantic-to-execution chain beyond the current hosted task adapter.
Before you start: The current programme revision and the original ontology, KEX and BRAINK bindings needed by the chosen work.
Preserve the programme sequence: IL-LLM admitted ontology/referents/context → typed KEX-IR with literal .1 and X1…X9 identity/address/predecessor relationships → separate BRAINK LEARNING and SHADOW_MIRROR lanes → independent assessment with KVR1/R10 bindings → explicit owner-authorized LIVE CAS → VFS/K-Drive durable evidence/readback → native Site, MCP, SDK, workspaces and services.
Keep each stage’s input, output, source authority and evidence visible. A workbook projection or 18-foundry/72-assignment proposal does not dispatch work or become the canonical live ledger.
Before a LIVE transition verify the authorized independent issuer, trusted pBFT/FROST producer, pinned static Python crypto backend and original R10 checkpoint CAS driver required by that programme. Offline source qualification does not establish those production bindings.
Reuse original applications, engines, VFS/VRAM and admitted canonical contracts. A supplementary design direction does not silently replace the existing owner MCP registry or grant a new runtime capability.
Carry forward: A dependency-resolved programme work package with source-side, offline, candidate and live states individually recorded.
Verify: The 2026-11-14 programme is PROGRAMME_DEFINED with source-side/offline qualification; its full production causal loop was not established by this documentation review. Do not describe it as implemented by the older translation-ledger contract.
Recover: Preserve useful independently qualified stages while keeping missing downstream bindings explicit. Do not erase the architecture or invent production success because one adapter is incomplete.
Keddeh Systems: Language as Code, Whole-Estate Engineering, Research and Delivery Programme, revision 2026-11-14
Keddeh Systems R26 Runtime & Control Governance Standard v1.1
R6 intake, Observer transitions and canonical learning
Required for: Every state-bearing or state-altering public input before Observer knowledge, authority state, execution or persistent mirror state, as required by the R6 contract.
Before you start: The actual R6 Update Mirror Lane contract and a verified implementation binding. The specified route names below do not establish deployed endpoints.
The R6 admission requirement covers UI, API, SERVICE, INTERNAL_OBJECTIVE, KEX, CONNECTOR, TELEMETRY, FILE, OBSERVER and POLICY entry adapters. Structured JSON and an internal origin are not pretrusted; each state-bearing or state-altering input enters the same governed path.
Canonical envelope values are null, boolean, integer, NFC string, list or string-keyed object. Reject floats and inline binary; represent decimals as canonical strings or registered math primitives and binary by content address. Do not silently round or erase meaningful original notation.
Use source + event_id as stable identity, excluding mutable current-state context. Exact repeated content is REPLAYED; altered immutable content under that identity is E_MIRROR_EVENT_ID_COLLISION. Qualify these guarantees against the actual implementation before relying on them.
Classify INPUT_ONLY, STATE_DELTA, OBSERVATION, CORRECTION, ACTION_REQUEST, UNRESOLVED_ACTION or REPLAY using evidence. Intake itself does not perform learning or execution. Resolve action requests to an existing registered primitive and authority decision; quarantine unresolved actions.
Release only an ADMITTED candidate through its permitted NOOP, PERSISTENCE, OBSERVER or EXECUTION route. The contract requires idempotence per intake and route. Separately apply the operator’s authorization requirements.
For an Observer transition retain pre-frame, proposed mirror, admission, actuator record, post-frame, environmental delta and continuation. For canonical learning require actual IL-LLM-normalized semantics appended to the designated ledger and verified chain/head readback, retaining lexical_root, illlm_root, previous_event_root and event_root.
Carry forward: A classified and admitted event, observed effect and, only where actually established, the canonical semantic ledger event/head.
Verify: Contract routes are /api/r6/mirror/intake, /api/r6/mirror/release and /api/r6/capability/request. No such hosted binding was established by this documentation audit. The source specifies 410 E_UPDATE_MIRROR_REQUIRED for legacy public mutation routes; that migration response was not live-verified here. Canonical hashing alone does not establish RFC 8785 or CloudEvents compliance. Existing context/learning handlers must not be relabelled as that full R6 contract. Input retention, model text, a Git commit or a VFS receipt alone does not prove canonical learning.
Recover: Reconcile identity and actual post-state before retry. Preserve failed/rejected observations without promoting them. The inspected ledger file has no explicit duplicate rejection or writer lock. Serialize canonical writes unless its actual integration proves safe concurrent admission and replay handling; R6 envelope rules do not automatically add either guarantee.
canonical BRAINK observer2_runtime/kernel.py and runtime/illlm_ledger.py at 7a417a770d280d2cc5308310fcd8a2f1c20bdad5; ledger Git blob 71123a8885673e23b6941a1fc0a494e3c9aea81f
Observer state, correction and deterministic replay
Required for: Turning an admitted observation into experience and choosing continuation.
Before you start: R6 mirror admission, the specific Observer contract revision and an actual actuator/post-observation binding.
The R5.1 supplement orders input → primitive resolution → observer context → capability resolution → real execution → observed next state → evidence → mistake/correction → deterministic replay → continuation. Update Mirror precedes this Observer path.
Resolve language as lexeme/operator input through admitted primitives. Unknown tokens remain unresolved. Language exposure, fluent text and caller-declared confidence do not supply knowledge or action authority.
Retain ordered prior state, next state, outcome, event hash and evidence receipt per observer. A duplicate transition adds no new learning. A correction links the original failure without erasing it; replay reconstructs the state from its recorded lineage.
Observer² v2.0 specifies O_pre → C_mirror → L → A_gate → X → O_post → Delta_E → C_next. Its sealed command binds the preframe, signal, candidate, policy and resident capability. Candidate state remains a proposal until admission; post-state readback supplies evidence of actual change.
Every descendant re-enters the full transition law, with bounded recursion and protected lineage. Keep expected, changed and substantiated results separate. Apply these as source-contract requirements only where the implementation is verified.
Carry forward: A replayable distinct transition, linked mistake/correction where relevant, environmental readback and justified continuation.
Verify: The pinned canonical kernel inspected at 7a417a770d280d2cc5308310fcd8a2f1c20bdad5 is v1.9 with in-memory Web/Android/Darwin planes. Do not attribute the v2 sealed-command implementation or real external device effects to that older source.
Recover: Re-read pre/post frames and original command evidence. Preserve failed transitions and unresolved capability bindings; do not manufacture successful continuation.
canonical BRAINK observer2_runtime/kernel.py at 7a417a770d280d2cc5308310fcd8a2f1c20bdad5
R7 multi-step process and causal provenance
Required for: Compiling or continuing a governed multi-step process.
Before you start: An admitted initiating intake, immutable process definition and actual ACTIVE registered ACTION primitives.
The R7 supplement orders admitted intake → immutable process definition → canonical input → content-addressed plan → child mirror intake per step → authority/action check → governed release → result readback → process-step event → causal provenance → replay verification.
Compile against the current primitive/capability set and compile again when continuing to detect drift. Reject a changed definition under the same declared version instead of treating it as the original plan.
Each generated step re-enters entry://internal-objective and its mirror/admission path. A parent plan is not a blanket authorization for all child effects. Match each step to its current registered capability, scope and expected state.
The same initiating intake and plan reuse their existing run according to the source contract. Retain original step identities, outputs and causal edges, and reconcile uncertain effects before any continuation.
Treat causal edges as execution provenance, not proof of scientific causation. Use invariants, replay and signature checks for the stated homeostasis rules, not confidence-shaped scores.
Carry forward: A content-addressed plan, actual step evidence and replay-checked continuation state.
Verify: This is the R7 Process Genome contract. The translation-ledger queue is not a substitute implementation; its TASK dependency field does not itself compile, admit or execute this process.
Recover: Stop drifted or unresolved steps and preserve the prior plan/run. Re-enter admission for a corrected step rather than relabelling a failed effect as completed.
BRAINK R7 Deterministic Process Genome, KEDDEH_LIBRARY_048__DETERMINISTIC_PROCESS_GENOME_R7.md, 2026-11-03
Capability registration, teams and executable work
Required for: Adding a participant or using a native team instead of treating task submission as execution.
Before you start: A current BOUND registration, actual runtime_binding/input_constraints, original source and an existing authenticated owner adapter. Every skill://teams/ dispatch requires an explicit expectedVersion; a scoped team bearer cannot use these native team handlers.
Preserve capability identity, source digest, evidenced foundry affiliation, typed inputs/outputs, side effects, timeout and retry behaviour. A sourced but unbound knowledge projection remains visible and BLOCKED. TASK_ENQUEUE adds a task; it does not register an arbitrary executable.
The current native team admission accepts an authenticated principal from SITES_OWNER_IDENTITY, DEDICATED_MCP_BEARER, DEDICATED_AGENT_BEARER, OWNER_AUTHENTICATED_WORKSPACE or OWNER_AUTHENTICATED_ROUTE. These are server-established adapter sources, not caller-set fields or new grants. Other sources fail OWNER_TEMPLATE_ADAPTER_REQUIRED. This native-team boundary is separate from the stricter Sites-owner-only OWNER_CONTROL packet family.
Native template teams are a separate implemented path. Through the admitted skill://teams/local.manager.v1 handler, instantiate a pinned template closure, retain the returned team/member identities and native_dispatch_mapping, then enqueue a job for an admitted member adapter.
The member claims its job and executes through its registered worker capability. The current native worker verifies the live owned lease, runs the bounded adapter, writes actual artifact bytes into its member VFS, verifies their digest and submits them. Manager, member and inspector operations have different permissions.
Use the separately versioned member-skill grant/revoke procedure only when authorized. Jobs pin the skill/grant identity and execution rechecks current admission. Retained scripts, learned text and attribution IDs do not acquire execution permission merely by being stored.
For typed handoffs, preserve the producer job, submitted artifact, source/member/template lineage and digest. The native team sourceJobId path consumes verified submitted bytes; this is distinct from the translation-ledger TASK dependency-assessment gate.
Carry forward: An actual submitted artifact and lineage, plus the command/lease identity needed for readback. Preserve the difference between instantiated, executed, submitted and independently assessed.
Verify: Read the original command and artifact. Check member confinement, immutable template references and actual output. Member VFS/namespace isolation is not an OS sandbox for arbitrary code; the qualified adapters are bounded operations. Current registry includes native team/substrate, learning, storage and network families; select the exact one required, not an invented universal executor.
Recover: Use original command and lease recovery rules. A changed template creates a different closure/instance identity; do not silently migrate or overwrite an existing team.
Namespace, exact task selection and retained execution
Required for: The translation-ledger queue, hosted developer kit and downloadable packet helpers.
Before you start: An assigned existing namespace, current capability binding, exact intended task/scope and stable command identity.
Read every namespace task page using inspectNamespace. Verify version and snapshotDigest agree across pages; discard a mixed snapshot. Preserve its foundryId, including null by omission.
Choose claim semantics deliberately. TASK_CLAIM without taskId uses fair eligible selection. With taskId it targets exactly that eligible task; an ineligible selection cannot fall through to a sibling. Read the returned taskId, leaseId and leaseUntil.
Execute through the appropriate handler, maintain the original live lease with heartbeat, and submit the real retained artifact/digest. For a native team adapter, its execute operation already performs artifact retention and queue submission.
The protected developer-kit HTTP route prepares from server readback and preserves the selected namespace/foundry/task. Its default GET is the workbook, not a mandatory ownership binding. Its current one-page read rejects incomplete namespaces above 100 tasks; use the downloadable paginated reader for a complete view, not a partial page disguised as complete.
Namespace packets use the observed expectedVersion and structured rationale. Exact payload retries keep the original command ID. A changed version or input is a different request only after the original outcome is reconciled.
Carry forward: Original execution record, observed namespace head, artifact identity/digest scope and remaining assessment state.
Verify: Inspect handler and semantic state, not AGENT_EXECUTED alone. The hosted translation-ledger dispatcher currently supplies no verified-dependency binding; nonempty TASK dependencies stay blocked. The underlying reducer and other typed data-handoff mechanisms are separate.
Recover: Read runtime.receipt(originalCommandId) and namespace after uncertainty. Client preflight can reject an exact already-committed retry because the namespace advanced. Preserve lease ownership and do not automatically rebase or replay.
Required for: Any operation that saves, restores, exports, copies or executes state.
Before you start: Identify the actual original VFS variant, state owner, component/volume identity, storage adapter and checkpoint coverage.
VFS is expressed through multiple state techniques: identity/addressing/traversal, runtime/component volumes, in-moment state, KEX seeds/keys and recovery, and retained artifacts. A hosted byte store is one adapter, not the definition of VFS. Equal bytes may share storage without merging object, component, revision or lineage identities.
For browser-native execution preserve the original engines, runners, compilers and required dependencies in the initial page carrier. Inspect actual delivered bytes and network behaviour. Separate explicitly requested model/data payloads from engine dependencies. Keep each application and the additional ServerSpace ingress/room runtime distinct.
For HTML VRAM identify the actual document/node, memory/display state, controller and lifecycle. Preserve original P06/P07/P10 typed state, buffers, ordering, aliases and cycles where covered by the native checkpoint. Validate before restoring into a fresh original runtime; a v1 checkpoint retains its original narrower coverage.
Choose the intended persistence mode. Browser-local state, optional Drive, hosted R2/D1 objects, snapshot-backed KEXVolumeFS, managed P07 and local SQLite volumes have separate custody and revision contracts. Drive is optional, not a compulsory execution dependency.
Hosted byte retention uses vfs_put with a stable requestId, then vfs_read of the returned identity for exact byte-count/SHA-256 readback. On uncertainty use vfs_commit_status before replay. Managed P07 has its own object/namespace versions and admission; use its own contract instead of generic overwrite assumptions.
Carry forward: Original state identity and lineage, exact digest scope, storage location, checkpoint version and a tested restore/readback result.
Verify: Test save, reload, export/import, fresh-runtime rehydration and failure recovery in the actual selected plane. Serialized display pixels do not establish DOM painting, physical GPU allocation or remote hosted execution.
Recover: Keep originals and uncertain command identities. Validate saved state before mutation; use the documented distinct recovery destination where required. Report an unavailable adapter rather than replacing native state with a display cache.
main source/braink-kex-file-engine/NATIVE-MEMORY-CONTINUATION.md
main docs/native-git-source-ingestion.md
KEX toolchain, host controls and public service delivery
Required for: Executing or operating an admitted KEX run or native host service.
Before you start: Current owner-only registry contract, existing owner identity, admitted host/run and current revision or descriptor fences.
For owner://kex-toolchain/v1, read bounded inventory and the canonical run before a revision-bound operation. Preserve the existing original guest, IL-LLM and hosting lifecycle rather than substituting a new generic executor.
Construct the registry-declared owner packet with exactly capabilityId, commandId and input. Keep request IDs, run revisions and native operation fields inside input. These owner controls do not use the namespace packet’s outer expectedVersion.
For host actuator changes, first observe the bound host/service descriptor and preserve host_id, instance_id, source_digest, generation, PID and pipeline_generation fences. Queue inspection is useful readback but does not prove worker liveness or completion.
For KEX hosting, follow the admitted provision/bind/lifecycle contract and read its retained application/lifecycle/provision receipt. Caller-supplied names do not grant trusted domain or tenant admission.
For a public service, verify the actual DNS/delegation, TLS, HTTP route and application response after the internal operation. Record host availability and any external-clock dependency separately from task completion.
Carry forward: Canonical run/host outcome, retained operation identity and separately observed service destination.
Verify: Rediscover before use. The SDK selects owner packets from explicit registry kind/authority/field metadata and rejects unsupported contracts. It preserves operation-specific limits; a namespace’s 65,536-byte bound is not universal.
Recover: Read original command/run/host status on uncertainty. Do not issue a fresh mutation to bypass a pending fence or repeat provisioning automatically.
Required for: Using a supplementary SDK outside the hosted Agentics namespace family.
Before you start: Select the intended host and package revision. Localhost refers to that execution machine, not automatically the user’s desktop.
KeddehNode from node-package/sdk.mjs targets the admitted local node. Its supplied package requires Node.js 24+. Read capabilities and volume generation, then execute {volume, capability, input, expectedGeneration}. Local MCP tools include runtime_execute, volume_read and foundry_run; do not substitute hosted agent_dispatch.
Local node persistence captures the original inner resident graph in an outer transactional SQLite volume. Verify the same volume and receipts after process restart. Its authenticated HTML carrier’s browser-local state is separate from the API node state.
The WEB4 client uses an existing authorized HTTP adapter and its source-bound gateway contract. Read pipeline status and current domains before spawn/reanchor. The contract has no server request-ID idempotency: after uncertainty inspect actual topology and generations instead of replaying automatically.
The exact-state JavaScript/Python contract covers typed values, integer/projection operations and its stated proof scope. Public pure computation does not retain private state. For retention supply an existing authorized VFS session and verify commit_state/restore_state without confusing application event versions and native object versions.
The KCIEP provenance contract links immutable source revision, hypothesis, falsification constraint, workload and observed result to actual target readback. A prepared environment/triad package needs its declared resident executor, authentication and deployment evidence before operational claims.
Carry forward: The SDK-specific input/output, version/generation, custody and observed result, without translating one family’s fences into another.
Verify: Keep source proof, executable tests, package identity and deployment observations separately scoped. A local finite operation is useful evidence without claiming every foundry or physical hardware binding is complete.
Recover: Use the family’s documented reconciliation. Do not swap credentials, volume generations, namespace versions, domain pipeline generations or receipt serialization formats.
Required for: Calling work verified, publishing a page/carrier/application or promoting a result.
Before you start: Actual artifact bytes and source revision, authorized destination/audience, reviewed evidence and the correct publication mechanism.
Retain execution evidence first. exportRuntimeExecutionRecord returns a JSON string; saving and storage readback are separate actions. Its SHA-256 covers UTF-8 JSON.stringify(record), not the pretty-printed export envelope or an artifact referenced by that record. Preserve command identity and verify that declared scope on import.
Use the independently assessing system for its report/document number and verdict. Source includes a configurable different-model critique path with observed production input, model checks and durable reports. Live configuration checked 2026-11-14 was not ready. This observation does not erase the implementation or attest other assessment routes.
Choose publication explicitly: structured information-page revisions use the existing enabled public renderer; development worker publication advances an HTML carrier pointer; pinned public VFS projection uses its separate approved manifest; native Site application releases require an exact source build, saved Site version and native deployment.
Preserve draft/public isolation, revision/generation guards, immutable history where specified and current audience. Do not publish private records or silently widen sharing. A carrier CARRIER_PUBLISHED result with deploymentExecuted:false describes that carrier operation, not a native Site deployment.
For source delivery, preserve original engines and route bytes; if packaging needs deduplication, prove lossless reconstruction for every affected payload. Test the built artifact, deploy the exact saved revision, wait for terminal deployment status and read the actual intended destination.
Close the release record with source commit, tested artifact, deployment/version identity, observed route/result, assessment reference/scope, known gaps and rollback reference. Synchronize changed plugin/API contracts and derived manifests with the same release; a skill/documentation update is not canonical BRAINK learning.
Carry forward: A precise delivery statement distinguishing source prepared, tested, admitted, executed, retained, deployed, observed and independently assessed.
Verify: Report document numbers can exist for FAIL/UNRESOLVED assessments. Actor test logs, transport receipts, hashes and deployment IDs do not become assessment numbers. An unavailable verifier remains an explicit gate, not fabricated approval.
Recover: Reconcile uncertain publication by its durable operation/deployment ID before retry. Roll back through an authorized recorded version or reversible content revision, without rewriting history or unrelated work.
Repository revisions below are the reviewed baselines, not an assertion that every operation was executed. Restricted contract titles support authorized lookup; private source URLs and bodies are not published.
liveObservation: Native v245 deployment observed succeeded; different-model configuration separately observed not ready. Individual operations were not all executed
canonical: Canonical BRAINK ledger and Observer kernel
Reusable exact integer, projection and source-bound state operations. Public computation does not save data or call the owner runtime. Integer operations have an integer-only domain; declared fractional values such as .1 retain their spelling, intention and state separately.
The recovered Identity and Storage model sources are linked by the contract. No JavaScript refinement proof or fresh Lean compilation is claimed. The original Linear/NativeContracts bodies remain unavailable; exact pair behavior is independently executable-tested.
Not run. No data has been saved.
For private retention, supply your existing authorized KeddehVFS session to commit_state, then verify restore_state. Native object ID/digest and application event identity/version are distinct; a native object version is not invented. Readback failure is not reported as saved. No credentials or owner operations are available through this form.