pi-spine 2.11.0 → 2.12.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-spine",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Orchestration spine for long-running pi development",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -117,6 +117,8 @@ git push origin <baseBranch> # when remote sync desired
117
117
 
118
118
  Increment `WAVE` and repeat until `spine plan pending` shows no remaining waves.
119
119
 
120
+ > **Wait recipe note:** With SP-683, gate-pending land loops report the taxonomy diagnosis `needs_integrate`, so the default `--until` list above wakes on that diagnosis. The operator runbook documents optional land-loop pseudo-diagnoses (`gate_open`, `needs_approval`, `post_merge_limbo`) as belt-and-suspenders waits when you need finer-grained blocking inside the land loop itself.
121
+
120
122
  **Optional script template:** `spine run sequence pending --attached --dry-run` — execute each printed block with judgment; do **not** chain `--auto-approve-gate` with real pi workers.
121
123
 
122
124
  Full reference: [references/outer-loop.md](references/outer-loop.md).
@@ -294,6 +294,8 @@ spine wait --until completed,failed,needs_integrate,needs_retry,aborted --timeou
294
294
 
295
295
  Optional pi watchdog: `LoopCreate` every 2m, `readOnly: true`, `maxFires: 50` — see pi-async-orchestration.
296
296
 
297
+ > **Wait recipe note:** With SP-683, gate-pending land loops report the taxonomy diagnosis `needs_integrate`, so the default `--until` lists above wake on that diagnosis. The operator runbook documents optional land-loop pseudo-diagnoses (`gate_open`, `needs_approval`, `post_merge_limbo`) as belt-and-suspenders waits when you need finer-grained blocking inside the land loop itself.
298
+
297
299
  **Do not** start wave N+1 until wave N is integrated on `main`.
298
300
 
299
301
  Wave sizing: prefer ≤4 M-sized tasks per wave; serialize hot shared files.
@@ -232,10 +232,10 @@ export function buildSuggestedCommand(diagnosis, ctx = {}) {
232
232
  case "needs_merge":
233
233
  return "spine batch resume --force";
234
234
  case "needs_integrate":
235
+ if (ctx.integrateGateOpen) {
236
+ return "spine gate approve";
237
+ }
235
238
  if (ctx.postMergeLimbo && ctx.phase === "running") {
236
- if (ctx.integrateGateOpen) {
237
- return "spine gate approve";
238
- }
239
239
  if (ctx.stalePathSpine) {
240
240
  return "node bin/spine.mjs batch resume --attached";
241
241
  }
@@ -433,6 +433,21 @@ export function deriveDiagnosis(signals) {
433
433
  return withFailureContext("paused", null, signals);
434
434
  }
435
435
 
436
+ // Terminal-success land loop waiting for an integrate gate while the engine phase
437
+ // is still "running". Mark post-merge limbo so downstream suggestedCommand and
438
+ // macro-phase treat this as gate-ready rather than falling through to "running" (#221).
439
+ if (
440
+ RUNNING_PHASES.has(phase) &&
441
+ allTasksTerminalSuccess &&
442
+ git.orchBranchExists &&
443
+ !git.orchMergedToBase &&
444
+ !hasRunningTasks &&
445
+ !hasPendingTasks
446
+ ) {
447
+ signals.postMergeLimbo = true;
448
+ return withFailureContext("needs_integrate", null, signals);
449
+ }
450
+
436
451
  if (RUNNING_PHASES.has(phase) || hasRunningTasks || hasPendingTasks) {
437
452
  return withFailureContext("running", null, signals);
438
453
  }