@agentproto/corpus-cli 0.11.0 → 0.11.2

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 (23) hide show
  1. package/dist/specs/resources/aip-10/draft/KNOWLEDGE.schema.json +2 -2
  2. package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +9 -2
  3. package/dist/specs/resources/aip-19/draft/SECRETS.schema.json +8 -2
  4. package/dist/specs/resources/aip-20/draft/WORK.schema.json +232 -206
  5. package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +29 -0
  6. package/dist/specs/resources/aip-34/draft/LOCK.schema.json +76 -0
  7. package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +237 -0
  8. package/dist/specs/resources/aip-34/draft/TYPES.schema.json +78 -0
  9. package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +252 -95
  10. package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +8 -1
  11. package/dist/specs/resources/aip-42/draft/AGENT.schema.json +5 -0
  12. package/dist/specs/resources/aip-45/draft/AGENT-CLI.schema.json +5 -0
  13. package/dist/specs/resources/aip-49/draft/ASSET.schema.json +10 -0
  14. package/dist/specs/resources/aip-53/draft/APP.schema.json +841 -65
  15. package/dist/specs/resources/aip-58/draft/event.schema.json +3 -2
  16. package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +360 -67
  17. package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +198 -52
  18. package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +5 -1
  19. package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +292 -0
  20. package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +2 -2
  21. package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +321 -0
  22. package/dist/specs/resources/pending/services/SERVICES.schema.json +55 -0
  23. package/package.json +7 -7
@@ -5,23 +5,47 @@
5
5
  "description": "The YAML frontmatter of a REVIEW.md review manifest, parsed to JSON. Field shapes only: the cross-field rules (unique ids, binding references, prepare/effects rules, implied default binding, explicit bindings when uses[] is present) are normative in AIP-62 and are enforced by the parser, not by this schema. Unknown keys are errors at every level.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
