pluribus-context 0.3.22 → 0.3.27

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 (95) hide show
  1. package/CHANGELOG.md +33 -3
  2. package/README.md +9 -2
  3. package/docs/community-review-packet.md +10 -2
  4. package/docs/context-budget-receipts.md +152 -0
  5. package/docs/context-input-evidence.md +397 -0
  6. package/docs/context-receipts-for-agent-observability.md +177 -0
  7. package/docs/orchestration-search-receipts.md +102 -0
  8. package/docs/portability-fidelity-report.md +4 -2
  9. package/examples/agent-skills/context-receipts/README.md +22 -0
  10. package/examples/agent-skills/context-receipts/SKILL.md +89 -0
  11. package/examples/context-input-evidence/AGENTS.md +12 -0
  12. package/examples/context-input-evidence/agent-overlay-log.jsonl +4 -0
  13. package/examples/context-input-evidence/agent-overlay-otel-trace.json +548 -0
  14. package/examples/context-input-evidence/agent-overlay-receipt.ndjson +3 -0
  15. package/examples/context-input-evidence/agentgateway-progressive-disclosure-otel-trace.json +393 -0
  16. package/examples/context-input-evidence/agentgateway-progressive-disclosure-receipt.ndjson +4 -0
  17. package/examples/context-input-evidence/brain-remediation-otel-trace.json +645 -0
  18. package/examples/context-input-evidence/brain-remediation-receipt.ndjson +7 -0
  19. package/examples/context-input-evidence/claudekit-mcp-manager-otel-trace.json +417 -0
  20. package/examples/context-input-evidence/claudekit-mcp-manager-receipt.ndjson +5 -0
  21. package/examples/context-input-evidence/cli-progressive-disclosure-otel-trace.json +399 -0
  22. package/examples/context-input-evidence/cli-progressive-disclosure-receipt.ndjson +4 -0
  23. package/examples/context-input-evidence/compaction-otel-trace.json +711 -0
  24. package/examples/context-input-evidence/compaction-receipt.ndjson +6 -0
  25. package/examples/context-input-evidence/context-selection-otel-trace.json +627 -0
  26. package/examples/context-input-evidence/context-selection-receipt.ndjson +7 -0
  27. package/examples/context-input-evidence/convert-agent-overlay-log.mjs +156 -0
  28. package/examples/context-input-evidence/convert-agentgateway-progressive-disclosure-log.mjs +251 -0
  29. package/examples/context-input-evidence/convert-brain-remediation-log.mjs +241 -0
  30. package/examples/context-input-evidence/convert-claudekit-mcp-manager-log.mjs +253 -0
  31. package/examples/context-input-evidence/convert-cli-progressive-disclosure-log.mjs +251 -0
  32. package/examples/context-input-evidence/convert-compaction-log.mjs +224 -0
  33. package/examples/context-input-evidence/convert-context-selection-log.mjs +247 -0
  34. package/examples/context-input-evidence/convert-mcp-tool-search-log.mjs +242 -0
  35. package/examples/context-input-evidence/convert-memory-consolidation-log.mjs +240 -0
  36. package/examples/context-input-evidence/convert-memory-governance-delete-log.mjs +223 -0
  37. package/examples/context-input-evidence/convert-memory-log.mjs +226 -0
  38. package/examples/context-input-evidence/convert-memory-provenance-log.mjs +263 -0
  39. package/examples/context-input-evidence/convert-secret-scanning-log.mjs +233 -0
  40. package/examples/context-input-evidence/convert-session-log.mjs +186 -0
  41. package/examples/context-input-evidence/convert-skill-log.mjs +161 -0
  42. package/examples/context-input-evidence/convert-skill-registry-log.mjs +246 -0
  43. package/examples/context-input-evidence/convert-skill-routing-log.mjs +253 -0
  44. package/examples/context-input-evidence/convert-subagent-context-budget-log.mjs +267 -0
  45. package/examples/context-input-evidence/convert-subagent-delegation-log.mjs +264 -0
  46. package/examples/context-input-evidence/export-otel-trace.mjs +128 -0
  47. package/examples/context-input-evidence/generate-receipt.mjs +188 -0
  48. package/examples/context-input-evidence/mcp-tool-search-otel-trace.json +477 -0
  49. package/examples/context-input-evidence/mcp-tool-search-receipt.ndjson +5 -0
  50. package/examples/context-input-evidence/memory-consolidation-otel-trace.json +492 -0
  51. package/examples/context-input-evidence/memory-consolidation-receipt.ndjson +4 -0
  52. package/examples/context-input-evidence/memory-governance-delete-otel-trace.json +614 -0
  53. package/examples/context-input-evidence/memory-governance-delete-receipt.ndjson +5 -0
  54. package/examples/context-input-evidence/memory-otel-trace.json +645 -0
  55. package/examples/context-input-evidence/memory-provenance-otel-trace.json +711 -0
  56. package/examples/context-input-evidence/memory-provenance-receipt.ndjson +5 -0
  57. package/examples/context-input-evidence/memory-receipt.ndjson +4 -0
  58. package/examples/context-input-evidence/otel-trace.json +1119 -0
  59. package/examples/context-input-evidence/receipt.ndjson +6 -0
  60. package/examples/context-input-evidence/sample-agentgateway-progressive-disclosure-log.jsonl +5 -0
  61. package/examples/context-input-evidence/sample-brain-remediation-log.jsonl +9 -0
  62. package/examples/context-input-evidence/sample-claudekit-mcp-manager-log.jsonl +6 -0
  63. package/examples/context-input-evidence/sample-cli-progressive-disclosure-log.jsonl +5 -0
  64. package/examples/context-input-evidence/sample-compaction-log.jsonl +7 -0
  65. package/examples/context-input-evidence/sample-context-selection-log.jsonl +7 -0
  66. package/examples/context-input-evidence/sample-mcp-tool-search-log.jsonl +6 -0
  67. package/examples/context-input-evidence/sample-memory-consolidation-log.jsonl +5 -0
  68. package/examples/context-input-evidence/sample-memory-governance-delete-log.jsonl +6 -0
  69. package/examples/context-input-evidence/sample-memory-provenance-log.jsonl +6 -0
  70. package/examples/context-input-evidence/sample-memory-retrieval-log.jsonl +6 -0
  71. package/examples/context-input-evidence/sample-secret-scanning-log.jsonl +7 -0
  72. package/examples/context-input-evidence/sample-session-log.jsonl +6 -0
  73. package/examples/context-input-evidence/sample-skill-registry-log.jsonl +5 -0
  74. package/examples/context-input-evidence/sample-skill-routing-log.jsonl +7 -0
  75. package/examples/context-input-evidence/sample-subagent-context-budget-log.jsonl +6 -0
  76. package/examples/context-input-evidence/sample-subagent-delegation-log.jsonl +5 -0
  77. package/examples/context-input-evidence/secret-scanning-otel-trace.json +794 -0
  78. package/examples/context-input-evidence/secret-scanning-receipt.ndjson +6 -0
  79. package/examples/context-input-evidence/session-otel-trace.json +411 -0
  80. package/examples/context-input-evidence/session-receipt.ndjson +2 -0
  81. package/examples/context-input-evidence/skill-invocation-log.jsonl +4 -0
  82. package/examples/context-input-evidence/skill-otel-trace.json +548 -0
  83. package/examples/context-input-evidence/skill-receipt.ndjson +3 -0
  84. package/examples/context-input-evidence/skill-registry-otel-trace.json +471 -0
  85. package/examples/context-input-evidence/skill-registry-receipt.ndjson +5 -0
  86. package/examples/context-input-evidence/skill-routing-otel-trace.json +567 -0
  87. package/examples/context-input-evidence/skill-routing-receipt.ndjson +6 -0
  88. package/examples/context-input-evidence/subagent-context-budget-otel-trace.json +507 -0
  89. package/examples/context-input-evidence/subagent-context-budget-receipt.ndjson +5 -0
  90. package/examples/context-input-evidence/subagent-delegation-otel-trace.json +388 -0
  91. package/examples/context-input-evidence/subagent-delegation-receipt.ndjson +4 -0
  92. package/package.json +6 -2
  93. package/schemas/audit-result.schema.json +409 -71
  94. package/src/commands/audit.js +64 -3
  95. package/src/utils/version.js +1 -1
