carlos / platform Public

region HA P3b T5: root-runner fixture: guard slice configuration

Refuse existing slice unit files, drop-ins and address allows. Accept the slice that systemd synthesizes before any unit file exists. Network assertions are unchanged.
Co-Authored-By: GPT-6 Astra (codex) <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 2a4afbc8758d9c2c8fb9cc8a636143a1d08173f2 parent 7fb3456
1 file changed, +14 −2
  • internal/host/group_hairpin_rootrunner_linux_test.go +14 −2

Intent

Human

<task-notification> <task-id>bqtbt8v0c</task-id> <tool-use-id>toolu_01CJaEu95tx7HwPNSYiCxHjQ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/bqtbt8v0c.output</output-file> <status>completed</status> <summary>Background command "D=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-build/.superpowers/sdd/2026-11-04-region-ha-p3b-group; $D/wait-astra.sh t5rr $D/task-5-report.md" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>bxrniafyw</task-id> <tool-use-id>toolu_019JpPj8EqcEwCRGdLZ5XXEx</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/05c816f1-0a2d-43e3-9285-de8352549786/tasks/bxrniafyw.output</output-file> <status>completed</status> <summary>Background command "D=.superpowers/sdd/2026-11-04-region-ha-p3b-group &amp;&amp; timeout 3000 nice -n 19 python3 -u $TMPDIR/p3b/root-runner-nft.py --worktree /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p3b-build --pkg ./internal/host --run '^TestHairpinKernelAgentTenantSidecar$' --tags rootrunner &gt; $D/rootrunner-t5c.log 2&gt;&amp;1; echo "exit $?" &gt;&gt; $D/rootrunner-t5c.log; grep -E -- '--- (FAIL|PASS)|^(ok|FAIL)|_test.go:|terminated|LEAKED|^exit' $D/rootrunner-t5c.log | head -40" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 10.8 g CO₂e (1,323,119 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p3b-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/host/group_hairpin_rootrunner_linux_test.go b/internal/host/group_hairpin_rootrunner_linux_test.go
index 3dcef577d..0d0e0baeb 100644
--- a/internal/host/group_hairpin_rootrunner_linux_test.go
+++ b/internal/host/group_hairpin_rootrunner_linux_test.go
@@ -130,8 +130,20 @@ func hairpinKernelWitness(t *testing.T) {
hairpinNFT(t, imds)
imdsBefore := hairpinCmd(t, "nft", "-s", "list", "table", "inet", "carlos_group_imds")
parent := instancectl.InstancesSlice
- if egressShow(t, parent, "LoadState") != "not-found" {
- t.Fatal("instances slice exists")
+ for _, root := range []string{"/run/systemd/system.control", "/etc/systemd/system.control"} {
+ if _, err := os.Lstat(filepath.Join(root, parent+".d")); !errors.Is(err, os.ErrNotExist) {
+ t.Fatal("slice already has set-property drop-ins", parent, root, err)
+ }
+ }
+ for _, root := range []string{"/run/systemd/system", "/etc/systemd/system", "/usr/lib/systemd/system", "/lib/systemd/system"} {
+ for _, name := range []string{parent, parent + ".d"} {
+ if _, err := os.Lstat(filepath.Join(root, name)); !errors.Is(err, os.ErrNotExist) {
+ t.Fatal("slice already has unit configuration", name, root, err)
+ }
+ }
+ }
+ if allow := egressShow(t, parent, "IPAddressAllow"); allow != "" {
+ t.Fatal("slice already carries an allow", parent, allow)
}
hairpinRunnerUnit(t, parent, "[Unit]\nDescription=Hairpin fixture slice\n[Slice]\n")
hairpinCmd(t, "systemctl", "start", parent)