Description
pkg/workqueue/types.go's core Assignment (line 218) and AssignmentClaim (line 229) types are hand-duplicated as WorkQueueAssignmentReceipt/WorkQueueClaimReceipt in pkg/cli/logs_work_queue_current.go:30,39, re-declaring ~60-70% of the same field names (DispatchID, RequestID, CommitID, Handle, ClaimID, WorkID) instead of projecting from the core types — confirmed via direct read of both declarations.
Expected Impact
Changes to the core work-queue identity fields currently require a second hand-edit in the CLI reporting view; a projection method removes that silent-drift risk.
Suggested Fix
Add a ToReceipt() method on workqueue.Assignment/AssignmentClaim (or factor out a shared identity sub-struct) instead of re-declaring the fields by hand in pkg/cli.
Suggested Agent
General Go-focused coding agent.
Estimated Effort
Medium (2-3 hours)
Data Source
Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Cluster 3 / Priority 3 item #5. Live-verified via direct source read of both declarations before filing.
Generated by 🔬 Deep Report · claude · agent · 270.5 AIC · ⌖ 8.95 AIC · ⊞ 7.1K · ◷
Description
pkg/workqueue/types.go's coreAssignment(line 218) andAssignmentClaim(line 229) types are hand-duplicated asWorkQueueAssignmentReceipt/WorkQueueClaimReceiptinpkg/cli/logs_work_queue_current.go:30,39, re-declaring ~60-70% of the same field names (DispatchID,RequestID,CommitID,Handle,ClaimID,WorkID) instead of projecting from the core types — confirmed via direct read of both declarations.Expected Impact
Changes to the core work-queue identity fields currently require a second hand-edit in the CLI reporting view; a projection method removes that silent-drift risk.
Suggested Fix
Add a
ToReceipt()method onworkqueue.Assignment/AssignmentClaim(or factor out a shared identity sub-struct) instead of re-declaring the fields by hand inpkg/cli.Suggested Agent
General Go-focused coding agent.
Estimated Effort
Medium (2-3 hours)
Data Source
Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Cluster 3 / Priority 3 item #5. Live-verified via direct source read of both declarations before filing.