Skip to content

Craft Anything: understand how any software works, and craft your own.

Rust

Check packaged Deep builds before publishing a release (#982)

Tomáš Doubek19b2fea8e842
diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md
index 9bda5fa7..b018cd91 100644
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@ -143,9 +143,11 @@ cheapest help we can give anyone, so nothing below should hold it up for long.
driver that crashes while its device is created crashes the retry too. wgpu has no way to
skip hardware adapters; needs a different route (another renderer, or a helper that starts
the app with only WARP visible)
-- [ ] Add to `docs/releasing.md`: before publishing, a Deep build through Claude Code from the
+- [x] Add to `docs/releasing.md`: before publishing, a Deep build through Claude Code from the
finished package, on a Mac and on Windows. Starting the CLI from the package (#91) doesn't
- show whether Claude Code accepts its tools
+ show whether Claude Code accepts its tools — PR #982; claimed: doubektomas,
+ branch docs/r5.1-packaged-deep-build-check. The checklist is documented; live package runs
+ remain release validation work.
- [ ] Add to `docs/releasing.md`: after a release, close every ticket marked as waiting for it, so
they don't stay open marked `fixed`
diff --git a/docs/releasing.md b/docs/releasing.md
index f69ba099..8294ae65 100644
--- a/docs/releasing.md
+++ b/docs/releasing.md
@@ -19,10 +19,48 @@ release: `gh workflow run ci.yml --ref main`. The other workflows (`freebsd.yml`
`Cargo.toml` is the single source; `cargo xtask version` prints it).
2. Fast-forward `release` to `main`. The push runs `.github/workflows/release.yml`, which builds every
platform and creates or updates the draft GitHub Release **Craft Anything vX.Y.Z**.
-3. When every job is green, publish the draft.
+3. When every job is green, run the packaged Deep-build check below on macOS and Windows.
+ Publish the draft only after both pass.
A dry run of the unsigned platforms from any branch: `gh workflow run release.yml --ref <branch>`.
+## Before publishing: a Deep build from the packages
+
+Run this check on a Mac and on Windows using the finished packages attached to the draft release.
+Starting the packaged CLI alone checks that it can launch (#91); a real Claude Code build also
+checks that Claude Code accepts its MCP tools (#490). A source build or a CLI found on PATH does
+not check what the package ships.
+
+1. Install or extract the candidate package and open its desktop app. On macOS use the DMG's
+ `Craft Anything.app`; on Windows use the MSI installation or extracted portable zip, recording
+ which one. Check the bundled CLI's `--version` by its full path: beside the app executable on
+ Windows, or `Craft Anything.app/Contents/MacOS/craft-anything-cli` on macOS. It must match the
+ candidate version. Keep the app and CLI together throughout the check.
+2. Use a local, signed-in Claude Code as the builder. Record its version and the OS version.
+ In Craft Anything select Deep mode and start a fresh project from a small app you own, with a
+ concrete request whose result you can build and launch. Keep Auto mode off so a request that
+ needs your permission can be checked.
+3. Ask the builder to call `core_session_show` and report the selected mode before building.
+ Verify the tool result reports Deep mode. Also verify that the Craft MCP server used by this
+ run is the bundled CLI from step 1, using Claude Code's MCP log if necessary. A server from
+ another installation does not pass this check.
+4. Ask the builder to perform a write or command that reaches `core_action_approve` and displays
+ an approval card in Craft Anything. Answer **Allow once** on that card and confirm the builder
+ continues with the approved action. A displayed and answered card is required: automatic
+ approvals for ordinary app edits or known build commands cannot satisfy this step. See
+ [the Claude Code integration](claude-code.md) for the approval rules.
+5. Let the run finish its build and checks, then use Play and inspect the requested behaviour.
+ Pass only if the Craft tool call succeeded, the approval card appeared and was answered with
+ **Allow once**, the builder continued, the run reached Ready and the result launches and does
+ what was requested. Missing tools, a server that cannot start, a missing or stuck
+ approval or a failed check must be resolved and this check repeated before publication.
+
+Record each platform's package filename, candidate version and commit, OS and Claude Code
+versions, request, tool result, displayed card and its answer, builder continuation, build/check
+outcome and Play result in the release
+PR or release validation notes. Keep credentials and personal paths out of the record. If a
+platform has not been checked, record it as pending and leave the release in draft.
+
## What it ships
| Platform | Files |