carlos / platform Public

provision: the held Python guard gets its own TMPDIR

CI ac42f4c8: the held witnesses fell back to ~/.cache for their state,
read-only on the runner. The guard now hands them t.TempDir().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 0be09c3c7d4c0331c2124347baf6a630baa961ea parent ac42f4c
1 file changed, +3 −0
  • internal/provision/region_group_guards_test.go +3 −0

CI failed — run details

Intent

Human

<task-notification> <task-id>bgkx5n1u3</task-id> <tool-use-id>toolu_01AFmwsiE5XrPmUcUJVNsqeL</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/bgkx5n1u3.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on ac42f4c8" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>b8seo57sn</task-id> <tool-use-id>toolu_01SSAvVZk9cZEG7CyrDQTeqJ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/b8seo57sn.output</output-file> <status>completed</status> <summary>Background command "Wait for branch CI to finish" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 20.4 g CO₂e (2,539,610 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-held-build, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/provision/region_group_guards_test.go b/internal/provision/region_group_guards_test.go
index 491a9317e..52445cbdb 100644
--- a/internal/provision/region_group_guards_test.go
+++ b/internal/provision/region_group_guards_test.go
@@ -219,6 +219,9 @@ func TestRegionGroupHeldPythonGuards(t *testing.T) {
python := groupGuardBinary(t, "python3")
cmd := exec.Command(python, "-B", "-m", "unittest", "scripts.region_group_held_test", "scripts.region_group_document_test")
cmd.Dir = "../.."
+ // The witnesses keep their state under $TMPDIR (else ~/.cache, which a
+ // CI runner may mount read-only): give them the test's own directory.
+ cmd.Env = append(os.Environ(), "TMPDIR="+t.TempDir())
output, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("region group held Python guards: %v\n%s", err, output)