Prove which version is live
Publishing an application creates a version, and a deployment makes it live. When you change code, publish again, and the live site seems unchanged, prove which version is live before you look at the code. The proof takes three steps, and each step has an exact answer.
1. Find the current deployment and its version
Read the Worker with its deployments and versions expanded:
const worker = await praxis.application.workers.retrieve({ path: { worker_id: "wkr_…" }, query: { expand: "deployments,versions" },});praxis.current_deployment_idis the deployment in effect.- In the expanded deployments, that deployment’s
versionssays which version takes how much traffic, for example[{ version_id: "ver_…", percentage: 100 }]. - In the expanded versions, that version’s
numberis its version number.
A Worker has exactly one default address, its subdomain.url. If the address you are checking is not that one, you are looking at another Worker.
2. Read that version’s asset manifest
const manifest = await praxis.application.workers.versions.assets.retrieveManifest({ path: { worker_id: "wkr_…", version_id: "ver_…" },});The manifest lists every static file of the version with its path, hash and size:
hashis the SHA-256 of the file’s bytes, first 32 hexadecimal characters;sizeis the byte count.
3. Compare the live files with the manifest
GET each manifest path from the live address, compute the first 32 hex characters of the SHA-256 of the response bytes and the byte count, and compare them with the manifest. If every file matches, the live address serves that version. If any file differs, it does not.
Three things to watch:
- Count bytes, not characters. Multi-byte characters make the two differ.
- Take one round of reads within a minute and record
etag. Hash-named static files such asindex-D24l1k5n.jsare cached long-term (cache-control: immutable). Two reads taken far apart cannot tell you whether something changed. - Skip platform configuration files such as
/_headers. They are not assets, and the live address answers 404 for them by design.
What is not evidence
- Labels.
tagsandpraxis.labelsare for your own grouping and do not decide where traffic goes. - Monitoring events such as
worker.script_missing. They do not mean the live address is missing its script. Use the three steps above to tell which version is live.
When it still looks wrong
If all three steps match and the page still misbehaves, the problem is in that version’s code, not in the publish. Look at what the endpoint actually answers. A 401 with your application’s own error code, for example, means the request was stopped by the application’s own authentication, not that the deploy failed.
- Publish and roll back with the CLI:
praxis app publish,praxis app rollback --to <version_id>. - Runtime capabilities: what an application can do, and its limits.