Skip to content

Compute platform update: five lanes, Colab work sessions, provider console, demo compute screens - #16

Merged
teddashh merged 7 commits into
mainfrom
update/compute-platforms-2026-11
Nov 15, 2026
Merged

teddashh merged 7 commits into
mainfrom
update/compute-platforms-2026-11

Conversation

@teddashh

@teddashh teddashh commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this is

Brings the public repository up to the owner's current working version.

  • Five compute lanes, chosen per form: Local, Google Colab, AutoIP, Comfy Cloud and RunningHub. Hosted lanes show an estimate before a job runs and the provider's charge only when the provider reports it.
  • Google Colab work sessions on your own Google account, with idle close, a hard time cap and an optional lease sweeper (user systemd units under scripts/systemd/).
  • Provider console (資源): every signed-in user keeps their own keys. Keys are write-only: after saving they are never shown again.
  • Safer inputs and downloads: uploaded inputs are readable only by the user who uploaded them, and server-side fetches of user-supplied URLs go through an egress guard that refuses non-public addresses. The Colab session worker proves that each uploaded input stays inside its job directory before it reads the file.
  • Image editing: the tool menu's AI 指令改圖 now opens the Qwen 2.1 editing form. The Flux Kontext form keeps its definition, API and recorded demonstration (direct route #/studio/img2img in the demo) but is no longer listed in the menu.
  • Docs and site: compute-platform pages, upstream pins and licences, updated landing page, and the owner's RunningHub referral card (disclosed as a referral; not needed to use the software).
  • Tests: ported and adapted to the public tree. Provider fixtures are synthetic.

The documentation demo (/demo/)

  • Compute screens in the demo: the five platform cards, routing, the 我的運算平台 and 平台管理 tabs, and the per-form platform choice, in zh-TW and English, on phone and desktop widths.
  • Read-only by construction: read requests are answered from a recorded file, every write returns 405, key fields are disabled, and the page says so. Nothing connects and nothing is saved.
  • Recorded data: scripts/record_demo_compute.py starts an isolated server with empty state, a temporary home directory, no provider configuration and no network, and records the responses into webui/docs/demo-compute.json.
  • Character angles walkthrough: steps match the current Qwen-Image 2.1 implementation; the older SDXL + InstantID recording is labelled as such.

Not included

  • Voice on Google Colab: the pinned voice wheel is not distributed, so those requests fail closed with voice_env_mismatch.
  • No accounts, keys, character or voice assets, generated media, databases or measurements ship with the repository.

Commits

Seven commits. Two groups of three (code, tests, docs): the compute platform first, then the demo's compute screens. The seventh answers code scanning: the session worker resolved an input path before it had proven that the path stays inside the job directory.

Checks run before opening

  • python3 scripts/check_public_release.py on the source and on the built site.
  • Secret scan of the tree and of these commits.
  • The CPU and browser test lists of .github/workflows/check.yml, run locally.

🤖 Generated with Claude Code

teddashh and others added 6 commits November 14, 2026 20:12
…console

Bring the public code to the owner's current version: per-form execution on Local, Google
Colab, AutoIP, Comfy Cloud and RunningHub; Colab work sessions with a lease sweeper; per-user
write-only provider keys; hosted estimates and settlement; owner receipts for uploaded inputs;
an egress guard for user-supplied URLs. Private subsystems stay out of the public tree.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Provider response fixtures are synthetic. Tests of removed settings screens are replaced by
tests of the backend properties they protected.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Document the five compute lanes, Colab work sessions, the provider console and upstream pins.
Add the owner's RunningHub referral card, demo banner link and QR code, each with a disclosure.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rder

The application no longer hides the compute settings, the provider console and the per-form
platform choice in documentation mode. Add the recorder that captures the canned responses
from an isolated, empty server, and align the character-angles walkthrough with the current
Qwen-Image 2.1 implementation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Cover both languages at phone and desktop widths, the refusal of writes, and the absence of
requests the demo cannot answer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The documentation runtime answers read requests from the recorded file, refuses every write
and disables key fields. Add the recorded responses and a section in the site notes that says
what the demo shows and what it cannot do.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread scripts/colab_session_inputs.py Fixed
Comment thread scripts/colab_session_inputs.py Fixed
Comment thread scripts/colab_session_inputs.py Fixed
Comment thread scripts/colab_session_inputs.py Fixed
The Colab session worker checked each uploaded input with is_symlink()
and resolve() before it knew the path stayed inside the job directory.
Resolve the path first, refuse anything outside the directory or reached
through a link, and only then read the size and digest. Code scanning
reported the earlier order as path injection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@teddashh
teddashh merged commit e2937d0 into main Nov 15, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants