The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(update): waive BLE001 on the two deliberate fail-closed boundaries
Tekniumf4636af832f1
diff --git a/hermes_cli/update_cmd_commit.py b/hermes_cli/update_cmd_commit.pyindex b9ad1715786..b5fd053db12 100644--- a/hermes_cli/update_cmd_commit.py+++ b/hermes_cli/update_cmd_commit.py@@ -415,8 +415,8 @@ def preflight_refusal(git_cmd, root: Path, target_ref: str, critical_files) -> srefuse_foreign_owned_venv(root)except ImportError:pass- except Exception as exc: # pm's refusal carries its own remediation text- return f"✗ {exc}"+ except Exception as exc: # health: allow BLE001 -- fail closed: any probe error refuses before the first move+ return f"✗ {exc}" # pm's refusal carries its own remediation textbroken = target_syntax_error(git_cmd, root, target_ref, critical_files)if broken is not None:path, error = brokendiff --git a/hermes_cli/update_cmd_zip.py b/hermes_cli/update_cmd_zip.pyindex 4477b177498..d87f0a23e78 100644--- a/hermes_cli/update_cmd_zip.py+++ b/hermes_cli/update_cmd_zip.py@@ -497,7 +497,7 @@ def _download_and_swap_zip(branch: str, zip_url: str, target_sha: str | None = Nstaged = _journaled_stage_and_swap(extracted, entries, Path(project_root), target_sha)print(f"✓ Updated {len(staged)} items from ZIP")return target_sha- except Exception as e:+ except Exception as e: # health: allow BLE001 -- all-or-nothing boundary: any failure settles the journal, exits 1# The swap rolled itself back; a rollback that could not finish leaves the journal, which# this settles now (or the next launch's _early_recovery does) instead of leaking siblings.with suppress(Exception):