GeezerVison is showing github.com — docs: never set introduced_epoch in the future; third challenge needs… · CortexLM/cortex@f03b843
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: config/challenges.toml +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Development challenge profile (emission shares). The master reads |
2 | 2 | # this unsigned file; the gateway serves it at GET /v1/trust and validators build their |
3 | | -# view from that. To change shares: edit, bump `version`, restart the master. |
| 3 | +# view from that. To change shares: edit, bump `version`, restart the master between two |
| 4 | +# epochs. Never set `introduced_epoch` above the current epoch (sealing and decoding stop |
| 5 | +# for older epochs). A third challenge or free shares need `challenges_version >= 3`. |
4 | 6 | # |
5 | 7 | # Two live challenges. Emission: bounty = 2000, proof = 8000 bps (sum 10000). |
6 | 8 | # Readiness is independent of these shares: a missing feed, topic, baseline, |
|
Collapse file
Copy file name to clipboardExpand all lines: deploy/README.md +10-3Lines changed: 10 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -208,9 +208,16 @@ The challenge profile is the unsigned `config/challenges.toml` (plus |
208 | 208 | of truth and serves it at `GET /v1/trust`. |
209 | 209 |
|
210 | 210 | 1. Edit the `[[challenges]]` shares (basis points, sum 10000) in `config/challenges.toml`. |
211 | | -2. Bump `version` (and set `introduced_epoch` to a future epoch if the change must |
212 | | - not apply to the current one). The gateway store refuses a version rollback. |
213 | | -3. Run `python scripts/check_repo.py`, then restart the master. |
| 211 | +2. Bump `version`. Adding a third challenge or arbitrary shares needs |
| 212 | + `challenges_version >= 3` (1..64 unique ids summing to 10000); versions 1-2 only |
| 213 | + accept the 2000/8000 and 3000/7000 splits. Do NOT set `introduced_epoch` in the |
| 214 | + future: the profile is global, so the master then cannot seal epochs before it |
| 215 | + and the gateway cannot decode stored seals older than it (`/v1/weights/latest` |
| 216 | + answers "unsealed" and the emission burns). Keep the existing value, or the epoch |
| 217 | + of the first bundle the new profile must govern, never above the current epoch. |
| 218 | + The gateway store refuses a version rollback. |
| 219 | +3. Run `python scripts/check_repo.py`, then restart the master between two epochs |
| 220 | + (just after a seal), because the new shares apply to the next bundle it builds. |
214 | 221 | 4. Validators pick up the new profile from `/v1/trust` at the next epoch; no |
215 | 222 | validator restart or file copy is needed. Check `GET /v1/trust` shows the new |
216 | 223 | `challenges_version`. |
|
Collapse file
Copy file name to clipboardExpand all lines: docs/THREAT_MODEL.md +4-3Lines changed: 4 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,9 +14,10 @@ signed dissent can be retained as local evidence. |
14 | 14 |
|
15 | 15 | The Merkle root is not part of the Bittensor weight extrinsic. Peer consensus is |
16 | 16 | therefore not a public chain transparency log. A colluding validator set can |
17 | | -agree on one bad root, and an operator can delete local evidence. The owner signs |
18 | | -the roots and runs the master, so a malicious owner can authorize dishonest |
19 | | -challenge shares or generated topic rules that validators will faithfully accept. |
| 17 | +agree on one bad root, and an operator can delete local evidence. The operator |
| 18 | +runs the master and the gateway, and the challenge profile is unsigned, so a malicious |
| 19 | +operator can authorize dishonest challenge shares or generated topic rules that validators |
| 20 | +will faithfully accept. |
20 | 21 |
|
21 | 22 | ## Trust boundaries |
22 | 23 |
|
|