@zof-ai/reliability-bench
v0.1.1
Published
Transparent reproducible synthetic software reliability benchmark
Readme
Zof Reliability Benchmark
A transparent local benchmark for eleven synthetic reliability cases across ten categories. It runs the ten public failure-lab scenarios plus an actual file-handle cleanup regression, compares observed state with documented expectations, and exports portable Evidence 1.0.0. It has no commercial scoring model, network service, or competitor rankings.
Requires Node.js 22 or later. Then:
npm run build
node dist/cli.js compare
node dist/cli.js run --variant fixed --format markdown
node dist/cli.js run --variant broken
npm testThe defective reference command exits 1 because its regressions fail. Fixed exits 0. Invalid arguments exit 2. Comparison reports both executed references and exits 0 on a completed comparison. --iterations 1..10 repeats the cases; no external tool commands are accepted.
Three working examples:
node examples/compare.mjs
node examples/repeat.mjs
node examples/task.mjsLibrary exports: runBenchmark({variant:'broken'|'fixed',iterations?,label?}), compareReferences(), toMarkdown(report), listEvaluationTasks(), getEvaluationTask(id). Report fields include suiteVersion, reference variant, iteration count, passed/total/score, categories, actual results, and evidence with runtime/OS/architecture.
The public data-only evaluation tasks provide bounded input/expected-output cases for the separate agent-evals sandbox harness. The synthetic candidate fixture demonstrates defective and corrected payment deduplication. No candidate code supplied by a user is executed by this benchmark package.
Read methodology before interpreting results. Distribution and maintenance procedures are in release guidance.
Install from npm
Use Node.js 22 or 24 and npm. File-based operations require Linux or macOS with Python 3.10 or newer; Windows file operations fail closed. In a new project directory, install the version used by this guide:
npm install --ignore-scripts --save-exact @zof-ai/[email protected]
npx --no-install zof-reliability-bench --helpThe package includes compiled JavaScript, TypeScript declarations and its runtime dependencies. No source build, Zof account or repository upload is required. --ignore-scripts disables installation lifecycle scripts; --no-install keeps the example commands from downloading another package.
Confirm the public ESM entry point; this prints function:
node --input-type=module -e "import('@zof-ai/reliability-bench').then(api => console.log(typeof api.runBenchmark))"Run a packaged example from the same directory:
npx --no-install zof-reliability-bench run --variant fixed --iterations 1 --format jsonThe fixed reference passes all eleven public benchmark checks. This small fixture suite is not a production reliability estimate.
Package: @zof-ai/reliability-bench. The source-checkout instructions and three additional workflows follow.
Install from GitHub source
Requires Node.js 22 or 24, npm, and Git. Filesystem operations require Linux or macOS with Python 3.10 or newer; Windows file operations fail closed. Clone this repository and explicitly prepare its reviewed release dependencies:
git clone --branch v0.1.1 --depth 1 https://github.com/Zof-AI/zof-reliability-bench.git
cd zof-reliability-bench
node scripts/bootstrap.mjs --allow-network
npm ci --ignore-scripts --prefer-offline
npm run build
npm testThe bootstrap downloads only the exact versioned dependency assets from GitHub Releases, as listed in scripts/release-dependencies.json, verifies SHA256 and byte size, and adds them to the npm cache. It does not extract archives, run package scripts, collect application data, or send credentials. Downloads require the explicit flag and follow only HTTPS GitHub asset redirects. Installation then fetches ordinary third-party dependencies from npm. Use a writable npm cache; set npm_config_cache consistently for both commands if needed. An unavailable asset, changed hash, or oversized response stops installation.
