Commit a1367ff
committed
fix(gate): stop labelling a PR for manual review in the same pass that merges it
The manual-review label announces a HOLD. Its emit condition checked
`guardrailHit` alone, so once a clean escalated review released that hold
(guardrailEscalationCleared), the planner emitted both in one pass: the merge
AND the label telling a human to come look at it. Self-contradictory, and it
leaves a manual-review label sitting on merged PRs in precisely the
full-autonomy mode the feature exists to enable.
Also closes the two patch-coverage gaps this PR still carried, both of them
the "test both sides" class:
- agent-actions: no test made guardrailHit, reviewGood and escalationConfigured
true at once, so the fourth conjunct -- `onCleanReview === "proceed"`, the
term the whole feature turns on -- was never evaluated at all. Now asserted
in both directions against identical input, plus the case where "proceed" is
set with NO escalation configured, which must NOT release (that promise is
about an escalated review; honouring it without one would leave guarded paths
weaker than before the feature).
- focus-manifest: onCleanReview was covered through parse but not through
resolveEffectiveSettings. Parsing it and dropping it during resolution would
silently restore always-hold while the manifest still read as configured for
full autonomy.1 parent c606d65 commit a1367ff
3 files changed
Lines changed: 60 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | | - | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1252 | 1258 | | |
1253 | 1259 | | |
1254 | 1260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
69 | 106 | | |
70 | 107 | | |
71 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1676 | 1692 | | |
1677 | 1693 | | |
1678 | 1694 | | |
| |||
0 commit comments