Add deployment scheduling, benchmarking, security testing, and backup/recovery#433
Merged
Nanle-code merged 4 commits intoJun 29, 2026
Conversation
Adds a deployment scheduling engine (src/utils/scheduler.rs) with time-based scheduling, multi-approval workflows, dependency-ordered execution, and a `starforge schedule` CLI surface (create, list, show, approve, reject, cancel, run, dashboard). Part of Nanle-code#414.
Adds src/utils/benchmarking.rs, which scores a contract's recorded gas usage, execution time, and success rate against built-in industry baselines (token, defi, nft, voting, generic), producing a weighted score/grade and actionable optimization recommendations. Restructures `starforge benchmark` into a subcommand group: the existing raw WASM timing benchmark becomes `benchmark wasm`, with new `compare`, `history`, and `show` subcommands for the comparison reports. Part of Nanle-code#416.
Adds a simulated penetration testing battery (src/utils/security/pentest.rs) covering six common Soroban attack vectors (missing auth, reentrancy, overflow/underflow, replay, unbounded-loop DoS, panics), plus a remediation tracker (src/utils/security/remediation.rs) for assigning, updating status, and annotating findings from audits/pentests. Wires new `starforge security pentest` and `starforge security remediation` (list/assign/status/note) subcommands, with pentest findings auto-tracked as remediation items. Part of Nanle-code#417.
Adds src/utils/backup.rs: zip-based backups of contract code/state with SHA-256 integrity checksums, optional AES-GCM encryption (reusing the existing crypto module), cross-region replication, point-in-time recovery lookup by label/timestamp, non-destructive recovery testing, and a recurring automation config. New `starforge backup` CLI surface: create, list, show, verify, restore, restore-point-in-time, replicate, test-recovery, auto-configure, auto-run. Also wires the `schedule`, `benchmark`, and `backup` command groups into the main CLI dispatcher (src/main.rs, src/commands/mod.rs, src/utils/mod.rs) and fixes the stale completions.rs mirror that referenced the old benchmark::BenchmarkArgs type. Part of Nanle-code#415.
|
@devsimze 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! 🚀 |
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
Implements four enhancement issues:
starforge scheduleCLI (create/list/show/approve/reject/cancel/run/dashboard).starforge benchmark compare|history|show(existing raw timing benchmark moved tobenchmark wasm).starforge security pentestandstarforge security remediation.starforge backup.Each feature follows the existing CLI architecture: a
clapsubcommand insrc/commands/, backed by JSON-file-persisted logic insrc/utils/, registered insrc/main.rs.Closes #414
Closes #415
Closes #416
Closes #417
Test plan
cargo build --bin starforge— cleancargo clippy --bin starforge --lib -- -D warnings— cleancargo test --lib— 213 passed, 0 failed🤖 Generated with Claude Code