You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/skills/replace-operator/SKILL.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,17 @@ user-invokable: true
6
6
7
7
# Replace Operator
8
8
9
-
Replace a single operator in a Charon cluster with a new one. Remaining operators run a `charon alpha edit replace-operator` ceremony (P2P via relay), then share the new cluster-lock with the new operator.
9
+
Replace a single operator in a Charon cluster with a new one. All participating operators (remaining + new) run a `charon alpha edit replace-operator` ceremony together (P2P via relay). The new operator must receive the current cluster-lock.json before the ceremony begins.
10
10
11
11
## Prerequisites
12
12
13
13
Read `scripts/edit/replace-operator/README.md` for full details if needed.
14
14
15
15
Common prerequisites:
16
16
1.`.env` file exists with `NETWORK` and `VC` variables set
17
-
2. Docker is running
17
+
2.`.charon` directory with `cluster-lock.json` and `charon-enr-private-key`
18
+
3. Docker is running
19
+
4.`jq` installed
18
20
19
21
## Role Selection
20
22
@@ -43,13 +45,13 @@ Ask the user: **"Are you a remaining operator (performing the replacement) or th
43
45
[--dry-run]
44
46
```
45
47
46
-
After completion, the script will print commands to start containers manually. Remind the user to **share the new cluster-lock.json with the new operator** and to **wait ~2 epochs before starting** containers.
48
+
After completion, the script will print commands to start containers manually. Remind the user to **wait ~2 epochs before starting** containers.
Copy file name to clipboardExpand all lines: scripts/edit/replace-operator/README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,11 @@ These scripts help operators replace a single operator in an existing distribute
14
14
15
15
There are two scripts for the two roles involved:
16
16
17
-
-**`remaining-operator.sh`** - For operators staying in the cluster (runs the ceremony)
17
+
-**`remaining-operator.sh`** - For operators staying in the cluster
18
18
-**`new-operator.sh`** - For the new operator joining the cluster
19
19
20
+
**Important**: All participating operators (remaining + new) run the `charon alpha edit replace-operator` ceremony together. The new operator must receive the current `cluster-lock.json` BEFORE the ceremony begins.
21
+
20
22
## Prerequisites
21
23
22
24
-`.env` file with `NETWORK` and `VC` variables set
@@ -34,6 +36,8 @@ Automates the complete workflow for operators staying in the cluster:
34
36
--old-enr "enr:-..."
35
37
```
36
38
39
+
**Before running**: Share your current `cluster-lock.json` with the new operator so they can participate in the ceremony.
40
+
37
41
### Options
38
42
39
43
| Option | Required | Description |
@@ -56,25 +60,35 @@ Automates the complete workflow for operators staying in the cluster:
56
60
57
61
## For New Operators
58
62
59
-
Two-step workflow for the new operator joining the cluster.
63
+
Three-step workflow for the new operator joining the cluster.
60
64
61
65
**Step 1:** Generate ENR and share with remaining operators:
0 commit comments