packaging: README (NASA style) + possibilistic perf baseline + CI benchmark job
CI / test (push) Successful in 4m11s
CI / benchmark (push) Successful in 28s
CI / publish (push) Has been skipped

README: purpose-first (possibility not boolean, caller owns evidence/time),
install, verified quick start, concepts (result shape, overlays, temporal
context), API table, development commands, design notes.

benchmark: scripts/benchmark.js on @tenere/benchmark-lib — eight contours
(direct/union/denied/meta/overlay/binary checks, snapshot build/restore),
committed .rigor-baseline.json, exit 1 on high-severity regressions.

CI: benchmark job compares on push (continue-on-error), re-saves baseline
and uploads it as an artifact on tags; publish now depends on benchmark
passing as well as test.
This commit is contained in:
John Dvorak
2026-08-02 12:52:21 -07:00
parent 2d27321b38
commit 223cfb97c3
6 changed files with 508 additions and 3 deletions
+4 -2
View File
@@ -34,7 +34,7 @@
"test:perf": "RUN_PERF_TESTS=1 node --test --test-force-exit tests/engine/core-performance-targets.test.js",
"generate:parser": "node scripts/generate-parser.js",
"build:ast": "npm run generate:parser",
"benchmark": "node benchmarks/core-performance-benchmark.js",
"benchmark": "node --expose-gc scripts/benchmark.js",
"benchmark:core": "node benchmarks/core-performance-benchmark.js",
"benchmark:batch": "node benchmarks/batch-size-analysis.js",
"benchmark:chain": "node benchmarks/chain-rule-benchmark.js",
@@ -47,7 +47,8 @@
"benchmark:snapshot": "node benchmarks/arbiter-snapshot-boot-bench.js",
"benchmark:sharded": "node benchmarks/sharded-snapshot-build.js",
"benchmark:memory": "node benchmarks/memory-breakdown.js",
"benchmark:multi-hop": "node benchmarks/multi-hop-rule-bench.js"
"benchmark:multi-hop": "node benchmarks/multi-hop-rule-bench.js",
"benchmark:save": "node --expose-gc scripts/benchmark.js --save"
},
"keywords": [
"zanzibar",
@@ -64,6 +65,7 @@
},
"devDependencies": {
"@rigor/core": "*",
"@tenere/benchmark-lib": "^2.0.1",
"fast-check": "^4.5.3",
"peggy": "^5.0.6"
}