Release Checklist and Support Policy

June 29, 2026 ยท View on GitHub

Last reviewed: 2026-05-12

This document defines the operational checklist for Lemon 1.0 release candidates, rollback handling, and public support boundaries.

Initial 1.0 Support Matrix

The initial stable 1.0 release artifact support target is:

AreaSupported for 1.0Notes
Release artifactsLinux x86_64 tarballsBuilt by .github/workflows/release.yml on ubuntu-latest
Release profileslemon_runtime_min, lemon_runtime_fullBoth must boot from extracted tarballs before stable 1.0
Source installLinux and macOS, best effortRequires Elixir 1.19.5+ and Erlang/OTP 28.5+
WindowsNot supported for 1.0Use WSL or source-level experimentation
Auto-updateNot supported for 1.0mix lemon.update remains a local maintenance task
Install scriptNot supported for 1.0Source install and verified tarballs are the supported paths
Hosted Lemon serviceNot supported for 1.0Lemon is local-first/self-hosted
Stable remote channelTelegramText-first support boundary; other channel adapters are preview unless promoted

Expanding release artifacts to macOS or other platforms requires release-matrix work, local artifact proof, and support-bundle verification for each target.

Release Candidate Checklist

Before cutting a stable release:

  • Confirm mix.exs version matches the intended tag.

  • Confirm CHANGELOG.md has a section for the release.

  • Run scripts/prepare_release_notes {version} and confirm the output is useful for release notes.

  • Run scripts/lint_ci_docs.sh and confirm the first-party version metadata and BEAM toolchain pin checks pass.

  • Run scripts/verify_source_install on a clean source checkout to prove the supported source path still checks toolchain availability, locked dependency resolution, source-wrapper help discoverability, warning-free compile, source-wrapper non-interactive setup dispatch, source-wrapper promoted channel readiness, source-wrapper config validation, source-wrapper model catalog listing, source-wrapper provider readiness listing, source-wrapper model policy listing, source-wrapper proof artifact listing, source-wrapper media diagnostics, source-wrapper readiness summary, source-wrapper secrets status, source-wrapper skill listing, source-wrapper usage diagnostics, source-wrapper stage-1 local update dry-run dispatch, source-wrapper doctor JSON diagnostics, and redacted support-bundle generation.

  • Run scripts/test fast.

  • Run scripts/test quality.

  • Run scripts/test clients so the Python CLI lint/test/package build and the Node client checks match CI before release.

  • Run scripts/test eval-fast.

  • Run scripts/test live-eval with release-candidate eval credentials, or dispatch .github/workflows/live-eval.yml with LEMON_EVAL_API_KEY configured as a repository secret. Local runs may use LEMON_EVAL_API_KEY_SECRET or INTEGRATION_API_KEY_SECRET to point at a Lemon secret.

    ```bash
    gh secret set LEMON_EVAL_API_KEY --repo z80dev/lemon
    
    mix lemon.secrets.set release_eval_api_key <token>
    LEMON_EVAL_API_KEY_SECRET=release_eval_api_key scripts/test live-eval
    
    gh workflow run live-eval.yml \
      --ref v2026.05.0 \
      -f iterations=3 \
      -f live_timeout_ms=90000
    gh run list --workflow live-eval.yml --limit 5
    gh run watch {run-id} --exit-status
    ```
    
    This is the minimum live-model eval matrix for stable 1.0: the full
    current `scripts/test live-eval` lane must pass at least once for the
    release candidate. It covers prior-work memory search, skill capture,
    skill curation, blocked cron tooling for scheduled runs, and parallel
    child delegation before answering.
    
  • Rerun the Telegram live matrix for the stable text-first plus document-delivery boundary using the established Telethon credentials and Lemonade Stand group/topics.

    ```bash
    scripts/live_telegram_matrix.py --timeout 90
    scripts/live_telegram_matrix.py --skip-dm --topic-id 35 \
      --topic-isolation \
      --isolation-topic-id 35 \
      --isolation-topic-id 16456 \
      --timeout 180
    scripts/live_telegram_matrix.py --skip-dm --topic-id 35 \
      --topic-cancel \
      --cancel-topic-id 35 \
      --timeout 95
    scripts/live_telegram_matrix.py --skip-dm --topic-id 35 \
      --topic-tool-rendering \
      --topic-markdown \
      --timeout 160
    scripts/live_telegram_matrix.py --skip-dm --topic-id 35 \
      --topic-approval \
      --approval-topic-id 35 \
      --timeout 180
    scripts/live_telegram_matrix.py --skip-dm --topic-id 35 \
      --topic-long-output \
      --long-output-topic-id 35 \
      --timeout 120
    scripts/live_telegram_matrix.py --skip-dm --skip-topic \
      --topic-file-get \
      --file-get-topic-id 35 \
      --timeout 90
    ```
    
    Also run the two-step topic restart/dedupe proof after restarting
    `./bin/lemon`. The proof must cover DM, group forum-topic routing, topic
    isolation, cancellation, approval buttons, tool success/failure status,
    markdown/code rendering, long output, document delivery, and duplicate
    avoidance after restart.
    
  • For Hermes-parity readiness, run the external-sender manual Discord matrix and keep the result JSON for the final audit.

    ```bash
    mix run --no-start scripts/live_discord_dedupe_proof.exs
    mix run --no-start scripts/live_discord_trigger_mode_proof.exs
    scripts/live_discord_matrix.py --channel-id 1475727417372049419 \
      --bot-token-index 0 \
      --sender-bot-token-index 1 \
      --manual-matrix \
      --reset-session-between-checks \
      --timeout 300 \
      --result-path tmp/discord-live-proof.json \
      --proof-path .lemon/proofs/discord-live-matrix-latest.json
    ```
    
    The prompts must be sent by a human Discord user or the second Lemonade
    Stand bot. Bot API smoke, self-authored responder messages, and webhooks
    do not count as Lemon inbound proof.
    Use `--reset-session-between-checks` with the second bot sender so each
    check starts from a clean Discord session.
    Keep `--result-path` for operator handoff data such as nonces and message
    ids; use `--proof-path` for the redacted artifact consumed by
    `proofs.status`, `./bin/lemon proofs`, support bundles, doctor gates,
    and.
    The runner stops on the first failed manual check by default; do not use
    `--continue-on-failure` for release evidence.
    
  • Before promoting Discord free-response support, run the unmentioned external-sender matrix and confirm both the Discord Developer Portal Message Content Intent and channel_diagnostics.json readiness shape.

    ```bash
    scripts/live_discord_matrix.py --bot-token-index 0 \
      --wait-free-response-trigger \
      --per-check-thread \
      --sender-bot-token-index 1 \
      --reset-session-between-checks \
      --channel-id 1475727417372049419 \
      --result-path tmp/discord-free-response-proof.json \
      --proof-path .lemon/proofs/discord-free-response-latest.json \
      --timeout 120
    ```
    
    Do not promote this path from deterministic `/trigger` proof alone. The
    proof must embed redacted `local_channel_diagnostics`, report
    `message_content_intent_declared: true`, show trigger mode `all` with
    cleanup mode `clear`, and complete the unmentioned second-bot round trip.
    The runner preflights Discord application Message Content Intent flags
    against Lemon's local declaration; use `--skip-free-response-preflight`
    only for diagnostic waits. If `mix lemon.doctor` reports Message Content
    Intent or unmentioned-message delivery drift despite
    `message_content_intent_declared: true`, verify the privileged intent in
    the Discord Developer Portal, restart the runtime, and rerun the matrix
    before debugging lower-level routing. `runtime_requests_message_content_intent`
    should remain true in `channel_diagnostics.json`; if it does not, treat
    the local Discord transport startup path as the blocker before chasing
    portal drift.
    
  • Before promoting Discord DM support, run scripts/live_discord_matrix.py --wait-dm-inbound against a human/open-DM channel and keep the redacted proof artifact for the final audit.

    ```bash
    scripts/live_discord_matrix.py --bot-token-index 0 \
      --wait-dm-inbound \
      --dm-recipient-id {human-open-dm-discord-user-id} \
      --result-path tmp/discord-dm-proof.json \
      --proof-path .lemon/proofs/discord-dm-latest.json \
      --timeout 120
    ```
    
    A Discord API `50007` setup failure must remain classified as
    `discord_dm_setup_refused` in support-bundle proof diagnostics and must not
    count as a promoted DM proof.
    
  • Before promoting Discord live gateway reconnect support, run the two-phase Discord restart proof: --restart-seed, restart the runtime, then --restart-verify --restart-runtime-confirmed with the seed nonce and reply id. Include --proof-path .lemon/proofs/discord-restart-verify-latest.json on the verify run so doctor/support surfaces consume the redacted result. The seed phase alone is only setup evidence.

  • Before promoting cron scheduler support beyond preview, run MIX_ENV=test mix run scripts/live_cron_diagnostics_smoke.exs and MIX_ENV=dev mix run --no-start scripts/live_cron_runtime_restart_smoke.exs. The proofs must show cron_diagnostics_counts, cron_diagnostics_retry_policy, cron_diagnostics_redaction, cron_support_bundle_entry, runtime_booted, cron_api_ready, pre_restart_scheduled_run_observed, runtime_restarted, persisted_cron_state_loaded, and post_restart_scheduled_run_observed with failed_count: 0.

  • Before promoting channel-origin cron completion support, run MIX_ENV=test mix run scripts/live_cron_channel_origin_smoke.exs. The proof must show telegram_channel_origin_cron_delivery and discord_channel_origin_cron_delivery with failed_count: 0. mix lemon.doctor --verbose must report cron.preview as pass before cron preview claims are promoted. The final audit defaults to LEMON_CRON_DIAGNOSTICS_PROOF_JSON=.lemon/proofs/cron-diagnostics-latest.json, LEMON_CRON_RUNTIME_RESTART_PROOF_JSON=.lemon/proofs/cron-runtime-restart-latest.json, and LEMON_CRON_CHANNEL_ORIGIN_PROOF_JSON=.lemon/proofs/cron-channel-origin-latest.json; set them only when release evidence lives at different paths.

  • Before promoting OpenAI-compatible API preview support, run MIX_ENV=test mix run scripts/live_openai_compat_smoke.exs and keep .lemon/proofs/openai-compat-smoke-latest.json. mix lemon.doctor --verbose must report openai_compat.api_preview as pass; failed or missing health/capability, Chat Completions, Responses, image metadata, streaming, stored-response, cancellation, external fetch, OpenAI Node SDK, or OpenAI Python SDK rows remain blockers for /v1 support claims. The proof must not expose raw prompts, API keys, answers, or run events. The final audit defaults to LEMON_OPENAI_COMPAT_PROOF_JSON=.lemon/proofs/openai-compat-smoke-latest.json; set it only when release evidence lives at a different path.

  • Before promoting ACP preview support, run the deterministic stdio smoke, external Node stdio client proof, and official ACP SDK client proof:

    ```bash
    MIX_ENV=test mix run scripts/live_acp_stdio_smoke.exs
    node scripts/live_acp_stdio_external_client.mjs
    node scripts/live_acp_official_sdk_client.mjs
    ```
    
    Keep `.lemon/proofs/acp-stdio-smoke-latest.json`,
    `.lemon/proofs/acp-stdio-external-client-latest.json`, and
    `.lemon/proofs/acp-official-sdk-client-latest.json`.
    `mix lemon.doctor --verbose` must report `acp.preview` as `pass`; failed
    or missing stdio, external client, or official SDK proof rows remain
    blockers for ACP support claims. The final audit defaults to
    `LEMON_ACP_STDIO_PROOF_JSON=.lemon/proofs/acp-stdio-smoke-latest.json`,
    `LEMON_ACP_EXTERNAL_CLIENT_PROOF_JSON=.lemon/proofs/acp-stdio-external-client-latest.json`,
    and
    `LEMON_ACP_OFFICIAL_SDK_PROOF_JSON=.lemon/proofs/acp-official-sdk-client-latest.json`;
    set them only when release evidence lives at different paths.
    
  • Before promoting MCP preview support, run the stdio, Streamable HTTP, and legacy SSE smoke proofs:

    ```bash
    MIX_ENV=test mix run scripts/live_mcp_stdio_smoke.exs
    MIX_ENV=test mix run scripts/live_mcp_http_smoke.exs
    MIX_ENV=test mix run scripts/live_mcp_sse_smoke.exs
    ```
    
    Keep `.lemon/proofs/mcp-stdio-latest.json`,
    `.lemon/proofs/mcp-http-latest.json`, and
    `.lemon/proofs/mcp-sse-latest.json`.
    `mix lemon.doctor --verbose` must report `mcp.preview` as `pass`; failed
    or missing stdio, Streamable HTTP, or SSE proof rows remain blockers for
    MCP support claims. The proof artifacts must not expose raw paths,
    filenames, prompts, provider responses, tool arguments, tool results, or
    server IO. The final audit defaults to
    `LEMON_MCP_STDIO_PROOF_JSON=.lemon/proofs/mcp-stdio-latest.json`,
    `LEMON_MCP_HTTP_PROOF_JSON=.lemon/proofs/mcp-http-latest.json`, and
    `LEMON_MCP_SSE_PROOF_JSON=.lemon/proofs/mcp-sse-latest.json`; set them
    only when release evidence lives at different paths.
    
  • Before promoting LSP diagnostics preview support, run the project-fixture and real-repo fixture editor-flow proofs:

    ```bash
    MIX_ENV=test mix run scripts/live_lsp_server_smoke.exs \
      --project-fixtures --editor-flow \
      --out .lemon/proofs/lsp-project-fixtures-latest.json
    MIX_ENV=test mix run scripts/live_lsp_server_smoke.exs \
      --real-repo-fixtures --editor-flow \
      --out .lemon/proofs/lsp-real-repo-fixtures-latest.json
    ```
    
    Keep `.lemon/proofs/lsp-project-fixtures-latest.json` and
    `.lemon/proofs/lsp-real-repo-fixtures-latest.json`.
    `mix lemon.doctor --verbose` must report `lsp.preview` as `pass`; failed
    or missing Pyright, gopls, clangd, rust-analyzer, TypeScript Language
    Server, or ElixirLS editor-flow rows remain blockers for LSP preview
    support claims. The proof artifacts must not expose raw paths, file
    contents, diagnostic output, raw session ids, or server IO. The final
    audit defaults to
    `LEMON_LSP_PROJECT_FIXTURES_PROOF_JSON=.lemon/proofs/lsp-project-fixtures-latest.json`
    and
    `LEMON_LSP_REAL_REPO_PROOF_JSON=.lemon/proofs/lsp-real-repo-fixtures-latest.json`;
    set them only when release evidence lives at different paths.
    
  • Before promoting plugin/extension host preview support, run the BEAM extension host, WASM telemetry, WASM policy, extension registry audit, and WASM lifecycle proofs:

    ```bash
    MIX_ENV=test mix run scripts/live_extension_host_smoke.exs
    MIX_ENV=test mix run scripts/live_wasm_telemetry_smoke.exs
    MIX_ENV=test mix run scripts/live_wasm_policy_smoke.exs
    MIX_ENV=test mix run scripts/live_extension_registry_audit_smoke.exs
    MIX_ENV=test mix run scripts/live_wasm_lifecycle_smoke.exs
    ```
    
    Keep `.lemon/proofs/extension-host-smoke-latest.json`,
    `.lemon/proofs/wasm-tool-telemetry-latest.json`,
    `.lemon/proofs/wasm-policy-latest.json`,
    `.lemon/proofs/extension-registry-audit-latest.json`, and
    `.lemon/proofs/wasm-lifecycle-latest.json`.
    `mix lemon.doctor --verbose` must report `extensions.telemetry`,
    `extensions.wasm_telemetry`, `extensions.wasm_policy`,
    `extensions.registry_audit`, and `extensions.wasm_lifecycle` as `pass`;
    failed or missing rows remain blockers for plugin/extension host preview
    support claims. Support bundles and `proofs.status` must expose the
    proof-level `redaction` maps for these artifacts without raw paths, cwd,
    session ids, params, manifest contents, distribution URLs, or tool
    payloads. The final audit defaults to
    `LEMON_EXTENSION_HOST_PROOF_JSON=.lemon/proofs/extension-host-smoke-latest.json`,
    `LEMON_WASM_TELEMETRY_PROOF_JSON=.lemon/proofs/wasm-tool-telemetry-latest.json`,
    `LEMON_WASM_POLICY_PROOF_JSON=.lemon/proofs/wasm-policy-latest.json`,
    `LEMON_EXTENSION_REGISTRY_AUDIT_PROOF_JSON=.lemon/proofs/extension-registry-audit-latest.json`,
    and `LEMON_WASM_LIFECYCLE_PROOF_JSON=.lemon/proofs/wasm-lifecycle-latest.json`;
    set them only when release evidence lives at different paths.
    
  • Before promoting terminal backend support beyond preview, run MIX_ENV=test mix run scripts/live_terminal_backend_smoke.exs and keep .lemon/proofs/terminal-backend-latest.json. mix lemon.doctor --verbose must report terminal.backends_live as pass; failed or missing local, local_pty, docker, or ssh rows remain blockers unless the release explicitly scopes that backend out. The proof and support surfaces must not expose command text, environment values, process output, raw SSH targets, or raw proof paths. The final audit defaults to LEMON_TERMINAL_BACKEND_PROOF_JSON=.lemon/proofs/terminal-backend-latest.json; set it only when release evidence lives at a different path.

  • Run mix lemon.doctor --verbose after collecting Discord proof artifacts. Treat channels.discord.dm, channels.discord.free_response, channels.discord.reconnect, channels.discord.slash_client_click, and media.provider_live warnings as release blockers for broad Discord and provider-backed media parity until each is promoted to pass by live proof. The channel and media doctor checks must remain redacted: no raw Discord IDs, message bodies, bot tokens, secret names, media prompts, provider responses, artifact bytes, or raw transcript text. When Discord DM, free-response, or real slash client-click proof artifacts are present but incomplete, the final readiness audit may print bounded reason_kind labels from those artifacts. It must not print Discord IDs, interaction tokens, bot tokens, secret names, or message bodies. When a provider-backed media proof is incomplete, the final readiness audit may print a bounded reason_kind label from the proof artifact such as openai_image_http_error:billing_limit_user_error or vertex_imagen_http_error:permission_denied or google_tts_http_error:permission_denied or elevenlabs_tts_http_error:payment_required, but must not print provider response bodies, prompts, transcripts, keys, or media bytes. If the incomplete proof identifies a safe provider id for a multi-provider lane, the audit may print a copy-ready rerun command with the matching --provider flag.

  • For provider-backed media readiness, run all live media smoke scripts with usable provider credentials and quota before claiming image, TTS, STT, vision, or video parity.

    Optional local checkpoint, useful before spending provider quota:
    
    ```bash
    MIX_ENV=test mix run scripts/live_media_image_smoke.exs --local
    MIX_ENV=test mix run scripts/live_media_speech_smoke.exs --local
    MIX_ENV=test mix run scripts/live_media_transcription_smoke.exs --local
    MIX_ENV=test mix run scripts/live_media_vision_smoke.exs --local
    MIX_ENV=test mix run scripts/live_media_video_smoke.exs --local
    ```
    
    The local lane must complete five `proof_scope: media_local` artifacts
    for `local_svg`, `local_wav`, `local_transcript`, `local_vision`, and
    `local_mp4`. These artifacts prove deterministic worker health only. They
    are not accepted by the final audit and are not a substitute for
    provider-backed image, TTS, STT, vision, or video proof.
    
    ```bash
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_image_smoke.exs \
      --proof-path .lemon/proofs/media-image-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_image_smoke.exs \
      --provider vertex_imagen \
      --proof-path .lemon/proofs/media-image-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_speech_smoke.exs \
      --proof-path .lemon/proofs/media-speech-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_speech_smoke.exs \
      --provider google_tts \
      --proof-path .lemon/proofs/media-speech-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_transcription_smoke.exs \
      --proof-path .lemon/proofs/media-transcription-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_vision_smoke.exs \
      --proof-path .lemon/proofs/media-vision-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_video_smoke.exs \
      --proof-path .lemon/proofs/media-video-smoke-latest.json
    LEMON_TEST_ALLOW_LIVE_CREDENTIALS=1 MIX_ENV=test mix run --no-start scripts/live_media_video_smoke.exs \
      --provider vertex_veo \
      --proof-path .lemon/proofs/media-video-smoke-latest.json
    ```
    
    If the provider key is stored in Lemon's encrypted secret store, append
    `--api-key-secret SECRET_NAME` to the relevant command instead of
    exporting a raw API key. Provider-prefixed OpenAI-compatible routing is
    a media vision proof feature; for image, TTS, STT, and video compatible
    endpoint checks, use `--base-url` with an unprefixed model. TTS proof can
    use either OpenAI or ElevenLabs evidence; the ElevenLabs proof script uses
    the ElevenLabs default voice id unless `--voice` is explicitly supplied.
    TTS proof can also use Google Cloud Text-to-Speech evidence through
    `google_tts`, backed by the same `providers.google_vertex`
    service-account credential path.
    Image proof can use either OpenAI or Vertex Imagen evidence; Vertex uses
    `providers.google_vertex` project, location, and service-account JSON
    config/secrets and writes the `media_provider_vertex_imagen` check row.
    Video proof can use either OpenAI or Vertex Veo evidence; Vertex Veo uses
    the same `providers.google_vertex` credential path and writes the
    `media_provider_vertex_veo` check row.
    STT proof can use either OpenAI or Deepgram evidence, as long as the
    redacted proof artifact is completed.
    
    The final audit defaults to the latest redacted proof artifacts:
    `LEMON_MEDIA_IMAGE_PROOF_JSON=.lemon/proofs/media-image-smoke-latest.json`,
    `LEMON_MEDIA_SPEECH_PROOF_JSON=.lemon/proofs/media-speech-smoke-latest.json`,
    `LEMON_MEDIA_TRANSCRIPTION_PROOF_JSON=.lemon/proofs/media-transcription-smoke-latest.json`,
    `LEMON_MEDIA_VISION_PROOF_JSON=.lemon/proofs/media-vision-smoke-latest.json`,
    and
    `LEMON_MEDIA_VIDEO_PROOF_JSON=.lemon/proofs/media-video-smoke-latest.json`.
    Set those environment variables only when the release evidence lives at a
    different path. Skipped credential-preflight artifacts for image, TTS, STT,
    or video are blockers; completed vision proof alone is insufficient for
    provider-backed media parity.
    
  • Before promoting browser automation preview support, run MIX_ENV=test mix run scripts/live_browser_smoke.exs and keep .lemon/proofs/browser-smoke-latest.json. mix lemon.doctor --verbose must report browser.preview as pass; missing or incomplete local driver, CDP attach, route guardrail, interaction, upload/download, screenshot, cookie/state, progress-redaction, or browser-to-media vision coverage remains a browser preview blocker. The proof artifact must omit raw local paths, URLs, selectors, typed text, cookie values, page text, artifact paths, and screenshot bytes. The final audit defaults to LEMON_BROWSER_PROOF_JSON=.lemon/proofs/browser-smoke-latest.json; set it only when release evidence lives at a different path.

  • For Discord application-command readiness, run the live Discord API schema proofs and keep the result JSON for the final audit.

    ```bash
    scripts/live_discord_matrix.py --bot-token-index 0 \
      --check-media-slash-registration \
      --result-path tmp/discord-media-slash-proof-check.json \
      --proof-path .lemon/proofs/discord-media-slash-registration-latest.json
    scripts/live_discord_matrix.py --bot-token-index 0 \
      --check-rollback-slash-registration \
      --result-path tmp/discord-rollback-slash-proof-check.json \
      --proof-path .lemon/proofs/discord-rollback-slash-registration-latest.json
    scripts/live_discord_matrix.py --bot-token-index 0 \
      --check-all-slash-registration \
      --result-path tmp/discord-all-slash-proof-check.json \
      --proof-path .lemon/proofs/discord-all-slash-registration-latest.json
    ```
    
    These prove the live Zeebot application has the in-repo `/media status`
    slash schema and all expected Lemon command names registered. They do not
    prove client-click execution. Keep `--result-path` for raw command
    ids/versions and `--proof-path` for redacted support/status artifacts.
    
  • For Hermes-compatible final-answer MEDIA:<path> delivery readiness, run the Telegram and Discord live matrix checks and keep the redacted proof artifacts for the final audit.

    ```bash
    scripts/live_telegram_matrix.py --skip-dm --skip-topic \
      --topic-media-directive-delivery \
      --media-directive-topic-id 35 \
      --timeout 120 \
      --result-path tmp/telegram-media-directive-proof.json \
      --proof-path .lemon/proofs/telegram-media-directive-latest.json
    scripts/live_discord_matrix.py --channel-id 1475727417372049419 \
      --bot-token-index 0 \
      --sender-bot-token-index 1 \
      --wait-media-directive-delivery \
      --reset-session-between-checks \
      --timeout 120 \
      --result-path tmp/discord-media-directive-proof.json \
      --proof-path .lemon/proofs/discord-media-directive-latest.json
    ```
    
    These prove final-answer MEDIA directives are converted into real
    Telegram documents or Discord attachments and do not leak raw
    `MEDIA:<path>` lines into channel-facing text.
    
  • Before promoting broad Discord slash-command parity, deploy or hot reload the runtime, run the wait-mode handoff, click the requested real Discord slash command such as /media status or /checkpoint status, then validate the redacted client-click proof artifact.

    ```bash
    scripts/live_discord_matrix.py --wait-slash-client-click-proof \
      --channel-id "$DISCORD_PROOF_CHANNEL_ID" \
      --slash-client-click-proof-path .lemon/proofs/discord-slash-client-click-proof-latest.json \
      --result-path tmp/discord-slash-client-click-proof-wait.json \
      --proof-path .lemon/proofs/discord-slash-client-click-check-latest.json
    ```
    
    The wait mode rejects stale artifacts generated before the watcher
    started. Use `--check-slash-client-click-proof` only for an already
    captured proof artifact.
    Deterministic slash decoder proof and Discord API registration proof are
    insufficient for this promotion gate.
    
  • Run scripts/test clients.

  • Build lemon_runtime_min with MIX_ENV=prod mix release lemon_runtime_min --overwrite.

  • Build lemon_runtime_full with MIX_ENV=prod mix release lemon_runtime_full --overwrite.

  • Package both release directories as Linux x86_64 tarballs.

  • Verify SHA-256 for each tarball and include both in manifest.json.

  • Run scripts/verify_release_artifacts {artifact-directory} against the assembled artifact directory. The verifier must see both lemon_runtime_min and lemon_runtime_full Linux x86_64 tarballs.

  • Run scripts/verify_release_runtime_boot {artifact-directory} against the assembled artifact directory. The verifier must extract both tarballs, boot each runtime, check /healthz, and generate a support bundle through release eval; it also inspects the bundle ZIP for core support entries, including channel_readiness.json and readiness_summary.json, plus the shared readiness proof-gate status ids and proof_gate_summary.gateCount.

  • Run product smoke against the release candidate.

  • Run scripts/verify_docs_site. It installs docs dependencies in a temp copy, runs npm audit --audit-level=high, builds the VitePress site, and checks markdown links without leaving generated artifacts in the repo.

  • Confirm docs generated artifacts are not left in the repository.

  • Confirm issue templates and support-bundle docs reference the current artifact names.

  • Confirm known dependency audit findings are recorded and accepted or fixed.

  • Confirm the OSV Scanner workflow is present and scoped to the first-party Mix, npm, and uv lockfiles before publishing a release candidate.

  • Confirm the History Check workflow is present and blocks unrelated-history PRs before merge.

  • Confirm the Python CLI package workflow is present and building both the lemon-cli wheel and source distribution without publishing them.

  • Run LEMON_DISCORD_LIVE_PROOF_JSON=tmp/discord-live-proof.json LEMON_DISCORD_LIVE_REDACTED_PROOF_JSON=.lemon/proofs/discord-live-matrix-latest.json LEMON_DISCORD_MEDIA_SLASH_PROOF_JSON=tmp/discord-media-slash-proof-check.json LEMON_DISCORD_MEDIA_SLASH_REDACTED_PROOF_JSON=.lemon/proofs/discord-media-slash-registration-latest.json LEMON_DISCORD_ROLLBACK_SLASH_PROOF_JSON=tmp/discord-rollback-slash-proof-check.json LEMON_DISCORD_ROLLBACK_SLASH_REDACTED_PROOF_JSON=.lemon/proofs/discord-rollback-slash-registration-latest.json LEMON_DISCORD_ALL_SLASH_PROOF_JSON=tmp/discord-all-slash-proof-check.json LEMON_DISCORD_ALL_SLASH_REDACTED_PROOF_JSON=.lemon/proofs/discord-all-slash-registration-latest.json LEMON_TELEGRAM_MEDIA_DIRECTIVE_REDACTED_PROOF_JSON=.lemon/proofs/telegram-media-directive-latest.json LEMON_DISCORD_MEDIA_DIRECTIVE_REDACTED_PROOF_JSON=.lemon/proofs/discord-media-directive-latest.json LEMON_DISCORD_DM_REDACTED_PROOF_JSON=.lemon/proofs/discord-dm-latest.json LEMON_DISCORD_FREE_RESPONSE_REDACTED_PROOF_JSON=.lemon/proofs/discord-free-response-latest.json LEMON_DISCORD_SLASH_CLIENT_CLICK_PROOF_JSON=.lemon/proofs/discord-slash-client-click-proof-latest.json LEMON_MEDIA_IMAGE_PROOF_JSON=.lemon/proofs/media-image-smoke-latest.json LEMON_MEDIA_SPEECH_PROOF_JSON=.lemon/proofs/media-speech-smoke-latest.json LEMON_MEDIA_TRANSCRIPTION_PROOF_JSON=.lemon/proofs/media-transcription-smoke-latest.json LEMON_MEDIA_VISION_PROOF_JSON=.lemon/proofs/media-vision-smoke-latest.json LEMON_MEDIA_VIDEO_PROOF_JSON=.lemon/proofs/media-video-smoke-latest.json LEMON_BROWSER_PROOF_JSON=.lemon/proofs/browser-smoke-latest.json LEMON_OPENAI_COMPAT_PROOF_JSON=.lemon/proofs/openai-compat-smoke-latest.json LEMON_ACP_STDIO_PROOF_JSON=.lemon/proofs/acp-stdio-smoke-latest.json LEMON_ACP_EXTERNAL_CLIENT_PROOF_JSON=.lemon/proofs/acp-stdio-external-client-latest.json LEMON_ACP_OFFICIAL_SDK_PROOF_JSON=.lemon/proofs/acp-official-sdk-client-latest.json LEMON_MCP_STDIO_PROOF_JSON=.lemon/proofs/mcp-stdio-latest.json LEMON_MCP_HTTP_PROOF_JSON=.lemon/proofs/mcp-http-latest.json LEMON_MCP_SSE_PROOF_JSON=.lemon/proofs/mcp-sse-latest.json LEMON_LSP_PROJECT_FIXTURES_PROOF_JSON=.lemon/proofs/lsp-project-fixtures-latest.json LEMON_LSP_REAL_REPO_PROOF_JSON=.lemon/proofs/lsp-real-repo-fixtures-latest.json LEMON_EXTENSION_HOST_PROOF_JSON=.lemon/proofs/extension-host-smoke-latest.json LEMON_WASM_TELEMETRY_PROOF_JSON=.lemon/proofs/wasm-tool-telemetry-latest.json LEMON_WASM_POLICY_PROOF_JSON=.lemon/proofs/wasm-policy-latest.json LEMON_EXTENSION_REGISTRY_AUDIT_PROOF_JSON=.lemon/proofs/extension-registry-audit-latest.json LEMON_WASM_LIFECYCLE_PROOF_JSON=.lemon/proofs/wasm-lifecycle-latest.json LEMON_CRON_DIAGNOSTICS_PROOF_JSON=.lemon/proofs/cron-diagnostics-latest.json LEMON_CRON_RUNTIME_RESTART_PROOF_JSON=.lemon/proofs/cron-runtime-restart-latest.json LEMON_CRON_CHANNEL_ORIGIN_PROOF_JSON=.lemon/proofs/cron-channel-origin-latest.json LEMON_TERMINAL_BACKEND_PROOF_JSON=.lemon/proofs/terminal-backend-latest.json scripts/audit_1_0_readiness {version} {artifact-directory} and treat any failure or blocker as release-blocking.

