mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
Resolve the 4 items the reviewer raised on MUL-2265: 1. TS schema: declare `active_issue_count` as optional (`number | null | undefined`) so list/create/update Squad responses don't lie about their shape; only `getSquad` parses through SquadSchema. 2. Archive semantics: restrict TransferSquadAssignees to active issues (status NOT IN done, cancelled) so dialog count and SQL operate on one set and terminal-state issues keep their historical assignee. 3. Index assumption: corrected — `idx_issue_assignee (assignee_type, assignee_id)` exists and is sufficient at realistic squad cardinality; no new index needed. 4. Fixed `*int64` test comparison and added `.loose()` to SquadSchema per the local schemas.ts convention. Co-authored-by: multica-agent <github@multica.ai>