Repository navigation
Commit 434880c
feat(fork-sync): a blocked sync labels its attention issue rsi:fork-sync (#1847)
## Problem
A blocked sync labels its attention issue `ci` only, so rsi-pr-agent never starts on it.
rsi-pr-agent runs a repository workflow only on its `rsi:<id>` label.
## Change
A blocked publish adds `rsi:fork-sync` beside `ci`:
```diff
- const { issue, publishedVia } = upsertStandingIssue(runner, root, stop.title, (previous) =>
- attentionIssueBody(report, previous),
+ const { issue, publishedVia } = upsertStandingIssue(
+ runner,
+ root,
+ stop.title,
+ key === "blocked" ? [AGENT_LABEL] : [],
+ (previous) => attentionIssueBody(report, previous),
);
```
- **Create:** `--label ci --label rsi:fork-sync`
- **Rewrite:** `--add-label rsi:fork-sync`
- **Unchanged body:** no write, so no relabel
- **Failure issues:** `ci` only
- **Docs:** one line in `fork-sync.md`
rsi-pr-agent consumes the label when a run starts, so each changed blocked rewrite asks again.
**Merge after** #1848 (the #1845 definition).
rsi-pr-agent creates `rsi:fork-sync` only once that definition is on `hyprws`.
Before then, `gh issue create --label rsi:fork-sync` refuses a missing label and the blocked publish fails.
## Scope and approval
Refs #1843.
Its condition, "The attention issue gets rsi:fork-sync", needs a live blocked sync after merge; the host owns that proof under #1841.
## Verification
- [x] `vp test run scripts/fork-sync.test.ts → exit 0`
- [x] Blocked create and rewrite carry `rsi:fork-sync`
- [x] Failure create and rewrite carry `ci` only
- [x] `vp run typecheck → exit 0`
- [x] `vp run fork:ci → exit 0`
- [ ] Live blocked sync labels its issue (after merge)
Claude Opus 5.5, Claude Code.
## Fork trailers
Fork-Domain: fork-meta
Fork-Tier: qol
Co-authored-by: donjor <[email protected]>1 parent 21a1043 commit 434880c
3 files changed
Lines changed: 35 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
1573 | | - | |
| 1573 | + | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| |||
1617 | 1617 | | |
1618 | 1618 | | |
1619 | 1619 | | |
| 1620 | + | |
1620 | 1621 | | |
1621 | 1622 | | |
1622 | 1623 | | |
| |||
1657 | 1658 | | |
1658 | 1659 | | |
1659 | 1660 | | |
| 1661 | + | |
1660 | 1662 | | |
1661 | 1663 | | |
1662 | 1664 | | |
| |||
1746 | 1748 | | |
1747 | 1749 | | |
1748 | 1750 | | |
1749 | | - | |
| 1751 | + | |
1750 | 1752 | | |
1751 | 1753 | | |
1752 | | - | |
| 1754 | + | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
1549 | 1551 | | |
1550 | 1552 | | |
1551 | 1553 | | |
1552 | | - | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
1553 | 1559 | | |
| 1560 | + | |
1554 | 1561 | | |
1555 | 1562 | | |
1556 | 1563 | | |
| |||
1587 | 1594 | | |
1588 | 1595 | | |
1589 | 1596 | | |
1590 | | - | |
1591 | | - | |
| 1597 | + | |
1592 | 1598 | | |
1593 | 1599 | | |
1594 | 1600 | | |
| |||
1598 | 1604 | | |
1599 | 1605 | | |
1600 | 1606 | | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
| 1607 | + | |
1612 | 1608 | | |
1613 | 1609 | | |
1614 | 1610 | | |
| |||
1627 | 1623 | | |
1628 | 1624 | | |
1629 | 1625 | | |
1630 | | - | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1631 | 1637 | | |
1632 | 1638 | | |
1633 | 1639 | | |
| |||
1676 | 1682 | | |
1677 | 1683 | | |
1678 | 1684 | | |
| 1685 | + | |
1679 | 1686 | | |
1680 | 1687 | | |
1681 | | - | |
| 1688 | + | |
1682 | 1689 | | |
1683 | 1690 | | |
1684 | 1691 | | |
| |||
1709 | 1716 | | |
1710 | 1717 | | |
1711 | 1718 | | |
1712 | | - | |
1713 | | - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1714 | 1725 | | |
1715 | 1726 | | |
1716 | 1727 | | |
| |||
0 commit comments