- "required": ["kind", "id", "target", "checks"],
8
+ "required": [
9
+ "kind",
10
+ "id",
11
+ "target",
12
+ "checks"
13
+ ],
9
14
  "properties": {
10
- "kind": { "const": "review" },
11
- "id": { "$ref": "#/$defs/id" },
12
- "name": { "type": "string", "minLength": 1 },
13
- "description": { "type": "string" },
15
+ "kind": {
16
+ "const": "review"
17
+ },
18
+ "id": {
19
+ "$ref": "#/$defs/id"
20
+ },
21
+ "name": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "description": {
26
+ "type": "string"
27
+ },
14
28
  "target": {
15
29
  "description": "What is reviewed. v1 supports only a git range. The string form \"git-range\" is shorthand for { kind: git-range } with the default base (origin/main). The reviewed range is merge-base(base, HEAD)..HEAD.",
16
30
  "oneOf": [
17
- { "const": "git-range" },
31
+ {
32
+ "const": "git-range"
33
+ },
18
34
  {
19
35
  "type": "object",
20
36
  "additionalProperties": false,
21
- "required": ["kind"],
37
+ "required": [
38
+ "kind"
39
+ ],
22
40
  "properties": {
23
- "kind": { "const": "git-range" },
24
- "base": { "type": "string", "minLength": 1, "default": "origin/main" }
41
+ "kind": {
42
+ "const": "git-range"
43
+ },
44
+ "base": {
45
+ "type": "string",
46
+ "minLength": 1,
47
+ "default": "origin/main"
48
+ }
25
49
  }
26
50
  }
27
51
  ]
@@ -31,20 +55,30 @@
31
55
  "minItems": 1,
32
56
  "items": {
33
57
  "oneOf": [
34
- { "$ref": "#/$defs/commandCheck" },
35
- { "$ref": "#/$defs/agentCheck" }
58
+ {
59
+ "$ref": "#/$defs/commandCheck"
60
+ },
61
+ {
62
+ "$ref": "#/$defs/agentCheck"
63
+ }
36
64
  ]
37
65
  }
38
66
  },
39
67
  "bindings": {
40
68
  "description": "Named lane selections, keyed by binding id. When absent, an implied `default` binding over every non-effects check applies. When `uses` is present, explicit bindings are required.",
41
69
  "type": "object",
42
- "propertyNames": { "$ref": "#/$defs/id" },
43
- "additionalProperties": { "$ref": "#/$defs/binding" }
70
+ "propertyNames": {
71
+ "$ref": "#/$defs/id"
72
+ },
73
+ "additionalProperties": {
74
+ "$ref": "#/$defs/binding"
75
+ }
44
76
  },
45
77
  "uses": {
46
78
  "type": "array",
47
- "items": { "$ref": "#/$defs/use" }
79
+ "items": {
80
+ "$ref": "#/$defs/use"
81
+ }
48
82
  },
49
83
  "verdict": {
50
84
  "type": "object",
@@ -70,23 +104,50 @@
70
104
  "pattern": "^[a-z][a-z0-9-]*(?:/[a-z][a-z0-9-]*)?$",
71
105
  "maxLength": 129
72
106
  },
73
- "severity": { "enum": ["high", "medium", "low"] },
107
+ "severity": {
108
+ "enum": [
109
+ "high",
110
+ "medium",
111
+ "low"
112
+ ]
113
+ },
74
114
  "commandCheck": {
75
115
  "type": "object",
76
116
  "additionalProperties": false,
77
- "required": ["id", "kind", "run"],
117
+ "required": [
118
+ "id",
119
+ "kind",
120
+ "run"
121
+ ],
78
122
  "properties": {
79
- "id": { "$ref": "#/$defs/id" },
80
- "kind": { "const": "command" },
81
- "description": { "type": "string" },
123
+ "id": {
124
+ "$ref": "#/$defs/id"
125
+ },
126
+ "kind": {
127
+ "const": "command"
128
+ },
129
+ "description": {
130
+ "type": "string"
131
+ },
82
132
  "run": {
83
133
  "type": "string",
84
134
  "minLength": 1,
85
135
  "description": "Executed as `sh -c`. May contain {base}, {head}, {changed} placeholders; {{name}} escapes a literal {name}."
86
136
  },
87
- "cwd": { "type": "string", "minLength": 1, "description": "Relative to the repo root." },
88
- "blocking": { "type": "boolean", "default": true },
89
- "timeoutMs": { "type": "integer", "exclusiveMinimum": 0, "default": 600000 },
137
+ "cwd": {
138
+ "type": "string",
139
+ "minLength": 1,
140
+ "description": "Relative to the repo root."
141
+ },
142
+ "blocking": {
143
+ "type": "boolean",
144
+ "default": true
145
+ },
146
+ "timeoutMs": {
147
+ "type": "integer",
148
+ "exclusiveMinimum": 0,
149
+ "default": 600000
150
+ },
90
151
  "effects": {
91
152
  "type": "boolean",
92
153
  "default": false,
@@ -97,35 +158,68 @@
97
158
  "agentCheck": {
98
159
  "type": "object",
99
160
  "additionalProperties": false,
100
- "required": ["id", "kind", "preset", "rubric"],
161
+ "required": [
162
+ "id",
163
+ "kind",
164
+ "preset",
165
+ "rubric"
166
+ ],
101
167
  "properties": {
102
- "id": { "$ref": "#/$defs/id" },
103
- "kind": { "const": "agent" },
104
- "description": { "type": "string" },
105
- "preset": { "type": "string", "minLength": 1 },
106
- "fallbackPresets": {
107
- "type": "array",
108
- "items": { "type": "string", "minLength": 1 },
109
- "description": "Ordered fallback reviewers. When `preset`'s reviewer is unavailable (spawn/transport error, errored or empty turn, session exited), the lane runs on the next one. Never consulted after a verdict, a timeout, or a cancel. Must not repeat `preset` or itself."
168
+ "id": {
169
+ "$ref": "#/$defs/id"
170
+ },
171
+ "kind": {
172
+ "const": "agent"
173
+ },
174
+ "description": {
175
+ "type": "string"
176
+ },
177
+ "preset": {
178
+ "type": "string",
179
+ "minLength": 1
110
180
  },
111
181
  "rubric": {
112
182
  "type": "string",
113
183
  "minLength": 1,
114
184
  "description": "Path relative to the directory containing REVIEW.md."
115
185
  },
116
- "blockOn": { "$ref": "#/$defs/severity", "default": "high" },
117
- "blocking": { "type": "boolean", "default": true },
118
- "timeoutMs": { "type": "integer", "exclusiveMinimum": 0, "default": 900000 },
186
+ "blockOn": {
187
+ "$ref": "#/$defs/severity",
188
+ "default": "high"
189
+ },
190
+ "blocking": {
191
+ "type": "boolean",
192
+ "default": true
193
+ },
194
+ "timeoutMs": {
195
+ "type": "integer",
196
+ "exclusiveMinimum": 0,
197
+ "default": 900000
198
+ },
119
199
  "effects": {
120
200
  "const": false,
121
201
  "description": "An agent check is always a read-only reviewer; effects: true is an error."
202
+ },
203
+ "sandbox": {
204
+ "$ref": "#/$defs/sandboxRef",
205
+ "description": "Optional. Places this check's reviewer session in a sandbox instead of on the host (AIP-36 inline form). Absent by default (host spawn)."
206
+ },
207
+ "fallbackPresets": {
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string",
211
+ "minLength": 1
212
+ },
213
+ "description": "Ordered fallback reviewers. When `preset`'s reviewer is unavailable (spawn/transport error, errored or empty turn, session exited), the lane runs on the next one. Never consulted after a verdict, a timeout, or a cancel. Must not repeat `preset` or itself."
122
214
  }
123
215
  }
124
216
  },
125
217
  "binding": {
126
218
  "type": "object",
127
219
  "additionalProperties": false,
128
- "required": ["checks"],
220
+ "required": [
221
+ "checks"
222
+ ],
129
223
  "properties": {
130
224
  "on": {
131
225
  "type": "string",
@@ -134,21 +228,31 @@
134
228
  },
135
229
  "prepare": {
136
230
  "type": "array",
137
- "items": { "$ref": "#/$defs/checkRef" },
231
+ "items": {
232
+ "$ref": "#/$defs/checkRef"
233
+ },
138
234
  "description": "effects: true command checks, run in order before the range freezes."
139
235
  },
140
236
  "checks": {
141
237
  "type": "array",
142
238
  "minItems": 1,
143
- "items": { "$ref": "#/$defs/checkRef" }
239
+ "items": {
240
+ "$ref": "#/$defs/checkRef"
241
+ }
144
242
  },
145
- "quorum": { "const": "all-blocking-pass", "default": "all-blocking-pass" }
243
+ "quorum": {
244
+ "const": "all-blocking-pass",
245
+ "default": "all-blocking-pass"
246
+ }
146
247
  }
147
248
  },
148
249
  "use": {
149
250
  "type": "object",
150
251
  "additionalProperties": false,
151
- "required": ["pack", "as"],
252
+ "required": [
253
+ "pack",
254
+ "as"
255
+ ],
152
256
  "properties": {
153
257
  "pack": {
154
258
  "type": "string",
@@ -161,32 +265,74 @@
161
265
  },
162
266
  "checks": {
163
267
  "type": "array",
164
- "items": { "$ref": "#/$defs/id" },
268
+ "items": {
269
+ "$ref": "#/$defs/id"
270
+ },
165
271
  "description": "Subset of the pack's check ids to import. Default: all."
166
272
  },
167
- "preset": { "type": "string", "minLength": 1 },
168
- "fallbackPresets": {
169
- "type": "array",
170
- "items": { "type": "string", "minLength": 1 },
171
- "description": "Ordered fallback reviewers for every imported agent check (see agentCheck.fallbackPresets)."
273
+ "preset": {
274
+ "type": "string",
275
+ "minLength": 1
172
276
  },
173
277
  "overrides": {
174
278
  "type": "object",
175
- "propertyNames": { "$ref": "#/$defs/id" },
279
+ "propertyNames": {
280
+ "$ref": "#/$defs/id"
281
+ },
176
282
  "additionalProperties": {
177
283
  "type": "object",
178
284
  "additionalProperties": false,
179
285
  "properties": {
180
- "blockOn": { "$ref": "#/$defs/severity" },
181
- "blocking": { "type": "boolean" },
182
- "timeoutMs": { "type": "integer", "exclusiveMinimum": 0 },
183
- "preset": { "type": "string", "minLength": 1 },
184
- "fallbackPresets": { "type": "array", "items": { "type": "string", "minLength": 1 } }
286
+ "blockOn": {
287
+ "$ref": "#/$defs/severity"
288
+ },
289
+ "blocking": {
290
+ "type": "boolean"
291
+ },
292
+ "timeoutMs": {
293
+ "type": "integer",
294
+ "exclusiveMinimum": 0
295
+ },
296
+ "preset": {
297
+ "type": "string",
298
+ "minLength": 1
299
+ },
300
+ "fallbackPresets": {
301
+ "type": "array",
302
+ "items": {
303
+ "type": "string",
304
+ "minLength": 1
305
+ }
306
+ }
185
307
  }
186
308
  }
187
309
  },
188
- "allowCommands": { "type": "boolean", "default": false }
310
+ "allowCommands": {
311
+ "type": "boolean",
312
+ "default": false
313
+ },
314
+ "fallbackPresets": {
315
+ "type": "array",
316
+ "items": {
317
+ "type": "string",
318
+ "minLength": 1
319
+ },
320
+ "description": "Ordered fallback reviewers for every imported agent check (see agentCheck.fallbackPresets)."
321
+ }
189
322
  }
323
+ },
324
+ "sandboxRef": {
325
+ "description": "AIP-36 inline SANDBOX form embedded directly in this manifest — a provider slug, or an object naming a provider with its config/env (AIP-36's own frontmatter-only fields such as schema/id/version do not apply here).",
326
+ "anyOf": [
327
+ {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "description": "A sandbox provider slug (e.g. \"e2b\"); the spec is fully host-derived."
331
+ },
332
+ {
333
+ "$ref": "https://agentproto.sh/schemas/aip-36/SANDBOX.schema.json"
334
+ }
335
+ ]
190
336
  }
191
337
  }
192
338
  }
@@ -86,7 +86,7 @@
86
86
  },
87
87
  "conformanceLevel": {
88
88
  "type": "string",
89
- "enum": ["core", "interaction", "network", "download", "profile"]
89
+ "enum": ["core", "interaction", "network", "download", "profile", "recording"]
90
90
  },
91
91
  "capabilities": {
92
92
  "type": "object",
@@ -285,6 +285,10 @@
285
285
  }
286
286
  }
287
287
  }
