Conversation
Operator-runnable runbook for flipping Hermes3D OS from v0.13
(post Wave 1 default) back to v0.12 (G:/Github/hermes-agent-fresh)
in under 60 seconds, with no FastAPI restart required when the
host supports in-process env mutation, and a PR-level revert path
for the heavier nuclear option.
Sections shipped:
1. When to use - 5 symptom triggers (provider 5xx, runtime
crash, security regression, sandbox-escape suspicion,
outdated provider auth) with diagnostic SQL.
2. Mid-process flip - Windows Service / NSSM, systemd drop-in
override, docker / docker-compose, bare uvicorn --env-file,
plus a 2.5 fallback for hosts that block all four. Anchored
on 12-Factor Rule III (env-vars are 'easy to change between
deploys without changing any code').
3. Verification - 3 commands the operator runs (curl
/api/agents/update/status, python -c hermes_agent_checkout(),
git -C ... rev-parse HEAD) with expected values.
4. DB cleanup - SELECT/UPDATE/INSERT against agent_config and
proof_events to mark v0.13 rows as superseded WITHOUT
deletion (preserves the proof chain).
5. PR-level revert - git revert -m 1 of squash 3158a4e (PR
#160) onto a hotfix/* branch through the release gateway.
6. Re-promotion path - unset env var (env-flip path) OR
revert-the-revert PR (PR-revert path), each with the proof
event the operator must append.
Appendix A - one-page emergency card.
Cross-comparisons cited: docker run env (creation-time only,
must recreate container), uvicorn --reload (dev-only, do not
rely on it for prod env reloads), systemd Environment= /
EnvironmentFile= (drop-in override + daemon-reload + restart).
Hermes evidence chain: PASS
Task ID: P1-6
hermes_run_gate: docs-rollback-runbook
hermes3d-locks lock: claude-p1-6 / 8136730b5277d65e236275be
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Ghenghis
merged commit May 10, 2026
e7049e7
into
feat/hermes3d-7-complete-gui-repo-wiring
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Operator-runnable runbook to flip Hermes3D OS from v0.13 (current default after Wave 1) back to v0.12 (
G:/Github/hermes-agent-fresh) in under 60 seconds. Builds on the per-call resolver shipped in PR #155 (8544bbc) and provides a PR-level revert escape hatch for PR #160 (3158a4e) if the env-flip alone is insufficient.Lives at
03_implementation/docs/runbooks/HERMES_AGENT_V013_ROLLBACK.md.Sections shipped
--env-file, plus a 2.5 fallback for hosts that block all four. Anchored on 12-Factor Rule III.curl /api/agents/update/status,python -c hermes_agent_checkout(),git -C G:/Github/hermes-agent-fresh rev-parse HEAD) with expected values.agent_configandproof_events(hermes_agent.update.last_run,hermes_agent.update.last_rollback,hermes_agent.update.latest_backup) that mark v0.13 rows as superseded WITHOUT deletion, preserving the proof chain.git revert -m 1 3158a4eonto ahotfix/*branch through the release gateway (per the existing06_release/ROLLBACK_RUNBOOK.mdflow).proof_eventsrow the operator must append.Appendix A - one-page emergency card.
Sources cited
run--env: https://docs.docker.com/reference/cli/docker/container/run/#env--reloadwarning: https://fastapi.tiangolo.com/deployment/manually/06_release/ROLLBACK_RUNBOOK.md,agent_checkout.py,agent_updates.pyTest plan
03_implementation/src/hermes3d/api/routes/agent_updates.pyhermes_agent.update.last_run/last_rollback/latest_backupwritesgit revert -m 1 3158a4e) matches the squash-merge mainline parentHermes evidence chain: PASS
Task ID: P1-6
hermes_run_gate: docs-rollback-runbook
hermes3d-locks lock:
claude-p1-6/8136730b5277d65e236275beOut of scope
Co-Authored-By: Claude Opus 4.7 (1M context)
Generated with Claude Code