-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Claim expiration #649
Conversation
Warning Review failedThe pull request is closed. WalkthroughThis update enhances documentation on claim expiration by detailing the process and reasons for expiring claims when proofs are not submitted within the proof window, leading to forfeiture of rewards. It elaborates on operational efficiency and the necessity of timely closing the proof window. Changes
Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md (3 hunks)
Additional context used
LanguageTool
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
[duplication] ~20-~20: Possible typo: you repeated a word
Context: ...Claim Expiration](#claim-expiration) - Session - Session Duration - [Sessi...(ENGLISH_WORD_REPEAT_RULE)
[style] ~134-~134: ‘prior to’ might be wordy. Consider a shorter alternative.
Context: ...aSupplier
fails to submit aProof
prior to theProof Window
closing, the claim w...(EN_WORDINESS_PREMIUM_PRIOR_TO)
[grammar] ~140-~140: The plural noun “claims” cannot be used with the article “a”. Did you mean “a claim” or “claims”?
Context: ...lement SHOULD be limited to considering a claims created within a rolling window of bloc...(A_NNS)
[uncategorized] ~349-~349: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ... the Proof Window, the Claim will expire and the supplier will forfeit rewards for t...(COMMA_COMPOUND_SENTENCE_2)
Markdownlint
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
133-133: Expected: 0 or 2; Actual: 1
Trailing spaces(MD009, no-trailing-spaces)
350-350: Expected: 0 or 2; Actual: 1
Trailing spaces(MD009, no-trailing-spaces)
Additional comments not posted (1)
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md (1)
18-19
: Update Table of Contents for ConsistencyEnsure that the new section "Claim Expiration" is consistently formatted and aligned with other sections in the Table of Contents.
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
Outdated
Show resolved
Hide resolved
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
Outdated
Show resolved
Hide resolved
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
Outdated
Show resolved
Hide resolved
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
Outdated
Show resolved
Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md (3 hunks)
Additional context used
LanguageTool
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
[duplication] ~20-~20: Possible typo: you repeated a word
Context: ...Claim Expiration](#claim-expiration) - Session - Session Duration - [Sessi...(ENGLISH_WORD_REPEAT_RULE)
[uncategorized] ~139-~139: Possible missing comma found.
Context: ...ur while the application stake is still locked and applications must be allowed comple...(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~139-~139: Possible missing preposition found.
Context: ...locked and applications must be allowed complete unstaking in finite time. 1. Claim sett...(AI_HYDRA_LEO_MISSING_TO)
Markdownlint
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
142-142: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines(MD022, blanks-around-headings)
141-141: null
Lists should be surrounded by blank lines(MD032, blanks-around-lists)
Additional comments not posted (5)
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md (5)
131-132
: Remove trailing space.Trailing spaces should be removed to maintain clean formatting.
-### Claim Expiration +### Claim Expiration
133-135
: Add comma before "and".Use a comma before “and” if it connects two independent clauses.
-submit a `Proof` during the Proof Window, the Claim will expire and the supplier will forfeit rewards for the claimed +submit a `Proof` during the Proof Window, the Claim will expire, and the supplier will forfeit rewards for the claimed
133-135
: Simplify wording.Replace "prior to" with "before" to improve readability.
-If a claim requires a proof (as determined by [Probabilistic Proofs](probabilistic_proofs.md)) and a `Supplier` fails -to submit a `Proof` prior to the `Proof Window` closing, the claim will expire and the `Supplier` will forfeit any -rewards for the work done. +If a claim requires a proof (as determined by [Probabilistic Proofs](probabilistic_proofs.md)) and a `Supplier` fails +to submit a `Proof` before the `Proof Window` closes, the claim will expire and the `Supplier` will forfeit any +rewards for the work done.
140-140
: Fix grammar issue.The plural noun “claims” cannot be used with the article “a”. Use "claims" without the article "a".
-1. Claim settlement SHOULD be limited to considering a claims created within a rolling window of blocks to decouple settlement from a long-tail accumulation of unsettled claims. +1. Claim settlement SHOULD be limited to considering claims created within a rolling window of blocks to decouple settlement from a long-tail accumulation of unsettled claims.
18-19
: Fix duplicated word in the table of contents.Remove the repeated "Session" word for clarity.
- - [Session](#session) + - [Session](#session)Likely invalid or redundant comment.
docusaurus/docs/protocol/primitives/claim_and_proof_lifecycle.md
Outdated
Show resolved
Hide resolved
@@ -15,6 +15,8 @@ to all readers. | |||
::: | |||
|
|||
- [Introduction](#introduction) | |||
- [Session Windows & On-Chain Parameters](#session-windows--on-chain-parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you ever merge in your mermaid diagram with the sequence of steps for the window that you left in a PR comment once?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote it as the gantt chart that's in this section. The timeline diagram doesn't support concurrent events, which is necessary to describe the grace period.
@@ -126,6 +128,17 @@ gantt | |||
|
|||
- [`poktroll.shared.Params` / `sharedtypes.Params`](https://github.com/pokt-network/poktroll/blob/main/proto/poktroll/shared/params.proto) | |||
|
|||
### Claim Expiration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General feedback (not actionable right now).
This sort of documentation is very accurate and very correct but it reminds me of IEEE RFCs: https://datatracker.ietf.org/doc/html/rfc7951
If we're doing is as a reference for ourselves and AIs, no changes.
As you iterate on docs in the future, just keep in mind that 99% of people will want to:
- Read 1-2 sentences
- See colors and titles
- Look at pictures
- Move on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deliverable was to capture this detail. This seemed like the most appropriate place to do so. I couldn't think of a way to make a picture out of this at the time.
…elayer-session-manager * issues/553/fix/replay-observable: chore: go imports chore: update comment chore: update comment chore: review feedback improvements [Relayminer] refactor: query `min_relay_difficulty_bits` param (#655) [Docs] Claim expiration (#649) [LoadTest] Passing non-existing plans variable (#661) Tiny: updating labels in tiltfile [Load Testing] fix: relay stress test duration calculation (#651) [LocalNet] Grafana stress test dashboard changes (#641)
Summary
Issue
Type of change
Select one or more:
Testing
Documentation changes (only if making doc changes)
make docusaurus_start
; only needed if you make doc changesLocal Testing (only if making code changes)
make go_develop_and_test
make test_e2e
PR Testing (only if making code changes)
devnet-test-e2e
label to the PR.make trigger_ci
if you want to re-trigger tests without any code changesSanity Checklist
Summary by CodeRabbit