Skip to content

feat(release): publish fork @openclaw/msteams tarball on boon releases (ENG-14431) - #60

Merged
convyusboy merged 5 commits into
boonfrom
ridho/eng-14431-publish-fork-msteams
Jul 20, 2026
Merged

convyusboy merged 5 commits into
boonfrom
ridho/eng-14431-publish-fork-msteams

Conversation

@convyusboy

@convyusboy convyusboy commented Jul 17, 2026 •

Copy link
Copy Markdown
Collaborator

What

Publish a fork-versioned @openclaw/msteams plugin as a GitHub Release asset on every v*-boon.* tag, alongside the gateway tarball. gandalf-manager will install it instead of upstream-npm-@openclaw/msteams + a host-local SP-PATCH.

  • extensions/msteams/package.json: 2026.6.11 → 2026.6.11-boon.4 (tracks the gateway -boon.N 1:1). compat.pluginApi: ">=2026.6.11" unchanged (a -boon.N host normalizes to 2026.6.11 per PR fix(clawhub): accept -boon.N in plugin API compat regex #41). publishToNpm kept true (it gates the official channel catalog / shrinkwrap / runtime build — not just npm publish).
  • .github/workflows/boon-release.yml: new "Pack msteams plugin tarball" step using the fork's own release tooling (plugin-npm-runtime-build.mjs + plugin-npm-package-manifest.mjs --run … npm pack) so the tarball is runnable (./dist/*.js entries + bundled workspace deps). Asserts the artifact on disk (doesn't parse pack stdout), version-guards against the tag, and uploads openclaw-msteams-<ver>.tgz + .sha256.

Asset contract (frozen): https://github.com/getboon/openclaw/releases/download/v<ver>/openclaw-msteams-<ver>.tgz + .sha256.

Why

The fork's msteams source fixes — ENG-14349 (attachment Graph fallback + aadGroupId), ENG-14117 (topLevel), filecard→SharePoint-link — never reached running hosts because msteams was consumed from the upstream public registry. gandalf-manager shipped them as a fragile textual SP-PATCH on the minified bundle / a host-local dist/ swap that any plugin reinstall or fresh standup silently wiped. This is the durable fix (ENG-14431).

Why a GitHub Release tarball (not npm)

Same reason the gateway isn't on npm: the npm-publish version validator (npm-publish-plan.mjs) has no -boon.N arm, and @openclaw/* is an upstream-owned scope. gandalf-manager installs the asset via openclaw plugins install npm-pack:<tgz> — the only path that records source:npm (matching the official catalog npmSpec @openclaw/msteams), which 6.11's openKeyedStore trust-gate requires. A bare-tarball / --link install records source:archive/path and crash-loops the channel (bit arguijo live 2026-07-06).

