apphost.release.publish
Publish an uploaded apphost release bundle: verify bundle.zip against the byte quota, safely extract it into the immutable release prefix, point the CloudFront KVS slug entry at it, register the site's /callback on the identity app client, and prune published releases beyond the retention window.
Verify + extract an uploaded bundle, activate it in the KVS, prune old releases.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-apphost |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
release_uuid | uuid | Yes | — | UUID of the hosted_release to publish (must be pending_upload) |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
release_uuid | uuid | No | — | — |
site_uuid | uuid | No | — | — |
url | string | No | — | Public serving URL: https://<slug>.app.orkestia.dev |
slug | string | No | — | — |
prefix | string | No | — | — |
bundle_sha256 | string | No | — | — |
bundle_bytes | integer | No | — | — |
uploaded_count | integer | No | — | — |
pruned_release_count | integer | No | — | — |
callback_registered | boolean | No | — | True when the /callback redirect_uri was appended (False = already present) |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
published | SUCCESS | Release bundle verified, activated in KVS, and old releases pruned | release_uuid, url, prefix |
failed | FAILURE | Apphost workflow failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "apphost.release.publish",
"initial_data": {
"release_uuid": "value"
}
}