`anna-app apps publish` incorrectly requires a version bump for an unchanged bundled Executa when only the App is updated

Summary

I was publishing a new version of an Anna App containing App/frontend-only changes. I did not modify the bundled ppt-engine Executa or rebuild or replace any of its binary artifacts.

However, when I ran anna-app apps publish, the CLI returned HTTP 409 while publishing the bundled Executa. It reported that version 4.3.9 had already been published with different content and required an Executa version bump:

publishing bundled executa "ppt-engine" (executas/ppt-engine)…
✗ request failed (409): Version 4.3.9 already published with different content. Bump the executa version before publishing again.
✗ failed to publish bundled executa "ppt-engine" (executas/ppt-engine)

I recalculated the SHA-256 checksums of the four local Executa archives. Every checksum exactly matches the corresponding binary_sha256 recorded by the Anna platform for version 4.3.9. This suggests that the binary content has not actually changed. Instead, the publishing flow appears to classify identical content as different when attempting to reuse an existing bundled Executa version.

As a result, I cannot publish an App-only update without rebuilding the Executa, bumping its version, and uploading it again, even though the backend tool has not changed.

Project details

Anna App

  • App name: Anna Deck
  • App slug: anna-presenton
  • Previous App version: 0.5.11
  • App version being published: 0.5.12
  • App schema: 2
  • App directory: ppt-app/
  • Bundled Executa path: ppt-app/executas/ppt-engine/
  • Bundled handle: ppt-engine
  • Reference in the App manifest: bundled:ppt-engine
  • required_executas[].min_version: 4.3.9
  • required_executas[].version: latest

Bundled Executa configuration in ppt-app/app.json:

{
  "bundled_executas": {
    "ppt-engine": {
      "path": "executas/ppt-engine"
    }
  }
}

Executa dependency configuration in ppt-app/manifest.json:

{
  "required_executas": [
    {
      "tool_id": "bundled:ppt-engine",
      "min_version": "4.3.9",
      "version": "latest"
    }
  ]
}

Bundled Executa

  • Executa slug/name: ppt-engine
  • Executa version: 4.3.9
  • Executa type: tool
  • Actual tool ID: tool-lightvoss-ppt-engine-kqhra9hy
  • Distribution profile: binary
  • Supported platforms:
    • darwin-arm64
    • darwin-x86_64
    • linux-x86_64
    • windows-x86_64

The following Executa-related content remained unchanged during this App update:

  • The version and binary artifact configuration in ppt-app/executas/ppt-engine/executa.json.
  • The version in ppt-app/executas/ppt-engine/manifest.json.
  • All four archive files under ppt-app/executas/ppt-engine/bundle/.
  • The SHA-256 checksum of every archive file.

Publishing environment

  • Anna App CLI: 0.1.43
  • Command: anna-app apps publish
  • Host: https://staging.anna.partners
  • Authentication: PAT from CLI credentials
  • Operating system: macOS on Apple Silicon
  • Node.js: v24.18.1
  • npm: 11.16.0
  • Git branch: main
  • Git commit at the time of investigation: ec4678ea26aff276cb260c7dab4ccbf297abd66d

App-side changes in this release

The purpose of this release is to update the App from version 0.5.11 to 0.5.12 and publish App/frontend-side changes. This update does not modify the ppt-engine version, manifest, distribution configuration, or binary archives.

The known App-side configuration changes in the current working tree are:

  • ppt-app/app.json: App version 0.5.11 → 0.5.12.
  • ppt-app/manifest.json: added the aps.scope.user.read host capability.

The frontend bundle also contains the application code changes intended for this release. ppt-engine remains on the same version with the original build artifacts.

In other words, the new App version should continue to reference the already-published ppt-engine@4.3.9, rather than requiring a new Executa version containing identical artifacts.

Steps to reproduce

  1. Prepare an Anna App with a bundled Executa. This project declares executas/ppt-engine through app.json#bundled_executas.

  2. Publish ppt-engine@4.3.9 in advance. The platform now has this version and a binary_sha256 value for each of the four supported platforms.

  3. Update only the App/frontend side and change the App version from 0.5.11 to 0.5.12.

  4. Leave the ppt-engine version, configuration, and binary files under bundle/ unchanged.

  5. From the ppt-app/ directory, run:

    anna-app apps publish
    
  6. The CLI attempts to publish the bundled Executa again and returns HTTP 409.

Actual behavior

The relevant CLI output is:

