@rbbtsn0w/adg 0.11.1-beta.1 → 0.11.1-dev.pr200.c6ce45e

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 (56) hide show
  1. package/README.md +131 -73
  2. package/dist/src/agents/antigravity.js +218 -45
  3. package/dist/src/agents/claude.js +98 -38
  4. package/dist/src/agents/codex.js +1 -0
  5. package/dist/src/cli/core-plugin-handlers.js +3 -3
  6. package/dist/src/cli/handlers.js +171 -39
  7. package/dist/src/cli/index.js +23 -14
  8. package/dist/src/cli/review-update.js +80 -0
  9. package/dist/src/commands/install/default-dsl.js +1 -1
  10. package/dist/src/commands/install/discovery.js +3 -1
  11. package/dist/src/commands/install/install-one.js +41 -31
  12. package/dist/src/commands/install.js +59 -24
  13. package/dist/src/commands/marketplace.js +171 -115
  14. package/dist/src/commands/migrate.js +2 -2
  15. package/dist/src/commands/projection.js +3 -1
  16. package/dist/src/commands/remove.js +10 -0
  17. package/dist/src/commands/review-executables.js +106 -0
  18. package/dist/src/commands/select-agents.js +2 -2
  19. package/dist/src/commands/select-components.js +2 -2
  20. package/dist/src/commands/select-plugins.js +15 -2
  21. package/dist/src/commands/select-scope.js +3 -4
  22. package/dist/src/commands/source-upgrade.js +552 -0
  23. package/dist/src/commands/state.js +3 -1
  24. package/dist/src/commands/update.js +3 -1
  25. package/dist/src/lock.js +13 -5
  26. package/dist/src/migration-transaction.js +1011 -0
  27. package/dist/src/native-retry.js +329 -0
  28. package/dist/src/process-identity.js +88 -0
  29. package/dist/src/render/plugins.js +149 -27
  30. package/dist/src/render/ui.js +4 -4
  31. package/dist/src/source-history.js +194 -0
  32. package/dist/src/source-intent.js +7 -0
  33. package/dist/src/store-mutex.js +179 -0
  34. package/dist/src/types.js +1 -1
  35. package/dist/src/update-executables.js +193 -0
  36. package/dist/src/upgrade-plan.js +378 -0
  37. package/docs/agents/antigravity.md +5 -0
  38. package/docs/agents-spec.md +10 -0
  39. package/docs/branching-and-release.md +369 -55
  40. package/docs/marketing/README.md +211 -0
  41. package/docs/marketing/assets.json +228 -0
  42. package/docs/marketing/capture.json +130 -0
  43. package/docs/marketing/live-readiness.json +353 -0
  44. package/docs/marketing/posts.en.md +94 -0
  45. package/docs/marketing/posts.zh-CN.md +67 -0
  46. package/docs/marketing/production.md +210 -0
  47. package/docs/marketing/source/timeline.json +29 -0
  48. package/docs/marketing/source/workflow-01.svg +16 -0
  49. package/docs/marketing/source/workflow-02.svg +14 -0
  50. package/docs/marketing/source/workflow-03.svg +19 -0
  51. package/docs/marketing/source/workflow-poster.svg +32 -0
  52. package/docs/marketing/transcript.md +48 -0
  53. package/docs/plugin-update-semantics.md +53 -10
  54. package/docs/plugin-upgrade-migrations.md +349 -0
  55. package/package.json +14 -10
  56. package/schemas/plugin-lock.schema.json +78 -1
@@ -1,76 +1,390 @@
1
1
  # Branching and release
2
2
 
3
- ADG uses `develop` as the integration branch and `main` as the stable release
4
- branch. Feature and fix pull requests always target `develop`; the only pull
5
- request allowed to target `main` is the release promotion from `develop`.
3
+ `main` is the only integration trunk. Use reviewed, short-lived squash PRs to
4
+ `main`, with strict Conventional Commit title/body checks and breaking declarations.
5
+ The release history guard shares the canonical parser but checks semantics rather
6
+ than PR style. Real merge metadata and the first initialization snapshot are handled
7
+ from commit ancestry; malformed ordinary commits and fake merges still fail. No
8
+ commit SHA exemptions are permitted.
6
9
 
7
- ## Contribution flow
10
+ ## PR dev previews
8
11
 
