Validation History: sf-ai-agentscript
This file tracks the validation history of the sf-ai-agentscript skill. Validation agents are deployed to a test org to verify that documented patterns still work with current Salesforce releases.
Latest Validation
| Status | Date | Version | Agents Deployed | Test Org |
|---|---|---|---|---|
| ✅ PASS | 2026-01-20 | v1.1.0 | 8/8 | R6-Agentforce-SandboxFull |
Validation Agent Results
| Agent | Pattern Tested | Deploy | Duration | Notes |
|---|---|---|---|---|
| Val_Minimal_Syntax | Core block structure | ✅ PASS | 15.9s | config, system, start_agent, topic blocks |
| Val_Arithmetic_Ops | +/- operators | ✅ PASS | 17.9s | Addition and subtraction working |
| Val_Comparison_Ops | Comparison operators | ✅ PASS | 27.7s | ==, !=, <, <=, >, >=, and, or, not |
| Val_Variable_Scopes | @variables namespace | ✅ PASS | 21.8s | mutable string/number/boolean |
| Val_Topic_Transitions | @utils.transition | ✅ PASS | 30.6s | Permanent handoffs between topics |
| Val_Latch_Pattern | Boolean re-entry | ✅ PASS | 18.6s | Latch variable for topic re-entry |
| Val_Loop_Guard | Iteration protection | ✅ PASS | 16.6s | Counter-based loop guard |
| Val_Interpolation | Variable injection | ✅ PASS | 22.6s | {!@variables.x} in strings |
Total Duration: ~171.6s
Patterns Validated
Each validation agent tests specific patterns documented in SKILL.md:
Val_Minimal_Syntax → Core Syntax
configblock with agent_name, agent_label, default_agent_usersystemblock with messages and instructionsstart_agentblock with reasoning and actionstopicblock with description and reasoning
Val_Arithmetic_Ops → Expression Operators
- Addition:
@variables.counter + 1 - Subtraction:
@variables.counter - 1 - Note:
*,/,%are NOT supported
- Addition:
Val_Comparison_Ops → Expression Operators
- Equality:
==, not-equal (<>or not-equal-operator) - Comparisons:
<,<=,>,>= - Logical:
and,or,not
- Equality:
Val_Variable_Scopes → Variable Namespaces
mutable stringwith default valuemutable numberwith default valuemutable booleanwith default valueset @variables.x = valueassignment
Val_Topic_Transitions → Topic Transitions
@utils.transition to @topic.X(permanent handoff)- Multi-step topic chains
Val_Latch_Pattern → Production Gotchas
- Boolean flag initialization
- Setting latch on entry
- Checking latch in topic selector
- Clearing latch on completion
Val_Loop_Guard → Production Gotchas
- Iteration counter pattern
available whenguard clause- Exit condition on max iterations
Val_Interpolation → Instruction Syntax
- Basic interpolation:
{!@variables.x} - Multiple variables in string
- Conditional interpolation:
{!value if condition else alt}
- Basic interpolation:
Validation Command
# Navigate to validation directory
cd sf-ai-agentscript/validation
# Deploy metadata first
sf project deploy start \
--source-dir validation-agents/force-app/main/default/aiAuthoringBundles \
--target-org R6-Agentforce-SandboxFull
# Publish each agent
for agent in Val_Minimal_Syntax Val_Arithmetic_Ops Val_Comparison_Ops Val_Variable_Scopes Val_Topic_Transitions Val_Latch_Pattern Val_Loop_Guard Val_Interpolation; do
sf agent publish authoring-bundle --api-name "$agent" --target-org R6-Agentforce-SandboxFull
done
History
| Date | Version | Status | Passed | Failed | Notes |
|---|---|---|---|---|---|
| 2026-01-20 | v1.1.0 | ✅ PASS | 8/8 | 0 | Initial validation framework implementation |
Next Validation Due
2026-02-19 (30 days from last validation)
Troubleshooting
If Validation Fails
- Check the error message - Salesforce will indicate what syntax changed
- Update SKILL.md - Document the new constraint or syntax requirement
- Fix the validation agent - Update to use correct syntax
- Re-run validation - Ensure all agents pass again
- Update this file - Log the issue and resolution in History
Common Issues
| Issue | Cause | Resolution |
|---|---|---|
Nonexistent flag: --source-dir |
CLI version change | Use sf agent publish --api-name instead |
Unknown error on publish |
Usually successful | Check full JSON output for actual status |
Default agent user not found |
Wrong org or user inactive | Query target org for Einstein Agent User |