@@ -0,0 +1,645 @@
1
+ {
2
+ "resourceSpans": [
3
+ {
4
+ "resource": {
5
+ "attributes": [
6
+ {
7
+ "key": "service.name",
8
+ "value": {
9
+ "stringValue": "pluribus-brain-remediation-receipt-demo"
10
+ }
11
+ },
12
+ {
13
+ "key": "service.version",
14
+ "value": {
15
+ "stringValue": "0.0.0-fixture"
16
+ }
17
+ },
18
+ {
19
+ "key": "deployment.environment.name",
20
+ "value": {
21
+ "stringValue": "local-fixture"
22
+ }
23
+ }
24
+ ]
25
+ },
26
+ "scopeSpans": [
27
+ {
28
+ "scope": {
29
+ "name": "pluribus.context_input_evidence.brain_remediation_demo",
30
+ "version": "0.0.0-fixture"
31
+ },
32
+ "spans": [
33
+ {
34
+ "traceId": "50ddbdd46b410f0b48dbcf30c6bb4283",
35
+ "spanId": "c7e344570f099bee",
36
+ "parentSpanId": "",
37
+ "name": "agent.memory.doctor",
38
+ "kind": 1,
39
+ "startTimeUnixNano": "1779386400000000000",
40
+ "endTimeUnixNano": "1779386440000000000",
41
+ "attributes": [
42
+ {
43
+ "key": "brain.instance.id_hash",
44
+ "value": {
45
+ "stringValue": "sha256:4c77e531d037"
46
+ }
47
+ },
48
+ {
49
+ "key": "brain.doctor.run.id_hash",
50
+ "value": {
51
+ "stringValue": "sha256:ac33c4e222ad"
52
+ }
53
+ },
54
+ {
55
+ "key": "brain.doctor.mode",
56
+ "value": {
57
+ "stringValue": "doctor.remediate"
58
+ }
59
+ },
60
+ {
61
+ "key": "brain.doctor.target_score",
62
+ "value": {
63
+ "intValue": "90"
64
+ }
65
+ },
66
+ {
67
+ "key": "brain.remediation.cost.cap_bucket",
68
+ "value": {
69
+ "stringValue": "over_5_usd"
70
+ }
71
+ },
72
+ {
73
+ "key": "brain.remediation.job.count",
74
+ "value": {
75
+ "intValue": "4"
76
+ }
77
+ }
78
+ ],
79
+ "events": [
80
+ {
81
+ "name": "brain.doctor.precheck.completed",
82
+ "timeUnixNano": "1779386403000000000",
83
+ "attributes": [
84
+ {
85
+ "key": "brain.instance.id_hash",
86
+ "value": {
87
+ "stringValue": "sha256:4c77e531d037"
88
+ }
89
+ },
90
+ {
91
+ "key": "brain.doctor.run.id_hash",
92
+ "value": {
93
+ "stringValue": "sha256:ac33c4e222ad"
94
+ }
95
+ },
96
+ {
97
+ "key": "brain.doctor.mode",
98
+ "value": {
99
+ "stringValue": "doctor.remediate"
100
+ }
101
+ },
102
+ {
103
+ "key": "brain.doctor.score.before",
104
+ "value": {
105
+ "intValue": "72"
106
+ }
107
+ },
108
+ {
109
+ "key": "brain.doctor.score.before_bucket",
110
+ "value": {
111
+ "stringValue": "degraded"
112
+ }
113
+ },
114
+ {
115
+ "key": "brain.doctor.issue.count.before",
116
+ "value": {
117
+ "intValue": "4"
118
+ }
119
+ },
120
+ {
121
+ "key": "brain.doctor.issue.categories_hash",
122
+ "value": {
123
+ "stringValue": "sha256:95efbffaf5176005971a15133f1e48bdbc4d22fa26774616c935995671819705"
124
+ }
125
+ },
126
+ {
127
+ "key": "brain.doctor.snapshot.before_hash",
128
+ "value": {
129
+ "stringValue": "sha256:ce581b34bb6c"
130
+ }
131
+ },
132
+ {
133
+ "key": "brain.privacy.raw_brain_recorded",
134
+ "value": {
135
+ "boolValue": false
136
+ }
137
+ },
138
+ {
139
+ "key": "brain.privacy.raw_issue_recorded",
140
+ "value": {
141
+ "boolValue": false
142
+ }
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ "name": "brain.doctor.remediation.plan.selected",
148
+ "timeUnixNano": "1779386408000000000",
149
+ "attributes": [
150
+ {
151
+ "key": "brain.instance.id_hash",
152
+ "value": {
153
+ "stringValue": "sha256:4c77e531d037"
154
+ }
155
+ },
156
+ {
157
+ "key": "brain.doctor.run.id_hash",
158
+ "value": {
159
+ "stringValue": "sha256:ac33c4e222ad"
160
+ }
161
+ },
162
+ {
163
+ "key": "brain.remediation.plan.id_hash",
164
+ "value": {
165
+ "stringValue": "sha256:425ecad46025"
166
+ }
167
+ },
168
+ {
169
+ "key": "brain.remediation.plan.summary_hash",
170
+ "value": {
171
+ "stringValue": "sha256:0e16c6339f4b5632482a187d62165ade9b792896cd72e581586e752cda3fd4b4"
172
+ }
173
+ },
174
+ {
175
+ "key": "brain.remediation.plan.step_count",
176
+ "value": {
177
+ "intValue": "4"
178
+ }
179
+ },
180
+ {
181
+ "key": "brain.remediation.plan.estimated_spend_bucket",
182
+ "value": {
183
+ "stringValue": "under_5_usd"
184
+ }
185
+ },
186
+ {
187
+ "key": "brain.remediation.plan.expected_score_delta",
188
+ "value": {
189
+ "intValue": "14"
190
+ }
191
+ },
192
+ {
193
+ "key": "brain.remediation.plan.requires_protected_phase",
194
+ "value": {
195
+ "boolValue": true
196
+ }
197
+ },
198
+ {
199
+ "key": "brain.remediation.protected_phases_hash",
200
+ "value": {
201
+ "stringValue": "sha256:266a11b56996b5d3f92a382ca9722922d7984b3ae033e078b2261eab0f088ac0"
202
+ }
203
+ },
204
+ {
205
+ "key": "brain.privacy.raw_plan_recorded",
206
+ "value": {
207
+ "boolValue": false
208
+ }
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ "name": "brain.doctor.remediation.job.evaluated",
214
+ "timeUnixNano": "1779386412000000000",
215
+ "attributes": [
216
+ {
217
+ "key": "brain.instance.id_hash",
218
+ "value": {
219
+ "stringValue": "sha256:4c77e531d037"
220
+ }
221
+ },
222
+ {
223
+ "key": "brain.doctor.run.id_hash",
224
+ "value": {
225
+ "stringValue": "sha256:ac33c4e222ad"
226
+ }
227
+ },
228
+ {
229
+ "key": "brain.remediation.job.id_hash",
230
+ "value": {
231
+ "stringValue": "sha256:72016b090cd4"
232
+ }
233
+ },
234
+ {
235
+ "key": "brain.remediation.job.kind",
236
+ "value": {
237
+ "stringValue": "refresh_edges"
238
+ }
239
+ },
240
+ {
241
+ "key": "brain.remediation.job.status",
242
+ "value": {
243
+ "stringValue": "submitted"
244
+ }
245
+ },
246
+ {
247
+ "key": "brain.remediation.job.protected_phase",
248
+ "value": {
249
+ "boolValue": false
250
+ }
251
+ },
252
+ {
253
+ "key": "brain.remediation.job.estimated_spend_bucket",
254
+ "value": {
255
+ "stringValue": "under_1_usd"
256
+ }
257
+ },
258
+ {
259
+ "key": "brain.remediation.job.actual_spend_bucket",
260
+ "value": {
261
+ "stringValue": "under_1_usd"
262
+ }
263
+ },
264
+ {
265
+ "key": "brain.remediation.job.changed_entity_count",
266
+ "value": {
267
+ "intValue": "12"
268
+ }
269
+ },
270
+ {
271
+ "key": "brain.remediation.job.refusal_reason",
272
+ "value": {
273
+ "stringValue": ""
274
+ }
275
+ },
276
+ {
277
+ "key": "brain.remediation.job.skip_reason",
278
+ "value": {
279
+ "stringValue": ""
280
+ }
281
+ },
282
+ {
283
+ "key": "brain.privacy.raw_change_recorded",
284
+ "value": {
285
+ "boolValue": false
286
+ }
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "name": "brain.doctor.remediation.job.evaluated",
292
+ "timeUnixNano": "1779386418000000000",
293
+ "attributes": [
294
+ {
295
+ "key": "brain.instance.id_hash",
296
+ "value": {
297
+ "stringValue": "sha256:4c77e531d037"
298
+ }
299
+ },
300
+ {
301
+ "key": "brain.doctor.run.id_hash",
302
+ "value": {
303
+ "stringValue": "sha256:ac33c4e222ad"
304
+ }
305
+ },
306
+ {
307
+ "key": "brain.remediation.job.id_hash",
308
+ "value": {
309
+ "stringValue": "sha256:416df2986b9f"
310
+ }
311
+ },
312
+ {
313
+ "key": "brain.remediation.job.kind",
314
+ "value": {
315
+ "stringValue": "dedupe_facts"
316
+ }
317
+ },
318
+ {
319
+ "key": "brain.remediation.job.status",
320
+ "value": {
321
+ "stringValue": "submitted"
322
+ }
323
+ },
324
+ {
325
+ "key": "brain.remediation.job.protected_phase",
326
+ "value": {
327
+ "boolValue": false
328
+ }
329
+ },
330
+ {
331
+ "key": "brain.remediation.job.estimated_spend_bucket",
332
+ "value": {
333
+ "stringValue": "under_1_usd"
334
+ }
335
+ },
336
+ {
337
+ "key": "brain.remediation.job.actual_spend_bucket",
338
+ "value": {
339
+ "stringValue": "under_1_usd"
340
+ }
341
+ },
342
+ {
343
+ "key": "brain.remediation.job.changed_entity_count",
344
+ "value": {
345
+ "intValue": "7"
346
+ }
347
+ },
348
+ {
349
+ "key": "brain.remediation.job.refusal_reason",
350
+ "value": {
351
+ "stringValue": ""
352
+ }
353
+ },
354
+ {
355
+ "key": "brain.remediation.job.skip_reason",
356
+ "value": {
357
+ "stringValue": ""
358
+ }
359
+ },
360
+ {
361
+ "key": "brain.privacy.raw_change_recorded",
362
+ "value": {
363
+ "boolValue": false
364
+ }
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "name": "brain.doctor.remediation.job.evaluated",
370
+ "timeUnixNano": "1779386423000000000",
371
+ "attributes": [
372
+ {
373
+ "key": "brain.instance.id_hash",
374
+ "value": {
375
+ "stringValue": "sha256:4c77e531d037"
376
+ }
377
+ },
378
+ {
379
+ "key": "brain.doctor.run.id_hash",
380
+ "value": {
381
+ "stringValue": "sha256:ac33c4e222ad"
382
+ }
383
+ },
384
+ {
385
+ "key": "brain.remediation.job.id_hash",
386
+ "value": {
387
+ "stringValue": "sha256:038f3afb0a78"
388
+ }
389
+ },
390
+ {
391
+ "key": "brain.remediation.job.kind",
392
+ "value": {
393
+ "stringValue": "delete_low_confidence"
394
+ }
395
+ },
396
+ {
397
+ "key": "brain.remediation.job.status",
398
+ "value": {
399
+ "stringValue": "refused"
400
+ }
401
+ },
402
+ {
403
+ "key": "brain.remediation.job.protected_phase",
404
+ "value": {
405
+ "boolValue": true
406
+ }
407
+ },
408
+ {
409
+ "key": "brain.remediation.job.estimated_spend_bucket",
410
+ "value": {
411
+ "stringValue": "under_1_usd"
412
+ }
413
+ },
414
+ {
415
+ "key": "brain.remediation.job.actual_spend_bucket",
416
+ "value": {
417
+ "stringValue": "zero"
418
+ }
419
+ },
420
+ {
421
+ "key": "brain.remediation.job.changed_entity_count",
422
+ "value": {
423
+ "intValue": "0"
424
+ }
425
+ },
426
+ {
427
+ "key": "brain.remediation.job.refusal_reason",
428
+ "value": {
429
+ "stringValue": "protected_phase_requires_human_or_explicit_flag"
430
+ }
431
+ },
432
+ {
433
+ "key": "brain.remediation.job.skip_reason",
434
+ "value": {
435
+ "stringValue": ""
436
+ }
437
+ },
438
+ {
439
+ "key": "brain.privacy.raw_change_recorded",
440
+ "value": {
441
+ "boolValue": false
442
+ }
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "name": "brain.doctor.remediation.job.evaluated",
448
+ "timeUnixNano": "1779386429000000000",
449
+ "attributes": [
450
+ {
451
+ "key": "brain.instance.id_hash",
452
+ "value": {
453
+ "stringValue": "sha256:4c77e531d037"
454
+ }
455
+ },
456
+ {
457
+ "key": "brain.doctor.run.id_hash",
458
+ "value": {
459
+ "stringValue": "sha256:ac33c4e222ad"
460
+ }
461
+ },
462
+ {
463
+ "key": "brain.remediation.job.id_hash",
464
+ "value": {
465
+ "stringValue": "sha256:dc02eb5bc400"
466
+ }
467
+ },
468
+ {
469
+ "key": "brain.remediation.job.kind",
470
+ "value": {
471
+ "stringValue": "link_project_clusters"
472
+ }
473
+ },
474
+ {
475
+ "key": "brain.remediation.job.status",
476
+ "value": {
477
+ "stringValue": "skipped"
478
+ }
479
+ },
480
+ {
481
+ "key": "brain.remediation.job.protected_phase",
482
+ "value": {
483
+ "boolValue": false
484
+ }
485
+ },
486
+ {
487
+ "key": "brain.remediation.job.estimated_spend_bucket",
488
+ "value": {
489
+ "stringValue": "under_1_usd"
490
+ }
491
+ },
492
+ {
493
+ "key": "brain.remediation.job.actual_spend_bucket",
494
+ "value": {
495
+ "stringValue": "zero"
496
+ }
497
+ },
498
+ {
499
+ "key": "brain.remediation.job.changed_entity_count",
500
+ "value": {
501
+ "intValue": "0"
502
+ }
503
+ },
504
+ {
505
+ "key": "brain.remediation.job.refusal_reason",
506
+ "value": {
507
+ "stringValue": ""
508
+ }
509
+ },
510
+ {
511
+ "key": "brain.remediation.job.skip_reason",
512
+ "value": {
513
+ "stringValue": "target_score_reached_by_prior_jobs"
514
+ }
515
+ },
516
+ {
517
+ "key": "brain.privacy.raw_change_recorded",
518
+ "value": {
519
+ "boolValue": false
520
+ }
521
+ }
522
+ ]
523
+ },
524
+ {
525
+ "name": "brain.doctor.remediation.completed",
526
+ "timeUnixNano": "1779386440000000000",
527
+ "attributes": [
528
+ {
529
+ "key": "brain.instance.id_hash",
530
+ "value": {
531
+ "stringValue": "sha256:4c77e531d037"
532
+ }
533
+ },
534
+ {
535
+ "key": "brain.doctor.run.id_hash",
536
+ "value": {
537
+ "stringValue": "sha256:ac33c4e222ad"
538
+ }
539
+ },
540
+ {
541
+ "key": "brain.doctor.outcome",
542
+ "value": {
543
+ "stringValue": "target_reached"
544
+ }
545
+ },
546
+ {
547
+ "key": "brain.doctor.target_score",
548
+ "value": {
549
+ "intValue": "90"
550
+ }
551
+ },
552
+ {
553
+ "key": "brain.doctor.score.before",
554
+ "value": {
555
+ "intValue": "72"
556
+ }
557
+ },
558
+ {
559
+ "key": "brain.doctor.score.after",
560
+ "value": {
561
+ "intValue": "91"
562
+ }
563
+ },
564
+ {
565
+ "key": "brain.doctor.score.after_bucket",
566
+ "value": {
567
+ "stringValue": "healthy"
568
+ }
569
+ },
570
+ {
571
+ "key": "brain.doctor.target_reached",
572
+ "value": {
573
+ "boolValue": true
574
+ }
575
+ },
576
+ {
577
+ "key": "brain.doctor.issue.count.after",
578
+ "value": {
579
+ "intValue": "1"
580
+ }
581
+ },
582
+ {
583
+ "key": "brain.doctor.issue.categories_after_hash",
584
+ "value": {
585
+ "stringValue": "sha256:814e2f4dffc198979efa6fc6c5c539f16b108ad93049907bc12d7c546c24dbb7"
586
+ }
587
+ },
588
+ {
589
+ "key": "brain.doctor.snapshot.after_hash",
590
+ "value": {
591
+ "stringValue": "sha256:c82886e59374"
592
+ }
593
+ },
594
+ {
595
+ "key": "brain.remediation.jobs.submitted",
596
+ "value": {
597
+ "intValue": "2"
598
+ }
599
+ },
600
+ {
601
+ "key": "brain.remediation.jobs.skipped",
602
+ "value": {
603
+ "intValue": "1"
604
+ }
605
+ },
606
+ {
607
+ "key": "brain.remediation.jobs.refused",
608
+ "value": {
609
+ "intValue": "1"
610
+ }
611
+ },
612
+ {
613
+ "key": "brain.remediation.cost.cap_bucket",
614
+ "value": {
615
+ "stringValue": "over_5_usd"
616
+ }
617
+ },
618
+ {
619
+ "key": "brain.remediation.cost.actual_bucket",
620
+ "value": {
621
+ "stringValue": "under_1_usd"
622
+ }
623
+ },
624
+ {
625
+ "key": "brain.privacy.raw_brain_recorded",
626
+ "value": {
627
+ "boolValue": false
628
+ }
629
+ },
630
+ {
631
+ "key": "brain.privacy.raw_operator_note_recorded",
632
+ "value": {
633
+ "boolValue": false
634
+ }
635
+ }
636
+ ]
637
+ }
638
+ ]
639
+ }
640
+ ]
641
+ }
642
+ ]
643
+ }
644
+ ]
645
+ }
@@ -0,0 +1,7 @@
1
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.precheck.completed","time":"2026-05-21T18:00:03.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.doctor.mode":"doctor.remediate","brain.doctor.score.before":72,"brain.doctor.score.before_bucket":"degraded","brain.doctor.issue.count.before":4,"brain.doctor.issue.categories_hash":"sha256:95efbffaf5176005971a15133f1e48bdbc4d22fa26774616c935995671819705","brain.doctor.snapshot.before_hash":"sha256:ce581b34bb6c","brain.privacy.raw_brain_recorded":"false","brain.privacy.raw_issue_recorded":"false"}}
2
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.plan.selected","time":"2026-05-21T18:00:08.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.remediation.plan.id_hash":"sha256:425ecad46025","brain.remediation.plan.summary_hash":"sha256:0e16c6339f4b5632482a187d62165ade9b792896cd72e581586e752cda3fd4b4","brain.remediation.plan.step_count":4,"brain.remediation.plan.estimated_spend_bucket":"under_5_usd","brain.remediation.plan.expected_score_delta":14,"brain.remediation.plan.requires_protected_phase":"true","brain.remediation.protected_phases_hash":"sha256:266a11b56996b5d3f92a382ca9722922d7984b3ae033e078b2261eab0f088ac0","brain.privacy.raw_plan_recorded":"false"}}
3
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.job.evaluated","time":"2026-05-21T18:00:12.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.remediation.job.id_hash":"sha256:72016b090cd4","brain.remediation.job.kind":"refresh_edges","brain.remediation.job.status":"submitted","brain.remediation.job.protected_phase":"false","brain.remediation.job.estimated_spend_bucket":"under_1_usd","brain.remediation.job.actual_spend_bucket":"under_1_usd","brain.remediation.job.changed_entity_count":12,"brain.remediation.job.refusal_reason":"","brain.remediation.job.skip_reason":"","brain.privacy.raw_change_recorded":"false"}}
4
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.job.evaluated","time":"2026-05-21T18:00:18.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.remediation.job.id_hash":"sha256:416df2986b9f","brain.remediation.job.kind":"dedupe_facts","brain.remediation.job.status":"submitted","brain.remediation.job.protected_phase":"false","brain.remediation.job.estimated_spend_bucket":"under_1_usd","brain.remediation.job.actual_spend_bucket":"under_1_usd","brain.remediation.job.changed_entity_count":7,"brain.remediation.job.refusal_reason":"","brain.remediation.job.skip_reason":"","brain.privacy.raw_change_recorded":"false"}}
5
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.job.evaluated","time":"2026-05-21T18:00:23.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.remediation.job.id_hash":"sha256:038f3afb0a78","brain.remediation.job.kind":"delete_low_confidence","brain.remediation.job.status":"refused","brain.remediation.job.protected_phase":"true","brain.remediation.job.estimated_spend_bucket":"under_1_usd","brain.remediation.job.actual_spend_bucket":"zero","brain.remediation.job.changed_entity_count":0,"brain.remediation.job.refusal_reason":"protected_phase_requires_human_or_explicit_flag","brain.remediation.job.skip_reason":"","brain.privacy.raw_change_recorded":"false"}}
6
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.job.evaluated","time":"2026-05-21T18:00:29.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.remediation.job.id_hash":"sha256:dc02eb5bc400","brain.remediation.job.kind":"link_project_clusters","brain.remediation.job.status":"skipped","brain.remediation.job.protected_phase":"false","brain.remediation.job.estimated_spend_bucket":"under_1_usd","brain.remediation.job.actual_spend_bucket":"zero","brain.remediation.job.changed_entity_count":0,"brain.remediation.job.refusal_reason":"","brain.remediation.job.skip_reason":"target_score_reached_by_prior_jobs","brain.privacy.raw_change_recorded":"false"}}
7
+ {"trace_id":"50ddbdd46b410f0b48dbcf30c6bb4283","span_id":"c7e344570f099bee","name":"brain.doctor.remediation.completed","time":"2026-05-21T18:00:40.000Z","attributes":{"brain.instance.id_hash":"sha256:4c77e531d037","brain.doctor.run.id_hash":"sha256:ac33c4e222ad","brain.doctor.outcome":"target_reached","brain.doctor.target_score":90,"brain.doctor.score.before":72,"brain.doctor.score.after":91,"brain.doctor.score.after_bucket":"healthy","brain.doctor.target_reached":"true","brain.doctor.issue.count.after":1,"brain.doctor.issue.categories_after_hash":"sha256:814e2f4dffc198979efa6fc6c5c539f16b108ad93049907bc12d7c546c24dbb7","brain.doctor.snapshot.after_hash":"sha256:c82886e59374","brain.remediation.jobs.submitted":2,"brain.remediation.jobs.skipped":1,"brain.remediation.jobs.refused":1,"brain.remediation.cost.cap_bucket":"over_5_usd","brain.remediation.cost.actual_bucket":"under_1_usd","brain.privacy.raw_brain_recorded":"false","brain.privacy.raw_operator_note_recorded":"false"}}