Skip to content

document TaskManager isEnabled / onlyIfEnabled switch#23

Draft
roeezolantz wants to merge 1 commit into
masterfrom
docs/task-manager-enabled-flag
Draft

document TaskManager isEnabled / onlyIfEnabled switch#23
roeezolantz wants to merge 1 commit into
masterfrom
docs/task-manager-enabled-flag

Conversation

@roeezolantz
Copy link
Copy Markdown
Contributor

Summary

The TaskManager has had a global isEnabled flag since the v0.1.x line, gated via the onlyIfEnabled modifier. While disabled, every state-changing FHE-op entry point and publishDecryptResult* reverts with CofheIsUnavailable. None of this is in the deep-dive page, so apps building reactive UIs around the coprocessor can't find it.

Adding this also gives the React docs (gap B-1 — separate PR) a stable target to cross-link to from useCofheEnabled.

This covers gap B-7 from the docs audit on XDL-11.

Where the underlying changes were made

Changes

File What changed
deep-dive/cofhe-components/task-manager.mdx New "Enable / Disable Switch" section at the bottom of the page. Documents the isEnabled state variable, the onlyIfEnabled modifier, the owner-only enable() / disable() functions, the CofheIsUnavailable revert, and the client-side read pattern (including a forward reference to useCofheEnabled for React apps).

The useCofheEnabled cross-link currently points at the React quick-start stub. Once the React docs PR (gap B-1) lands, the link can be updated to the proper hook reference page.

Test plan

  • `mint dev` renders the new section under the existing Decrypt Result Signature Verification block.
  • Verify the table formatting matches the existing "Key State" / "Functions" tables earlier in the page.

Every state-changing FHE-op entry point and publishDecryptResult* is
gated by onlyIfEnabled; owner-only enable() / disable() flip the flag
and revert with CofheIsUnavailable while off. Add an Enable / Disable
Switch section to the TaskManager deep dive covering the modifier,
state variable, owner functions, and the client-side read path
(including useCofheEnabled for React apps).

Co-authored-by: multica-agent <github@multica.ai>
@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 13, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
fhenix 🟢 Ready View Preview May 13, 2026, 12:02 PM

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