looply-cli 0.5.52 → 0.5.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/autonomy-controller.d.ts.map +1 -1
  2. package/dist/autonomy-controller.js +19 -0
  3. package/dist/autonomy-controller.js.map +1 -1
  4. package/dist/branch-delivery-wiring.d.ts +23 -0
  5. package/dist/branch-delivery-wiring.d.ts.map +1 -1
  6. package/dist/branch-delivery-wiring.js +189 -38
  7. package/dist/branch-delivery-wiring.js.map +1 -1
  8. package/dist/branch-delivery.d.ts +58 -1
  9. package/dist/branch-delivery.d.ts.map +1 -1
  10. package/dist/branch-delivery.js +242 -9
  11. package/dist/branch-delivery.js.map +1 -1
  12. package/dist/bug-repro.d.ts +99 -11
  13. package/dist/bug-repro.d.ts.map +1 -1
  14. package/dist/bug-repro.js +236 -15
  15. package/dist/bug-repro.js.map +1 -1
  16. package/dist/daemon-cmd.d.ts.map +1 -1
  17. package/dist/daemon-cmd.js +53 -2
  18. package/dist/daemon-cmd.js.map +1 -1
  19. package/dist/earlier-answers-cache.d.ts +71 -0
  20. package/dist/earlier-answers-cache.d.ts.map +1 -0
  21. package/dist/earlier-answers-cache.js +253 -0
  22. package/dist/earlier-answers-cache.js.map +1 -0
  23. package/dist/failing-checks-tick.d.ts +158 -0
  24. package/dist/failing-checks-tick.d.ts.map +1 -0
  25. package/dist/failing-checks-tick.js +313 -0
  26. package/dist/failing-checks-tick.js.map +1 -0
  27. package/dist/feature-report.d.ts +2 -0
  28. package/dist/feature-report.d.ts.map +1 -1
  29. package/dist/feature-report.js +19 -5
  30. package/dist/feature-report.js.map +1 -1
  31. package/dist/gate-health.d.ts +8 -0
  32. package/dist/gate-health.d.ts.map +1 -1
  33. package/dist/gate-health.js +13 -0
  34. package/dist/gate-health.js.map +1 -1
  35. package/dist/goal-adaptive.d.ts +56 -3
  36. package/dist/goal-adaptive.d.ts.map +1 -1
  37. package/dist/goal-adaptive.js +126 -12
  38. package/dist/goal-adaptive.js.map +1 -1
  39. package/dist/goal-already-met.d.ts +62 -0
  40. package/dist/goal-already-met.d.ts.map +1 -0
  41. package/dist/goal-already-met.js +95 -0
  42. package/dist/goal-already-met.js.map +1 -0
  43. package/dist/goal-execution-evidence.d.ts +7 -1
  44. package/dist/goal-execution-evidence.d.ts.map +1 -1
  45. package/dist/goal-execution-evidence.js +12 -1
  46. package/dist/goal-execution-evidence.js.map +1 -1
  47. package/dist/goal-gap.d.ts +63 -7
  48. package/dist/goal-gap.d.ts.map +1 -1
  49. package/dist/goal-gap.js +126 -18
  50. package/dist/goal-gap.js.map +1 -1
  51. package/dist/project-memory-store.d.ts +7 -0
  52. package/dist/project-memory-store.d.ts.map +1 -1
  53. package/dist/project-memory-store.js +31 -1
  54. package/dist/project-memory-store.js.map +1 -1
  55. package/dist/project-terminal.d.ts +1 -0
  56. package/dist/project-terminal.d.ts.map +1 -1
  57. package/dist/project-terminal.js +14 -2
  58. package/dist/project-terminal.js.map +1 -1
  59. package/dist/pursuit-ending.d.ts.map +1 -1
  60. package/dist/pursuit-ending.js +11 -0
  61. package/dist/pursuit-ending.js.map +1 -1
  62. package/dist/run-cmd.d.ts.map +1 -1
  63. package/dist/run-cmd.js +92 -6
  64. package/dist/run-cmd.js.map +1 -1
  65. package/dist/run-refusal-marks.d.ts +12 -0
  66. package/dist/run-refusal-marks.d.ts.map +1 -1
  67. package/dist/run-refusal-marks.js +22 -3
  68. package/dist/run-refusal-marks.js.map +1 -1
  69. package/dist/server-client.d.ts +32 -0
  70. package/dist/server-client.d.ts.map +1 -1
  71. package/dist/server-client.js +38 -0
  72. package/dist/server-client.js.map +1 -1
  73. package/dist/setup-check-wiring.d.ts +8 -0
  74. package/dist/setup-check-wiring.d.ts.map +1 -1
  75. package/dist/setup-check-wiring.js +61 -9
  76. package/dist/setup-check-wiring.js.map +1 -1
  77. package/dist/setup-check.d.ts +43 -1
  78. package/dist/setup-check.d.ts.map +1 -1
  79. package/dist/setup-check.js +125 -3
  80. package/dist/setup-check.js.map +1 -1
  81. package/dist/visual-proof-browser.d.ts +6 -0
  82. package/dist/visual-proof-browser.d.ts.map +1 -1
  83. package/dist/visual-proof-browser.js +16 -0
  84. package/dist/visual-proof-browser.js.map +1 -1
  85. package/dist/visual-proof-config.d.ts +10 -1
  86. package/dist/visual-proof-config.d.ts.map +1 -1
  87. package/dist/visual-proof-config.js +20 -2
  88. package/dist/visual-proof-config.js.map +1 -1
  89. package/dist/visual-proof-detect.d.ts +45 -3
  90. package/dist/visual-proof-detect.d.ts.map +1 -1
  91. package/dist/visual-proof-detect.js +60 -3
  92. package/dist/visual-proof-detect.js.map +1 -1
  93. package/dist/visual-proof-run.d.ts +8 -0
  94. package/dist/visual-proof-run.d.ts.map +1 -1
  95. package/dist/visual-proof-run.js +16 -6
  96. package/dist/visual-proof-run.js.map +1 -1
  97. package/package.json +2 -2
  98. package/win/contained-node.cjs +110 -1
  99. package/dist/.src-hash +0 -1
