interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

[OM-COMPOSE] Connect frontends and backends through one typed .om interface

Open · #648 · open 2026-10-23 12:16 UTC

Imported from GitHub aien-dev/omega-mv#648, by drakestapleton

drakestapleton wrote on 2026-10-23 12:16 UTC

Goal

Let the agent describe a frontend/backend connection in .om, and have both ends exchange the same typed calls, results and streams through qualified adapters. A browser UI and a native/service backend should compose without manually duplicating incompatible schemas.

Parent: aien-dev/aien-architecture-mv#295; shared application contract: aien-dev/aien-architecture-mv#298. Reuse #631 adapter registry, #642 planner, #643 lifecycle, #624 conformance and aien-dev/aien-sovereign-core-mv#706 typed boundary.

Current evidence and boundaries

  • #621's seeded core.om at cd2c41f3c697524629585b2a228e2f0ab5b99c45 implements a finite source-aware expression envelope; it does not supply service/message/stream schemas.
  • src/runtime/rx_capq.h defines typed capability needs/candidates and authority ceilings; reconcile its native successor rather than adding another discovery registry.
  • interplane-mv rust/crates/interplane-core/src/lib.rs supplies wire validation/lifecycle and explicitly executes/authorizes nothing. Its OpenAI stream dialect is model-tool message conversion, not a general frontend/backend server.
  • #706 covers typed in-process/component ABI. A remote/browser message is not a shared pointer or FFI call; use the same semantic type contract with separately qualified wire mappings.

Deliver

  • Extend #298 with a versioned .om interface/module contract: records, tagged results/errors, scalars, bytes, bounded lists, method/event IDs, stream item types and limits. Name optional/nullable distinctions, u64/bigint-to-JS-safe mapping, float/NaN policy, encoding, timestamps if used and schema evolution/refusal rules.
  • Implement bindings generation in the existing seeded .om tooling. First external frontend target: ordinary browser JavaScript with TypeScript declarations/runtime validation; backend endpoint: existing .om service/component path. Browser output is a declared outward target. Add one externally implemented backend profile only through an existing qualified adapter.
  • Share one semantic contract; generate codecs, client/server bindings and agent-readable operation descriptions, not an independent authority registry. Require runtime message validation, not types-only declarations. Unknown transport or unsupported type refuses.
  • Select and qualify one existing transport binding for request/response plus streaming after source inspection (reuse current HTTP/event-stream or bidirectional transport owners). Bound frame/queue sizes; define backpressure, correlation, order, cancellation acknowledgement, terminal events, disconnect and resume policy.
  • Keep authenticated caller/objective context separate from claimed message fields. Enforce authority at server execution, browser origin/session policy where applicable, secret handles instead of client-side secrets, and structured errors with no accidental secret/payload exposure.
  • Prove real frontend -> .om-backed operation -> streamed result -> UI update and agent invocation of the same operation. Include UI cancellation and backend failure. Do not require .om in-browser execution or invent a Wasm backend to close this slice.
  • Test malformed/oversized messages, unsafe integer narrowing, schema-version skew, wrong operation, denied authority, duplicate/reordered events, slow consumer, lost connection and cancellation races. Count a frontend disconnect separately from proven backend cancellation.
  • Publish a clean-checkout local tutorial and support matrix with exact runtime/adapter dependencies, real round-trip latency and peak buffers. Keep native .om rendering, Wasm execution and additional frameworks as separately qualified future profiles.

Ownership and dependencies

#298 owns the contract integration; #706 retains ABI/authority ownership; this issue owns only the uncovered wire/binding adapter slice with existing frontend/transport owners. Preserve the existing frontend and service projects. Binding generation need not wait for #645 recursive interchange. The first demo remains local/private; no public site or production account deployment is part of this task.

Governing implementation direction

Drake, 2026-10-23: the agent must be able to control the compute ecosystem through Omega, including frontend/backend composition. .om is the only forward source-language path; .osc is legacy. Extend existing handwritten seeded .om production components and their current owners. External UI frameworks, runtimes and services are declared endpoints/targets, not hidden implementations of Omega semantics. Legacy C/Rust sources below document existing contracts and migration obligations; do not create parallel replacements or require legacy .osc production execution. Keep the Unix division of responsibilities: typed contracts and small adapters with bounded interfaces, one coherent Omega-facing surface. Reconcile current branches/comments/ledger and existing migration owners before editing. Reuse native capability, objective/effect, transport, adapter lifecycle, receipt, trace and judge machinery. Preserve existing Renda publication/review ownership and live services. Record source/tool/adapter/profile pins, real commands/exits, negative controls and independent final-source review. Unsupported/unrun targets are explicit. This issue authorizes development, not deployment to external accounts or changes to live machines.

No comments.

Sign in to comment