IMPORTANT
AI Context & Knowledge Heritage
- Subsystem: Architecture & Documentation / Core Docs / RELEASE_PROCESS
- Architecture:
@docs ARCHITECTURE:Documentation - Failure Path: Version drift, mutable tags, unverified binaries, or private/public source mismatch.
- Observability:
version:check,changelog:check,execution/parity_guard.py, GitHub Actions release logs, andrelease-provenance.json.
🚀 Tadpole OS release process
Status: Active Last Verified: 2026-08-24 Classification: Sovereign
version.json is the product release authority. Its api_document_version is independent because the OpenAPI document can change without a product release. Its android_version_code is a monotonically increasing package counter; it is not SemVer.
Prepare a release
- Move the intended entries from
[Unreleased]into a new dated## [X.Y.Z] - YYYY-MM-DDsection inCHANGELOG.md, leaving an empty[Unreleased]section first. - Run
npm run version:bump -- --bump X.Y.Z. This updates every declared product surface and increments the Android counter exactly once. Use--android-code Nonly to recover from a store-assigned counter, and--api-version X.Y.Zonly when the API document version should also change. - Run
npm run version:check,npm run version:test, andnpm run changelog:checkbefore opening the release pull request. - Merge only after the required CI checks pass on the exact pull-request head.
- Create and push the annotated tag
vX.Y.Zfrom that verifiedmaincommit. Do not move or reuse a release tag.
The tag build creates the private GitHub Release and publishes it only after all platform artifacts are present. Publishing that private release triggers the public mirror. The mirror binds the public release tag to the current sanitized public main commit, verifies its product version, adds a provenance manifest, uploads assets without overwriting existing names, and only then publishes the release.
IMPORTANT
Dispatch Check (IDENTITY.md Directive #7): Check the engine's actual dispatch_paused state and active work before tagging. Budget exhaustion does not create a global STASIS state or release lockout.
Required local verification
Run the focused release guards first:
npm run version:check
npm run version:test
npm run changelog:checkThen run the normal system verification in proportion to the release:
python execution/verify_all.py
python execution/parity_guard.py .
npm run build
npm run test
cargo build --locked --release --manifest-path server-rs/Cargo.tomlSnapshot channels versus releases
mainin the public repository is a force-updated, sanitized source snapshot.latestis a movable snapshot tag for automation that explicitly opts into non-immutable source.vX.Y.Ztags and GitHub Releases are immutable release records. They are never created by the snapshot sync.- Manually triggered container builds publish
latestand commit-SHA image tags, and retain their tarball as an Actions artifact. They do not create a GitHub Release.
🔏 Desktop Binary Signing, Notarization & Update Manifests
All desktop distribution packages must be signed and notarized prior to public GitHub Release publication:
1. Windows Authenticode Code Signing
- Procure an Extended Validation (EV) Code Signing Certificate or Azure Trusted Signing identity.
- Run the signing script with your certificate thumbprint:powershell
./scripts/sign-release.ps1 -TargetPath "dist/AI-Tadpole-OS_1.1.464_x64-setup.exe" -CertificateThumbprint "YOUR_THUMBPRINT" - Verify signature and timestamping:powershell
Get-AuthenticodeSignature "dist/AI-Tadpole-OS_1.1.464_x64-setup.exe"
2. macOS Apple Notarization
- Build the Universal 2 DMG using
bash scripts/build-macos-universal.sh(outputssrc-tauri/target/universal-apple-darwin/release/bundle/dmg/AI-Tadpole-OS_1.1.464_universal.dmg). - Sign the disk image with your Developer ID Application certificate:bash
codesign --force --verify --verbose --sign "Developer ID Application: Team Name (Team ID)" src-tauri/target/universal-apple-darwin/release/bundle/dmg/AI-Tadpole-OS_1.1.464_universal.dmg - Submit to the Apple Notary service:bash
xcrun notarytool submit src-tauri/target/universal-apple-darwin/release/bundle/dmg/AI-Tadpole-OS_1.1.464_universal.dmg --keychain-profile "AC_PASSWORD" --wait - Staple the notarization ticket to the DMG:bash
xcrun stapler staple src-tauri/target/universal-apple-darwin/release/bundle/dmg/AI-Tadpole-OS_1.1.464_universal.dmg
3. Generate Tauri v2 Auto-Update Manifest
Before publishing the GitHub Release assets, generate the Tauri v2 update manifest:
node scripts/generate-update-manifest.mjs --version 1.1.464 --output dist/latest.jsonUpload dist/latest.json alongside the platform release assets so installed desktop clients can discover and apply updates automatically.
Supported operator paths
- Run
./scripts/build-linux-light.ps1for Docker-backed.deband.AppImagebundles indist/linux-light/. - Run
npm run tauri:build:macos(orbash scripts/build-macos-universal.sh) on a macOS host for a Universal 2.dmgtargeting both Apple Silicon and Intel Macs. Sidecar slices are compiled foraarch64-apple-darwinandx86_64-apple-darwin, then merged withlipo -create. - Run
./scripts/deploy-linuxlite.ps1for a direct SSH deployment after reviewing its target host and user. - Run
./scripts/publish-public.ps1to inspect the sanitized.tmp/public-release/snapshot locally. The workflow, not this script, owns public release tags.
Required GitHub settings
These repository settings are external to the codebase and must be configured by an administrator:
- Protect private
main: require the version guard, Rust, frontend, and security jobs; require the branch to be current; block force pushes and deletion. - Protect
v*tags from update or deletion, and enable immutable releases if the repository plan exposes that setting. - Grant release creation and public mirroring only to a dedicated GitHub App or tightly scoped automation identity. The current workflows still consume
PUBLIC_REPO_TOKEN; rotate it and replace it with a GitHub App installation token when available. - Protect public
mainfrom human pushes while allowing only the sanitizer identity to replace the snapshot. - Keep Actions artifact and release retention long enough to satisfy the project audit policy.
Break-glass recovery
Never rewrite a published tag or asset. If a release is wrong, document the reason, mark it withdrawn or prerelease as policy permits, fix the source on a new pull request, and issue a higher SemVer version. If the public snapshot or mirror identity is compromised, disable both workflows and revoke the credential before attempting a replacement release.
Post-release checks
- Verify the dashboard can authenticate with a real
NEURAL_TOKEN, and confirmRequireAdminroutes return403 ForbiddenforNEURAL_TOKENand200 OKwhen elevated withNEURAL_ADMIN_TOKEN(plus 64-hexOVERSIGHT_PUBLIC_KEYpinned in production). - Confirm WebSocket connectivity on
/v1/engine/ws. - Smoke-test task dispatch, an oversight flow, and one starter-kit or template install path when those surfaces changed.
- Verify the public tag points to sanitized source with the released version and that every public asset appears in
release-provenance.json. - macOS: Run
bash scripts/verify-macos-bundle.sh; it requires both slices and signatures for the shell and bundled engine, plus a nonempty.dmg. Then mount the image and install/launch on Apple Silicon and Intel, verify token-authenticated UI/engine communication, data persistence under Application Support, and sidecar shutdown. Repeat with an absoluteTADPOLE_DATA_DIRcontaining spaces and an unwritable override. A passing artifact check alone is not native runtime certification.
