Zum Inhalt springen
Mycelis Roleplay · Referenz · 13 Min Lesezeit

Blueprint-Referenz (Rollenformat v1alpha1)

Grundstruktur & Minimalbeispiel

Jede Rolle in Mycelis Roleplay ist ein deklaratives YAML-Dokument (apiVersion: mycelis/v1alpha1, kind: Blueprint). Die Defaults sind restriktiv ausgelegt (selfProvisioning: approval, spawn.mode: disabled, autonomy: souffleur):

apiVersion: mycelis/v1alpha1
kind: Blueprint
metadata:
  name: linux-ops
  version: 1.0.0
  displayName: Linux Ops
  description: Wartet Linux-Server und prueft Dienste.
spec:
  runtime:
    platform: ubuntu-24.04
    screen: none
    sandbox:
      provider: container
      network:
        egress: allowlist
        allow: ["api.github.com", "registry.npmjs.org"]
  brain:
    driver: mycelis-agent
    agent: ops-brain
  agent:
    execution:
      mode: auto
      reasoningEffort: medium
    stepTimeoutSeconds: 0
  capabilities:
    required:
      - name: shell
        source: { type: builtin, id: mycelis.capabilities.shell }
  budget:
    tokens: 2000000
    wallClockMinutes: 120

Validieren: Prüfe lokale Rollen vor dem Einsatz jederzeit strikt mit mycelis-roleplay role set <datei.yaml> oder im Repository mit dotnet run --project src/Mycelis.Roleplay.Blueprint.Validator -- --strict <datei.yaml>.


spec.runtime — Maschine, Sandbox & Netzwerk

Feld Werte / Bedeutung
platform Zielplattform, z. B. windows-11-24h2, ubuntu-24.04, macos-15 (bestimmt Plattformfamilie windows / linux / macos).
screen present oder none (Headless-Server). Bei none sind GUI-Requisiten und vision als required verboten (V18).
sandbox.provider hyper-v, container, windows-sandbox, macos-vm oder bare-metal. Bei bare-metal muss selfProvisioning auf disabled stehen (V01). Linux-GUI erfordert container (V21).
sandbox.network.egress allowlist (mit allow-Hosts, Pflicht bei allowlist laut V06), denylist oder open.

spec.brain & spec.agent

brain (Pflicht)

Feld Bedeutung
driver mycelis-agent (verbunden über /api/proxy/v1), anthropic oder openai-compatible.
agent Slug des Mycelis-Agents (nur und Pflicht bei mycelis-agent). model, endpoint und apiKeyRef sind dann verboten (V15).
model Modell-ID (Pflicht bei anthropic / openai-compatible).
endpoint Basis-URL (Pflicht bei openai-compatible, optional bei anthropic). HTTP außerhalb Loopback erzeugt Warnung V17.
apiKeyRef Verweis (secret://..., vault://..., env://..., dpapi://...), niemals ein Klartext-Key (V16).

agent

  • planning: mode (open | playbook-only), approval (auto | required), maxSteps (1–50, Standard 12), maxRevisions (0–20, Standard 5).
  • execution: mode (verified | auto | open), restrictOpenSceneTools (false Standard), openScene.maxToolRounds (0 = unbegrenzt), openScene.timeoutSeconds (0 = unbegrenzt), reasoningEffort ("default" | "disabled" | "low" | "medium" | "high" — nie unquotiertes off verwenden!).
  • commands: defaultTimeoutSeconds (0 = kein Limit), maxTimeoutSeconds (0 oder >= defaultTimeoutSeconds, V22).
  • contextPolicy: maxScreenshots (2, Warnung ab > 4), screenshotRetention (last-n), includeUiaTreeDiff (true), maxToolResultChars (12000), compactAtTokens (80000), keepRecentRounds (4).
  • memory: mode (enabled | disabled), reflect (false), autoSkills (false), perScene (8), companyMemoryAccess (read-write | read-only | disabled).
  • web.search: provider (brave | tavily | searxng), apiKeySecret, endpoint (V22).
  • schedules: max (0–200, Standard 20).
  • meeting: transcription, speech, inputDevice, outputDevice, segmentSeconds, maxDurationMinutes, maxToolRounds (V24).
  • concurrency: maxMissions (1–16), maxSubtasks (0–16), subtaskShare (0.05–0.9, maxSubtasks * subtaskShare <= 1.0 laut V25), maxCpuPercent, minFreeMemoryMb, hireAfterMinutes.

spec.capabilities — Eingebaute & externe Requisiten

Eingebaute Requisiten (source.type: builtin) stehen ohne Download bereit:

ID Funktion
mycelis.capabilities.shell Shell-Sitzungen, Hintergrundprozesse, Dateien lesen/schreiben/editieren/suchen, file_view_image
mycelis.capabilities.windows / macos / linux Native GUI-Steuerung über UIA / Accessibility / AT-SPI (muss zur Plattform passen, V19)
mycelis.capabilities.vision Screenshots, vision_scroll, vision_drag, OCR (braucht screen: present, V18)
mycelis.capabilities.coding Headless-Steuerung von Claude Code, Codex CLI, opencode, Gemini CLI und Aider
mycelis.capabilities.packages Systempakete über winget, apt, brew
mycelis.capabilities.web web_fetch und optional web_search
mycelis.capabilities.meeting Browser-Meetings beitreten, mithören und sprechen

Externe MCP-Server nutzen source.type: mcp-registry, winget, npm, oci oder local. Unter selfProvisioning steuerst du mode (disabled | approval | auto), allowedSources, allowedNamespaces (Pflicht bei auto, "*" verboten laut V02), denyPackages und maxInstallsPerMission (Standard 3).


spec.autonomy, spec.policy & spec.budget

  • autonomy: souffleur (Standard) oder stegreif.
  • policy.gates & policy.forbidden: Regeln mit action, optionalem scope (Glob) und approval: required | auto.
  • Kanonische Aktionsbezeichner: capability.install, capability.mount, capability.uninstall, package.install, package.uninstall, file.read, file.write, file.delete, process.start, process.kill, process.elevate, registry.read, registry.write, network.egress, credential.read, credential.write, ui.click, ui.type, ui.screenshot, delegation.spawn, delegation.request, plan.revise, memory.write, schedule.create, media.record, media.speak, role.draft, agent.ask, subtask.spawn, staff.request, watch.manage, system.dialog.
  • policy.verification: requireDeterministicPostcondition: true, onUnverifiable (escalate | fail | continue), maxRetriesPerStep, escalationLadder (Standard [native, uia, ocr, human]), agentMayChooseStage (true).
  • budget: Mindestens eine Grenze Pflicht (V05): tokens, wallClockMinutes (0/leer = unbegrenzt), steps, costUsd. Kindbudgets über childInheritance.mode (share-of-parent mit 0 < maxShare < 1.0, fixed oder none, V04).

spec.delegation, spec.watch, spec.duty & spec.lifecycle

  • delegation: spawn (mode, maxDepth, maxChildren, allowedBlueprints – V03/V10) und peers (inbound.allowBlueprints, inbound.exposeCapabilities, outbound.allowBlueprints).
  • plans: Gebundene Abläufe mit ref, version, trigger (manual | schedule | event, V14).
  • watch: sources (Typen imap, ics, file, process, webhook, heartbeat, feed, http, advisory, threshold, drift mit optionalem quiet), reports (daily, weekly) und alerts (V23).
  • duty: area, goals, limits, reportsTo, triage.brain, periodisches budget, procedures (stages mit env, do, check, waitHours, window, ask, provision sowie rollback) und reports (V27, V28).
  • lifecycle: ttlMinutes (Pflicht bei spawn.mode != disabled, V03), idleShutdownMinutes, restartPolicy (never | on-failure | always, bei Spawn kein always laut V09), healthCheck.
  • observability: ledger.enabled, ledger.level (full | actions | disabled, V08), logLevel, retainArtifactsDays, redactSecretFields (true).

Nächste Schritte