@buildhubglobal/openjev
v0.1.2
Published
Vendor-neutral execution routing and verification framework for AI agents, tools, models, and computer-use systems.
Maintainers
Readme
OpenJEV
Vendor-neutral execution routing and verification framework for AI agents, tools, models, and computer-use systems.
OpenJEV is a vendor-neutral TypeScript runtime for deciding how a task should be executed, not only which model should answer it.
A worker can be an LLM, local model, API, MCP server, shell executor, browser/computer-use agent, GUI agent, or a composite workflow. OpenJEV ranks eligible workers, executes the best candidate, verifies the result, falls back when necessary, and records telemetry that can improve future routing.
Status: v0.1.2 public launch — small, inspectable, and experimental.
Installation
Requires Node.js 20 or newer. The package is ESM-only and includes TypeScript declarations.
npm install @buildhubglobal/openjevnpm package · Issues and feedback
OpenJEV is vendor-neutral, verification-first, capability-aware, and telemetry-aware. Adapters are replaceable; privileged executors must be explicitly opted into. The current adapters are MockWorker, OllamaWorker, and OpenAICompatibleWorker. MCP, browser/computer-use, shell/code, and GUI executors are integration targets, not bundled adapters.
Why
Most routers answer one question: which model?
OpenJEV asks a broader question:
What is the best execution path for this task right now?That can depend on:
- required capabilities
- expected cost
- expected latency
- observed reliability
- cache or context affinity
- verification requirements
Core loop
Task
-> capability filter
-> ranked execution candidates
-> execute
-> verify
-> PASS: return result
-> FAIL: try next candidate
-> record telemetryOffline verified-fallback demo
npm install
npm test
npm run demoThe offline demo ranks two workers, rejects the first answer, falls back to a
verified answer, and displays both attempts with goodput 0.5. It requires no
API key or running model server.
Run the demo commands above from a repository checkout. See
docs/PUBLISHING.md for release validation.
Minimal TypeScript / ESM example
Save as example.mjs and run node example.mjs, or use it in an ESM TypeScript project.
import { MockWorker, OpenJevEngine } from '@buildhubglobal/openjev';
const worker = new MockWorker({
id: 'local-text',
capabilities: ['text'],
estimate: {
estimatedCost: 0,
estimatedLatencyMs: 300,
reliability: 0.9,
cacheAffinity: 0.7,
},
handler: () => 'PASS',
});
const engine = new OpenJevEngine();
const result = await engine.run(
{
id: 'demo',
input: 'Return PASS',
requiredCapabilities: ['text'],
},
[worker],
{
verify: (_task, execution) => ({ ok: execution.output === 'PASS' }),
},
);
console.log(result);Included in v0.1
OpenJevRouter— capability filtering and weighted rankingOpenJevEngine— execution, verification, fallback, and retry controlInMemoryTelemetry— reference event sink and simple goodput metricInMemoryCache— tiny cache interface and implementationMockWorker— testing and examplesOllamaWorker— minimal local-model reference adapterOpenAICompatibleWorker— non-streaming text adapter for compatible endpoints
See docs/OPENAI_COMPATIBLE.md for endpoint configuration
and limits. Live calls require an explicitly configured endpoint; the demo and
tests stay offline.
Architecture
See docs/ARCHITECTURE.md.
The project deliberately keeps vendor integrations outside the core. The long-term shape is:
OpenJEV
|
Execution Router
|
+------------------+------------------+
| | |
Models Tools Executors
| | |
local/cloud MCP/API code/shell
frontier LLMs search browser/GUI
| | |
+------------------+------------------+
|
Verifier
|
PASS / FALLBACK
|
TelemetryProject principles
- Execution routing > model routing
- Verification is mandatory for important work
- Adapters stay replaceable
- Telemetry should drive routing decisions
- Dangerous executors must be opt-in
- The core stays small enough to audit
Inspiration and independence
OpenJEV is informed by public research and public engineering patterns in agent routing, inference serving, computer-use systems, verification harnesses, and cache-aware scheduling.
No NVIDIA Dynamo, H Company, OpenAI, Anthropic, Ollama, or other third-party source code is copied into this project. OpenJEV is an independent implementation and is not affiliated with or endorsed by those organizations.
Roadmap
See docs/ROADMAP.md.
Near-term priorities:
- MCP worker adapter
- browser/computer-use worker interface
- persistent telemetry
- SLO-aware goodput
- failure-to-regression workflow
Contributing
Community contributions are welcome. Start with CONTRIBUTING.md.
Security
Please read SECURITY.md before adding adapters that can execute code, shell commands, browser actions, or GUI automation.
License
Apache License 2.0. See LICENSE.
