Skip to content

docs: Network Keeper Roles page#432

Open
MuncleUscles wants to merge 1 commit into
mainfrom
docs/network-keeper-roles-pub
Open

docs: Network Keeper Roles page#432
MuncleUscles wants to merge 1 commit into
mainfrom
docs/network-keeper-roles-pub

Conversation

@MuncleUscles

@MuncleUscles MuncleUscles commented Jul 3, 2026

Copy link
Copy Markdown
Member

Description

Publishes the "Network Keeper Roles" page — the permissionless functions anyone can call to keep the network live (inflation relayer, epoch advancer, validator primer, appellant, finalizer, stuck-tx healer, burn trigger, quarantine GC), each with trigger, reward formula, and risk-if-idle. The inflation relayer is flagged prominently: it gates network-wide epoch progression (epoch+1 <= inflationEpoch), so the chain halts if nobody relays. Content promoted from the internal staking spec; verified against genlayer-consensus v0.6-dev.

Release Notes

New validator/operator docs page documenting permissionless keeper roles.

Types of Changes

  • Documentation

Checklist

  • Route registers (scripts/list-docs-routes.js)
  • Facts verified against consensus v0.6-dev

Summary by CodeRabbit

  • Documentation

    • Added a new Validators page covering network keeper roles, including what each role does, when to trigger it, and any rewards or operational impacts.
    • Included practical guidance for running keepers, such as endpoints, checklist items, and related resources.
  • Chores

    • Updated the Validators metadata so the new network keeper roles page appears in the documentation navigation.

@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for genlayer-docs ready!

Name Link
🔨 Latest commit ee38c12
🔍 Latest deploy log https://app.netlify.com/projects/genlayer-docs/deploys/6a4790e4972c8b00082bf738
😎 Deploy Preview https://deploy-preview-432--genlayer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds a new documentation page, pages/validators/network-keeper-roles.mdx, describing permissionless "network keeper roles" (functions anyone can call to maintain network liveness), including a role summary table, per-role details, operational guidance, and related resource links. Registers the new page in pages/validators/_meta.json.

Changes

Network Keeper Roles Documentation

Layer / File(s) Summary
Page registration and introduction
pages/validators/_meta.json, pages/validators/network-keeper-roles.mdx
Registers the new page in validators metadata and adds the page introduction, scope callout, and role summary table.
Individual keeper role documentation
pages/validators/network-keeper-roles.mdx
Documents each keeper role (Inflation Relayer, Epoch Advancer, Validator Primer, Appellant, Finalizer, Stuck-Tx Healer, Burn Trigger, Quarantine GC) with target function, caller conditions, reward logic, and cadence.
Operational guidance and references
pages/validators/network-keeper-roles.mdx
Adds a "Running a Keeper" section with endpoint requirements and checklist, plus a "Related Resources" links section.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The Conventional Commits-style title clearly summarizes the new documentation page.
Description check ✅ Passed The description includes the required sections and contains a detailed, relevant summary of the documentation changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/network-keeper-roles-pub

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pages/validators/network-keeper-roles.mdx`:
- Around line 12-14: The intro and Burn Trigger section describe conflicting
defaults for token burning, so update the wording to match one behavior across
both places. Align the explanation around `epochAdvance()` and `burnThreshold`
so it clearly states whether burning is automatic by default or disabled by
default with manual burning as fallback, and make the `Callout` intro and Burn
Trigger section consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e90d9751-c177-44a1-ab12-17f30ba77af4

📥 Commits

Reviewing files that changed from the base of the PR and between 19558ee and ee38c12.

📒 Files selected for processing (2)
  • pages/validators/_meta.json
  • pages/validators/network-keeper-roles.mdx

Comment on lines +12 to +14
<Callout type="info" emoji="💡">
Most keeper work is already automated. Validator nodes finalize transactions and prime validators as part of normal operation, and epoch advancement plus token burning fire automatically inside `epochAdvance()`. The roles below matter most as a **liveness backstop**: they document what can be triggered manually if the automated path stalls, and which triggers carry a reward.
</Callout>

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== File context =="
git ls-files 'pages/validators/network-keeper-roles.mdx' 'pages/**/_meta.json' | sed 's#^`#-` #'

echo
echo "== Relevant docs excerpts =="
cat -n pages/validators/network-keeper-roles.mdx | sed -n '1,220p'

echo
echo "== Search for burn/epochAdvance references =="
rg -n --hidden --no-ignore-vcs -S 'epochAdvance|burnThreshold|burn|prime validators|finalize transactions' pages . | sed -n '1,240p'

echo
echo "== Search for protocol implementation references =="
rg -n --hidden --no-ignore-vcs -S 'burnThreshold|epochAdvance\(' . | sed -n '1,240p'

Repository: genlayerlabs/genlayer-docs

Length of output: 50386


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Direct burn-threshold references =="
rg -n -S 'burnThreshold|auto-burn threshold|auto trigger|automatic inside `epochAdvance\(\)`|burn\(\)' pages public . \
  --glob '!**/.next/**' --glob '!**/node_modules/**' | sed -n '1,240p'

echo
echo "== Nearby context in the docs page =="
sed -n '156,170p' pages/validators/network-keeper-roles.mdx | cat -n

echo
echo "== Search for explicit default values =="
rg -n -S 'default.*burnThreshold|burnThreshold\s*=\s*0|burnThreshold\s*0' pages public . \
  --glob '!**/.next/**' --glob '!**/node_modules/**' | sed -n '1,200p'

Repository: genlayerlabs/genlayer-docs

Length of output: 3701


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== burnThreshold mentions in generated docs =="
rg -n -S 'burnThreshold|auto-burn|auto burn|burnable GEN|burning balance|epochAdvance\(\).*burn' public \
  --glob '!**/.next/**' | sed -n '1,240p'

echo
echo "== staking-related source docs around burn behavior =="
rg -n -S 'burn|epochAdvance|threshold' public/understand-genlayer-protocol public/pages pages \
  --glob '!**/.next/**' | sed -n '1,260p'

Repository: genlayerlabs/genlayer-docs

Length of output: 211


Clarify the burn automation wording. The intro says token burning fires automatically inside epochAdvance(), but the Burn Trigger section says the default burnThreshold = 0 disables that automation and makes manual burning the fallback. Make both sections describe the same default behavior.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pages/validators/network-keeper-roles.mdx` around lines 12 - 14, The intro
and Burn Trigger section describe conflicting defaults for token burning, so
update the wording to match one behavior across both places. Align the
explanation around `epochAdvance()` and `burnThreshold` so it clearly states
whether burning is automatic by default or disabled by default with manual
burning as fallback, and make the `Callout` intro and Burn Trigger section
consistent.

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.

1 participant