Skip to content
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

challenger docs #759

Merged
merged 14 commits into from
Jun 21, 2024
Merged

challenger docs #759

merged 14 commits into from
Jun 21, 2024

Conversation

cpengilly
Copy link
Collaborator

  • explainer
  • how to guide

- explainer
- how to guide
@cpengilly cpengilly requested a review from a team as a code owner June 19, 2024 03:47
@cpengilly cpengilly requested a review from a team June 19, 2024 03:47
Copy link
Contributor

coderabbitai bot commented Jun 19, 2024

Walkthrough

The latest changes include the addition of a comprehensive guide for configuring and utilizing op-challenger within OP Stack chains. Updated documentation details the execution and testing of this component and adjustments to file paths for deploying smart contracts. Additionally, metadata and link updates enhance reference clarity. Minor text corrections are also made.

Changes

Files/Paths Change Summary
pages/builders/chain-operators/tools/op-challenger.mdx Added comprehensive guide for configuring and utilizing op-challenger
pages/stack/protocol/fault-proofs/challenger.mdx Detailed insights and responsibilities for OP-Challenger
pages/builders/chain-operators/features/_meta.json Introduced new key-value pair "op-challenger": "Configure Challenger For Your Chain"
pages/builders/chain-operators/deploy/smart-contracts.mdx Updated file path for deploying smart contracts within the monorepo
pages/stack/protocol/fault-proofs/_meta.json Added the entry "challenger": "OP-Challenger"
pages/stack/protocol/fault-proofs/cannon.mdx Linked to OP-Challenger within fault dispute game documentation
words.txt Corrected and added terms (e.g., Additinally corrected, Brotli, incentivized, mountpoint)

Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ee270dd and 44d9640.

Files selected for processing (2)
  • pages/builders/chain-operators/tools/op-challenger.mdx (1 hunks)
  • pages/stack/protocol/fault-proofs/challenger.mdx (1 hunks)
Additional context used
Path-based instructions (2)
pages/stack/protocol/fault-proofs/challenger.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "
pages/builders/chain-operators/tools/op-challenger.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "
LanguageTool
pages/stack/protocol/fault-proofs/challenger.mdx

[style] ~46-~46: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...ts that its trusted node disagrees with in order to claim the bond attached to it. The hone...


[grammar] ~104-~104: Using ‘plenty’ without ‘of’ is considered to be informal. (PLENTY_OF_NOUNS)
Context: ...o protect funds). So, there's no strict amount challengers need to have, but here are some general...


[style] ~104-~104: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing. (REP_NEED_TO_VB)
Context: ...o, there's no strict amount challengers need to have, but here are some general guideli...


[grammar] ~113-~113: It seems that “to” is missing before the verb. (MISSING_TO_BETWEEN_BE_AND_VB)
Context: .... Claims that are found to be incorrect have their bonds paid to the account that po...


[uncategorized] ~113-~113: “its” (belonging to it) seems less likely than “it’s” (it is) (AI_HYDRA_LEO_CPT_ITS_ITIS)
Context: ...er successfully counters the claim, but its setup so that the bond is only ever pai...


[typographical] ~116-~116: Consider adding a comma after ‘Typically’ for more clarity. (RB_LY_COMMA)
Context: ...rom that game is paid to the same user. Typically this means that bonds are claimable 7 d...


[uncategorized] ~122-~122: A comma may be missing after the conjunctive/linking adverb ‘Otherwise’. (SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)
Context: ...n the funding available to an attacker. Otherwise the attacker can just post so many clai...


[style] ~124-~124: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase. (EN_WEAK_ADJECTIVE)
Context: ...eir bonds to the honest actors which is a very strong disincentive against trying to win game...

pages/builders/chain-operators/tools/op-challenger.mdx

[style] ~84-~84: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing. (REP_NEED_TO_VB)
Context: ...ess. #### --rollup-rpc * This needs to be anop-node archive node because cha...


[uncategorized] ~125-~125: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...art. The data can be recreated if needed but particularly if challenger has executed...


