Skip to content

chore(cli): gofmt agent_bundle.go struct-literal indentation (ag-tcf0.2 #gofmt-agent-bundle)#783

Merged
boshu2 merged 2 commits into
mainfrom
chore/gofmt-lint-sweep-ag-tcf0
Jun 6, 2026
Merged

chore(cli): gofmt agent_bundle.go struct-literal indentation (ag-tcf0.2 #gofmt-agent-bundle)#783
boshu2 merged 2 commits into
mainfrom
chore/gofmt-lint-sweep-ag-tcf0

Conversation

@boshu2
Copy link
Copy Markdown
Owner

@boshu2 boshu2 commented Jun 6, 2026

Fixes a gofmt drift that landed on main: cmd/ao/agent_bundle.go had an extra-tab indent on the Bootstrap field of the codex-ntm bundle struct literal (unformatted since df3cc98, ~24h ago). Whitespace-only — the Bootstrap string value is unchanged, behavior identical.

Why it slipped through

CI runs golangci-lint run with default linters, which exclude the gofmt formatter, so source-formatting drift is not gated and lands on main undetected. This is the same class as the ag-tcf0 audit "14 files unformatted" finding; the earlier sweep (ag-ozac) fixed files but did not add an enforcement gate. The missing gofmt CI gate is drafted to the operator queue (it interacts with the gate-target/path-filter system and the active ag-tcf0.1 golangci worktree, so it warrants operator confirmation rather than a unilateral CI-gate change).

Test

The paired agent_bundle_test.go change strengthens the existing Bootstrap substring assertion to exact equality (per .claude/rules/go.md: "assert exact expected values, not just substring"), guarding the struct literal against silent drift at the exact site of the fix.

  • gofmt -l cli/ clean
  • go build ./..., go vet ./cmd/ao/ ok
  • go test ./cmd/ao/ -run TestBuildAgentBundle_CodexNTM pass (8 bundle tests green)
  • scripts/pre-push-gate.sh --fast passed

Closes-scenario: ag-tcf0.2#gofmt-agent-bundle
Bounded-context: BC5-Runtime
Evidence: pre-push-gate --fast passed; gofmt -l clean; bundle tests green

….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
@github-actions github-actions Bot added the cli label Jun 6, 2026
@boshu2 boshu2 merged commit 6489da8 into main Jun 6, 2026
15 of 16 checks passed
@boshu2 boshu2 deleted the chore/gofmt-lint-sweep-ag-tcf0 branch June 6, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant