memindex 1.4.5 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.qoder-plugin/plugin.json +1 -1
  5. package/README.md +8 -2
  6. package/dist/bug-report/index.js +94 -83
  7. package/dist/npx-cli/index.js +300 -299
  8. package/dist/opencode-plugin/index.js +40 -40
  9. package/dist/pi-extension/TYPEBOX-PROVENANCE.json +4 -4
  10. package/dist/pi-extension/index.js +9 -9
  11. package/integrations/dsh/lib/index.js +19 -19
  12. package/integrations/dsh/package.json +1 -1
  13. package/integrations/openclaw/install.sh +16 -10
  14. package/integrations/openclaw/openclaw.plugin.json +1 -5
  15. package/integrations/openclaw/test-install.sh +20 -13
  16. package/integrations/pi/TYPEBOX-PROVENANCE.json +4 -4
  17. package/package.json +5 -5
  18. package/plugin/.claude-plugin/plugin.json +1 -1
  19. package/plugin/.codex-plugin/plugin.json +1 -1
  20. package/plugin/.qoder-plugin/plugin.json +1 -1
  21. package/plugin/hooks/codex-hooks.json +12 -0
  22. package/plugin/package.json +1 -1
  23. package/plugin/scripts/context-generator.cjs +65 -63
  24. package/plugin/scripts/context-generator.cjs.map +3 -3
  25. package/plugin/scripts/mcp-server.cjs +71 -70
  26. package/plugin/scripts/mcp-server.cjs.map +3 -3
  27. package/plugin/scripts/statusline.cjs +1 -1
  28. package/plugin/scripts/transcript-watcher.cjs +36 -35
  29. package/plugin/scripts/transcript-watcher.cjs.map +3 -3
  30. package/plugin/scripts/worker-service.cjs +714 -674
  31. package/plugin/scripts/worker-service.cjs.map +3 -3
  32. package/plugin/skills/cloud-sync/SKILL.md +5 -5
  33. package/plugin/skills/distill/SKILL.md +22 -0
  34. package/plugin/skills/how-it-works/SKILL.md +1 -1
  35. package/plugin/skills/how-it-works/onboarding-explainer.md +1 -1
  36. package/plugin/skills/import-chats/SKILL.md +22 -0
  37. package/plugin/skills/import-jira/SKILL.md +22 -0
  38. package/plugin/skills/import-reviews/SKILL.md +22 -0
  39. package/plugin/skills/mode-creator/SKILL.md +7 -1
  40. package/plugin/skills/pin/SKILL.md +26 -0
  41. package/plugin/skills/savings/SKILL.md +22 -0
  42. package/plugin/skills/timeline-report/SKILL.md +8 -8
  43. package/plugin/skills/weekly-digests/SKILL.md +5 -5
  44. package/plugin/skills/worker-request.mjs +45 -0
  45. package/plugin/sqlite/SessionStore.js +109 -109
  46. package/plugin/sqlite/SessionStore.js.map +3 -3
  47. package/plugin/sqlite/observations/files.js +12 -9
  48. package/plugin/sqlite/observations/files.js.map +3 -3
  49. package/plugin/ui/viewer-bundle.js +18 -18
  50. package/integrations/openclaw/skills/agent-cost-report/CHECKSUMS.txt +0 -50
  51. package/integrations/openclaw/skills/agent-cost-report/SKILL.md +0 -241
  52. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/__init__.py +0 -1
  53. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/behavior.py +0 -303
  54. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/classify.py +0 -83
  55. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/costs.py +0 -119
  56. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/devices.py +0 -88
  57. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/evidence.py +0 -160
  58. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/labels.py +0 -115
  59. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/measure.py +0 -89
  60. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/mistakes.py +0 -310
  61. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/patterns.py +0 -391
  62. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/period.py +0 -98
  63. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/prices.py +0 -95
  64. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/render.py +0 -586
  65. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/rollup.py +0 -355
  66. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/rules.json +0 -4
  67. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/rules.py +0 -76
  68. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/sample.py +0 -45
  69. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/snapshot.py +0 -53
  70. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/sync.py +0 -79
  71. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/transcripts.py +0 -126
  72. package/integrations/openclaw/skills/agent-cost-report/scripts/acr/wins.py +0 -341
  73. package/integrations/openclaw/skills/agent-cost-report/scripts/acr.py +0 -219
  74. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/_db.py +0 -49
  75. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/_paths.py +0 -9
  76. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/codex/sessions/2026/09/18/rollout-codex-1.jsonl +0 -4
  77. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/make_report_fixtures.py +0 -46
  78. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/prices_sample.json +0 -6
  79. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/projects/-workspace-proj-a/sess-aaaa.jsonl +0 -8
  80. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/projects/-workspace-proj-b/sess-bbbb.jsonl +0 -1
  81. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/report-1day.json +0 -823
  82. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/report-30day.json +0 -2213
  83. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/report-7day.json +0 -1252
  84. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/report-empty.json +0 -536
  85. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/fixtures/report-session.json +0 -662
  86. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_behavior.py +0 -299
  87. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_devices.py +0 -99
  88. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_labels.py +0 -96
  89. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_measure.py +0 -120
  90. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_pdf_windows.py +0 -54
  91. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_period.py +0 -137
  92. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_prices.py +0 -126
  93. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_render.py +0 -238
  94. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_render_encoding.py +0 -70
  95. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_rollup.py +0 -263
  96. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_snapshot.py +0 -63
  97. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_sync.py +0 -52
  98. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_transcript_encoding.py +0 -109
  99. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_transcripts.py +0 -151
  100. package/integrations/openclaw/skills/agent-cost-report/scripts/tests/test_wins.py +0 -222
  101. package/plugin/skills/agent-cost-report/CHECKSUMS.txt +0 -50
  102. package/plugin/skills/agent-cost-report/SKILL.md +0 -241
  103. package/plugin/skills/agent-cost-report/scripts/acr/__init__.py +0 -1
  104. package/plugin/skills/agent-cost-report/scripts/acr/behavior.py +0 -303
  105. package/plugin/skills/agent-cost-report/scripts/acr/classify.py +0 -83
  106. package/plugin/skills/agent-cost-report/scripts/acr/costs.py +0 -119
  107. package/plugin/skills/agent-cost-report/scripts/acr/devices.py +0 -88
  108. package/plugin/skills/agent-cost-report/scripts/acr/evidence.py +0 -160
  109. package/plugin/skills/agent-cost-report/scripts/acr/labels.py +0 -115
  110. package/plugin/skills/agent-cost-report/scripts/acr/measure.py +0 -89
  111. package/plugin/skills/agent-cost-report/scripts/acr/mistakes.py +0 -310
  112. package/plugin/skills/agent-cost-report/scripts/acr/patterns.py +0 -391
  113. package/plugin/skills/agent-cost-report/scripts/acr/period.py +0 -98
  114. package/plugin/skills/agent-cost-report/scripts/acr/prices.py +0 -95
  115. package/plugin/skills/agent-cost-report/scripts/acr/render.py +0 -586
  116. package/plugin/skills/agent-cost-report/scripts/acr/rollup.py +0 -355
  117. package/plugin/skills/agent-cost-report/scripts/acr/rules.json +0 -4
  118. package/plugin/skills/agent-cost-report/scripts/acr/rules.py +0 -76
  119. package/plugin/skills/agent-cost-report/scripts/acr/sample.py +0 -45
  120. package/plugin/skills/agent-cost-report/scripts/acr/snapshot.py +0 -53
  121. package/plugin/skills/agent-cost-report/scripts/acr/sync.py +0 -79
  122. package/plugin/skills/agent-cost-report/scripts/acr/transcripts.py +0 -126
  123. package/plugin/skills/agent-cost-report/scripts/acr/wins.py +0 -341
  124. package/plugin/skills/agent-cost-report/scripts/acr.py +0 -219
  125. package/plugin/skills/agent-cost-report/scripts/tests/_db.py +0 -49
  126. package/plugin/skills/agent-cost-report/scripts/tests/_paths.py +0 -9
  127. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/codex/sessions/2026/09/18/rollout-codex-1.jsonl +0 -4
  128. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/make_report_fixtures.py +0 -46
  129. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/prices_sample.json +0 -6
  130. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/projects/-workspace-proj-a/sess-aaaa.jsonl +0 -8
  131. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/projects/-workspace-proj-b/sess-bbbb.jsonl +0 -1
  132. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/report-1day.json +0 -823
  133. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/report-30day.json +0 -2213
  134. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/report-7day.json +0 -1252
  135. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/report-empty.json +0 -536
  136. package/plugin/skills/agent-cost-report/scripts/tests/fixtures/report-session.json +0 -662
  137. package/plugin/skills/agent-cost-report/scripts/tests/test_behavior.py +0 -299
  138. package/plugin/skills/agent-cost-report/scripts/tests/test_devices.py +0 -99
  139. package/plugin/skills/agent-cost-report/scripts/tests/test_labels.py +0 -96
  140. package/plugin/skills/agent-cost-report/scripts/tests/test_measure.py +0 -120
  141. package/plugin/skills/agent-cost-report/scripts/tests/test_pdf_windows.py +0 -54
  142. package/plugin/skills/agent-cost-report/scripts/tests/test_period.py +0 -137
  143. package/plugin/skills/agent-cost-report/scripts/tests/test_prices.py +0 -126
  144. package/plugin/skills/agent-cost-report/scripts/tests/test_render.py +0 -238
  145. package/plugin/skills/agent-cost-report/scripts/tests/test_render_encoding.py +0 -70
  146. package/plugin/skills/agent-cost-report/scripts/tests/test_rollup.py +0 -263
  147. package/plugin/skills/agent-cost-report/scripts/tests/test_snapshot.py +0 -63
  148. package/plugin/skills/agent-cost-report/scripts/tests/test_sync.py +0 -52
  149. package/plugin/skills/agent-cost-report/scripts/tests/test_transcript_encoding.py +0 -109
  150. package/plugin/skills/agent-cost-report/scripts/tests/test_transcripts.py +0 -151
  151. package/plugin/skills/agent-cost-report/scripts/tests/test_wins.py +0 -222
  152. package/plugin/skills/babysit/SKILL.md +0 -87
  153. package/plugin/skills/design-is/SKILL.md +0 -312
  154. package/plugin/skills/do/SKILL.md +0 -45
  155. package/plugin/skills/learn-codebase/SKILL.md +0 -21
  156. package/plugin/skills/make-plan/SKILL.md +0 -67
  157. package/plugin/skills/oh-my-issues/SKILL.md +0 -226
  158. package/plugin/skills/pathfinder/SKILL.md +0 -111
  159. package/plugin/skills/screenpipe/SKILL.md +0 -78
  160. package/plugin/skills/screenpipe/screenpipe.mjs +0 -196
  161. package/plugin/skills/smart-explore/SKILL.md +0 -193
  162. package/plugin/skills/standup/SKILL.md +0 -142
  163. package/plugin/skills/standup/agent-brief.md +0 -47
  164. package/plugin/skills/standup/standup.mjs +0 -586
  165. package/plugin/skills/what-the/SKILL.md +0 -6
  166. package/plugin/skills/wowerpoint/SKILL.md +0 -205
