compileDispatchPlan in core/compiler.mjs turns your reviewed prompt, selected capabilities, and optional task sections into one text prompt plus a manifest. It is host-independent; host is recorded as metadata only.
Marker
Every generated prompt starts with:<!-- DISPATCH_COMPILED_PROMPT, which prevents an approved prompt from being intercepted again.
Sections
In order:- The marker line.
## Objective, followed by the original prompt (trimmed, any language, unchanged).- One of:
- Breakdown mode (at least one task):
## Task Breakdown & Assigned Capabilities. - Simple mode with capabilities:
## Approved Capabilities & Node Instructions. - Simple mode without capabilities:
## Approved Capabilitieswith the lineNo extra capabilities selected; proceed with default host tools only.
- Breakdown mode (at least one task):
## Additional User Constraints, only whenglobalNotesis not empty.## Execution Guardrail, with the lineThis prompt was explicitly reviewed and approved by the user in EISPATCH. Proceed with execution.
Simple mode capability lines
The section starts withUse the following user-approved capabilities in support of the objective above:. Capabilities are sorted by order (missing values sort last) and listed as:
Breakdown mode task sections
The section starts withExecute the following user-approved task sections in order, applying each section’s assigned capabilities:. Tasks are sorted by order and numbered from 1:
- Task focus:appears only when the task prompt differs from the title.- A task without capabilities gets
- Capabilities: Default host tools only.
Capability label rules
KINDis the capability kind in uppercase:MCP,SKILL,PLUGIN,SUBAGENT, orRULE.- The label is
host-enforced tool scopeonly when the node hasenforceable: true. Otherwise it isadvisory guidance. Instructionis omitted when empty.Scoped Toolslists at most 8 tools, followed by(+N more)when there are more.
Manual edits
IfmanualFinalPrompt is non-empty, compiledPrompt is that text verbatim. generatedPrompt still holds the structured version, and manifest.manuallyEdited is true.
Inputs
Selected capability nodes for simple mode. Fields read:
kind, label, enforceable, instruction, tools, order, and capabilityId or id.Task sections. When non-empty, breakdown mode is used and
selectedNodes is ignored. Fields read: id, title (defaults to Task N), prompt, order (defaults to 999), and capabilities (nodes with the same fields as above).Outputs
mode, taskCount, selectedCount, enforceableCount, advisoryCount, manuallyEdited, and charCount (length of compiledPrompt).The compiler only produces text and metadata. Whether a host restricts tools is decided by the host, not by EISPATCH. In v1.1.0, capabilities are advisory unless a node is explicitly marked
enforceable: true.