@@ -5,7 +5,7 @@ import type { LiveCommitReader } from './live-commit';
5
5
  import { type GitExec } from './git-driver';
6
6
  import type { FreshGates } from './fresh-gates';
7
7
  import type { CheckResult, GitHubApi, PullInfo } from './github-api';
8
- import type { CiBaseReport, DeliveryChanges } from '@looply/core';
8
+ import type { CiBaseReport, DeliveryChanges, DeliveryConflict } from '@looply/core';
9
9
  import { type StallDiagnosis, type StallKind } from '@looply/core';
10
10
  import { type ForeignWork } from './commit-ownership';
11
11
  import type { LaneClaimRecord } from './lane-claims';
@@ -240,6 +240,12 @@ export interface DeliveryEntry {
240
240
  } | null;
241
241
  /** What the pull request changes, recorded once when it is opened (LOO-B-5). */
242
242
  changes?: DeliveryChanges | null;
243
+ /**
244
+ * A bug goal's reproduction as it stood when the pull request was opened (`bug-repro.ts`): the test that failed on
245
+ * the base tree and passed on the delivered one. Kept so every report of this delivery carries it — it was written
246
+ * into the pull request's description and nowhere else, so the ticket never said it.
247
+ */
248
+ reproduction?: ReproductionReport | null;
243
249
  /** Where the merged commit is, per environment; set at the merge, then followed (see `followDeploys`). */
244
250
  environments?: EnvStatus[];
245
251
  /** When Looply first saw it merged — the start of the 14 days deploys are followed for. */
@@ -252,6 +258,8 @@ export interface DeliveryEntry {
252
258
  noAutoMerge?: boolean;
253
259
  /** A bundle met in part: its parts, kept so a retried delivery is held the same way (`deliverOnce`). */
254
260
  parts?: DeliveredPart[];
261
+ /** A split goal's part: the release order as project ids (core `BranchDeliveryReport.releaseOrder`), kept for every report. */
262
+ releaseOrder?: string[];
255
263
  /**
256
264
  * Looply's own gate outcomes for the delivered commit (`typecheck: passed`, …), as key 2 recorded
257
265
  * them. Under ship to test, when the repository reports no CI at all, these are the checks.
@@ -273,6 +281,18 @@ export interface DeliveryEntry {
273
281
  head: string;
274
282
  baseSha: string;
275
283
  because: string;
284
+ at: string; /** The base branch's name; absent on an entry held before it was kept. */
285
+ base?: string;
286
+ } | null;
287
+ /**
288
+ * 🔴 A NEWER PULL REQUEST WAS OPENED IN ITS PLACE (RBB-T-14, 2026-11-16): AutoRyn sent the conflicted change back
289
+ * as a fix-up goal that makes it again on the current base, and that goal's pull request is open (or merged).
290
+ * Final from then on: never rebuilt on the base again, never re-judged or merged; only a person's own merge or
291
+ * close of it on GitHub is still recorded. Null/absent: nothing replaced it.
292
+ */
293
+ replacedBy?: {
294
+ goalId: string;
295
+ url: string;
276
296
  at: string;
277
297
  } | null;
278
298
  /** The goal's `clientRef` when it was delivered — which ticket, and which attempt at it (`ticketAttemptOf`). */
@@ -386,6 +406,8 @@ export interface DeliverInput {
386
406
  readonly clientRef?: string | null;
387
407
  /** A bundle met in part (core `goal-parts.ts`): which tickets this pull request delivers, and which it does not. */
388
408
  readonly parts?: readonly DeliveredPart[] | null;
409
+ /** A split goal's part: the order its repositories are released in, as project ids (core `releaseOrderIds`). */
410
+ readonly releaseOrder?: readonly string[];
389
411
  }
390
412
  /** The pull request's line for a bundle met in part, or null. */
391
413
  export declare function partsLine(parts: readonly DeliveredPart[] | null | undefined): string | null;
