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
mainbuild becomes live in one atomic change. A named lane updates only that lane. - Your tool receives the canonical 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 a validmain publish succeeds.
Test a build without replacing the live game
Pass a lane such asbeta, alpha, or develop to publish. Totem gives that build an unlisted URL using the shape <game-slug>@<lane> and leaves main untouched.
Anyone with the exact lane link can open it. Restricted tester access and build-specific feedback are not available yet.
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.