Test

  • Built + packed locally: plugin-npm-runtime-build.mjs extensions/msteams then the overlay npm pack → openclaw-msteams-2026.6.11-boon.4.tgz (7.6 MB, 136 bundled deps). Unpacked package.json ships dist/**; all fork markers present (createMSTeamsTopLevelActionSchema, SharePoint file link/shareUrl, aadGroupId); built chunk channel-Dg38EtYe.js matches the arguijo dist-swap.
  • YAML + package.json validate.

Consumer

gandalf-manager PR (repoints 03-install-openclaw.sh, adds fleet-msteams.sh + install-msteams-fork.sh, deletes the SP-PATCH): opened separately.

🤖 Generated with Claude Code


Summary by cubic

Publish a fork-versioned @openclaw/msteams tarball as a sibling asset on each v*-boon.* release so Teams fixes ship reliably without host-local patches. Bumps extensions/msteams to 2026.6.11-boon.4 and updates the release workflow to build, pack, hash, and upload with a strict tag==version guard.

  • New Features

    • Packs a runnable @openclaw/msteams tarball using fork tooling and computes .sha256.
    • Uploads openclaw-msteams-<version>.tgz + .sha256 next to the gateway, with a stable asset URL.
    • Addresses Linear ENG-14431 by retiring the SP-PATCH/dist-swap; gandalf-manager installs via openclaw plugins install npm-pack:<tgz> to preserve source:npm trust.
  • Bug Fixes

    • Passes the release tag via an env var in the msteams pack step to avoid template-injection risks; no behavior change.
    • Aligns extensions/msteams/npm-shrinkwrap.json version with package.json to satisfy tooling checks.
    • Accepts -boon.N in the publishable-plugin version validator and updates guidance messages to include the YYYY.M.PATCH-boon.N form; adds regression tests covering parse/plan/order/floor for -boon.N.

Written for commit 47572c1. Summary will update on new commits.

Review in cubic

…s (ENG-14431)

The boon fork ships only the gateway tarball; @openclaw/msteams was consumed
from the upstream public npm registry, so the fork's Teams fixes (ENG-14349
attachment Graph fallback + aadGroupId, ENG-14117 topLevel, filecard->SharePoint
-link) never reached a running host — gandalf-manager shipped them as a fragile
host-local SP-PATCH / dist-swap that a plugin reinstall or fresh standup wiped.

Publish a fork-versioned @openclaw/msteams as a sibling GitHub Release asset on
the same v*-boon.* tag as the gateway:

- extensions/msteams/package.json: version 2026.6.11 -> 2026.6.11-boon.4 (tracks
  the gateway -boon.N in lockstep). compat.pluginApi >=2026.6.11 stays correct
  (a -boon.N host normalizes to 2026.6.11 per PR #41). publishToNpm stays true —
  it gates the official channel catalog / shrinkwrap / runtime build, NOT just
  the npm-publish path (which only fires on main and can't ship a -boon.N version
  anyway); the fork ships msteams via GitHub Release like the gateway.
- boon-release.yml: pack the plugin with the fork's own release tooling
  (plugin-npm-runtime-build.mjs + plugin-npm-package-manifest.mjs --run npm pack)
  so the tarball is runnable (dist/*.js entries + bundled workspace deps), assert
  it on disk, compute sha256, and upload openclaw-msteams-<ver>.tgz + .sha256
  alongside the gateway. Version guard mirrors the gateway "tag == version" step.

gandalf-manager installs this via `openclaw plugins install npm-pack:<tgz>` — the
only path that records source:npm (matching catalog npmSpec @openclaw/msteams) so
6.11's openKeyedStore trust-gate accepts it; a bare-tarball/--link install records
source:archive/path and crash-loops the channel.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@claude

claude Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/msteams/npm-shrinkwrap.json
  • extensions/msteams/package.json

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

Dependency graph change authorized

This PR includes dependency graph changes. A repository admin or member of @openclaw/openclaw-secops authorized this exact head SHA with /allow-dependencies-change.

  • Approved SHA: 47572c1ff34e29e4c998802506742cfebb5f8a6f
  • Approved by: @holywend

A later push changes the PR head SHA and requires a fresh security approval.

…injection)

The version guard interpolated ${{ github.ref_name }} directly into the run:
shell body — zizmor flags this as a code-injection vector. Pass it via env TAG
instead, matching the gateway pack/assert steps above. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

1 issue found and verified against the latest diff

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="extensions/msteams/package.json">

<violation number="1" location="extensions/msteams/package.json:3">
P2: The msteams package metadata is internally inconsistent, so the package-manager consistency test fails and the release tarball would contain a shrinkwrap advertising the old version. Updating the two root version fields in `extensions/msteams/npm-shrinkwrap.json` (or regenerating the plugin shrinkwrap) keeps the fork tarball and its lock metadata aligned.</violation>
</file>

Linked issue analysis

Linked issue: ENG-14431: [P2] Publish a boon-fork @openclaw/msteams package so the patches don't have to live as host-local edits

Status Acceptance criteria Notes
✅ Add a workflow step that builds the plugin dist and packs a runnable openclaw-msteams-.tgz using the plugin runtime build + package-manifest overlay boon-release.yml adds an explicit step that runs plugin-npm-runtime-build.mjs then plugin-npm-package-manifest.mjs --run followed by npm pack, producing the tarball via the documented overlay.
✅ Compute and include a .sha256 for the packed tarball The pack step writes sha256sum > .sha256 after packing.
✅ Fail the release if the repository tag does not match extensions/msteams/package.json version (ensure lockstep -boon.N tagging) The workflow checks the package.json version and exits nonzero if the git tag (github.ref_name) doesn't equal v.
✅ Upload the openclaw-msteams-.tgz and its .sha256 as sibling assets to the same GitHub Release alongside the gateway tarball The Publish GitHub Release step uploads both the gateway tarball and the MSTEAMS_TARBALL plus their .sha256 files when creating or updating the release.
✅ Bump extensions/msteams/package.json version to a -boon.N variant that tracks the gateway (e.g. 2026.6.11-boon.4) The package.json in extensions/msteams is updated to include the -boon.4 suffix in this PR.
✅ Document the change in CHANGELOG.md CHANGELOG.md contains an Unreleased entry describing the fork-publish of @openclaw/msteams and the release asset contract.

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread extensions/msteams/package.json Resolved
Comment thread CHANGELOG.md Resolved
@convyusboy

Copy link
Copy Markdown
Collaborator Author

CI note — dependency-guard failure is expected and needs a secops override.

The guard fires because extensions/msteams/package.json changed — but the only change is the version field (2026.6.11 → 2026.6.11-boon.4); no dependencies were added, removed, or bumped. Per the guard's policy this "dependency-graph change" needs a current admin / openclaw-secops override (vincentkoc / steipete / joshavant). Requesting that override.

actionlint and security-fast are green after the zizmor template-injection fix (00a3afd8d4 — pass the tag via env in the msteams pack step). Remaining checks are the standard fork test matrix (pending).

convyusboy and others added 2 commits July 18, 2026 08:19
…GELOG (PR #60 review)

- extensions/msteams/npm-shrinkwrap.json: bump the two version fields (root +
  packages[""]) 2026.6.11 -> 2026.6.11-boon.4 to match package.json. This fixes
  the `checks-node-core-tooling` failure: test/package-manager-config.test.ts
  ("ships shrinkwrap for every publishable plugin package") asserts the shrinkwrap
  version equals package.json's, so the tarball's lock metadata isn't stale.
- CHANGELOG.md: remove the `Unreleased` block. This repo adds a per-version
  `release: CHANGELOG section for <ver>` commit at tag-cut (e.g. #58 for boon.4)
  and package-changelog.mjs narrows to a versioned section; there's no Unreleased
  convention. The release-note context lives in the PR body + this commit instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…(PR #60 CI)

The msteams version bump to 2026.6.11-boon.4 failed checks-node-core-tooling
(test/plugin-npm-release.test.ts): parseReleaseVersion in npm-publish-plan.mjs
only recognized YYYY.M.PATCH[-N|-alpha.N|-beta.N], so a publishable plugin at
-boon.N was rejected as an unrecognized prerelease. msteams must stay publishable
(publishToNpm/publishToClawHub) or the release workflow's dist build no-ops.

Add a BOON_VERSION_REGEX arm parsed identically to the numeric `-N` correction
(stable channel + correctionNumber) — the same treatment src/infra/clawhub.ts
already gives -boon.N for the plugin API compat gate (getboon/openclaw PR #41). So
2026.6.11-boon.4 parses as a stable correction: publishTag "latest", sorts after
-boon.3 and after the plain 2026.6.11 base; -boon.0/-boon.x still rejected.

Verified: plugin-npm-release, npm-publish-plan, official-channel-catalog,
package-manager-config, openclaw-npm-release-check suites all pass (189 tests).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread scripts/lib/npm-publish-plan.mjs Resolved
Comment thread scripts/lib/npm-publish-plan.mjs Resolved
…uidance (PR #60 review)

Addresses the two open cubic P3s on getboon/openclaw PR #60:

- Validator guidance for an invalid publishable-plugin version now lists the
  supported `YYYY.M.PATCH-boon.N` form (3 message sites: resolvePublishablePluginVersion,
  collectPublishablePluginPackageErrors, collectReleaseTagErrors) so a rejected
  fork version is actionable. Existing assertions updated in lockstep.
- Add a focused regression suite for the `-boon.N` acceptance path in
  npm-publish-plan.mjs: parse (stable correction w/ correctionNumber), reject
  boon.0, publish-plan (latest + beta mirror), compare ordering, and patch-floor
  validity. Guards the matcher added in 8ff610d against silent regression.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@convyusboy

convyusboy commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Pushed 47572c1 addressing the two open cubic P3s (validator guidance now lists -boon.N; added a regression suite for the -boon.N parse/plan/compare/floor paths). All local checks green: vitest (109 pass incl. 5 new), tsc --noEmit, oxfmt --check, oxlint.

⚠️ Heads-up for secops: this push moved the head SHA 8ff610d91 → 47572c1ff3, which voids the earlier dependency-guard override (approval is per-SHA). The guard is the only remaining red check and it is still the same expected policy trip — extensions/msteams/package.json only changed its version field (2026.6.11 → 2026.6.11-boon.4) + the paired shrinkwrap version bump; no dependencies added/removed/bumped. Please re-run /allow-dependencies-change against 47572c1ff3 .

@holywend

Copy link
Copy Markdown

/allow-dependencies-change

@gandalfboon gandalfboon Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Clean release-plumbing PR (ENG-14431).

  • Ships fork-versioned @openclaw/msteams as a sibling Release asset — the durable fix for the fragile host-local SP-PATCH/dist-swap. Asset contract frozen + documented.
  • -boon.N validator arm parses identically to the numeric -N correction and mirrors the clawhub compat normalization from PR #41 — consistent with the existing pattern, no new tech debt.
  • Version guard (tag == msteams package version) blocks a drifted/mismatched asset from shipping. Good.
  • Zizmor template-injection addressed (tag passed via env, matching the gateway steps).
  • Shrinkwrap aligned to package.json; check-shrinkwrap green.
  • Tests cover the new regex arm: parse, reject boon.0, publish-plan, ordering, patch-floor.
  • No secrets in diff or history, no migrations, no breaking callers.

CI all green (107 pass). Note (non-blocking): a -boon.N sorts at the same rank as a hypothetical numeric -N correction of the same number, but the fork never emits numeric -N, so no real collision. Ship it.

@convyusboy
convyusboy merged commit fa1b8ea into boon Jul 20, 2026
136 of 137 checks passed
@convyusboy
convyusboy deleted the ridho/eng-14431-publish-fork-msteams branch July 20, 2026 08:25
convyusboy added a commit that referenced this pull request Jul 20, 2026
…-npm rationale (PR #61 review)

Addresses the two cubic review comments on PR #61:

- P1: root npm-shrinkwrap.json version fields were still at boon.3 (never bumped
  since #41), so the packed gateway tarball would ship shrinkwrap metadata not
  matching the boon.5 manifest — check-openclaw-package-tarball asserts they match.
  Bump both root version fields to 2026.6.11-boon.5. Version-string-only change; no
  dependency entries touched (pnpm-lock alignment unaffected; package-manager-config
  test passes 12/12).
- P3: the CHANGELOG rationale claimed `-boon.N` "has no npm-publish validator arm" —
  stale as of #60, which added BOON_VERSION_REGEX to the publish validator. Drop that
  clause; the upstream-owned @openclaw/* scope is the real (and sufficient) reason the
  fork ships msteams via GitHub Release.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
convyusboy added a commit that referenced this pull request Jul 20, 2026
Version-bump-only correction release boon.4 → boon.5. Ships the fork @openclaw/msteams release asset (#60, ENG-14431) + the msteams SharePoint file-link fix (#59). package.json + msteams package.json/shrinkwrap + root shrinkwrap all pinned to 2026.6.11-boon.5 in lockstep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants