@agentproto/corpus-cli 0.11.3 → 0.11.4
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/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/specs/resources/aip-14/draft/TOOL.schema.json +2 -2
- package/dist/specs/resources/aip-22/draft/OFFICE.schema.json +8 -8
- package/dist/specs/resources/aip-23/draft/IDENTITY.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +1 -1
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +5 -2
- package/dist/specs/resources/aip-38/draft/POLICY.schema.json +22 -2
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +42 -4
- package/dist/specs/resources/aip-45/draft/HARNESS.schema.json +79 -1
- package/dist/specs/resources/aip-45/draft/STREAM-EVENTS.schema.json +151 -0
- package/dist/specs/resources/aip-47/draft/ROLE.schema.json +93 -1
- package/dist/specs/resources/aip-53/draft/APP.schema.json +30 -42
- package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +2 -1
- package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +67 -105
- package/dist/specs/resources/{pending/memory → aip-72}/draft/MEMORY.schema.json +115 -62
- package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +229 -138
- package/package.json +3 -3
- package/dist/specs/resources/pending/harness/HARNESS.schema.json +0 -254
- package/dist/specs/resources/pending/services/SERVICES.schema.json +0 -55
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agentproto.sh/schemas/
|
|
4
|
-
"title": "MEMORY.md frontmatter
|
|
5
|
-
"description": "Validates the YAML frontmatter of
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-72/MEMORY.schema.json",
|
|
4
|
+
"title": "MEMORY.md frontmatter, memory/v1 (AIP-72)",
|
|
5
|
+
"description": "Validates the YAML frontmatter of an AIP-72 memory/v1 item: one small typed assertion (user, feedback, project, reference) about a principal or its work, with a lifecycle. A third doctype in the memory layer: it neither absorbs nor replaces AIP-10 knowledge/v1 entries (curated, shareable wiki pages over immutable sources) nor AIP-11 lesson/v1 (distilled lessons from runs). A memory/v1 item carries the AIP-10 base fields (schema, slug, kind, title, updated_at); the remaining fields are the memory item shape and are OPTIONAL, so a writer that emits only the AIP-10 base fields and a writer that emits the full item both validate against the same schema. The markdown body (the `body` property) is unrestricted text.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"anyOf": [
|
|
9
|
-
{
|
|
10
|
-
|
|
9
|
+
{
|
|
10
|
+
"required": [
|
|
11
|
+
"schema",
|
|
12
|
+
"slug",
|
|
13
|
+
"kind",
|
|
14
|
+
"title",
|
|
15
|
+
"updated_at"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"required": [
|
|
20
|
+
"id",
|
|
21
|
+
"name",
|
|
22
|
+
"type"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
11
25
|
],
|
|
12
26
|
"properties": {
|
|
13
27
|
"schema": {
|
|
14
28
|
"const": "memory/v1",
|
|
15
|
-
"description": "Discriminator for a memory/v1 document. Optional only to tolerate legacy
|
|
29
|
+
"description": "Discriminator for a memory/v1 document. Optional only to tolerate legacy items written before this doctype existed; a canonical memory/v1 document MUST set it, and when present it MUST equal 'memory/v1'."
|
|
16
30
|
},
|
|
17
31
|
"slug": {
|
|
18
32
|
"type": "string",
|
|
@@ -26,7 +40,7 @@
|
|
|
26
40
|
"minLength": 2,
|
|
27
41
|
"maxLength": 32,
|
|
28
42
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
29
|
-
"description": "Item kind (AIP-10 convention). Common values
|
|
43
|
+
"description": "Item kind (AIP-10 convention). Common values are the memory types: 'user', 'feedback', 'project', 'reference'."
|
|
30
44
|
},
|
|
31
45
|
"title": {
|
|
32
46
|
"type": "string",
|
|
@@ -37,27 +51,32 @@
|
|
|
37
51
|
"updated_at": {
|
|
38
52
|
"type": "string",
|
|
39
53
|
"format": "date-time",
|
|
40
|
-
"description": "ISO 8601 timestamp of the last write (AIP-10 convention). MUST
|
|
54
|
+
"description": "ISO 8601 timestamp of the last content write (AIP-10 convention). A writer MUST set it when it creates the item and when it changes any field other than `status`; a status-only lifecycle rewrite (to `superseded` or `archived`) MAY leave it unchanged."
|
|
41
55
|
},
|
|
42
56
|
"id": {
|
|
43
57
|
"type": "string",
|
|
44
58
|
"minLength": 1,
|
|
45
|
-
"description": "
|
|
59
|
+
"description": "Item identifier (e.g. 'mem_qc8f407g'). Legacy alias for the AIP-10 path stem; when the base fields are omitted it takes part in identifying the item."
|
|
46
60
|
},
|
|
47
61
|
"name": {
|
|
48
62
|
"type": "string",
|
|
49
63
|
"minLength": 1,
|
|
50
64
|
"maxLength": 1000,
|
|
51
|
-
"description": "
|
|
65
|
+
"description": "Slugified name, distinct from `title`. Kept as a separate field so a legacy item round-trips without loss."
|
|
52
66
|
},
|
|
53
67
|
"type": {
|
|
54
|
-
"enum": [
|
|
55
|
-
|
|
68
|
+
"enum": [
|
|
69
|
+
"user",
|
|
70
|
+
"feedback",
|
|
71
|
+
"project",
|
|
72
|
+
"reference"
|
|
73
|
+
],
|
|
74
|
+
"description": "Memory type. The closed type set from the memory contract; `kind` is the AIP-10-aligned spelling of the same notion."
|
|
56
75
|
},
|
|
57
76
|
"description": {
|
|
58
77
|
"type": "string",
|
|
59
78
|
"maxLength": 4000,
|
|
60
|
-
"description": "
|
|
79
|
+
"description": "One-line human-readable summary, independent of the body."
|
|
61
80
|
},
|
|
62
81
|
"tags": {
|
|
63
82
|
"type": "array",
|
|
@@ -66,37 +85,36 @@
|
|
|
66
85
|
"minLength": 1
|
|
67
86
|
},
|
|
68
87
|
"default": [],
|
|
69
|
-
"description": "Free-form labels.
|
|
88
|
+
"description": "Free-form labels. Scope anchors are carried here in their formatted form (e.g. 'global', 'project:acme', 'agent:assistant', 'pr:acme/app#42'). Two anchors tie an item to an AIP-34 tree and an AIP-9 operator: 'node:<id>' (the AIP-34 node id, e.g. 'node:@acme/agentik') scopes visibility, and 'operator:<id>' (e.g. 'operator:pm-simone') marks ownership and never widens visibility. An item carries at most one of each; the node projection and write rules are in AIP-72 section 10."
|
|
70
89
|
},
|
|
71
90
|
"polarity": {
|
|
72
|
-
"enum": [
|
|
73
|
-
|
|
91
|
+
"enum": [
|
|
92
|
+
"do",
|
|
93
|
+
"dont"
|
|
94
|
+
],
|
|
95
|
+
"description": "Feedback polarity. Present only on items of type 'feedback'."
|
|
74
96
|
},
|
|
75
97
|
"lifetime": {
|
|
76
98
|
"$ref": "#/$defs/lifetime",
|
|
77
|
-
"description": "How long the item stays valid.
|
|
99
|
+
"description": "How long the item stays valid. Typical values are { kind: 'durable' } or { kind: 'while', anchor: { … } }."
|
|
78
100
|
},
|
|
79
101
|
"status": {
|
|
80
102
|
"enum": [
|
|
81
103
|
"active",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"rejected",
|
|
85
|
-
"expired",
|
|
86
|
-
"stale",
|
|
87
|
-
"superseded"
|
|
104
|
+
"superseded",
|
|
105
|
+
"archived"
|
|
88
106
|
],
|
|
89
|
-
"description": "Lifecycle status.
|
|
107
|
+
"description": "Lifecycle status. A writer creates an item 'active'. 'superseded' means a newer item replaces it; 'archived' means it is retired without a replacement (decayed, or its anchor no longer resolves). Both are terminal: an item is marked, never erased. Absent means 'active'."
|
|
90
108
|
},
|
|
91
109
|
"created": {
|
|
92
110
|
"type": "string",
|
|
93
111
|
"format": "date-time",
|
|
94
|
-
"description": "
|
|
112
|
+
"description": "Creation timestamp."
|
|
95
113
|
},
|
|
96
114
|
"written": {
|
|
97
115
|
"type": "string",
|
|
98
116
|
"format": "date-time",
|
|
99
|
-
"description": "
|
|
117
|
+
"description": "Last-write timestamp. Mirrors the AIP-10 `updated_at`."
|
|
100
118
|
},
|
|
101
119
|
"decidedBy": {
|
|
102
120
|
"type": "object",
|
|
@@ -105,7 +123,7 @@
|
|
|
105
123
|
"rule": {
|
|
106
124
|
"type": "string",
|
|
107
125
|
"minLength": 1,
|
|
108
|
-
"description": "Classifier rule that produced the item (e.g. '
|
|
126
|
+
"description": "Classifier rule that produced the item (e.g. 'classifier-confident', 'memory-file')."
|
|
109
127
|
},
|
|
110
128
|
"source": {
|
|
111
129
|
"type": "string",
|
|
@@ -127,31 +145,25 @@
|
|
|
127
145
|
"type": "object",
|
|
128
146
|
"additionalProperties": false,
|
|
129
147
|
"properties": {
|
|
130
|
-
"
|
|
148
|
+
"mode": {
|
|
149
|
+
"enum": [
|
|
150
|
+
"live",
|
|
151
|
+
"batch"
|
|
152
|
+
],
|
|
153
|
+
"description": "How the item was captured: 'live' during the session it describes, 'batch' by a later pass over stored transcripts or files."
|
|
154
|
+
},
|
|
155
|
+
"producer": {
|
|
131
156
|
"type": "string",
|
|
132
157
|
"minLength": 1,
|
|
133
|
-
"description": "
|
|
158
|
+
"description": "Who or what captured the item (e.g. a clerk, a migration, an importer). 'unknown' when the producer did not identify itself."
|
|
134
159
|
},
|
|
135
|
-
"
|
|
160
|
+
"capturedAt": {
|
|
136
161
|
"type": "string",
|
|
137
162
|
"format": "date-time",
|
|
138
|
-
"description": "ISO 8601 timestamp
|
|
139
|
-
},
|
|
140
|
-
"hash": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"minLength": 1,
|
|
143
|
-
"description": "Content hash of the captured/normalized body, used for dedup and evidence."
|
|
163
|
+
"description": "ISO 8601 timestamp at which the source was captured or extracted."
|
|
144
164
|
}
|
|
145
165
|
},
|
|
146
|
-
"description": "
|
|
147
|
-
},
|
|
148
|
-
"anchors": {
|
|
149
|
-
"type": "array",
|
|
150
|
-
"items": {
|
|
151
|
-
"$ref": "#/$defs/anchor"
|
|
152
|
-
},
|
|
153
|
-
"default": [],
|
|
154
|
-
"description": "Structured anchors scoping the item. Per-agent anchoring uses kind 'agent' with slug '<agent-slug>' (the 'agent:<slug>' form); other kinds are 'project', 'task', 'session', 'pr', 'contact', and the unscoped 'global'."
|
|
166
|
+
"description": "Who, what and how captured the item, kept apart from `provenance` (where the claim was observed)."
|
|
155
167
|
},
|
|
156
168
|
"body": {
|
|
157
169
|
"type": "string",
|
|
@@ -161,7 +173,9 @@
|
|
|
161
173
|
"$defs": {
|
|
162
174
|
"anchor": {
|
|
163
175
|
"type": "object",
|
|
164
|
-
"required": [
|
|
176
|
+
"required": [
|
|
177
|
+
"kind"
|
|
178
|
+
],
|
|
165
179
|
"additionalProperties": false,
|
|
166
180
|
"properties": {
|
|
167
181
|
"kind": {
|
|
@@ -172,9 +186,11 @@
|
|
|
172
186
|
"session",
|
|
173
187
|
"pr",
|
|
174
188
|
"contact",
|
|
175
|
-
"agent"
|
|
189
|
+
"agent",
|
|
190
|
+
"node",
|
|
191
|
+
"operator"
|
|
176
192
|
],
|
|
177
|
-
"description": "Anchor kind. 'agent' extends the conversation-contract set for per-agent anchoring."
|
|
193
|
+
"description": "Anchor kind. 'agent' extends the conversation-contract set for per-agent anchoring. 'node' names an AIP-34 node and scopes visibility; 'operator' names an AIP-9 operator and marks ownership (AIP-72 section 10)."
|
|
178
194
|
},
|
|
179
195
|
"slug": {
|
|
180
196
|
"type": "string",
|
|
@@ -184,7 +200,7 @@
|
|
|
184
200
|
"id": {
|
|
185
201
|
"type": "string",
|
|
186
202
|
"minLength": 1,
|
|
187
|
-
"description": "Anchor target id (task, session)."
|
|
203
|
+
"description": "Anchor target id (task, session, node, operator). For a node, the AIP-34 id ('@<owner>/<slug>'); for an operator, the operator body of an AIP-54 'operator:' ref ('<slug>' or '<slug>@<workspace>')."
|
|
188
204
|
},
|
|
189
205
|
"repo": {
|
|
190
206
|
"type": "string",
|
|
@@ -197,15 +213,22 @@
|
|
|
197
213
|
"description": "Pull-request number for a pr anchor."
|
|
198
214
|
}
|
|
199
215
|
},
|
|
200
|
-
"description": "A scope anchor
|
|
216
|
+
"description": "A scope anchor, used by `lifetime` kind 'while'. Loose but typed: { kind: 'project'|'contact'|'agent', slug }, { kind: 'task'|'session'|'node'|'operator', id }, { kind: 'pr', repo, number }, { kind: 'global' }."
|
|
201
217
|
},
|
|
202
218
|
"lifetime": {
|
|
203
219
|
"type": "object",
|
|
204
|
-
"required": [
|
|
220
|
+
"required": [
|
|
221
|
+
"kind"
|
|
222
|
+
],
|
|
205
223
|
"additionalProperties": false,
|
|
206
224
|
"properties": {
|
|
207
225
|
"kind": {
|
|
208
|
-
"enum": [
|
|
226
|
+
"enum": [
|
|
227
|
+
"durable",
|
|
228
|
+
"until",
|
|
229
|
+
"while",
|
|
230
|
+
"session"
|
|
231
|
+
],
|
|
209
232
|
"description": "Lifetime kind. 'durable' never expires; 'until' expires at `at`; 'while' lasts as long as `anchor` holds; 'session' lasts for the session."
|
|
210
233
|
},
|
|
211
234
|
"at": {
|
|
@@ -217,7 +240,37 @@
|
|
|
217
240
|
"$ref": "#/$defs/anchor",
|
|
218
241
|
"description": "Governing anchor for kind 'while'."
|
|
219
242
|
}
|
|
220
|
-
}
|
|
243
|
+
},
|
|
244
|
+
"allOf": [
|
|
245
|
+
{
|
|
246
|
+
"if": {
|
|
247
|
+
"properties": {
|
|
248
|
+
"kind": {
|
|
249
|
+
"const": "until"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"then": {
|
|
254
|
+
"required": [
|
|
255
|
+
"at"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"if": {
|
|
261
|
+
"properties": {
|
|
262
|
+
"kind": {
|
|
263
|
+
"const": "while"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"then": {
|
|
268
|
+
"required": [
|
|
269
|
+
"anchor"
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
]
|
|
221
274
|
},
|
|
222
275
|
"provenance": {
|
|
223
276
|
"type": "object",
|
|
@@ -226,17 +279,17 @@
|
|
|
226
279
|
"source": {
|
|
227
280
|
"type": "string",
|
|
228
281
|
"minLength": 1,
|
|
229
|
-
"description": "Provenance source class (e.g. '
|
|
282
|
+
"description": "Provenance source class (e.g. 'transcript', 'memory-file', 'converse', 'task-close', 'recall-gap')."
|
|
230
283
|
},
|
|
231
284
|
"sessionId": {
|
|
232
285
|
"type": "string",
|
|
233
286
|
"minLength": 1,
|
|
234
|
-
"description": "Session the claim was observed in."
|
|
287
|
+
"description": "Session the claim was observed in. Omitted, never empty, when the source has no session."
|
|
235
288
|
},
|
|
236
289
|
"ref": {
|
|
237
290
|
"type": "string",
|
|
238
291
|
"minLength": 1,
|
|
239
|
-
"description": "Opaque reference into the source (message uuid, file path,
|
|
292
|
+
"description": "Opaque reference into the source (message uuid, file path, ...). Omitted, never empty, when the source has none."
|
|
240
293
|
},
|
|
241
294
|
"quote": {
|
|
242
295
|
"type": "string",
|
|
@@ -247,13 +300,13 @@
|
|
|
247
300
|
"format": "date-time",
|
|
248
301
|
"description": "When the claim was observed."
|
|
249
302
|
},
|
|
250
|
-
"
|
|
303
|
+
"extractorVersion": {
|
|
251
304
|
"type": "string",
|
|
252
305
|
"minLength": 1,
|
|
253
|
-
"description": "
|
|
306
|
+
"description": "Identifier and version of the extractor that produced the claim (e.g. 'extractor@3'), so a reader can tell items from different extractor generations apart."
|
|
254
307
|
}
|
|
255
308
|
},
|
|
256
|
-
"description": "
|
|
309
|
+
"description": "Where the item's claim was observed."
|
|
257
310
|
},
|
|
258
311
|
"evidence": {
|
|
259
312
|
"type": "object",
|
|
@@ -262,12 +315,12 @@
|
|
|
262
315
|
"sourceKind": {
|
|
263
316
|
"type": "string",
|
|
264
317
|
"minLength": 1,
|
|
265
|
-
"description": "Kind of source the evidence came from (e.g. '
|
|
318
|
+
"description": "Kind of source the evidence came from (e.g. 'transcript', 'memory-file')."
|
|
266
319
|
},
|
|
267
320
|
"trust": {
|
|
268
321
|
"type": "string",
|
|
269
322
|
"minLength": 1,
|
|
270
|
-
"description": "Trust class of the source (e.g. '
|
|
323
|
+
"description": "Trust class of the source (e.g. 'owner', 'internal')."
|
|
271
324
|
},
|
|
272
325
|
"explicitness": {
|
|
273
326
|
"type": "string",
|
|
@@ -299,7 +352,7 @@
|
|
|
299
352
|
"minLength": 1
|
|
300
353
|
},
|
|
301
354
|
"default": [],
|
|
302
|
-
"description": "Resolved anchor labels in
|
|
355
|
+
"description": "Resolved anchor labels in their formatted form (e.g. 'global', 'project:acme', 'pr:acme/app#42', 'session:sess_…')."
|
|
303
356
|
},
|
|
304
357
|
"ageHours": {
|
|
305
358
|
"type": "number",
|