@@ -1,823 +0,0 @@
1
- {
2
- "attention": [],
3
- "behavior": {
4
- "author_tags": {
5
- "bot": 0,
6
- "human": 1,
7
- "unknown": 0
8
- },
9
- "classifier": {
10
- "cap_usd": 2.0,
11
- "model": null,
12
- "note": "off by default (G8); enable with --classify",
13
- "ran": false,
14
- "sampled_n": 0,
15
- "spend_usd": null
16
- },
17
- "coverage": {
18
- "box": "measured",
19
- "grok_bot": "unavailable",
20
- "mac": "unavailable (no Phase 5 export)"
21
- },
22
- "default_model": "anthropic/claude-sonnet-5",
23
- "episodes": [],
24
- "episodes_status": "measured",
25
- "high_turns_n": 0,
26
- "human_message_counts": "computed from human-tagged turns",
27
- "label_sources": {},
28
- "mistake_clusters": [],
29
- "not_in_mistakes_line": "session-level keyword failure signals with no turn span stay in Details (2B.9)",
30
- "outbound": {
31
- "incidents": 0,
32
- "recipients": 0,
33
- "user_minutes": null
34
- },
35
- "patterns": [
36
- {
37
- "agent_minutes": null,
38
- "confidence": "medium",
39
- "count": 0,
40
- "count_basis": "heuristic",
41
- "detection": "H",
42
- "examples": [],
43
- "failure_type": "Unnecessary escalation",
44
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
45
- "high_usd": 0.0,
46
- "key": "P1_invented_gates",
47
- "low_usd": 0.0,
48
- "name": "Invented human gates / asking instead of doing",
49
- "never_answered_n": 0,
50
- "overlaps": true,
51
- "placement": "tile",
52
- "source_ref": "metrics-ideas.md:16",
53
- "unconfirmed_n": 0,
54
- "unmeasured_n": 0,
55
- "user_minutes": 0,
56
- "waiting_minutes": 0
57
- },
58
- {
59
- "agent_minutes": null,
60
- "confidence": "medium",
61
- "count": 0,
62
- "count_basis": "heuristic",
63
- "detection": "H",
64
- "examples": [],
65
- "failure_type": "Regression",
66
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
67
- "high_usd": 0.0,
68
- "key": "P2_broke_things",
69
- "low_usd": 0.0,
70
- "name": "Broke working things",
71
- "overlaps": true,
72
- "placement": "tile",
73
- "source_ref": "metrics-ideas.md:17",
74
- "unmeasured_n": 0,
75
- "user_minutes": 0,
76
- "waiting_minutes": null
77
- },
78
- {
79
- "agent_minutes": null,
80
- "confidence": "high",
81
- "count": 0,
82
- "count_basis": "heuristic",
83
- "default_model": "anthropic/claude-sonnet-5",
84
- "delta_usd": 0.0,
85
- "detection": "H",
86
- "examples": [],
87
- "failure_type": "Model thrash",
88
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
89
- "high_usd": 0.0,
90
- "key": "P3_wrong_model",
91
- "low_usd": 0.0,
92
- "model_not_logged": 0,
93
- "name": "Wrong or expensive model",
94
- "overlaps": true,
95
- "placement": "tile",
96
- "source_ref": "metrics-ideas.md:18",
97
- "unmeasured_n": 0,
98
- "user_minutes": 0,
99
- "waiting_minutes": null
100
- },
101
- {
102
- "agent_minutes": null,
103
- "confidence": "medium",
104
- "count": 0,
105
- "count_basis": "heuristic",
106
- "detection": "H",
107
- "examples": [],
108
- "failure_type": "Suboptimal path",
109
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
110
- "high_usd": 0.0,
111
- "key": "P4_over_engineering",
112
- "low_usd": 0.0,
113
- "name": "Over-engineering / overthinking",
114
- "overlaps": true,
115
- "placement": "details",
116
- "source_ref": "metrics-ideas.md:19",
117
- "unmeasured_n": 0,
118
- "user_minutes": 0,
119
- "waiting_minutes": null
120
- },
121
- {
122
- "agent_minutes": null,
123
- "confidence": "medium",
124
- "count": 0,
125
- "count_basis": "heuristic",
126
- "detection": "H",
127
- "examples": [],
128
- "failure_type": "Missed requirement",
129
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
130
- "high_usd": 0.0,
131
- "key": "P5_not_asked",
132
- "low_usd": 0.0,
133
- "name": "Did something not asked",
134
- "overlaps": true,
135
- "placement": "details",
136
- "source_ref": "metrics-ideas.md:20",
137
- "unmeasured_n": 0,
138
- "user_minutes": 0,
139
- "waiting_minutes": null
140
- },
141
- {
142
- "agent_minutes": null,
143
- "confidence": "medium",
144
- "count": 0,
145
- "count_basis": "heuristic",
146
- "detection": "H",
147
- "examples": [],
148
- "failure_type": "Premature completion",
149
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
150
- "high_usd": 0.0,
151
- "key": "P6_fake_output",
152
- "low_usd": 0.0,
153
- "name": "Fake or invented output",
154
- "overlaps": true,
155
- "placement": "tile",
156
- "source_ref": "metrics-ideas.md:21",
157
- "unmeasured_n": 0,
158
- "user_minutes": 0,
159
- "waiting_minutes": null
160
- },
161
- {
162
- "agent_minutes": null,
163
- "confidence": "medium",
164
- "count": 0,
165
- "count_basis": "heuristic",
166
- "detection": "H",
167
- "examples": [],
168
- "failure_type": "Premature completion",
169
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
170
- "high_usd": 0.0,
171
- "key": "P7_false_done",
172
- "low_usd": 0.0,
173
- "name": "Skipped steps / false done",
174
- "overlaps": true,
175
- "placement": "tile",
176
- "source_ref": "metrics-ideas.md:22",
177
- "unmeasured_n": 0,
178
- "user_minutes": 0,
179
- "waiting_minutes": null
180
- },
181
- {
182
- "agent_minutes": null,
183
- "confidence": "medium",
184
- "count": 0,
185
- "count_basis": "heuristic",
186
- "detection": "H",
187
- "examples": [],
188
- "failure_type": "Suboptimal path",
189
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
190
- "high_usd": 0.0,
191
- "key": "P8_wrong_tool",
192
- "low_usd": 0.0,
193
- "name": "Wrong tool, account, or contact",
194
- "overlaps": true,
195
- "placement": "details",
196
- "source_ref": "metrics-ideas.md:23",
197
- "unmeasured_n": 0,
198
- "user_minutes": 0,
199
- "waiting_minutes": null
200
- },
201
- {
202
- "agent_minutes": null,
203
- "confidence": "high",
204
- "cost_note": "incidents \u00d7 recipients, never dollars",
205
- "count": 0,
206
- "count_basis": "heuristic",
207
- "detection": "H",
208
- "examples": [],
209
- "failure_type": "Unauthorized action",
210
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
211
- "high_usd": null,
212
- "incidents": 0,
213
- "key": "P9_bad_outbound",
214
- "low_usd": null,
215
- "name": "Bad outbound",
216
- "overlaps": true,
217
- "placement": "details",
218
- "recipients": 0,
219
- "source_ref": "metrics-ideas.md:24",
220
- "unmeasured_n": 0,
221
- "user_minutes": 0,
222
- "waiting_minutes": null
223
- },
224
- {
225
- "agent_minutes": null,
226
- "confidence": "medium",
227
- "count": 0,
228
- "count_basis": "heuristic",
229
- "detection": "H",
230
- "examples": [],
231
- "failure_type": "",
232
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
233
- "high_usd": 0.0,
234
- "key": "P10_memory_loss",
235
- "low_usd": 0.0,
236
- "name": "Memory or rule loss",
237
- "overlaps": true,
238
- "placement": "details",
239
- "source_ref": "metrics-ideas.md:25",
240
- "unmeasured_n": 0,
241
- "user_minutes": 0,
242
- "waiting_minutes": null
243
- },
244
- {
245
- "agent_minutes": null,
246
- "confidence": "medium",
247
- "cost_note": "user-minutes = words \u00f7 200; dollars only for a clarification round trip",
248
- "count": 0,
249
- "count_basis": "heuristic",
250
- "detection": "H",
251
- "examples": [],
252
- "failure_type": "",
253
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
254
- "high_usd": 0.0,
255
- "key": "P11_jargon",
256
- "low_usd": 0.0,
257
- "name": "Jargon / walls of text",
258
- "overlaps": true,
259
- "placement": "details",
260
- "source_ref": "metrics-ideas.md:26",
261
- "unmeasured_n": 0,
262
- "user_minutes": 0,
263
- "waiting_minutes": null
264
- },
265
- {
266
- "agent_minutes": null,
267
- "confidence": "medium",
268
- "count": 0,
269
- "count_basis": "heuristic",
270
- "detection": "base detector; M attributes when it can",
271
- "examples": [],
272
- "failure_type": "",
273
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
274
- "high_usd": 0.0,
275
- "key": "P12_unclear",
276
- "low_usd": 0.0,
277
- "name": "Unclear cause",
278
- "overlaps": true,
279
- "placement": "details",
280
- "source_ref": "metrics-ideas.md:27",
281
- "unmeasured_n": 0,
282
- "user_minutes": 0,
283
- "waiting_minutes": null
284
- },
285
- {
286
- "agent_minutes": null,
287
- "confidence": "high",
288
- "count": 0,
289
- "count_basis": "heuristic",
290
- "detection": "H",
291
- "error_chains": 0,
292
- "examples": [],
293
- "failure_type": "Recovery after miss",
294
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
295
- "high_usd": 0.0,
296
- "key": "S1_tool_errors",
297
- "loops": 0,
298
- "low_usd": 0.0,
299
- "name": "Tool errors and retries",
300
- "overlaps": true,
301
- "placement": "details",
302
- "recovered_usd": 0.0,
303
- "source_ref": "plan 2B.3 supporting metric",
304
- "unmeasured_n": 0,
305
- "user_minutes": 0,
306
- "waiting_minutes": null
307
- },
308
- {
309
- "agent_minutes": null,
310
- "availability_unknown_n": 0,
311
- "confidence": "medium",
312
- "cost_note": "text only, not priced",
313
- "count": 0,
314
- "count_basis": "heuristic",
315
- "detection": "H",
316
- "examples": [],
317
- "failure_type": "Hedging",
318
- "high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
319
- "high_usd": 0.0,
320
- "key": "S2_hedging",
321
- "low_usd": 0.0,
322
- "name": "Hedging",
323
- "overlaps": true,
324
- "placement": "details",
325
- "source_ref": "plan 2B.3 supporting metric",
326
- "unmeasured_n": 0,
327
- "user_minutes": 0,
328
- "waiting_minutes": null
329
- }
330
- ],
331
- "permission_denials": {
332
- "count": 0,
333
- "examples": [],
334
- "note": "blocked by a rule; not priced as agent waste"
335
- },
336
- "prompt_rows_n": 1,
337
- "rule_effectiveness": [
338
- {
339
- "after": {
340
- "episodes": 0,
341
- "human_prompts": 1,
342
- "per_100": null
343
- },
344
- "before": {
345
- "episodes": 0,
346
- "human_prompts": 0,
347
- "per_100": null
348
- },
349
- "card": false,
350
- "episode_ids_after": [],
351
- "landed_pt": "2026-09-12",
352
- "n_days": 7,
353
- "name": "Example rule 1",
354
- "pattern": "P3_wrong_model",
355
- "rule_key": "example_rule_1",
356
- "source": "rules.json",
357
- "verdict": "not_enough_data"
358
- },
359
- {
360
- "after": {
361
- "episodes": 0,
362
- "human_prompts": 1,
363
- "per_100": null
364
- },
365
- "before": {
366
- "episodes": 0,
367
- "human_prompts": 0,
368
- "per_100": null
369
- },
370
- "card": false,
371
- "episode_ids_after": [],
372
- "landed_pt": "2026-09-14",
373
- "n_days": 7,
374
- "name": "Example rule 2",
375
- "pattern": "P11_jargon",
376
- "rule_key": "example_rule_2",
377
- "source": "rules.json",
378
- "verdict": "not_enough_data"
379
- },
380
- {
381
- "after": {
382
- "episodes": 0,
383
- "human_prompts": 1,
384
- "per_100": null
385
- },
386
- "before": {
387
- "episodes": 0,
388
- "human_prompts": 0,
389
- "per_100": null
390
- },
391
- "card": false,
392
- "episode_ids_after": [],
393
- "landed_pt": "2026-09-15",
394
- "n_days": 7,
395
- "name": "Example rule 3",
396
- "pattern": "P1_invented_gates",
397
- "rule_key": "example_rule_3",
398
- "source": "rules.json",
399
- "verdict": "not_enough_data"
400
- }
401
- ],
402
- "scan": {
403
- "files_seen": 0
404
- },
405
- "session_tags": {},
406
- "tagger_ran": true,
407
- "unconfirmed": {
408
- "P1_candidates": []
409
- },
410
- "union_high_usd": 0.0,
411
- "union_low_usd": 0.0,
412
- "union_turns_n": 0
413
- },
414
- "by_category": [
415
- {
416
- "active_minutes": 42.0,
417
- "agent_estimated_usd": 0.09,
418
- "category": "Feature",
419
- "extrapolated_usd": 0.0,
420
- "finished": 1,
421
- "recovery_usd": 0.0,
422
- "sessions": 1,
423
- "wasted_usd": 0.0
424
- }
425
- ],
426
- "by_day": [
427
- {
428
- "agent_calls": 2,
429
- "agent_estimated_usd": 0.09,
430
- "day_pt": "2026-09-18",
431
- "events": 13,
432
- "extrapolated_usd": 0.0,
433
- "finished_outcomes": 1,
434
- "no_agent_work": false,
435
- "sessions_started": 2,
436
- "ship_events": 1,
437
- "tokens": 55200
438
- }
439
- ],
440
- "by_device": [
441
- {
442
- "agent_estimated_usd": 0.09,
443
- "device": "local",
444
- "extrapolated_usd": 0.0,
445
- "id_hash": "local",
446
- "sessions": 1
447
- }
448
- ],
449
- "by_model": [
450
- {
451
- "agent_estimated_usd": 1.59,
452
- "cache_read": 50000,
453
- "cache_write_1h": 1000,
454
- "cache_write_5m": 2000,
455
- "calls": 4,
456
- "input": 102100,
457
- "model": "claude-fable-5-1",
458
- "output": 10210,
459
- "priced": true,
460
- "prices_usd_per_mtok": {
461
- "cache_read": 0.25,
462
- "cache_write": 12.5,
463
- "cache_write_1h": 20.0,
464
- "input": 10.0,
465
- "key": "anthropic/claude-fable-5.1",
466
- "output": 50.0,
467
- "price_source": {
468
- "cache_read": "listed",
469
- "cache_write": "listed",
470
- "cache_write_1h": "input*2"
471
- }
472
- },
473
- "source": "claude-code",
474
- "unpriced_calls": 0
475
- }
476
- ],
477
- "devices": [
478
- {
479
- "device": "local",
480
- "id_hash": "local"
481
- }
482
- ],
483
- "failure_economics": [],
484
- "generated_at_pt": "2026-09-25 12:00 PT",
485
- "labels": {
486
- "reviewed": 0,
487
- "total": 2
488
- },
489
- "line_items": [
490
- {
491
- "active_minutes": 42.0,
492
- "agent_calls": 2,
493
- "agent_tokens": {
494
- "cache_read": 50000,
495
- "cache_write_1h": 1000,
496
- "cache_write_5m": 2000,
497
- "input": 2000,
498
- "output": 200
499
- },
500
- "attributed_usd": 0.09,
501
- "behavior_counts": {},
502
- "category": "Feature",
503
- "confidence": "high",
504
- "content_session_id": "cs1",
505
- "cost_basis": "estimated_usage",
506
- "cost_estimated": 0.09,
507
- "cost_extrapolated": null,
508
- "cost_measured": "unavailable",
509
- "cost_x1e6": 87500,
510
- "date_pt": "2026-09-18",
511
- "device": [
512
- "local"
513
- ],
514
- "evidence_ids": [
515
- 1,
516
- 2,
517
- 3,
518
- 4
519
- ],
520
- "extrapolated_x1e6": 0,
521
- "failure_signals": [],
522
- "failure_type": "",
523
- "has_transcript": true,
524
- "label_source": "keyword",
525
- "model": "claude-fable-5-1",
526
- "model_prices_usd_per_mtok": {
527
- "cache_read": 0.25,
528
- "cache_write": 12.5,
529
- "cache_write_1h": 20.0,
530
- "input": 10.0,
531
- "key": "anthropic/claude-fable-5.1",
532
- "output": 50.0,
533
- "price_source": {
534
- "cache_read": "listed",
535
- "cache_write": "listed",
536
- "cache_write_1h": "input*2"
537
- }
538
- },
539
- "notes": "shipped; 4 observations, 1 summaries, 1 prompts; tokens measured from the transcript on this box",
540
- "observations": 4,
541
- "observer_tokens": 12000,
542
- "platform": "claude",
543
- "productive_cost": 0.09,
544
- "project": "memindex",
545
- "recommended_action": "",
546
- "recovery_cost": 0.0,
547
- "risk_exposure": "none",
548
- "scope": "period",
549
- "session_ids": [
550
- "m1"
551
- ],
552
- "session_status": "completed",
553
- "ship_events": 1,
554
- "ship_titles": [
555
- "PR #4125 merged to main"
556
- ],
557
- "status": "shipped",
558
- "summaries": 1,
559
- "summary_ids": [
560
- 1
561
- ],
562
- "title": "implement the rollup",
563
- "trivial": false,
564
- "unpriced_calls": 0,
565
- "wasted_cost": 0.0,
566
- "work_category": "Feature",
567
- "work_item_id": "WI-1",
568
- "worktree": ""
569
- },
570
- {
571
- "active_minutes": 0,
572
- "agent_calls": 0,
573
- "agent_tokens": {
574
- "cache_read": 0,
575
- "cache_write_1h": 0,
576
- "cache_write_5m": 0,
577
- "input": 0,
578
- "output": 0
579
- },
580
- "attributed_usd": 0.0,
581
- "behavior_counts": {},
582
- "category": "Investigation",
583
- "confidence": "low",
584
- "content_session_id": "cs3",
585
- "cost_basis": "extrapolated",
586
- "cost_estimated": null,
587
- "cost_extrapolated": 0.0,
588
- "cost_measured": "unavailable",
589
- "cost_x1e6": 0,
590
- "date_pt": "2026-09-18",
591
- "device": [],
592
- "evidence_ids": [],
593
- "extrapolated_x1e6": 0,
594
- "failure_signals": [],
595
- "failure_type": "",
596
- "has_transcript": false,
597
- "label_source": "keyword",
598
- "model": null,
599
- "model_prices_usd_per_mtok": null,
600
- "notes": "abandoned; 0 observations, 0 summaries, 0 prompts; no transcript on this box (remote device)",
601
- "observations": 0,
602
- "observer_tokens": 0,
603
- "platform": "claude",
604
- "productive_cost": 0.0,
605
- "project": "helper",
606
- "recommended_action": "",
607
- "recovery_cost": 0.0,
608
- "risk_exposure": "none",
609
- "scope": "period",
610
- "session_ids": [
611
- "m3"
612
- ],
613
- "session_status": "completed",
614
- "ship_events": 0,
615
- "ship_titles": [],
616
- "status": "abandoned",
617
- "summaries": 0,
618
- "summary_ids": [],
619
- "title": "",
620
- "trivial": true,
621
- "unpriced_calls": 0,
622
- "wasted_cost": 0.0,
623
- "work_category": "Investigation",
624
- "work_item_id": "WI-2",
625
- "worktree": ""
626
- }
627
- ],
628
- "observer": {
629
- "basis": "ESTIMATED: observer model's own tokens (deduped per reply) x its input list price; kept separate from the agent figures above",
630
- "est_usd": 0.0,
631
- "models": [
632
- "gemini-2.5-flash-lite"
633
- ],
634
- "rows_in_scope": {
635
- "observations": 4,
636
- "prompts": 1,
637
- "summaries": 1,
638
- "tool_uses": 1
639
- },
640
- "tokens_dedup": 12000,
641
- "unpriced_tokens": {}
642
- },
643
- "pricing": {
644
- "fetched": "2026-09-25T17:00:00-07:00",
645
- "loaded_from": null,
646
- "models_listed": 7,
647
- "rule_1h": "explicit input_cache_write_1h when listed, else 2 x input (weekly_report.py:95)",
648
- "source": "https://openrouter.ai/api/v1/models"
649
- },
650
- "scope": {
651
- "kind": "period",
652
- "project": null,
653
- "session": null
654
- },
655
- "spend": {
656
- "agent_estimated_label": "ESTIMATED",
657
- "agent_estimated_usd": 1.59,
658
- "agent_measured_usd": null,
659
- "extrapolated_label": "EXTRAPOLATED (low confidence)",
660
- "extrapolated_unmeasured_usd": 0.0,
661
- "extrapolation_basis": "EXTRAPOLATED (low confidence): on this box, measured sessions cost $7.29 API-equivalent per 1M observer tokens; applied to 0 observer tokens from 1 sessions with no transcript here (remote devices). Assumes remote work looks like box work.",
662
- "grok_bot_usage": {
663
- "status": "unavailable"
664
- },
665
- "headline_label": "estimated at OpenRouter list prices from measured tokens",
666
- "headline_usd": 1.59,
667
- "measured_status": "unavailable",
668
- "mistakes_basis": "same-session wasted turns, each turn once",
669
- "mistakes_episodes_n": 0,
670
- "mistakes_estimated_usd": 0.0,
671
- "mistakes_high_label": "upper bound, likely 5\u201310\u00d7 too high (behavior study)",
672
- "mistakes_high_usd": 0.0,
673
- "mistakes_label": "ESTIMATED",
674
- "mistakes_turns_n": 0,
675
- "mistakes_unmatched_usd": 0.0,
676
- "mistakes_unmeasured_n": 0,
677
- "mistakes_user_minutes": 0,
678
- "mistakes_user_minutes_known_n": 0,
679
- "observer_note_taker_est_usd": 0.0,
680
- "total_estimate_usd": 1.59
681
- },
682
- "timeline": {
683
- "mistakes_by_day": [
684
- {
685
- "by_pattern": {},
686
- "day_pt": "2026-09-18",
687
- "high_usd": 0.0,
688
- "outbound_incidents": 0,
689
- "top_examples": [],
690
- "turns_n": 0,
691
- "unmeasured_n": 0,
692
- "usd": 0.0,
693
- "user_minutes": 0.0
694
- }
695
- ],
696
- "wins_by_day": [
697
- {
698
- "count": 1,
699
- "day_pt": "2026-09-18",
700
- "usd": null,
701
- "win_ids": [
702
- "W-1"
703
- ]
704
- }
705
- ]
706
- },
707
- "totals": {
708
- "agent_hours": 0.7,
709
- "cost_per_completed_outcome": 0.09,
710
- "devices": 1,
711
- "finished_outcomes": 1,
712
- "hours_method": "sum of gaps <=15 min between consecutive events (prompts, observations, summaries, tool calls, transcript API calls); parallel sessions add up in agent_hours but not in wall_clock_hours",
713
- "projects": 2,
714
- "real_work_sessions": 1,
715
- "recovery_share": 0.0,
716
- "recovery_usd": 0.0,
717
- "repos": 2,
718
- "sessions": 2,
719
- "ship_events": 1,
720
- "tokens": {
721
- "api_calls": 4,
722
- "cache_read": 50000,
723
- "cache_write_1h": 1000,
724
- "cache_write_5m": 2000,
725
- "input": 102100,
726
- "output": 10210,
727
- "total": 165310
728
- },
729
- "trivial_sessions": 1,
730
- "wall_clock_hours": 0.7,
731
- "waste_rate": 0.0,
732
- "wasted_usd": 0.0
733
- },
734
- "trivial_definition": "no observations, no transcript on this box, and <1 active minute",
735
- "trivial_sessions": [
736
- {
737
- "session_ids": [
738
- "m3"
739
- ],
740
- "title": "",
741
- "work_item_id": "WI-2"
742
- }
743
- ],
744
- "unmatched_transcripts": {
745
- "by_dir": {
746
- "-w-p": 2
747
- },
748
- "count": 2,
749
- "note": "transcripts on this box that matched no sdk_sessions row (work memindex never saw); counted in the totals above",
750
- "sessions": [
751
- {
752
- "calls": 1,
753
- "dir": "-w-p",
754
- "first_ts": "2026-09-19T12:24:00-07:00",
755
- "session": "cs4",
756
- "src": "claude-code",
757
- "tokens": 110000,
758
- "usd": 1.5
759
- },
760
- {
761
- "calls": 1,
762
- "dir": "-w-p",
763
- "first_ts": "2026-09-20T05:00:00-07:00",
764
- "session": "orphan",
765
- "src": "claude-code",
766
- "tokens": 110,
767
- "usd": 0.0
768
- }
769
- ],
770
- "tokens": 110110,
771
- "usd": 1.5
772
- },
773
- "unpriced_models": [],
774
- "window": {
775
- "end_epoch_ms": 1789801200000,
776
- "end_exclusive_pt": "2026-09-19",
777
- "generated_at_pt": "2026-09-25 12:00 PT",
778
- "partial_last_day": false,
779
- "start_epoch_ms": 1789714800000,
780
- "start_pt": "2026-09-18"
781
- },
782
- "wins": {
783
- "attribution_method": null,
784
- "cost_status": "unmeasured",
785
- "dropped": [],
786
- "gh_unconfirmed": [],
787
- "items": [
788
- {
789
- "active_minutes": null,
790
- "confirmed": false,
791
- "cost_basis": null,
792
- "cost_label": "unmeasured (session not linked to PR)",
793
- "cost_status": "unmeasured",
794
- "day_pt": "2026-09-18",
795
- "evidence_ids": [
796
- 4
797
- ],
798
- "key": "memindex#4125",
799
- "kind": "pr",
800
- "linked_sessions": [],
801
- "project": "memindex",
802
- "sessions": [
803
- "cs1"
804
- ],
805
- "sessions_n": 0,
806
- "sources": [
807
- "ship_observation"
808
- ],
809
- "title": "PR #4125 merged to main",
810
- "tokens": null,
811
- "ts_pt": "2026-09-18T09:30-0700",
812
- "turns_n": 0,
813
- "url": null,
814
- "usd": null,
815
- "win_id": "W-1"
816
- }
817
- ],
818
- "note": "finished line items (shipped/completed) are outcomes, not wins (G12); praise detection is a Phase 2B hook",
819
- "praise_n": 0,
820
- "total_attributed_usd": null,
821
- "unattributed_usd": null
822
- }
823
- }