Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

test(metaharness): SKILL.md allowed-tools must be non-empty + known (iter 104)

ruv5ca3c857c586
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh
index b6290ae96f..71f5866e98 100755
--- a/plugins/ruflo-metaharness/scripts/smoke.sh
+++ b/plugins/ruflo-metaharness/scripts/smoke.sh
@@ -191,6 +191,41 @@ grep -q "execCli(\[\s*'-y'\s*,\s*'metaharness@latest'" "$F" 2>/dev/null || \
grep -q "cwd: opts" "$F" || miss="$miss no-cwd-passthrough"
[[ -z "$miss" ]] && ok || bad "$miss"
+step "17z67. SKILL.md frontmatter has non-empty allowed-tools (iter 104)"
+miss=""
+# Every SKILL.md needs `allowed-tools:` populated. Empty/missing means
+# Claude Code can't run the skill (no tools authorized). Per iter-87's
+# skill-audit pattern (which this gate codifies for the metaharness
+# skills specifically).
+SKILLS_DIR="$ROOT/skills"
+KNOWN_TOOLS="Bash|Read|Write|Edit|MultiEdit|Glob|Grep|Task|TaskCreate"
+COUNT=0
+for d in "$SKILLS_DIR"/*/; do
+ COUNT=$((COUNT + 1))
+ base=$(basename "$d")
+ # Frontmatter field must exist and have a non-empty value
+ line=$(grep "^allowed-tools:" "$d/SKILL.md" 2>/dev/null | head -1)
+ if [[ -z "$line" ]]; then
+ miss="$miss ${base}-no-allowed-tools-field"
+ continue
+ fi
+ # Strip key + whitespace; rest is the value
+ value=$(echo "$line" | sed -E 's/^allowed-tools:[ \t]*//' | xargs)
+ if [[ -z "$value" ]]; then
+ miss="$miss ${base}-allowed-tools-empty"
+ continue
+ fi
+ # Each comma-separated token must be a known tool name
+ for t in $(echo "$value" | tr ',' ' '); do
+ t_trimmed=$(echo "$t" | xargs)
+ if ! echo "$t_trimmed" | grep -qE "^(${KNOWN_TOOLS})$"; then
+ miss="$miss ${base}-unknown-tool:${t_trimmed}"
+ fi
+ done
+done
+[[ "$COUNT" -ge 6 ]] || miss="$miss skill-count-too-low:$COUNT"
+[[ -z "$miss" ]] && ok || bad "$miss"
+
step "17z66. SKILL.md frontmatter name matches directory name (iter 103)"
miss=""
# Skills are auto-discovered by Claude Code via the .claude/skills