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

fp updates #732

Merged
merged 11 commits into from
Jun 10, 2024
Merged

fp updates #732

merged 11 commits into from
Jun 10, 2024

Conversation

cpengilly
Copy link
Collaborator

  • new explainer page, components page (was previous overview page), new fp security page
  • small updates to mips.sol and security faq (maybe this isn't needed)
  • redirects file update

- new explainer page, components page (was previous overview page), new fp security page
- small updates to mips.sol and security faq (maybe this isn't needed)
- redirects file update
Copy link

netlify bot commented Jun 10, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 6f62c55
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/6667543796a446000795e590
😎 Deploy Preview https://deploy-preview-732--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.

pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-security.mdx Outdated Show resolved Hide resolved
pages/chain/security/faq.mdx Outdated Show resolved Hide resolved
pages/chain/security/faq.mdx Outdated Show resolved Hide resolved
pages/chain/security/faq.mdx Outdated Show resolved Hide resolved
pages/chain/security/faq.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-security.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-security.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-security.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-security.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/mips.mdx Outdated Show resolved Hide resolved
@cpengilly cpengilly requested a review from sbvegan June 10, 2024 19:00
@cpengilly cpengilly dismissed sbvegan’s stale review June 10, 2024 19:00

updates all finished

@cpengilly cpengilly marked this pull request as ready for review June 10, 2024 19:02
@cpengilly cpengilly requested a review from a team as a code owner June 10, 2024 19:02
@cpengilly cpengilly requested a review from a team June 10, 2024 19:02
Copy link
Contributor

coderabbitai bot commented Jun 10, 2024

Warning

Rate limit exceeded

@cpengilly has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 32 minutes and 52 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 033f8e4 and 6f62c55.

Walkthrough

The changes primarily focus on updating the documentation and enhancing the security model for the Fault Proof System within the Optimism ecosystem. This includes renaming files, updating hyperlinks, adding new explanations, and refining the descriptions of various components and security mechanisms. Additionally, the changes introduce new JSON keys and redirect URLs to reflect the updated structure.

Changes

Files/Paths Change Summaries
pages/builders/notices/fp-changes.mdx Updated hyperlink from "Fault Proofs Overview" to "Fault Proofs Explainer".
pages/chain/security/faq.mdx Added detailed content on "Fault Proofs" related to OP Mainnet, enhancing system security and processes.
pages/.../fault-proofs/_meta.json Renamed and added new keys, including fp-components and fp-security.
pages/.../fault-proofs/explainer.mdx Introduced new file with detailed information about Fault Proofs in the OP Stack.
pages/.../fault-proofs/fp-components.mdx Renamed title to "FP System Components" and updated descriptions and content.
pages/.../fault-proofs/fp-security.mdx Introduced new file detailing security model changes for the Fault Proofs Mainnet System.
pages/.../fault-proofs/mips.mdx Updated control flow description from a video embed to textual explanation.
public/_redirects Redirected URL path from /stack/protocol/fault-proofs/overview to /stack/protocol/fault-proofs/explainer.
words.txt Added, removed, and altered various global entities, affecting the control flow and behavior of the system.

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
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: 10

Outside diff range and nitpick comments (12)
pages/builders/notices/fp-changes.mdx (2)

Line range hint 45-45: Consider adding an article for clarity.

- Most notable change for developers is that withdrawals will have to be proven against the `rootClaim` of some dispute game rather than referencing an output in the `L2OutputOracle` contract.
+ The most notable change for developers is that withdrawals will have to be proven against the `rootClaim` of some dispute game rather than referencing an output in the `L2OutputOracle` contract.

Line range hint 46-46: Consider adding a comma for better readability.

- ...against the `rootClaim` of some dispute game rather than referencing an output in the...
+ ...against the `rootClaim` of some dispute game, rather than referencing an output in the...
pages/stack/protocol/fault-proofs/fp-components.mdx (2)

Line range hint 34-34: Consider adding a comma for better readability.

- ...dispute games in the dispute protocol backed by multiple security mechanisms.
+ ...dispute games in the dispute protocol, backed by multiple security mechanisms.
Tools
LanguageTool

[style] ~15-~15: Style-wise, it’s not ideal to insert an adverb (‘eventually’) in the middle of an infinitive construction (‘to enable’). Try moving the adverb to avoid split infinitives. (SPLIT_INFINITIVE)
Context: ... a dispute game protocol. The system is designed to eventually enable secure bridging without central fallback. The modular d...


Line range hint 56-56: Consider adding an article for clarity.

- ...the program writes a hash as request for a pre-image, and then reads the value in small chunks at a time.
+ ...the program writes a hash as a request for a pre-image, and then reads the value in small chunks at a time.
Tools
LanguageTool

[style] ~15-~15: Style-wise, it’s not ideal to insert an adverb (‘eventually’) in the middle of an infinitive construction (‘to enable’). Try moving the adverb to avoid split infinitives. (SPLIT_INFINITIVE)
Context: ... a dispute game protocol. The system is designed to eventually enable secure bridging without central fallback. The modular d...

pages/stack/protocol/fault-proofs/mips.mdx (8)

Line range hint 26-26: Clarify the phrase "up until this instruction" to enhance precision.

- ...is the previously agreed-upon L2 state up until this instruction...
+ ...is the previously agreed-upon L2 state until this instruction...

Line range hint 38-38: Consider using concise language to enhance readability.

- ...up to 3 different types of witness data in order to perform a single MIPS instruction onchain...
- ...In order to execute a MIPS instruction onchain, the `MIPS.sol` contract needs to know...
- ...The primary reason for this is because having to load the entire memory into the `MIPS.sol` contract in order to execute a single instruction onchain is prohibitively expensive...
- ...Therefore, in order to optimize the amount of data that needs to be provided per onchain instruction execution while still maintaining integrity over the entire 32-bit address space...
- ...In order to ensure the integrity of the entire address space each time memory is read or written to...
- ...The address is used as the path in order to determine the order for hashing two nodes...
- ...will be called by an active dispute game in order to determine the true post state given a pre state and a MIPS instruction to run...

+ ...up to 3 different types of witness data to perform a single MIPS instruction onchain...
+ ...To execute a MIPS instruction onchain, the `MIPS.sol` contract needs to know...
+ ...The primary reason for this is that loading the entire memory into the `MIPS.sol` contract to execute a single instruction onchain is prohibitively expensive...
+ ...Therefore, to optimize the amount of data provided per onchain instruction execution while still maintaining integrity over the entire 32-bit address space...
+ ...To ensure the integrity of the entire address space each time memory is read or written to...
+ ...The address is used as the path to determine the order for hashing two nodes...
+ ...will be called by an active dispute game to determine the true post state given a pre state and a MIPS instruction to run...

Also applies to: 51-51, 85-85, 85-85, 87-87, 154-154, 169-169


Line range hint 53-53: Remove the redundant hyphen in "tightly-packed".

- ...More specifically, a tightly-packed `State` struct contains all the relevant information...
+ ...More specifically, a tightly packed `State` struct contains all the relevant information...

Line range hint 58-58: Remove the unnecessary comma after "so that".

- ...the offset into the Pre-image being read, so that an instruction can continue reading a Pre-image...
+ ...the offset into the Pre-image being read so that an instruction can continue reading a Pre-image...

Line range hint 87-87: Consider rephrasing "exactly the same" to a more concise form.

- ...This merkle root should be exactly the same as the merkle root stored in the VM execution State struct...
+ ...This merkle root should match the merkle root stored in the VM execution State struct...

Line range hint 119-119: Clarify the use of "write" in the context of a syscall.

- ...the file descriptor 6 as the target of the write syscall...
+ ...the file descriptor 6 as the target of the write operation in the syscall...

Line range hint 119-119: Remove the redundant hyphen in "newly-derived".

- ...at the location of the newly-derived `preimageKey`.
+ ...at the location of the newly derived `preimageKey`.

Line range hint 178-178: Separate "however" from the sentence for better readability.

- ...instructions according to the MIPS specification, however other instructions will pass through this function...
+ ...instructions according to the MIPS specification; however, other instructions will pass through this function...

pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-components.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: 2

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

4-4: Ensure the description is concise and informative.

The description is well-written and concise, providing a clear overview of the content to be expected in the document.

pages/stack/protocol/fault-proofs/explainer.mdx Outdated Show resolved Hide resolved
pages/stack/protocol/fault-proofs/fp-components.mdx Outdated Show resolved Hide resolved
cpengilly and others added 2 commits June 10, 2024 12:21
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@ZakAyesh ZakAyesh left a comment

Choose a reason for hiding this comment

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

lgtm

@cpengilly cpengilly merged commit 5832fd7 into main Jun 10, 2024
8 checks passed
@cpengilly cpengilly deleted the fp-updates branch June 10, 2024 20:14
@coderabbitai coderabbitai bot mentioned this pull request Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants