@unbrained/pm-cli 2026.11.10 → 2026.11.12

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 (190) hide show
  1. package/.agents/skills/pm-test-audit/SKILL.md +2 -1
  2. package/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +2 -1
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/AGENTS.md +2 -2
  5. package/CHANGELOG.md +31 -0
  6. package/CONTRIBUTING.md +1 -1
  7. package/README.md +1 -1
  8. package/dist/cli/commander-usage.js +2 -2
  9. package/dist/cli/error-guidance.js +3 -3
  10. package/dist/cli/help-json-payload.js +1 -1
  11. package/dist/cli/main.js +4 -4
  12. package/dist/cli/register-mutation.js +2 -2
  13. package/dist/cli/register-operations.js +1 -1
  14. package/dist/cli/runtime/refusal-credential-redaction.js +2 -0
  15. package/dist/cli-bundle/bundle-manifest.json +1 -1
  16. package/dist/cli-bundle/chunks/{chunk-BSJSGDA3.js → chunk-2DUUL53Z.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-YSWD2NXB.js → chunk-2K6GJUW7.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-TBBWPEF5.js → chunk-3DWEBVIK.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-L4WWG2H6.js → chunk-5NGGI7JC.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-U7LILCUN.js → chunk-5NY6EQSX.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-X7NM5HVQ.js → chunk-6ESY4Y2B.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-CZETQYKO.js → chunk-A7L5IEYV.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-5CAMQHEW.js → chunk-EALO2FPM.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-7NAAW5EX.js → chunk-FJNHTBJ2.js} +2 -2
  25. package/dist/cli-bundle/chunks/chunk-FOT5K5OM.js +124 -0
  26. package/dist/cli-bundle/chunks/{chunk-F7P2NZEG.js → chunk-GDS4DC5A.js} +47 -43
  27. package/dist/cli-bundle/chunks/{chunk-F6FBGLR7.js → chunk-GLPUIQDB.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-4FLAKTZW.js → chunk-KJL42AN5.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-FYD6LSJA.js → chunk-L3SA3354.js} +2 -2
  30. package/dist/cli-bundle/chunks/chunk-MR3CRLA7.js +2 -0
  31. package/dist/cli-bundle/chunks/{chunk-NZAFLDSH.js → chunk-OBTU2BHJ.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-4AASUCHO.js → chunk-OFIXSWJS.js} +2 -2
  33. package/dist/cli-bundle/chunks/chunk-PS2YAPXC.js +9 -0
  34. package/dist/cli-bundle/chunks/{chunk-WNEUWDUE.js → chunk-PZI6CR24.js} +46 -46
  35. package/dist/cli-bundle/chunks/{chunk-NNE63MSM.js → chunk-T4UC3ZKL.js} +2 -2
  36. package/dist/cli-bundle/chunks/{chunk-EHDGHFMJ.js → chunk-U7MZIX3D.js} +2 -2
  37. package/dist/cli-bundle/chunks/chunk-UTNPDAID.js +31 -0
  38. package/dist/cli-bundle/chunks/{chunk-OJ2KEDUX.js → chunk-UY7Z3ZHQ.js} +2 -2
  39. package/dist/cli-bundle/chunks/{item-revision-M7KXLQXF.js → item-revision-SYJT6TVZ.js} +2 -2
  40. package/dist/cli-bundle/chunks/item-transaction-YXZ27UC6.js +2 -0
  41. package/dist/cli-bundle/chunks/{mutation-admission-374UR7NI.js → mutation-admission-T57TAVWI.js} +2 -2
  42. package/dist/cli-bundle/chunks/{register-list-query-GSB7PP5P.js → register-list-query-5XZXTPNG.js} +2 -2
  43. package/dist/cli-bundle/chunks/register-mutation-V6WJFL77.js +20 -0
  44. package/dist/cli-bundle/chunks/register-operations-5RAWXY2F.js +2 -0
  45. package/dist/cli-bundle/chunks/{register-setup-QDZ2Y3CI.js → register-setup-HCKCSQWQ.js} +2 -2
  46. package/dist/cli-bundle/chunks/{stage-67WGPKPH.js → stage-VIDXGF3T.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-PAGW6A2X.js → chunk-3FN4ON2Z.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/chunk-5OCUNAQN.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-AIYJHVKV.js +44 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-QHGGO7SY.js → chunk-AXPRCCYM.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/chunk-BB2GMKRB.js +2 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-QCHCEFTO.js → chunk-BHYGUVAU.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-GAXO2UQX.js +2 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-3K2MYE7R.js → chunk-GB2N4OM7.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/{chunk-HTMQDNVC.js → chunk-GBW2EAAG.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-ZBOCYFBE.js → chunk-HIKZYZ26.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-IPIFI4NT.js +3 -0
  58. package/dist/cli-bundle/focused-chunks/chunk-KN7RBRRH.js +26 -0
  59. package/dist/cli-bundle/focused-chunks/{chunk-3DWNH72D.js → chunk-LAIN47EJ.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-2SQUWQP3.js → chunk-MK7UQEE5.js} +18 -18
  61. package/dist/cli-bundle/focused-chunks/{chunk-LY3JXL25.js → chunk-NP5C2TQM.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-RFMKS7VD.js → chunk-NSOXVVQX.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-WJHDUON5.js → chunk-NY65XTX7.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/{chunk-67M7E2Z3.js → chunk-P6KYUJD4.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/chunk-RXY6BFRW.js +2 -0
  66. package/dist/cli-bundle/focused-chunks/{chunk-2Y4H4LIX.js → chunk-SPAEZKVA.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/chunk-TZO6L523.js +2 -0
  68. package/dist/cli-bundle/focused-chunks/{chunk-BE2GK2G7.js → chunk-VUNX6NBR.js} +53 -53
  69. package/dist/cli-bundle/focused-chunks/{item-revision-XC4ZJ7MY.js → item-revision-PWJNBW3F.js} +2 -2
  70. package/dist/cli-bundle/focused-chunks/{item-transaction-CVGK4RJP.js → item-transaction-T6HXC3NS.js} +2 -2
  71. package/dist/cli-bundle/focused-chunks/{mutation-admission-N27D5H64.js → mutation-admission-CLPOLSXZ.js} +2 -2
  72. package/dist/cli-bundle/focused-chunks/{stage-KPK2UHVO.js → stage-EKYWEU2Y.js} +2 -2
  73. package/dist/cli-bundle/main.js +32 -32
  74. package/dist/cli-bundle/sdk-authoring.js +1 -1
  75. package/dist/cli-bundle/sdk-contracts.js +2 -2
  76. package/dist/cli-bundle/sdk-core.js +1 -1
  77. package/dist/cli-bundle/sdk-governance.js +1 -1
  78. package/dist/cli-bundle/sdk-graph.js +1 -1
  79. package/dist/cli-bundle/sdk-merge.js +57 -57
  80. package/dist/cli-bundle/sdk-query.js +1 -1
  81. package/dist/cli-bundle/sdk-runtime.js +1 -1
  82. package/dist/cli-bundle/sdk-testing.js +1 -1
  83. package/dist/cli-bundle/sdk.js +12 -12
  84. package/dist/core/item/parse.d.ts +13 -1
  85. package/dist/core/item/parse.js +4 -4
  86. package/dist/core/sentry/instrument.js +1 -1
  87. package/dist/core/shared/secret-rules.d.ts +18 -2
  88. package/dist/core/shared/secret-rules.js +4 -2
  89. package/dist/core/shared/url-credentials.d.ts +37 -0
  90. package/dist/core/shared/url-credentials.js +2 -0
  91. package/dist/core/telemetry/runtime.js +2 -2
  92. package/dist/sdk/agent/command-recovery.js +1 -1
  93. package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
  94. package/dist/sdk/cli-contracts/completeness.js +1 -1
  95. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  96. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  97. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  98. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  99. package/dist/sdk/command-line.d.ts +1 -1
  100. package/dist/sdk/command-line.js +1 -1
  101. package/dist/sdk/completion/bash.js +1 -1
  102. package/dist/sdk/completion/fish.js +3 -1
  103. package/dist/sdk/completion/zsh.js +3 -1
  104. package/dist/sdk/docs.d.ts +14 -2
  105. package/dist/sdk/docs.js +1 -1
  106. package/dist/sdk/files.d.ts +14 -2
  107. package/dist/sdk/files.js +1 -1
  108. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  109. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  110. package/dist/sdk/governance/boundary-fixtures.d.ts +25 -0
  111. package/dist/sdk/governance/boundary-fixtures.js +1 -1
  112. package/dist/sdk/governance/defect-recurrence.d.ts +8 -1
  113. package/dist/sdk/governance/defect-recurrence.js +2 -2
  114. package/dist/sdk/guide-topics.js +1 -1
  115. package/dist/sdk/index.d.ts +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/lifecycle/dependency-removal.js +2 -0
  118. package/dist/sdk/lifecycle/item-revision.js +1 -1
  119. package/dist/sdk/lifecycle/start-blockers.d.ts +9 -0
  120. package/dist/sdk/lifecycle/start-blockers.js +1 -1
  121. package/dist/sdk/lifecycle/update.d.ts +10 -4
  122. package/dist/sdk/lifecycle/update.js +2 -2
  123. package/dist/sdk/linked-artifacts.d.ts +73 -3
  124. package/dist/sdk/linked-artifacts.js +2 -2
  125. package/dist/sdk/public-surface.json +1 -1
  126. package/dist/sdk/runtime/actions.js +1 -1
  127. package/dist/sdk/test/command-args.js +1 -1
  128. package/dist/sdk/test/execution.d.ts +15 -3
  129. package/dist/sdk/test/execution.js +2 -2
  130. package/docs/AGENT_GUIDE.md +2 -2
  131. package/docs/AGENT_UX_CONTRACTS.md +7 -1
  132. package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +1 -1
  133. package/docs/CODEX_PLUGIN.md +2 -1
  134. package/docs/COMMANDS.md +16 -9
  135. package/docs/CONFIGURATION.md +16 -0
  136. package/docs/CORPUS_SHAPES.md +1 -1
  137. package/docs/DEFECT_RECURRENCE.md +20 -1
  138. package/docs/MUTATION_INTEGRITY.md +65 -0
  139. package/docs/ONBOARDING.md +1 -1
  140. package/docs/README.md +8 -8
  141. package/docs/SDK.md +46 -0
  142. package/docs/SDK_CONTEXT_INTEGRITY.md +2 -0
  143. package/docs/TESTING.md +1 -1
  144. package/docs/generated/FLAG_LEXICON_BUDGETS.md +6 -6
  145. package/marketplace.json +1 -1
  146. package/package.json +9 -1
  147. package/packages/pm-beads/package.json +1 -1
  148. package/packages/pm-calendar/package.json +1 -1
  149. package/packages/pm-command-kit/package.json +1 -1
  150. package/packages/pm-digital-twin/package.json +1 -1
  151. package/packages/pm-governance-audit/package.json +1 -1
  152. package/packages/pm-guide-shell/package.json +1 -1
  153. package/packages/pm-kanban/package.json +1 -1
  154. package/packages/pm-lifecycle-hooks/package.json +1 -1
  155. package/packages/pm-linked-test-adapters/package.json +1 -1
  156. package/packages/pm-search-advanced/package.json +1 -1
  157. package/packages/pm-templates/package.json +1 -1
  158. package/packages/pm-todos/package.json +1 -1
  159. package/packages/pm-vcs/package.json +1 -1
  160. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  161. package/plugins/pm-claude/package.json +1 -1
  162. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  163. package/plugins/pm-codex/package.json +1 -1
  164. package/plugins/pm-codex/plugin.json +1 -1
  165. package/runtime-dependencies.json +1 -1
  166. package/dist/cli-bundle/chunks/chunk-D727C4RO.js +0 -122
  167. package/dist/cli-bundle/chunks/chunk-T2MNRM3S.js +0 -9
  168. package/dist/cli-bundle/chunks/chunk-UFPLZ6LZ.js +0 -2
  169. package/dist/cli-bundle/chunks/chunk-UL64P6MR.js +0 -31
  170. package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +0 -2
  171. package/dist/cli-bundle/chunks/register-mutation-ZBF6ITYK.js +0 -20
  172. package/dist/cli-bundle/chunks/register-operations-PWF6GOHE.js +0 -2
  173. package/dist/cli-bundle/focused-chunks/chunk-56MIAFEN.js +0 -24
  174. package/dist/cli-bundle/focused-chunks/chunk-ALLOWZSH.js +0 -2
  175. package/dist/cli-bundle/focused-chunks/chunk-LWMPQRJT.js +0 -2
  176. package/dist/cli-bundle/focused-chunks/chunk-NZQYHPUN.js +0 -3
  177. package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +0 -44
  178. package/dist/cli-bundle/focused-chunks/chunk-U7HWWEJ2.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +0 -2
  180. package/dist/cli-bundle/focused-chunks/chunk-WK773UVA.js +0 -2
  181. package/docs/CHATGPT_CODEX_PLUGIN_IMPLEMENTATION.md +0 -776
  182. package/docs/CONTEXT_ALGORITHM_PORTFOLIO.md +0 -167
  183. package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +0 -246
  184. package/docs/PR_REVIEW_LOOP.md +0 -96
  185. package/docs/RELEASE_LEDGER_RECONCILIATION.md +0 -148
  186. package/docs/RELEASE_RELIABILITY.md +0 -147
  187. package/docs/RELEASING.md +0 -805
  188. package/docs/performance/corpus-shape-comparison.json +0 -1
  189. package/docs/performance/latest-scale-report.json +0 -1
  190. package/docs/performance/scale-100k-report.json +0 -1
@@ -1,148 +0,0 @@
1
- # Full-history release reconciliation
2
-
3
- Owner: [pm-q91qyd](../.agents/pm/issues/pm-q91qyd.toon).
4
- Upstream trigger evidence: [pm-prrlce](../.agents/pm/issues/pm-prrlce.toon).
5
-
6
- The Release Reliability workflow compares every dated section in the
7
- package-generated changelog, every release tag advertised by `origin`, and
8
- every version in anonymous public npm metadata. It runs on the existing daily
9
- schedule and completion triggers, even when a rolling reliability report fails.
10
- Its separate `release-ledgers-<run>-<attempt>` artifact contains the complete
11
- input inventories, counts, findings and exception dispositions for offline replay.
12
-
13
- Missing public registry versions are declared-but-undelivered releases. Missing
14
- changelog sections are delivered-but-undocumented releases. A tag missing its
15
- section is tagged-but-unsectioned; an identity can belong to several classes.
16
- Every missing ledger appears explicitly in the report, without counting one
17
- identity several times or dropping overlapping classes.
18
- The `classes` object names these three populations separately; `findings`
19
- retains one row per discrepant identity.
20
-
21
- The first complete census on 2026-10-10 found 14 discrepant identities among
22
- 143 sections, 151 tags and 143 public versions. The exact historical signatures
23
- and their individual dispositions are recorded in
24
- [the reviewed exception policy](../config/release-ledger-exceptions.json).
25
- Unpublished historical preparations are retained as abandoned publications;
26
- historical documentation gaps remain visible without inventing shipped content.
27
- These are explicit exceptions, not claims that the three historical sets agree.
28
- No tag is deleted and no old artifact is published by this reporting path.
29
-
30
- An exception matches one identity and one exact missing-ledger signature.
31
- Additional missing evidence invalidates it. Correcting a historical gap makes
32
- its exception stale and requires removing or revising that policy entry in a
33
- reviewed change. A new discrepancy or stale exception fails the report.
34
- Empty total inventories, incomplete populations, duplicate identities, malformed
35
- remote output, registry failures and missing exception evidence refuse evaluation.
36
-
37
- The registry request uses the same public npm metadata surface as release
38
- acceptance, with explicit public registry selection, empty user/global
39
- configuration and a fresh temporary cache. It runs outside the checkout and
40
- removes inherited npm authentication/configuration. The report never archives
41
- credentials, command output or environment values.
42
- On Windows the collector invokes `cmd.exe` explicitly for npm's `.cmd` launcher.
43
- The package name must satisfy the restricted registry identity grammar before
44
- any child starts; the remaining arguments are fixed. Required Windows acceptance
45
- executes real Git and public npm requests from paths containing spaces and `&`,
46
- first proves that direct `npm.cmd` execution fails, then verifies the complete
47
- inventory and temporary-directory cleanup through the repaired launcher.
48
- No `shell: true` argument-array fallback or resource ceiling increase is used.
49
- The parser supports npm 11's object and npm 12's single-result array, with
50
- [captured public npm 12 metadata](../tests/fixtures/release-ledgers/npm-view-12.json)
51
- as its format regression. Multiple package results refuse evaluation.
52
-
53
- To run the actual collector after building:
54
-
55
- ```bash
56
- RELEASE_LEDGERS_OUTPUT=/absolute/report.json node --input-type=module -e '
57
- import { main } from "./scripts/release/collect-release-ledgers.mjs";
58
- const report = main();
59
- console.log(JSON.stringify({ok:report.ok,counts:report.counts,findings:report.findings}));
60
- process.exitCode = report.ok ? 0 : 1;
61
- '
62
- ```
63
-
64
- Packages and non-release projects can use the same pure SDK primitive with
65
- their own named artifact inventories and decision references:
66
-
67
- ```ts
68
- import { reconcileArtifactLedgers } from "@unbrained/pm-cli/sdk/governance";
69
-
70
- const report = reconcileArtifactLedgers([
71
- { name: "declared", complete: true, identities: ["artifact-1"] },
72
- { name: "delivered", complete: true, identities: ["artifact-1"] },
73
- ]);
74
- ```
75
-
76
- `ArtifactLedgerSnapshot`, `ArtifactLedgerException`, `ArtifactLedgerFinding`
77
- and `ArtifactLedgerReport` describe this harness-independent contract.
78
- The evaluator performs no filesystem, clock or network operations and preserves
79
- caller inputs. For offline replay, feed the saved `snapshots` and `exceptions`
80
- back into `reconcileArtifactLedgers`.
81
-
82
- ## Tag-carried trigger declarations
83
-
84
- New preparations create annotated tags whose bounded JSON message binds the
85
- declared upstream event/origin, repository, run/attempt, reviewed source commit
86
- and prepared target commit. Before publication, the Release workflow checks
87
- the tag's peeled commit and source ancestry and compares the source declaration
88
- with the exact GitHub run attempt, including repository, event, source SHA,
89
- the producer workflow path and declared Auto Release run name. It independently
90
- fetches the repository's default branch and requires the source run's branch to
91
- match it. Auto Release uploads an immutable producer binding before pushing;
92
- publication independently downloads that run attempt's artifact and compares
93
- the exact tag name, target commit, tag object and canonical declaration. Missing,
94
- expired, ambiguous or mismatched evidence stops publication; the artifact is
95
- retained for 90 days. The verifier never assumes the default branch is named
96
- `main`.
97
-
98
- The separate `release-publication-origin-<run>-<attempt>` artifact retains the
99
- tag-object SHA, upstream declaration, independent verification result and the
100
- current publication/recovery trigger. An operator recovering a dispatcher
101
- release therefore retains both origins. A rejected atomic push after sealing
102
- refuses to rebase into a different target; a new preparation must establish a
103
- new independent binding. Local preparation remains supported without pushing;
104
- local `--push` refuses before Git inspection or release-asset mutation.
105
-
106
- Historical lightweight tags and unrelated legacy annotations stay explicitly
107
- unattributed only when publication matches the repository, tag name and exact
108
- content-addressed object in the
109
- [frozen pre-rollout inventory](../config/release-tag-legacy.json). That reviewed
110
- inventory identifies all 152 origin tag objects observed before this rollout;
111
- it is not extended automatically. Unknown lightweight tags, unrelated new
112
- annotations and rewritten historical objects stop before publication, including
113
- operator recovery. A missing or unreadable inventory fails closed. No origin is
114
- inferred from a tag-push event or actor. Local preparation records an operator
115
- declaration but hosted publication refuses it without a hosted producer.
116
- Tag objects are content-addressed evidence; this does not assert that GitHub
117
- release/tag immutability policy has been enabled.
118
-
119
- The downstream tag-push workflow's run name still names `tag_push`; its verified
120
- upstream origin lives in the summary and artifact. The remaining run-name and
121
- operator-only manual follow-up contracts retain their existing owners
122
- [pm-prrlce](../.agents/pm/issues/pm-prrlce.toon) and
123
- [pm-uenmu9](../.agents/pm/issues/pm-uenmu9.toon). The one-automatic-release-per-UTC-day
124
- guard and exact-tag recovery semantics are unchanged.
125
-
126
- ## Installed acceptance path cost
127
-
128
- Owner: [pm-release-acceptance-path-cost](../.agents/pm/issues/pm-release-acceptance-path-cost.toon).
129
-
130
- The disposable installed-consumer layout uses concise directory names because
131
- `init` repeats its workspace path throughout its complete JSON guidance. Long
132
- macOS temporary ancestry previously made an otherwise valid public artifact
133
- exceed the raw 12,000-character init ceiling. Shorter private paths retain every
134
- output field, lifecycle assertion, deadline and ceiling. The
135
- [captured public output regression](../tests/fixtures/release-acceptance/README.md)
136
- checks the raw cost for independent control/candidate local npm, global npm and
137
- Bun layouts; actual installed sessions remain separate acceptance evidence.
138
-
139
- ## Publication metadata weight
140
-
141
- Owner: [pm-998juj](../.agents/pm/tasks/pm-998juj.toon).
142
-
143
- The publication stage compacts first-party JSON while leaving checkout files
144
- readable and third-party runtime files unchanged. Every parsed value must survive
145
- serialization exactly; invalid JSON and lossy representations, including negative
146
- zero or overflowing numbers, stop packing. Real tarball regressions verify nested
147
- extension data, Unicode, escaped text and the runtime ledger. Both committed size
148
- profiles, required files and source-map exclusions remain enforced.
@@ -1,147 +0,0 @@
1
- # Scheduled release reliability
2
-
3
- Tracked by [pm-e70zh5](../.agents/pm/issues/pm-e70zh5.toon) and
4
- [pm-44u3wt](../.agents/pm/issues/pm-44u3wt.toon). Trigger provenance and
5
- installed-package diagnostics are tracked by
6
- [pm-prrlce](../.agents/pm/issues/pm-prrlce.toon) and
7
- [pm-q7c36n](../.agents/pm/issues/pm-q7c36n.toon).
8
-
9
- The **Release Reliability** workflow evaluates the preceding 30 days after a
10
- default-branch Auto Release or Nightly Validation completes, daily at nominal 04:35 UTC, and on manual
11
- dispatch. It saves a JSON report and fails its own check when policy is breached.
12
- The report is independent of candidate correctness: historical failures must
13
- remain visible while a reviewed repair can still pass publication gates.
14
-
15
- ## Policy and clock
16
-
17
- [The versioned policy](../config/release-reliability-policy.json) declares the
18
- nominal release cron as 02:35 UTC, a 60-minute dispatch allowance, a maximum
19
- 10% failure rate, and at least seven completed observations. These are explicit
20
- operational targets, not thresholds fitted to make the current history green.
21
- Missing samples yield an insufficient-data failure, never a healthy zero rate.
22
-
23
- Dispatch delay measures `created_at` against the nearest preceding nominal
24
- daily occurrence. Queue delay separately measures `run_started_at - created_at`.
25
- GitHub does not supply the intended scheduled timestamp: the inferred occurrence
26
- cannot disambiguate delays greater than 24 hours. Missing the latest occurrence
27
- whose 60-minute allowance has elapsed produces `missing_scheduled_run`. Before
28
- 03:35 UTC, absence of today's run is still within the allowance; afterward,
29
- inspect the report to distinguish missing dispatch, a pending attempt, and a
30
- completed failure. A late run is visible even when it subsequently succeeds.
31
-
32
- The release version and one-per-day guard use the UTC execution date captured
33
- by release preparation, not the inferred cron occurrence. A delayed run cannot
34
- backdate a tag. Reporting never creates, retargets, retries, or publishes a tag.
35
- The unchanged [release recovery rules](RELEASING.md#failure-handling) apply.
36
-
37
- The independent [full-history ledger report](RELEASE_LEDGER_RECONCILIATION.md)
38
- also reconciles public registry versions, release tags and generated sections.
39
- It preserves every historical exception and fails on new or changed drift.
40
-
41
- ## Evidence and denominator
42
-
43
- The collector paginates Auto Release runs over an explicit half-open UTC window
44
- and checks returned counts and unique IDs. It retrieves attempt 1
45
- when a run was rerun. A later successful attempt, manual dispatch, issue recovery,
46
- or closed blocker cannot change the original scheduled failure. Pending runs
47
- are listed separately; all completed non-success conclusions count as failures.
48
- The native scheduled denominator and policy remain separate from the morning
49
- dispatcher series. Each new dispatch declares `trigger_origin`; the workflow
50
- run name and attempt receipt preserve it. If setup fails before the receipt can
51
- be uploaded, the collector reads the declared run name. Historical dispatches
52
- without either declaration appear in `pre_attribution_gap`; the failed
53
- 2026-09-28 morning dispatch cannot be attributed from its old run record.
54
- Dispatcher rows retain creation time, queue delay, outcome, and failure stage.
55
- The `origins` map also retains independent `native_schedule`, `operator`, and
56
- `blocker_retry` series, each with original counts, failure stages and outcome
57
- evidence completeness. Undeclared historical runs remain explicit attribution
58
- gaps; event or actor never supplies an invented origin. These diagnostic series
59
- do not alter the native scheduled policy denominator.
60
- They omit nominal occurrence and dispatch delay because the native 02:35 UTC
61
- cron is not the dispatcher's clock; the scheduled timing policy does not apply
62
- to those rows.
63
- API errors, truncated pages, ambiguous artifacts, and mismatched run identities
64
- fail collection rather than silently reducing the denominator.
65
-
66
- Auto Release saves `release-observation-<attempt>` artifacts for 90 days. Each
67
- contains only run/attempt identity, event, trigger origin, outcome and
68
- failure-stage name. Gate
69
- stdout, stderr, credentials and environment values are not archived. A confirmed
70
- publication, verified existing same-day release, unchanged source, tracker-only
71
- changes, and an empty changelog are distinct outcomes. Failed gates retain their
72
- structured stage; older failures fall back to failed job/step names from GitHub.
73
- Receipt writing and upload are non-blocking so an evidence-service outage cannot
74
- change publication success into a release blocker. Missing or expired success
75
- receipts are `unknown_success`, with
76
- `outcome_evidence_complete: false`; success alone does not prove publication.
77
-
78
- Reports retain the input policy, window, per-run observations, outcome counts,
79
- stage counts, denominator, failure rate and violations. Download a report using
80
- `gh run download <report-run-id> --name <artifact-name> --dir <temporary-directory>`.
81
- The pure evaluator in `scripts/release/release-reliability.mjs` permits offline
82
- replay with a fixed clock and captured input; the collector is read-only and
83
- downloads only data, never executable source. The reporting workflow checks out
84
- the default branch rather than the triggering run's code and has read-only token
85
- permissions.
86
-
87
- Registry acceptance records every exact-package install attempt. A timeout,
88
- signal, missing executable, other spawn error, and nonzero exit each keep their
89
- own classification, exit status, signal, error code, and a bounded redacted
90
- stderr excerpt. Only an explicit registry 404 is retried as possible metadata
91
- propagation; successful recovery retains the earlier failure receipts. The
92
- control and candidate sessions share a 13-minute deadline under the 15-minute
93
- hosted acceptance job limit.
94
-
95
- The report is a rolling observation, not a permanent archive of all releases.
96
- Retain exported receipts externally if a longer historical window is needed.
97
- It does not change the manual same-day version policy or propagate upstream
98
- origin through historical lightweight tags. Those remaining outcomes retain
99
- their existing PM owners.
100
-
101
- ## Nightly recurrence and public SDK
102
-
103
- [pm-2zjs0g](../.agents/pm/issues/pm-2zjs0g.toon) owns the nightly recurrence meter.
104
- The same reporting workflow builds trusted default-branch code and writes a
105
- separate `nightly-reliability-<run>-<attempt>` artifact, including when release
106
- reporting is already red. Its [versioned policy](../config/nightly-reliability-policy.json)
107
- requires seven completed original attempts per family and at most 10% failures
108
- over 30 days. Breaches fail the operational report and appear in the workflow
109
- summary; they remain distinct from checks evaluating a candidate repair.
110
-
111
- The collector derives current leg identities from `nightly.yml` and each run's
112
- applicable population from the workflow at its original head SHA. Immutable
113
- definitions are cached within one census; legacy OS/Node matrices and today's
114
- labelled shards both retain their actual generations. Newly introduced families
115
- never gain synthetic pending attempts in older runs. It retains historical
116
- observed legs, retrieves attempt 1 after reruns, and reads both open
117
- and closed alert issues plus their complete comment pages. Original failures,
118
- distinct affected UTC days and observed closure durations survive alert repair.
119
- Every new alert carries the stable PM recurrence owner and a platform/Node family
120
- identity. Counts do not depend on a maintained list of occurrence IDs. An absent
121
- job is pending evidence; an empty family has a null rate and fails coverage.
122
-
123
- Alert closure is the recorded latency endpoint, not proof of a product fix.
124
- When one alert episode links several failed runs, its shared closure is the
125
- endpoint for each recorded occurrence's alert-closure latency. This does not
126
- assert that an independent per-attempt product repair was verified.
127
- Product versus infrastructure cause stays `unknown` until independent evidence
128
- classifies it. Repairs at or beyond the report cutoff remain unresolved in that
129
- historical window. API errors, incomplete search results, missing pages,
130
- duplicate identities and ambiguous jobs refuse a complete-census claim.
131
-
132
- Packages can reuse the harness-independent evaluator through
133
- `evaluateReliabilityWindow` from `@unbrained/pm-cli/sdk/governance`. Supply
134
- `ReliabilityAttempt` records with unique `id`, stable `family`, `started_at`,
135
- original `outcome` and optional `repaired_at`/`cause`, plus an explicit
136
- `ReliabilityWindowPolicy` population, half-open window, maximum failure fraction
137
- and minimum completed count. The typed result preserves per-family findings,
138
- unknown causes and repair observations. No GitHub dependency, filesystem tracker,
139
- clock read or network call is required by this SDK primitive.
140
-
141
- For reproducible offline evaluation, retain the report's `attempts` and `policy`
142
- with its exact window; rerun the SDK evaluator against those records. The GitHub
143
- adapter accepts a caller-chosen clock and a 1–90 day policy window, allowing
144
- historical family reconstruction while keeping the production 30-day policy fixed.
145
-
146
- Provider contracts: [workflow run attempts](https://docs.github.com/en/rest/actions/workflow-runs#get-a-workflow-run-attempt)
147
- and [completion-triggered workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_run).