release(v0.2.0): hook fail-open hardening + uninstall helper#11
Merged
saurabhjain1592 merged 3 commits intomainfrom Apr 8, 2026
Merged
release(v0.2.0): hook fail-open hardening + uninstall helper#11saurabhjain1592 merged 3 commits intomainfrom
saurabhjain1592 merged 3 commits intomainfrom
Conversation
#1545 Direction 3 — Hook fail-open audit
- scripts/pre-tool-check.sh now distinguishes curl exit code (network
failure) from HTTP success with body (potentially an error response)
- Fail-closed (block, exit 2) only on operator-fixable JSON-RPC errors:
-32001 auth failure
-32601 method not found (plugin/agent version mismatch)
-32602 invalid params (plugin bug)
- Fail-open (allow, exit 0) on everything else: timeouts, DNS failures,
connection refused, TCP reset, HTTP 5xx, JSON-RPC -32603 internal
errors, and JSON-RPC -32700 parse errors
- Rationale: transient governance infrastructure issues should never
block legitimate dev workflows. Only operator-fixable broken
configurations should fail closed.
Uninstall cleanup helper
- scripts/uninstall.sh cleans up the plugin cache directory that Codex
CLI's built-in /plugins uninstall leaves behind (known CLI behavior,
not a plugin bug — Codex treats local-source plugins as persistent
on-disk sources). Supports --dry-run.
- Reports AxonFlow references in config.toml and hooks.json without
modifying them (user-owned configuration).
Version bump .codex-plugin/plugin.json: 0.1.0 → 0.2.0
The pre-tool-check hook's auth-error stderr message changed from 'AxonFlow governance error:' to 'AxonFlow governance blocked:' as part of the #1545 Direction 3 fail-open hardening (where only operator-fixable errors block — the new message makes that distinction clearer).
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
Codex plugin v0.2.0 (dated 2026-04-09).
Changes
scripts/pre-tool-check.sh
Explicit curl exit code check so timeouts / DNS / connection refused always fail-open. JSON-RPC error handling split by code:
scripts/uninstall.sh
Codex CLI
/pluginsuninstall leaves the cache directory behind. Cleanup helper fixes that.Related