Issue 734
Eval runner: block restoring .claude settings with git checkout
Back to our planOpen
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 checkoutof.claude/, or the allow list narrowsgit checkoutto 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