The foundational runtime engine, distributed orchestration kernel, and core primitives for the ER.brocode ecosystem.
brocode-core provides the heartbeat of ER.brocode applications. It is engineered from the ground up to solve complex distributed task orchestration, asynchronous event propagation, and automated self-healing workflows with unmatched resilience and performance.
- Fault-Tolerant Execution: Built-in circuit breakers, jittered exponential backoffs, and durable state checkpoints.
- Modular & Extensible: Pluggable architecture allowing custom runtime adapters, transports, and telemetry providers.
- Type-Safe & Developer-Centric: Strict contracts, deterministic event streams, and ergonomic API abstractions.
brocode-core is architected into layered, loosely-coupled subsystems:
graph TB
subgraph Core Kernel
Lifecycle["Engine Lifecycle Controller"]
ConfigMgr["Configuration & Environment Manager"]
StateManager["Durable State Engine"]
end
subgraph Orchestration & Execution
Scheduler["Distributed Task Scheduler"]
WorkerPool["Worker Pool Manager"]
CircuitBreaker["Circuit Breaker & Retry Engine"]
end
subgraph Messaging & Interconnect
EventBroker["Event Broker (Pub/Sub)"]
StreamRouter["Stream & Message Router"]
end
subgraph Extensibility & APIs
PluginEngine["Plugin Runtime Engine"]
API["REST / gRPC Gateway"]
end
Lifecycle --> ConfigMgr
Lifecycle --> StateManager
Scheduler --> CircuitBreaker
Scheduler --> WorkerPool
WorkerPool --> EventBroker
EventBroker --> StreamRouter
StreamRouter --> PluginEngine
API --> Lifecycle
API --> Scheduler
src/kernel/: Lifecycle bootstrapper, process signal handling, and core runtime state.src/orchestration/: Task scheduling, DAG execution pipelines, and concurrency controls.src/resilience/: Circuit breakers, health watchdogs, and fault recovery primitives.src/events/: Asynchronous message dispatching and typed event buses.src/plugins/: Extensible plugin hooks, custom middleware, and execution adapters.
- Node.js >= 20.x or Python >= 3.11 / Go >= 1.22 (depending on chosen subsystem runtime)
- Git 2.30+
# Clone the repository
git clone https://github.com/ER-brocode/brocode-core.git
cd brocode-core
# Verify environment setup
git status# Run test suite
npm test # or make test / pytest
# Check code formatting & linting
npm run lint
# Build release artifacts
npm run build- Test-Driven Rigor: All PRs must include unit tests for business logic and integration tests for external communication boundaries.
- Resilience First: Any external I/O or network call must employ timeout bounds, circuit breaker protection, and safe fallback strategies.
- Semantic Versioning: We adhere strictly to SemVer 2.0.0.
- Code Reviews: Every contribution requires review and sign-off by team maintainers.
Community discussions and RFCs for brocode-core happen right here on GitHub:
- brocode-core Discussions
- Report issues and feature requests via GitHub Issues.
This project is licensed under the MIT License.