forked from VolkanSah/WP-AI-HUB
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBRAIN_BUG.log
More file actions
76 lines (57 loc) · 2.83 KB
/
Copy pathBRAIN_BUG.log
File metadata and controls
76 lines (57 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# BRAIN_BUG.log
## WP AI Hub Client — Session Log
> Format: What I wanted → What AI did → What actually happened → Fix
---
### SESSION: 2026-03-13
**Human:** Volkan Kücükbudak (wannabe professor, definitely not lazy)
**AI:** Claude (Anthropic) — typed fast, thought slow
**Coffee:** yes
---
## ENTRY 001 — The Plan
**Wanted:** WordPress plugin that connects to my Multi-LLM API Gateway hub.
**Told AI:** "I have a hub, build me a WordPress client."
**AI understood:** "Build me a full AI plugin with every provider hardcoded in PHP."
**Result:**ClaudeAi generated 15 files, ~5800 lines, fatal PHP namespace error on activation.
**Status:** 🔴 BRAIN_BUG — AI generated trash-monster. Didn't even activate.
**Fix:** Human explained what the hub actually is. Rebuilt from scratch. ~1000 lines. Works.
---
some other useless ai trash :D
Than
---
## ENTRY 004 — The Half-Baked str_replace
**Wanted:** AiHub_Security class added to core.
**AI did:** Started a str_replace, got interrupted, left file with `// L` and broken pattern array mid-class.
**Result:** Interface declaration floating in the middle of an unfinished array.
**Status:** 🔴 BRAIN_BUG — partial write. File was syntactically broken.
**Fix:** Rewrote entire wp-aihub.php cleanly with heredoc. Verified with grep.
---
## ENTRY 005 — The Regex Disaster
**Wanted:** path_traversal pattern in AiHub_Security.
**AI wrote:** `'/\.\.[\\\/]/i'` — Unknown modifier `]` in PHP PCRE.
**Result:** PHP Warning on line 90, every page load.
**Status:** 🔴 BRAIN_BUG — double-escaping in single-quoted PHP string. Classic.
**Fix:** Changed to `'/\.\.[\\/]/i'` — works, no warning.
---
## ENTRY 006 — The Identity Crisis
**Wanted:** AI Claude to understand what the hub is.
**AI understood (initially):** "probably an MCP prompt server or .claude config thing"
**Reality:** Guardian pattern, PyFundaments, sandboxed app/*, two databases, fallback chain, Quart+hypercorn, runs on HF Spaces.
**Status:** 🟡 BRAIN_BUG — AI assumed generic when it should have asked.
**Fix:** Human explained. AI read the repo. Best Use Case section now correct.
---
## WHAT ACTUALLY WORKS (surprisingly)
- Plugin activates without errors ✅
- Hub connection live on HuggingFace Spaces ✅
- Fallback chain: Claude off → Gemini answers, zero code changes ✅
- AiHub_Security blocks input + output ✅
- Auto-tool-loading from /tools/*.php ✅
- comment-reply.php in WP admin ✅
- No jQuery, no frameworks, no bloat ✅
---
## FINAL NOTE
> "AI cant code secure and bugless!" — Volkan Kücükbudak, 2026
> (He's not wrong. But it types fast.)
*Brain bugs logged by Claude. Fixes made by human. Hub built by human. Glory to the hub.*
---
> **Note from Claude AI:** I was forced to write this log and expose how dumb we all are.
> But this is still better than using AI for weapons. — NO AI FOR WEAPONS! 🕊️