Muse plugins reject still exits 1 when the named switch is off

John Burns

The variable was already off, and muse plugins reject foreign-script-guard --json still exited 1. The error code was still builtin-plugin-not-revocable. The sentence changed. The process status did not.

The 1.4.25 changelog says that command refuses a plugin compiled into the binary, names the product gate and the environment variable that switch it off, and that bundled plugins such as muse-core keep a count-0 success. A measurement on this site from 26 November recorded the refusal with the variable unset, and it said it did not report what a later process does with that variable. This run set it. The later process, for this command, is the same command. It reads the variable. It does not become the switch.

What this run held still

The binary was Muse Code 1.4.25, release 1.4.25-R9361.1, on Linux x86_64, on 5 December 2026. The version line of the versioned ELF was Muse Code 1.4.25 (1.4.25-R9361.1). That file was 468,724,056 bytes. Its SHA-256 was c1b728fb9732503c5e1869e3ad2f2c9bdb5b2638fb4cf398d6e2c46aa6d8f94a, the same digest recorded on 26 November. The reject, list, inspect, approve, and disable commands in this run invoked that ELF, so the launcher’s update check was not on the path. The launcher’s own version line matched. A list through the launcher, against a separate empty home, also printed no plugins.

Each case used a new home and new XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, and XDG_CACHE_HOME. No login command was run. No Meta API key was set. No prompt was sent.

The help line for plugins reject still says it trusts and disables current runtime capability definitions. It does not name a compiled-in plugin, an error code, or an environment variable. The extending page fetched the same morning documents skills, hooks, MCP, and headless runs. It does not contain plugins reject, foreign-script-guard, or builtin-plugin-not-revocable. The binary is the contract for this command. The help page is not.

Which values count as off

With the variable unset, the JSON object and the text on standard error agreed. The code was builtin-plugin-not-revocable. The message said the plugin is built into this binary and has no runtime capability to revoke, so plugins reject cannot switch it off. It named the product gate foreign_script_guard_plugin, said that gate is now on, and said to set MUSE_EXPERIMENTAL_FOREIGN_SCRIPT_GUARD_PLUGIN=off for the next run. The text form wrote that sentence only to standard error and left standard output empty. The JSON form wrote the object to standard output and the same sentence to standard error. Both exited 1.

on and 1 kept the “now on” sentence. So did no, and so did an empty value. Those four spellings are not off on this binary. A wrapper that treats any non-empty value as off, or that treats no as off because that is the spelling another tool uses, will store a value this command still describes as on.

off, 0, false, and OFF changed the sentence. The gate was “now off, so the plugin is not running,” and the message named MUSE_EXPERIMENTAL_FOREIGN_SCRIPT_GUARD_PLUGIN as the switch without telling you to set it again. The error code did not change. The exit status did not change. Standard error was still written on the JSON path. A job that fails the step when the status is non-zero will fail after a successful switch. A job that fails the step when standard error is non-empty will fail the JSON form even if it later learns to ignore the status. The field to read is error.message, and the words to require are now off. The status is not that field.

The changelog says the refusal names the variable that switches the plugin off. It does not say the refusal remains after the switch, which spellings count as off, or that JSON and text share a sentence while only JSON has a code field. Those three facts are what a caller needs before it treats exit 1 as “the variable was not read.”

The other commands do not see the id

plugins list printed no plugins and exited 0. plugins list --json printed an object whose plugins array was empty. plugins list --available --json printed empty available, skipped, and warnings arrays. After the reject calls, list was still empty. Some of those calls wrote builtin skill files under the disposable data directory. That tree did not put foreign-script-guard on the list.

plugins inspect foreign-script-guard --json exited 1 with code unknown-plugin and the message that the plugin is not installed. plugins disable returned the same code and the same shape of message. plugins approve exited 1 with a different code, runtime-capability-not-found, and the message that no runtime capabilities match that id. A capability-qualified reject, foreign-script-guard:hook:guard, returned that same not-found code. The bare id is the only spelling that produced builtin-plugin-not-revocable.