Dependency Audit Policy

Runtime dependencies and docs-site tooling are handled differently for 1.0.

Runtime release artifacts must not ship known high or critical dependency advisories without a release-blocking issue, an explicit mitigation, and a maintainer decision recorded in the launch ledger.

.github/workflows/osv-scanner.yml scans the first-party lockfiles on pull requests and pushes that touch dependency manifests, on a weekly main schedule, and through manual dispatch. It uses Google's pinned reusable OSV scanner workflow, grants security-events: write for SARIF upload, and scans mix.lock, the Lemon web/TUI/browser npm lockfiles, the Python CLI uv.lock, the gateway private npm lockfile, and the diagrams npm lockfile. The workflow is configured with fail-on-vuln: false so findings are detection signals, not automatic release decisions; release candidates still require maintainer triage for high or critical runtime findings.

Repository History Integrity

.github/workflows/history-check.yml protects main from unrelated-history pull requests. It checks out the PR head with full history, fetches the target base branch, and requires git merge-base "origin/${GITHUB_BASE_REF}" HEAD to return a non-empty common ancestor.

This keeps accidental orphan branches, reinitialized .git/ directories, or force-pushes from another repository from grafting a second root into Lemon's history and collapsing blame across a large umbrella snapshot. Failed PRs should be recreated from the current target branch, then the intended changes should be cherry-picked or re-applied.

