Skip to content

Commit a530a7b

Browse files
authored
docs(release): clarify extended-stable backport guidance (#117324)
* docs(release): freeze SDK and config extended-stable backports * docs(release): warn on extended-stable SDK config backports * docs(release): narrow extended-stable contract warning
1 parent 641b730 commit a530a7b

2 files changed

Lines changed: 89 additions & 8 deletions

File tree

‎.agents/skills/release-openclaw-maintainer/SKILL.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ The backport flow covers mainline inventory, private-security reconciliation,
226226
approval, the staging PR, and proof handoff. After it lands, use the sequence
227227
below. Never route `.33+` through regular beta/stable release steps.
228228

229+
Extended-stable requires a visible **SDK/config backport warning** whenever a
230+
candidate changes the public plugin SDK or a config/default/schema/migration
231+
surface. Prefer an adaptation that uses the SDK and configuration already
232+
shipped on that line. If a contract change remains necessary, record its
233+
published impact and the maintainer decision in the ledger and staging PR.
234+
Read `references/extended-stable-backports.md`; a clean cherry-pick, green
235+
release checks, or a regenerated baseline does not by itself explain the
236+
maintenance risk.
237+
229238
## Publish Gateway extended-stable releases
230239

231240
Use this path only for the trailing completed month's `.33+` Gateway

‎.agents/skills/release-openclaw-maintainer/references/extended-stable-backports.md‎

Lines changed: 80 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,73 @@ extended-stable package and publication constraints.
4242
- Use `$openclaw-testing` for proof selection, `$autoreview` before handoff,
4343
and `$openclaw-pr-maintainer` for GitHub operations.
4444

45+
## Flag SDK and Config Backports
46+
47+
Extended-stable is a maintenance line, not an API or configuration delivery
48+
vehicle. Treat every backport that changes either surface as a visible
49+
**SDK/config backport warning**:
50+
51+
- the public plugin SDK: exports, entrypoints, declarations, API-baseline
52+
hashes, plugin contracts, or public package export metadata;
53+
- configuration/defaults: schema or help text, generated config baselines,
54+
config keys/defaults, plugin/channel configuration metadata, doctor
55+
migrations, or compatibility behavior.
56+
57+
When a mainline fix touches one of these areas, first find the branch-local
58+
form that fixes the published bug without changing the SDK or config contract.
59+
Use the already-shipped SDK seam and existing configuration, or keep the repair
60+
inside the affected plugin/runtime. Do not add an SDK helper, export, config
61+
key, default, migration, compatibility alias, or generated baseline update
62+
merely because it makes a backport apply. If a surface change remains useful,
63+
flag it rather than treating a clean cherry-pick as enough evidence.
64+
65+
The ledger and staging PR must show the warning, source commit, published
66+
maintenance-line impact, no-surface-change adaptation considered, affected
67+
public SDK/config records, focused proof, and the maintainer decision. Treat a
68+
consumer bug that happens to need a new SDK/config capability as particularly
69+
high risk; a material security or reliability defect owned by the SDK/config
70+
surface is important context, not an implicit approval.
71+
72+
Before the staging PR, collect this evidence against the exact canonical branch
73+
tip recorded before applying any candidates. The first command is optional
74+
owner-path context for investigating a warning. The generated public-contract
75+
manifests in the second command are the warning trigger:
76+
77+
```bash
78+
baseline_sha=<canonical-extended-stable-tip-before-backports>
79+
80+
git diff --name-status "$baseline_sha"..HEAD -- \
81+
src/plugin-sdk \
82+
src/plugins/contracts \
83+
src/config \
84+
src/commands/doctor \
85+
scripts/lib/plugin-sdk-entrypoints.json \
86+
scripts/lib/plugin-sdk-private-local-only-subpaths.json \
87+
scripts/lib/plugin-sdk-deprecated-public-subpaths.json \
88+
scripts/generate-plugin-sdk-api-baseline.ts \
89+
scripts/generate-config-doc-baseline.ts \
90+
docs/.generated/plugin-sdk-api-baseline.sha256 \
91+
docs/.generated/config-baseline.sha256 \
92+
docs/.generated/config-baseline.counts.json
93+
94+
git diff --numstat "$baseline_sha"..HEAD -- \
95+
docs/.generated/plugin-sdk-api-baseline.sha256 \
96+
docs/.generated/config-baseline.sha256 \
97+
docs/.generated/config-baseline.counts.json
98+
```
99+
100+
Nonempty manifest output is the warning. Include it in the release ledger and
101+
PR body, then either remove the unnecessary surface change or record why the
102+
maintainer accepted it. Owner-path output with unchanged manifests is optional
103+
review context, not a warning by itself. A recorded decision is not a reusable
104+
waiver.
105+
106+
Do not use a SHA of all SDK/config source as an automated warning: it would
107+
noise on harmless implementation-only repairs. The two generated hash manifests
108+
are the stable public-contract signal. If this becomes CI, run the comparison
109+
after `pnpm release:prep` and annotate the staging PR with changed records and
110+
the required maintainer decision; do not add a caller-controlled bypass.
111+
45112
## Resolve the Active Line
46113

47114
1. Run `git status -sb`. Do not overwrite unrelated work.
@@ -247,19 +314,24 @@ ledger and release set before changing branches.
247314
5. Set the intended root version and run `pnpm release:prep` on the same staging
248315
branch. Verify every publishable official plugin package has that exact
249316
version. Do not create the tag or dispatch publication before the PR lands.
250-
6. Run `$autoreview` until no accepted/actionable findings remain.
251-
7. Open one coordinated PR targeting the canonical extended-stable branch.
317+
6. Run the **Flag SDK and Config Backports** comparison against the recorded
318+
canonical tip. For nonempty manifest output, attach the warning evidence and
319+
maintainer decision before continuing.
320+
7. Run `$autoreview` until no accepted/actionable findings remain.
321+
8. Open one coordinated PR targeting the canonical extended-stable branch.
252322
Never target `main` and never push the target branch directly.
253-
8. Keep unpublished security work in the approved private advisory fork until
323+
9. Keep unpublished security work in the approved private advisory fork until
254324
disclosure is authorized.
255325

256326
The PR body must list the intended maintenance tag, exact npm publication
257327
inventory, every source commit and optional PR, impact, adaptations, focused
258-
and combined proof, security status, rollback considerations, and exact scan
259-
bounds. Update the durable ledger with branch/tag/version/SHA provenance and
260-
unresolved blocked candidates so the next run carries them forward. Dispatch
261-
npm preflight only after the canonical branch or tag has that exact final
262-
version and SHA.
328+
and combined proof, security status, rollback considerations, exact scan
329+
bounds, and the SDK/config warning result. For a flagged candidate, include the
330+
changed path/manifest records, owner-boundary reason, focused proof, and
331+
maintainer decision; otherwise state that the warning comparison was empty.
332+
Update the durable ledger with branch/tag/version/SHA provenance and unresolved
333+
blocked candidates so the next run carries them forward. Dispatch npm preflight
334+
only after the canonical branch or tag has that exact final version and SHA.
263335

264336
## Stabilize the landed candidate
265337

0 commit comments

Comments
 (0)