|
124 | 124 | // opposite (#18160, ruling D on #17712, 2026-09-14): |
125 | 125 | // |
126 | 126 | // COLLISION -> rename yours; restore theirs from base |
127 | | -// DELIBERATE CORRECTION -> do NOT restore it; get it confirmed on the PR |
| 127 | +// DELIBERATE CORRECTION -> do NOT restore it; declare it on the PR, the seat's record confirms |
128 | 128 | // |
129 | 129 | // The second class is a PR that changed behaviour a PENDING release note |
130 | 130 | // describes and corrected that note in the same stroke. It is refused exactly as |
@@ -547,8 +547,17 @@ export const FOREIGN_REMEDY = 'rename yours; restore theirs from base'; |
547 | 547 | * `sum` / `avg` / `min` / `max` and rewrites |
548 | 548 | * `.changeset/aggregate-field-type-compatibility.md`, whose base text stated |
549 | 549 | * booleans were refused for exactly those four aggregates. |
| 550 | + * |
| 551 | + * The remedy NAMES the confirmer, by pointing at the record that confirms. A |
| 552 | + * remedy that only said "get it confirmed" sent devs to ask the maintainer in |
| 553 | + * the PR body and seats to hold the landing until the maintainer answered, |
| 554 | + * while the rule already placed the confirmation with the dispatching seat's |
| 555 | + * own record (pm-dispatch references/landing-operations.md): its ACCEPT for a |
| 556 | + * text-only diff, otherwise its same-head at-tier contract-review PASS. The |
| 557 | + * verdict is unchanged; only the way out is spelled so nobody waits. |
550 | 558 | */ |
551 | | -export const FOREIGN_CORRECTION_REMEDY = 'do NOT restore it -- say so on the PR and get it confirmed'; |
| 559 | +export const FOREIGN_CORRECTION_REMEDY = |
| 560 | + 'do NOT restore it -- declare the DELIBERATE CORRECTION on the PR, naming each note; the dispatching seat confirms it by its own record (its ACCEPT, or its same-head at-tier contract-review PASS: pm-dispatch references/landing-operations.md), never a maintainer wait'; |
552 | 561 |
|
553 | 562 | // ONE source for the two-class remedy, rendered TWICE: as indented lines in the |
554 | 563 | // human body, and joined into the single line a `::error` annotation has to be. |
@@ -606,10 +615,13 @@ function reportForeign(rows) { |
606 | 615 | 'above is the one thing not to do: the note you rewrote describes behaviour THIS PR', |
607 | 616 | 'changed, so restoring it from the base republishes a sentence that is now false, and', |
608 | 617 | 'no label and no diff shape makes that safe. Correcting a pending release note is a', |
609 | | - 'decision about a release rather than a refactor -- say so on the PR, naming the note', |
610 | | - 'and what changed under it, and get it confirmed. That is the existing human path;', |
611 | | - 'this gate stays red either way, and staying red is what puts the decision in front of', |
612 | | - 'a person instead of routing around it.', |
| 618 | + 'decision about a release rather than a refactor -- declare it on the PR as a', |
| 619 | + 'DELIBERATE CORRECTION, naming each note and quoting the corrected sentences. Who', |
| 620 | + 'confirms it is the dispatching seat, by its own record: its ACCEPT for a text-only', |
| 621 | + 'diff, otherwise its same-head at-tier contract-review PASS (pm-dispatch', |
| 622 | + 'references/landing-operations.md). Do not ask the maintainer to confirm it, and do', |
| 623 | + 'not wait for one; this gate stays red either way, and staying red is what puts the', |
| 624 | + 'correction in front of that record instead of routing around it.', |
613 | 625 | ].join('\n'), |
614 | 626 | ); |
615 | 627 | for (const { file } of rows) { |
@@ -688,7 +700,7 @@ const SELF_TEST_BATTERIES = Object.freeze({ |
688 | 700 | '#6129: main drift must not move the verdict, in EITHER direction': 6, |
689 | 701 | '#6129, the other half: a base branch that DELETES': 2, |
690 | 702 | "A' (#17712): a changeset the PR did not add is neither modified nor deleted": 29, |
691 | | - 'D (#18160): the refusal names BOTH classes, body and annotation pinned equal': 12, |
| 703 | + 'D (#18160): the refusal names BOTH classes, body and annotation pinned equal': 14, |
692 | 704 | '#4690, one step later: no merge base at all is a failure': 1, |
693 | 705 | 'The consumer: this gate\'s own CI step (#6129)': 34, |
694 | 706 | 'The second consumer: where THIS SELF-TEST runs (#6509)': 12, |
@@ -1454,9 +1466,18 @@ function selfTest() { |
1454 | 1466 | 'D two-class: the body names the second class in the ruling\'s own terms, not as a generic caveat', |
1455 | 1467 | ); |
1456 | 1468 | assert( |
1457 | | - text.includes('there is no second command to run') && text.includes('get it confirmed'), |
| 1469 | + text.includes('there is no second command to run') && text.includes('the dispatching seat, by its own record'), |
1458 | 1470 | 'D two-class: the second class is ROUTED to the confirmation path rather than to the restore', |
1459 | 1471 | ); |
| 1472 | + assert( |
| 1473 | + FOREIGN_CORRECTION_REMEDY.includes('the dispatching seat confirms it by its own record') |
| 1474 | + && FOREIGN_CORRECTION_REMEDY.includes('references/landing-operations.md'), |
| 1475 | + 'D two-class: the remedy NAMES the confirmer by pointing at the record that confirms -- "get it confirmed" with no confirmer sent devs to the maintainer', |
| 1476 | + ); |
| 1477 | + assert( |
| 1478 | + text.includes('Do not ask the maintainer to confirm it'), |
| 1479 | + 'D two-class: the body says in words that the maintainer is not the confirmer -- the wait this remedy exists to end', |
| 1480 | + ); |
1460 | 1481 |
|
1461 | 1482 | // The equality pin, taken against the REAL rendered body. |
1462 | 1483 | { |
|
0 commit comments