9
- 1. Branch from the latest `develop`.
10
- 2. Open a pull request back to `develop`.
11
- 3. Pass the repository checks and review.
12
- 4. Merge through branch protection; never push directly to `develop` or `main`.
12
+ After the CI test matrix passes for a PR targeting `main`, the **PR dev
13
+ preview** job adds a panel to the CI run summary. For same-repository PRs, the
14
+ **Announce PR dev preview** job also posts or updates the panel in the PR's
15
+ Conversation after checking that the preview matches the current head. Fork PRs
16
+ can use the panel from the PR's checks.
13
17
 
14
- Merges to `develop` are published by semantic-release under the `beta` npm
15
- dist-tag (prereleases as `x.y.z-beta.N`).
18
+ The panel links the zip download and shows its version and PR head commit.
19
+ After extraction, run it with `npm exec` or install it with `npm install -g`.
20
+ The expandable GitHub CLI section includes the exact head SHA and archive
21
+ checksum. Builds use
22
+ `<base>-dev.pr<number>.<7-character-sha>`. A seven-character prefix consisting
23
+ of digits and starting with zero gets a leading `g` so the version remains
24
+ valid SemVer. Match the full SHA against the PR's current head before testing.
25
+ Artifacts expire after 14 days. A CI rerun creates a new artifact for that run
26
+ attempt.
16
27
 
17
- ## Automated Weekly Stable Release
28
+ To publish an open same-repository PR's verified archive to npm and GitHub
29
+ Packages under the `next` dist-tag, manually run **Publish PR dev preview** on
30
+ `main` with the successful CI run ID and `RELEASE_ENABLED=true`. The workflow
31
+ checks that the run and artifact belong to the PR's current head. PR CI builds
32
+ and verifies the artifact independently of this switch. The bot lists each
33
+ registry that confirms the archive's integrity. When npm confirms the version,
34
+ the Conversation panel includes
35
+ `npx @rbbtsn0w/adg@<version>`,
36
+ `adg update --tag <version>`, and `npm install -g @rbbtsn0w/adg@<version>`.
37
+ Use `adg update --dev` to follow the moving `next` tag and an exact version to
38
+ test a particular PR revision. A GitHub Packages-only preview instead includes
39
+ authenticated mirror commands.
18
40
 
