omnibase_core is the ONEX (OmniNode eXecution) platform kernel. It owns node execution, contracts,
core models, validation tooling, and the canonical architecture vocabulary used
by downstream OmniNode repos.
Use this repo when you need to:
- Use ONEX core types, nodes, contracts, and validation tools.
- Build a contract-driven EFFECT, COMPUTE, REDUCER, or ORCHESTRATOR node.
- Extend Core internals such as validation, contracts, node execution, handlers, model conventions, or runtime-development scaffolding.
Downstream runtime implementations, infrastructure clients, workflow packages, dashboard projections, and thin wrapper tooling should link back here for Core architecture and validation truth rather than duplicating it.
- ONEX node base classes and execution vocabulary.
- Contract models, handler contracts, subcontracts, and contract validation.
- Core event envelopes, error models, container patterns, and dependency injection conventions.
- Core documentation standards for ONEX architecture and node construction.
- Shared validation entrypoints such as
onex-validate-links,onex-validate-topics,check-local-paths, and string-version checks.
- Concrete infrastructure, Kafka/Postgres/Infisical clients, runtime host
deployment, or registration operations. Those belong in
omnibase_infra. - Protocol-only service interfaces for downstream implementation packages.
Those belong in
omnibase_spi. - Zero-upstream structural DTOs and compatibility shims. Those belong in
omnibase_compat. - Portable workflow package ownership. That belongs in
omnimarket.
Install:
uv add omnibase_coreInstall optional surfaces only when needed:
uv add "omnibase_core[spi]"
uv add "omnibase_core[compat]"
uv add "omnibase_core[full]"Common imports:
from omnibase_core.nodes import NodeCompute
from omnibase_core import ModelOnexErrorCore is a Python 3.12+ package. Package metadata, optional dependency groups,
and CLI entrypoints are declared in pyproject.toml.
Every ONEX node starts from one of the four core archetypes:
- EFFECT: external I/O
- COMPUTE: transformation and validation
- REDUCER: state aggregation
- ORCHESTRATOR: workflow coordination
Minimal COMPUTE node:
from omnibase_core.nodes import NodeCompute
class NodeMyFeature(NodeCompute):
passThe preferred path is contract-driven: YAML declares inputs, outputs, capabilities, bindings, and lifecycle constraints; custom Python behavior is added only when the contract cannot express the behavior.
Start here:
Core owns validators and development/runtime internals that other repos consume. Use these commands before changing validation, contracts, docs, or architecture surface:
uv sync --dev --frozen
uv run onex-validate-links --verbose
uv run pytest tests/ -qFocused validation entrypoints:
uv run onex-validate-topics . --verbose
uv run check-local-paths docs src scripts
uv run validate-string-versions srcFor ownership, downstream-consumer guidance, and cross-repo usage, see Validation Ownership.
docs/INDEX.md is the canonical full docs map.
High-signal entrypoints:
- Architecture Overview
- Contract System
- Handler Contract Guide
- Validation Ownership
- Validation Framework
- ADR Index
- Contributing
- Security
Root README.md, CLAUDE.md, and docs/INDEX.md are the primary human entry
surfaces. Dated plans and migration notes are historical or execution context
unless a stable architecture, reference, runbook, or migration page explicitly
promotes them.
Known active context:
- The hardcoded-topic cleanup plan in the umbrella
omni_homedocs is an execution plan, not the current architecture source of truth. - Current topic naming truth lives in Core topic validators and standards docs.