Developing Strategies
Development Workflow
The current development loop compiles a strategy file, runs a sandbox smoke test, saves it, and reloads it into AfferLab.
Current Loop
The live flow is:
- Download the strategy template.
- Implement your strategy logic in the
.tsfile. - Drop the file into the Write Strategy panel.
- AfferLab validates the strategy in a sandbox environment.
- If validation succeeds, the strategy is added to Personal strategies.
- You can then start a conversation using the new strategy.
Personal Strategy Tools
Once a strategy is installed, it appears in the Personal section.
From there you can:
- open a Dev Chat to test the strategy
- reload the strategy after editing the file
- open the Settings panel for configuration
- enable or disable the strategy
- delete the strategy
- view how many conversations are using it
What the Sandbox Validates
The sandbox checks that the module:
- loads successfully
- exports valid strategy hooks
- has a serializable
configSchema - can execute a basic worker-side smoke pass