upgrade-mainnet
Skill3 starsChanged 2 months agoMITView on GitHub
Upgrade an operator-configured Firedancer primary through a verified Agave backup, preserving single-validator voting and fresh-tower requirements across failover and failback.
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-agave-primarySkill
- upgrade-agaveSkill
- upgrade-testnetSkill
- validator-performanceSkill
- validator-revenueSkill
- votex-roi-simSkill
- votex-statusSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 39
Verify actual running version, primary unstaked identity, supervisor persistence and full catchup.
- Distinctive: line 52
If the backup was borrowed, restore and verify its original unstaked role and catchup before reporting backup coverage restored.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 mainnet Firedancer with an Agave backup
Read installed bundle and configuration before running commands. Resolve paths from this loaded SKILL.md, not the session working directory.
Apply references/shared-upgrade-runbook.md and onboard both instances using references/inventory.md. This procedure requires a verified compatible Firedancer/Frankendancer primary and Agave backup for the same vote account. There are no default host pairs or identities. Do not apply it to an Agave primary or a deployment whose identity/tower compatibility is unverified.
For a voting Agave/Jito-Agave primary, use upgrade-agave-primary.
Prepare
Verify both instances' actual identities, version, health, catchup, supervisor, key paths, ledger/tower format, and restart identity persistence. The backup must be unstaked, healthy, caught up, release-compatible and compliant with applicable current version requirements. Upgrade it first with upgrade-agave if needed. Confirm it is not carrying another validator's votes, and serialize all operations sharing that backup.
Apply mainnet handoff readiness in both directions, including loaded voter verification before demotion and the receiver's local replay check against the final transferred tower before promotion. If the backup is borrowed from another validator, use role switching and restoration.
Resolve the requested target release/ref and commit. Prepare the build, config migration, scoped stop/start, failover, failback and rollback commands using exact verified paths and target CLI help. Record public keys for staked and distinct unstaked identities; never copy keypair contents. Complete this preparation before requesting any missing production authorization.
Complete an isolated build and stage installation/config changes before borrowing the backup when resources permit and the current supervisor cannot start the candidate accidentally. Otherwise include build time in the failover/coverage plan.
Fail over
- Demote the primary to its verified unstaked identity using the installed fdctl's
set-identitycommand and exact config. Verify the resulting local identity. Ensure its supervisor would restart it unstaked before continuing; runtime identity and restart configuration are separate facts. - After demotion, copy the freshly written tower for the staked identity from the primary ledger to the backup ledger using an explicit unique temporary file. Verify source/destination SHA-256, tower identity/format, runtime ownership and required permissions. Never reuse an older backup tower. If tower freshness or demotion is uncertain, stop before promotion.
- Recheck backup readiness against the final tower using the shared handoff procedure, then promote with the verified Agave binary and ledger, the staked identity path, and
set-identity --require-tower. Verify local identity/health and Helius vote-account progress/non-delinquency. Confirm the primary remains unstaked. Do not proceed on an ambiguous identity-switch result.
Upgrade the primary
Finish any remaining build preparation while the backup votes, preserving rollback artifacts. Validate the new config with read-only configure check; stage both staked and unstaked configurations. Follow the shared runbook to stop the primary's exact supervisor and process, initialize only after it is stopped, install the binary and restart unstaked.
Verify actual running version, primary unstaked identity, supervisor persistence and full catchup. Continue monitoring backup voting throughout. Do not fail back until the primary is ready. If upgrade fails, keep the backup voting and repair or roll back the primary while it remains unstaked.
Fail back
- Recheck primary catchup and loaded voter readiness before demoting the backup. Demote the backup to its verified unstaked identity using its exact Agave ledger. Verify local identity and restart persistence.
- Copy the fresh staked-identity tower from the just-demoted backup back to the primary. Repeat checksum, ownership, format and freshness checks; never restore the pre-upgrade tower.
- Recheck the primary against the final tower using the shared handoff procedure, then promote with the verified fdctl/config and
set-identity --require-tower. Verify its local identity, health and Helius vote progress while the backup stays unstaked. - Restore the primary's intended persistent restart policy only after validating the live transition, including any deliberate warmup-first policy and voter loading. Verify the backup's persistent config stays unstaked. Do not assume a symlink switch changes a running process's identity.
Verify and record
Verify single-instance voting, vote-account identity, advancing finalized votes/non-delinquency, installed version, both supervisor states and unrelated workloads. Observe upcoming leader opportunities when available; record when no leader sample was observed. Do not delegate routine chain verification back to the user as a required manual explorer check.
If the backup was borrowed, restore and verify its original unstaked role and catchup before reporting backup coverage restored.
Report UTC/local times and durable before/after state in the operator's local record. An ambiguous promotion or failed failback requires identity and tower diagnosis, not a blind retry. Never promote either side without the fresh tower from the just-demoted voter, and never run concurrent failovers through the same backup.
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.

