Skip to content

script: Adds ScribeOptimisticOffboarder - #76

Merged
pmerkleplant merged 3 commits into
mainfrom
scribe_op_offboarder
Nov 25, 2026
Merged

pmerkleplant merged 3 commits into
mainfrom
scribe_op_offboarder

Conversation

@pmerkleplant

@pmerkleplant pmerkleplant commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added a two-step offboarding process for ScribeOptimistic instances. Run the second step in a later block; the instance continues to report its last value between steps.
    • Added separate script commands for each offboarding step.
  • Documentation
    • Clarified which offboarding methods apply to Scribe and ScribeOptimistic instances, along with authorization requirements and follow-up actions.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 739a2e50-2fb1-4ef4-8e34-0df55accde06
Commits

Reviewing files that changed from the base of the PR and between d98f4ce and c7b2ddc.

Files selected for processing: 5

  • .github/workflows/lint.yml
  • .github/workflows/non-via-ir-compilation.yml
  • .github/workflows/solc-version-tests.yml
  • .github/workflows/unit-tests.yml
  • test/rescue/RescuerTest.t.sol

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a two-step offboarding flow for ScribeOptimistic instances, with contract methods, script entry points, tests, and management documentation. It also removes the default zkSync Foundry profile.

Changes: ScribeOptimistic Offboarding

Layer / File(s) Summary
Two-step offboarding contract
script/offboard/ScribeOptimisticOffboarder.sol
Adds authorized steps to remove lifted feeds, set the bar, submit a zero-value poke, and revoke the offboarder’s authorization. The contract includes internal Schnorr signing.
Offboarding script entry points
script/Scribe.s.sol, script/ScribeOptimistic.s.sol, script/offboard/ScribeOffboarder.sol
Adds script entry points for both steps and makes the generic Scribe offboard method virtual. The existing offboarder file also gains a comment.
Offboarding tests and instructions
test/offboard/ScribeOptimisticOffboarder.t.sol, docs/Management.md
Adds direct and fuzz tests for offboarding state, authorization, and value zeroing. Documents the ScribeOptimistic procedure and distinguishes it from other deactivation methods.

Foundry Configuration

Layer / File(s) Summary
Remove default zkSync profile
foundry.toml
Removes the default zkSync profile and its zksolc version setting.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant ScribeOptimisticScript
  participant ScribeOptimisticOffboarder
  participant Scribe
  ScribeOptimisticScript->>ScribeOptimisticOffboarder: offboard_Step1
  ScribeOptimisticOffboarder->>Scribe: Drop lifted feeds and set bar to 1
  Note over ScribeOptimisticScript,Scribe: Step 2 runs in a later block
  ScribeOptimisticScript->>ScribeOptimisticOffboarder: offboard_Step2
  ScribeOptimisticOffboarder->>Scribe: Submit zero-value poke and finalize offboarding
Loading

Suggested reviewers: max-wickham

Merge Risk: Minimal · previous review d98f4

This PR adds a two-step offboarding script and contract for ScribeOptimistic instances, with tests and documentation. No concrete defect was identified. The CI runs failed at the Foundry install step, so the tests should be re-run once the toolchain issue is resolved.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "script: Adds ScribeOptimisticOffboarder" names the main change. The PR adds the ScribeOptimisticOffboarder contract, its two-step offboarding flow, the script entry points in ScribeOptimist…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "script: Adds ScribeOptimisticOffboarder" names the main change. The PR adds the ScribeOptimisticOffboarder contract, its two-step offboarding flow, the script entry points in ScribeOptimisticScript, tests, and docs. The title is short, specific, and in a conventional form. It does not mention the two-step nature or the test and docs additions, which is acceptable because it need not cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f952244-5e47-4d85-ace4-37f830cf0a09
Commits

Reviewing files that changed from the base of the PR and between 12ff06c and d98f4ce.

Files selected for processing: 7

  • docs/Management.md
  • foundry.toml
  • script/Scribe.s.sol
  • script/ScribeOptimistic.s.sol
  • script/offboard/ScribeOffboarder.sol
  • script/offboard/ScribeOptimisticOffboarder.sol
  • test/offboard/ScribeOptimisticOffboarder.t.sol
Files with no reviewable changes: 1

  • foundry.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@pmerkleplant
pmerkleplant merged commit 8479eff into main Nov 25, 2026
6 checks passed
@pmerkleplant
pmerkleplant deleted the scribe_op_offboarder branch November 25, 2026 14:53
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.

2 participants