[uncategorized] ~125-~125: Possible missing article found. (AI_HYDRA_LEO_MISSING_A)
Context: ...recreated if needed but particularly if challenger has executed cannon as part of respondi...


[grammar] ~133-~133: The verb ‘prestate’ does not usually follow articles like ‘the’. Check that ‘prestate’ is spelled correctly; using ‘prestate’ as a noun may be non-standard. (A_INFINITIVE)
Context: .... * There are two ways to specify the prestate to use: * --cannon-prestate`: ...


[grammar] ~136-~136: The verb ‘prestate’ does not usually follow articles like ‘a’. Check that ‘prestate’ is spelled correctly; using ‘prestate’ as a noun may be non-standard. (A_INFINITIVE)
Context: ...their hash. * Example final Url for a prestate: * [https://example.com/prestat...

Additional comments not posted (3)
pages/stack/protocol/fault-proofs/challenger.mdx (1)

83-83: Use More Formal Language

Consider using a more formal verb than "fix" to describe resolving issues in a professional document.

- The actor would have 3.5 days on their side of the game to fix the problem by switching to a beacon node that does have blobs, and could then carry on as usual.
+ The actor would have 3.5 days on their side of the game to address the problem by switching to a beacon node that does have blobs, and could then proceed as usual.

Likely invalid or redundant comment.

pages/builders/chain-operators/tools/op-challenger.mdx (2)

67-68: Grammar Correction: Verb Form

Correct the verb form for better grammatical accuracy.

- *   If the chain is proposing regularly, a blob archiver isn't needed. There's only have a small window in the blob retention period that games can be played.
+ *   If the chain is proposing regularly, a blob archiver isn't needed. There's only a small window in the blob retention period that games can be played.

Likely invalid or redundant comment.


133-133: Grammar Correction: Numerical Agreement

Ensure numerical agreement in the sentence for clarity.

- *   There's two ways to specify the prestate to use:
+ *   There are two ways to specify the prestate to use:

Likely invalid or redundant comment.

Tools
LanguageTool

[grammar] ~133-~133: The verb ‘prestate’ does not usually follow articles like ‘the’. Check that ‘prestate’ is spelled correctly; using ‘prestate’ as a noun may be non-standard. (A_INFINITIVE)
Context: .... * There are two ways to specify the prestate to use: * --cannon-prestate`: ...


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Jun 19, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 44d9640
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/6675cb3c82acd4000849bfa6
😎 Deploy Preview https://deploy-preview-759--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
@cpengilly cpengilly requested a review from ajsutton June 19, 2024 04:49
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like a lot of this still sounds like my very rough notes. Not sure what style we usually use for our docs but worth reviewing the language to fit with that - there's a lot of "we" and "you" which feels overly informal through here for example.

pages/builders/chain-operators/deploy/smart-contracts.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/features/op-challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
words.txt Outdated Show resolved Hide resolved
Co-authored-by: Adrian Sutton <adrian@symphonious.net>
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Outside diff range and nitpick comments (5)
pages/builders/chain-operators/deploy/smart-contracts.mdx (1)

Line range hint 60-60: Suggested Grammar Improvement: Add a comma for clarity.

The sentence would benefit from a comma after "contracts" for better readability.

- ... for each of the contracts as well as a shared SuperchainConfig contract.
+ ... for each of the contracts, as well as a shared SuperchainConfig contract.
pages/stack/protocol/fault-proofs/challenger.mdx (4)

10-12: Clarify the link to OP-Challenger Explainer.

The link to the OP-Challenger Explainer might benefit from more context about what the reader can expect to find there, especially since it's referenced as a starting point for those new to the topic.


34-35: Clarify the role of 'cannon' and 'op-program'.

The role and function of the cannon and op-program executables could be expanded upon to help users understand why they are significant within the op-challenger setup.


65-67: Clarify the implications of a 'poisoned prestate'.

The concept of a "poisoned prestate" is introduced here but might be too jargon-heavy without sufficient explanation. Consider adding a definition or a more detailed description to aid understanding.

Tools
LanguageTool

[grammar] ~65-~65: The progressive verb “agree” is used incorrectly. Consider changing it to the simple tense. (PROGRESSIVE_VERB_AGREE)
Context: ...t to have a "poisoned prestate" where it's implicitly agreeing to something false. Then, once the hon...


94-96: Clarify the implications of lacking a blob archiver.

The scenario described here is critical and could benefit from a more detailed explanation or example to illustrate the consequences of not having a blob archiver.

Tools
LanguageTool

[style] ~96-~96: Consider using a different verb for a more formal wording. (FIX_RESOLVE)
Context: ...ve 3.5 days on your side of the game to fix the problem by switching to a beacon no...

words.txt Show resolved Hide resolved
words.txt Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
@ajsutton ajsutton self-requested a review June 21, 2024 05:17
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Outside diff range and nitpick comments (1)
pages/stack/protocol/fault-proofs/challenger.mdx (1)

10-12: Clarify the Document's Scope in the Introduction

The introduction could be enhanced by specifying what aspects of the OP-Challenger are covered in this document versus what is covered in the linked explainer. This helps set the right expectations for the reader.

pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Outside diff range and nitpick comments (1)
pages/stack/protocol/fault-proofs/challenger.mdx (1)

10-10: Ensure Proper Capitalization in Titles

The title "OP-Challenger Explainer" should follow the proper title case as per the additional instructions. Each major word in the title should be capitalized.

pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@ethereum-optimism ethereum-optimism deleted a comment from coderabbitai bot Jun 21, 2024
Copy link
Collaborator

@sbvegan sbvegan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm: I just left a non-blocking nit and comment about the download link

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

Outside diff range and nitpick comments (6)
pages/stack/protocol/fault-proofs/cannon.mdx (6)

Line range hint 71-71: Simplify language for clarity.

The word "important" might be overused. Consider simplifying the sentence to make it more direct.

- how memory is stored isn't important, as it can hold the entire monolithic memory within the Go runtime.
+ how memory is stored is not crucial, as it can hold the entire monolithic memory within the Go runtime.

Line range hint 73-73: Simplify the phrase to enhance readability.

The phrase "in order to" can often be simplified to "to" without losing meaning.

- such that only small portions are needed in order to run a MIPS instruction onchain.
+ such that only small portions are needed to run a MIPS instruction onchain.

Line range hint 85-85: Correct the punctuation.

There seems to be an unnecessary space before the comma, which might be a typographical error.

- [generalized Merkle tree index specification](https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#generalized-merkle-tree-index).  `page.go`, as the name implies, defines memory pages...
+ [generalized Merkle tree index specification](https://github.com/ethereum/consensus-specs/blob/dev/ssz/merkle-proofs.md#generalized-merkle-tree-index). `page.go`, as the name implies, defines memory pages...

Line range hint 98-98: Grammar correction needed.

The verb form should match the plural subject in the sentence.

- as long as the memory region the Merkle root covers has not been written to.
+ as long as the memory region the Merkle root covers have not been written to.

Line range hint 122-122: Consider rephrasing to avoid redundancy.

The phrase "exactly the same" is somewhat redundant. Consider using "identical" instead to reduce wordiness.

- should be exactly the same as the post state generated by the `mipsevm`.
+ should be identical to the post state generated by the `mipsevm`.

Line range hint 192-192: Consider rephrasing to avoid redundancy.

The phrase "exactly the same" is somewhat redundant. Consider using "identical" instead to reduce wordiness.

- In fact, they must produce **exactly the same results** given the same instruction, memory, and register state.
+ In fact, they must produce **identical results** given the same instruction, memory, and register state.

pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/tools/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/tools/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/tools/op-challenger.mdx Outdated Show resolved Hide resolved
pages/builders/chain-operators/tools/op-challenger.mdx Outdated Show resolved Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

@cpengilly cpengilly merged commit 7c8db33 into main Jun 21, 2024
7 of 8 checks passed
@cpengilly cpengilly deleted the challenger-docs branch June 21, 2024 22:50
@coderabbitai coderabbitai bot mentioned this pull request Nov 29, 2024
@coderabbitai coderabbitai bot mentioned this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants