Problem
Per the Repository Quality Report (discussion #34656), AGENTS.md mandates that every *_test.go file carry a //go:build directive at the top. A scan of 1,206 test files found 13 production test files missing this tag. Without the directive, these files are excluded from the unit-test build tag (!integration) by accident, which causes unpredictable behaviour when filtering by build tags.
Files Missing //go:build Tag
From the audit (full list of 13 in #34656):
pkg/cli/compile_workflow_processor_test.go
pkg/cli/status_dependency_tree_test.go
pkg/cli/test_helpers_git_test.go
pkg/cli/mcp_inspect_tree_test.go
pkg/cli/codemod_activation_outputs_test.go
pkg/workflow/github_context_prompt_test.go
pkg/workflow/docker_cli_proxy_test.go
(See #34656 for the full list — the report was truncated mid-list when captured.)
Suggested Fix
For each file, add //go:build !integration (or whatever the project's standard unit-test build tag is — confirm from sibling files in the same package) at the very top of the file, followed by a blank line and the existing package declaration.
Run make test after to confirm nothing breaks.
Impact
Mechanical compliance fix. Eliminates AGENTS.md policy violation. Prevents flaky CI behaviour from accidental tag exclusion.
Effort
~30 min — mechanical edit of 13 files plus a test run.
Suggested Agent
Any coding agent (lint-monster could absorb this).
Source: DeepReport Intelligence Briefing 2026-05-25
Generated by 🔬 DeepReport - Intelligence Gathering Agent · opus47 7.7M · ◷
Problem
Per the Repository Quality Report (discussion #34656), AGENTS.md mandates that every
*_test.gofile carry a//go:builddirective at the top. A scan of 1,206 test files found 13 production test files missing this tag. Without the directive, these files are excluded from the unit-test build tag (!integration) by accident, which causes unpredictable behaviour when filtering by build tags.Files Missing
//go:buildTagFrom the audit (full list of 13 in #34656):
(See #34656 for the full list — the report was truncated mid-list when captured.)
Suggested Fix
For each file, add
//go:build !integration(or whatever the project's standard unit-test build tag is — confirm from sibling files in the same package) at the very top of the file, followed by a blank line and the existing package declaration.Run
make testafter to confirm nothing breaks.Impact
Mechanical compliance fix. Eliminates AGENTS.md policy violation. Prevents flaky CI behaviour from accidental tag exclusion.
Effort
~30 min — mechanical edit of 13 files plus a test run.
Suggested Agent
Any coding agent (lint-monster could absorb this).
Source: DeepReport Intelligence Briefing 2026-05-25