From ad526fb092f075bf5d77e25399a696c583452869 Mon Sep 17 00:00:00 2001
From: Kris Watson
Date: Sat, 24 Oct 2026 20:52:23 -0700
Subject: [PATCH] chore: streamline standalone development and release
operations
Signed-off-by: Kris Watson
---
.dockerignore | 3 +
.env.example | 8 -
.../workflows/publish-thunderbird-addons.yml | 74 +-
.gitignore | 6 +-
AGENTS.md | 156 +-
README.md | 15 +-
SOURCE_REVIEW.md | 6 +-
compose.spike.yaml | 42 -
.../thunderclaw-openclaw-plugin-icon-256.png | Bin 52500 -> 0 bytes
docs/development.md | 13 +-
docs/installation.md | 22 +-
docs/privacy-policy.md | 2 +-
docs/release-operations.md | 43 +-
docs/release.md | 31 +-
docs/roadmap.md | 20 +-
.../thunderclaw-release-operations/SKILL.md | 18 +-
docs/testing.md | 40 +-
docs/upgrading.md | 14 +-
e2e/provider-trials/synthetic.ts | 57 +
e2e/qualification/counterpart-baselines.json | 15 -
e2e/qualification/real-agent/artifacts.d.mts | 1 -
e2e/qualification/real-agent/artifacts.mjs | 10 -
e2e/qualification/real-agent/evidence.d.mts | 6 -
e2e/qualification/real-agent/evidence.mjs | 9 -
.../real-agent/gateway-ready.d.mts | 10 -
.../real-agent/gateway-ready.mjs | 30 -
.../real-agent/loopback-relay.mjs | 135 -
.../real-agent/product_whole_list.py | 478 --
.../real-agent/provider-proxy.mjs | 65 -
e2e/qualification/real-agent/qualification.py | 790 --
e2e/qualification/real-agent/run.mjs | 538 --
e2e/thunderbird/Dockerfile | 1 +
e2e/thunderbird/received.py | 151 +
e2e/thunderbird/run_compose.py | 283 +-
e2e/thunderbird/run_upgrade.py | 178 -
e2e/thunderbird/stub_backend.py | 395 -
e2e/thunderbird/stub_inference.py | 156 +
fixtures/provider-trials/newsletter.json | 11 +
openclaw-autopilot-foundation.json | 27 -
openclaw-qualification.json | 24 -
package-lock.json | 7500 +----------------
package.json | 21 +-
packages/openclaw-plugin/LICENSE | 202 -
packages/openclaw-plugin/NOTICE | 5 -
packages/openclaw-plugin/README.md | 10 -
packages/openclaw-plugin/assets/icon.png | Bin 52500 -> 0 bytes
packages/openclaw-plugin/index.ts | 83 -
packages/openclaw-plugin/openclaw.plugin.json | 24 -
packages/openclaw-plugin/package.json | 34 -
packages/openclaw-plugin/src/agents.ts | 170 -
.../src/compatibility-fingerprint.ts | 153 -
.../src/compatibility-store.ts | 461 -
packages/openclaw-plugin/src/contracts.ts | 552 --
packages/openclaw-plugin/src/fallback.ts | 75 -
.../src/openclaw-agent-sessions.d.ts | 13 -
packages/openclaw-plugin/src/pairing-admin.ts | 84 -
.../src/pairing-cli-contract.ts | 215 -
.../src/pairing-cli-registration.ts | 23 -
.../src/pairing-cli-terminal.ts | 248 -
packages/openclaw-plugin/src/pairing-cli.ts | 777 --
.../openclaw-plugin/src/pairing-registry.ts | 670 --
packages/openclaw-plugin/src/pairing-route.ts | 235 -
packages/openclaw-plugin/src/probe.ts | 274 -
packages/openclaw-plugin/src/prompt.ts | 153 -
packages/openclaw-plugin/src/route.ts | 915 --
packages/openclaw-plugin/tsconfig.json | 13 -
.../src/connection-controller.ts | 1643 ----
.../src/direct-client.ts | 347 -
.../src/pairing-client.ts | 237 -
release-baselines.json | 60 -
scripts/bootstrap-spike.sh | 97 -
scripts/cancel-spike.ts | 37 -
scripts/check.d.mts | 2 +
scripts/check.mjs | 30 +
scripts/classify-change-scope.mjs | 37 +-
scripts/deepseek-capture-proxy.mjs | 47 -
scripts/generate-package-assets.mjs | 76 -
scripts/npm-pack-output.d.mts | 1 -
scripts/npm-pack-output.mjs | 13 -
scripts/openclaw-qualification.d.mts | 24 -
scripts/openclaw-qualification.mjs | 166 -
scripts/package-extension-source.mjs | 1 -
scripts/package-openclaw-plugin.mjs | 63 -
scripts/provider-trials.ts | 99 +
scripts/qualification-diagnostics.d.mts | 8 -
scripts/qualification-diagnostics.mjs | 46 -
scripts/qualification-readiness.ts | 54 -
scripts/qualify-gateway-startup.ts | 8 -
scripts/qualify-native-filesystem.ts | 184 -
scripts/qualify-pairing-recovery.ts | 134 -
scripts/qualify-pairing.ts | 497 --
scripts/release-metadata.d.mts | 2 +-
scripts/release-metadata.mjs | 19 +-
scripts/release-prepare.d.mts | 4 +
scripts/release-prepare.mjs | 107 +
scripts/release-status.d.mts | 3 +
scripts/release-status.mjs | 92 +
scripts/run-openclaw-ci.sh | 161 -
scripts/run-thunderbird-e2e.sh | 10 +-
scripts/run-thunderbird-upgrade-e2e.sh | 52 -
scripts/spike-client.ts | 41 -
scripts/spike-plugin-config.json | 4 -
scripts/sqlite-backup-file-set.ts | 58 -
scripts/stage-openclaw-provider.d.mts | 1 -
scripts/stage-openclaw-provider.mjs | 81 -
scripts/submit-thunderbird-addon.d.mts | 4 +-
scripts/submit-thunderbird-addon.mjs | 9 +-
scripts/sync-package-legal.mjs | 10 -
scripts/update-counterpart-baseline.d.mts | 13 -
scripts/update-counterpart-baseline.mjs | 128 -
scripts/validate-candidate-artifact.mjs | 48 +-
scripts/validate-release-baselines.d.mts | 15 -
scripts/validate-release-baselines.mjs | 72 -
scripts/verify-atn-release.d.mts | 12 +-
scripts/verify-atn-release.mjs | 25 +-
scripts/verify-counterpart-baseline.d.mts | 26 -
scripts/verify-counterpart-baseline.mjs | 74 -
scripts/verify-legacy-clawhub-release.mjs | 39 -
.../verify-legacy-marketplace-release.d.mts | 7 -
scripts/verify-legacy-marketplace-release.mjs | 73 -
scripts/verify-marketplace-notes.d.mts | 48 -
scripts/verify-marketplace-notes.mjs | 128 -
scripts/verify-marketplace-release-v1.d.mts | 10 -
scripts/verify-marketplace-release-v1.mjs | 100 -
scripts/verify-marketplace-release.d.mts | 8 +-
scripts/verify-marketplace-release.mjs | 6 +-
scripts/verify-openclaw-qualification.mjs | 12 -
site/index.html | 8 +-
test/background-coordinator.test.ts | 4 +-
test/candidate-artifact-validation.test.ts | 71 +-
test/change-scope.test.ts | 9 +-
test/clawhub-verification-progress.test.ts | 50 -
test/compatibility-store.test.ts | 555 --
test/connection-controller.test.ts | 1210 ---
test/contracts.test.ts | 981 ---
test/counterpart-baseline.test.ts | 74 -
test/direct-client-contract.test.ts | 100 -
test/direct-client.test.ts | 579 --
test/extension.test.ts | 22 +-
test/fallback.test.ts | 121 -
test/marketplace-publish.test.ts | 140 +-
test/native-inference-stub.test.ts | 50 +
test/npm-pack-output.test.ts | 31 -
test/openclaw-ci-diagnostics.test.ts | 78 -
test/openclaw-ci.test.ts | 108 -
test/openclaw-upgrade-tooling.test.ts | 79 -
test/pairing-cli-contract.test.ts | 126 -
test/pairing-cli-registration.test.ts | 98 -
test/pairing-cli-terminal.test.ts | 162 -
test/pairing-cli.test.ts | 493 --
test/pairing-client.test.ts | 260 -
test/pairing-controller.test.ts | 491 --
test/pairing-registry.test.ts | 294 -
test/pairing-route.test.ts | 152 -
test/plugin-runtime-config.test.ts | 254 -
test/provider-trials.test.ts | 80 +
test/qualification-artifact-inputs.test.ts | 25 -
test/qualification-diagnostics.test.ts | 41 -
test/qualification-readiness.test.ts | 63 -
test/real-agent-artifacts.test.ts | 22 -
test/real-agent-evidence.test.ts | 25 -
test/real-agent-gateway-ready.test.ts | 56 -
test/release-baselines.test.ts | 16 -
test/release-helpers.test.ts | 148 +
test/release-metadata.test.ts | 61 +-
test/release-workflow.test.ts | 28 +-
test/route.test.ts | 1861 ----
test/sqlite-backup-file-set.test.ts | 75 -
test/thunderbird-e2e-pinning.test.ts | 23 +-
tsconfig.json | 4 +-
170 files changed, 1698 insertions(+), 29636 deletions(-)
delete mode 100644 .env.example
delete mode 100644 compose.spike.yaml
delete mode 100644 docs/brand/assets/raster/icons/thunderclaw-openclaw-plugin-icon-256.png
create mode 100644 e2e/provider-trials/synthetic.ts
delete mode 100644 e2e/qualification/counterpart-baselines.json
delete mode 100644 e2e/qualification/real-agent/artifacts.d.mts
delete mode 100644 e2e/qualification/real-agent/artifacts.mjs
delete mode 100644 e2e/qualification/real-agent/evidence.d.mts
delete mode 100644 e2e/qualification/real-agent/evidence.mjs
delete mode 100644 e2e/qualification/real-agent/gateway-ready.d.mts
delete mode 100644 e2e/qualification/real-agent/gateway-ready.mjs
delete mode 100644 e2e/qualification/real-agent/loopback-relay.mjs
delete mode 100644 e2e/qualification/real-agent/product_whole_list.py
delete mode 100644 e2e/qualification/real-agent/provider-proxy.mjs
delete mode 100644 e2e/qualification/real-agent/qualification.py
delete mode 100644 e2e/qualification/real-agent/run.mjs
create mode 100644 e2e/thunderbird/received.py
delete mode 100644 e2e/thunderbird/run_upgrade.py
delete mode 100644 e2e/thunderbird/stub_backend.py
create mode 100644 e2e/thunderbird/stub_inference.py
create mode 100644 fixtures/provider-trials/newsletter.json
delete mode 100644 openclaw-autopilot-foundation.json
delete mode 100644 openclaw-qualification.json
delete mode 100644 packages/openclaw-plugin/LICENSE
delete mode 100644 packages/openclaw-plugin/NOTICE
delete mode 100644 packages/openclaw-plugin/README.md
delete mode 100644 packages/openclaw-plugin/assets/icon.png
delete mode 100644 packages/openclaw-plugin/index.ts
delete mode 100644 packages/openclaw-plugin/openclaw.plugin.json
delete mode 100644 packages/openclaw-plugin/package.json
delete mode 100644 packages/openclaw-plugin/src/agents.ts
delete mode 100644 packages/openclaw-plugin/src/compatibility-fingerprint.ts
delete mode 100644 packages/openclaw-plugin/src/compatibility-store.ts
delete mode 100644 packages/openclaw-plugin/src/contracts.ts
delete mode 100644 packages/openclaw-plugin/src/fallback.ts
delete mode 100644 packages/openclaw-plugin/src/openclaw-agent-sessions.d.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-admin.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-cli-contract.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-cli-registration.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-cli-terminal.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-cli.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-registry.ts
delete mode 100644 packages/openclaw-plugin/src/pairing-route.ts
delete mode 100644 packages/openclaw-plugin/src/probe.ts
delete mode 100644 packages/openclaw-plugin/src/prompt.ts
delete mode 100644 packages/openclaw-plugin/src/route.ts
delete mode 100644 packages/openclaw-plugin/tsconfig.json
delete mode 100644 packages/thunderbird-extension/src/connection-controller.ts
delete mode 100644 packages/thunderbird-extension/src/direct-client.ts
delete mode 100644 packages/thunderbird-extension/src/pairing-client.ts
delete mode 100644 release-baselines.json
delete mode 100755 scripts/bootstrap-spike.sh
delete mode 100644 scripts/cancel-spike.ts
create mode 100644 scripts/check.d.mts
create mode 100644 scripts/check.mjs
delete mode 100644 scripts/deepseek-capture-proxy.mjs
delete mode 100644 scripts/generate-package-assets.mjs
delete mode 100644 scripts/npm-pack-output.d.mts
delete mode 100644 scripts/npm-pack-output.mjs
delete mode 100644 scripts/openclaw-qualification.d.mts
delete mode 100644 scripts/openclaw-qualification.mjs
delete mode 100644 scripts/package-openclaw-plugin.mjs
create mode 100644 scripts/provider-trials.ts
delete mode 100644 scripts/qualification-diagnostics.d.mts
delete mode 100644 scripts/qualification-diagnostics.mjs
delete mode 100644 scripts/qualification-readiness.ts
delete mode 100644 scripts/qualify-gateway-startup.ts
delete mode 100644 scripts/qualify-native-filesystem.ts
delete mode 100644 scripts/qualify-pairing-recovery.ts
delete mode 100644 scripts/qualify-pairing.ts
create mode 100644 scripts/release-prepare.d.mts
create mode 100644 scripts/release-prepare.mjs
create mode 100644 scripts/release-status.d.mts
create mode 100644 scripts/release-status.mjs
delete mode 100644 scripts/run-openclaw-ci.sh
delete mode 100644 scripts/run-thunderbird-upgrade-e2e.sh
delete mode 100644 scripts/spike-client.ts
delete mode 100644 scripts/spike-plugin-config.json
delete mode 100644 scripts/sqlite-backup-file-set.ts
delete mode 100644 scripts/stage-openclaw-provider.d.mts
delete mode 100644 scripts/stage-openclaw-provider.mjs
delete mode 100644 scripts/sync-package-legal.mjs
delete mode 100644 scripts/update-counterpart-baseline.d.mts
delete mode 100644 scripts/update-counterpart-baseline.mjs
delete mode 100644 scripts/validate-release-baselines.d.mts
delete mode 100644 scripts/validate-release-baselines.mjs
delete mode 100644 scripts/verify-counterpart-baseline.d.mts
delete mode 100644 scripts/verify-counterpart-baseline.mjs
delete mode 100644 scripts/verify-legacy-clawhub-release.mjs
delete mode 100644 scripts/verify-legacy-marketplace-release.d.mts
delete mode 100644 scripts/verify-legacy-marketplace-release.mjs
delete mode 100644 scripts/verify-marketplace-release-v1.d.mts
delete mode 100644 scripts/verify-marketplace-release-v1.mjs
delete mode 100644 scripts/verify-openclaw-qualification.mjs
delete mode 100644 test/clawhub-verification-progress.test.ts
delete mode 100644 test/compatibility-store.test.ts
delete mode 100644 test/connection-controller.test.ts
delete mode 100644 test/contracts.test.ts
delete mode 100644 test/counterpart-baseline.test.ts
delete mode 100644 test/direct-client.test.ts
delete mode 100644 test/fallback.test.ts
create mode 100644 test/native-inference-stub.test.ts
delete mode 100644 test/npm-pack-output.test.ts
delete mode 100644 test/openclaw-ci-diagnostics.test.ts
delete mode 100644 test/openclaw-ci.test.ts
delete mode 100644 test/openclaw-upgrade-tooling.test.ts
delete mode 100644 test/pairing-cli-contract.test.ts
delete mode 100644 test/pairing-cli-registration.test.ts
delete mode 100644 test/pairing-cli-terminal.test.ts
delete mode 100644 test/pairing-cli.test.ts
delete mode 100644 test/pairing-client.test.ts
delete mode 100644 test/pairing-controller.test.ts
delete mode 100644 test/pairing-registry.test.ts
delete mode 100644 test/pairing-route.test.ts
delete mode 100644 test/plugin-runtime-config.test.ts
create mode 100644 test/provider-trials.test.ts
delete mode 100644 test/qualification-artifact-inputs.test.ts
delete mode 100644 test/qualification-diagnostics.test.ts
delete mode 100644 test/qualification-readiness.test.ts
delete mode 100644 test/real-agent-artifacts.test.ts
delete mode 100644 test/real-agent-evidence.test.ts
delete mode 100644 test/real-agent-gateway-ready.test.ts
delete mode 100644 test/release-baselines.test.ts
create mode 100644 test/release-helpers.test.ts
delete mode 100644 test/route.test.ts
delete mode 100644 test/sqlite-backup-file-set.test.ts
diff --git a/.dockerignore b/.dockerignore
index d84aca5..4faa758 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -2,3 +2,6 @@
!e2e/
!e2e/thunderbird/
!e2e/thunderbird/**
+!fixtures/
+!fixtures/provider-trials/
+!fixtures/provider-trials/newsletter.json
diff --git a/.env.example b/.env.example
deleted file mode 100644
index fa26aa7..0000000
--- a/.env.example
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copy to .env.openclaw.local and supply the real key there.
-# Never commit the populated local file.
-DEEPSEEK_API_KEY=
-
-# Generate a separate random value for local OpenClaw Gateway administration.
-# This credential is consumed by the Gateway and is never shipped in either
-# ThunderClaw distribution artifact.
-OPENCLAW_GATEWAY_TOKEN=
diff --git a/.github/workflows/publish-thunderbird-addons.yml b/.github/workflows/publish-thunderbird-addons.yml
index e620aaf..497aef4 100644
--- a/.github/workflows/publish-thunderbird-addons.yml
+++ b/.github/workflows/publish-thunderbird-addons.yml
@@ -10,14 +10,6 @@ on:
required: false
type: boolean
default: false
- reviewer_source_attached:
- required: false
- type: boolean
- default: false
- reviewer_testing_notes_entered:
- required: false
- type: boolean
- default: false
secrets:
ATN_JWT_ISSUER:
required: true
@@ -30,17 +22,7 @@ on:
required: true
type: string
verify_metadata_only:
- description: Verify public XPI and release notes after the Developer Hub handoff
- required: false
- type: boolean
- default: false
- reviewer_source_attached:
- description: Confirm the exact reviewer source ZIP was attached manually
- required: false
- type: boolean
- default: false
- reviewer_testing_notes_entered:
- description: Confirm private reviewer testing notes were entered manually
+ description: Verify the existing public XPI and report release-note status
required: false
type: boolean
default: false
@@ -70,13 +52,21 @@ jobs:
exit 1
}
- - name: Check out the tagged publication automation
+ - name: Check out reviewed publication automation
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
- ref: ${{ inputs.tag }}
+ ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
+ - name: Check out the immutable tagged source
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ with:
+ ref: ${{ inputs.tag }}
+ path: release-source
+ fetch-depth: 1
+ persist-credentials: false
+
- name: Verify publication tag commit belongs to main
env:
RELEASE_TAG: ${{ inputs.tag }}
@@ -84,11 +74,15 @@ jobs:
run: |
set -euo pipefail
commit=$(git rev-parse "refs/tags/$RELEASE_TAG^{commit}")
- test "$(git rev-parse HEAD)" = "$commit" || {
+ test "$(git -C release-source rev-parse HEAD)" = "$commit" || {
echo "Checked out source must match the publication tag commit" >&2
exit 1
}
git fetch --no-tags origin '+refs/heads/main:refs/remotes/origin/main'
+ git merge-base --is-ancestor HEAD refs/remotes/origin/main || {
+ echo "Publication automation commit must be contained in origin/main" >&2
+ exit 1
+ }
git merge-base --is-ancestor "$commit" refs/remotes/origin/main || {
echo "Release tag commit must be contained in origin/main" >&2
exit 1
@@ -113,7 +107,7 @@ jobs:
mkdir -p release/assets
mkdir release/canonical
gh release download "$RELEASE_TAG" --dir release/assets
- mise exec -- node scripts/release-metadata.mjs --tag "$RELEASE_TAG" --notes-output release/canonical/release-notes.md
+ mise exec -- node scripts/release-metadata.mjs --root release-source --tag "$RELEASE_TAG" --notes-output release/canonical/release-notes.md
gh release view "$RELEASE_TAG" --json body --jq .body > release/github-release-notes.md
mise exec -- node --input-type=module <<'NODE'
import { readFile } from "node:fs/promises";
@@ -146,7 +140,7 @@ jobs:
THUNDERCLAW_XPI: ${{ github.workspace }}/release/assets/thunderclaw-thunderbird-${{ steps.release.outputs.version }}.xpi
run: mise exec -- node scripts/submit-thunderbird-addon.mjs | tee "$RUNNER_TEMP/atn-submission.json"
- - name: Record mandatory Developer Hub handoff
+ - name: Record accepted upload and next verification
if: ${{ !inputs.verify_metadata_only && success() }}
env:
RELEASE_TAG: ${{ inputs.tag }}
@@ -154,21 +148,15 @@ jobs:
shell: bash
run: |
{
- echo "### Mandatory ATN Developer Hub handoff — publication incomplete"
+ echo "### ATN accepted the XPI — public verification pending"
echo
- echo "The signing API accepted the XPI, but it cannot set ATN release notes, attach reviewer source, or enter private reviewer testing notes for ${RELEASE_TAG}. This workflow is not a completed marketplace publication."
- echo "In Developer Hub: (1) set release notes from the canonical GitHub release; (2) attach thunderclaw-thunderbird-source-${RELEASE_VERSION}.zip; and (3) enter the reviewer testing notes for exact-byte reproduction and the bounded Generate/Preview/Apply/Undo smoke procedure."
- echo "Verify all three fields before treating this release as submitted for review."
+ echo "The signing API accepted ${RELEASE_TAG}. ATN may publish automatically; inspect Developer Hub for this version's actual reviewer requirements."
+ echo "If ATN requests source or private testing notes, supply thunderclaw-thunderbird-source-${RELEASE_VERSION}.zip and the canonical reviewer instructions for this same version."
+ echo "Run verify_metadata_only for this existing tag to verify the public XPI and report release-note status. Do not upload again while waiting for review."
} >> "$GITHUB_STEP_SUMMARY"
- - name: Require manual handoff confirmations for metadata verification
- if: ${{ inputs.verify_metadata_only && (!inputs.reviewer_source_attached || !inputs.reviewer_testing_notes_entered) }}
- run: |
- echo "Confirm both the exact reviewer source archive and private reviewer testing notes in Developer Hub before verification" >&2
- exit 1
-
- - name: Verify and download public ATN-signed XPI and canonical release notes
- if: ${{ inputs.verify_metadata_only && inputs.reviewer_source_attached && inputs.reviewer_testing_notes_entered }}
+ - name: Verify and download public ATN XPI and report release notes
+ if: ${{ inputs.verify_metadata_only }}
run: |
mise exec -- node scripts/verify-atn-release.mjs \
--version '${{ steps.release.outputs.version }}' \
@@ -178,7 +166,7 @@ jobs:
| tee "$RUNNER_TEMP/atn-submission.json"
- name: Verify public XPI is identical or adds only signature metadata
- if: ${{ inputs.verify_metadata_only && inputs.reviewer_source_attached && inputs.reviewer_testing_notes_entered }}
+ if: ${{ inputs.verify_metadata_only }}
env:
RELEASE_VERSION: ${{ steps.release.outputs.version }}
run: |
@@ -188,24 +176,28 @@ jobs:
| tee "$RUNNER_TEMP/atn-payload-verification.json"
- name: Smoke-test the exact public ATN-signed XPI
- if: ${{ inputs.verify_metadata_only && inputs.reviewer_source_attached && inputs.reviewer_testing_notes_entered }}
+ if: ${{ inputs.verify_metadata_only }}
env:
THUNDERCLAW_E2E_ARTIFACTS: ${{ runner.temp }}/atn-smoke
THUNDERCLAW_E2E_VERSIONS: 153.0.3
+ THUNDERCLAW_E2E_EXPECTED_VERSION: ${{ steps.release.outputs.version }}
THUNDERCLAW_E2E_XPI: ${{ runner.temp }}/thunderclaw-atn-signed-${{ steps.release.outputs.version }}.xpi
run: mise exec -- npm run test:e2e:thunderbird
- name: Record verified ATN metadata
- if: ${{ inputs.verify_metadata_only && inputs.reviewer_source_attached && inputs.reviewer_testing_notes_entered && success() }}
+ if: ${{ inputs.verify_metadata_only && success() }}
env:
RELEASE_TAG: ${{ inputs.tag }}
RELEASE_VERSION: ${{ steps.release.outputs.version }}
shell: bash
run: |
{
- echo "### Verified ATN submission metadata"
+ echo "### Verified public ATN artifact"
+ echo
+ echo "ATN exposes the public XPI for ${RELEASE_TAG}; its payload matches the qualified XPI and that exact public artifact passed Generate/Preview/Apply/Undo smoke. Reviewer source and private testing-note requirements must be checked in Developer Hub if ATN requests them."
echo
- echo "ATN exposes the signed XPI and canonical release notes for ${RELEASE_TAG}; its unsigned payload matches the qualified XPI, the signed XPI passed Generate/Preview/Apply/Undo smoke, and the maintainer confirmed both reviewer source and private testing notes in Developer Hub."
+ notes_status=$(jq -r .releaseNotesStatus "$RUNNER_TEMP/atn-submission.json")
+ echo "Public release notes: ${notes_status}. Release-note metadata can be maintained separately; it does not block artifact verification."
} >> "$GITHUB_STEP_SUMMARY"
- name: Retain ATN result
diff --git a/.gitignore b/.gitignore
index 604667a..a2d9724 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,6 @@
# Environment files and local secrets
.env
.env.*
-!.env.example
# Required repository configuration (overrides common global ignore rules)
!.mise.toml
@@ -22,7 +21,7 @@ venv/
__pycache__/
*.py[cod]
-# Local OpenClaw test environment
+# Private local state retained after backend retirement
.spike/
# Editor and OS metadata
@@ -34,3 +33,6 @@ __pycache__/
*~
.DS_Store
Thumbs.db
+
+# Recovery backups from interrupted local release preparation
+.thunderclaw-release-prepare-*/
diff --git a/AGENTS.md b/AGENTS.md
index ba1611d..479effc 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,94 +1,62 @@
-# Project agent instructions
-
-## Project identity
-
-This project is named **ThunderClaw**. Use `ThunderClaw` in user-facing text
-and `thunderclaw` in package names, routes, environment variables,
-Docker resources, and generated artifacts.
-
-## Runtime and verification
-
-This project uses `mise` for managed runtimes. In non-interactive shells, run
-Node.js and package tools with `mise exec --`.
-
-For ordinary changes, run:
-
-```text
-mise exec -- npm test
-mise exec -- npm run typecheck
-```
-
-When changing the Thunderbird extension, also run:
-
-```text
-mise exec -- npm run build:extension
-```
-
-## Repository layout
-
-- `packages/thunderbird-extension/`: Thunderbird extension source and icons
-- `test/`: deterministic unit, contract, lifecycle, and boundary tests
-- `e2e/`: real Thunderbird and protected qualification tooling
-- `fixtures/`: cross-boundary conformance fixtures
-- `scripts/`: build and repeatable qualification entry points
-- `docs/`: evergreen product, protocol, security, release, and brand material
-- `docs/roadmap.md`: the authoritative unfinished priority list
-
-The background and Thunderbird mutation boundaries independently validate product
-data. Use conformance fixtures; do not collapse their validation responsibilities.
-
-## Product and architecture invariants
-
-- ThunderClaw is a standalone Thunderbird MailExtension that calls a user-configured
- OpenAI-compatible inference endpoint. Do not add a mandatory relay, native helper,
- agent framework, or core application patch. Retained legacy source is not part
- of the standalone runtime.
-- Thunderbird owns message and compose DOM mutation. Never insert
- model-produced HTML, let a model send mail, or let it change recipients,
- attachments, or headers.
-- Inference uses the explicitly configured endpoint/model, stateless requests,
- disabled model-callable tools, and strict JSON validation. The current Thunderbird
- snapshot is authoritative; request/run/hash identities remain locally owned.
-- Preserve separate Generate/Preview, Apply, Undo, and normal Send decisions.
-- Treat email as untrusted input. Preserve request and run identity,
- generation, target/context hashes, output limits, exact segment IDs, and
- stale-result validation on both sides of the boundary.
-- Provider configuration and persistent user-supplied API keys belong to the extension
- background. Bind keys to the configured endpoint; never synchronize or expose them
- to email scripts, diagnostics, or public settings. Do not claim local storage is encrypted.
-- Keep the stable extension ID `thunderclaw@addons.thunderbird.net` unless a
- planned migration updates every dependent boundary.
-
-## Local state and sensitive data
-
-Persistent local state under `.spike/`, populated environment files, generated
-`build/` output, and retained qualification evidence are ignored but may contain credentials,
-message content, and environment details.
-
-- Do not print, commit, document, copy, or package populated values.
-- Do not delete, recreate, or overwrite ignored state unless the task
- explicitly requires a clean environment.
-- Inspect running services before restarting them; avoid destructive Compose
- commands and restart only the service required by the change.
-- Use synthetic data in tests and sanitize retained evidence.
-
-## Distribution
-
-Before creating tags, publishing, approving release jobs, or recovering a failed
-release, read `docs/release.md` and `docs/release-operations.md`. Use the
-repo-owned skill at `docs/skills/thunderclaw-release-operations/SKILL.md` for
-release operations; it routes to those authoritative documents.
-
-Internal automation, publishing-tool, test-harness, documentation, and skill
-changes do not require a product version bump, tag, or release. Validate them
-with ordinary CI, executable workflow regressions, or a sandbox as appropriate.
-For recovery, establish the publication stage from evidence before choosing an
-action. Preserve qualified bytes and immutable public release identity.
-
-Only the standalone Thunderbird extension is published. Its manifest version,
-component-scoped root changelog entry, `thunderbird-extension-vX.Y.Z` tag, and
-GitHub release identify one XPI and one allowlisted Mozilla reviewer source ZIP.
-Build candidates once, record their digests, qualify those exact bytes, and
-promote them without rebuilding. No companion artifact belongs to this release
-path. Preserve historical releases, immutable tags, retained validation tools, and
-private local state during separately scoped legacy cleanup.
+# ThunderClaw agent instructions
+
+## Runtime and checks
+
+Use Node/package tools through `mise exec --`. Start with `mise exec -- npm ci`.
+Run `mise exec -- npm run check` for sequential tests, typecheck, extension build,
+reviewer source packaging, and site build. Use documented narrower scopes for
+focused edits; avoid concurrent default builds/tests sharing `build/`.
+
+## Source map
+
+- `packages/thunderbird-extension/src/`: settings, inference, capture, Preview,
+ Apply/Undo, and received-message tools.
+- `test/`: deterministic safety, lifecycle, transport, and workflow regressions.
+- `e2e/thunderbird/`: real Thunderbird harnesses and synthetic fixtures.
+- `scripts/`: checks, packaging, release preparation/status, and provider trials.
+- `docs/roadmap.md`: unfinished work only; update it when work is completed.
+- `docs/development.md`, `docs/testing.md`: executable commands and evidence limits.
+
+The old backend and its tooling are in Git history. Some local lifecycle type
+names remain historical; follow the active entry graph before removing code.
+Legacy credential migration in the inference controller remains supported.
+
+## Product boundaries
+
+Use **ThunderClaw** in user-facing text and `thunderclaw` in identifiers/artifacts.
+Keep extension ID `thunderclaw@addons.thunderbird.net` stable.
+
+- The standalone MailExtension uses the explicitly chosen OpenAI-compatible
+ endpoint/model. No mandatory relay, native helper, tools, or automatic fallback.
+- Thunderbird owns DOM mutation, sending, recipients, headers, and attachments.
+ Models return bounded typed content, never HTML or authorization metadata.
+- Preserve Generate/Preview, Apply, Undo, and normal Send as separate decisions.
+- Treat email, model output, preferences, and provider errors as untrusted data.
+ Keep strict independent inference/editor validation and local request/run,
+ generation, target/context/message identities. Reject stale or partial output.
+- The background owns provider keys. Scope keys to the exact endpoint/provider;
+ never expose them to email scripts, logs, public state, or synchronized storage.
+ Persistent local profile storage is not an encrypted vault.
+
+## Local state
+
+Use synthetic mail in tests. Never print, commit, package, overwrite, or delete
+populated `.spike/`, environment files, credentials, private mail, or retained
+evidence during ordinary work. Ignored state can be sensitive. Inspect services
+before changing them and limit changes to the task's authorized scope.
+
+## Releases
+
+Read `docs/release.md`, `docs/release-operations.md`, and the repo-owned
+`docs/skills/thunderclaw-release-operations/SKILL.md` before release operations.
+Use `release:prepare` for a new version and `release:status` for observed stages.
+These helpers do not grant publication permission.
+
+Only the extension is published: canonical `thunderbird-extension-vX.Y.Z`, one
+XPI, matching reviewer ZIP, notes, checksums, and provenance. Build once, qualify
+exact bytes, and promote without rebuilding. Preserve immutable public tags,
+releases, and attestations. Internal tooling/docs changes need no product release.
+
+ATN may publish automatically. Verify the public download; reviewer source/notes
+are supplied when requested, not assumed to be a mandatory manual handoff.
+Distinguish accepted upload, public version, verified payload, and unknown state.
diff --git a/README.md b/README.md
index 59e52ee..0fea8f6 100644
--- a/README.md
+++ b/README.md
@@ -24,8 +24,7 @@
Contributing
-> [!NOTE]
-> This checkout contains the standalone extension. It connects directly to your chosen provider or local model. The standalone candidate has not yet completed marketplace publication; check the exact version and release notes when downloading an older published build.
+> Install ThunderClaw from [Thunderbird Add-ons](https://addons.thunderbird.net/en-US/thunderbird/addon/thunderclaw/). The standalone extension connects directly to your chosen provider or local model.
## AI assistance without handing over your inbox
@@ -92,13 +91,13 @@ See [architecture](docs/architecture.md) and [security and privacy](docs/securit
## Installation
-Install the XPI through Thunderbird's **Add-ons and Themes → gear menu →
-Install Add-on From File**, then open ThunderClaw settings. Choose a provider,
+Install from [Thunderbird Add-ons](https://addons.thunderbird.net/en-US/thunderbird/addon/thunderclaw/), then open ThunderClaw settings. Choose a provider,
load or enter a model, save your key and connection, grant host access, and click
**Test connection**. Your key stays saved across restarts.
-For this development candidate, build the XPI from the checkout using the commands
-below. See [installation and connection setup](docs/installation.md) for provider
+For local development, build the XPI from this checkout and install it through
+Thunderbird’s **Add-ons and Themes → gear menu → Install Add-on From File**.
+See [installation and connection setup](docs/installation.md) for provider
presets, local servers, troubleshooting, and upgrade guidance. Installing a newer
XPI updates the existing add-on; uninstalling first is unnecessary.
@@ -112,9 +111,7 @@ ThunderClaw uses Node.js through [`mise`](https://mise.jdx.dev/):
```bash
mise exec -- npm ci
-mise exec -- npm test
-mise exec -- npm run typecheck
-mise exec -- npm run build
+mise exec -- npm run check
```
The main source and verification paths are:
diff --git a/SOURCE_REVIEW.md b/SOURCE_REVIEW.md
index 9ea4946..93c8de4 100644
--- a/SOURCE_REVIEW.md
+++ b/SOURCE_REVIEW.md
@@ -59,7 +59,5 @@ The extension source is under `packages/thunderbird-extension/src/`; the build
entry point is `scripts/build-extension.mjs`. The root `package.json`, workspace
package metadata, `.mise.toml`, and lockfile define the complete build toolchain.
-Retained legacy source and workspace metadata remain as inactive
-migration/development inputs; esbuild includes only the standalone inference entry graph
-in the standalone XPI. The root lockfile retains legacy test dependencies; those
-are build/development dependencies and are not bundled as inference runtimes.
+The source archive and lockfile contain only the standalone extension workspace
+and its build and test dependencies. No backend runtime is installed or bundled.
diff --git a/compose.spike.yaml b/compose.spike.yaml
deleted file mode 100644
index 664648c..0000000
--- a/compose.spike.yaml
+++ /dev/null
@@ -1,42 +0,0 @@
-name: thunderclaw-spike
-
-services:
- capture-proxy:
- image: node:24.19.0-alpine
- user: "${THUNDERCLAW_COMPOSE_USER:-1000:1000}"
- env_file:
- - .env.openclaw.local
- volumes:
- - ./scripts/deepseek-capture-proxy.mjs:/app/proxy.mjs:ro
- - ./.spike/evidence:/evidence
- command: ["node", "/app/proxy.mjs"]
- init: true
- restart: unless-stopped
- security_opt:
- - no-new-privileges:true
- cap_drop:
- - ALL
-
- gateway:
- image: ghcr.io/openclaw/openclaw:2026.10.7@sha256:c8e82624d59d565afaac118c70b9380693c31bf6ec7b99dab2236c6ee0625b60
- user: "${THUNDERCLAW_COMPOSE_USER:-1000:1000}"
- env_file:
- - .env.openclaw.local
- environment:
- HOME: /home/node
- NPM_CONFIG_CACHE: /home/node/.cache/npm
- NODE_ENV: development
- OPENCLAW_DISABLE_BONJOUR: "1"
- volumes:
- - ./.spike/thunderclaw-openclaw:/home/node/.openclaw
- - ./.spike/thunderclaw-openclaw-cache:/home/node/.cache
- - ./:/workspace/thunderclaw:ro
- ports:
- - "${THUNDERCLAW_GATEWAY_BIND_ADDRESS:-127.0.0.1}:18789:18789"
- command: ["node", "openclaw.mjs", "gateway", "--port", "18789"]
- init: true
- restart: unless-stopped
- security_opt:
- - no-new-privileges:true
- cap_drop:
- - ALL
diff --git a/docs/brand/assets/raster/icons/thunderclaw-openclaw-plugin-icon-256.png b/docs/brand/assets/raster/icons/thunderclaw-openclaw-plugin-icon-256.png
deleted file mode 100644
index bdfbab2eb081ab57ed68dec781915e38bee36bba..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 52500
zcmb4qhf`B|_x`(UAt(rm^lD-#0tx{EBMM6(LO^K}NKIc5obIv`7WMO8+e@^1ufBy3y
zevGl9)qno;8}Rtse?Vt}n`2;!+kgJU8pjywTR;14=~LKyznA)=KX&Vy!guO(=jL)a
z1J^NG?`q`w(gUy5{E=_b_1~z^)~)9+B%ZoZP?#63oos2jcZ#Vm6SDxe%wBwKsdA<@
zzaR?M_xt>?NSLWNg>zkD;lu99u>bHu6Qfu6;~67q3(C^&({KO&b&BVL)Q!jg9}my0
zNT!{`FJP0aeepW`qFgm=BJsy?`vWH
z;ZN3^C+bIDj9-nrysNh`@cr|Q!K{IRe4Wf_PwSWG>muSw7e;S2G~Ng=NWXs8+qX7h
z&@J~ych9?`*=IlU4Q98KRMZn4f+GS86;%1goA*|7B6oDm5+Z+vztfU=nBDaB*Fc+s
z