The publish sequence
- Your AI tool calls
create_gamefor a new game, orrequest_uploadfor an existing one. - Totem returns a temporary upload URL.
- Your tool sends the gzip-compressed tar archive with HTTP
PUT. - Your tool calls
publish. - Totem validates the complete archive.
- A valid build becomes live in one atomic change.
- Your tool receives the game link.
Validation is one pass
Totem reports every violation it finds, not only the first one. Your AI tool can fix the full set and upload one corrected archive.Players never see a partial upload
Players keep seeing the previous valid build while Totem checks a new upload. The live game changes only after validation succeeds.Republishing keeps the durable parts
When you publish again:- The game keeps the same
game_id, handle, and slug. - The canonical public URL stays the same.
- The durable installed-app route remains
/g/<slug>. - Your API keys stay the same.
- Totem records the successful build in build history.