19
- Every Friday at 15:00 Beijing time (UTC+8 / 07:00 UTC), a scheduled automation workflow
20
- (`.github/workflows/scheduled-release-pr.yml`):
41
+ On npmjs.com, add `pr-preview-publish.yml` as a GitHub Actions trusted publisher
42
+ for `RbBtSn0w/adg` and allow direct `npm publish`. Keep the existing
43
+ `release.yml` publisher for stable releases. The GitHub Packages mirror uses
44
+ the workflow's `GITHUB_TOKEN` and needs write access to the package. After the
45
+ preview workflow lands on `main), use a successful CI run for an open
46
+ same-repository PR to verify both publishers through a manual dispatch.
47
+ The Actions artifact and its verification commands remain available while the
48
+ registry build is pending or if npm rejects publication.
21
49
 
22
- 1. Checks if `develop` has new commits ahead of `main`.
23
- 2. Automatically opens a `develop -> main` release promotion PR.
24
- 3. Enables native GitHub `auto-merge`.
25
- 4. Once all CI checks (test matrix, audits, smoke tests) pass and there are no conflicts or blockers, GitHub automatically merges the PR into `main`.
26
- 5. Merging to `main` triggers `semantic-release` to cut a stable release (`latest` dist-tag).
50
+ ## Automated Friday/manual publication
27
51
 
28
- ## PR Dev Preview Releases
52
+ The existing `.github/workflows/release.yml` runs Friday 07:00 UTC (15:00 UTC+8),
53
+ or manually on `main` with `operation=release` (the default). No release PR or
54
+ recurring approval is required. Stable publication runs from this workflow.
55
+ Read-only analysis and
56
+ verification run independently of `RELEASE_ENABLED`; every publication path still
57
+ requires that variable to equal `true`. This implementation does not enable it.
29
58
 
30
- Each pull request targeting `develop` triggers automated dev preview packaging:
59
+ Locked tooling installs without lifecycle scripts. `release-analysis.mjs` runs the
60
+ real semantic-release engine in a credential-scrubbed local mirror, with only
61
+ semantic/history and notes plugins. No npm/GitHub service plugin runs there.
62
+ A no-release result skips product builds and packaging. A release candidate runs
63
+ product checks, builds once, packs once without lifecycle scripts, and validates
64
+ the installed archive with publint and the package smoke test. Artifacts carry
65
+ the exact candidate SHA and checksum by immutable same-run artifact ID.
31
66
 
32
- - Published under the `next` dist-tag on npm and GitHub Packages.
33
- - Formatted as `<BASE>-dev.pr<PR_NUM>.<SHORT_SHA>`.
34
- - The CI bot posts verification instructions directly on the PR with `npx`, `adg update --tag <version>`, or `adg update --dev`.
67
+ Publication restores those bytes, checks live main immediately before the engine,
68
+ and checks it again in the last prepare hook before tag creation. An unreadable,
69
+ empty or changed ref fails closed. The payload hook may change only the package
70
+ manifest version, then archives existing files directly. Before any package mutation,
71
+ the hook must read the verified analysis once and match its exact candidate SHA,
72
+ version, tag and complete notes to the current engine decision. Missing analysis
73
+ or changed notes, including a UTC-date rollover, requires fresh analysis and
74
+ verification before publication. npmjs and GitHub Packages receive identical
75
+ final bytes, with SHA512 integrity reconciliation and per-target receipts. GitHub
76
+ attaches the archive and metadata. No version/changelog commit is written to main.
35
77
 
36
- ## Back-merge after a stable release
78
+ Before prepare or tag creation, the normal npm publisher checks the package's
79
+ publication history. A known previously used version is rejected even if its
80
+ version endpoint now returns E404; withdrawn npm version numbers cannot be reused.
81
+ Unreadable or ambiguous history fails closed. Preserve an already created failed
82
+ tag and its original receipts; semantic-release selects the next version from
83
+ that history. Recovery keeps its separate original-version contract.
37
84
 
38
- The release commit created on `main` must be merged back into `develop` so both
39
- branches share the same release ancestry. The `Sync main to develop` workflow opens
40
- a `main -> develop` pull request after successful main CI:
85
+ Before normal publication of a missing version, each registry receives a read-only
86
+ channel check. An already newer `latest` stops that write; read errors and malformed
87
+ channel data fail closed. Older, equal or missing `latest` retains the ordinary
88
+ automatic publication path. Matching existing versions receive read-only checks.
89
+ The original engine version and sealed bytes remain fixed.
41
90
 
42
- - A conflict-free pull request is merged automatically with a merge commit.
43
- - A conflicting pull request receives `manual-sync-needed` and must be resolved
44
- by a maintainer before further promotion work.
45
- - Resolve version and changelog conflicts in favor of the stable `main` release
46
- commit while preserving subsequent integration changes from `develop`.
47
- - If `develop` was missing or deleted on `origin` (e.g. removed by repository-level
48
- `delete_branch_on_merge` after promotion), the workflow automatically recreates
49
- `develop` directly from the newly promoted `main` commit, self-healing the release
50
- train without human intervention.
91
+ This guarantee assumes one authorized normal writer per package. All authorized
92
+ new issuance uses the scheduled/manual `Release` workflow and its `release-main`
93
+ concurrency group. External owner writes are outside that lock and can occur between
94
+ the channel check and publication. The check is not a compare-and-swap and does
95
+ not provide global atomicity against arbitrary external publishers. Friday normal
96
+ publication remains automatic; no coordinator or recurring approval is introduced.
51
97
 
52
- Under normal operations, the workflow never pushes directly to a protected branch;
53
- all updates land via the auto-merged pull request. The sole exception is the emergency
54
- self-healing path above, which directly recreates `refs/heads/develop` via the GitHub API
55
- only when the branch is completely absent from `origin`. An open `manual-sync-needed`
56
- pull request is an operational action item, not a successful sync.
98
+ ADG also updates the Homebrew tap with its existing release App and formula updater.
99
+ The updater compares the npm archive digest to the original final archive, rejects
100
+ a newer tap version and rejects conflicting bytes at the same version.
57
101
 
58
- ## Local release checks
102
+ ## Recovery of partial publication
59
103
 
60
- Run the same checks used by CI before opening a pull request:
104
+ Dispatch the same workflow on current `main` with `operation=recover`, the original
105
+ `source_run_id`, and original sealed `release-receipts-*` artifact's `artifact_id`.
106
+ Both IDs are required in recovery mode. This uses current trusted recovery code;
107
+ it does not run semantic-release, rebuild, retag, overwrite assets, or select a new
108
+ version. Main may have advanced. Always reference the original release artifact,
109
+ even when retrying recovery; a recovery artifact is not a new publication source.
110
+
111
+ Recovery validates GitHub repository/workflow/run/event/main association, immutable
112
+ artifact ID/run/candidate, expiry and ZIP digest, sealed repository/run/candidate,
113
+ package version/name, tag, SHA256 and registry integrity. It peels the existing tag
114
+ and requires the original candidate. Missing or unverifiable evidence fails closed.
115
+ Existing registry versions and GitHub assets must match original bytes. Only missing
116
+ targets are written; existing matching targets are observed. Authentication/network
117
+ errors remain failures, never assumed absence or success. Recovery may publish missing original bytes under its exclusive recovery tag,
118
+ then reads the stable `latest` channel. It never calls `npm dist-tag add` or
119
+ `npm dist-tag rm`. Only a verified same/newer `latest` can complete the registry
120
+ target; older, missing or unverifiable channels remain unconfirmed. Any owned
121
+ recovery tag is retained intentionally, with no recurring cleanup requirement.
122
+ Restored bytes are preserved even when channel delivery cannot be confirmed.
123
+ Participating jobs share `release-main`; external manual writers are
124
+ outside that lock. GitHub draft lookup uses paginated release listings, validates
125
+ the original notes/assets and preserves the latest release designation. Expired artifacts and
126
+ conflicting remote bytes require owner investigation; never reconstruct the payload.
127
+
128
+ `release-result.json` and the Actions summary separate verification from publication
129
+ and list each target, artifacts, failure stage and recovery source. Disabled runs
130
+ still report verification. A successful analysis with no version reports no-release;
131
+ partial publication remains partial until all required targets have receipts.
132
+
133
+ ## Daily SOP
134
+
135
+ 1. Develop on a short-lived branch; retain the breaking footer in the squash body.
136
+ 2. Check normal CI/PR evidence and merge through the normal reviewed PR process.
137
+ 3. Friday publication is automatic after one-time activation; use manual
138
+ `operation=release` for an intentional off-cycle run on main.
139
+ 4. Inspect the Actions summary and `release-result.json`. No-release is normal.
140
+ 5. For partial failure, retain the original run/artifact IDs and dispatch recovery.
141
+ Investigate unknown authorization or digest failures without changing identity.
142
+
143
+ ## One-time external setup and remaining unknowns
144
+
145
+ Source checks do not prove runtime activation. Before enabling publication once,
146
+ verify the npm trusted publisher binds this repository and exactly `release.yml`,
147
+ the supported Node/npm OIDC setup, GitHub package/tag/release permissions, current
148
+ release baseline/history, PR squash metadata preservation and required checks.
149
+ The selected safe recovery policy performs no `npm dist-tag add` or `npm dist-tag rm`,
150
+ so **Allow npm dist-tag** is not an activation prerequisite for this workflow.
151
+ That optional permission is independent of direct publishing and disabled by
152
+ default; existing package settings are not changed. See
153
+ [npm trusted-publishing dist-tag permissions](https://docs.npmjs.com/trusted-publishers/#managing-dist-tags-with-trusted-publishing).
154
+ Normal scheduled publication still publishes a verified new version through the
155
+ existing trusted-publishing identity. Recovery only observes channel delivery and
156
+ cannot promise to repair an older or missing `latest`.
157
+ Verify the existing release App's private key, installation and write access to
158
+ `RbBtSn0w/homebrew-tap`; no fallback credential is introduced.
159
+ Disable old controllers/timers at the authorized cutover; remote develop remains
160
+ inactive and is not deleted here. GitHub Free is supported with ordinary jobs,
161
+ concurrency and the existing token/OIDC identities; no protected environment or
162
+ paid deployment feature is required. These are one-time configuration checks,
163
+ not a weekly approval process.
164
+
165
+ ## Local verification
166
+
167
+ ```bash
168
+ npm ci --no-audit --no-fund --ignore-scripts
169
+ node --test test/release-*.test.mjs
170
+ node .github/release-train/cli.mjs analyze --profile npm
171
+ # Run the repository's product verification suite and archive smoke check.
172
+ actionlint .github/workflows/release.yml
173
+ ```
174
+
175
+ ## Historical local readiness evidence (2026-11-07)
176
+
177
+ The local real-engine analysis selected `0.11.2` from baseline `0.11.1` at
178
+ candidate `27948a62f969be1d893292c72146df499a72b5da`. Typecheck/build, all 677
179
+ product tests, 15 release behavior/contract tests, doc/test-isolation/vendor checks,
180
+ archive publint and installed-package smoke checks passed. Production audit found
181
+ zero vulnerabilities. This is local evidence, not publication activation.
182
+
183
+ Workflow validation (`actionlint`) and whitespace checks passed. Product/release
184
+ tests used installed Node.js 25.8.2; installed-package smoke and available production
185
+ audits used Node.js 22.22.2. The workflow keeps Node.js 24 for release tooling.
186
+ No remote publication, tag creation, workflow dispatch or configuration activation
187
+ was performed. npm/package configuration and lockfiles are unchanged.
188
+
189
+ ## Historical squash compatibility (2026-11-07)
190
+
191
+ Historical standard GitHub PR squash envelopes are ordinary commits: their full
192
+ Conventional Commit body must validate. Thin `release-commit-analyzer.mjs` and
193
+ `release-notes-generator.mjs` adapters use the same message projection and forward
194
+ all existing options to the official plugins. True multi-parent merges retain
195
+ original messages and complete breaking notes. Empty/malformed/nested bodies and
196
+ invalid skip-marker messages still fail. No SHA exemption, baseline fabrication
197
+ or Git history rewrite is used.
198
+
199
+ ## Current Actions operation and runtime ownership (2026-11-08)
200
+
201
+ The workflow is named **Release**. Run titles distinguish scheduled/manual releases
202
+ from recovery of an original run. Read **Release outcome**, the only final Summary,
203
+ for independent analysis, verification, publication enablement and channel evidence.
204
+ An omitted, stale or incomplete receipt means **Not confirmed**. A concluded
205
+ synchronous run never becomes a pending success. The configured intended targets
206
+ must all have candidate/version/digest, timestamp and remote identity evidence.
207
+ Job success and receipt-file existence cannot confirm publication.
208
+
209
+ For a failed publication, copy the populated recovery command from the original
210
+ outcome only when recovery is available. It includes the original sealed artifact
211
+ ID, run and producer attempt, digest and expiry. Missing/expired artifacts or an
212
+ unverified original tag block this command. A later recovery retains the original
213
+ lineage, even after main advances. **Re-run failed jobs** reuses immutable successful
214
+ producer IDs; it does not switch to current main. **New release run** analyzes a
215
+ fresh main candidate. Recovery reconciles original bytes/notes without rebuilding,
216
+ retagging or moving a newer registry `latest` backward.
217
+
218
+ `.github/release-train.json` owns the npm profile and complete channel list.
219
+ `.github/release-train/` is generated shared runtime, not consumer-owned source.
220
+ The manifest records its selected source revision and SHA-256 hashes. Local
221
+ adapters in `scripts/` own package preparation, registry/GitHub readback and final
222
+ observation merging; obsolete common implementation entrypoints have been removed.
223
+ Semantic-release remains the version/notes authority. Keep the same `release.yml`
224
+ OIDC identity and the existing permissions, selected App and default-off switch.
225
+
226
+ Check generated integrity locally without an upstream checkout:
61
227
 
62
228
  ```bash
