Skip to content

feat(arn-code): 3.9.0 — cache and version fixes, opt-in safety hooks, tooling.json, CI - #29

Merged
fredcallagan merged 10 commits into
mainfrom
release/arn-code-3.9.0
Oct 25, 2026
Merged

fredcallagan merged 10 commits into
mainfrom
release/arn-code-3.9.0

Conversation

@fredcallagan

@fredcallagan fredcallagan commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

arn-code 3.9.0

A fix release with opt-in safety hooks. No breaking changes. Full notes: plugins/arn-code/CHANGELOG.md.

Fixed

  • The ensure-config cache never hit (checker and writer hashed the config differently). Both now share scripts/lib.sh; cache schema 2.
  • The plugin version was read from plugin.json, which has no version. scripts/plugin-version.sh reads the marketplace entry or the install path, so upgrades are detected.
  • GitHub label check: saw only 30 labels and broke on extra arness-* labels.
  • Simplify revert could discard uncommitted work; it now snapshots and restores only the files it touches.
  • save_plan.sh could pick a plan from another project or overwrite a plan.
  • 38 references used repo-relative paths that broke in user projects.
  • arn-code-help could not list files in recent Claude Code versions (no Glob or Grep in the main session); it now falls back to read-only shell commands.
  • Smaller fixes: CVE skill description length, wrong section links, a wrong flag name, and a read-only agent told to write files.

Added

  • Plugin hooks, off by default: session status line, force-push block, secrets scan before commit, advisory lint after edits. Turn them on per project with - **Hooks:** on in ## Arness (/arn-code-init asks) or per user with ARNESS_HOOKS=on.
  • tooling.json: the project's own lint, format and test commands; hooks run them only after approval.
  • CI: static checks and script and hook tests on Linux, macOS and Windows (Git Bash).
  • Windows support in hooks and scripts: C:\ paths, CR LF output, python when python3 is missing or the Microsoft Store stub. Without jq or Python, hooks read their input with awk, so force-push and secrets checks still work. Symlinked project folders work too.

Testing

  • bash tests/arn-code/run-tests.sh: 56 passed on the Windows CI runner, 51 on Linux and macOS (5 tests need cygpath). On a Windows 11 machine with no jq and no Python: 48 passed (lint tests skipped). python3 scripts/ci/validate-arn-code.py: 0 problems.
  • Live runs in Claude Code with the local plugin: setup, a swift change and ship, with hooks off and on. Force-push and a commit with a fake key were blocked only when hooks were on; the session-start line reported a valid cache and version 3.9.0.

Live Claude Code 2.1.295 on Windows 11 (no jq, no Python, project path with a space, --plugin-dir): the session-start line appears; git push --force is denied by the hook and the remote is unchanged; a commit with a fake key is denied and no commit is made; with ARNESS_HOOKS=off the force push goes through.

Version

arn-code 3.8.0 → 3.9.0 in .claude-plugin/marketplace.json.

🤖 Generated with Claude Code

fredcallagan and others added 10 commits October 22, 2026 20:13
…on, CI

Fixes:
- ensure-config cache never hit (checker and writer hashed differently);
  shared lib.sh + cache-write.sh, schema 2
- plugin version read from plugin.json (no version field); new
  plugin-version.sh resolves from marketplace entry or install path
- label check limited to 30 labels and broke on extra arness-* labels
- simplify revert could discard uncommitted work; per-finding snapshots
- save_plan.sh: no cross-project plan guessing, name validation, no
  silent overwrite
- repo-relative plugin paths, CVE skill frontmatter, wrong CVE flag,
  analyzer read-only contract

Added:
- plugin hooks: session status + compaction pointer, force-push block,
  secret scan before commit, advisory lint from approved tooling.json
- tooling.json returned by the codebase analyzer (language-agnostic)
- CI: static validator and 37 script/hook tests on Linux and macOS

Changed:
- inner skills no longer duplicate entry-point triggers; frontmatter
  flags and argument hints; trimmed agent descriptions

Bump arn-code to 3.9.0 in marketplace.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LZBCMQzcfGBzAzeHsfkuTK
CLAUDE_PLUGIN_ROOT in a Bash call may name another plugin, so lib.sh and
the hook helper now resolve paths from their own location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LZBCMQzcfGBzAzeHsfkuTK
Hooks change behaviour, so a plain upgrade must not switch them on.
'- **Hooks:** on' in ## Arness turns them on for the project (arn-code-init
asks); ARNESS_HOOKS=on turns them on for one user; ARNESS_HOOKS=off wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recent Claude Code versions have no Glob or Grep tool in the main session;
arn-code-help forbade every other tool and could not list files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On macOS the temp folder is a symlink; git reports the real path, so the
hook skipped every file. Found by the macOS CI job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hook input paths in C:\ form are turned into Git Bash form; CR is dropped
from jq and Python output; a broken python3 (Microsoft Store stub) falls
back to python. Windows tests run where cygpath exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows machines with neither tool, hooks could not read their input
and failed open, so force-push and secrets checks did nothing. Add a
plain-awk JSON reader as the last fallback. Tests no longer need Python,
except the lint tests, which are skipped without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fredcallagan
fredcallagan merged commit a218f6a into main Oct 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant