Repository navigation
Conversation
Add a how-to for `teku slashing-protection repair`, rewrite its reference section, and point the slashing protection concept page at it. The docs cover the behaviour in Consensys-Incorporated/teku#11621 (genesis root kept, network check, --slot loads no state, genesis state fallback) and #11622 (update-all creates records for validator keys without one, and --help only lists the options repair uses). Fix errors in every version of the slashing protection pages: the flag is --check-only-enabled, not --checking-only-enabled; the import and repair --data-path links pointed at the export section; and the directory is <data-path>/validator/slashprotection, not validators/.
Only the development docs change; the released versioned_docs keep their current text.
The pre-commit Prettier run reformatted a table row in the restored versioned_docs; keep them identical to main.
|
@rolfyone is attempting to deploy a commit to the Consensys Incorporated Team on Vercel. A member of the Team first needs to authorize it. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Move the missing-file explanation into the update-all section, add the repair concept section, and rename headings to describe the actions. Co-authored-by: Cursor <cursoragent@cursor.com>
rolfyone
marked this pull request as ready for review
November 17, 2026 03:51
This was referenced Nov 23, 2026
Contributor
|
We need to ensure we are covering #829 in the PR as well. Adding this note to reference the issue and close the loop. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #787.
Also covers #829 (closed in favour of this PR): the preserved genesis validators root, the network check,
--slotskipping that check, and the genesis-state fallback.Documents
teku slashing-protection repair, including the changes in two Teku PRs, both merged on 2026-11-17:genesisValidatorsRootwhen update-all raises records; stops if existing records belong to a different network when the slot is computed;--slotloads no state; falls back to the genesis state; and records are never lowered.--update-all-enabledcreates records for validator keys that have none, listing the keys it found and the keys it couldn't check; andrepair --helponly lists the options repair uses.Changes (
docs/)New how-to, "Repair slashing protection files" (
how-to/prevent-slashing/repair-slashing-protection.md), placed second under "Prevent slashing offenses". It covers:mainnetnetwork);The example output is taken from the commands' actual messages.
Reference page, repair section rewritten:
=false;networkdescription specific to repair, with a warning about the default;checkpoint-sync-url,genesis-state,initial-state,validator-keysandvalidators-external-signer-public-keys;--data-base-pathalias.Concept page:
Other fixes on the slashing protection pages
--checking-only-enabled→--check-only-enabled; the documented flag doesn't exist.--data-pathlinks pointed at the export section's heading.<data-path>/validator/slashprotection/, notvalidators/. One example also included adata/directory that doesn't exist.Only the development version (
docs/) changes;versioned_docs/is untouched. The released versions still have these three errors.Checks
npm run buildsucceeds; the build fails on broken links, and there were no anchor warnings.prettier --checkpasses on the changeddocs/files.Note
Low Risk
Documentation-only changes with no runtime or security impact; risk is limited to doc accuracy relative to unreleased Teku PRs noted in the description.
Overview
Adds end-user documentation for
teku slashing-protection repair, including a new how-to and an expanded CLI reference aligned with upcoming Teku behavior.New content:
repair-slashing-protection.mdexplains when to repair, prerequisites (stop the validator client, match network/config),--check-only-enabled, repairing damaged YAML,--update-all-enabledto raise valid files and create missing records, manual--slotselection, and lowering values by hand.Updated pages: The slashing protection concept page adds a repair section (repair slot rules, raise-only semantics, network/
genesisValidatorsRootchecks) plus warnings that missing files allow signing. Migration guidance now includes repair with--update-all-enabledwhen importing keys without interchange data.Reference & fixes: The
repairsection is rewritten with options such ascheckpoint-sync-url,genesis-state,initial-state,validator-keys, and network cautions. Docs correct--checking-only-enabled→--check-only-enabled, slashprotection paths to<data-path>/validator/slashprotection/(notvalidators/), and sidebar order under “Prevent slashing.”Reviewed by Cursor Bugbot for commit ee38b4d. Bugbot is set up for automated code reviews on this repo. Configure here.