@@ -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
471141 . Run ` git status -sb ` . Do not overwrite unrelated work.
@@ -247,19 +314,24 @@ ledger and release set before changing branches.
2473145 . 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
256326The PR body must list the intended maintenance tag, exact npm publication
257327inventory, 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