YouTube Upload
Use for final YouTube delivery after a video is approved. This skill uses the YouTube Data API v3 resumable upload protocol; it does not generate or modify media. Read the operating workflow before execution.
Access boundary
- Only an explicitly authorized account holder/credential operator may perform OAuth or upload actions. A shared skill install does not grant access to Gio's personal Google account. If you do not already have approved credentials and the YouTube upload scope, route execution to Zeus/the personal credential holder; do not request, copy, or expose secrets.
- Never initiate consent, change OAuth scopes, enable cloud APIs, or broaden privacy without applicable authorization from the relevant account holder.
- Do not create a second upload to test this skill. Use mocked tests and the saved private state to resume an approved upload.
Run and verify
- Confirm the approved source file, destination channel ID, title, category,
privacy, and notification choice. Default visibility is
private; requestunlistedorpubliconly when explicitly specified. The uploader confirms that the authorized account owns the expected channel before creating or resuming any upload; it needs an existing read scope that allowschannels.list. - On the authorized host, read the live
gog --versionandgog youtube --help. If no native video-upload command is available, usescripts/youtube_upload.pywith the operator-owned private token helper; do not pass access/refresh tokens on command lines or put them in environment dumps, logs, the repository, or shared state. - Keep resumable state outside the repository and workspace in a user-owned
0700directory, with the state file0600. The state and its.locksibling contain coordination metadata; the state contains a resumable session URL until completion. The uploader fingerprints the source and binds resume state to account, channel, title, category, privacy, and notifications. - The script defaults to
privateandnotifySubscribers=false. A run uses one session, reconciles server position before chunks and after ambiguous failures, and never silently creates a replacement session. An ambiguous session-start response requires account reconciliation before retrying. - Treat a returned video ID and
videos.listread-back as upload verification, not proof transcoding is finished. Check the actual channel and privacy; reportprocessingStatusseparately. The script never callsvideos.updateor silently changes privacy.
Run focused tests without network or credentials:
python3 -m unittest discover -s youtube-upload/tests -v