From 8b0631547b7c7578f0d0532a7ab064bd630630d0 Mon Sep 17 00:00:00 2001 From: Boden Fuller Date: Sat, 6 Jun 2026 05:04:59 -0400 Subject: [PATCH] chore(cli): gofmt agent_bundle.go struct-literal indentation (ag-tcf0.2 #gofmt-agent-bundle) agent_bundle.go had an extra-tab indent on the Bootstrap field of the codex-ntm bundle struct literal, unformatted since df3cc98. CI's golangci-lint runs default linters (gofmt formatter excluded), so the drift landed on main undetected. Whitespace-only; behavior unchanged. Closes-scenario: ag-tcf0.2#gofmt-agent-bundle Bounded-context: BC5-Runtime Evidence: gofmt -l cli/ clean; go build/vet ok; 8 bundle tests pass --- cli/cmd/ao/agent_bundle.go | 2 +- cli/cmd/ao/agent_bundle_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/cmd/ao/agent_bundle.go b/cli/cmd/ao/agent_bundle.go index ddd67ae44..fec06439a 100644 --- a/cli/cmd/ao/agent_bundle.go +++ b/cli/cmd/ao/agent_bundle.go @@ -106,7 +106,7 @@ func buildCodexNTMBundle(skills []string) agentBundle { Runtime: "codex-ntm", Instructions: stitchInstructions(skills), Skills: skills, - Bootstrap: "ao session bootstrap && ao inject --bead \"$BEAD\"", + Bootstrap: "ao session bootstrap && ao inject --bead \"$BEAD\"", Reference: "skills-codex/agent-native", } } diff --git a/cli/cmd/ao/agent_bundle_test.go b/cli/cmd/ao/agent_bundle_test.go index b1a78d9de..bfd86599e 100644 --- a/cli/cmd/ao/agent_bundle_test.go +++ b/cli/cmd/ao/agent_bundle_test.go @@ -91,6 +91,11 @@ func TestBuildAgentBundle_CodexNTM(t *testing.T) { if b.Runtime != "codex-ntm" { t.Errorf("Runtime = %q, want codex-ntm", b.Runtime) } + // Exact Bootstrap value — guards the codex-ntm struct literal against + // silent edits/drift (the field was the site of an unformatted-source fix). + if want := `ao session bootstrap && ao inject --bead "$BEAD"`; b.Bootstrap != want { + t.Errorf("codex-ntm Bootstrap = %q, want exactly %q", b.Bootstrap, want) + } if !strings.Contains(b.Bootstrap, "ao session bootstrap") { t.Errorf("codex-ntm Bootstrap must run `ao session bootstrap`, got %q", b.Bootstrap) }