agentleFS
roborun-xyzroborun-xyz/sol-validator-skills/skills/upgrade-agave-primary/SKILL.md

upgrade-agave-primary

Skill3 starsChanged 51 days agoMITView on GitHub

Upgrade a voting Agave or Jito-Agave mainnet primary through a verified compatible Agave backup, including failover, failback and rollback. Use upgrade-agave for an unstaked backup alone.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read installed bundle and configuration before running commands.

    line 13
  2. Distinctive:

    Verify missing or stale facts through inventory.

    line 19
  3. Distinctive:

    If the backup must change duties, use backup role switching to prepare the target role, coverage window and restoration.

    line 24
  4. Distinctive:

    Stop only the primary's verified supervisor and process.

    line 29
  5. Distinctive:

    Wait for measured catchup and complete the shared incoming readiness and authorized-voter checks on the restarted primary.

    line 30
  6. Distinctive:

    Verify local identity, advancing chain votes, non-delinquency and that the backup remains unstaked.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Upgrade an Agave primary through a backup

Read installed bundle and configuration before running commands. Resolve paths from this loaded SKILL.md, not the session working directory.

Apply upgrade preparation and mainnet identity handoff. This workflow requires an Agave/Jito-Agave primary and a verified compatible Agave/Jito-Agave backup for the same vote account. For a Firedancer primary, use upgrade-mainnet; for an unstaked backup upgrade, use upgrade-agave.

Prepare before failover

Verify missing or stale facts through inventory. There are no default hosts, identities, key paths or supervisors.

  1. Verify live roles, local and restart identities, vote account, voter availability, installed binaries, supervisors, ledger/vote-history compatibility, BLS registration, vote-account VAT balance and co-located workloads. Every binary that may run as a mainnet voter, including the backup, target, rollback and any alternate or borrowed launcher, must be Alpenglow-capable (Agave/Jito-Agave 4.3.2 or later); refuse the operation if any is older. Confirm the backup is unstaked and not serving another validator's votes. Upgrade it first with upgrade-agave if its release is unsuitable.
  2. Resolve the requested upstream, target release/ref and commit. Prepare an isolated build and stage the verified binary/configuration before failover when this cannot affect the running executable or its restart path. Preserve rollback artifacts and apply the shared installation, capabilities and integration checks.
  3. Prepare exact instance-specific stop/start, identity-switch, vote-history transfer, stale-vote-history quarantine, failback and rollback commands using the installed and target CLI help. Include the incoming node's loaded authorized voter in preflight; a production identity key is not evidence of voter availability.
  4. If the backup must change duties, use backup role switching to prepare the target role, coverage window and restoration. Serialize all operations sharing that backup. Complete preparation before requesting any missing execution authorization; configuration alone grants none.

Fail over and upgrade

  1. Follow the shared identity handoff with the primary as outgoing and backup as incoming: verify incoming readiness and voter availability, demote the primary, confirm its live and persistent restart identities are unstaked, transfer the staked identity's fresh vote_history-<staked>.bin with the required verification, pass the finalized-slot gate, and promote the backup with plain set-identity (vote history required by default; never --do-not-require-vote-history and never --require-tower as a substitute). Confirm single-instance voting and on-chain vote-account progress before stopping the primary.
  2. Stop only the primary's verified supervisor and process. Install the staged release through the shared procedure and restart the primary unstaked. Verify the actual executable/version, supervisor persistence and integration health while monitoring backup votes.
  3. Wait for measured catchup and complete the shared incoming readiness and authorized-voter checks on the restarted primary. Do not demote the backup until the primary is ready for handoff. An ambiguous identity transition requires diagnosis, not a repeated promotion command.

Fail back and restore coverage

  1. Repeat the shared handoff with the backup as outgoing and primary as incoming. Demote the backup and verify its unstaked restart state; move aside any older staked vote history on the primary, then copy the backup's fresh vote_history-<staked>.bin back with the required verification. Promote the primary with plain set-identity only after the incoming readiness and finalized-slot gates pass against this handoff's evidence.
  2. Verify local identity, advancing chain votes, non-delinquency and that the backup remains unstaked. Set and verify the primary's intended persistent restart configuration after the live transition succeeds, including voter availability on that restart path.
  3. Restore any borrowed backup to its previous agreed role using the role-switch procedure. Verify restored identity, configuration, health and measured catchup before declaring its coverage restored.
  4. Record UTC/local times, versions/commits, actual running binaries, roles, vote progress, integration checks, supervisor states and remaining uncertainty in the operator's local record. Observe a leader opportunity when available; report when no leader sample was observed.

Rollback

If the upgraded primary fails while the backup is voting, keep the backup voting. Restore the primary's verified binary/configuration and required installation attributes only if that binary is Alpenglow-capable (4.3.2 or later); otherwise stop and select another verified 4.3.2+ release. Restart unstaked and repeat the same readiness and failback gates. Never use pre-upgrade or quarantined vote history, or any tower file, for failback. If the primary has already resumed voting, establish the current identities and prepare a fresh handoff before another restart; do not treat rollback as permission for an unplanned identity switch.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.