Skip to content

Only dispatch Rotur methods the built-in blocks use in the fallback host - #23

Merged
Mistium merged 6 commits into
developfrom
rotur-fallback-allowlist
Oct 3, 2026
Merged

Mistium merged 6 commits into
developfrom
rotur-fallback-allowlist

Conversation

@Mistium

@Mistium Mistium commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

createSdkHost in src/extensions/rotur/core.js previously walked any dotted method path on its Rotur client. A caller reaching the host through vm.runtime._roturHostResolved could read the token through _http.getToken or invoke sensitive SDK actions without confirmation.

The fallback host now dispatches only methods registered by the built-in block specs and accepts only scopes those blocks use. Sensitive methods always require confirmation, even when the caller passes sensitive: false.

The branch incorporates the latest develop, including the removal of money blocks in #24. Removed blocks remain hidden and inert, and their SDK methods and credit permissions are rejected by the fallback host. The confirmation regression test uses key cancellation, which remains supported.

Validation: full unit and integration test suite, VM production build, and ESLint over tracked JavaScript files. ESLint uses --no-ignore because the worktree's .claude ancestor is otherwise ignored; the repository's normal excluded directories remain excluded from the file list.

The conflict resolution has no visible UI change, so screenshots are not applicable.

GUI production deployment: Live editor (Cloudflare deployment). The deployment succeeded and production version.json confirms VM commit e3ade1815b0ea504255ed800962f60d94897bf77.

The fallback host walked any dotted path on its Rotur client, so code that
reached it through the runtime could call _http.getToken. It now dispatches
only methods registered by the block specs, accepts only scopes those blocks
use, and confirms spending methods with text built from the arguments.
Mistium and others added 5 commits October 2, 2026 19:00
…d projects

my credits, send credits, seconds until daily claim and my transaction
history are hidden from the palette. Projects that already use them still
load and run: the blocks answer 0 or an empty string without reaching
Rotur or asking for credits:view or credits:transfer. MistWarp no longer
reads or sends anyone's credits.
create a gift, buy key, tip group and buy group product move credits too,
so they're hidden no-ops like the others: projects can't move credits
through MistWarp. The sign-in tests read the username instead of the
balance.
Buying from Rotur's shops spends credits, which projects no longer do
through MistWarp. Like the other money blocks, they stay hidden so old
projects load, and do nothing.
Remove the Rotur extension's money blocks, keeping them hidden for old projects
@Mistium
Mistium merged commit e3ade18 into develop Oct 3, 2026
2 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.

1 participant