@unbrained/pm-cli 2026.11.11 → 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.
- package/.agents/skills/pm-test-audit/SKILL.md +2 -1
- package/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +2 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +19 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +1 -1
- package/dist/cli/register-mutation.js +2 -2
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-FM375BHH.js → chunk-2DUUL53Z.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5N3JMGXU.js → chunk-2K6GJUW7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DIWTFDU7.js → chunk-3DWEBVIK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XN2BRWDD.js → chunk-5NGGI7JC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NIOOJ3AG.js → chunk-5NY6EQSX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XJUYJXHZ.js → chunk-6ESY4Y2B.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JLQ7O6UV.js → chunk-A7L5IEYV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WEAF3OY4.js → chunk-EALO2FPM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZJDYBXMC.js → chunk-FJNHTBJ2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GZ52WAY2.js → chunk-FOT5K5OM.js} +36 -36
- package/dist/cli-bundle/chunks/{chunk-GOLQYO6M.js → chunk-GDS4DC5A.js} +47 -43
- package/dist/cli-bundle/chunks/{chunk-EBAHNZJT.js → chunk-GLPUIQDB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SPERPX27.js → chunk-KJL42AN5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z4YEH7VQ.js → chunk-MR3CRLA7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QCTA2UFR.js → chunk-OBTU2BHJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZSL6U53K.js → chunk-OFIXSWJS.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-PS2YAPXC.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-4RHXGQMK.js → chunk-T4UC3ZKL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JESMEJTD.js → chunk-U7MZIX3D.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-UTNPDAID.js +31 -0
- package/dist/cli-bundle/chunks/{chunk-DV7WBAKQ.js → chunk-UY7Z3ZHQ.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-LNIHK36Q.js → item-revision-SYJT6TVZ.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-YXZ27UC6.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-WZY22LVH.js → mutation-admission-T57TAVWI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-DYGPLVRL.js → register-list-query-5XZXTPNG.js} +2 -2
- package/dist/cli-bundle/chunks/register-mutation-V6WJFL77.js +20 -0
- package/dist/cli-bundle/chunks/register-operations-5RAWXY2F.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-G66U2WFV.js → register-setup-HCKCSQWQ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-M5FZTPFA.js → chunk-5OCUNAQN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-AIYJHVKV.js +44 -0
- package/dist/cli-bundle/focused-chunks/chunk-BB2GMKRB.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-JYWVRXLD.js → chunk-BHYGUVAU.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-GAXO2UQX.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VVGXPF4W.js → chunk-GB2N4OM7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-IPIFI4NT.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-KN7RBRRH.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3SH3L3DB.js → chunk-LAIN47EJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-RXY6BFRW.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-NMU3QFAU.js → chunk-SPAEZKVA.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-TZO6L523.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3A6XMQZJ.js → chunk-VUNX6NBR.js} +53 -53
- package/dist/cli-bundle/focused-chunks/{item-revision-B3BIG66B.js → item-revision-PWJNBW3F.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-transaction-4JDWOXNB.js → item-transaction-T6HXC3NS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-577MXOGD.js → mutation-admission-CLPOLSXZ.js} +2 -2
- package/dist/cli-bundle/main.js +2 -2
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +57 -57
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +12 -12
- package/dist/core/item/parse.d.ts +13 -1
- package/dist/core/item/parse.js +4 -4
- package/dist/sdk/agent/command-recovery.js +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
- package/dist/sdk/cli-contracts/completeness.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/completion/bash.js +1 -1
- package/dist/sdk/completion/fish.js +3 -1
- package/dist/sdk/completion/zsh.js +3 -1
- package/dist/sdk/docs.d.ts +14 -2
- package/dist/sdk/docs.js +1 -1
- package/dist/sdk/files.d.ts +14 -2
- package/dist/sdk/files.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/governance/boundary-fixtures.d.ts +25 -0
- package/dist/sdk/governance/boundary-fixtures.js +1 -1
- package/dist/sdk/governance/defect-recurrence.d.ts +8 -1
- package/dist/sdk/governance/defect-recurrence.js +2 -2
- package/dist/sdk/guide-topics.js +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/lifecycle/dependency-removal.js +2 -0
- package/dist/sdk/lifecycle/start-blockers.d.ts +9 -0
- package/dist/sdk/lifecycle/start-blockers.js +1 -1
- package/dist/sdk/lifecycle/update.d.ts +10 -4
- package/dist/sdk/lifecycle/update.js +2 -2
- package/dist/sdk/linked-artifacts.d.ts +73 -3
- package/dist/sdk/linked-artifacts.js +2 -2
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/runtime/actions.js +1 -1
- package/dist/sdk/test/command-args.js +1 -1
- package/dist/sdk/test/execution.d.ts +15 -3
- package/dist/sdk/test/execution.js +2 -2
- package/docs/AGENT_GUIDE.md +2 -2
- package/docs/AGENT_UX_CONTRACTS.md +7 -1
- package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +1 -1
- package/docs/COMMANDS.md +16 -9
- package/docs/CORPUS_SHAPES.md +1 -1
- package/docs/DEFECT_RECURRENCE.md +20 -1
- package/docs/ONBOARDING.md +1 -1
- package/docs/README.md +6 -6
- package/docs/SDK.md +30 -0
- package/docs/SDK_CONTEXT_INTEGRITY.md +2 -0
- package/docs/TESTING.md +1 -1
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +6 -6
- package/marketplace.json +1 -1
- package/package.json +8 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-SVVFJPNW.js +0 -9
- package/dist/cli-bundle/chunks/chunk-WWW5WHHJ.js +0 -31
- package/dist/cli-bundle/chunks/item-transaction-TMUYPSMR.js +0 -2
- package/dist/cli-bundle/chunks/register-mutation-MP5JCBAJ.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-QEASK3EF.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2ZS3I5ZP.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-33EK522E.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-6ICHSVEY.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-6TJXTKZD.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-DW5S67LO.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-UCUESVFW.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-V27M5UQH.js +0 -3
- package/docs/CONTEXT_ALGORITHM_PORTFOLIO.md +0 -167
- package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +0 -246
- package/docs/PR_REVIEW_LOOP.md +0 -96
- package/docs/RELEASE_LEDGER_RECONCILIATION.md +0 -148
- package/docs/RELEASE_RELIABILITY.md +0 -147
- package/docs/RELEASING.md +0 -805
- package/docs/performance/corpus-shape-comparison.json +0 -1
- package/docs/performance/latest-scale-report.json +0 -1
- 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).
|