| name | auto_test_registry_audit |
| description | Scans codebase for test files and updates the WSP Test Registry |
| version | 1.0_prototype |
| author | 66 |
| created | Sat Dec 06 2025 00:00:00 GMT+0000 (Coordinated Universal Time) |
| agents | qwen |
| primary_agent | qwen |
| intent_type | TELEMETRY |
| promotion_state | prototype |
| pattern_fidelity_threshold | 0.95 |
| dependencies | [object Object] |
| metrics | [object Object] |
Auto Test Registry Audit
Purpose: Maintains the Single Source of Truth for verification capabilities by scanning the codebase and updating WSP_knowledge/WSP_Test_Registry.json.
Intent Type: TELEMETRY
Agent: Qwen (Partner)
Task
Execute the registry generation script to index all test_*.py files, identifying their capabilities (Selenium, Vision, Unit) and docstrings. This specifically solves the "test amnesia" problem by creating a searchable catalog.
Instructions
1. EXECUTE AUDIT SCRIPT
Rule: ALWAYS run the python script to ensure fresh data. Expected Pattern: script_execution=True
Steps:
- Run
python modules/infrastructure/wre_core/scripts/generate_test_registry.py - Verify exit code is 0
- Log output summary (e.g., "Found 45 tests")
2. VALIDATE REGISTRY
Rule: IF registry file exists AND size > 0 THEN validation_pass=True Expected Pattern: registry_validation=True
Steps:
- Read
WSP_knowledge/WSP_Test_Registry.json - Confirm "tests" array is not empty
- Confirm
test_live_engagement_fullis present with "012_protocol" capability
Benchmark Test Cases
- Input:
run_audit→ Expected: Script runs, file updated, returns "Success" - Input:
run_audit(with syntax error in a test file) → Expected: Script logs error but finishes registry for valid files
Success Criteria
- ✅ Registry file updated
- ✅
test_live_engagement_full.pyindexed correctly - ✅ Zero script errors