Skip to content

fix #526 - add upgrade mechanism to registry#625

Merged
rahul-kothari merged 4 commits into
masterfrom
rk/registry
May 23, 2023
Merged

fix #526 - add upgrade mechanism to registry#625
rahul-kothari merged 4 commits into
masterfrom
rk/registry

Conversation

@rahul-kothari

@rahul-kothari rahul-kothari commented May 19, 2023

Copy link
Copy Markdown
Contributor

Description

Per our slack discussion of registry snapshotting issue, currently, rollup/inbox/outbox just call the latest version of each other. So we aren't really handling forks for now. I have therefore created #624 for when we reach consensus on how to handle forks for L1<>L2 communication.

Fixes #526

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@LHerskind LHerskind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor nits on naming.

Comment thread l1-contracts/src/core/Rollup.sol
Comment thread l1-contracts/src/core/libraries/DataStructures.sol Outdated
Comment thread l1-contracts/src/core/messagebridge/Inbox.sol Outdated
Comment thread l1-contracts/src/core/messagebridge/Registry.sol Outdated

@LHerskind LHerskind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Needs some natspec for all the functions in Registry

Comment thread l1-contracts/src/core/messagebridge/Registry.sol Outdated
Comment thread l1-contracts/src/core/messagebridge/Registry.sol Outdated
Comment thread l1-contracts/src/core/messagebridge/Registry.sol Outdated

@LHerskind LHerskind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

More consistency on @notice then good to go.

@rahul-kothari rahul-kothari merged commit 3555337 into master May 23, 2023
@rahul-kothari rahul-kothari deleted the rk/registry branch May 23, 2023 08:50
danielntmd pushed a commit to danielntmd/aztec-packages that referenced this pull request Jun 4, 2026
…ol#23607)

Follow-up to AztecProtocol#23600 (merged), which pointed CI at the ClaudeBox v2
`/run` webhook but did not pass a mode.

A v2 session's GitHub repo access is derived from its mode
(`slack_route.effective_mode` in session meta). The `slackbot` group's
repos are entirely mode-scoped, so a `/run` session **without** a mode
only resolves the group chain's unscoped repos (`claudebox` + `honk-ai`)
and **cannot write `aztec-packages`** — the same "no GitHub access"
failure AztecProtocol#23600 set out to fix. Prompt text has no effect; `/run` never
parses mode flags.

This passes **`mode: "public"`** in both dispatch payloads (overridable
via repo var `CLAUDEBOX_MODE`), so kickoff/`/claudebox`/review sessions
resolve the public read-write repo set and can open PRs against
aztec-packages.

**Depends on AztecProtocol/claudebox#625**, which adds `mode` support to
the v2 `/run` endpoint (it stamps `effective_mode` into the new
session's meta). Without AztecProtocol#625 deployed, `mode` is accepted but ignored,
so land/deploy AztecProtocol#625 first or together.

## Testing
- `bash -n` on every `run:` body (7 steps) and YAML parse — pass.
- `jq` payload validated with `mode: "public"` for the issue-comment,
workflow_dispatch, and review shapes — valid JSON matching the v2
`RunRequest`.

---
*Created by
[claudebox](https://claudebox.work/v2/sessions/4b53f2dd8370a83a) ·
group: `slackbot`*
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.

Add upgrade function to registry

2 participants