Initial: Mesh-Configs vom 03.09.2026 01:23

This commit is contained in:
root
2026-09-03 01:23:55 +02:00
commit 4b65134f8c
797 changed files with 146197 additions and 0 deletions
@@ -0,0 +1,34 @@
#!/bin/bash
# /usr/local/bin/duo-task-create.sh
# Master (Agent A): Legt Task in tasks/offen/ ab (JSON-Schema nach Blaupause v1).
# Nutzung: duo-task-create.sh <ziel_agent-id> <aufgabentyp> <priorität(low|mid|high)> <beschreibung> [budget]
set -euo pipefail
TASKS="/srv/work/tasks"
ZIEL="${1:?ziel_agent fehlt (z.B. B, SwitchHermes, LaptopHermes)}"
TYP="${2:?aufgabentyp fehlt (z.B. code, html, test, deploy)}"
PRIO="${3:-mid}"
BESCHREIBUNG="${4:?Beschreibung fehlt}"
BUDGET="${5:-1.0}"
TS=$(date +%s)
TASK_ID="T$(date +%Y%m%d)_${TS}"
cat > "$TASKS/offen/${TASK_ID}.json" << EOF
{
"task_id": "${TASK_ID}",
"ziel_agent": "${ZIEL}",
"original_ziel_agent": "${ZIEL}",
"aufgabentyp": "${TYP}",
"prioritaet": "${PRIO}",
"budget_limit_eur": ${BUDGET},
"status": "offen",
"ergebnis_pfad": null,
"beschreibung": "${BESCHREIBUNG}",
"anlage_ts": "${TS}",
"in_arbeit_ts": null,
"fertig_ts": null
}
EOF
echo "OK Task $TASK_ID angelegt fuer $ZIEL ($TYP, prio=$PRIO)"