carlos / platform Public

host: the two-box drain witness's fake echoes unit and sandbox

CI 0be09c3c (minio-contract): main's gVisor demos check every start
answer's unit and effective sandbox (ValidateStartIdentity); the fake
answered neither, so the warm wake failed EXEC-SANDBOX-MISMATCH. It now
answers as a systemd box's root channel does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 82997fbf7f23c0380677c8e44e48c37a0e23cd36 parent 0be09c3
1 file changed, +8 −4
  • internal/host/hadrain_twobox_minio_linux_test.go +8 −4

CI failed — run details

Intent

Human

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

Attributed to this commit: 34.0 g CO₂e (4,394,880 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/host/hadrain_twobox_minio_linux_test.go b/internal/host/hadrain_twobox_minio_linux_test.go
index b3ce65765..dbfd03330 100644
--- a/internal/host/hadrain_twobox_minio_linux_test.go
+++ b/internal/host/hadrain_twobox_minio_linux_test.go
@@ -41,6 +41,7 @@ import (
"github.com/carlosframework/platform/internal/boxchoice"
"github.com/carlosframework/platform/internal/domains"
"github.com/carlosframework/platform/internal/edge"
+ "github.com/carlosframework/platform/internal/execsandbox"
"github.com/carlosframework/platform/internal/groupadmission"
"github.com/carlosframework/platform/internal/hafresh"
"github.com/carlosframework/platform/internal/instancectl"
@@ -267,13 +268,16 @@ func (c *dwControl) startCount(host string) int {
return c.starts[host]
}
-func (c *dwControl) Start(_ context.Context, host string, _ instancectl.Role, _ int64) (instancectl.StartResponse, error) {
+// Start answers as the root channel does on a systemd box: the unit it
+// started and the effective sandbox, which the activator checks
+// (instancectl.ValidateStartIdentity).
+func (c *dwControl) Start(_ context.Context, host string, role instancectl.Role, _ int64) (instancectl.StartResponse, error) {
id, err := c.start(host)
- return instancectl.StartResponse{InvocationID: id}, err
+ return instancectl.StartResponse{Unit: instancectl.UnitName(role, host), Sandbox: execsandbox.EffectiveSystemd, InvocationID: id}, err
}
-func (c *dwControl) StartExe(_ context.Context, host string, _ instancectl.Role, _ int64, _ instancectl.StagedExe) (instancectl.StartResponse, error) {
+func (c *dwControl) StartExe(_ context.Context, host string, role instancectl.Role, _ int64, _ instancectl.StagedExe) (instancectl.StartResponse, error) {
id, err := c.start(host)
- return instancectl.StartResponse{InvocationID: id}, err
+ return instancectl.StartResponse{Unit: instancectl.UnitName(role, host), Sandbox: execsandbox.EffectiveSystemd, InvocationID: id}, err
}
func (c *dwControl) Seed(context.Context, string, int64) (instancectl.SeedResponse, error) {
return instancectl.SeedResponse{}, nil