@@ -409,9 +431,28 @@ export interface DeliverDeps {
409
431
  * `ownerOfBranch` still answers for a `-solo` branch through its original's claim.
410
432
  */
411
433
  recordClaim?(record: LaneClaimRecord): void;
434
+ /**
435
+ * True when the server, told of this goal's pull request, answered that nobody wants it (`unwanted`: the goal was
436
+ * given up before it heard of it). Absent: never (an older wiring, or a test).
437
+ */
438
+ unwanted?(goalId: string): boolean;
412
439
  }
413
440
  /** `git diff --numstat` and `git log --format=%h%x09%s` as a bounded summary (no file content). */
414
441
  export declare function summarizeChanges(numstat: string, log: string): DeliveryChanges;
442
+ /**
443
+ * The files a conflict rebuild's refusal names, in its own words (`branch-replay.ts`: "… (it conflicts in a.ts,
444
+ * b.ts)", git's "patch failed: package.json:19"). Read from the words so an entry held before the files were
445
+ * reported (RBB-T-14's, on the owner's machine now) reports them too. At most six, as the refusal itself lists.
446
+ */
447
+ export declare function conflictFilesOf(because: string | null | undefined): string[];
448
+ /**
449
+ * 🔴 THE CONFLICT AS DATA, FOR AutoRyn (RBB-T-14, 2026-11-16: it was in the note only, and AutoRyn read it from the
450
+ * wording). Set only while the pull request is held because it conflicts with its base and Looply could not bring
451
+ * it up to date by itself; null once it no longer conflicts, once it was rebuilt, once a replacement is open in its
452
+ * place, and once nothing is left to do on it.
453
+ */
454
+ export declare function deliveryConflictOf(e: Pick<DeliveryEntry, 'conflict' | 'state' | 'done' | 'replacedBy' | 'projectBase' | 'base'>): DeliveryConflict | null;
455
+ export declare function reportOf(e: DeliveryEntry): BranchDeliveryReport;
415
456
  /**
416
457
  * The entry's wait, diagnosed (core `stall.ts`), counting from when this same kind of wait began on
417
458
  * the entry as it stood before (`prior`), or from now.
@@ -659,6 +700,22 @@ export declare function ticketAttemptOfMember(clientRef: string | null | undefin
659
700
  ticket: string;
660
701
  attempt: number;
661
702
  } | null;
703
+ /**
704
+ * 🔴 WHICH DELIVERY REPLACES THIS ONE — the newest that does, or null. Pure (RBB-T-14, 2026-11-16).
705
+ *
706
+ * A pull request that conflicts with its base, and that Looply could not bring up to date by itself, goes back to
707
+ * Looply as a NEW goal on the same ticket: AutoRyn's fix-up, cut from the current base with no `dependsOn`, whose
708
+ * words end "… This replaces <the old pull request's address>." Its pull request does not contain the old head and
709
+ * asks for different words, so neither rule in `closeSuperseded` fires, and `replacing` in `deliverOnce` takes only a
710
+ * `checks-failed` predecessor. A newer delivery replaces `old` when it has its own pull request in the same
711
+ * repository, not built on `old`'s branch, and either
712
+ * - its goal says "replaces <old's address>" (what AutoRyn's fix-up says), or
713
+ * - it is a later attempt at the same ticket (`clientRef`), `old` is held on a conflict, and its goal names old's
714
+ * address or branch — the same lineage without the last sentence (AutoRyn caps a goal's words at 2000
715
+ * characters, and that sentence comes last).
716
+ * `old` must be Looply's own run branch's pull request, still open to Looply, and not already replaced.
717
+ */
718
+ export declare function replacementOf(old: DeliveryEntry, all: readonly DeliveryEntry[], refOf?: (e: DeliveryEntry) => string | null): DeliveryEntry | null;
662
719
  /** How long a merged commit's deploys are followed for, so one done outside Looply is still seen. */
663
720
  export declare const FOLLOW_DEPLOYS_MS: number;
664
721
  /** How long after the merge a `merge-deploys` site may take to serve the commit before the row says it is not live. */
@@ -1 +1 @@
1
- {"version":3,"file":"branch-delivery.d.ts","sourceRoot":"","sources":["../src/branch-delivery.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAC;AAYpE,OAAO,EAA0B,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M,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAEtH;AAuHD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,aAAa,EAClB,GAAG,EAAE,SAAS,aAAa,EAAE,EAC7B,KAAK,GAAE,CAAC,CAAC,EAAE,aAAa,KAAK,MAAM,GAAG,IAAiC,GACtE,aAAa,GAAG,IAAI,CA6BtB;AA4DD,qGAAqG;AACrG,eAAO,MAAM,iBAAiB,QAAwB,CAAC;AA+TvD,uHAAuH;AACvH,eAAO,MAAM,gBAAgB,QAAc,CAAC;AAC5C,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,QAAc,CAAC;AA+ErD,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,QAAc,CAAC;AAC7C,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAcnC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAM1G;AAED,sHAAsH;AACtH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,CAKrG;AA4HD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,YAAY,CAAC,CAmCjG"}
@@ -11,6 +11,9 @@ exports.findGoalBranch = findGoalBranch;
11
11
  exports.stackedOn = stackedOn;
12
12
  exports.partsLine = partsLine;
13
13
  exports.summarizeChanges = summarizeChanges;
14
+ exports.conflictFilesOf = conflictFilesOf;
15
+ exports.deliveryConflictOf = deliveryConflictOf;
16
+ exports.reportOf = reportOf;
14
17
  exports.deliveryStall = deliveryStall;
15
18
  exports.pullTitle = pullTitle;
16
19
  exports.maintenanceSection = maintenanceSection;
@@ -29,6 +32,7 @@ exports.noNewCommits = noNewCommits;
29
32
  exports.conflictMoved = conflictMoved;
30
33
  exports.ticketAttemptOf = ticketAttemptOf;
31
34
  exports.ticketAttemptOfMember = ticketAttemptOfMember;
35
+ exports.replacementOf = replacementOf;
32
36
  exports.herokuLoginSentence = herokuLoginSentence;
33
37
  exports.herokuAuthRefusal = herokuAuthRefusal;
34
38
  exports.makeReleaseRunner = makeReleaseRunner;
@@ -397,7 +401,50 @@ function summarizeChanges(numstat, log) {
397
401
  truncated: files.length > core_3.MAX_CHANGED_FILES || commits.length > core_3.MAX_CHANGED_COMMITS,
398
402
  };
399
403
  }
