← Back to Pull requests

refactor(release): simplify monthly extended-stable plugin snapshots #8

Open
kevinslin opened this pull request with 6962 lines diff across 67 files
View on GitHub
kevinslin kevinslin commented on Jul 05, 2026 07:12 UTC
Author

What Problem This Solves

Extended-stable core releases need a deterministic plugin compatibility boundary without maintaining a generated cohort file. The previous implementation calculated and persisted a monthly baseline, which duplicated information already encoded by the monthly release number and added release-time evidence plumbing.

Related: openclaw/openclaw#100111

Why This Change Was Made

This replaces the generated cohort with one simple rule:

  • At YYYY.M.33, publish and promote core plus every npm-publishable official plugin.

  • At YYYY.M.34+, publish and promote core plus the covered plugins: Slack, Discord, and Codex.

  • For an extended-stable core on that monthly line, uncovered official plugins with default/latest intent resolve to exact YYYY.M.33; covered plugins resolve to the exact core version.
  • Exact pins, disabled/denied plugins, third-party npm packages, ClawHub, Git, path, and archive installs remain unchanged. Existing stable -> latest behavior also remains unchanged.

    The release handoff now carries one authoritative publication set plus snapshot readbacks, avoiding duplicate package/version/digest arrays. Production activation remains hard-gated on an openclaw/releases protected selector consumer that understands handoff schema v2 and promote_extended_stable.

    User Impact

    The first extended-stable release each month creates a complete official plugin snapshot. Subsequent extended-stable patches advance only core and the covered plugins, while other official plugins remain on the same month's .33 snapshot. Users no longer depend on a generated cohort manifest or a moving npm latest tag for those plugins.

    Evidence

  • Current head: ed9b67af3c67f29ec1f3b773552ba370b5e1495b (implementation commit plus generated docs-map, lint, and packed-fixture fixes).

  • Focused runtime verification: 7 files / 467 tests passed.

  • Focused release verification: 13 files / 250 tests passed.

  • Handoff-schema cleanup verification: 4 files / 15 tests passed.

  • Formatting, diff checks, workflow YAML parsing, release-preflight syntax, and 18 static contract checks passed.

  • Static inventory proves 69 official npm plugin packages: 3 covered plus 66 monthly-snapshot packages, with runtime/release membership parity.

  • Local ephemeral Verdaccio canary passed at implementation commit f62ea5696fb2096d589eddb5bc101d69357a001a:

  • - .33: core, Slack, Discord, Codex, and uncovered Matrix were published and installed through extended-stable.
    - .34: core and the three covered plugins advanced; Matrix remained exactly .33; Matrix .34 was absent.
    - Fresh CLI install and update resolved core/covered plugins to .34 and Matrix to .33.
    - Candidate tags were cleaned and the registry was removed after the run.
  • Spec 25 milestone, release/operator docs, and both implementation flow docs were updated and validated.
  • The local canary uses a private package identity and registry. Hosted current-head CI remains the authoritative proof for the full 69-package inventory and GitHub workflow behavior. Public npm publishing, OIDC/provenance, protected-environment approval, and the external protected selector consumer were not exercised locally.

    Diff: 6962 lines (+6551 / -411) across 67 files Reviewer: kevinslin Review duration: 191036m
    All Vouch review confidence checks passed
    Residual risk 0.31 = Change Risk (0.93) × (1 − Review Confidence (0.67)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.93 · 6962 lines diff across 67 files
    0.93
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.53 · 3 substantive comment(s)
    0.53
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    66%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Self Review self_review
    0.140
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    5 items
    coderabbitai[bot] coderabbitai[bot] commented on Jul 05, 2026 07:12 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- This is an auto-generated comment: skip review by coderabbit.ai -->

    [!IMPORTANT]

    ## Review skipped

    > Auto reviews are disabled on base/target branches other than the default branch.

    >

    > Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

    > <details>

    <summary>⚙️ Run configuration</summary>

    > Configuration used: defaults

    > Review profile: CHILL

    > Plan: Pro

    > Run ID: 58597f60-df81-4381-a02b-9ae7fe64ac13

    > </details>

    > You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

    > Use the checkbox below for a quick retry:

    - [ ] <!-- {"checkboxId": "e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review

    <!-- end of auto-generated comment: skip review by coderabbit.ai -->

    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests

  • <!-- {"checkboxId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Commit unit tests in branch dev/kevinlin/extended-stable-plugin-cohort
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- tips_start -->

    ---

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jul 05, 2026 07:18 UTC
    Code Review
    src/plugins/install-channel-specs.ts:1
    @@ -38,7 +44,28 @@ function isDefaultClawHubSpecForBetaChannel(spec: string): { name: string } | nu
     export function resolveNpmInstallSpecsForUpdateChannel(params: {
       spec: string;
       updateChannel?: UpdateChannel;
    +  officialPackageName?: string;
    +  extendedStableTargetContext?: ExtendedStablePluginTargetContext;
     }): ChannelInstallSpecs {
    +  if (
    +    params.updateChannel === "extended-stable" &&
    +    params.officialPackageName &&
    +    params.extendedStableTargetContext

    <sub><sub>!P1 Badge</sub></sub> Fail closed when extended-stable context is missing

    When an official package is resolved for extended-stable without an extendedStableTargetContext, this condition is false and the helper falls through to returning the raw @openclaw/.../latest spec. The openclaw plugins update --all path sets officialPluginUpdateChannel from cfg.update.channel but never passes that context (src/cli/plugins-update-command.ts:270), so users on the extended-stable channel can update official plugins to the moving latest line instead of the core-version/monthly-cohort targets. Please require/load the context for this path, or fail closed rather than falling back to latest.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jul 05, 2026 07:18 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: b18ea4d503

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    kevinslin kevinslin commented on code on Jul 05, 2026 07:26 UTC
    Code Review
    src/plugins/install-channel-specs.ts:1
    @@ -38,7 +44,28 @@ function isDefaultClawHubSpecForBetaChannel(spec: string): { name: string } | nu
     export function resolveNpmInstallSpecsForUpdateChannel(params: {
       spec: string;
       updateChannel?: UpdateChannel;
    +  officialPackageName?: string;
    +  extendedStableTargetContext?: ExtendedStablePluginTargetContext;
     }): ChannelInstallSpecs {
    +  if (
    +    params.updateChannel === "extended-stable" &&
    +    params.officialPackageName &&
    +    params.extendedStableTargetContext

    Fixed in 6405569ff7. plugins update --all now loads the installed core package root and packaged extended-stable target context before invoking the updater. Missing metadata exits before plugin mutation, and the shared resolver also throws when an official extended-stable target is attempted without context. Focused CLI, resolver, and plugin updater suites pass (156 tests).

    Reviewers
    Assignees
    kevinslin kevinslin
    Labels
    risk: low confidence: 66.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 92.5% (HIGH) · Higher = larger blast radius
    92.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 66.9% · Lower = rushed or shallow review
    66.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 30.6% · Safe to merge
    30.6%