Commit 5f08628
committed
fix(orchestration): thread the trigger comment's issue id so a parent-routed iteration's ✅/❌ reply lands (aws-samples#247 UX.19)
Live-caught on ABCA-304 immediately after UX.18 shipped: a comment left
on the PARENT epic was routed to the footer sub-issue and an iteration
spawned (👀 ack + 'routed to sub-issue … pr_number 193'), but the
iteration then FAILED (transient GITHUB_UNREACHABLE) and NO ❌ reply
appeared — the human saw 👀 then silence.
Root cause: replyToIterationComment posted the ✅/❌ reply with
issueId = changedSubIssueId (the sub-issue, ABCA-305), but the trigger
comment lives on the PARENT epic (ABCA-304). Linear's commentCreate
rejects a threaded reply whose parentId belongs to a different issue, so
the reply silently failed. (The cascade-skip on FAILED was correct; the
reply, which runs BEFORE the success gate, was the casualty.)
Fix: thread trigger_comment_issue_id (the issue the human actually
commented on) through channel_metadata —
- iterateOrchestrationChild adds it (defaults to the sub-issue id; the
parent-epic path passes snapshot.meta.parent_linear_issue_id).
- parseTerminalTaskRecord reads it into TerminalTaskEvent.
- replyToIterationComment uses it as commentCreate's issueId, falling
back to changedSubIssueId for pre-UX.19 tasks.
Direct sub-issue comments are unaffected (issue id == sub-issue). The
standalone fanout reply path already replies on linear_issue_id = the
comment's own issue, so no change needed there.
Tests: reconciler 'PARENT-routed iteration replies on the PARENT issue
not the sub-issue'; webhook wiring asserts trigger_comment_issue_id =
the parent. 78 green across reconciler+webhook+matcher suites.1 parent 834562c commit 5f08628
4 files changed
Lines changed: 65 additions & 4 deletions
File tree
- cdk
- src/handlers
- test/handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
| |||
783 | 786 | | |
784 | 787 | | |
785 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
786 | 796 | | |
787 | 797 | | |
788 | 798 | | |
| |||
794 | 804 | | |
795 | 805 | | |
796 | 806 | | |
| 807 | + | |
797 | 808 | | |
798 | 809 | | |
799 | 810 | | |
| |||
827 | 838 | | |
828 | 839 | | |
829 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
830 | 845 | | |
831 | 846 | | |
832 | 847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
| |||
171 | 180 | | |
172 | 181 | | |
173 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
174 | 186 | | |
175 | 187 | | |
176 | 188 | | |
| |||
181 | 193 | | |
182 | 194 | | |
183 | 195 | | |
| 196 | + | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
| |||
662 | 675 | | |
663 | 676 | | |
664 | 677 | | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
669 | 685 | | |
670 | 686 | | |
671 | 687 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
541 | 545 | | |
542 | 546 | | |
543 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
694 | 697 | | |
695 | 698 | | |
696 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
697 | 723 | | |
698 | 724 | | |
699 | 725 | | |
| |||
0 commit comments