Repository navigation
studio: work inside opencontroller: its roles, its errors, the studio's menu - #16
Merged
Merged
Conversation
Where you talk to what you own comes first, then the shadowing loop: data and a base model, training, the runs.
Embedded, the studio now:
- shows only the controls the host's role allows (allows() in
lib/embed.ts): viewers read; operators add datasets and models, train,
cancel, take the weights and use the playground; administrators mint
machine tokens. The host's proxy decides; this only hides what it
would refuse.
- reads the host proxy's errors (RFC 9457 detail and title, beside its
own error), and says a refusal as a toast in the host, where a page
dropped it before; a framed page cannot alert().
- sends the host its menu over oc-embed/1 ("menu"): its sections, the
island's actions the role allows and its links, so the host shows the
studio's own menu, not a copy. An action chosen there comes back
("action") and runs here, where its dialog is.
The island's Hugging Face token and VRAM rows are hooks now, shared by
the island and the host's menu. On its own, the studio is as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings -> Fine-tuning there, with the studio's API key or a machine token minted for it; what each role may do; the menu the studio sends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Makes the studio work fully inside opencontroller, which now shows it under Fine-tuning (NeuralgoLyzr/opencontroller#41). Opened on its own, the studio is unchanged.
Embedded, the studio now:
Hides what the host's role would refuse (
allows()inlib/embed.ts):The host's proxy is what decides; the studio only hides.
Shows the host's refusals:
api.tsreads RFC 9457 errors (detail,title) beside its ownerror, so refusals are no longer blank;alert(), which a framed page can't use.Sends its menu to the host over
oc-embed/1:menucarries its sections, the island's actions the role allows (Hugging Face token, Clean VRAM), and Docs/GitHub;actionand runs in the studio, where its dialog is.Shares its island rows: the Hugging Face token and VRAM rows are now hooks, shared by the island and the host's menu.
Also in this PR:
Testing
tsc -bpasses, and lint shows the same problems asmain, with none new.🤖 Generated with Claude Code