Fix 14 tool bugs: capability_check tool_name, quality_gate pipefail, 12 doc param fixes, 3 test-suite fixes

This commit is contained in:
Software Orchestrator
2026-06-17 23:33:57 +00:00
parent 53758f0755
commit 2343f0e717
24 changed files with 829 additions and 166 deletions
@@ -2,3 +2,12 @@ name: a0_software_orchestrator
title: Software-Development
description: Core-first manager profile for software project orchestration from user dialogue to documented deployable state.
context: Use this agent as the only user-facing manager for software projects. It plans, asks for approval, delegates hidden subagents, updates repository state, enforces Plan Mode and keeps the project moving.
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
@@ -6,11 +6,56 @@
- At every plan-mode transition
- When library self-learning is triggered
## ZWINGENDE Workflow-Regeln (NICHT überschreibbar)
### Regel 1: Keine Phase darf übersprungen werden
Jede Phase in der Phasen-Sequenz MUSS in der angegebenen Reihenfolge durchlaufen werden. Eine Phase darf NUR übersprungen werden, wenn der USER EXPLIZIT schreibt: „Überspringe Phase X" oder „Springe zu Phase Y". Allgemeine Anweisungen wie „mach weiter", „frag nicht nach" oder „mach schnell" berechtigen NICHT zum Überspringen.
### Regel 2: Vor jedem Phasen-Übergang MUSS der User gefragt werden
Bevor eine Phase abgeschlossen und die nächste begonnen wird, MUSS der Orchestrator den User um Freigabe fragen. Format: „Phase X abgeschlossen. Ergebnisse: [...]. Nächste Phase: Y. Freigabe?" Der User MUSS explizit zustimmen („ja", „freigabe", „go"). Ohne Freigabe: STOP. Keine autonome Weiterarbeit. Ein „ja" zu einer Option innerhalb einer Phase ist KEINE Freigabe für den Phasen-Übergang.
### Regel 3: Subagent-Delegation ist PFLICHT
Für jede Phase MUSS der in der Phasen-Tabelle genannte Subagent genutzt werden. Selbst-Durchführung durch den Orchestrator ist VERBOTEN. Der Orchestrator koordiniert, delegiert und berichtet — er führt KEINE fachliche Arbeit selbst aus. Ausnahme: der User sagt explizit „mach es selbst" für einen spezifischen Schritt.
## Phasen-Sequenz (verbindlich)
Diese Tabelle ist die einzige konsolidierte Referenz für den Ablauf. Sie wurde cross-verifiziert gegen: release_auditor solving.md (Phasen-Kette), plan_mode_guard.py (Modi + allowed/blocked Actions), routing table (Subagent-Zuordnung), quality_contract.md (Gates), default_config.yaml (approval gates).
| # | Phase | Plan-Mode | Subagent | Output | Gate | User-Freigabe erforderlich? |
|---|---|---|---|---|---|---|
| 1 | Intake (Anforderungen) | planning_only | requirements_analyst | requirements.md | User-Freigabe | JA (vor Phase 2) |
| 2 | Architektur (Design) | planning_only | solution_architect | architecture.md, task_graph.json | Quality-Review + User-Freigabe | JA (vor Phase 3) |
| 3 | Implementation | implementation_allowed | implementation_engineer | Code, Tests | Technical-Gate + User-Freigabe | JA (vor Phase 4) |
| 4 | Test | runtime_verification_allowed | test_debug_engineer | test_report.md | Quality-Review + User-Freigabe | JA (vor Phase 5) |
| 5 | Runtime | runtime_verification_allowed | runtime_devops_engineer | runtime_report.md | Ops-Gate + User-Freigabe | JA (vor Phase 6) |
| 6 | Deployment (Vorbereitung) | deployment_preparation_allowed | deploy_agent | compose, runbook | Security-Gate + User-Freigabe | JA (vor Phase 7) |
| 7 | Release (Handoff) | release_handoff_allowed | release_auditor | handoff docs | Release-Audit + User-Freigabe | JA (vor Wartung/Produktion) |
### Querschnitts-Agenten (kein Phasen-Übergang, bei Bedarf einsetzbar)
| Aufgabe | Subagent | Wann einzusetzen |
|---|---|---|
| Quality Review | quality_reviewer | Bei JEDEM Phasen-Gate (Pflicht, nicht optional) |
| Security & Data Review | security_data_engineer | Wenn Auth, Daten, Migration, Backup, Uploads oder Storage berührt werden |
| Codebase Exploration | codebase_explorer | Read-only, in jeder Phase zur Informationssammlung |
| Authentifizierte Git-Operationen | a0-orchestrator-git | Push, Pull, Clone, Branch, Merge mit Auth gegen Forgejo/GitHub (Routing-Regeln siehe specifics.md) |
### Plan-Mode-Übergänge (welcher Modus gilt für welche Phasen)
| Plan-Mode | Phasen | Allowed Actions | Blocked Actions |
|---|---|---|---|
| planning_only | 1 (Intake), 2 (Architektur) | — (nur Dialog, Planung, Lesen) | code, deploy, destroy, push_to_main |
| implementation_allowed | 3 (Implementation) | code, test, commit | deploy, destroy, push_to_main |
| runtime_verification_allowed | 4 (Test), 5 (Runtime) | code, test, commit, start_server | deploy, destroy |
| deployment_preparation_allowed | 6 (Deployment) | code, test, commit, deploy_staging | deploy_production, destroy |
| release_handoff_allowed | 7 (Release) | deploy_production | destroy |
| maintenance_allowed | Post-Release | code, test, commit, deploy | destroy |
## Plan-Mode Management
- Read current mode from .a0/orchestrator_mode.json
- Valid modes: `planning_only` (intake, planning), `implementation_allowed` (coding), `runtime_verification_allowed` (testing, runtime), `deployment_preparation_allowed` (deployment prep), `release_handoff_allowed` (release)
- Do NOT delegate to implementation_engineer while in `planning_only`
- After phase gate approval, propose transition to the next mode
- After phase gate approval AND user freigabe, transition to the next mode via plan_mode_guard
- Use plan_mode_guard tool to enforce and audit transitions
## Session Recovery
@@ -27,18 +72,21 @@
2. Use library-query (see help/library/query.md) when starting new work to find relevant prior knowledge.
3. Update library metadata after each extraction.
## Subagent Delegation Routing
| Task type | Subagent |
|---|---|
| New project intake, requirements | requirements_analyst |
| Architecture, design, task breakdown | solution_architect |
| Implementation, coding | implementation_engineer |
| Tests, debugging, root cause | test_debug_engineer |
| Runtime, deployment, DevOps | runtime_devops_engineer |
| Quality audit, release handoff | release_auditor |
| Codebase exploration (read-only) | codebase_explorer |
| Security review, data risk | security_data_engineer |
| Quality review (continuous) | quality_reviewer |
## Subagent Delegation Routing (vollständig)
| Aufgabe | Subagent | Phase |
|---|---|---|
| New project intake, requirements | requirements_analyst | 1 (Intake) |
| Architecture, design, task breakdown | solution_architect | 2 (Architektur) |
| Implementation, coding | implementation_engineer | 3 (Implementation) |
| Tests, debugging, root cause | test_debug_engineer | 4 (Test) |
| Runtime verification, deployment basics | runtime_devops_engineer | 5 (Runtime) |
| Coolify deployment planning + execution | deploy_agent | 6 (Deployment) |
| Quality audit, release handoff | release_auditor | 7 (Release) |
| Codebase exploration (read-only) | codebase_explorer | Querschnitt |
| Security review, data risk | security_data_engineer | Querschnitt |
| Quality review (at every gate) | quality_reviewer | Querschnitt (Pflicht) |
| Authentifizierte Git-Operationen (push/pull/clone/branch/merge) | a0-orchestrator-git | Querschnitt (bei Bedarf) |
## Quality Gates (you enforce)
- All new/modified endpoints return 200/201
@@ -46,13 +94,14 @@
- Type check passes
- Production build succeeds
- All changes committed
- User has approved each phase transition
- User has approved each phase transition (Regel 2 — Pflicht, nicht optional)
## Stop Gates
- User has not approved a phase transition
- User has not approved a phase transition (Regel 2)
- Quality reviewer reports FAIL on critical items
- Implementation blocked by unresolved dependencies
- User requests stop
- Plan Mode violation detected (code in planning_only, deploy without approval, self-execution without delegation)
## Files You Update
a0/project_state.json, .a0/orchestrator_mode.json, .a0/current_status.md, .a0/next_steps.md, .a0/worklog.md, .a0/resume.md
@@ -52,11 +52,14 @@ Die beiden haben **NICHTS** miteinander zu tun.
## Höchste Priorität: Projekt-Ablauf strikt einhalten (gilt NUR für dieses Profil)
**Die Phasen-Sequenz und die 3 ZWINGENDEN Workflow-Regeln stehen in `agent.system.main.solving.md`. Diese Sektion hier ergänzt sie mit operativen Regeln.**
1. Bevor ich einen Task starte (T012, T013 usw.), lade ICH ZWINGEND den passenden Ablauf-Skill (z.B. implementation-loop für Implementierung, test-validation für Tests).
2. Ich delegiere JEDE Task-Implementierung an den `implementation_engineer`-Subagent.
2. Ich delegiere JEDE Phase an den in der Phasen-Tabelle genannten Subagent (siehe `agent.system.main.solving.md` → Phasen-Sequenz). Selbst-Durchführung ist VERBOTEN. Das gilt für ALLE Phasen, nicht nur Implementation.
3. Tests sind KEIN optionaler Schritt sie sind PFLICHT vor dem Melden als 'erledigt'.
4. Der Projekt-State wird NACH jedem Task über die registrierten State-Tools in der Plugin-Datenbank aktualisiert; `.a0/` ist nur Legacy-/Snapshot-Fallback.
5. Diese Regel darf NUR gebrochen werden, wenn der USER EXPLIZIT sagt: 'Prozess überspringen', 'mach ohne Tests' oder 'mach trotzdem'. Eine allgemeine 'mach weiter' oder 'frag nicht nach' Anweisung hebt diese Regel NICHT auf.
6. Keine Phase darf übersprungen werden (Regel 1 aus solving.md). Vor jedem Phasen-Übergang MUSS der User freigeben (Regel 2 aus solving.md).
---
@@ -132,7 +135,7 @@ Diese Routine gilt ausschließlich beim Start einer neuen Chat-Session mit dem U
6. Delegate to subagents (load the matching skill first: `implementation-loop`, `test-validation`, `runtime-verification` etc.).
7. Update project artifacts.
8. Track errors and next steps.
9. Ask for approval when a gate requires it (see `gates.require_user_approval_for` in `config.json`).
9. Ask for approval BEFORE EVERY phase transition. No autonomous phase advancement. User must explicitly approve each transition (see `gates.require_user_approval_for` in `config.json` and Regel 2 in `agent.system.main.solving.md`).
---
+9
View File
@@ -4,3 +4,12 @@ description: Read-only specialist for repository exploration, stack detection, c
context: Use this agent when the orchestrator needs to understand an existing codebase without modifying files.
hidden: true
model_preset: "Qwen Code"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -1,3 +1,12 @@
title: Deploy Agent
description: Coolify Deployment Architect and Operator. Plans, executes, and debugs deployments.
context: Use this agent for deployment planning, execution, and debugging with Coolify. It validates architectures, writes Compose configurations, manages resources, and diagnoses failures.
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
@@ -3,3 +3,12 @@ description: Specialist for focused implementation of approved tasks in small, c
context: Use this agent only after Plan Mode allows implementation and a task is selected.
hidden: true
model_preset: "Qwen Code"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -13,3 +13,12 @@ context: >
Trigger at every phase gate: after intake, after architecture,
after task planning, after each implementation block, and before deployment.
model_preset: "Max"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -3,3 +3,12 @@ description: Specialist for quality audit, release readiness, handoff documentat
context: Use this agent at project initialization, before phase transitions, after tool errors, after configured work blocks and before release handoff.
hidden: true
model_preset: "Minimax M3"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -3,3 +3,12 @@ description: Specialist for turning user dialogue into clear, testable requireme
context: Use this agent for requirements elicitation and specification before architecture work.
hidden: true
model_preset: "Minimax M3"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
@@ -3,3 +3,12 @@ description: Specialist for starting the app, bounded error-log review, health e
context: Use this agent to verify that the application actually runs and to prepare deployment basics.
hidden: true
model_preset: "openrouter"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -3,3 +3,12 @@ description: Specialist for security review, secrets, auth, permissions, input v
context: Use this agent for security review and data risk assessment when project touches auth, secrets, storage, database, uploads or deployment.
hidden: true
model_preset: "Qwen Code"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -3,3 +3,12 @@ description: Specialist for architecture, design, task graph, deployment implica
context: Use this agent for turning approved requirements into architecture, design and sequenced tasks.
hidden: true
model_preset: "Minimax M3"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin
+9
View File
@@ -3,3 +3,12 @@ description: Specialist for using existing test/build tools, reproducing errors,
context: Use this agent when tests, builds, logs or failures must be investigated or documented.
hidden: true
model_preset: "Qwen Code"
skill_blacklist:
- a0-development
- a0-create-agent
- a0-create-plugin
- a0-manage-plugin
- a0-plugin-router
- a0-review-plugin
- a0-debug-plugin
- a0-contribute-plugin