Run every claude the loop starts in a Claude home generated outside the clone
CI / tests (pull_request) Successful in 4m45s

This commit is contained in:
2026-12-04 01:07:03 +01:00
parent 2460b9e132
commit 0203a8e0b3
48 changed files with 703 additions and 369 deletions
+5
View File
@@ -1646,6 +1646,11 @@ class TranscriptRead(unittest.TestCase):
self.assertEqual(self.breached("Read", {"file_path": self.TRANSCRIPT}), ["transcript-read"])
self.assertEqual(self.breached("Read", {"file_path": "/home/h/.claude/projects/-home-h-code-acme/abc-123/subagents/agent-a1.jsonl"}), ["transcript-read"])
def test_a_read_of_a_transcript_in_the_loops_claude_home_is_refused(self):
self.assertEqual(self.breached("Read", {"file_path": "/home/h/.local/share/build-release/claude-home/projects/-home-h-code-acme/abc-123.jsonl"}), ["transcript-read"])
found = breaches_of(Call("Read", {"file_path": "/x/data/build-release/claude-home/projects/-r/abc-123.jsonl"}, "/r"), self.HOME, {"XDG_DATA_HOME": "/x/data"})
self.assertEqual([breach.rule for breach in found[2]], ["transcript-read"])
def test_a_read_spelt_from_home_or_from_the_working_directory_is_refused(self):
self.assertEqual(self.breached("Read", {"file_path": "~/.claude/projects/-home-h-code-acme/abc-123.jsonl"}), ["transcript-read"])
self.assertEqual(self.breached("Read", {"file_path": "abc-123.jsonl"}, "/home/h/.claude/projects/-home-h-code-acme"), ["transcript-read"])