using PAT from credentials (host=https://staging.anna.partners)
⚠ `apps publish` mints an immutable version directly. The Option-C working-draft flow is now preferred:
    anna-app apps push            # upsert the mutable working draft (safe every commit)
    anna-app apps cut <version>   # snapshot + freeze executa deps
  publishing bundled executa "ppt-engine" (executas/ppt-engine)…
✗ request failed (409): Version 4.3.9 already published with different content. Bump the executa version before publishing again.
✗ failed to publish bundled executa "ppt-engine" (executas/ppt-engine)

The publishing process stops, and the new App version is not published.

Expected behavior

When the bundled Executa version and content exactly match an existing published version, the publishing flow should:

  1. Recognize and reuse the existing ppt-engine@4.3.9 version.
  2. Skip the duplicate upload or treat publishing identical content as an idempotent operation.
  3. Continue publishing the new App version.
  4. Return a version conflict only when the content or relevant publishing metadata for the same Executa version has actually changed.

SHA-256 comparison

I ran the following command locally:

shasum -a 256 ppt-app/executas/ppt-engine/bundle/*

The results are:

Platform Local file Local SHA-256 SHA-256 recorded by the platform Result
darwin-arm64 ppt-engine-v4.3.9-darwin-arm64.tar.gz c6e591af77efd4c8b87ea7fbe41a8d923f70a46057153700f6fb51df1a4532de c6e591af77efd4c8b87ea7fbe41a8d923f70a46057153700f6fb51df1a4532de Match
darwin-x86_64 ppt-engine-v4.3.9-darwin-x86_64.tar.gz f255b0d56828bf10c66b901cef74d5502fd67254374547d43c9f6e7a80d4a913 f255b0d56828bf10c66b901cef74d5502fd67254374547d43c9f6e7a80d4a913 Match
linux-x86_64 ppt-engine-v4.3.9-linux-x86_64.tar.gz 54fc90818c36352f2321f7673239f11c4cb489ce26e1baaab9753bd67c6dcda7 54fc90818c36352f2321f7673239f11c4cb489ce26e1baaab9753bd67c6dcda7 Match
windows-x86_64 ppt-engine-v4.3.9-windows-x86_64.zip 7a1a00bb66dfb56d236e67e23dc48887dd7d6f02dbc2ae53fa6b5b3def9715eb 7a1a00bb66dfb56d236e67e23dc48887dd7d6f02dbc2ae53fa6b5b3def9715eb Match

Impact

  • App/frontend updates cannot be published independently.
  • An unchanged bundled Executa is forced to use a new version.
  • The time-consuming multi-platform binary build and upload process must be repeated.
  • New Executa versions are created without any actual backend changes, adding version noise and making investigations harder.
  • App releases become unnecessarily coupled to Executa releases.

Questions for the Anna team

  1. What exactly does apps publish compare when determining that the same version has “different content”? In addition to the four binary_sha256 values, does the comparison include the Executa manifest, distribution description, request fields, serialized data, or other metadata?
  2. If every local archive SHA-256 exactly matches the value recorded by the platform, why does the request still enter the “different content” conflict path?
  3. What is the currently recommended publishing workflow for an App-only update that should reuse an existing bundled Executa version?
  4. Do apps push and apps cut <version> already support reusing an identical published Executa, or would that workflow encounter the same HTTP 409 response?
  5. Could the publishing flow reuse the existing version when both the version and content match, and require a version bump only when the content has actually changed?

I can provide the complete app.json, manifest.json, executa.json, CLI debug logs, and publishing request details if they would help with further investigation.

Hi @HappyLight! :waving_hand:

Thank you so much for this outstanding report — the SHA-256 comparison table, repro steps, and project details made this a joy to investigate. This is exactly the kind of report that helps us fix things fast. :folded_hands:

TL;DR

You found a real bug, and it’s now fixed in v1.1.0-beta.106 :white_check_mark: (already live). App-only updates no longer require a version bump for an unchanged bundled Executa — republishing identical content at the same version is now treated as an idempotent no-op, and your app publish proceeds normally. :tada:

What was happening

Your instinct was right: your binaries were not the problem — all four binary_sha256 values matched perfectly. The same-version equivalence check was comparing more than it should have: it included some platform-managed metadata that can drift on our side after publish (with zero changes from you). That drift made identical content look “different”, which pushed you into the 409 path. :crying_cat:

What we fixed

  • :locked: The content comparison for binary-distributed Executas is now based on what you actually ship — the binary fingerprints (binary_sha256), distribution config, and declared version. Platform-managed runtime metadata no longer participates.
  • :recycling_symbol: Publishing the same version with identical content is idempotent: the existing version is recognized and reused, and publishing continues to your new App version — exactly the behavior you described under “Expected behavior”.
  • :magnifying_glass_tilted_left: Bonus (answering your Q1): when a genuine 409 does occur, the error now tells you which fields actually differ, so it’s no longer a guessing game.

Your questions

  1. What’s compared? For binary Executas: the binary fingerprints, distribution configuration, and declared version — now excluding platform-mutated metadata.
  2. Why did matching SHAs still 409? Platform-side metadata drift (now fixed, see above).
  3. Recommended workflow for App-only updates? Just run anna-app apps publish as you did — it now works. The apps push / apps cut <version> draft flow is also a great option for iterating safely.
  4. Do push/cut reuse identical Executas? Yes — they share the same publish path, so they benefit from the same fix.
  5. Reuse on exact match, conflict only on real change? That’s precisely the behavior now. :white_check_mark:

Please give your 0.5.12 publish another try and let us know how it goes — and thanks again for the meticulous report! :yellow_heart:

Happy building! :rocket:
— The Anna Team