Repository navigation
Add Soroban resource-budget benchmarks and CI gate for vault entry points - #344
Merged
techisigu merged 9 commits intoOct 24, 2026
Merged
Conversation
… for Vault Contra Closes Zenith-options#226
…n-Call Runbooks Closes Zenith-options#227
…Environment for t Closes Zenith-options#228
…BI Backwards-Comp Closes Zenith-options#229
|
@Confidence04 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
- docker-compose.yml: merged [markers] — model resolved the conflict markers - src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
- .github/workflows/ci.yml: merged [markers] — model resolved the conflict markers - docker-compose.yml: merged [markers] — model resolved the conflict markers - src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
- src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
- contracts/perf/baseline.json: merged [markers] — model resolved the conflict markers - src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
- src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Soroban resource-budget benchmarks and CI gate for vault entry points
What was solved
#226 — Profile and Optimize Soroban Resource Budgets for Vault Contract Execution
Add a deterministic Soroban resource-budget measurement harness for vault contract entry points, document per-entry-point budgets with headroom against network limits, optimize hot paths (batched/cursor processing, reduced persistent reads, smaller stored values), add a CI regression gate that fails when a benchmarked entry point exceeds its documented budget, and publish per-entry-point resource numbers for frontend fee estimation.
Addressed:
#227 — Define Vault SLOs, Alerting Thresholds, and On-Call Runbooks
Add vault-specific SLO documentation, Prometheus-style alert rules with warning/critical tiers and evaluation windows, per-alert on-call runbooks, and severity/escalation docs under docs/, derived from existing epoch-ledger and NAV-drift metrics, with environment-configurable thresholds and fault-injection validation guidance.
Addressed:
#228 — Build a Mainnet-State Fork and Chaos-Testing Environment for the Vault Stack
Add a reproducible mainnet-state fork and chaos-testing harness for the vault stack: a snapshot capture script that pins public ledger state at a chosen sequence, a bootstrap entry point that boots the environment and deploys the compiled vault suite against the snapshot, deterministic seeding (including ledger timestamps for epoch boundaries), scripted chaos scenarios injected at the RPC/client boundary (latency/timeouts, submission failures/duplicates, oracle staleness/missing prices, ledger close reordering, partial deposit failures, indexer lag/restart, late/duplicate settlement callbacks) each asserting resulting vault state (NAV, queue, epoch), per-scenario reports archived as CI artifacts, and a self-test proving the harness has teeth.
Addressed:
#229 — Establish Vault Event Schema Versioning and ABI Backwards-Compatibility Guarantees
Introduce explicit schema versioning for vault contract events and entry points, document a backwards-compatibility policy, derive/check consumer TypeScript types against a checked-in contract spec snapshot, and add CI enforcement that fails when the ABI/event snapshot drifts without a version bump and changelog entry.
Addressed:
Changes
contracts/perf/baseline.json(modify)docs/vault-slos.md(create)docs/on-call.md(create).github/workflows/ci.yml(modify)src/lib/api/vaults.ts(modify)docs/PERFORMANCE.md(modify)docs/vault-runbooks.md(create)contracts/perf/thresholds.json(modify)docs/vault-alerts.md(create)docker-compose.yml(modify)Approach
Issues
Closes #226
Closes #227
Closes #228
Closes #229