revert
Skill1 starsChanged 3 months agoMITView on GitHub
Governed incident-revert (/foundry:revert) — first-class, NOT a bypass of the no-skip front-authorization gate. Cuts a revert PR restoring a previously-AUTHORIZED state, reusing the prior authorization (no new contract), still subject to the merge floor + re-certified. Trigger on an escaped-defect merge needing rollback.
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- mindattic/Prosetheir own version, first seen Oct 16, 2026
- drafthq/drafttheir own version, first seen Jul 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- drafthq/draft★ 40same name
- mindattic/Prose★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository71 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- amendSkill
- auditSkill
- authorize-releaseSkill
- authorizeSkill
- certify-localSkill
- certify-stagingSkill
- coherence-checkSkill
- command-deckSkill
- contextSkill
- cut-releaseSkill
- dashboards-as-codeSkill
- data-tier-cutoverSkill
- decommission-gateSkill
- deploy-statusSkill
- dispatchSkill
- doctorSkill
- drift-sweepSkill
- env-hygieneSkill
- extract-specSkill
- fleetSkill
- grounding-conformanceSkill
- id-applySkill
- id-architectSkill
- id-baselineSkill
- id-discoverSkill
- id-documentSkill
- id-driftSkill
- id-impactSkill
- id-implementSkill
- id-importSkill
- id-planSkill
- id-promoteSkill
- id-reviewSkill
- id-rollbackSkill
- id-simulateSkill
- id-syncSkill
- id-testSkill
- id-validateSkill
- id-verifySkill
- indexSkill
- infra-sandboxed-applySkill
- initSkill
- intakeSkill
- learn-captureSkill
- learn-distillSkill
- merge-when-greenSkill
- mode-autonomousSkill
- mode-interactiveSkill
- modeSkill
- post-upgradeSkill
- releaseSkill
- relockSkill
- report-citation-graphSkill
- reposSkill
- research-captureSkill
- research-firstSkill
- sd-debugSkill
- sd-discoverSkill
- The first 60 shown.
The file
Files
/foundry:revert
The steady-state incident-response path. Front-authorization is unconditional (no skip), so an emergency revert is neither impossible nor an un-gated hole: it REUSES the prior good state's authorization (you are restoring something the operator already authorized + that was proven at its own release), and still clears the merge floor + re-certification.
When to trigger
- A staging/prod escape defect on a merged atom (the governed trigger fires a the operator flags the incident); resolution is a forward-fix OR this revert.
- "/foundry:revert
<bad-merge-sha|PR>".
Procedure
- Identify the bad merge
<bad-sha>and the prior good state<good-sha>to restore (a state that was AUTHORIZED + proven at its own release). A revert to never-authorized history (e.g. pre-Foundry) requires NORMAL authorization, not this path. - Write the revert-authorization record to the fail-closed audit trail (reuses the
prior authorization; does NOT author a new acceptance-contract):
python3 -c "import sys; sys.path.insert(0,'${CLAUDE_PLUGIN_ROOT}/scripts'); \ import foundry_audit_log as al; \ al.append_record({'action':'revert-authorization','operator_id':'<op>', \ 'reverts':'<bad-sha>','restores':'<good-sha>','restores_contract_sha256':'<good contract_sha256>', \ 'reason':'<incident reason>'})" - Cut the revert PR (
git revert <bad-sha>or restore<good-sha>'s tree) →gh pr create. The committed.foundry/build-provenance.yamlmarker of the restored state records the prior pinned authorization for traceability; the merge floor (branch protection / required CI checks, plushooks/foundry-git-discipline.shwithin sessions — seedocs/merge-floor.md) governs admission the same as any PR. - Re-certify the reverted candidate —
/foundry:certify-localre-runs the restored state's journeys (they passed at that release; they must pass again — a broken revert surfaces here). Expedited (operator-attested) but NEVER skips authorization-existence or re-certification. - Merge via the merge floor like any merge.
Anti-patterns
- Treating revert as a skip of the front-auth gate — it REUSES prior authorization; it does not bypass it.
- Skipping re-certification of the reverted candidate — a broken revert must be caught before acceptance.
- Reverting to never-authorized history without normal authorization.
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.

