-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathPULSE.toml
More file actions
256 lines (219 loc) · 5.8 KB
/
PULSE.toml
File metadata and controls
256 lines (219 loc) · 5.8 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# PAI Pulse — Unified Daemon Configuration
#
# Pulse is THE daemon for every PAI installation.
# One process handles: cron jobs, voice, chat, observability, hooks, DA.
#
# type = "script" → runs command, $0 cost
# type = "claude" → spawns claude --print, costs tokens
# output = voice | telegram | ntfy | email | log
# Sentinels: NO_ACTION, NO_URGENT, NO_EVENTS → suppress dispatch
# ── Module Configuration ──
[voice]
enabled = true
[telegram]
enabled = true
[imessage]
enabled = false
[observability]
enabled = true
dashboard_dir = "Observability/out"
[performance]
enabled = true
[hooks]
enabled = true
blocked_skills = ["keybindings-help"]
[syslog]
enabled = true
port = 5514
# Captures UniFi syslog to ~/.claude/PAI/MEMORY/OBSERVABILITY/unifi-syslog.jsonl.
# See _NETWORK/Workflows/CaptureLogs.md for controller-side setup.
[da]
enabled = true
primary = "kai"
heartbeat_schedule = "*/30 * * * *"
heartbeat_model = "haiku"
heartbeat_cost_ceiling = 0.01
diary_schedule = "0 23 * * *"
growth_schedule = "0 4 * * 0"
# ── Cron Jobs ──
# NOTE: Email triage, calendar reminders, morning brief, schedule review,
# and intel brief are now Devi's responsibility (running on her Mac Mini).
# {{DA_NAME}}'s Pulse handles: healthcheck, memory consolidation, DA subsystem.
[[job]]
name = "cost-aggregation"
schedule = "*/15 * * * *"
type = "script"
command = "bun run Performance/cost-aggregator.ts"
output = "log"
enabled = true
[[job]]
name = "healthcheck"
schedule = "*/5 * * * *"
type = "script"
command = "bun run checks/health.ts"
output = "ntfy"
enabled = true
[[job]]
name = "airgradient-poll"
schedule = "*/5 * * * *"
type = "script"
command = "bun run checks/airgradient-poll.ts"
output = "log"
enabled = true
# Anthropic cost observability — appends JSONL ledger every hour, voice-alerts
# on leak regressions (new API-billing call sites, API spend > $5/mo, sub >95%).
# Added 2026-04-22 after the April invoice incident ($498.45 Sonnet 4.5 +
# Web Search). Zero AI cost — pure static scan + OAuth cache read.
[[job]]
name = "cost-tracker"
schedule = "0 * * * *"
type = "script"
command = "bun run ~/.claude/PAI/TOOLS/CostTracker.ts log && bun run ~/.claude/PAI/TOOLS/CostTracker.ts alert-check"
output = "log"
enabled = true
[[job]]
name = "memory-consolidation"
schedule = "0 3 * * *"
type = "claude"
prompt = "Run learning consolidation: execute `bun run ~/.claude/PAI/TOOLS/SessionHarvester.ts --recent 20` then `bun run ~/.claude/PAI/TOOLS/LearningPatternSynthesis.ts --week`. Summarize what was learned and any patterns found."
model = "sonnet"
output = "log"
enabled = true
# ── DA Subsystem Jobs ──
[[job]]
name = "assistant-heartbeat"
schedule = "*/30 * * * *"
type = "script"
command = "bun run Assistant/checks/heartbeat.ts"
output = "voice"
enabled = true
[[job]]
name = "assistant-tasks"
schedule = "* * * * *"
type = "script"
command = "bun run Assistant/checks/tasks.ts"
output = "voice"
enabled = true
[[job]]
name = "assistant-diary"
schedule = "0 23 * * *"
type = "script"
command = "bun run Assistant/checks/diary.ts"
output = "log"
enabled = true
[[job]]
name = "assistant-growth"
schedule = "0 4 * * 0"
type = "script"
command = "bun run Assistant/checks/growth.ts"
output = "log"
enabled = true
# ── Life Dashboard (Phase 0) ──
[[job]]
name = "life-morning-brief"
schedule = "0 7 * * *"
type = "script"
command = "bun run checks/life-morning-brief.ts"
output = "voice"
enabled = true
# ── Current → Ideal Monitoring Spine (shipped 2026-04-15) ──
# All disabled until P1 interview seeds preference files + IDEAL_STATE.
# Enable incrementally: scaffolding jobs first, then monitors, then daily gap.
[[job]]
name = "notification-governor-status"
schedule = "0 9 * * *"
type = "script"
command = "bun run checks/notification-governor.ts --status"
output = "log"
enabled = false
[[job]]
name = "poller-meta-monitor"
schedule = "0 */4 * * *"
type = "script"
command = "bun run checks/poller-meta-monitor.ts"
output = "voice"
enabled = false
[[job]]
name = "staleness-review"
schedule = "0 10 * * 0"
type = "script"
command = "bun run ~/.claude/PAI/TOOLS/StalenessReview.ts"
output = "voice"
enabled = false
[[job]]
name = "compute-gap"
schedule = "30 6 * * *"
type = "script"
command = "bun run ~/.claude/PAI/TOOLS/ComputeGap.ts --log"
output = "log"
enabled = false
[[job]]
name = "monitor-toofless"
schedule = "*/5 * * * *"
type = "script"
command = "bun run checks/monitor-toofless.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-band-tours"
schedule = "0 */12 * * *"
type = "script"
command = "bun run checks/monitor-band-tours.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-author-tours"
schedule = "0 7 * * *"
type = "script"
command = "bun run checks/monitor-author-tours.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-meetups-ai-sec"
schedule = "0 */6 * * *"
type = "script"
command = "bun run checks/monitor-meetups.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-amazon-orders"
schedule = "0 8 * * *"
type = "script"
command = "bun run checks/monitor-amazon-orders.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-bills"
schedule = "0 9 * * *"
type = "script"
command = "bun run checks/monitor-bills.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-newark-permits"
schedule = "0 10 * * 1"
type = "script"
command = "bun run checks/monitor-newark-permits.ts"
output = "log"
enabled = false
[[job]]
name = "monitor-newark-council"
schedule = "0 10 * * *"
type = "script"
command = "bun run checks/monitor-newark-council.ts"
output = "log"
enabled = false
[[job]]
name = "lifelog-digest"
schedule = "0 6 * * *"
type = "script"
command = "bun run checks/lifelog-digest.ts"
output = "log"
enabled = false
[[job]]
name = "apple-health-ingest"
schedule = "0 6 * * *"
type = "script"
command = "bun run checks/apple-health-ingest.ts"
output = "log"
enabled = false