404
+ /**
405
+ * The files a conflict rebuild's refusal names, in its own words (`branch-replay.ts`: "… (it conflicts in a.ts,
406
+ * b.ts)", git's "patch failed: package.json:19"). Read from the words so an entry held before the files were
407
+ * reported (RBB-T-14's, on the owner's machine now) reports them too. At most six, as the refusal itself lists.
408
+ */
409
+ function conflictFilesOf(because) {
410
+ const s = (because ?? '').replace(/\s+/g, ' ');
411
+ const files = [];
412
+ const add = (p) => {
413
+ const f = p.trim().replace(/:\d+$/, '');
414
+ if (f !== '' && f !== '…' && /^[\w@./+-]+$/.test(f) && !files.includes(f))
415
+ files.push(f);
416
+ };
417
+ // The closing bracket may be cut off: the reason is kept to 300 characters.
418
+ const named = /\bit conflicts in ([^)]+)\)?/.exec(s);
419
+ if (named !== null) {
420
+ const listed = named[1].split(/,\s*/);
421
+ // The reason is kept to 300 characters with nothing to mark the cut: a list with no closing bracket may end in
422
+ // half a path ("src/routes/que"), which is not a file. Its last name is left out.
423
+ if (!/\bit conflicts in [^)]+\)/.test(s))
424
+ listed.pop();
425
+ for (const p of listed)
426
+ add(p);
427
+ }
428
+ for (const m of s.matchAll(/\bpatch failed: ([^\s:;)]+):\d+/g))
429
+ add(m[1]);
430
+ return files.slice(0, 6);
431
+ }
432
+ /**
433
+ * 🔴 THE CONFLICT AS DATA, FOR AutoRyn (RBB-T-14, 2026-11-16: it was in the note only, and AutoRyn read it from the
434
+ * wording). Set only while the pull request is held because it conflicts with its base and Looply could not bring
435
+ * it up to date by itself; null once it no longer conflicts, once it was rebuilt, once a replacement is open in its
436
+ * place, and once nothing is left to do on it.
437
+ */
438
+ function deliveryConflictOf(e) {
439
+ if (!e.conflict || e.state !== 'pr-open' || e.done === true || e.replacedBy)
440
+ return null;
441
+ const base = e.conflict.base ?? e.projectBase ?? e.base;
442
+ if (!base)
443
+ return null;
444
+ return { base, files: conflictFilesOf(e.conflict.because) };
445
+ }
400
446
  function reportOf(e) {
447
+ const conflict = deliveryConflictOf(e);
401
448
  return {
402
449
  state: e.state,
403
450
  branch: e.branch,
@@ -410,6 +457,10 @@ function reportOf(e) {
410
457
  deploy: e.deploy ?? null,
411
458
  ...(e.environments === undefined ? {} : { environments: e.environments }),
412
459
  ...(e.changes ? { changes: e.changes } : {}),
460
+ ...(e.reproduction ? { reproduction: e.reproduction } : {}),
461
+ ...(conflict === null ? {} : { conflict }),
462
+ // A split part's release order, as data: AutoRyn ships the repositories in it, one after another.
463
+ ...(e.releaseOrder && e.releaseOrder.length > 1 ? { releaseOrder: [...e.releaseOrder] } : {}),
413
464
  };
414
465
  }
415
466
  /**
@@ -462,6 +513,20 @@ function pullTitle(goalText) {
462
513
  * changelog and advisory links, the build note, and why Looply will not merge it.
463
514
  */
464
515
  function maintenanceSection(m) {
516
+ if (m.kind === 'failing-checks' && m.failingChecks) {
517
+ const f = m.failingChecks;
518
+ const on = f.branch ?? 'the base branch';
519
+ const out = [`### Checks failing on ${on}: "${f.step}" (since ${f.since.slice(0, 10)}, last seen on ${f.baseSha.slice(0, 7)})`];
520
+ if (f.tests.length > 0) {
521
+ out.push('', 'Failing test files on the unchanged base:');
522
+ for (const t of f.tests)
523
+ out.push(`- \`${t}\``);
524
+ if (f.testCount > f.tests.length)
525
+ out.push(`- and ${f.testCount - f.tests.length} more`);
526
+ }
527
+ out.push('', `🔒 Looply opened this itself after ${f.checks} base checks in a row found these failures. A person reviews and merges the fix.`);
528
+ return out;
529
+ }
465
530
  const kind = m.kind === 'upgrade' ? 'dependency upgrade' : m.kind === 'security' ? 'security fixes' : 'unused dependencies and dead code';
466
531
  const out = [`### Scheduled maintenance: ${kind} (${m.week}, ${m.root === '.' ? 'repository root' : m.root}, ${m.packageManager})`];
467
532
  if (m.packages.length > 0) {
@@ -580,6 +645,7 @@ async function deliverOnce(deps, input) {
580
645
  ...(input.clientRef ? { clientRef: input.clientRef } : {}),
581
646
  ...(input.late === true ? { late: true } : {}),
582
647
  ...(input.parts ? { parts: input.parts.map((p) => ({ ...p })) } : {}),
648
+ ...(input.releaseOrder && input.releaseOrder.length > 0 ? { releaseOrder: [...input.releaseOrder] } : {}),
583
649
  state: 'not-pushed',
584
650
  note: null,
585
651
  dependsOn: null,
@@ -675,6 +741,7 @@ async function deliverOnce(deps, input) {
675
741
  dependsOn: stack?.branch ?? null,
676
742
  state: 'pushed',
677
743
  ...(rebuilt === null ? {} : { rebuiltFrom: { branch: original.name, sha: original.sha, without: rebuilt.without } }),
744
+ ...(input.reproduction ? { reproduction: input.reproduction } : {}),
678
745
  };
679
746
  if (gh === null) {
680
747
  return save(deps, { ...entry, note: `pushed to origin (${remoteUrl === null ? 'no URL' : (0, delivery_rules_1.redactUrl)(remoteUrl)}); origin is not on github.com, so no pull request was opened` });
@@ -709,6 +776,8 @@ async function deliverOnce(deps, input) {
709
776
  const couldNot = plan.kind === 'stacked' && plan.because !== null ? `Looply could not rebuild it without that work (${plan.because})` : null;
710
777
  let pull = await api.findPull(branch);
711
778
  let replacedOwn = null;
779
+ // The red pull request this fix-up replaces, closed only once the server has accepted the fix-up (below).
780
+ let toReplace = null;
712
781
  if (pull === null || (pull.state === 'closed' && !pull.merged)) {
713
782
  const stackedPull = stack !== null && stack.onOrigin ? await api.findPull(stack.branch).catch(() => null) : null;
714
783
  try {
@@ -734,10 +803,8 @@ async function deliverOnce(deps, input) {
734
803
  }),
735
804
  });
736
805
  deps.log(`deliver : opened ${pull.url} (${branch} → ${prBase})`);
737
- if (replacing !== null) {
738
- await api.closePull(replacing.pullNumber, `Replaced by ${pull.url}, which contains this work and its fix.`).catch(() => undefined);
739
- await save(deps, { ...replacing, done: true, note: `replaced by ${pull.url}`, updatedAt: at });
740
- }
806
+ if (replacing !== null)
807
+ toReplace = replacing;
741
808
  // `--rebuild`: the old pull request of this goal's stacked branch is closed, pointing here.
742
809
  if (input.replace === true && rebuilt !== null && prior !== null && prior.pullNumber !== null && prior.branch === original.name && prior.pullRequestUrl !== pull.url) {
743
810
  const old = await api.getPull(prior.pullNumber).catch(() => null);
@@ -782,7 +849,7 @@ async function deliverOnce(deps, input) {
782
849
  const changes = deps.git.changeSummary === undefined
783
850
  ? null
784
851
  : await deps.git.freshBase(pull.base || prBase).then((b) => deps.git.changeSummary(b, entry.sha)).catch(() => null);
785
- return save(deps, {
852
+ const saved = await save(deps, {
786
853
  ...entry,
787
854
  ...(changes === null ? {} : { changes }),
788
855
  ...(inheritsHold ? { mode: 'pr', noAutoMerge: true } : {}),
@@ -793,6 +860,22 @@ async function deliverOnce(deps, input) {
793
860
  note: modeNote === null ? note : note === null ? modeNote : `${note}; ${modeNote}`.slice(0, 600),
794
861
  ...(absorbs.length > 0 ? { absorbs } : {}),
795
862
  });
863
+ /**
864
+ * 🔴 THE RED ONE IS CLOSED ONLY AFTER THE SERVER ACCEPTED ITS REPLACEMENT (review, 2026-11-17). Closed as the fix-up
865
+ * opened, a fix-up the server then answered `unwanted` (its goal given up meanwhile) was closed as a stray right
866
+ * after — and neither pull request was open: the dependency's work went down with it. So the save above reports the
867
+ * fix-up first; only when nobody refused it is the red one closed, pointing at it.
868
+ */
869
+ if (toReplace !== null) {
870
+ if (deps.unwanted?.(input.goalId) === true) {
871
+ deps.log(`deliver : ${input.goalId}: ${pull.url} is not wanted, so ${toReplace.pullRequestUrl} is left open (not replaced)`);
872
+ }
873
+ else {
874
+ await api.closePull(toReplace.pullNumber, `Replaced by ${pull.url}, which contains this work and its fix.`).catch(() => undefined);
875
+ await save(deps, { ...toReplace, done: true, note: `replaced by ${pull.url}`, updatedAt: at });
876
+ }
877
+ }
878
+ return saved;
796
879
  }
797
880
  /**
798
881
  * Decide — and, when it is the answer, do — the rebuild of a branch that carries other goals'
@@ -1174,6 +1257,13 @@ async function advanceDeliveries(deps) {
1174
1257
  catch (err) {
1175
1258
  deps.log(`deliver : superseded pull requests: ${err.message}`);
1176
1259
  }
1260
+ // Before the pass below, so a conflicted pull request whose replacement is open is never rebuilt again.
1261
+ try {
1262
+ await closeReplaced(deps);
1263
+ }
1264
+ catch (err) {
1265
+ deps.log(`deliver : replaced pull requests: ${err.message}`);
1266
+ }
1177
1267
  for (const e of deps.store.all()) {
1178
1268
  if (!ADVANCING.includes(e.state))
1179
1269
  continue;
@@ -1197,8 +1287,8 @@ async function advanceOne(deps, e) {
1197
1287
  // 🔴 SHIP TO TEST'S SAFETY, asked again on every pass: settings that changed since the delivery count.
1198
1288
  const safe = effectiveMode(asked, { deploy: deps.deploy(), environments: deps.environments?.() ?? [] });
1199
1289
  const mode = safe.mode;
1200
- // A person's approval, read from the goal mirror.
1201
- if (!e.approvedAt && APPROVABLE.includes(e.state) && e.pullNumber !== null) {
1290
+ // A person's approval, read from the goal mirror. A replaced one is final: its replacement is what ships.
1291
+ if (!e.approvedAt && !e.replacedBy && APPROVABLE.includes(e.state) && e.pullNumber !== null) {
1202
1292
  const approved = deps.shipRequested(e.goalId);
1203
1293
  if (approved !== null && approved !== e.voidedApproval) {
1204
1294
  // 🔴 A BLOCKED ONE STAYS BLOCKED: the approval is kept, and acted on once it unblocks.
@@ -1241,7 +1331,16 @@ async function advanceOne(deps, e) {
1241
1331
  await followDeploys(deps, api, e, wantsDeploy, mode);
1242
1332
  }
1243
1333
  else if (pull.state === 'closed') {
1244
- await save(deps, { ...e, done: true, note: 'the pull request was closed without merging; Looply leaves it', updatedAt: at });
1334
+ await save(deps, { ...e, done: true, note: e.replacedBy ? e.note : 'the pull request was closed without merging; Looply leaves it', updatedAt: at });
1335
+ }
1336
+ else if (e.replacedBy) {
1337
+ /**
1338
+ * 🔴 REPLACED: NEVER REBUILT, RE-JUDGED OR MERGED AGAIN (RBB-T-14, 2026-11-16). Its replacement makes the same
1339
+ * change on the current base; rebuilding this one too whenever the base moved was wasted work, noise on the
1340
+ * ticket, and — had a rebuild ever worked — a second pull request with the same change. Only a person's own
1341
+ * merge or close of it (above) is still recorded.
1342
+ */
1343
+ return;
1245
1344
  }
1246
1345
  else if (
1247
1346
  /**
@@ -1359,6 +1458,12 @@ async function advanceOne(deps, e) {
1359
1458
  await save(deps, { ...e, mode, state: 'waiting-checks', conflict: null, waitingSince: at, note: `it no longer conflicts with ${base}; merging once the checks allow`, updatedAt: at });
1360
1459
  return;
1361
1460
  }
1461
+ else if (e.state === 'pr-open' && e.conflict && pull.conflicted === false && !wantsMerge && pull.state === 'open') {
1462
+ // The same, after the project went back to "pr": it is a person's to merge, and the report no longer says it conflicts.
1463
+ const base = e.projectBase ?? pull.base;
1464
+ await save(deps, { ...e, mode, conflict: null, note: `it no longer conflicts with ${base}; a person merges`, updatedAt: at });
1465
+ return;
1466
+ }
1362
1467
  else if (
1363
1468
  /**
1364
1469
  * PARKED ONLY FOR WANT OF CI, AND THAT NO LONGER HOLDS: under ship to test, a pull request
@@ -1710,7 +1815,7 @@ async function rebuildOnBase(deps, api, e, pull, at, mode) {
1710
1815
  const note = `not merged: it conflicts with ${base}, and Looply could not rebuild it on the current ${base} (${because}); a person resolves the conflict`.slice(0, 600);
1711
1816
  if (e.state !== 'pr-open' || e.note !== note)
1712
1817
  deps.log(`deliver : ${e.goalId}: ${note}`);
1713
- await save(deps, { ...e, mode, state: 'pr-open', conflict: { head, baseSha: pull.baseSha ?? '', because: because.slice(0, 300), at }, note, updatedAt: at });
1818
+ await save(deps, { ...e, mode, state: 'pr-open', conflict: { head, baseSha: pull.baseSha ?? '', because: because.slice(0, 300), at, base }, note, updatedAt: at });
1714
1819
  };
1715
1820
  if (pull.draft === true)
1716
1821
  return held('it is a draft, so a person is still working on it');
@@ -2044,6 +2149,134 @@ async function supersede(deps, old, newer) {
2044
2149
  }
2045
2150
  return true;
2046
2151
  }
2152
+ /* ───────────────────────────── a fix-up that makes the change again ── */
2153
+ /** `url` named as itself in `text`: not as the start of a longer one (`/pull/1` is not `/pull/19`). */
2154
+ function mentions(text, needle) {
2155
+ return new RegExp(`(?<![\\w/.-])${escapeRe(needle)}(?![\\w/#-])`).test(text);
2156
+ }
2157
+ /** "replaces <url>", the way AutoRyn's fix-up ends ("This replaces https://github.com/o/r/pull/19."). */
2158
+ function saysReplaces(text, url) {
2159
+ return new RegExp(`\\breplaces\\s+${escapeRe(url)}(?![\\w/#-])`, 'i').test(text);
2160
+ }
2161
+ const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2162
+ /**
2163
+ * States in which a delivery has its own pull request that can take the old one's place, on Looply's last read: open
2164
+ * and not failing, or merged. 🔴 NOT `checks-failed` or `blocked` (review of 0.5.53): closing the old one for a
2165
+ * replacement that cannot merge either would leave the ticket with nothing but a red pull request. It is closed on a
2166
+ * later pass, once the replacement's checks pass.
2167
+ */
2168
+ const WITH_PULL = ['pr-open', 'waiting-checks', 'merged', 'deployed', 'deploy-failed'];
2169
+ /** AutoRyn's fix-up for a conflict, in its own words (followThrough: "… make the same change again — the commits on <branch> show what it was …"). */
2170
+ const MAKES_IT_AGAIN = /\bmake the same change again\b|\bbring this change up to date\b/i;
2171
+ /**
2172
+ * 🔴 WHICH DELIVERY REPLACES THIS ONE — the newest that does, or null. Pure (RBB-T-14, 2026-11-16).
2173
+ *
2174
+ * A pull request that conflicts with its base, and that Looply could not bring up to date by itself, goes back to
2175
+ * Looply as a NEW goal on the same ticket: AutoRyn's fix-up, cut from the current base with no `dependsOn`, whose
2176
+ * words end "… This replaces <the old pull request's address>." Its pull request does not contain the old head and
2177
+ * asks for different words, so neither rule in `closeSuperseded` fires, and `replacing` in `deliverOnce` takes only a
2178
+ * `checks-failed` predecessor. A newer delivery replaces `old` when it has its own pull request in the same
2179
+ * repository, not built on `old`'s branch, and either
2180
+ * - its goal says "replaces <old's address>" (what AutoRyn's fix-up says), or
2181
+ * - it is a later attempt at the same ticket (`clientRef`), `old` is held on a conflict, and its goal names old's
2182
+ * address or branch — the same lineage without the last sentence (AutoRyn caps a goal's words at 2000
2183
+ * characters, and that sentence comes last).
2184
+ * `old` must be Looply's own run branch's pull request, still open to Looply, and not already replaced.
2185
+ */
2186
+ function replacementOf(old, all, refOf = (e) => e.clientRef ?? null) {
2187
+ const url = old.pullRequestUrl;
2188
+ if (url === null || old.pullNumber === null || old.owner === null || old.repo === null)
2189
+ return null;
2190
+ if (old.done === true || old.replacedBy || !OPEN_STATES.includes(old.state) || !old.branch.startsWith(integrator_1.RUN_BRANCH_PREFIX))
2191
+ return null;
2192
+ // 🔴 ONLY A PULL REQUEST THAT CANNOT GO IN AS IT IS (review of 0.5.53): held on a conflict, or failing its checks.
2193
+ // A healthy one is never closed because a later goal's words name it — whatever they say.
2194
+ if (!old.conflict && old.state !== 'checks-failed')
2195
+ return null;
2196
+ const mine = ticketAttemptOfMember(refOf(old));
2197
+ const oldBranches = [old.branch, old.rebuiltFrom?.branch].filter((b) => typeof b === 'string');
2198
+ const found = all.filter((n) => {
2199
+ if (n.goalId === old.goalId || n.owner !== old.owner || n.repo !== old.repo)
2200
+ return false;
2201
+ if (n.pullNumber === null || n.pullNumber === old.pullNumber || n.pullRequestUrl === null || n.pullRequestUrl === url)
2202
+ return false;
2203
+ if (!WITH_PULL.includes(n.state) || (n.done === true && !MERGED.includes(n.state)) || n.replacedBy)
2204
+ return false;
2205
+ if ((n.base !== null && oldBranches.includes(n.base)) || (n.dependsOn !== null && oldBranches.includes(n.dependsOn)))
2206
+ return false;
2207
+ if (saysReplaces(n.goalText, url))
2208
+ return true;
2209
+ const theirs = ticketAttemptOfMember(refOf(n));
2210
+ return (!!old.conflict &&
2211
+ mine !== null &&
2212
+ theirs !== null &&
2213
+ theirs.ticket === mine.ticket &&
2214
+ theirs.attempt > mine.attempt &&
2215
+ // 🔴 NOT A MERE MENTION (review of 0.5.53): a QA send-back that quotes the old address ("on top of #19, also
2216
+ // fix the label") does not contain the old change. The later attempt must be told to MAKE THE CHANGE AGAIN.
2217
+ MAKES_IT_AGAIN.test(n.goalText) &&
2218
+ (mentions(n.goalText, url) || mentions(n.goalText, old.branch)));
2219
+ });
2220
+ return [...found].sort((a, b) => Date.parse(b.openedAt) - Date.parse(a.openedAt))[0] ?? null;
2221
+ }
2222
+ /**
2223
+ * 🔴 THE OLD PULL REQUEST IS CLOSED ONCE ITS REPLACEMENT IS OPEN (RBB-T-14, ButtKick3r/RobinBet#19, 2026-11-16: the
2224
+ * conflicted pull request would have stayed open for ever beside the fix-up's).
2225
+ *
2226
+ * Never before: GitHub, read now, must say the replacement is merged, or open and not a draft — never close the old
2227
+ * one while nothing replaces it. Never when the old one is merged or closed already (the normal pass records that).
2228
+ * Closed with one comment that names the replacement; its branch is left where it is. Kept open — final all the
2229
+ * same, never rebuilt again, saying why on the ticket once — when closing it could lose somebody's work: a draft,
2230
+ * a head somebody else pushed, or pull requests built on its branch.
2231
+ */
2232
+ async function closeReplaced(deps) {
2233
+ const all = deps.store.all();
2234
+ const refOf = (e) => e.clientRef ?? deps.clientRefOf?.(e.goalId) ?? null;
2235
+ for (const old of all) {
2236
+ const newer = replacementOf(old, all, refOf);
2237
+ if (newer === null)
2238
+ continue;
2239
+ try {
2240
+ await replaceWith(deps, deps.store.get(old.goalId) ?? old, newer);
2241
+ }
2242
+ catch (err) {
2243
+ deps.log(`deliver : ${old.goalId}: could not close it as replaced by ${newer.pullRequestUrl} (${err.message}); tried again next pass`);
2244
+ }
2245
+ }
2246
+ }
2247
+ async function replaceWith(deps, old, newer) {
2248
+ const client = await deps.github(old.owner, old.repo);
2249
+ if (client.api === null)
2250
+ return; // no credentials right now: next pass
2251
+ const api = client.api;
2252
+ const theirs = await api.getPull(newer.pullNumber);
2253
+ if (!theirs.merged && (theirs.state !== 'open' || theirs.draft === true))
2254
+ return; // nothing replaces it yet
2255
+ const pull = await api.getPull(old.pullNumber);
2256
+ if (pull.merged || pull.state !== 'open')
2257
+ return; // the normal pass records what happened to it
2258
+ const at = new Date(deps.now()).toISOString();
2259
+ const base = old.conflict?.base ?? old.projectBase ?? pull.base;
2260
+ const url = newer.pullRequestUrl;
2261
+ const replacedBy = { goalId: newer.goalId, url, at };
2262
+ const built = dependents(deps.store, old);
2263
+ const keep = pull.draft === true
2264
+ ? 'it is a draft, so a person is working on it'
2265
+ : pull.headSha !== '' && pull.headSha !== old.sha
2266
+ ? 'somebody pushed to it since Looply opened it'
2267
+ : built.length > 0
2268
+ ? `${built.map((d) => d.pullRequestUrl ?? `#${d.pullNumber}`).join(', ')} ${built.length === 1 ? 'builds' : 'build'} on its branch`
2269
+ : null;
2270
+ if (keep !== null) {
2271
+ const note = `replaced by ${url}, which makes this change again on the current ${base}; Looply does not rebuild it again, and leaves it open because ${keep}; a person closes it`;
2272
+ deps.log(`deliver : ${old.goalId}: ${note}`);
2273
+ await save(deps, { ...old, state: 'pr-open', replacedBy, note, updatedAt: at });
2274
+ return;
2275
+ }
2276
+ await api.closePull(old.pullNumber, `Replaced by #${newer.pullNumber}, which rebuilds this change on the current ${base}.`);
2277
+ deps.log(`deliver : ${old.goalId}: closed ${old.pullRequestUrl}, replaced by ${url}, which rebuilds it on the current ${base}`);
2278
+ await save(deps, { ...old, state: 'pr-open', done: true, replacedBy, note: `replaced by ${url}, which makes this change again on the current ${base}; closed`, updatedAt: at });
2279
+ }
2047
2280
  /* ────────────────────────────────────────── where the merge got to ── */
2048
2281
  /** How long a merged commit's deploys are followed for, so one done outside Looply is still seen. */
2049
2282
  exports.FOLLOW_DEPLOYS_MS = 14 * 24 * 60 * 60_000;