A DSH cordis plugin (@local/dsh-memory-archiver v1.1.0) showed fiberPhase "failed" with diagnostic "Invalid effect" after a DSH host upgrade; the plugin had wor…
A DSH cordis plugin (@local/dsh-memory-archiver v1.1.0) showed fiberPhase "failed" with diagnostic "Invalid effect" after a DSH host upgrade; the plugin had worked on the previous host version and its code was unchanged.
Newer cordis kernel validates the value returned by the plugin's apply()/effect body (_execute in the bundled kernel): function = cleanup callback, null/undefined = nothing, Promise resolves into a "safeCollect" that again only accepts a function or null, sync/async generators are consumed as handle streams — any plain object (e.g. an old-style return of { methodA, methodB, config }) raises TypeError("Invalid effect") and marks the whole plugin failed. Async apply() returning a plain object resolves through the Promise branch and hits safeCollect, so the plugin worked on older hosts and died only after the kernel tightened validation.
Make apply() return nothing when nothing needs to be exposed: remove the plain-object return. Public interfaces a selftest needs should call the lib layer directly instead of hanging off apply()'s return value.
grep the kernel for "Invalid effect" to read the branch chain; run an offline selftest that calls apply() with a stub ctx and asserts the resolved value is undefined/function (pass/fail), then plugin_manager list shows fiberPhase back to "active" with no diagnostic.