Python CLI Package Check

.github/workflows/python-cli.yml is the non-publishing package-quality lane for clients/lemon-cli. It runs on Python CLI changes, manual dispatch, and main pushes touching the package. The workflow installs with uv sync --locked --dev, runs ruff and pytest, builds both the wheel and source distribution, verifies the wheel metadata, and uploads the built distributions as short-lived CI artifacts.

This is intentionally not a PyPI publish workflow. Lemon's supported release artifacts remain the BEAM runtime tarballs until maintainers decide to promote a published Python CLI package.

The docs site is static output. VitePress, Vite, esbuild, and markdown-link-check are development/build-time tooling for docs/; they are not included in lemon_runtime_min or lemon_runtime_full release tarballs. For the docs package:

  • high and critical advisories block release candidates
  • moderate advisories are allowed only when all of these are true:
    • the advisory affects docs build/dev tooling, not runtime tarballs
    • the static docs build succeeds
    • markdown link checking succeeds
    • npm audit reports fixAvailable: false or the available fix would require an unsafe/manual major upgrade
    • the finding is recorded in the launch ledger
  • generated docs artifacts such as docs/node_modules and docs/.vitepress/dist must not remain in the repository after local verification; docs/package-lock.json is tracked for npm ci parity

As of 2026-05-11, the accepted docs-tooling findings are three moderate advisories in the VitePress dependency chain:

  • vitepress <= 1.6.4 via vite
  • vite <= 6.4.1
  • esbuild <= 0.24.2

