Origin is a cloud-native, WebAssembly-first enterprise application platform. It is a Rust-first, contract-driven substrate for governed plugin applications that compose a shared Leptos/WebAssembly shell, typed platform APIs, wasmCloud service workloads, and workflow-gated mutations.
enterprise/: ontology, policy semantics, and domain language.schemas/: canonical contracts, events, WIT packages, and SurrealDB schema definitions.services/: Rust service implementations deployed through wasmCloud-compatible adapters.workflows/: cross-service orchestration and policy-gated mutation paths.platform/: runtime, SDK, and integration layers.ui/: Leptos/Tauri presentation, shell composition, and host adapters.shared/: reusable Rust crates for telemetry, validation, error models, and data access.infrastructure/: deployment and environment automation.agents/: governed agent procedures and role definitions.testing/: fixtures and integration-test support.docs/: ADRs, process guidance, and rollout documentation.plans/: active execution artifacts for long or high-risk repository work.
- Origin is a modular platform, not a single monolithic application.
- Platform concerns stay separated by plane:
ui/owns the Leptos/WebAssembly shell and host-facing presentation adapters.platform/owns runtime, SDK, and execution abstractions shared by UI and services.services/andworkflows/own backend execution on wasmCloud/Wasmtime through published contracts fromschemas/.infrastructure/owns deployment and environment automation only.
- Plugin applications integrate through governed manifests and platform contracts rather than ad hoc imports into core shell code.
Authoritative supporting architecture documents:
- ARCHITECTURE.md
- First-Principles Systems Architecture Baseline
- First-Principles Implementation Roadmap
- Quantitative Decision Architecture
- ADR Catalog
- Layer Boundaries
- Plugin Application Model
- Runtime Composition and Delivery
The quantitative decision substrate is a read-only, workflow-gated evaluation path in Phase 1:
decision contracts live in schemas/, deterministic scoring and strategic analysis live in
shared/decision-core, pure evaluation lives in services/governance-service, and the canonical
orchestration surface is workflows/decision_evaluation.
Origin uses a GitHub-native Scrumban model.
- Start with a same-repository GitHub issue that defines context, scope, and acceptance criteria.
- Work on a short-lived issue branch named
<type>/<issue-id>-descriptionusing an approved prefix fromDEVELOPMENT_MODEL.md. - Record architectural references, owning subsystem, integration boundaries, impacted domains, consistency class, risk tier, rollback path, and validation artifacts in the issue and PR traceability fields.
- Open a pull request with a conventional title and a PR body that includes
Closes #<issue-id>. - Merge to
mainonly after review and required checks pass so the linked issue closes automatically.
Primary contributor docs:
- Docs Index
- ARCHITECTURE.md
- CONTRIBUTING.md
- DEVELOPMENT_MODEL.md
- Execution Artifacts
- Layer Boundaries
- Plugin Application Model
- Runtime Composition and Delivery
- GitHub governance rollout
- GitHub workflow migration note
- Platform regression guardrails
- Local wasmCloud development
- SECURITY.md
Run from the repository root:
cargo verify-repocargo verify-repo is the canonical non-UI validation surface. The GitHub CI baseline also
includes cargo audit.
For local enforcement parity, also run:
cargo xtask verify profile ui
cargo xtask ui-hardeningFor Rust workspace hygiene and tracing workflows, use:
cargo rust-audit
cargo rust-clean incremental
cargo rust-trace desktop --dry-runThe root workspace defaults to lean daily development with reduced dev debuginfo, an opt-in
debugging profile for richer debugger sessions, and stripped release debuginfo to keep
workspace artifact growth under control.
Origin uses a GitHub-native, trunk-based delivery model:
mainis the only long-lived branch.CI / pr-gate,Security / security-gate, andGovernance / validateare the required checks.- The browser/PWA runtime is the baseline platform surface; the Tauri host extends the same surface with desktop-only capabilities instead of forking the product model.
- The
Delivery Devworkflow runs automatically on pushes tomain, publishes digest-addressable component descriptors toghcr.io/shortorigin/*, and promotesdev. - Release candidates are cut from a green
mainSHA, deployed tostage, and promoted toproductiononly through thePromote Releaseworkflow. - Public traffic is mediated by Cloudflare DNS, routing, and edge/network policy. AWS hosts the wasmCloud/Wasmtime execution environment and supporting control-plane, runtime-plane, and data-plane workloads.
Digest-pinned environment manifests are rendered under
infrastructure/wasmcloud/manifests
and attached to GitHub Releases for rollback and audit. The checked-in manifest path currently uses
prod/ for the production environment artifact; contributor-facing docs refer to the same target as
production.