Repository navigation
feat(arn-code): 3.9.0 — cache and version fixes, opt-in safety hooks, tooling.json, CI - #29
Merged
Merged
Conversation
…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>
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.
arn-code 3.9.0
A fix release with opt-in safety hooks. No breaking changes. Full notes:
plugins/arn-code/CHANGELOG.md.Fixed
scripts/lib.sh; cache schema 2.plugin.json, which has no version.scripts/plugin-version.shreads the marketplace entry or the install path, so upgrades are detected.arness-*labels.save_plan.shcould pick a plan from another project or overwrite a plan.arn-code-helpcould 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.Added
- **Hooks:** onin## Arness(/arn-code-initasks) or per user withARNESS_HOOKS=on.tooling.json: the project's own lint, format and test commands; hooks run them only after approval.C:\paths, CR LF output,pythonwhenpython3is missing or the Microsoft Store stub. Withoutjqor Python, hooks read their input withawk, 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 needcygpath). On a Windows 11 machine with nojqand no Python: 48 passed (lint tests skipped).python3 scripts/ci/validate-arn-code.py: 0 problems.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 --forceis denied by the hook and the remote is unchanged; a commit with a fake key is denied and no commit is made; withARNESS_HOOKS=offthe force push goes through.Version
arn-code3.8.0 → 3.9.0 in.claude-plugin/marketplace.json.🤖 Generated with Claude Code