npm audit --json reports no high or critical advisories and no available fix for that chain. These findings do not block the runtime release while the docs site is served as static output only.

Optional Publish Checklist

Publishing a tag and hosted release is distribution work. It is not part of the 1.0 readiness gate.

  • Commit and push the release-readiness changes to the default branch before creating or dispatching the release tag. The release workflow, live-eval workflow, verifier scripts, and support docs must exist on GitHub before the tag is pushed or manually dispatched.

  • Review the full unpushed local range before pushing main; on the current launch branch, main may be ahead of origin/main by more than the final release-readiness commit.

  • Create or verify the CalVer tag, for example v2026.05.0.

  • Trigger .github/workflows/release.yml from the tag push, or manually dispatch it with explicit inputs. Do not use both paths unless intentionally rerunning the release workflow:

    ```bash
    # First publish the release-readiness changes to the default branch.
    git status --short --branch
    git rev-list --count origin/main..HEAD
    git log --oneline origin/main..HEAD
    test -z "$(git status --short)" || { echo "refusing to publish with a dirty tree" >&2; exit 1; }
    git log -1 --oneline
    git push origin main
    
    # Option A: push the tag and let the tag-push workflow create the release.
    git tag v2026.05.0
    git push origin v2026.05.0
    
    # Option B: if the tag already exists or the tag-push workflow did not run.
    gh workflow run release.yml \
      --ref v2026.05.0 \
      -f tag=v2026.05.0 \
      -f channel=stable
    ```
    
  • Watch the intended release workflow run and require a successful exit:

    ```bash
    gh run list --workflow release.yml --limit 5
    gh run watch {run-id} --exit-status
    ```
    
  • Confirm the workflow used the version-specific CHANGELOG.md section for release notes.

  • Confirm the workflow uploads:

    • lemon-{version}-{channel}-linux-x86_64-lemon_runtime_min.tar.gz
    • lemon-{version}-{channel}-linux-x86_64-lemon_runtime_full.tar.gz
    • manifest.json

Rollback Checklist

Rollback means recommending or restoring a previous known-good release artifact. Lemon 1.0 does not have a remote binary auto-updater, so rollback is an operator procedure.

  • Identify the previous known-good artifact profile.
  • Download the previous artifact and manifest.json.
  • Verify the artifact checksum.
  • Stop the current release runtime.
  • Preserve ~/.lemon/config.toml, secrets, and store paths before replacing runtime files.
  • Extract the previous artifact into a clean runtime directory.
  • Start the previous runtime with the same environment variables.
  • Check /healthz.
  • Generate a release-runtime support bundle if rollback was caused by a defect.
  • Open or update the tracking issue with the failing version, rollback target, support bundle, and reproduction steps.

Support Policy

Supported for stable 1.0:

  • Installation from source on machines with supported Elixir/Erlang versions.
  • Linux x86_64 release tarballs for lemon_runtime_min and lemon_runtime_full.
  • Provider configuration through documented secrets and setup paths.
  • TUI, web, Telegram, Discord, and control-plane issues that can be reproduced on a supported source install or Linux release artifact.
  • X/Twitter, XMTP, SMS, voice, and other channel adapters only as preview surfaces unless promoted by release notes.
  • First-party text web search/fetch issues that can be reproduced in a supported agent run.
  • Operator-controlled cron and scheduled automation as preview surfaces when failures are reproducible through first-party runtime or Web operations paths.
  • Bugs accompanied by a redacted support bundle when diagnostics are needed.

