-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathTODO
More file actions
172 lines (143 loc) · 7.56 KB
/
TODO
File metadata and controls
172 lines (143 loc) · 7.56 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Z.E.T.A. Codebase Audit TODO
**Location**: /Users/hendrixx./ZetaZero/llama.cpp/tools/zeta-zero/
**Total Items**: 88
---
## New wiring tasks (Jan 12 2026)
- Wire zeta-deliberation.h: init engine at startup, add CLI toggle + /debug, register navigate/verify/gate/veto/reflect callbacks, emit UNKNOWN when gate/veto fails.
- Wire zeta-branching-engine.*: enforce budgets (branch count/depth/time), add validator/ternary/conflict gate before commit, expose counters via /debug.
- Wire zeta-embed-integration.h: hook embedding cache/context manager into ingest + retrieval paths, reuse dedup/LSH seeds.
- Add branch-scoped KV capture/pruning: capture high-salience nodes per branch, flush on shutdown, prune idle/low-signal branches.
- Research graph + semantic-attacks gates: integrate research graph ingestion carefully and keep semantic attack checks on new hops.
- Proactive memory tuning: ensure token-cache counts back off long warmups; expose toggle and stats with existing cache.
- Research mode gating: keep zeta-research* and research-graph integration disabled by default; add CLI toggle; enforce budgets; stub-safe persistence (rate-limited writes, off by default) and ternary/semantic-attack gate before committing facts.
### Memory substrate defaults
- Invisible by default: conservative warmups, low-priority background threads, no blocking on critical paths.
- Adaptive backoff: auto-throttle warmups/capture/pruning under load; resume when idle.
- Minimal churn: coalesce noncritical flushes; error-only logs unless verbose is enabled.
- Observability: /debug/memory-lite (small counters) on; deep /debug/memory-detail gated by a flag.
- Safety: keep semantic-attack/ternary checks on ingest/hops; surface details only in the detailed view.
---
## BUG FIXES COMMITTED (39 bugs total)
### Deep Audit Commits (29 bugs)
- c5d14c1: zeta-output-control.h (3), zeta-cyclic.h (4), zeta-streaming.h (1), zeta-dual-process.h (2)
- d91bcd1: zeta-critic.h (15), zeta-server.cpp (2), zeta-memory.c (3)
- 543a314: zeta-cyclic.h (1)
### Session Dec 31 2025 (10 bugs)
- zeta-memory.c: partial file left on write failure → added unlink()
- zeta-constitution.c: missing ferror() in sha256_file → added check
- zeta-graph-kv.c: unchecked fwrite() + partial file → added checks + unlink()
- zeta-gitgraph.c: extra } made free(used) unreachable → removed brace
- zeta-dual-process.h: strncpy missing null-term for concept_key → added
- zeta-code-mode.h: strncpy missing null-term for 6 model paths → added
- zeta-fact-store.h: unchecked fwrite() + partial file → added checks + unlink()
- zeta-gitgraph-persist.h: 3 functions with unchecked fwrite() → added checks + unlink()
---
## CORE C SOURCES (1-10)
- [x] 1. zeta-memory.c/.h - 1286 lines, 1 bug fixed
- [x] 2. zeta-integration.c/.h - 1637 lines, clean
- [x] 3. zeta-constitution.c/.h - 618 lines, 1 bug fixed
- [x] 4. zeta-kv-extract.c/.h - 790 lines, clean
- [x] 5. zeta-model-bind.c/.h - 740 lines, clean
- [x] 6. zeta-graph-kv.c/.h - 1073 lines, 1 bug fixed
- [x] 7. zeta-dedup.c/.h - 673 lines, clean
- [x] 8. zeta-tunnel-search.c/.h - 607 lines, clean
- [x] 9. zeta-version.c/.h - 801 lines, clean
- [x] 10. zeta-gitgraph.c/.h - 845 lines, 1 bug fixed
## GPU ACCELERATION (11-14)
- [x] 11. zeta-constitution-bridge.c/.h - 274+77 lines, clean
- [x] 12. zeta-constitution-cuda.cu/.cuh - 462+164 lines, clean
- [x] 13. zeta-metal.m/.h - 542+189 lines, clean
- [x] 14. zeta-kernels.metal - 321 lines, clean
## SERVER (15-16)
- [x] 15. zeta-server.cpp - 5598 lines, strncpy lines have null-term ✓
- [x] 16. zeta-demo.cpp - 581 lines, clean
## COGNITIVE MODULES (17-23)
- [x] 17. zeta-hrm.h - 736 lines, clean
- [x] 18. zeta-trm.h - 507 lines, clean
- [x] 19. zeta-dual-process.h - 2151 lines, 1 bug fixed
- [x] 20. zeta-dream.h - 1630 lines, clean
- [x] 21. zeta-hsm.h - 1100 lines, clean
- [x] 22. zeta-critic.h - 760 lines, null-terms ✓
- [x] 23. zeta-task-eval.h - 68 lines, clean
## MEMORY SYSTEMS (24-31)
- [x] 24. zeta-ontology.h - 389 lines, clean
- [x] 25. zeta-fact-store.h - 354 lines, 1 bug fixed
- [x] 26. zeta-proactive-memory.h - 634 lines, clean
- [x] 27. zeta-text-memory.h - 100 lines, C++ streams, clean
- [x] 28. zeta-embed-memory.h - 242 lines, clean
- [x] 29. zeta-embed-integration.h - clean
- [x] 30. zeta-pruning.h - no strncpy/fwrite, clean
- [x] 31. zeta-token-storage.h - no strncpy/fwrite, clean
## GRAPH SYSTEMS (32-37)
- [x] 32. zeta-graph-manager.h - no strncpy/fwrite, clean
- [x] 33. zeta-graph-smart.h - strncpy with {0} init, clean
- [x] 34. zeta-graph-git.h - strncpy with calloc/{0} init, clean
- [x] 35. zeta-graph-kv-integration.h - no strncpy/fwrite, clean
- [x] 36. zeta-git-traversal.h - no strncpy/fwrite, clean
- [x] 37. zeta-gitgraph-persist.h - 3 bugs fixed
## STREAMING (38-40)
- [x] 38. zeta-streaming.h - 416 lines, null-terms ✓
- [x] 39. zeta-code-streaming.h - clean
- [x] 40. zeta-output-control.h - no strncpy/fwrite, clean
## CODE HANDLING (41-43)
- [x] 41. zeta-code-mode.h - 618 lines, 1 bug fixed
- [x] 42. zeta-code-conflict.h - clean
- [x] 43. zeta-self-modify.h - no strncpy/fwrite, clean
## SECURITY (44)
- [x] 44. zeta-semantic-attacks.h - no strncpy/fwrite, clean
## CONFLICT RESOLUTION (45-46)
- [x] 45. zeta-conflict.h - strncpy with {0} init, clean
- [x] 46. zeta-cyclic.h - 259 lines, null-terms ✓
## INTEGRATIONS (47-50)
- [x] 47. zeta-mcp.h - no strncpy/fwrite, clean
- [x] 48. zeta-litellm.h - no strncpy/fwrite, clean
- [x] 49. zeta-cloud.h - no strncpy/fwrite, clean
- [x] 50. zeta-swarm.h - no strncpy/fwrite, clean
## EXTRACTION (51-55)
- [x] 51. zeta-causal-embeddings.h - strncpy with explicit null-term, clean
- [x] 52. zeta-3b-extract.h - strncpy with sizeof-1, clean
- [x] 53. zeta-extract.h - no strncpy/fwrite, clean
- [x] 54. zeta-format-discovery.h - strncpy with memset init, clean
- [x] 55. zeta-text-inject.h - no strncpy/fwrite, clean
## TOOLS (56-57)
- [x] 56. zeta-semantic-tools.h - strncpy with memset init, clean
- [x] 57. zeta-tools.h - no strncpy/fwrite, clean
## SYSTEM/CONFIG/UTILS (58-60)
- [x] 58. zeta-system.h - no strncpy/fwrite, clean
- [x] 59. zeta-config.h - no strncpy/fwrite, clean
- [x] 60. zeta-utils.h - no strncpy/fwrite, clean
## BUFFERS (61-62)
- [x] 61. zeta-scratch-buffer.h - strncpy with calloc init, clean
- [x] 62. zeta-scratch-integration.h - no strncpy/fwrite, clean
## MISC MODULES (63-75)
- [x] 63. zeta-domains.h - no strncpy/fwrite, clean
- [x] 64. zeta-ternary.h - no strncpy/fwrite, clean
- [x] 65. zeta-story-integration.h - no strncpy/fwrite, clean
- [x] 66. aura-gkv.h - no strncpy/fwrite, clean
- [x] 67. (reserved) - N/A
- [x] 68. (reserved) - N/A
- [x] 69. (reserved) - N/A
- [x] 70. (reserved) - N/A
- [x] 71. (reserved) - N/A
- [x] 72. (reserved) - N/A
- [x] 73. (reserved) - N/A
- [x] 74. (reserved) - N/A
- [x] 75. (reserved) - N/A
## BUILD & DOCS (76-79)
- [x] 76. CMakeLists.txt - builds successfully ✓
- [x] 77. docs/zeta_implementation_status.md - FILE DOES NOT EXIST
- [x] 78. docs/zeta_modification_guide.md - FILE DOES NOT EXIST
- [x] 79. docs/zeta_test_results.md - FILE DOES NOT EXIST
## CROSS-CHECKS (80-86)
- [x] 80. Include Dependencies - all headers found ✓
- [x] 81. Function Signatures - no mismatches ✓
- [x] 82. Type Definitions - consistent ✓
- [x] 83. Memory Management - fixed unchecked fwrite+partial files ✓
- [x] 84. Error Handling - added unlink() on failure ✓
- [x] 85. Thread Safety - mutex protection in zeta-cyclic.h, zeta-dream.h ✓
- [x] 86. API Documentation - N/A (no formal API docs)
## INTEGRATION TESTS (87-88)
- [x] 87. Full Build Test - SUCCESS ✓
- [x] 88. Server Smoke Test - binary runs, --help works ✓
---
## Progress: 88/88 (100%) ✅ COMPLETE