Commit 8a9929b
committed
fix(alice): Comprehensive fix for ALICE pattern matching bugs
Pattern data fixes (alice-patterns-original.json):
- Fix 'MY NAME IS *' to pass wildcard: {{SRAI:CALL ME {{STAR:1}}}}
- Fix 'CALL ME *' to set name: {{SET:name:{{STAR:1}}}}
- Apply 8,776 automated fixes for similar SRAI/SET issues
- Patterns now correctly store and retrieve user's name
Template processor fixes (alice-full.js):
- Process STAR before SET to enable nested tags like {{SET:name:{{STAR:1}}}}
- Change default 'name' from 'ALICE' to empty (was causing bot to address itself)
- Add missing BOT properties: emotions, feelings, genus, order, phylum, etc.
Pattern matching priority fix:
- Exact patterns now match before wildcards regardless of priority number
- Fixes infinite SRAI loop when 'that' constraints match wildcard patterns
- Three-tier matching: exact > partial-wildcard > pure-wildcard
Add scripts/audit-alice-patterns.py for future pattern audits1 parent 5954cc0 commit 8a9929b
File tree
3 files changed
+9151
-8815
lines changed- demos/chatbot-evolution
- data
- js
- scripts
3 files changed
+9151
-8815
lines changed
0 commit comments