Skip to content
SprecherEast
Issue 734

Eval runner: block restoring .claude settings with git checkout

Back to our plan
Open
toolingtech-debtpriority: lowscope-creep

Summary

The eval runner (scripts/knowledge-eval/) allows git checkout:*. A session could run git checkout -- .claude/settings.json and restore the project's wider permissions inside its throwaway worktree. The CLI reads its settings at start, so the effect is probably small, but the containment shouldn't depend on that.

Acceptance criteria

  • Not done: The deny list blocks git checkout of .claude/, or the allow list narrows git checkout to source files, with a test of the generated arguments.
  • Not done: The README's containment section mentions it.

Files likely touched: scripts/knowledge-eval/. Must not touch: anything outside it.

Found by the review of #733. Size not set: a cloud session can't read the board.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab