deepdebug-local-agent 1.3.0 → 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.
- package/.github/workflows/deploy-gcp.yml +58 -26
- package/CHANGELOG.md +6 -0
- package/docs/la-protocol-v2.md +102 -0
- package/package.json +2 -1
- package/scripts/sync-la-protocol-v2-contract.mjs +58 -0
- package/src/la-protocol-v2/chunks.js +45 -0
- package/src/la-protocol-v2/config.js +27 -0
- package/src/la-protocol-v2/content-handlers/audit.js +36 -0
- package/src/la-protocol-v2/content-handlers/config.js +48 -0
- package/src/la-protocol-v2/content-handlers/egress.js +65 -0
- package/src/la-protocol-v2/content-handlers/git-diff.js +92 -0
- package/src/la-protocol-v2/content-handlers/handler.js +170 -0
- package/src/la-protocol-v2/content-handlers/index.js +6 -0
- package/src/la-protocol-v2/content-handlers/install.js +50 -0
- package/src/la-protocol-v2/content-handlers/path-guard.js +142 -0
- package/src/la-protocol-v2/content-handlers/ref-registry.js +87 -0
- package/src/la-protocol-v2/content.js +63 -0
- package/src/la-protocol-v2/contract/CONTRACT_SOURCE.json +81 -0
- package/src/la-protocol-v2/contract/README.md +103 -0
- package/src/la-protocol-v2/contract/ack.schema.json +51 -0
- package/src/la-protocol-v2/contract/alert.schema.json +62 -0
- package/src/la-protocol-v2/contract/approval.decision.schema.json +57 -0
- package/src/la-protocol-v2/contract/audit.event.schema.json +86 -0
- package/src/la-protocol-v2/contract/config.update.schema.json +73 -0
- package/src/la-protocol-v2/contract/content.request.schema.json +110 -0
- package/src/la-protocol-v2/contract/content.response.schema.json +90 -0
- package/src/la-protocol-v2/contract/defs.schema.json +191 -0
- package/src/la-protocol-v2/contract/envelope.schema.json +89 -0
- package/src/la-protocol-v2/contract/error.schema.json +59 -0
- package/src/la-protocol-v2/contract/heartbeat.schema.json +100 -0
- package/src/la-protocol-v2/contract/hello.schema.json +111 -0
- package/src/la-protocol-v2/contract/incident.candidate.schema.json +102 -0
- package/src/la-protocol-v2/contract/index.json +166 -0
- package/src/la-protocol-v2/contract/job.assign.schema.json +212 -0
- package/src/la-protocol-v2/contract/job.cancel.schema.json +52 -0
- package/src/la-protocol-v2/contract/job.event.schema.json +115 -0
- package/src/la-protocol-v2/contract/job.result.schema.json +100 -0
- package/src/la-protocol-v2/contract/log.stats.schema.json +79 -0
- package/src/la-protocol-v2/contract/ready.schema.json +106 -0
- package/src/la-protocol-v2/contract/register.schema.json +92 -0
- package/src/la-protocol-v2/contract/scan.upload.schema.json +59 -0
- package/src/la-protocol-v2/contract/scan.uploaded.schema.json +51 -0
- package/src/la-protocol-v2/contract/webhook.forward.schema.json +69 -0
- package/src/la-protocol-v2/contract.js +90 -0
- package/src/la-protocol-v2/errors.js +34 -0
- package/src/la-protocol-v2/index.js +8 -0
- package/src/la-protocol-v2/link.js +93 -0
- package/src/la-protocol-v2/runtime.js +81 -0
- package/src/la-protocol-v2/session.js +650 -0
- package/src/la-protocol-v2/strict-json.js +47 -0
- package/src/server.js +25 -4
- package/test/contract/la-protocol-v2/vectors/ack.vectors.json +149 -0
- package/test/contract/la-protocol-v2/vectors/alert.vectors.json +101 -0
- package/test/contract/la-protocol-v2/vectors/approval.decision.vectors.json +165 -0
- package/test/contract/la-protocol-v2/vectors/audit.event.vectors.json +156 -0
- package/test/contract/la-protocol-v2/vectors/config.update.vectors.json +189 -0
- package/test/contract/la-protocol-v2/vectors/content.request.vectors.json +325 -0
- package/test/contract/la-protocol-v2/vectors/content.response.vectors.json +413 -0
- package/test/contract/la-protocol-v2/vectors/cross-type.vectors.json +260 -0
- package/test/contract/la-protocol-v2/vectors/error.vectors.json +179 -0
- package/test/contract/la-protocol-v2/vectors/heartbeat.vectors.json +109 -0
- package/test/contract/la-protocol-v2/vectors/hello.vectors.json +224 -0
- package/test/contract/la-protocol-v2/vectors/incident.candidate.vectors.json +186 -0
- package/test/contract/la-protocol-v2/vectors/job.assign.vectors.json +631 -0
- package/test/contract/la-protocol-v2/vectors/job.cancel.vectors.json +133 -0
- package/test/contract/la-protocol-v2/vectors/job.event.vectors.json +233 -0
- package/test/contract/la-protocol-v2/vectors/job.result.vectors.json +137 -0
- package/test/contract/la-protocol-v2/vectors/log.stats.vectors.json +137 -0
- package/test/contract/la-protocol-v2/vectors/ready.vectors.json +177 -0
- package/test/contract/la-protocol-v2/vectors/register.vectors.json +399 -0
- package/test/contract/la-protocol-v2/vectors/scan.upload.vectors.json +137 -0
- package/test/contract/la-protocol-v2/vectors/scan.uploaded.vectors.json +101 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-agent-mismatch.json +140 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-chunk-after-last.json +200 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-chunk-byte-length-mismatch.json +174 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-chunk-last-flag.json +200 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-chunk-out-of-order.json +200 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-chunk-total-changes.json +200 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-clock-skew.json +46 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-event-before-ready.json +72 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-first-frame-not-register.json +48 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-frame-over-48kib.json +141 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-la-sends-job-assign.json +173 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-params-raw-differs-from-payload.json +172 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-payload-above-limit.json +174 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-resume-restarts-seq.json +144 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-seq-gap.json +166 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-seq-repeated.json +166 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-sig-tenant-mismatch.json +172 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-signature-warn-with-enforce-required.json +77 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-tenant-mismatch.json +140 -0
- package/test/contract/la-protocol-v2/vectors/traces/invalid-type-outside-allowlist.json +140 -0
- package/test/contract/la-protocol-v2/vectors/traces/valid-content-chunks-in-order.json +224 -0
- package/test/contract/la-protocol-v2/vectors/traces/valid-handshake-and-job.json +266 -0
- package/test/contract/la-protocol-v2/vectors/traces/valid-resume-continues-seq.json +168 -0
- package/test/contract/la-protocol-v2/vectors/traces/valid-retransmit-is-idempotent.json +193 -0
- package/test/contract/la-protocol-v2/vectors/webhook.forward.vectors.json +170 -0
- package/test/la-protocol-v2/content-handlers.test.js +633 -0
- package/test/la-protocol-v2/content-path-guard.test.js +214 -0
- package/test/la-protocol-v2/content-wiring.test.js +225 -0
- package/test/la-protocol-v2/contract.test.js +131 -0
- package/test/la-protocol-v2/helpers/content-rig.js +94 -0
- package/test/la-protocol-v2/helpers/la-rig.js +83 -0
- package/test/la-protocol-v2/helpers/reference-cp.js +349 -0
- package/test/la-protocol-v2/helpers/spawn-agent.js +36 -0
- package/test/la-protocol-v2/link.test.js +141 -0
- package/test/la-protocol-v2/session-inbound.test.js +279 -0
- package/test/la-protocol-v2/session-outbound.test.js +382 -0
- package/test/la-protocol-v2/traces.test.js +270 -0
- package/test/la-protocol-v2/tunnel-e2e.test.js +124 -0
- package/tools/graphify-validation/extras/README.md +19 -0
- package/tools/graphify-validation/extras/bymethod.py +35 -0
- package/tools/graphify-validation/extras/docker/Dockerfile +16 -0
- package/tools/graphify-validation/extras/docker/inner.sh +7 -0
- package/tools/graphify-validation/extras/g10.py +59 -0
- package/tools/graphify-validation/extras/g3aug.py +49 -0
- package/tools/graphify-validation/extras/hybrid.py +34 -0
- package/tools/graphify-validation/extras/truth2.py +44 -0
- package/tools/interop/LaV2NodeContentInteropTest.java +248 -0
- package/tools/interop/LaV2NodeInteropTest.java +266 -0
- package/tools/interop/README.md +38 -0
- package/tools/interop/la-interop-client.mjs +97 -0
- package/tools/interop/la-interop-content-client.mjs +91 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "hello",
|
|
3
|
+
"schema": "hello.schema.json",
|
|
4
|
+
"vectors": [
|
|
5
|
+
{
|
|
6
|
+
"name": "minimal-valid",
|
|
7
|
+
"expect": {
|
|
8
|
+
"valid": true
|
|
9
|
+
},
|
|
10
|
+
"message": {
|
|
11
|
+
"schemaVersion": 2,
|
|
12
|
+
"type": "hello",
|
|
13
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
14
|
+
"seq": 0,
|
|
15
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
16
|
+
"workspaceId": "ws-1",
|
|
17
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
18
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
19
|
+
"payload": {
|
|
20
|
+
"laVersion": "2.4.0",
|
|
21
|
+
"capabilities": [
|
|
22
|
+
"content.request",
|
|
23
|
+
"job.assign"
|
|
24
|
+
],
|
|
25
|
+
"signatureMode": "enforce",
|
|
26
|
+
"graphify": {
|
|
27
|
+
"state": "ready",
|
|
28
|
+
"nodes": 12840,
|
|
29
|
+
"edges": 40211,
|
|
30
|
+
"commit": "9fceb02d",
|
|
31
|
+
"ageSeconds": 300
|
|
32
|
+
},
|
|
33
|
+
"diskFreeBytes": 52428800000,
|
|
34
|
+
"queueDepth": 0,
|
|
35
|
+
"clockEpochMs": 1793268000000
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "extra-top-level-field",
|
|
41
|
+
"why": "envelope is closed (additionalProperties:false)",
|
|
42
|
+
"expect": {
|
|
43
|
+
"valid": false,
|
|
44
|
+
"code": "schema_violation",
|
|
45
|
+
"keyword": "additionalProperties"
|
|
46
|
+
},
|
|
47
|
+
"message": {
|
|
48
|
+
"schemaVersion": 2,
|
|
49
|
+
"type": "hello",
|
|
50
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
51
|
+
"seq": 0,
|
|
52
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
53
|
+
"workspaceId": "ws-1",
|
|
54
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
55
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
56
|
+
"payload": {
|
|
57
|
+
"laVersion": "2.4.0",
|
|
58
|
+
"capabilities": [
|
|
59
|
+
"content.request",
|
|
60
|
+
"job.assign"
|
|
61
|
+
],
|
|
62
|
+
"signatureMode": "enforce",
|
|
63
|
+
"graphify": {
|
|
64
|
+
"state": "ready",
|
|
65
|
+
"nodes": 12840,
|
|
66
|
+
"edges": 40211,
|
|
67
|
+
"commit": "9fceb02d",
|
|
68
|
+
"ageSeconds": 300
|
|
69
|
+
},
|
|
70
|
+
"diskFreeBytes": 52428800000,
|
|
71
|
+
"queueDepth": 0,
|
|
72
|
+
"clockEpochMs": 1793268000000
|
|
73
|
+
},
|
|
74
|
+
"extra": "x"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "extra-payload-field",
|
|
79
|
+
"why": "payload is closed: no free-form fields",
|
|
80
|
+
"expect": {
|
|
81
|
+
"valid": false,
|
|
82
|
+
"code": "schema_violation",
|
|
83
|
+
"keyword": "additionalProperties"
|
|
84
|
+
},
|
|
85
|
+
"message": {
|
|
86
|
+
"schemaVersion": 2,
|
|
87
|
+
"type": "hello",
|
|
88
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
89
|
+
"seq": 0,
|
|
90
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
91
|
+
"workspaceId": "ws-1",
|
|
92
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
93
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
94
|
+
"payload": {
|
|
95
|
+
"laVersion": "2.4.0",
|
|
96
|
+
"capabilities": [
|
|
97
|
+
"content.request",
|
|
98
|
+
"job.assign"
|
|
99
|
+
],
|
|
100
|
+
"signatureMode": "enforce",
|
|
101
|
+
"graphify": {
|
|
102
|
+
"state": "ready",
|
|
103
|
+
"nodes": 12840,
|
|
104
|
+
"edges": 40211,
|
|
105
|
+
"commit": "9fceb02d",
|
|
106
|
+
"ageSeconds": 300
|
|
107
|
+
},
|
|
108
|
+
"diskFreeBytes": 52428800000,
|
|
109
|
+
"queueDepth": 0,
|
|
110
|
+
"clockEpochMs": 1793268000000,
|
|
111
|
+
"freeText": "client text"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "tenant-id-not-uuid",
|
|
117
|
+
"why": "tenantId must be a UUID",
|
|
118
|
+
"expect": {
|
|
119
|
+
"valid": false,
|
|
120
|
+
"code": "schema_violation",
|
|
121
|
+
"keyword": "pattern"
|
|
122
|
+
},
|
|
123
|
+
"message": {
|
|
124
|
+
"schemaVersion": 2,
|
|
125
|
+
"type": "hello",
|
|
126
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
127
|
+
"seq": 0,
|
|
128
|
+
"tenantId": "tenant-1",
|
|
129
|
+
"workspaceId": "ws-1",
|
|
130
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
131
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
132
|
+
"payload": {
|
|
133
|
+
"laVersion": "2.4.0",
|
|
134
|
+
"capabilities": [
|
|
135
|
+
"content.request",
|
|
136
|
+
"job.assign"
|
|
137
|
+
],
|
|
138
|
+
"signatureMode": "enforce",
|
|
139
|
+
"graphify": {
|
|
140
|
+
"state": "ready",
|
|
141
|
+
"nodes": 12840,
|
|
142
|
+
"edges": 40211,
|
|
143
|
+
"commit": "9fceb02d",
|
|
144
|
+
"ageSeconds": 300
|
|
145
|
+
},
|
|
146
|
+
"diskFreeBytes": 52428800000,
|
|
147
|
+
"queueDepth": 0,
|
|
148
|
+
"clockEpochMs": 1793268000000
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "signature-warn-is-schema-valid",
|
|
154
|
+
"expect": {
|
|
155
|
+
"valid": true
|
|
156
|
+
},
|
|
157
|
+
"message": {
|
|
158
|
+
"schemaVersion": 2,
|
|
159
|
+
"type": "hello",
|
|
160
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
161
|
+
"seq": 0,
|
|
162
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
163
|
+
"workspaceId": "ws-1",
|
|
164
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
165
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
166
|
+
"payload": {
|
|
167
|
+
"laVersion": "2.4.0",
|
|
168
|
+
"capabilities": [
|
|
169
|
+
"content.request",
|
|
170
|
+
"job.assign"
|
|
171
|
+
],
|
|
172
|
+
"signatureMode": "warn",
|
|
173
|
+
"graphify": {
|
|
174
|
+
"state": "ready",
|
|
175
|
+
"nodes": 12840,
|
|
176
|
+
"edges": 40211,
|
|
177
|
+
"commit": "9fceb02d",
|
|
178
|
+
"ageSeconds": 300
|
|
179
|
+
},
|
|
180
|
+
"diskFreeBytes": 52428800000,
|
|
181
|
+
"queueDepth": 0,
|
|
182
|
+
"clockEpochMs": 1793268000000
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"why": "valid on the wire; the CP refuses hybrid/client for warn/off (trace signature_mode_insufficient)"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "missing-clock",
|
|
189
|
+
"why": "clockEpochMs is required for skew detection",
|
|
190
|
+
"expect": {
|
|
191
|
+
"valid": false,
|
|
192
|
+
"code": "schema_violation",
|
|
193
|
+
"keyword": "required"
|
|
194
|
+
},
|
|
195
|
+
"message": {
|
|
196
|
+
"schemaVersion": 2,
|
|
197
|
+
"type": "hello",
|
|
198
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
199
|
+
"seq": 0,
|
|
200
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
201
|
+
"workspaceId": "ws-1",
|
|
202
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
203
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
204
|
+
"payload": {
|
|
205
|
+
"laVersion": "2.4.0",
|
|
206
|
+
"capabilities": [
|
|
207
|
+
"content.request",
|
|
208
|
+
"job.assign"
|
|
209
|
+
],
|
|
210
|
+
"signatureMode": "enforce",
|
|
211
|
+
"graphify": {
|
|
212
|
+
"state": "ready",
|
|
213
|
+
"nodes": 12840,
|
|
214
|
+
"edges": 40211,
|
|
215
|
+
"commit": "9fceb02d",
|
|
216
|
+
"ageSeconds": 300
|
|
217
|
+
},
|
|
218
|
+
"diskFreeBytes": 52428800000,
|
|
219
|
+
"queueDepth": 0
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "incident.candidate",
|
|
3
|
+
"schema": "incident.candidate.schema.json",
|
|
4
|
+
"vectors": [
|
|
5
|
+
{
|
|
6
|
+
"name": "minimal-valid",
|
|
7
|
+
"expect": {
|
|
8
|
+
"valid": true
|
|
9
|
+
},
|
|
10
|
+
"message": {
|
|
11
|
+
"schemaVersion": 2,
|
|
12
|
+
"type": "incident.candidate",
|
|
13
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
14
|
+
"seq": 1,
|
|
15
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
16
|
+
"workspaceId": "ws-1",
|
|
17
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
18
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
19
|
+
"payload": {
|
|
20
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
21
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
22
|
+
"severity": "high",
|
|
23
|
+
"service": "billing-api",
|
|
24
|
+
"environment": "prod",
|
|
25
|
+
"count": 37,
|
|
26
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
27
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
28
|
+
"logCategory": "exception"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "extra-top-level-field",
|
|
34
|
+
"why": "envelope is closed (additionalProperties:false)",
|
|
35
|
+
"expect": {
|
|
36
|
+
"valid": false,
|
|
37
|
+
"code": "schema_violation",
|
|
38
|
+
"keyword": "additionalProperties"
|
|
39
|
+
},
|
|
40
|
+
"message": {
|
|
41
|
+
"schemaVersion": 2,
|
|
42
|
+
"type": "incident.candidate",
|
|
43
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
44
|
+
"seq": 1,
|
|
45
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
46
|
+
"workspaceId": "ws-1",
|
|
47
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
48
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
49
|
+
"payload": {
|
|
50
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
51
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
52
|
+
"severity": "high",
|
|
53
|
+
"service": "billing-api",
|
|
54
|
+
"environment": "prod",
|
|
55
|
+
"count": 37,
|
|
56
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
57
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
58
|
+
"logCategory": "exception"
|
|
59
|
+
},
|
|
60
|
+
"extra": "x"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "extra-payload-field",
|
|
65
|
+
"why": "payload is closed: no free-form fields",
|
|
66
|
+
"expect": {
|
|
67
|
+
"valid": false,
|
|
68
|
+
"code": "schema_violation",
|
|
69
|
+
"keyword": "additionalProperties"
|
|
70
|
+
},
|
|
71
|
+
"message": {
|
|
72
|
+
"schemaVersion": 2,
|
|
73
|
+
"type": "incident.candidate",
|
|
74
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
75
|
+
"seq": 1,
|
|
76
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
77
|
+
"workspaceId": "ws-1",
|
|
78
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
79
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
80
|
+
"payload": {
|
|
81
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
82
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
83
|
+
"severity": "high",
|
|
84
|
+
"service": "billing-api",
|
|
85
|
+
"environment": "prod",
|
|
86
|
+
"count": 37,
|
|
87
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
88
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
89
|
+
"logCategory": "exception",
|
|
90
|
+
"freeText": "client text"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "tenant-id-not-uuid",
|
|
96
|
+
"why": "tenantId must be a UUID",
|
|
97
|
+
"expect": {
|
|
98
|
+
"valid": false,
|
|
99
|
+
"code": "schema_violation",
|
|
100
|
+
"keyword": "pattern"
|
|
101
|
+
},
|
|
102
|
+
"message": {
|
|
103
|
+
"schemaVersion": 2,
|
|
104
|
+
"type": "incident.candidate",
|
|
105
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
106
|
+
"seq": 1,
|
|
107
|
+
"tenantId": "tenant-1",
|
|
108
|
+
"workspaceId": "ws-1",
|
|
109
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
110
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
111
|
+
"payload": {
|
|
112
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
113
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
114
|
+
"severity": "high",
|
|
115
|
+
"service": "billing-api",
|
|
116
|
+
"environment": "prod",
|
|
117
|
+
"count": 37,
|
|
118
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
119
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
120
|
+
"logCategory": "exception"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "stack-trace-not-allowed",
|
|
126
|
+
"why": "incidents carry metadata only (stack goes via content.request)",
|
|
127
|
+
"expect": {
|
|
128
|
+
"valid": false,
|
|
129
|
+
"code": "schema_violation",
|
|
130
|
+
"keyword": "additionalProperties"
|
|
131
|
+
},
|
|
132
|
+
"message": {
|
|
133
|
+
"schemaVersion": 2,
|
|
134
|
+
"type": "incident.candidate",
|
|
135
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
136
|
+
"seq": 1,
|
|
137
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
138
|
+
"workspaceId": "ws-1",
|
|
139
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
140
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
141
|
+
"payload": {
|
|
142
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
143
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
144
|
+
"severity": "high",
|
|
145
|
+
"service": "billing-api",
|
|
146
|
+
"environment": "prod",
|
|
147
|
+
"count": 37,
|
|
148
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
149
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
150
|
+
"logCategory": "exception",
|
|
151
|
+
"stack": "java.lang.NullPointerException at ..."
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "service-with-space",
|
|
157
|
+
"why": "service is an identifier, not free text",
|
|
158
|
+
"expect": {
|
|
159
|
+
"valid": false,
|
|
160
|
+
"code": "schema_violation",
|
|
161
|
+
"keyword": "pattern"
|
|
162
|
+
},
|
|
163
|
+
"message": {
|
|
164
|
+
"schemaVersion": 2,
|
|
165
|
+
"type": "incident.candidate",
|
|
166
|
+
"msgId": "00000000-0000-4000-8000-000000000001",
|
|
167
|
+
"seq": 1,
|
|
168
|
+
"tenantId": "3f2b8c1e-5a4d-4e7b-9c21-0a1b2c3d4e5f",
|
|
169
|
+
"workspaceId": "ws-1",
|
|
170
|
+
"ts": "2026-10-29T10:00:00Z",
|
|
171
|
+
"agentId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
|
|
172
|
+
"payload": {
|
|
173
|
+
"errorHash": "5a1f09c2d7e8b3a4",
|
|
174
|
+
"fingerprint": "c0ffee11deadbeef",
|
|
175
|
+
"severity": "high",
|
|
176
|
+
"service": "billing api",
|
|
177
|
+
"environment": "prod",
|
|
178
|
+
"count": 37,
|
|
179
|
+
"firstSeen": "2026-10-29T09:50:00Z",
|
|
180
|
+
"lastSeen": "2026-10-29T09:59:30Z",
|
|
181
|
+
"logCategory": "exception"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|