all agents passing new validation checks

This commit is contained in:
Brian Madison
2025-12-26 17:34:20 +08:00
parent 1f16bb7413
commit 59a0eec2e2
29 changed files with 119 additions and 1054 deletions

View File

@@ -1,14 +1,14 @@
# Test: Compound trigger with mismatched kebab portions
# Test: Compound trigger with old format (no longer supported)
# Expected: FAIL
# Error code: custom
# Error path: agent.menu[0].trigger
# Error message: agent.menu[].trigger compound format error: kebab-case trigger mismatch: "tech-spec" vs "other-thing"
# Error message: agent.menu[].trigger compound format error: invalid compound trigger format
agent:
metadata:
id: compound-mismatched-kebab
name: Mismatched Kebab
title: Mismatched Kebab Test
name: Old Format
title: Old Format Test
icon: 🧪
persona:
@@ -19,6 +19,6 @@ agent:
- Test principle
menu:
- trigger: TS or tech-spec or fuzzy match on other-thing
description: Kebab portions do not match
- trigger: TS or tech-spec or fuzzy match on tech-spec
description: Old format with middle kebab-case (no longer supported)
action: test

View File

@@ -1,26 +0,0 @@
# Test: Core agent with unexpected module field
# Expected: FAIL
# Error code: custom
# Error path: agent.metadata.module
# Error message: core agents must not include agent.metadata.module
# Path context: src/core/agents/core-agent-with-module.agent.yaml
agent:
metadata:
id: core-with-module
name: Core With Module
title: Core Agent
icon:
module: bmm
persona:
role: Test agent
identity: Test identity
communication_style: Test style
principles:
- Test principle
menu:
- trigger: help
description: Show help
action: display_help

View File

@@ -1,25 +0,0 @@
# Test: Module agent missing required module field
# Expected: FAIL
# Error code: custom
# Error path: agent.metadata.module
# Error message: module-scoped agents must declare agent.metadata.module
# Path context: src/modules/bmm/agents/module-agent-missing-module.agent.yaml
agent:
metadata:
id: bmm-missing-module
name: BMM Missing Module
title: Missing Module
icon:
persona:
role: Test agent
identity: Test identity
communication_style: Test style
principles:
- Test principle
menu:
- trigger: help
description: Show help
action: display_help

View File

@@ -1,26 +0,0 @@
# Test: Module agent with wrong module value
# Expected: FAIL
# Error code: custom
# Error path: agent.metadata.module
# Error message: agent.metadata.module must equal "bmm"
# Path context: src/modules/bmm/agents/wrong-module-value.agent.yaml
agent:
metadata:
id: wrong-module
name: Wrong Module
title: Wrong Module
icon:
module: cis
persona:
role: Test agent
identity: Test identity
communication_style: Test style
principles:
- Test principle
menu:
- trigger: help
description: Show help
action: display_help