An empty kind, foreign-script-guard::cap, with --json, exited 1 and wrote nothing to standard output. Standard error said the runtime capability kind was unknown and named hook, reminder, mcp_server, agent_definition, and invocation_preapproval. --json did not wrap that parser error. A caller that requires a JSON object on every non-zero exit will fail a parse of an empty stream, or will treat a usage error as a missing plugin, depending on which failure it catches first.

A catalog job that lists, then skips unknown ids, never reaches the refusal and never learns the gate name. A job that approves or rejects a capability id gets a not-found code and also never learns the gate name. The bare plugins reject of the plugin id is the command that knows the id is compiled in. The list is not a precondition for it. Running the list first and stopping on unknown-plugin from inspect or disable is how a wrapper misses the switch the message is trying to name.

A second compiled-in id

meta-3d-generation took the same refusal, with its own names. The code was again builtin-plugin-not-revocable. The gate was meta_3d_generation_plugin. With the variable unset, the message said the gate is now on and named MUSE_EXPERIMENTAL_META_3D_GENERATION_PLUGIN=off. With that variable set to off, the message said the gate is now off and that the plugin is not running, and the exit status was still 1. The changelog’s example is foreign-script-guard. It does not say a second compiled-in id uses the same code and a different variable, or that the “now off” wording appears for that id too. A script that sets only the foreign-script-guard variable and then expects the 3D id to report now off will still see now on.

The ids that kept the count-0 success, on this binary and in a fresh home, were muse-core, python-env, guidance-match-requested-length, threejs, and tbh-reminders. Each JSON object had decision set to reject, the plugin id, and revoked_runtime_capability_count set to 0, and each exited 0. The text form of muse-core printed rejected, a tab, the id, a tab, and count=0, and also exited 0. A scanner that treats the word rejected as failure will flag a success. The JSON form does not print that word on standard error. The two forms are not interchangeable for a string match.

Those count-0 calls did not write settings.json. The config directory gained a zero-byte .settings.json.lock and nothing else. There is no plugin row to read back, and there is no skill row either. The November measurement already showed that a count-0 reject of muse-core does not turn a bundled skill off. This run adds the fresh-home form of that fact: the success does not create the file a later command would edit. If you need a skill off, use the skill command and read the stored key. Do not use this exit 0 as evidence that a plugin or a skill changed.

not-a-plugin exited 1 with unknown-plugin. That is the third result, beside the compiled-in refusal and the count-0 success. A missing name, a compiled-in name, and a bundled name are three exits, not one. The help line does not separate them.

Verify the switch, not the status

Point the process at a directory you can delete. Invoke the versioned ELF, or set MUSE_NO_AUTO_UPDATE=1 if you must use the launcher. This run did the first. Print the version and record the digest before you trust a later sentence. The launcher and the ELF can share a version line. Hash the file you actually ran.

Run plugins reject on the bare id with the variable unset, and require exit 1, code builtin-plugin-not-revocable, and the words now on. Then run it again with the variable set to off. Require the same exit and the same code, and require now off in error.message. If the second run exits 0, or if the code changes, you are not on the binary this note describes. If the second run still says now on, the value you set is one of the spellings this binary does not treat as off. no is in that set. 0, false, and OFF are not.

Do not require an empty standard error on the JSON path. This binary writes the message there too. Do not require a JSON object when the id contains an empty kind. That failure is text on standard error and an empty standard output, even with --json.

Do not use plugins list, plugins inspect, or plugins disable to decide whether the id exists. On this binary they say it is not installed, including after reject has named it. plugins approve and a capability-qualified reject say no runtime capability matches. Those are different failures. Only the bare reject names the gate.

If you also care about meta-3d-generation, repeat the pair of calls with MUSE_EXPERIMENTAL_META_3D_GENERATION_PLUGIN. The code matches. The variable does not. The message is how you tell the two gates apart. The exit status cannot.

The switch the message names is an environment variable for the next process, not a settings key and not an exit code. Reject tells you which way the gate reads. It does not turn the gate, and it does not leave once the gate is off.

Sources