288
+ },
289
+ {
290
+ "if": { "required": ["conformance"], "properties": { "conformance": { "contains": { "const": "recording" } } } },
291
+ "then": { "properties": { "capabilities": { "required": ["recording"], "properties": { "recording": { "enum": ["screencast", "video"] } } } } }
288
292
  }
289
293
  ]
290
294
  },
@@ -0,0 +1,292 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-63/RECORDING.schema.json",
4
+ "title": "browser-recording/v1",
5
+ "description": "Schemas for the files of a browser recording directory (AIP-63 section 6). manifest.json validates against $defs/manifest. Each line of frames.jsonl validates against $defs/frame and each line of actions.jsonl against $defs/action. The property sets are closed on purpose: there is no field in which a typed value of a masked input could be placed (R8, R9).",
6
+ "$ref": "#/$defs/manifest",
7
+ "$defs": {
8
+ "recordingId": {
9
+ "type": "string",
10
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{7,63}$",
11
+ "description": "Also the name of the recording directory. No dot and no slash, so it cannot traverse (R1)."
12
+ },
13
+ "isoDateTime": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "sha256Hex": {
18
+ "type": "string",
19
+ "pattern": "^[0-9a-f]{64}$"
20
+ },
21
+ "viewport": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["width", "height"],
25
+ "properties": {
26
+ "width": { "type": "integer", "minimum": 1 },
27
+ "height": { "type": "integer", "minimum": 1 },
28
+ "deviceScaleFactor": { "type": "number", "exclusiveMinimum": 0 }
29
+ }
30
+ },
31
+ "manifest": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": [
35
+ "schema",
36
+ "id",
37
+ "sessionId",
38
+ "provider",
39
+ "mode",
40
+ "startedAt",
41
+ "endedAt",
42
+ "status",
43
+ "viewport",
44
+ "frameCount",
45
+ "actionCount",
46
+ "redaction",
47
+ "retentionDays"
48
+ ],
49
+ "properties": {
50
+ "schema": { "const": "browser-recording/v1" },
51
+ "id": { "$ref": "#/$defs/recordingId" },
52
+ "sessionId": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "description": "The agent or browser session that was recorded."
56
+ },
57
+ "provider": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "description": "The id of the BROWSER.md provider that drove the browser (for example chrome-live, chromium, bureau)."
61
+ },
62
+ "adapter": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "description": "The adapter package or host component that captured the frames, when different from the provider."
66
+ },
67
+ "instanceId": { "type": "string", "minLength": 1 },
68
+ "deviceId": {
69
+ "type": "string",
70
+ "minLength": 1,
71
+ "description": "AIP-59 device that owns the recording. When present, any other paired device MUST NOT read it (R11)."
72
+ },
73
+ "grantIds": {
74
+ "type": "array",
75
+ "uniqueItems": true,
76
+ "items": { "type": "string", "minLength": 1 },
77
+ "description": "Ids of the profile grants (AIP-63 section 4) that seeded the recorded session. Ids only, never material (R13)."
78
+ },
79
+ "mode": {
80
+ "type": "string",
81
+ "enum": ["per-action", "screencast"],
82
+ "description": "How frames were produced. The file format is identical in both modes (R6)."
83
+ },
84
+ "screencast": {
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "description": "Capture parameters, for mode screencast. Informational.",
88
+ "properties": {
89
+ "format": { "const": "jpeg" },
90
+ "quality": { "type": "integer", "minimum": 1, "maximum": 100 },
91
+ "everyNthFrame": { "type": "integer", "minimum": 1 },
92
+ "maxFps": { "type": "number", "exclusiveMinimum": 0 }
93
+ }
94
+ },
95
+ "startedAt": { "$ref": "#/$defs/isoDateTime" },
96
+ "endedAt": {
97
+ "oneOf": [{ "$ref": "#/$defs/isoDateTime" }, { "type": "null" }],
98
+ "description": "Null while status is recording."
99
+ },
100
+ "status": {
101
+ "type": "string",
102
+ "enum": ["recording", "complete", "failed", "interrupted"],
103
+ "description": "recording: the writer is live. complete: closed normally. failed: the writer hit an error it could not recover from (see statusReason). interrupted: the host stopped or crashed while recording (R14)."
104
+ },
105
+ "statusReason": { "type": "string", "maxLength": 500 },
106
+ "viewport": { "$ref": "#/$defs/viewport" },
107
+ "frameCount": { "type": "integer", "minimum": 0 },
108
+ "actionCount": { "type": "integer", "minimum": 0 },
109
+ "durationMs": { "type": "integer", "minimum": 0 },
110
+ "redaction": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "required": ["passwordFields"],
114
+ "properties": {
115
+ "passwordFields": {
116
+ "type": "string",
117
+ "enum": ["masked", "none"],
118
+ "description": "masked is the default. none is an explicit operator opt-out and MUST be recorded here (R8)."
119
+ },
120
+ "maskedFrames": { "type": "integer", "minimum": 0 },
121
+ "droppedFrames": {
122
+ "type": "integer",
123
+ "minimum": 0,
124
+ "description": "Frames that could not be masked with certainty and were not written (R9)."
125
+ }
126
+ }
127
+ },
128
+ "retentionDays": {
129
+ "type": "integer",
130
+ "minimum": 1,
131
+ "description": "Days after endedAt (or after startedAt, if the recording never ended) at which the host MUST delete the whole directory (R10)."
132
+ },
133
+ "expiresAt": { "$ref": "#/$defs/isoDateTime" },
134
+ "exports": {
135
+ "type": "array",
136
+ "description": "Derived files under exports/. Not part of the format proper: a reader MUST be able to regenerate them from frames and actions (R15).",
137
+ "items": {
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": ["kind", "file", "createdAt"],
141
+ "properties": {
142
+ "kind": { "const": "video" },
143
+ "file": { "type": "string", "pattern": "^exports/[A-Za-z0-9._-]+\\.(mp4|webm)$" },
144
+ "container": { "type": "string", "enum": ["mp4", "webm"] },
145
+ "durationMs": { "type": "integer", "minimum": 0 },
146
+ "createdAt": { "$ref": "#/$defs/isoDateTime" }
147
+ }
148
+ }
149
+ }
150
+ },
151
+ "allOf": [
152
+ {
153
+ "description": "R3, R14: a live recording has no end; any other status has one.",
154
+ "if": { "properties": { "status": { "const": "recording" } }, "required": ["status"] },
155
+ "then": { "properties": { "endedAt": { "type": "null" } } },
156
+ "else": { "properties": { "endedAt": { "$ref": "#/$defs/isoDateTime" } } }
157
+ },
158
+ {
159
+ "description": "R6: capture parameters only make sense for the screencast mode.",
160
+ "if": { "properties": { "mode": { "const": "per-action" } }, "required": ["mode"] },
161
+ "then": { "properties": { "screencast": false } }
162
+ }
163
+ ]
164
+ },
165
+ "frame": {
166
+ "type": "object",
167
+ "additionalProperties": false,
168
+ "description": "One line of frames.jsonl.",
169
+ "required": ["i", "tMs", "file", "url", "tabId", "w", "h"],
170
+ "properties": {
171
+ "i": {
172
+ "type": "integer",
173
+ "minimum": 1,
174
+ "description": "Frame index, 1-based and contiguous (R4)."
175
+ },
176
+ "tMs": {
177
+ "type": "integer",
178
+ "minimum": 0,
179
+ "description": "Milliseconds since manifest.startedAt, non-decreasing (R4)."
180
+ },
181
+ "file": {
182
+ "type": "string",
183
+ "pattern": "^frames/[0-9]{6,}\\.jpg$",
184
+ "description": "Path relative to the recording directory. The number is i, zero-padded to at least six digits (R5)."
185
+ },
186
+ "url": {
187
+ "type": "string",
188
+ "description": "Page URL at capture time, with fragment and any userinfo removed (R7)."
189
+ },
190
+ "tabId": { "type": "string", "minLength": 1 },
191
+ "w": { "type": "integer", "minimum": 1, "description": "Pixel width of the stored JPEG. It MAY be smaller than the viewport (R5)." },
192
+ "h": { "type": "integer", "minimum": 1 },
193
+ "actionSeq": {
194
+ "type": "integer",
195
+ "minimum": 1,
196
+ "description": "seq of the action this frame follows. Required in per-action mode, optional in screencast mode (R6)."
197
+ },
198
+ "masked": {
199
+ "type": "string",
200
+ "enum": ["none", "fields", "full"],
201
+ "description": "none: no sensitive field visible. fields: the regions of sensitive fields were masked. full: the whole frame was blurred because masking could not be scoped (R8, R9). Absent means none."
202
+ },
203
+ "bytes": { "type": "integer", "minimum": 1 },
204
+ "prev": {
205
+ "$ref": "#/$defs/sha256Hex",
206
+ "description": "SHA-256 of the previous line of this file (SHOULD, R3)."
207
+ }
208
+ }
209
+ },
210
+ "action": {
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "description": "One line of actions.jsonl. There is no field that holds a typed or evaluated value in clear (R7).",
214
+ "required": ["seq", "tMs", "tool", "url", "summary", "status", "durationMs"],
215
+ "properties": {
216
+ "seq": {
217
+ "type": "integer",
218
+ "minimum": 1,
219
+ "description": "Action sequence number, 1-based and contiguous (R4)."
220
+ },
221
+ "tMs": { "type": "integer", "minimum": 0, "description": "Start of the action, in milliseconds since manifest.startedAt." },
222
+ "tool": {
223
+ "type": "string",
224
+ "pattern": "^[a-z][a-z0-9_.-]{0,63}$",
225
+ "description": "The browser tool without the browser. prefix: navigate, click, fill, evaluate, screenshot, scroll, get_dom, extract_text, act, tabs, or a vendor tool."
226
+ },
227
+ "url": {
228
+ "type": "string",
229
+ "description": "Page URL when the action started, with fragment and any userinfo removed."
230
+ },
231
+ "tabId": { "type": "string", "minLength": 1 },
232
+ "target": {
233
+ "type": "object",
234
+ "additionalProperties": false,
235
+ "description": "What the action was aimed at. A locator, never a value (R7).",
236
+ "properties": {
237
+ "selector": { "type": "string", "maxLength": 500 },
238
+ "role": { "type": "string", "maxLength": 100 },
239
+ "name": { "type": "string", "maxLength": 200, "description": "Accessible name of the element, not its value." },
240
+ "sensitive": {
241
+ "const": true,
242
+ "description": "The element is a password-like field (R8). Present means the value was redacted from the summary."
243
+ }
244
+ }
245
+ },
246
+ "summary": {
247
+ "type": "string",
248
+ "maxLength": 500,
249
+ "description": "One human-readable line. For a fill on a sensitive field it MUST NOT contain the value, not even its length (R7)."
250
+ },
251
+ "status": { "type": "string", "enum": ["ok", "error"] },
252
+ "durationMs": { "type": "integer", "minimum": 0 },
253
+ "error": {
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "required": ["code"],
257
+ "properties": {
258
+ "code": { "type": "string", "description": "A browser:* code from AIP-63 T4 or a vendor code." },
259
+ "message": { "type": "string", "maxLength": 500 }
260
+ }
261
+ },
262
+ "redacted": {
263
+ "const": true,
264
+ "description": "Some part of this action was removed by the writer (R7)."
265
+ },
266
+ "prev": {
267
+ "$ref": "#/$defs/sha256Hex",
268
+ "description": "SHA-256 of the previous line of this file (SHOULD, R3)."
269
+ }
270
+ },
271
+ "allOf": [
272
+ {
273
+ "description": "R7: an error status carries an error, an ok status does not.",
274
+ "if": { "properties": { "status": { "const": "error" } }, "required": ["status"] },
275
+ "then": { "required": ["error"] },
276
+ "else": { "not": { "required": ["error"] } }
277
+ },
278
+ {
279
+ "description": "R7: a fill that targets a sensitive field is marked redacted.",
280
+ "if": {
281
+ "properties": {
282
+ "tool": { "const": "fill" },
283
+ "target": { "required": ["sensitive"], "properties": { "sensitive": { "const": true } } }
284
+ },
285
+ "required": ["tool", "target"]
286
+ },
287
+ "then": { "required": ["redacted"] }
288
+ }
289
+ ]
290
+ }
291
+ }
292
+ }