staterpc: regression test for nil-Task Update InvalidArgument guard #1605
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#1605
Reference in new issue
Block a user
f94e484 added the nil-Task guard at internal/infrastructure/staterpc/server.go:119 (codes.InvalidArgument, replacing a panicking store-layer deref) as the 'Update validation' finding fix, but no test asserts it. Add a bufconn-backed test: Update(ctx, &pb.UpdateRequest{Task: nil}) must return codes.InvalidArgument, not panic.
Close reason
Fixed in 93e36f5: TestUpdateRejectsNilTask asserts Update(nil) returns InvalidArgument through the real interceptor chain.
Imported from beads
archie-core-uba5· GitHub #820 · type task · priority P3 · created 2026-09-11 · closed 2026-09-11