Repository navigation
Add profiling, architecture docs, health monitoring and delegation - #1221
Open
Muhammadcodes112 wants to merge 4 commits into
Open
Muhammadcodes112 wants to merge 4 commits into
Muhammadcodes112 wants to merge 4 commits into
Conversation
added 4 commits
November 23, 2026 23:06
|
@Muhammadcodes112 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.
perf_profiling.rs, which turns the per-operation profiles fromrecord_compute_usageinto metrics (average cost, spread, estimate drift, accuracy), an actionable insight per operation, and a report tracker (samples, flagged operations, hottest operation).docs/ADVANCED_ARCHITECTURE.mdwith the contract's architecture patterns, Mermaid diagrams, code examples from the repo, an optimization guide and a reference table, linked fromARCHITECTURE.md.contract_health.rson top of the existing monitoring stats: it counts alerts and failed deliveries in a check window, assesses Healthy/Degraded/Critical against configurable thresholds, and logs each check and status change.invoice_delegation.rs: per-delegate permission levels (View/Manage/Full) mapped to invoice actions, optional expiry, single and bulk revocation, and grant/revoke tracking.Each new module is declared in
contracts/split/src/lib.rsand has unit tests. I checked the changes by reading the code paths and tracing the logic. I did not build the crate or run the tests.Closes #1190
Closes #1188
Closes #1187
Closes #1185