oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package codex
2
3import (
4 "testing"
5
6 "amadan.net/oficina/equipo/internal/runner/provider"
7)
8
9// TestDesignStepIsClaudeOnly: Codex has no policy for the Design step
10// (design-v1 runs on Claude only): its tools, render_page above all, are
11// refused, alone or beside any other action's.
12func TestDesignStepIsClaudeOnly(t *testing.T) {
13 b := provider.Binding{Provider: "codex", CredentialHome: "/private/account", Home: "/private/run", RuntimeRoot: "/private/runtime"}
14 if _, err := PolicyInputs(b, provider.PolicyInputs{Action: provider.DesignStepAction, Tools: provider.DesignMCPTools()}, "model"); err == nil {
15 t.Fatal("codex accepted the design step")
16 }
17 impl, _ := provider.Profile("implement")
18 if _, err := PolicyInputs(b, provider.PolicyInputs{Action: "implement", Tools: append(impl.MCPTools(), "mcp__equipo__render_page")}, "model"); err == nil {
19 t.Fatal("codex accepted render_page")
20 }
21}
22