package codex import ( "testing" "amadan.net/oficina/equipo/internal/runner/provider" ) // TestDesignStepIsClaudeOnly: Codex has no policy for the Design step // (design-v1 runs on Claude only): its tools, render_page above all, are // refused, alone or beside any other action's. func TestDesignStepIsClaudeOnly(t *testing.T) { b := provider.Binding{Provider: "codex", CredentialHome: "/private/account", Home: "/private/run", RuntimeRoot: "/private/runtime"} if _, err := PolicyInputs(b, provider.PolicyInputs{Action: provider.DesignStepAction, Tools: provider.DesignMCPTools()}, "model"); err == nil { t.Fatal("codex accepted the design step") } impl, _ := provider.Profile("implement") if _, err := PolicyInputs(b, provider.PolicyInputs{Action: "implement", Tools: append(impl.MCPTools(), "mcp__equipo__render_page")}, "model"); err == nil { t.Fatal("codex accepted render_page") } }