pi-spine 2.12.1 → 2.12.2

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.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Orchestration spine for long-running pi development",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -53,6 +53,9 @@ Invoke explicitly: `/skill:spine-release-operator` or "run a spine release cycle
53
53
  - **Never** use `| tail` or `| head` alone to judge `release:check` pass/fail — verify exit code (`$?` or `${PIPESTATUS[0]}`)
54
54
  - **Never** `git push origin main` during a release until post-integrate `release:check` exits 0 on current `HEAD`
55
55
  - **Do not** execute tasks outside the approved manifest scope
56
+ - **Never** start Phase 4 (execute) without **recorded scope approval** — the release manifest must show `Operator approved scope: yes` from the Phase 2 gate. Refuse the first wave when approval is missing or `no` (F1, [#249](https://github.com/beettlle/pi-spine/issues/249))
57
+ - **Never** mid-release-edit `.spine/spine-config.json` agent pins (`agents.worker.model` / `agents.reviewer.model`) while a batch is running or integrated work is still unpublished. Pin **one worker** per release; escalate models **only** on content/contract failure — never on quota/403 or launch storms, which make releases worse (F7, [#248](https://github.com/beettlle/pi-spine/issues/248)). To override mid-release, first record the reason and date in the release manifest
58
+ - **Always** push/sync `main` to `origin` after each land loop once the post-integrate regression gate is green — do not let `main` drift far ahead of `origin` during a release (F8, [#249](https://github.com/beettlle/pi-spine/issues/249))
56
59
  - **Do not** start a second batch while another batch is **running** on this repo
57
60
  - **Never** background `spine batch resume --attached` or `resume --attached --force` ([#163](https://github.com/beettlle/pi-spine/issues/163))
58
61
  - **Release and agent batches:** use **detached** `spine batch start|resume` (omit `--attached`); monitor with MonitorCreate, `spine wait`, or `spine status --diagnose` ([#163](https://github.com/beettlle/pi-spine/issues/163), [#185](https://github.com/beettlle/pi-spine/issues/185)) — see [agent-shell-batch-policy.md](../spine-autonomous-operator/references/agent-shell-batch-policy.md)
@@ -245,6 +248,12 @@ git commit -m "chore(spine): release v{TARGET} task packets"
245
248
 
246
249
  ## Phase 4 — Execute release scope
247
250
 
251
+ ### Scope-approval gate (HARD STOP — blocking)
252
+
253
+ Before the first wave, confirm the release manifest records **`Operator approved scope: yes`** (Phase 2 gate). **HARD STOP:** do not start any wave when approval is missing or `no`. This closes F1 from the [v2.12.1 post-mortem](../../docs/release/post-mortem-v2.12.1.md) ([#249](https://github.com/beettlle/pi-spine/issues/249)).
254
+
255
+ **Model pin:** one worker pin for the release — do not mid-release-edit `.spine/spine-config.json` agent pins. Escalate models only on content/contract failure, never quota/403 or launch storms (F7, [#248](https://github.com/beettlle/pi-spine/issues/248)). A doctor/preflight quota-risk escalate signal is intentionally **out of scope** for this release — deferred to a later release ([#248](https://github.com/beettlle/pi-spine/issues/248) optional AC).
256
+
248
257
  **Detached-first:** See [agent-shell-batch-policy.md](../spine-autonomous-operator/references/agent-shell-batch-policy.md). Omit `--attached` for release waves unless the operator shell is a persistent interactive terminal that blocks until batch completion.
249
258
 
250
259
  **Scope:** manifest tasks only — build a comma-separated release scope ID list.
@@ -329,6 +338,16 @@ Full reference: [post-integrate-regression-gate.md](references/post-integrate-re
329
338
 
330
339
  **Do not** judge pass/fail from `tail` output — `tail` exits 0 even when `release:check` failed.
331
340
 
341
+ ### 4.3b Push/sync `main` to `origin` (F8)
342
+
343
+ When **remote publish** is the goal, push `main` after each land loop once §4.3a is green:
344
+
345
+ ```bash
346
+ git push origin main
347
+ ```
348
+
349
+ Do not let `main` drift far ahead of `origin` between waves — v2.12.1 ran **24 commits ahead** of `origin` at Phase 5 (F8, [#249](https://github.com/beettlle/pi-spine/issues/249)). Local-only releases may defer this push; record the deferral in the manifest publish checklist.
350
+
332
351
  ### 4.4 Recovery
333
352
 
334
353
  Always: `spine status --diagnose`
@@ -439,7 +458,13 @@ gh run list --workflow release.yml --limit 3
439
458
 
440
459
  **pi async:** `MonitorCreate` with `gh run watch --exit-status <run-id>`, `timeout: 1800000`, `onDone` to report conclusion and run smoke tests if green.
441
460
 
442
- Post-publish smoke per `docs/release/npm-publish.md`:
461
+ Post-publish smoke per `docs/release/npm-publish.md` — **retry on registry lag (F9, [#247](https://github.com/beettlle/pi-spine/issues/247)):** the first `npm install -g` right after a successful `release.yml` run can fail with `ETARGET` / "No matching version found" while the registry propagates, even when `npm view` already lists the version. Prefer the bounded wrapper:
462
+
463
+ ```bash
464
+ scripts/post-publish-smoke.sh <version>
465
+ ```
466
+
467
+ Manual equivalent (bounded retries on `ETARGET`/404-class errors only — 5s/10s/20s backoff capped at 60s, max 6 attempts; non-lag install errors fail immediately and exhausted retries fail closed, never masked as lag):
443
468
 
444
469
  ```bash
445
470
  npm install -g pi-spine@<version>
@@ -447,6 +472,8 @@ spine version
447
472
  spine doctor
448
473
  ```
449
474
 
475
+ If retries exhaust, **STOP** — treat it as a real missing-version failure and investigate the publish; do not keep waiting silently.
476
+
450
477
  Update `spine-tasks/CONTEXT.md` release note (version + date).
451
478
 
452
479
  Close GitHub issues where tasks had `Closes: #NNN` and work shipped.
@@ -486,6 +513,7 @@ spine status --diagnose (do not collide with running batch) →
486
513
  preflight → for each wave: MonitorCreate batch start (or foreground) → onDone diagnose →
487
514
  gate approve → integrate → npm install → batch complete →
488
515
  post-integrate release:check (exit 0 required; no tail-only verification) →
516
+ git push origin main when remote publish is the goal (F8) →
489
517
  MonitorCreate release:check → HARD STOP if non-zero (fix on main, re-run) → only if exit 0: verify ci.yml green on HEAD (gh run list/watch) → HARD STOP if not green → only then: STOP for publish approval.
490
518
  resume --attached --force stays foreground. Post final report with composition table.
491
519
  ```
@@ -6,6 +6,8 @@
6
6
  **Bump type:** patch | minor | major
7
7
  **Profile:** patch | minor | major
8
8
  **Operator approved scope:** no | yes ({date})
9
+ **Worker model pin:** {provider/id, set once} — do not change mid-release ([#248](https://github.com/beettlle/pi-spine/issues/248))
10
+ **Agent pin override:** none | yes ({date}, {reason}) — record before any mid-release pin change
9
11
 
10
12
  ---
11
13
 
@@ -62,10 +64,12 @@ Do **not** use `| tail` alone for pass/fail — verify exit code.
62
64
 
63
65
  **Operator gates** (human only — sequence does not auto-approve without explicit flags):
64
66
 
65
- 1. Approve this manifest (operator sign-off on scope)
67
+ 1. **Approve this manifest** (operator sign-off on scope) — set `Operator approved scope: yes` above. **Phase 4 HARD STOP** without it (F1, [#249](https://github.com/beettlle/pi-spine/issues/249))
66
68
  2. `spine gate approve` per integrate wave
67
69
  3. Publish approval before `npm version <bump>`
68
70
 
71
+ **Model pin policy ([#248](https://github.com/beettlle/pi-spine/issues/248)):** one worker pin for the release. Do not mid-release-edit `.spine/spine-config.json` agent pins; escalate models only on content/contract failure, never quota/403 or launch storms. Any in-release override must be recorded in `Agent pin override` above **before** applying. See [post-mortem F7](../../../docs/release/post-mortem-v2.12.1.md).
72
+
69
73
  **Proof gate:** optional pre-publish dry-run (e.g. patch scope with operator touching only gate approve + publish approval; no `npm publish` during proof).
70
74
 
71
75
  Filled example: [`docs/release/manifest-v1.10.0-example.md`](../../../docs/release/manifest-v1.10.0-example.md)