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.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- doublezero-statusSkill
- inventorySkill
- jito-bam-boostSkill
- jitosol-stewardSkill
- marinade-bond-sweepSkill
- onboardingSkill
- sfdp-checkSkill
- upgrade-agaveSkill
- upgrade-mainnetSkill
- upgrade-testnetSkill
- validator-performanceSkill
- validator-revenueSkill
- votex-roi-simSkill
- votex-statusSkill
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
- Very specific: line 13
Read installed bundle and configuration before running commands.
- Distinctive: line 19
Verify missing or stale facts through inventory.
- Distinctive: line 24
If the backup must change duties, use backup role switching to prepare the target role, coverage window and restoration.
- Distinctive: line 29
Stop only the primary's verified supervisor and process.
- Distinctive: line 30
Wait for measured catchup and complete the shared incoming readiness and authorized-voter checks on the restarted primary.
- Distinctive: line 35
Verify local identity, advancing chain votes, non-delinquency and that the backup remains unstaked.
≈ “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.
Files
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.
- 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-agaveif its release is unsuitable. - 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.
- 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.
- 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
- 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>.binwith the required verification, pass the finalized-slot gate, and promote the backup with plainset-identity(vote history required by default; never--do-not-require-vote-historyand never--require-toweras a substitute). Confirm single-instance voting and on-chain vote-account progress before stopping the primary. - 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.
- 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
- 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>.binback with the required verification. Promote the primary with plainset-identityonly after the incoming readiness and finalized-slot gates pass against this handoff's evidence. - 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.
- 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.
- 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.
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
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.

