Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Sf ai agentscript/Validator-test-matrix
Reference · Sf ai agentscript

Validator-test-matrix

Part of Sf ai agentscript. Install the skill and your agent reads this page when it needs the depth.

Validator Test Matrix

Snapshot generated against the current repository assets using hooks/scripts/agentscript-syntax-validator.py after the rule-catalog expansion.

Goal: distinguish clean examples, warning-only templates, and intentionally partial snippets that are expected to fail a full-agent validator.

Command Used

python3 - <<'PY'
from importlib.util import spec_from_file_location, module_from_spec
from pathlib import Path
spec=spec_from_file_location('v','skills/sf-ai-agentscript/hooks/scripts/agentscript-syntax-validator.py')
mod=module_from_spec(spec)
spec.loader.exec_module(mod)
for path in sorted(Path('skills/sf-ai-agentscript/assets').rglob('*.agent')):
    res=mod.AgentScriptValidator(path.read_text(), str(path)).validate()
    print(path, len(res['errors']), len(res['warnings']))
PY

Summary

Outcome Count Notes
Clean (0 blocking / 0 warnings) 1 Fully self-contained example
Warning-only (0 blocking / 1+ warnings) 16 Usually complete templates with demo placeholders, portability notes, or style suggestions
Blocking (1+ blocking) 13 Mostly partial snippets by design; a small number are org-dependent or pattern examples that still need hardening

Clean

File Notes
assets/agents/hello-world-employee.agent Clean pass in current repo/context.

Warning-Only Examples / Templates

File Dominant rules Interpretation
assets/agents/hello-world.agent ASV-CFG-007 Complete example; uses demo default_agent_user.
assets/agents/multi-topic.agent ASV-CFG-007 Complete template; placeholders intentionally unresolved.
assets/agents/production-faq.agent ASV-CFG-007 Valid example; remaining warning is the demo default_agent_user.
assets/agents/simple-qa.agent ASV-CFG-007 Complete template with unresolved placeholders.
assets/components/escalation-setup.agent ASV-CFG-007, ASV-RUN-018 Complete escalation template; placeholders remain unresolved, plus the connection-backed escalation fallback heuristic.
assets/deterministic-routing.agent ASV-CFG-007 Complete example; nested-if issue fixed during validator audit and inline demo-user comment removed.
assets/flow-action-lookup.agent ASV-CFG-007 Complete example with only the demo default_agent_user reminder remaining.
assets/hub-and-spoke.agent ASV-CFG-007 Complete example with only the demo default_agent_user reminder remaining.
assets/minimal-starter.agent ASV-CFG-007 Minimal starter is structurally valid; remaining warning is the demo default_agent_user.
assets/patterns/critical-input-collection.agent ASV-RUN-012, ASV-RUN-007, ASV-CFG-007 Complete pattern demonstrating planner-hint caveats; warnings are instructional.
assets/patterns/multi-step-workflow.agent ASV-RUN-007, ASV-RUN-012, ASV-QLT-005 Complete pattern; warnings are mostly planner-hint guidance plus one post-action ordering suggestion.
assets/patterns/procedural-instructions.agent ASV-RUN-007, ASV-CFG-007 Complete pattern with advisory warnings only.
assets/patterns/prompt-template-action.agent ASV-RUN-007, ASV-CFG-007 Complete pattern now uses the safer prompt-output flags; remaining warnings are planner-hint guidance plus demo placeholders.
assets/patterns/system-instruction-overrides.agent ASV-RUN-010, ASV-CFG-007 Complete pattern; lifecycle run warnings are expected portability cautions.
assets/prompt-rag-search.agent ASV-CFG-007 Complete example with only the demo default_agent_user reminder remaining.
assets/verification-gate.agent ASV-CFG-007 Complete pattern; undefined refund_amount bug was fixed during validator audit and inline demo-user comment removed.

Blocking Files

A. Intentionally Partial Snippets

These are not complete agents and are expected to fail a full-agent validator because they are meant to be embedded into a larger file.

File Dominant blockers
assets/components/apex-action.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/components/error-handling.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/components/flow-action.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/components/n-ary-conditions.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/components/topic-with-actions.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/action-callbacks.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/advanced-input-bindings.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/delegation-routing.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/lifecycle-events.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/llm-controlled-actions.agent ASV-STR-003, ASV-CFG-001, ASV-STR-004
assets/patterns/open-gate-routing.agent ASV-STR-003, ASV-CFG-001
assets/patterns/bidirectional-routing.agent ASV-STR-003, ASV-CFG-001, ASV-STR-011

B. Context / Org-Dependent Blocking Cases

File Dominant blockers Interpretation
assets/escalation-pattern.agent ASV-ORG-007 Structurally valid, but the referenced outbound route Flows do not exist in the currently resolved org, so the org-aware validator correctly blocks publish readiness.

Notes from This Audit

Recommended Next Step

If you want the entire assets/ tree to pass as a test suite, split it into two lanes:

  1. standalone agents/templates — must validate with 0 blocking
  2. partial snippets — validate with a snippet-aware harness or a looser parser profile

That separation would let CI enforce publishability for complete examples without falsely failing the reference snippets.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.