* feat(evals): restructure OpenAgent tests + fix SDK mode session creation
## Test Restructure
Reorganize OpenAgent tests into 6 priority-based categories for better
maintainability, scalability, and CI/CD integration.
New structure:
- 01-critical-rules/ (15 tests) - MUST PASS safety requirements
- 02-workflow-stages/ (2 tests) - Workflow validation
- 03-delegation/ (0 tests) - Delegation scenarios (ready for new tests)
- 04-execution-paths/ (2 tests) - Conversational vs task paths
- 05-edge-cases/ (1 test) - Edge cases and boundaries
- 06-integration/ (2 tests) - Complex multi-turn scenarios
Changes:
- Migrate 22 existing tests to new structure (verified identical)
- Add comprehensive documentation (5 markdown files)
- Add migration and verification scripts
- Preserve original test locations for backward compatibility
## Bug Fix: SDK Mode Session Creation
Fix session creation failure introduced in commit
|
||
|---|---|---|
| .. | ||
| tests | ||
| auto-detect-components.sh | ||
| bump-version.sh | ||
| cleanup-stale-sessions.sh | ||
| dashboard.sh | ||
| README.md | ||
| register-component.sh | ||
| test.sh | ||
| uninstall.sh | ||
| validate-component.sh | ||
| validate-context-refs.sh | ||
| validate-registry.sh | ||
Scripts
This directory contains utility scripts for the OpenAgents system.
Available Scripts
Component Management
register-component.sh- Register a new component in the registryvalidate-component.sh- Validate component structure and metadata
Session Management
cleanup-stale-sessions.sh- Remove stale agent sessions older than 24 hours
Testing
See tests/ subdirectory for test scripts.
Session Cleanup
Agent instances create temporary context files in .tmp/sessions/{session-id}/ for subagent delegation. These sessions are automatically cleaned up, but you can manually remove stale sessions:
# Clean up sessions older than 24 hours
./scripts/cleanup-stale-sessions.sh
# Or manually delete all sessions
rm -rf .tmp/sessions/
Sessions are safe to delete anytime - they only contain temporary context files for agent coordination.
Usage Examples
Register a Component
./scripts/register-component.sh path/to/component
Validate a Component
./scripts/validate-component.sh path/to/component
Clean Stale Sessions
./scripts/cleanup-stale-sessions.sh