Not supported for stable 1.0:

  • Windows-native release artifacts.
  • Unverified platform-specific packaging.
  • Remote auto-update.
  • Remote one-line install scripts.
  • Hosted multi-tenant operation.
  • Stable support guarantees for preview channel adapters.
  • Production-grade scheduling guarantees, external scheduler integrations, or unrestricted model-facing cron management.
  • First-class browser automation, generated media, image analysis, or TTS/voice behavior unless a release note explicitly promotes a narrower path.
  • Production support for third-party plugins, public plugin registries, sandboxed non-BEAM plugin hosts, unofficial MCP servers, or local model endpoints beyond documented OpenAI-compatible configuration. The local BEAM extension-host proof only covers explicitly trusted extension paths, tool execution through the registry, and built-in conflict precedence.

Security issues should use SECURITY.md. General defects should use the bug report template and include:

  • source-dev commit or release artifact version
  • operating system and CPU architecture
  • install path: source-dev or release-runtime
  • support bundle command output or attached reviewed bundle
  • expected behavior and actual behavior

Support bundle manifests include the Lemon app version, release name/version, release channel when available, source/release runtime mode, git commit/branch state, Elixir/OTP versions, OS, and CPU architecture.

Required Evidence Files

Keep these files current during the 1.0 launch process:

  • docs/plans/lemon-1.0-mainstream-readiness.md
  • docs/plans/lemon-1.0-fresh-install-proof-2026-05-11.md
  • docs/plans/lemon-1.0-release-artifact-proof-2026-05-11.md
  • docs/release/versioning_and_channels.md
  • docs/release/deployment_flows.md
  • .github/workflows/release.yml
  • .github/workflows/product-smoke.yml
  • .github/workflows/docs-site.yml
  • .github/workflows/live-eval.yml
  • .github/workflows/history-check.yml
  • .github/workflows/osv-scanner.yml
  • .github/workflows/python-cli.yml
  • scripts/bump_version.sh
  • scripts/lint_ci_docs.sh
  • scripts/audit_1_0_readiness
  • scripts/prepare_release_notes
  • scripts/verify_release_artifacts
  • scripts/verify_release_runtime_boot