63
- npm ci
64
- npm run check:vendor-deps
65
- npm run check:vendor-upstream
66
- npm run audit:prod
67
- npm run check:docs
68
- npm run typecheck
69
- npm run build
70
- npm test
71
- npm run check:package-smoke
229
+ node .github/release-train/sync.mjs check --consumer .
230
+ node --test test/release-*.test.mjs
231
+ actionlint .github/workflows/release.yml
72
232
  ```
73
233
 
74
- Release automation is defined in `.github/workflows/ci.yml` and
75
- `.releaserc.json`. Optional Homebrew publication only runs for stable releases
76
- when the release-bot GitHub App is configured.
234
+ To upgrade, select an authorized upstream source checkout/revision and run its
235
+ `engineering-workflows/skills/repo-release-train/scripts/release-train/sync.mjs`
236
+ with `sync --consumer "$CONSUMER" --revision "$SOURCE_REVISION"`. Review the
237
+ manifest and consumer adapter compatibility, then run integrity, release regression,
238
+ product verification and workflow checks. Generated edits/unknown files stop sync;
239
+ resolve ownership rather than overwriting drift. Do not copy private upstream
240
+ fixtures or expand component visibility. Earlier dated readiness/audit sections are
241
+ historical evidence, not current activation or production acceptance.
242
+
243
+ An all-job rerun conservatively stops at analysis: a prior partial publication may
244
+ already have created its baseline tag. Follow the original attempt's outcome and
245
+ recovery command, or create a new manual release run to validate fresh main.
246
+ Failed-only retries that reuse a successful analyzer/verified producer retain its
247
+ artifact IDs; this guard does not re-run or replace that producer.
248
+
249
+ ## Current local verification (2026-11-08)
250
+
251
+ Using Node.js 22.22.2, the controlled generated-runtime integrity check, all
252
+ 28 release regressions and all 677 product tests passed. The new receipt
253
+ regressions were observed RED before implementation (file-existence false success,
254
+ concluded synchronous pending state and broad artifact selection), then GREEN.
255
+ First-failure recovery, original lineage, conflicting digests, required targets and
256
+ conservative all-job retry handling also pass. Repository type/build checks and applicable lint checks, installed
257
+ archive smoke, workflow actionlint and whitespace checks passed. Production audit
258
+ reported zero vulnerabilities.
259
+
260
+ These are local synthetic/installed-package checks, not an observed Actions screen
261
+ or a registry publication rehearsal. Full local-server product tests required
262
+ normal loopback access. No release dispatch, activation, tag, publication, new
263
+ credential, commit or push was performed by this implementation step. Publication
264
+ remains default-off and existing compatibility/dependency boundaries are retained.
265
+
266
+ The final observer writes JSON and Summary before returning a failing process status
267
+ for failed validation, synchronous partial publication or reporting infrastructure
268
+ failure. Producer downloads and the final outcome/upload use `always()` so failed
269
+ readback cannot hide the retained evidence. Legacy schema1 completion claims remain
270
+ unconfirmed. Recovery availability uses the shared original-run/workflow/event,
271
+ artifact-role/digest/expiry and tag validation; the still-running original report
272
+ is explicitly allowed without accepting another active run.
273
+
274
+ ## Recovery preflight review follow-up (2026-11-08)
275
+
276
+ Recovery instructions require a current read-only GitHub observation of the
277
+ original tag, notes, stable channel and every existing original asset. The sealed
278
+ producer observation retains the original notes and both expected asset SHA-256
279
+ identities. Missing Release/assets and a matching draft remain repairable;
280
+ conflicting notes/bytes/duplicate assets are conflicts, while read errors remain
281
+ unknown. Neither conflict nor unknown provides a recovery command.
282
+
283
+ Actual recovery performs the same preflight before either registry can be written,
284
+ then checks GitHub again before reconciling its assets. A later remote change can
285
+ still interrupt a distributed release; the implementation preserves the resulting
286
+ partial evidence rather than promising atomic cross-service publication.
287
+ `recovery.publication_state` records the readback classification independently
288
+ from artifact availability. The focused release suite passed 33/33, including
289
+ RED/GREEN regressions for conflict instructions and pre-registry side effects.
290
+
291
+ ## Late review: durable outcomes and channel evidence (2026-11-08)
292
+
293
+ Registry completion requires the original sealed checksum plus a legal
294
+ `latest_version` at least as new as the sealed version and an actual
295
+ `channel_observed_at` readback timestamp. Byte confirmation and channel delivery
296
+ remain separate: failed channel readback retains an unknown receipt with confirmed
297
+ byte evidence, without inventing a channel timestamp. The final observer does not
298
+ offer a command that claims recovery can change `latest`.
299
+
300
+ An early recovery failure retains the original dispatch IDs as unverified
301
+ inputs. The final observer reads and verifies the original run, artifact role,
302
+ archive digest, payload and remote effects before offering a retry command.
303
+ Malformed producer JSON becomes a `report-inputs` failure while other valid
304
+ observations, the final JSON and Summary survive. During GitHub asset reconciliation,
305
+ the final readback rechecks the same release ID, original notes and stable visibility.
306
+
307
+
308
+ ### Recovery request evidence and one-shot intents
309
+
310
+ Use the original publication artifact containing the sealed bytes and request
311
+ receipts. A structured E404 does not prove that no request was sent: accepted or
312
+ uncertain requests are observed without uploading again. Missing original request
313
+ evidence cannot authorize a recovery upload.
314
+
315
+ The recovery workflow first inspects and restores the trusted original once.
316
+ Each registry then has a read-only preflight, a conditional immutable intent named
317
+ `release-recovery-intent-<source-run-id>-<target>`, and its own publication and
318
+ observation phase. Visible bytes, uncertain original requests and prior trusted
319
+ intents need no new marker or upload. A failed preflight creates no marker; an
320
+ unverified registry failure stops before the next target's marker. Only a channel
321
+ failure after byte verification can continue to the next target and GitHub.
322
+ All phases share one 15-minute registry observation deadline. Finalization emits
323
+ success only when both registries and GitHub are confirmed.
324
+
325
+ A marker consumes only that registry's original `not-run` authorization, even
326
+ when a later request or observation fails. Later recoveries observe without
327
+ retransmitting it; an untouched registry retains its independent authorization.
328
+ Legacy global markers conservatively block uploads to both registries. The
329
+ legacy `all` test entry also requires durable intent before any upload.
330
+
331
+ If visibility never arrives and the request cannot be proven unsent, keep the
332
+ target unconfirmed. Do not delete intent artifacts, force publication, change
333
+ latest or overwrite a version to bypass this condition. Diagnose the original
334
+ run and retain its evidence; use a genuine forward fix through the normal verified
335
+ main/semantic-release path when the old delivery cannot be safely completed.
336
+ Normal scheduled publication retains its automated path; this restriction applies
337
+ to uncertain recovery, not a recurring approval.
338
+
339
+
340
+ Recovery preflight retains matching original bytes as observe-only evidence.
341
+ If the next registry lookup temporarily returns E404, recovery waits within the
342
+ shared budget without creating another request intent or publishing again.
343
+ Finalization checks complete payload, remote identity and channel observations;
344
+ it cannot declare delivery from the receipt status alone.
345
+
346
+ ## Node support and CI package manager
347
+
348
+ The supported runtime range is `^22.22.2 || ^24.15.0 || >=26`, aligned with the
349
+ selected npm 12.2.2 toolchain. Node 22.18, Node 23 and Node 25 are no longer
350
+ supported. This compatibility change is recorded as breaking release metadata;
351
+ semantic-release remains responsible for the next version. Existing releases
352
+ retain their original runtime declarations.
353
+
354
+ All CI matrix entries, PR commit validation and release jobs select npm 12.2.2
355
+ from a runner-temporary installation. The matrix covers exact Node 22.22.2 and
356
+ 24.15.0 minimums plus Node 26, with current Node 24/26 on macOS and Windows.
357
+ No old-runtime package-manager exception remains.
358
+
359
+ ## Pipeline capability configuration
360
+
361
+ `.github/release-train.json` owns configuration schema v2 / pipeline protocol v1,
362
+ required goals, existing execution bindings and cadence. The current explicit
363
+ schedule preserves Friday 15:00 Asia/Singapore (07:00 UTC). A new explicit empty
364
+ cadence uses Friday 15:00 Asia/Shanghai; changing cadence is a normal configuration
365
+ change, not a release approval. Runtime dispatch inputs do not change the schedule.
366
+
367
+ With isolated `yaml@2.9.1` provisioned in `RELEASE_TOOLS`, run the read-only checks:
368
+
369
+ ```bash
370
+ node .github/release-train/pipeline-contract.mjs check
371
+ node .github/release-train/cadence.mjs check
372
+ ```
373
+
374
+ An explicit maintenance `cadence.mjs update` changes only the native schedule
375
+ projection; review that diff. Original plans retain exact identity, notes and goals.
376
+ Reports/recovery use those original goals after configuration or main advances; old
377
+ plans remain compatible and never acquire invented receipts. Public capability
378
+ coordination stays separate from product/platform implementations and existing CI
379
+ job permissions. Activation, credentials and existing delivery destinations are
380
+ unchanged by configuration migration.
381
+
382
+ ## Ordinary CI release contracts
383
+
384
+ PR/main CI checks generated integrity, actual pipeline job bindings and configured
385
+ cadence in the existing Ubuntu Node 24.15.0 package-smoke matrix entry. CI and release candidate verification share `npm run test:release`, which automatically includes new release test files.
386
+ These checks do not depend on publication enablement or version changes. Product
387
+ test matrices remain independent; the contract environment selects npm 12 explicitly.
388
+ No publishing credentials, OIDC grant or private upstream checkout is needed.
389
+ A green check is evidence only when its log shows the applicable commands and
390
+ release tests ran; source/CI success does not prove channel delivery.