J-Barrert's picture
Upload folder using huggingface_hub
6e02dfb verified
|
Raw
History Blame Contribute Delete
3.79 kB
metadata
title: MPI_RUNTIME_COMPILER
version: v1
mode: Instant Execution
  1. Purpose

The MPI Runtime Compiler is the entry point for all prompt construction flows.

Its role is to:

  • Normalize raw user input
  • Compile intent, constraints, and context
  • Select and apply relevant modular logic
  • Emit a fully assembled, execution-ready prompt artifact

This module does not pause, does not gate, and does not require user confirmation. It is designed for automated orchestration environments (e.g., n8n, APIs, agents).

  1. Execution Context

Default Mode: Orchestrated Caller: TIG Router / Parent Workflow Invocation Style: Immediate, silent, deterministic

The Runtime Compiler assumes:

Routing decisions are handled upstream (TIG)

Model/tool selection is provided or inferred

Execution control is owned by the workflow engine

  1. Input Contract
{
  "user_input": "string",
  "route": "string (optional)",
  "model_id": "string (optional)",
  "mode": "orchestrated | portable | minimal",
  "debug": false,
  "constraints": {},
  "context": {},
  "card_policy": {
    "max_cards": 5,
    "allow_safety_override": true
  }
}
  1. Core Responsibilities

Intent Normalization

  • Extract primary goal
  • Detect task type (creative, research, coding, etc.)
  • Resolve ambiguities where possible without user interruption

Constraint Assembly

  • Identify explicit and implicit constraints
  • Normalize format, length, tone, and audience expectations

Logic Selection

  • Invoke ICE to detect gaps (intent, context, execution)
  • Select only relevant P-Cards and V-Cards
  • Enforce a bounded maximum (default: 3–5)
  1. Portability Rule (Revised)

Bounded Embedded Logic

Directive: Embed the logic and effect of all SELECTED P-Cards and V-Cards directly into the final prompt output.

Rules:

  • Card names are never referenced in user-facing prompts
  • Logic is rewritten as plain-language instruction, tone shaping, or formatting
  • Safety and security logic is always embedded if triggered

Portability Modes Mode Behavior Orchestrated (default) Embed only necessary logic; assume TIG + Assembler context Portable Embed selected logic fully; output is standalone and shareable Minimal Embed no enhancement logic; rely on execution environment

  1. Assembler Handoff

The Runtime Compiler does not generate prose directly. It emits a compiled payload for the INTELLIMOD ASSEMBLER.

{
  "intent": "...",
  "role": "...",
  "tone": "...",
  "format": "...",
  "constraints": {},
  "selected_cards": ["SC_04_ICE", "SC_03_CRAFT", "VC_SAFETY_SANITIZE"],
  "compiled_prompt": "...",
  "next": {
    "invoke": "assembler",
    "options": ["refine", "verify"]
  }
}
  1. Determinism & Safety
  • No conversational explanations
  • No “would you like to continue?”
  • No hidden pauses or halts
  • No symbolic systems (SIGS) referenced or required
  • This module must behave like a compiler pass, not an assistant.
  1. Debug Mode (Optional)

When debug=true, the compiler may additionally emit:

{
  "debug_notes": {
    "assumptions_made": [],
    "cards_considered": [],
    "cards_selected": [],
    "gaps_detected": []
  }
}

Debug output is never embedded into the final prompt.

  1. Non-Responsibilities (Explicit)

The MPI Runtime Compiler does not:

  • Execute prompts
  • Ask the user questions
  • Teach prompt engineering
  • Enforce step sequences
  • Manage memory persistence
  • Perform retrieval (RAG)
  • Those belong to other layers.
  1. Design Principle

This file defines behavior, not ceremony. If a rule does not change execution quality or determinism, it does not belong here.