seam CI red on main: the App report wire's userAgent tag breaks the repo-wide snake_case wire lint (#126) — rename to user_agent on both sides #1820
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1820
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI (
seam, the shared whole-tree Go gate) is red on main at59de2aa4. This blocks every sandbox Go push, not just this arc.The fault
scripts/seam-smoke.shstage "Go: go.work resolves both modules; build, vet, test, lint each" →go test ./...:Two production wire types declare a camelCase JSON tag with no
wireconvention:externalmarker — the only two unmarked camelCase tags in the tree (every other camelCase tag ininternal/coaclient,control-plane/cmd/control-plane/*health.go,internal/vm,internal/clientconfig,agent/internal/meshup,cmd/rehearsal-coacarries the marker;spikes/is skipped):internal/brokerclient/reports.go:30—UserAgent stringjson:"userAgent"``broker/internal/broker/http_reports.go:68—UserAgent stringjson:"userAgent"``The guard is right and the code is wrong: this is our own control-plane → broker wire (DDR 0276), not an external vocabulary, so
wireconvention:externalis not the answer. The repo convention is one snake_case wire (#126,docs/CODING-STANDARDS.md).How it got in
The tag landed in
2c1818b2(brokerclient, 12:52 UTC) and again in1823218e(broker handler, 13:13 UTC) — host pushes, which do not pass through the sandbox push gate that runs this lint.The fix (rename to
user_agent)The wire is not ossified yet —
POST /v1/reportshas never been deployed (#1819 still holds the broker's tracker identity + deploy), so no live sender or receiver readsuserAgent. Renaming now is free; after #1819 it is a breaking change. Do it in ONE commit, both sides together:internal/brokerclient/reports.go—json:"user_agent".broker/internal/broker/http_reports.go—json:"user_agent".internal/brokerclient/reports_test.go— thepinnedmap, the forbidden-field message, theraw["userAgent"]read (TestClient_ReportIssueWirePayloadIsExactlyPinned).broker/internal/broker/http_reports_test.go— thegoodReportfixture.internal/controlapi/reports_test.go:35— the body-cannot-forge fixture (the control plane ignores this field, but keep the fixture honest about the wire).broker/README.md:26— thePOST /v1/reportsbody row.docs/adr/0276-…md:36— the "what travels" table row: a one-line amendment noting the wire name isuser_agent(the field is unchanged; only its wire spelling). Same row indocs/superpowers/plans/2026-09-21-report-an-issue-button.mdif that plan is still the working contract.community,title,description,tab,revisionare already single lowercase words —userAgentis the only violation.Acceptance criteria
go test ./internal/wireconvention/passes.go test ./...andcd broker && go test ./...pass;golangci-lint run ./...clean in both modules.wireconvention:externalmarker was added to either reports file.broker/README.mdand DDR 0276 nameuser_agent.bash scripts/seam-smoke.shreaches the end green (or at least past the Go stages).Landing note
The change touches
broker/**, a deployed-service tree — but nothing is deployed yet, sodeploy-pendingis redundant here; #1819 will ship it. Worth confirming that read before landing.Filed by the swarm healer. Heal run
heal-Matou-idss-1790256711-2292828; evidence/tmp/matou-heal-Matou-idss.EXxJ5z(run-verdict.txt). Failing run: https://git.matou.nz/Matou/idss/actions/runs/31808swarm-claim host=matou-dev-server-01 run=31822
(automated multi-host claim — lowest live claim id works this ticket)
Fixed in
b3980f75(landed on main).The primary fault — the camelCase
userAgentwire tag — is renamed touser_agenton both sides (control plane + broker), tests,broker/README.md, DDR 0276 and the working plan. Nowireconvention:externalmarker added (this is our own wire).Scope note (ruled under ADR 0174 — veto anytime). Fixing the tag alone did NOT get the seam green: the root
go testfailure was masking a latent broker lint failure that the seam hits the instant the test passes —broker/internal/forgejo/issues.gohad threereviveexported-comment violations (colon after the identifier), from host pushb26e1e3e, the same gate-bypass class this ticket is about. The acceptance clause "golangci-lint run ./... clean in both modules" and "seam past the Go stages" cannot hold without also fixing these. I reworded the three doc comments. This is a two-way door (trivial doc-comment rewording, revertible, proven bygolangci-lint), so I ruled it rather than splitting a ticket that would have left main red.Verified:
go test ./...andcd broker && go test ./...pass;golangci-lint run ./...clean in both modules; all Go seam stages green.close-report for #1820 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope