Files
wehub-resource-sync 426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:43:05 +08:00
..

memperf — desktop/server memory-benchmark harness

A runnable desktop/server harness (issue #8809) that, for each available Eliza-1 tier × modality (text, embedding, transcription, tts, vad, vision), records:

  • load ms — wall-clock to bring the model online,
  • resident RSS deltaprocess.memoryUsage().rss sampled before/after the load,
  • peak RSS — the worst RSS observed across the load+run window,
  • throughput — tokens/sec (text/embedding/vision) or RTF (transcription/tts/vad),
  • arbiter eviction count — taken from the MemoryArbiter's own onEvent telemetry under a scripted co-residency sequence (load text → load vision → load voice → force pressure).

It emits a JSON report whose per-row shape is the shared METRIC_SCHEMA (metric-schema.mjs), shared with #8800 (the mobile Resource Workbench) so a desktop report and an on-device report line up column-for-column. It checks the numbers against budgets.json and exits non-zero on regression.

Honesty contract

No fabricated metrics, no always-pass stub:

  • A modality row is measured: true only when a real load+run produced the numbers. Absent a model bundle or backend, the row is measured: false with a concrete skipReason, and the summary records exactly what was skipped.
  • Numeric fields are null for an unmeasured row — never 0. "Not measured" is never conflated with "zero".
  • The co-residency block runs in mode: "self-check": it drives the real MemoryArbiter (the production eviction policy + telemetry) with synthetic sized loaders, because the desktop engine loads one model at a time and cannot co-resident-load independent vision/voice backends. What is real is the arbiter's eviction telemetry — the fit-to-budget LRU path and the critical-pressure path both fire on these sizes and emit the events the harness counts. The mode label discloses this, the self-check can never satisfy the real-backend eviction ceiling (maxEvictions), and a broken telemetry path fails loudly (selfCheckMinEvictions asserts the arbiter counts ≥1 eviction). The mode: "real" budget seam (maxEvictions) is reserved for a future real-backend co-residency path.

Run

# Full harness + consolidated dashboard (results/summary/latest.md + .json)
bun run bench:memperf
node packages/benchmarks/memperf/run-all.mjs            # equivalent

# JSON to stdout
bun run bench:memperf:json

# The measuring harness directly (TS — imports the real plugin services):
bun --conditions=eliza-source packages/benchmarks/memperf/memperf-kpi.ts
bun --conditions=eliza-source packages/benchmarks/memperf/memperf-kpi.ts --json

# Limit to specific tiers / generation length:
MEMPERF_TIERS=eliza-1-2b,eliza-1-4b bun --conditions=eliza-source \
  packages/benchmarks/memperf/memperf-kpi.ts
MEMPERF_MAX_TOKENS=64 bun run bench:memperf

--conditions=eliza-source is required: the harness imports @elizaos/plugin-local-inference source (the MemoryArbiter, the engine, the hardware probe) under the eliza-source export condition.

Exit codes (CI gate)

  • 0 — measured rows present, all budgets pass.
  • 1 — a budget (measured peak-RSS over ceiling, real co-residency eviction count over ceiling, or a broken arbiter-telemetry self-check) FAILED.
  • 2 — nothing measurable on this host (no model bundle); the self-check ran and passed. This is the CI-without-GBs-of-models path: the harness runs cleanly and records what it skipped.

Budgets

budgets.json carries per-tier peakRssMb (the resident ceiling for a single-tier text load+run) and coResidency.maxEvictions (the ceiling for the real co-residency sequence on a known-fitting set). selfCheckMinEvictions is the floor the synthetic wiring self-check must hit to prove eviction telemetry counts. Ratchet the per-tier ceilings down as the LRU fit-path and dynamic context selection (#8809 steps 1/4) land.

Layout

Path Role
memperf-kpi.ts The measuring harness (TS; real arbiter + engine + probe)
run-all.mjs Orchestrator: spawns the harness, writes results/summary/ dashboard, propagates exit code
metric-schema.mjs The METRIC_SCHEMA shared with #8800 + the skipped-row builder
lib.mjs RSS sampling, result recording, git context, budget loader
budgets.json Per-tier peak-RSS + co-residency eviction budgets
metric-schema.test.ts Schema-contract tests (pins the shared field set)
co-residency.test.ts Real-arbiter eviction-telemetry tests (fit + pressure)
results/ Timestamped JSON results (gitignored; only .gitignore committed)

Test

bun test --conditions=eliza-source packages/benchmarks/memperf/metric-schema.test.ts
bun test --conditions=eliza-source packages/benchmarks/memperf/co-residency.test.ts

metric-schema.test.ts pins the shared field set so a rename/drop is caught (and must bump METRIC_SCHEMA_VERSION). co-residency.test.ts drives the real MemoryArbiter with synthetic sized loaders and asserts the fit-path and the critical-pressure path both emit the eviction telemetry the harness counts — no models, no FFI, CI-safe everywhere.

Relationship to #8800 / the iOS grind

The metric field set mirrors plugins/plugin-local-inference/docs/memory-and-e2e-latency-review.md §5 and the on-device iOS grind (plugins/plugin-capacitor-bridge/src/ios/model-grind.ts), so the desktop harness, the iOS grind, and the #8800 mobile workbench all speak the same metric language. This issue (#8809) owns the desktop/server harness + the arbiter telemetry feed; #8800 owns the mobile surface and consumes the same METRIC_SCHEMA.