@vibe-engineer/artifacts 0.1.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/README.md +8 -0
- package/dist/chunk-XQLK7EDB.js +52 -0
- package/dist/index.js +389 -0
- package/dist/schema-registry.js +16 -0
- package/dist/types.d.ts +1396 -0
- package/package.json +61 -0
- package/schemas/agent-registry-entry.schema.json +845 -0
- package/schemas/build-result.schema.json +1100 -0
- package/schemas/context-file-header.schema.json +1056 -0
- package/schemas/evidence-packet.schema.json +687 -0
- package/schemas/implementation-plan.schema.json +1693 -0
- package/schemas/schematic-manifest.schema.json +810 -0
- package/schemas/ship-packet.schema.json +961 -0
- package/schemas/skill-manifest.schema.json +928 -0
- package/schemas/verification-delta.schema.json +676 -0
- package/schemas/work-brief.schema.json +644 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,1396 @@
|
|
|
1
|
+
// Generated from canonical JSON Schemas by scripts/generate-types.mjs. Do not hand edit.
|
|
2
|
+
|
|
3
|
+
export type ArtifactKind = "agent_registry_entry" | "build_result" | "context_file_header" | "evidence_packet" | "implementation_plan" | "schematic_manifest" | "ship_packet" | "skill_manifest" | "verification_delta" | "work_brief";
|
|
4
|
+
|
|
5
|
+
export interface ArtifactValidationError {
|
|
6
|
+
artifactPath: string | null;
|
|
7
|
+
artifactKind: ArtifactKind | null;
|
|
8
|
+
schemaId: string | null;
|
|
9
|
+
schemaVersion: string | null;
|
|
10
|
+
pointer: string;
|
|
11
|
+
code: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ArtifactValidationResult<T> =
|
|
16
|
+
| { ok: true; artifact: T; kind: ArtifactKind; schemaId: string; schemaVersion: string }
|
|
17
|
+
| { ok: false; errors: ArtifactValidationError[] };
|
|
18
|
+
|
|
19
|
+
export type AgentRegistryEntryV1 = {
|
|
20
|
+
"schemaVersion": "1.0.0";
|
|
21
|
+
"artifactKind": "agent_registry_entry";
|
|
22
|
+
"artifactId": string;
|
|
23
|
+
"title": string;
|
|
24
|
+
"createdAt": string;
|
|
25
|
+
"updatedAt": string;
|
|
26
|
+
"producer": {
|
|
27
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
28
|
+
"id": string;
|
|
29
|
+
"name": string;
|
|
30
|
+
"version"?: string;
|
|
31
|
+
"runId"?: string;
|
|
32
|
+
};
|
|
33
|
+
"status": "active" | "disabled" | "deprecated" | "experimental";
|
|
34
|
+
"ownership": {
|
|
35
|
+
"ownerLane": string;
|
|
36
|
+
"ownedWritePaths": Array<string>;
|
|
37
|
+
"readOnlyPaths": Array<string>;
|
|
38
|
+
"untouchablePaths": Array<string>;
|
|
39
|
+
"concurrencyNotes": string;
|
|
40
|
+
"handoffPolicy"?: string;
|
|
41
|
+
};
|
|
42
|
+
"links": Array<{
|
|
43
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
44
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
45
|
+
"artifactId": string;
|
|
46
|
+
"path": string;
|
|
47
|
+
"required": boolean;
|
|
48
|
+
"statusAtLinkTime": string;
|
|
49
|
+
}>;
|
|
50
|
+
"extensions": {
|
|
51
|
+
[key: string]: {
|
|
52
|
+
"schemaVersion": string;
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
"description"?: string;
|
|
57
|
+
"tags"?: Array<string>;
|
|
58
|
+
"sourceRefs"?: Array<{
|
|
59
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
60
|
+
"ref": string;
|
|
61
|
+
}>;
|
|
62
|
+
"approvedBy"?: {
|
|
63
|
+
"producer": {
|
|
64
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
65
|
+
"id": string;
|
|
66
|
+
"name": string;
|
|
67
|
+
"version"?: string;
|
|
68
|
+
"runId"?: string;
|
|
69
|
+
};
|
|
70
|
+
"approvedAt": string;
|
|
71
|
+
};
|
|
72
|
+
"supersessionReason"?: string;
|
|
73
|
+
"retention"?: {
|
|
74
|
+
"policy": string;
|
|
75
|
+
"reason": string;
|
|
76
|
+
};
|
|
77
|
+
"agentId": string;
|
|
78
|
+
"displayName": string;
|
|
79
|
+
"agentType": "orchestrator" | "specialist" | "validator" | "fixer" | "reviewer" | "meta" | "skill_adapter";
|
|
80
|
+
"purpose": string;
|
|
81
|
+
"triggers": Array<{
|
|
82
|
+
"event": string;
|
|
83
|
+
"description": string;
|
|
84
|
+
}>;
|
|
85
|
+
"inputSchemas": Array<{
|
|
86
|
+
"schemaId": string;
|
|
87
|
+
"schemaVersion": "1.0.0";
|
|
88
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
89
|
+
}>;
|
|
90
|
+
"outputSchemas": Array<{
|
|
91
|
+
"schemaId": string;
|
|
92
|
+
"schemaVersion": "1.0.0";
|
|
93
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
94
|
+
}>;
|
|
95
|
+
"allowedTools": Array<string>;
|
|
96
|
+
"forbiddenActions": Array<string>;
|
|
97
|
+
"contextRequirements": Array<string>;
|
|
98
|
+
"expectedArtifactPaths": Array<string>;
|
|
99
|
+
"safety": {
|
|
100
|
+
"parallelSafe": boolean;
|
|
101
|
+
"writesAllowed": boolean;
|
|
102
|
+
"requiresApprovalFor": Array<string>;
|
|
103
|
+
"maxIterations"?: number;
|
|
104
|
+
};
|
|
105
|
+
"validatorRefs": Array<{
|
|
106
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
107
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
108
|
+
"artifactId": string;
|
|
109
|
+
"path": string;
|
|
110
|
+
"required": boolean;
|
|
111
|
+
"statusAtLinkTime": string;
|
|
112
|
+
}>;
|
|
113
|
+
"fixerRefs": Array<{
|
|
114
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
115
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
116
|
+
"artifactId": string;
|
|
117
|
+
"path": string;
|
|
118
|
+
"required": boolean;
|
|
119
|
+
"statusAtLinkTime": string;
|
|
120
|
+
}>;
|
|
121
|
+
"maturity": "experimental" | "stable" | "core";
|
|
122
|
+
"owner": string;
|
|
123
|
+
"agentVersion": string;
|
|
124
|
+
"evals": Array<{
|
|
125
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
126
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
127
|
+
"artifactId": string;
|
|
128
|
+
"path": string;
|
|
129
|
+
"required": boolean;
|
|
130
|
+
"statusAtLinkTime": string;
|
|
131
|
+
}>;
|
|
132
|
+
"deprecation": {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
} | null;
|
|
135
|
+
"runtimeCostClass"?: string;
|
|
136
|
+
"examples"?: Array<string>;
|
|
137
|
+
"changelog"?: Array<string>;
|
|
138
|
+
"selectedHarnessAdapters"?: Array<string>;
|
|
139
|
+
"domainNeutralityReview"?: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export type BuildResultV1 = {
|
|
143
|
+
"schemaVersion": "1.0.0";
|
|
144
|
+
"artifactKind": "build_result";
|
|
145
|
+
"artifactId": string;
|
|
146
|
+
"title": string;
|
|
147
|
+
"createdAt": string;
|
|
148
|
+
"updatedAt": string;
|
|
149
|
+
"producer": {
|
|
150
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
151
|
+
"id": string;
|
|
152
|
+
"name": string;
|
|
153
|
+
"version"?: string;
|
|
154
|
+
"runId"?: string;
|
|
155
|
+
};
|
|
156
|
+
"status": "passed" | "failed" | "blocked" | "superseded";
|
|
157
|
+
"ownership": {
|
|
158
|
+
"ownerLane": string;
|
|
159
|
+
"ownedWritePaths": Array<string>;
|
|
160
|
+
"readOnlyPaths": Array<string>;
|
|
161
|
+
"untouchablePaths": Array<string>;
|
|
162
|
+
"concurrencyNotes": string;
|
|
163
|
+
"handoffPolicy"?: string;
|
|
164
|
+
};
|
|
165
|
+
"links": Array<{
|
|
166
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
167
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
168
|
+
"artifactId": string;
|
|
169
|
+
"path": string;
|
|
170
|
+
"required": boolean;
|
|
171
|
+
"statusAtLinkTime": string;
|
|
172
|
+
}>;
|
|
173
|
+
"extensions": {
|
|
174
|
+
[key: string]: {
|
|
175
|
+
"schemaVersion": string;
|
|
176
|
+
[key: string]: unknown;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
"description"?: string;
|
|
180
|
+
"tags"?: Array<string>;
|
|
181
|
+
"sourceRefs"?: Array<{
|
|
182
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
183
|
+
"ref": string;
|
|
184
|
+
}>;
|
|
185
|
+
"approvedBy"?: {
|
|
186
|
+
"producer": {
|
|
187
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
188
|
+
"id": string;
|
|
189
|
+
"name": string;
|
|
190
|
+
"version"?: string;
|
|
191
|
+
"runId"?: string;
|
|
192
|
+
};
|
|
193
|
+
"approvedAt": string;
|
|
194
|
+
};
|
|
195
|
+
"supersessionReason"?: string;
|
|
196
|
+
"retention"?: {
|
|
197
|
+
"policy": string;
|
|
198
|
+
"reason": string;
|
|
199
|
+
};
|
|
200
|
+
"implementationPlanRef": {
|
|
201
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
202
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
203
|
+
"artifactId": string;
|
|
204
|
+
"path": string;
|
|
205
|
+
"required": boolean;
|
|
206
|
+
"statusAtLinkTime": string;
|
|
207
|
+
};
|
|
208
|
+
"implementationSummary": string;
|
|
209
|
+
"changedFilesSummary": Array<{
|
|
210
|
+
"path": string;
|
|
211
|
+
"changeKind": "created" | "modified" | "deleted" | "moved" | "unchanged_validated";
|
|
212
|
+
"ownerLane": string;
|
|
213
|
+
"summary": string;
|
|
214
|
+
}>;
|
|
215
|
+
"schematicsUsed": Array<{
|
|
216
|
+
"schematicManifestRef": {
|
|
217
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
218
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
219
|
+
"artifactId": string;
|
|
220
|
+
"path": string;
|
|
221
|
+
"required": boolean;
|
|
222
|
+
"statusAtLinkTime": string;
|
|
223
|
+
};
|
|
224
|
+
"inputRef": {
|
|
225
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
226
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
227
|
+
"artifactId": string;
|
|
228
|
+
"path": string;
|
|
229
|
+
"required": boolean;
|
|
230
|
+
"statusAtLinkTime": string;
|
|
231
|
+
};
|
|
232
|
+
"dryRunStatus": "passed" | "failed" | "not_run";
|
|
233
|
+
"conflictStatus": "none" | "resolved" | "blocked";
|
|
234
|
+
"outputPaths": Array<string>;
|
|
235
|
+
}>;
|
|
236
|
+
"testsAndVerificationChanged": Array<{
|
|
237
|
+
"path": string;
|
|
238
|
+
"changeKind": "added" | "updated" | "reused";
|
|
239
|
+
"evidenceRef": {
|
|
240
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
241
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
242
|
+
"artifactId": string;
|
|
243
|
+
"path": string;
|
|
244
|
+
"required": boolean;
|
|
245
|
+
"statusAtLinkTime": string;
|
|
246
|
+
};
|
|
247
|
+
}>;
|
|
248
|
+
"verificationRuns": Array<{
|
|
249
|
+
"evidencePacketRef": {
|
|
250
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
251
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
252
|
+
"artifactId": string;
|
|
253
|
+
"path": string;
|
|
254
|
+
"required": boolean;
|
|
255
|
+
"statusAtLinkTime": string;
|
|
256
|
+
};
|
|
257
|
+
"summary": string;
|
|
258
|
+
"result": "pass" | "fail" | "blocked" | "advisory" | "skipped";
|
|
259
|
+
"blocking": boolean;
|
|
260
|
+
}>;
|
|
261
|
+
"warningsAndBlockers": Array<{
|
|
262
|
+
"severity": "critical" | "major-local" | "minor-local" | "advisory";
|
|
263
|
+
"blocking": boolean;
|
|
264
|
+
"owner": string;
|
|
265
|
+
"evidenceRef": {
|
|
266
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
267
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
268
|
+
"artifactId": string;
|
|
269
|
+
"path": string;
|
|
270
|
+
"required": boolean;
|
|
271
|
+
"statusAtLinkTime": string;
|
|
272
|
+
};
|
|
273
|
+
}>;
|
|
274
|
+
"contextDocsUpdates": Array<{
|
|
275
|
+
"ref": {
|
|
276
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
277
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
278
|
+
"artifactId": string;
|
|
279
|
+
"path": string;
|
|
280
|
+
"required": boolean;
|
|
281
|
+
"statusAtLinkTime": string;
|
|
282
|
+
};
|
|
283
|
+
"updateStatus": "updated" | "not_needed" | "blocked";
|
|
284
|
+
"summary": string;
|
|
285
|
+
}>;
|
|
286
|
+
"finalStatusReason": string;
|
|
287
|
+
"iterationHistory"?: Array<string>;
|
|
288
|
+
"fixAttempts"?: Array<string>;
|
|
289
|
+
"parallelWorkPackages"?: Array<string>;
|
|
290
|
+
"remainingFollowUps"?: Array<string>;
|
|
291
|
+
"advisoryFindings"?: Array<string>;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export type ContextFileHeaderV1 = {
|
|
295
|
+
"schemaVersion": "1.0.0";
|
|
296
|
+
"artifactKind": "context_file_header";
|
|
297
|
+
"artifactId": string;
|
|
298
|
+
"title": string;
|
|
299
|
+
"createdAt": string;
|
|
300
|
+
"updatedAt": string;
|
|
301
|
+
"producer": {
|
|
302
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
303
|
+
"id": string;
|
|
304
|
+
"name": string;
|
|
305
|
+
"version"?: string;
|
|
306
|
+
"runId"?: string;
|
|
307
|
+
};
|
|
308
|
+
"status": "current" | "stale" | "needs_review" | "deprecated";
|
|
309
|
+
"ownership": {
|
|
310
|
+
"ownerLane": string;
|
|
311
|
+
"ownedWritePaths": Array<string>;
|
|
312
|
+
"readOnlyPaths": Array<string>;
|
|
313
|
+
"untouchablePaths": Array<string>;
|
|
314
|
+
"concurrencyNotes": string;
|
|
315
|
+
"handoffPolicy"?: string;
|
|
316
|
+
};
|
|
317
|
+
"links": Array<{
|
|
318
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
319
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
320
|
+
"artifactId": string;
|
|
321
|
+
"path": string;
|
|
322
|
+
"required": boolean;
|
|
323
|
+
"statusAtLinkTime": string;
|
|
324
|
+
}>;
|
|
325
|
+
"extensions": {
|
|
326
|
+
[key: string]: {
|
|
327
|
+
"schemaVersion": string;
|
|
328
|
+
[key: string]: unknown;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
"description"?: string;
|
|
332
|
+
"tags"?: Array<string>;
|
|
333
|
+
"sourceRefs"?: Array<{
|
|
334
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
335
|
+
"ref": string;
|
|
336
|
+
}>;
|
|
337
|
+
"approvedBy"?: {
|
|
338
|
+
"producer": {
|
|
339
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
340
|
+
"id": string;
|
|
341
|
+
"name": string;
|
|
342
|
+
"version"?: string;
|
|
343
|
+
"runId"?: string;
|
|
344
|
+
};
|
|
345
|
+
"approvedAt": string;
|
|
346
|
+
};
|
|
347
|
+
"supersessionReason"?: string;
|
|
348
|
+
"retention"?: {
|
|
349
|
+
"policy": string;
|
|
350
|
+
"reason": string;
|
|
351
|
+
};
|
|
352
|
+
"contextId": string;
|
|
353
|
+
"scope": {
|
|
354
|
+
"kind": "repo" | "app" | "package" | "module" | "contract" | "adapter" | "test" | "standard" | "skill" | "schematic" | "decision" | "work_item" | "other";
|
|
355
|
+
"paths": Array<string>;
|
|
356
|
+
"description": string;
|
|
357
|
+
};
|
|
358
|
+
"owner": string;
|
|
359
|
+
"dependencies": Array<{
|
|
360
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
361
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
362
|
+
"artifactId": string;
|
|
363
|
+
"path": string;
|
|
364
|
+
"required": boolean;
|
|
365
|
+
"statusAtLinkTime": string;
|
|
366
|
+
}>;
|
|
367
|
+
"dependents": Array<{
|
|
368
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
369
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
370
|
+
"artifactId": string;
|
|
371
|
+
"path": string;
|
|
372
|
+
"required": boolean;
|
|
373
|
+
"statusAtLinkTime": string;
|
|
374
|
+
}>;
|
|
375
|
+
"relatedDecisions": Array<string>;
|
|
376
|
+
"relatedPlansArtifacts": Array<{
|
|
377
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
378
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
379
|
+
"artifactId": string;
|
|
380
|
+
"path": string;
|
|
381
|
+
"required": boolean;
|
|
382
|
+
"statusAtLinkTime": string;
|
|
383
|
+
}>;
|
|
384
|
+
"verificationMetadata": {
|
|
385
|
+
"lastValidationEvidenceRefs": Array<{
|
|
386
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
387
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
388
|
+
"artifactId": string;
|
|
389
|
+
"path": string;
|
|
390
|
+
"required": boolean;
|
|
391
|
+
"statusAtLinkTime": string;
|
|
392
|
+
}>;
|
|
393
|
+
"status": "valid" | "invalid" | "blocked" | "unknown";
|
|
394
|
+
};
|
|
395
|
+
"updateMetadata": {
|
|
396
|
+
"lastReviewedAt": string;
|
|
397
|
+
"lastUpdatedBy": {
|
|
398
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
399
|
+
"id": string;
|
|
400
|
+
"name": string;
|
|
401
|
+
"version"?: string;
|
|
402
|
+
"runId"?: string;
|
|
403
|
+
};
|
|
404
|
+
"updateReason": string;
|
|
405
|
+
};
|
|
406
|
+
"driftMetadata": {
|
|
407
|
+
"driftStatus": "unknown" | "clean" | "suspected" | "confirmed";
|
|
408
|
+
"lastDriftCheckAt": string;
|
|
409
|
+
"evidenceRefs": Array<{
|
|
410
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
411
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
412
|
+
"artifactId": string;
|
|
413
|
+
"path": string;
|
|
414
|
+
"required": boolean;
|
|
415
|
+
"statusAtLinkTime": string;
|
|
416
|
+
}>;
|
|
417
|
+
};
|
|
418
|
+
"retrievalHints"?: Array<string>;
|
|
419
|
+
"summary"?: string;
|
|
420
|
+
"standardsRefs"?: Array<{
|
|
421
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
422
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
423
|
+
"artifactId": string;
|
|
424
|
+
"path": string;
|
|
425
|
+
"required": boolean;
|
|
426
|
+
"statusAtLinkTime": string;
|
|
427
|
+
}>;
|
|
428
|
+
"ttl"?: string;
|
|
429
|
+
"replacementRef"?: {
|
|
430
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
431
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
432
|
+
"artifactId": string;
|
|
433
|
+
"path": string;
|
|
434
|
+
"required": boolean;
|
|
435
|
+
"statusAtLinkTime": string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
export type EvidencePacketV1 = {
|
|
440
|
+
"schemaVersion": "1.0.0";
|
|
441
|
+
"artifactKind": "evidence_packet";
|
|
442
|
+
"artifactId": string;
|
|
443
|
+
"title": string;
|
|
444
|
+
"createdAt": string;
|
|
445
|
+
"updatedAt": string;
|
|
446
|
+
"producer": {
|
|
447
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
448
|
+
"id": string;
|
|
449
|
+
"name": string;
|
|
450
|
+
"version"?: string;
|
|
451
|
+
"runId"?: string;
|
|
452
|
+
};
|
|
453
|
+
"status": "passed" | "failed" | "blocked" | "advisory_warning" | "not_run" | "superseded";
|
|
454
|
+
"ownership": {
|
|
455
|
+
"ownerLane": string;
|
|
456
|
+
"ownedWritePaths": Array<string>;
|
|
457
|
+
"readOnlyPaths": Array<string>;
|
|
458
|
+
"untouchablePaths": Array<string>;
|
|
459
|
+
"concurrencyNotes": string;
|
|
460
|
+
"handoffPolicy"?: string;
|
|
461
|
+
};
|
|
462
|
+
"links": Array<{
|
|
463
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
464
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
465
|
+
"artifactId": string;
|
|
466
|
+
"path": string;
|
|
467
|
+
"required": boolean;
|
|
468
|
+
"statusAtLinkTime": string;
|
|
469
|
+
}>;
|
|
470
|
+
"extensions": {
|
|
471
|
+
[key: string]: {
|
|
472
|
+
"schemaVersion": string;
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
"description"?: string;
|
|
477
|
+
"tags"?: Array<string>;
|
|
478
|
+
"sourceRefs"?: Array<{
|
|
479
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
480
|
+
"ref": string;
|
|
481
|
+
}>;
|
|
482
|
+
"approvedBy"?: {
|
|
483
|
+
"producer": {
|
|
484
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
485
|
+
"id": string;
|
|
486
|
+
"name": string;
|
|
487
|
+
"version"?: string;
|
|
488
|
+
"runId"?: string;
|
|
489
|
+
};
|
|
490
|
+
"approvedAt": string;
|
|
491
|
+
};
|
|
492
|
+
"supersessionReason"?: string;
|
|
493
|
+
"retention"?: {
|
|
494
|
+
"policy": string;
|
|
495
|
+
"reason": string;
|
|
496
|
+
};
|
|
497
|
+
"evidenceClass": "deterministic" | "advisory" | "informational";
|
|
498
|
+
"layer": "safety_hooks" | "typecheck" | "lint_format" | "mechanical_gate" | "unit" | "integration" | "contract_adapter" | "e2e" | "ui_verification" | "ai_eval" | "build_package" | "context_drift" | "observability" | "advisory_review" | "final_dod" | "schema_validation";
|
|
499
|
+
"subjectRefs": Array<{
|
|
500
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
501
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
502
|
+
"artifactId": string;
|
|
503
|
+
"path": string;
|
|
504
|
+
"required": boolean;
|
|
505
|
+
"statusAtLinkTime": string;
|
|
506
|
+
}>;
|
|
507
|
+
"commandOrTool": {
|
|
508
|
+
"kind": "command" | "tool" | "validator" | "agent" | "manual_operator";
|
|
509
|
+
"name": string;
|
|
510
|
+
"argv"?: Array<string>;
|
|
511
|
+
"version"?: string;
|
|
512
|
+
"workingDirectory": string;
|
|
513
|
+
"environmentSummary": string;
|
|
514
|
+
};
|
|
515
|
+
"startedAt": string;
|
|
516
|
+
"endedAt": string;
|
|
517
|
+
"exitStatus": {
|
|
518
|
+
"kind": "exit_code" | "tool_status" | "not_applicable";
|
|
519
|
+
"code"?: number;
|
|
520
|
+
"status"?: string;
|
|
521
|
+
};
|
|
522
|
+
"result": "pass" | "fail" | "blocked" | "advisory" | "skipped";
|
|
523
|
+
"blocking": boolean;
|
|
524
|
+
"artifacts": Array<string>;
|
|
525
|
+
"warnings": Array<string>;
|
|
526
|
+
"failureDetails"?: {
|
|
527
|
+
"code": string;
|
|
528
|
+
"message": string;
|
|
529
|
+
"classification": "deterministic_product_or_code_failure" | "schema_or_contract_failure" | "safety_or_security_policy_failure" | "mechanical_gate_failure" | "test_assertion_failure" | "test_bug" | "environment_issue" | "timing_or_flaky_suspicion" | "external_dependency_drift" | "advisory_finding" | "missing_evidence" | "missing_runner_or_prerequisite" | "skipped_required_delta_category" | "blocked_prerequisite" | "runner_internal_error" | "classification_unknown";
|
|
530
|
+
};
|
|
531
|
+
"stdoutRef"?: string;
|
|
532
|
+
"stderrRef"?: string;
|
|
533
|
+
"logsRef"?: string;
|
|
534
|
+
"screenshots"?: Array<string>;
|
|
535
|
+
"traces"?: Array<string>;
|
|
536
|
+
"metrics"?: Array<string>;
|
|
537
|
+
"rerunOf"?: string;
|
|
538
|
+
"normalizationNotes"?: string;
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
export type ImplementationPlanV1 = {
|
|
542
|
+
"schemaVersion": "1.0.0";
|
|
543
|
+
"artifactKind": "implementation_plan";
|
|
544
|
+
"artifactId": string;
|
|
545
|
+
"title": string;
|
|
546
|
+
"createdAt": string;
|
|
547
|
+
"updatedAt": string;
|
|
548
|
+
"producer": {
|
|
549
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
550
|
+
"id": string;
|
|
551
|
+
"name": string;
|
|
552
|
+
"version"?: string;
|
|
553
|
+
"runId"?: string;
|
|
554
|
+
};
|
|
555
|
+
"status": "draft" | "approved" | "blocked" | "superseded";
|
|
556
|
+
"ownership": {
|
|
557
|
+
"ownerLane": string;
|
|
558
|
+
"ownedWritePaths": Array<string>;
|
|
559
|
+
"readOnlyPaths": Array<string>;
|
|
560
|
+
"untouchablePaths": Array<string>;
|
|
561
|
+
"concurrencyNotes": string;
|
|
562
|
+
"handoffPolicy"?: string;
|
|
563
|
+
};
|
|
564
|
+
"links": Array<{
|
|
565
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
566
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
567
|
+
"artifactId": string;
|
|
568
|
+
"path": string;
|
|
569
|
+
"required": boolean;
|
|
570
|
+
"statusAtLinkTime": string;
|
|
571
|
+
}>;
|
|
572
|
+
"extensions": {
|
|
573
|
+
[key: string]: {
|
|
574
|
+
"schemaVersion": string;
|
|
575
|
+
[key: string]: unknown;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
"description"?: string;
|
|
579
|
+
"tags"?: Array<string>;
|
|
580
|
+
"sourceRefs"?: Array<{
|
|
581
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
582
|
+
"ref": string;
|
|
583
|
+
}>;
|
|
584
|
+
"approvedBy"?: {
|
|
585
|
+
"producer": {
|
|
586
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
587
|
+
"id": string;
|
|
588
|
+
"name": string;
|
|
589
|
+
"version"?: string;
|
|
590
|
+
"runId"?: string;
|
|
591
|
+
};
|
|
592
|
+
"approvedAt": string;
|
|
593
|
+
};
|
|
594
|
+
"supersessionReason"?: string;
|
|
595
|
+
"retention"?: {
|
|
596
|
+
"policy": string;
|
|
597
|
+
"reason": string;
|
|
598
|
+
};
|
|
599
|
+
"workBriefRef": {
|
|
600
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
601
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
602
|
+
"artifactId": string;
|
|
603
|
+
"path": string;
|
|
604
|
+
"required": boolean;
|
|
605
|
+
"statusAtLinkTime": string;
|
|
606
|
+
};
|
|
607
|
+
"objective": string;
|
|
608
|
+
"scope": Array<string>;
|
|
609
|
+
"nonScope": Array<string>;
|
|
610
|
+
"contextClosure": Array<{
|
|
611
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
612
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
613
|
+
"artifactId": string;
|
|
614
|
+
"path": string;
|
|
615
|
+
"required": boolean;
|
|
616
|
+
"statusAtLinkTime": string;
|
|
617
|
+
}>;
|
|
618
|
+
"affectedAreas": Array<{
|
|
619
|
+
"kind": "app" | "package" | "module" | "contract" | "adapter" | "test" | "docs" | "context" | "schematic" | "skill" | "other";
|
|
620
|
+
"path": string;
|
|
621
|
+
"reason": string;
|
|
622
|
+
}>;
|
|
623
|
+
"schematics": Array<{
|
|
624
|
+
"schematicRef": {
|
|
625
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
626
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
627
|
+
"artifactId": string;
|
|
628
|
+
"path": string;
|
|
629
|
+
"required": boolean;
|
|
630
|
+
"statusAtLinkTime": string;
|
|
631
|
+
};
|
|
632
|
+
"plannedInputsRef": {
|
|
633
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
634
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
635
|
+
"artifactId": string;
|
|
636
|
+
"path": string;
|
|
637
|
+
"required": boolean;
|
|
638
|
+
"statusAtLinkTime": string;
|
|
639
|
+
};
|
|
640
|
+
"purpose": string;
|
|
641
|
+
}>;
|
|
642
|
+
"implementationSteps": Array<{
|
|
643
|
+
"id": string;
|
|
644
|
+
"description": string;
|
|
645
|
+
"dependsOn"?: Array<string>;
|
|
646
|
+
"expectedTouchedAreas": Array<{
|
|
647
|
+
"kind": "app" | "package" | "module" | "contract" | "adapter" | "test" | "docs" | "context" | "schematic" | "skill" | "other";
|
|
648
|
+
"path": string;
|
|
649
|
+
"reason": string;
|
|
650
|
+
}>;
|
|
651
|
+
"acceptanceLinks": Array<string>;
|
|
652
|
+
}>;
|
|
653
|
+
"acceptanceCriteria": Array<{
|
|
654
|
+
"id": string;
|
|
655
|
+
"description": string;
|
|
656
|
+
}>;
|
|
657
|
+
"definitionOfDone": Array<{
|
|
658
|
+
"id": string;
|
|
659
|
+
"description": string;
|
|
660
|
+
"blocking": boolean;
|
|
661
|
+
}>;
|
|
662
|
+
"risks": Array<{
|
|
663
|
+
"id": string;
|
|
664
|
+
"description": string;
|
|
665
|
+
"sensitiveArea": string;
|
|
666
|
+
"mitigation": string;
|
|
667
|
+
}>;
|
|
668
|
+
"openBlockers": Array<{
|
|
669
|
+
"id": string;
|
|
670
|
+
"description": string;
|
|
671
|
+
"blocking": boolean;
|
|
672
|
+
"owner": string;
|
|
673
|
+
}>;
|
|
674
|
+
"verificationDelta": {
|
|
675
|
+
"schemaVersion": "1.0.0";
|
|
676
|
+
"artifactKind": "verification_delta";
|
|
677
|
+
"artifactId": string;
|
|
678
|
+
"title": string;
|
|
679
|
+
"createdAt": string;
|
|
680
|
+
"updatedAt": string;
|
|
681
|
+
"producer": {
|
|
682
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
683
|
+
"id": string;
|
|
684
|
+
"name": string;
|
|
685
|
+
"version"?: string;
|
|
686
|
+
"runId"?: string;
|
|
687
|
+
};
|
|
688
|
+
"status": "complete" | "blocked" | "superseded";
|
|
689
|
+
"ownership": {
|
|
690
|
+
"ownerLane": string;
|
|
691
|
+
"ownedWritePaths": Array<string>;
|
|
692
|
+
"readOnlyPaths": Array<string>;
|
|
693
|
+
"untouchablePaths": Array<string>;
|
|
694
|
+
"concurrencyNotes": string;
|
|
695
|
+
"handoffPolicy"?: string;
|
|
696
|
+
};
|
|
697
|
+
"links": Array<{
|
|
698
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
699
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
700
|
+
"artifactId": string;
|
|
701
|
+
"path": string;
|
|
702
|
+
"required": boolean;
|
|
703
|
+
"statusAtLinkTime": string;
|
|
704
|
+
}>;
|
|
705
|
+
"extensions": {
|
|
706
|
+
[key: string]: {
|
|
707
|
+
"schemaVersion": string;
|
|
708
|
+
[key: string]: unknown;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
"description"?: string;
|
|
712
|
+
"tags"?: Array<string>;
|
|
713
|
+
"sourceRefs"?: Array<{
|
|
714
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
715
|
+
"ref": string;
|
|
716
|
+
}>;
|
|
717
|
+
"approvedBy"?: {
|
|
718
|
+
"producer": {
|
|
719
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
720
|
+
"id": string;
|
|
721
|
+
"name": string;
|
|
722
|
+
"version"?: string;
|
|
723
|
+
"runId"?: string;
|
|
724
|
+
};
|
|
725
|
+
"approvedAt": string;
|
|
726
|
+
};
|
|
727
|
+
"supersessionReason"?: string;
|
|
728
|
+
"retention"?: {
|
|
729
|
+
"policy": string;
|
|
730
|
+
"reason": string;
|
|
731
|
+
};
|
|
732
|
+
"summary": string;
|
|
733
|
+
"implementationPlanRef": {
|
|
734
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
735
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
736
|
+
"artifactId": string;
|
|
737
|
+
"path": string;
|
|
738
|
+
"required": boolean;
|
|
739
|
+
"statusAtLinkTime": string;
|
|
740
|
+
};
|
|
741
|
+
"sensitiveAreas": Array<string>;
|
|
742
|
+
"catalogVersion": string;
|
|
743
|
+
"requiredItems": Array<{
|
|
744
|
+
"id": string;
|
|
745
|
+
"layer": "safety_hooks" | "typecheck" | "lint_format" | "mechanical_gate" | "unit" | "integration" | "contract_adapter" | "e2e" | "ui_verification" | "ai_eval" | "build_package" | "context_drift" | "observability" | "advisory_review" | "final_dod" | "schema_validation";
|
|
746
|
+
"action": "add" | "update" | "reuse" | "not_applicable" | "blocked";
|
|
747
|
+
"rationale": string;
|
|
748
|
+
"expectedArtifacts": Array<string>;
|
|
749
|
+
"blocking": boolean;
|
|
750
|
+
"validationOwner": string;
|
|
751
|
+
"fixerOwner": string;
|
|
752
|
+
"evidenceRequired": Array<{
|
|
753
|
+
"kind": "evidence_packet" | "test_report" | "command_log" | "screenshot" | "trace" | "metric" | "context_header";
|
|
754
|
+
"description": string;
|
|
755
|
+
"blocking": boolean;
|
|
756
|
+
}>;
|
|
757
|
+
"blockedBy"?: string;
|
|
758
|
+
"unblockCondition"?: string;
|
|
759
|
+
}>;
|
|
760
|
+
"mechanicalGateImpacts"?: Array<string>;
|
|
761
|
+
"advisoryReviewItems"?: Array<string>;
|
|
762
|
+
"rerunHints"?: Array<string>;
|
|
763
|
+
"riskLinks"?: Array<{
|
|
764
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
765
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
766
|
+
"artifactId": string;
|
|
767
|
+
"path": string;
|
|
768
|
+
"required": boolean;
|
|
769
|
+
"statusAtLinkTime": string;
|
|
770
|
+
}>;
|
|
771
|
+
};
|
|
772
|
+
"workDecompositionHints"?: Array<string>;
|
|
773
|
+
"parallelismHints"?: Array<string>;
|
|
774
|
+
"docsContextUpdatesExpected"?: Array<string>;
|
|
775
|
+
"approval"?: {
|
|
776
|
+
"approvedBy": {
|
|
777
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
778
|
+
"id": string;
|
|
779
|
+
"name": string;
|
|
780
|
+
"version"?: string;
|
|
781
|
+
"runId"?: string;
|
|
782
|
+
};
|
|
783
|
+
"approvedAt": string;
|
|
784
|
+
"notes": string;
|
|
785
|
+
};
|
|
786
|
+
"reviewNotes"?: Array<string>;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
export type SchematicManifestV1 = {
|
|
790
|
+
"schemaVersion": "1.0.0";
|
|
791
|
+
"artifactKind": "schematic_manifest";
|
|
792
|
+
"artifactId": string;
|
|
793
|
+
"title": string;
|
|
794
|
+
"createdAt": string;
|
|
795
|
+
"updatedAt": string;
|
|
796
|
+
"producer": {
|
|
797
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
798
|
+
"id": string;
|
|
799
|
+
"name": string;
|
|
800
|
+
"version"?: string;
|
|
801
|
+
"runId"?: string;
|
|
802
|
+
};
|
|
803
|
+
"status": "active" | "deprecated" | "experimental" | "disabled";
|
|
804
|
+
"ownership": {
|
|
805
|
+
"ownerLane": string;
|
|
806
|
+
"ownedWritePaths": Array<string>;
|
|
807
|
+
"readOnlyPaths": Array<string>;
|
|
808
|
+
"untouchablePaths": Array<string>;
|
|
809
|
+
"concurrencyNotes": string;
|
|
810
|
+
"handoffPolicy"?: string;
|
|
811
|
+
};
|
|
812
|
+
"links": Array<{
|
|
813
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
814
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
815
|
+
"artifactId": string;
|
|
816
|
+
"path": string;
|
|
817
|
+
"required": boolean;
|
|
818
|
+
"statusAtLinkTime": string;
|
|
819
|
+
}>;
|
|
820
|
+
"extensions": {
|
|
821
|
+
[key: string]: {
|
|
822
|
+
"schemaVersion": string;
|
|
823
|
+
[key: string]: unknown;
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
"description"?: string;
|
|
827
|
+
"tags"?: Array<string>;
|
|
828
|
+
"sourceRefs"?: Array<{
|
|
829
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
830
|
+
"ref": string;
|
|
831
|
+
}>;
|
|
832
|
+
"approvedBy"?: {
|
|
833
|
+
"producer": {
|
|
834
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
835
|
+
"id": string;
|
|
836
|
+
"name": string;
|
|
837
|
+
"version"?: string;
|
|
838
|
+
"runId"?: string;
|
|
839
|
+
};
|
|
840
|
+
"approvedAt": string;
|
|
841
|
+
};
|
|
842
|
+
"supersessionReason"?: string;
|
|
843
|
+
"retention"?: {
|
|
844
|
+
"policy": string;
|
|
845
|
+
"reason": string;
|
|
846
|
+
};
|
|
847
|
+
"schematicId": string;
|
|
848
|
+
"schematicVersion": string;
|
|
849
|
+
"purpose": string;
|
|
850
|
+
"inputs": Array<{
|
|
851
|
+
"name": string;
|
|
852
|
+
"schema": {
|
|
853
|
+
"schemaId": string;
|
|
854
|
+
"schemaVersion": "1.0.0";
|
|
855
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
856
|
+
};
|
|
857
|
+
"required": boolean;
|
|
858
|
+
"defaultsPolicy": "no_default" | "domain_neutral_default" | "user_supplied_only";
|
|
859
|
+
"domainNeutralityClassification": "core_generic" | "sample_demo" | "project_extension";
|
|
860
|
+
}>;
|
|
861
|
+
"generatedPaths": Array<{
|
|
862
|
+
"pathTemplate": string;
|
|
863
|
+
"ownership": string;
|
|
864
|
+
"conflictPolicy": "fail" | "merge_with_typed_strategy" | "skip_if_identical";
|
|
865
|
+
"classification": "generated" | "vendor" | "operator_owned";
|
|
866
|
+
}>;
|
|
867
|
+
"idempotency": {
|
|
868
|
+
"strategy": string;
|
|
869
|
+
"stableIdentifiers": Array<string>;
|
|
870
|
+
"rerunBehavior": string;
|
|
871
|
+
};
|
|
872
|
+
"conflictBehavior": "fail" | "merge_with_typed_strategy" | "skip_if_identical";
|
|
873
|
+
"dryRunBehavior": {
|
|
874
|
+
"reportsPlannedChanges": boolean;
|
|
875
|
+
"writesFiles": false;
|
|
876
|
+
};
|
|
877
|
+
"requiredTests": Array<{
|
|
878
|
+
"evidencePacketRef": {
|
|
879
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
880
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
881
|
+
"artifactId": string;
|
|
882
|
+
"path": string;
|
|
883
|
+
"required": boolean;
|
|
884
|
+
"statusAtLinkTime": string;
|
|
885
|
+
};
|
|
886
|
+
"summary": string;
|
|
887
|
+
"result": "pass" | "fail" | "blocked" | "advisory" | "skipped";
|
|
888
|
+
"blocking": boolean;
|
|
889
|
+
}>;
|
|
890
|
+
"contextUpdates": Array<{
|
|
891
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
892
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
893
|
+
"artifactId": string;
|
|
894
|
+
"path": string;
|
|
895
|
+
"required": boolean;
|
|
896
|
+
"statusAtLinkTime": string;
|
|
897
|
+
}>;
|
|
898
|
+
"domainNeutrality": {
|
|
899
|
+
"coreSurface": boolean;
|
|
900
|
+
"allowedGenericTerms": Array<string>;
|
|
901
|
+
"extensionBoundaries": Array<string>;
|
|
902
|
+
};
|
|
903
|
+
"owner": string;
|
|
904
|
+
"examples"?: Array<string>;
|
|
905
|
+
"fixtures"?: Array<string>;
|
|
906
|
+
"deprecation"?: {
|
|
907
|
+
[key: string]: unknown;
|
|
908
|
+
} | null;
|
|
909
|
+
"changelog"?: Array<string>;
|
|
910
|
+
"adapterRequirements"?: Array<string>;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
export type ShipPacketV1 = {
|
|
914
|
+
"schemaVersion": "1.0.0";
|
|
915
|
+
"artifactKind": "ship_packet";
|
|
916
|
+
"artifactId": string;
|
|
917
|
+
"title": string;
|
|
918
|
+
"createdAt": string;
|
|
919
|
+
"updatedAt": string;
|
|
920
|
+
"producer": {
|
|
921
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
922
|
+
"id": string;
|
|
923
|
+
"name": string;
|
|
924
|
+
"version"?: string;
|
|
925
|
+
"runId"?: string;
|
|
926
|
+
};
|
|
927
|
+
"status": "ready_for_review" | "blocked" | "superseded" | "approved_for_operator_action";
|
|
928
|
+
"ownership": {
|
|
929
|
+
"ownerLane": string;
|
|
930
|
+
"ownedWritePaths": Array<string>;
|
|
931
|
+
"readOnlyPaths": Array<string>;
|
|
932
|
+
"untouchablePaths": Array<string>;
|
|
933
|
+
"concurrencyNotes": string;
|
|
934
|
+
"handoffPolicy"?: string;
|
|
935
|
+
};
|
|
936
|
+
"links": Array<{
|
|
937
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
938
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
939
|
+
"artifactId": string;
|
|
940
|
+
"path": string;
|
|
941
|
+
"required": boolean;
|
|
942
|
+
"statusAtLinkTime": string;
|
|
943
|
+
}>;
|
|
944
|
+
"extensions": {
|
|
945
|
+
[key: string]: {
|
|
946
|
+
"schemaVersion": string;
|
|
947
|
+
[key: string]: unknown;
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
"description"?: string;
|
|
951
|
+
"tags"?: Array<string>;
|
|
952
|
+
"sourceRefs"?: Array<{
|
|
953
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
954
|
+
"ref": string;
|
|
955
|
+
}>;
|
|
956
|
+
"approvedBy"?: {
|
|
957
|
+
"producer": {
|
|
958
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
959
|
+
"id": string;
|
|
960
|
+
"name": string;
|
|
961
|
+
"version"?: string;
|
|
962
|
+
"runId"?: string;
|
|
963
|
+
};
|
|
964
|
+
"approvedAt": string;
|
|
965
|
+
};
|
|
966
|
+
"supersessionReason"?: string;
|
|
967
|
+
"retention"?: {
|
|
968
|
+
"policy": string;
|
|
969
|
+
"reason": string;
|
|
970
|
+
};
|
|
971
|
+
"buildResultRef": {
|
|
972
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
973
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
974
|
+
"artifactId": string;
|
|
975
|
+
"path": string;
|
|
976
|
+
"required": boolean;
|
|
977
|
+
"statusAtLinkTime": string;
|
|
978
|
+
};
|
|
979
|
+
"finalVerification": Array<{
|
|
980
|
+
"evidencePacketRef": {
|
|
981
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
982
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
983
|
+
"artifactId": string;
|
|
984
|
+
"path": string;
|
|
985
|
+
"required": boolean;
|
|
986
|
+
"statusAtLinkTime": string;
|
|
987
|
+
};
|
|
988
|
+
"summary": string;
|
|
989
|
+
"result": "pass" | "fail" | "blocked" | "advisory" | "skipped";
|
|
990
|
+
"blocking": boolean;
|
|
991
|
+
}>;
|
|
992
|
+
"contextPreservation": {
|
|
993
|
+
"contextHeaderRefs": Array<{
|
|
994
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
995
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
996
|
+
"artifactId": string;
|
|
997
|
+
"path": string;
|
|
998
|
+
"required": boolean;
|
|
999
|
+
"statusAtLinkTime": string;
|
|
1000
|
+
}>;
|
|
1001
|
+
"driftCheckEvidenceRefs": Array<{
|
|
1002
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1003
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1004
|
+
"artifactId": string;
|
|
1005
|
+
"path": string;
|
|
1006
|
+
"required": boolean;
|
|
1007
|
+
"statusAtLinkTime": string;
|
|
1008
|
+
}>;
|
|
1009
|
+
"updateStatus": "updated" | "clean" | "blocked";
|
|
1010
|
+
};
|
|
1011
|
+
"commitPreparation": {
|
|
1012
|
+
"suggestedCommitMessage": string;
|
|
1013
|
+
"commitBody"?: string;
|
|
1014
|
+
"commitPerformedByAgent": false;
|
|
1015
|
+
};
|
|
1016
|
+
"prPreparation": {
|
|
1017
|
+
"suggestedTitle": string;
|
|
1018
|
+
"suggestedBody": string;
|
|
1019
|
+
"reviewerNotes": Array<string>;
|
|
1020
|
+
"prOpenedByAgent": false;
|
|
1021
|
+
};
|
|
1022
|
+
"releaseOrMigrationNotes": Array<{
|
|
1023
|
+
"note": string;
|
|
1024
|
+
"rationale": string;
|
|
1025
|
+
}>;
|
|
1026
|
+
"followUps": Array<{
|
|
1027
|
+
"owner": string;
|
|
1028
|
+
"description": string;
|
|
1029
|
+
"blocking": boolean;
|
|
1030
|
+
}>;
|
|
1031
|
+
"noPushWithoutApproval": true;
|
|
1032
|
+
"operatorApprovalRef"?: {
|
|
1033
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1034
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1035
|
+
"artifactId": string;
|
|
1036
|
+
"path": string;
|
|
1037
|
+
"required": boolean;
|
|
1038
|
+
"statusAtLinkTime": string;
|
|
1039
|
+
};
|
|
1040
|
+
"rollbackNotes"?: string;
|
|
1041
|
+
"knownAdvisoryWarnings"?: Array<string>;
|
|
1042
|
+
"artifactBundleRefs"?: Array<{
|
|
1043
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1044
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1045
|
+
"artifactId": string;
|
|
1046
|
+
"path": string;
|
|
1047
|
+
"required": boolean;
|
|
1048
|
+
"statusAtLinkTime": string;
|
|
1049
|
+
}>;
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
export type SkillManifestV1 = {
|
|
1053
|
+
"schemaVersion": "1.0.0";
|
|
1054
|
+
"artifactKind": "skill_manifest";
|
|
1055
|
+
"artifactId": string;
|
|
1056
|
+
"title": string;
|
|
1057
|
+
"createdAt": string;
|
|
1058
|
+
"updatedAt": string;
|
|
1059
|
+
"producer": {
|
|
1060
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1061
|
+
"id": string;
|
|
1062
|
+
"name": string;
|
|
1063
|
+
"version"?: string;
|
|
1064
|
+
"runId"?: string;
|
|
1065
|
+
};
|
|
1066
|
+
"status": "active" | "deprecated" | "experimental" | "disabled";
|
|
1067
|
+
"ownership": {
|
|
1068
|
+
"ownerLane": string;
|
|
1069
|
+
"ownedWritePaths": Array<string>;
|
|
1070
|
+
"readOnlyPaths": Array<string>;
|
|
1071
|
+
"untouchablePaths": Array<string>;
|
|
1072
|
+
"concurrencyNotes": string;
|
|
1073
|
+
"handoffPolicy"?: string;
|
|
1074
|
+
};
|
|
1075
|
+
"links": Array<{
|
|
1076
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1077
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1078
|
+
"artifactId": string;
|
|
1079
|
+
"path": string;
|
|
1080
|
+
"required": boolean;
|
|
1081
|
+
"statusAtLinkTime": string;
|
|
1082
|
+
}>;
|
|
1083
|
+
"extensions": {
|
|
1084
|
+
[key: string]: {
|
|
1085
|
+
"schemaVersion": string;
|
|
1086
|
+
[key: string]: unknown;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
"description"?: string;
|
|
1090
|
+
"tags"?: Array<string>;
|
|
1091
|
+
"sourceRefs"?: Array<{
|
|
1092
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
1093
|
+
"ref": string;
|
|
1094
|
+
}>;
|
|
1095
|
+
"approvedBy"?: {
|
|
1096
|
+
"producer": {
|
|
1097
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1098
|
+
"id": string;
|
|
1099
|
+
"name": string;
|
|
1100
|
+
"version"?: string;
|
|
1101
|
+
"runId"?: string;
|
|
1102
|
+
};
|
|
1103
|
+
"approvedAt": string;
|
|
1104
|
+
};
|
|
1105
|
+
"supersessionReason"?: string;
|
|
1106
|
+
"retention"?: {
|
|
1107
|
+
"policy": string;
|
|
1108
|
+
"reason": string;
|
|
1109
|
+
};
|
|
1110
|
+
"skillId": "brainstorm" | "grill-me" | "task" | "plan" | "build" | "ship";
|
|
1111
|
+
"skillVersion": string;
|
|
1112
|
+
"purpose": string;
|
|
1113
|
+
"inputArtifactSchemas": Array<{
|
|
1114
|
+
"schemaId": string;
|
|
1115
|
+
"schemaVersion": "1.0.0";
|
|
1116
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1117
|
+
}>;
|
|
1118
|
+
"outputArtifactSchemas": Array<{
|
|
1119
|
+
"schemaId": string;
|
|
1120
|
+
"schemaVersion": "1.0.0";
|
|
1121
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1122
|
+
}>;
|
|
1123
|
+
"allowedActions": Array<string>;
|
|
1124
|
+
"forbiddenActions": Array<string>;
|
|
1125
|
+
"clarifyingQuestionPolicy": {
|
|
1126
|
+
"mayAsk": boolean;
|
|
1127
|
+
"conditions": Array<string>;
|
|
1128
|
+
};
|
|
1129
|
+
"blockingPolicy": {
|
|
1130
|
+
"blockWhen": Array<string>;
|
|
1131
|
+
"evidenceRequired": boolean;
|
|
1132
|
+
};
|
|
1133
|
+
"subagentRelationships": Array<{
|
|
1134
|
+
"agentRef": {
|
|
1135
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1136
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1137
|
+
"artifactId": string;
|
|
1138
|
+
"path": string;
|
|
1139
|
+
"required": boolean;
|
|
1140
|
+
"statusAtLinkTime": string;
|
|
1141
|
+
};
|
|
1142
|
+
"role": "orchestrator" | "specialist" | "validator" | "fixer" | "reviewer" | "meta";
|
|
1143
|
+
}>;
|
|
1144
|
+
"validatorFixerPolicy": {
|
|
1145
|
+
"maxIterations": number;
|
|
1146
|
+
"independentValidationRequired": boolean;
|
|
1147
|
+
};
|
|
1148
|
+
"storageHandoffContract": {
|
|
1149
|
+
"artifactRefs": Array<{
|
|
1150
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1151
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1152
|
+
"artifactId": string;
|
|
1153
|
+
"path": string;
|
|
1154
|
+
"required": boolean;
|
|
1155
|
+
"statusAtLinkTime": string;
|
|
1156
|
+
}>;
|
|
1157
|
+
"delegatedWritePaths": Array<string>;
|
|
1158
|
+
"nextSkillHandoffConstraints": Array<string>;
|
|
1159
|
+
};
|
|
1160
|
+
"selectedHarnessIntegrationHooks": Array<{
|
|
1161
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1162
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1163
|
+
"artifactId": string;
|
|
1164
|
+
"path": string;
|
|
1165
|
+
"required": boolean;
|
|
1166
|
+
"statusAtLinkTime": string;
|
|
1167
|
+
}>;
|
|
1168
|
+
"owner": string;
|
|
1169
|
+
"examples"?: Array<string>;
|
|
1170
|
+
"evals"?: Array<{
|
|
1171
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1172
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1173
|
+
"artifactId": string;
|
|
1174
|
+
"path": string;
|
|
1175
|
+
"required": boolean;
|
|
1176
|
+
"statusAtLinkTime": string;
|
|
1177
|
+
}>;
|
|
1178
|
+
"changelog"?: Array<string>;
|
|
1179
|
+
"deprecation"?: {
|
|
1180
|
+
[key: string]: unknown;
|
|
1181
|
+
} | null;
|
|
1182
|
+
"securityNotes"?: string;
|
|
1183
|
+
"contextRequirements"?: Array<string>;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
export type VerificationDeltaV1 = {
|
|
1187
|
+
"schemaVersion": "1.0.0";
|
|
1188
|
+
"artifactKind": "verification_delta";
|
|
1189
|
+
"artifactId": string;
|
|
1190
|
+
"title": string;
|
|
1191
|
+
"createdAt": string;
|
|
1192
|
+
"updatedAt": string;
|
|
1193
|
+
"producer": {
|
|
1194
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1195
|
+
"id": string;
|
|
1196
|
+
"name": string;
|
|
1197
|
+
"version"?: string;
|
|
1198
|
+
"runId"?: string;
|
|
1199
|
+
};
|
|
1200
|
+
"status": "complete" | "blocked" | "superseded";
|
|
1201
|
+
"ownership": {
|
|
1202
|
+
"ownerLane": string;
|
|
1203
|
+
"ownedWritePaths": Array<string>;
|
|
1204
|
+
"readOnlyPaths": Array<string>;
|
|
1205
|
+
"untouchablePaths": Array<string>;
|
|
1206
|
+
"concurrencyNotes": string;
|
|
1207
|
+
"handoffPolicy"?: string;
|
|
1208
|
+
};
|
|
1209
|
+
"links": Array<{
|
|
1210
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1211
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1212
|
+
"artifactId": string;
|
|
1213
|
+
"path": string;
|
|
1214
|
+
"required": boolean;
|
|
1215
|
+
"statusAtLinkTime": string;
|
|
1216
|
+
}>;
|
|
1217
|
+
"extensions": {
|
|
1218
|
+
[key: string]: {
|
|
1219
|
+
"schemaVersion": string;
|
|
1220
|
+
[key: string]: unknown;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
"description"?: string;
|
|
1224
|
+
"tags"?: Array<string>;
|
|
1225
|
+
"sourceRefs"?: Array<{
|
|
1226
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
1227
|
+
"ref": string;
|
|
1228
|
+
}>;
|
|
1229
|
+
"approvedBy"?: {
|
|
1230
|
+
"producer": {
|
|
1231
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1232
|
+
"id": string;
|
|
1233
|
+
"name": string;
|
|
1234
|
+
"version"?: string;
|
|
1235
|
+
"runId"?: string;
|
|
1236
|
+
};
|
|
1237
|
+
"approvedAt": string;
|
|
1238
|
+
};
|
|
1239
|
+
"supersessionReason"?: string;
|
|
1240
|
+
"retention"?: {
|
|
1241
|
+
"policy": string;
|
|
1242
|
+
"reason": string;
|
|
1243
|
+
};
|
|
1244
|
+
"summary": string;
|
|
1245
|
+
"implementationPlanRef": {
|
|
1246
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1247
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1248
|
+
"artifactId": string;
|
|
1249
|
+
"path": string;
|
|
1250
|
+
"required": boolean;
|
|
1251
|
+
"statusAtLinkTime": string;
|
|
1252
|
+
};
|
|
1253
|
+
"sensitiveAreas": Array<string>;
|
|
1254
|
+
"catalogVersion": string;
|
|
1255
|
+
"requiredItems": Array<{
|
|
1256
|
+
"id": string;
|
|
1257
|
+
"layer": "safety_hooks" | "typecheck" | "lint_format" | "mechanical_gate" | "unit" | "integration" | "contract_adapter" | "e2e" | "ui_verification" | "ai_eval" | "build_package" | "context_drift" | "observability" | "advisory_review" | "final_dod" | "schema_validation";
|
|
1258
|
+
"action": "add" | "update" | "reuse" | "not_applicable" | "blocked";
|
|
1259
|
+
"rationale": string;
|
|
1260
|
+
"expectedArtifacts": Array<string>;
|
|
1261
|
+
"blocking": boolean;
|
|
1262
|
+
"validationOwner": string;
|
|
1263
|
+
"fixerOwner": string;
|
|
1264
|
+
"evidenceRequired": Array<{
|
|
1265
|
+
"kind": "evidence_packet" | "test_report" | "command_log" | "screenshot" | "trace" | "metric" | "context_header";
|
|
1266
|
+
"description": string;
|
|
1267
|
+
"blocking": boolean;
|
|
1268
|
+
}>;
|
|
1269
|
+
"blockedBy"?: string;
|
|
1270
|
+
"unblockCondition"?: string;
|
|
1271
|
+
}>;
|
|
1272
|
+
"mechanicalGateImpacts"?: Array<string>;
|
|
1273
|
+
"advisoryReviewItems"?: Array<string>;
|
|
1274
|
+
"rerunHints"?: Array<string>;
|
|
1275
|
+
"riskLinks"?: Array<{
|
|
1276
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1277
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1278
|
+
"artifactId": string;
|
|
1279
|
+
"path": string;
|
|
1280
|
+
"required": boolean;
|
|
1281
|
+
"statusAtLinkTime": string;
|
|
1282
|
+
}>;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
export type WorkBriefV1 = {
|
|
1286
|
+
"schemaVersion": "1.0.0";
|
|
1287
|
+
"artifactKind": "work_brief";
|
|
1288
|
+
"artifactId": string;
|
|
1289
|
+
"title": string;
|
|
1290
|
+
"createdAt": string;
|
|
1291
|
+
"updatedAt": string;
|
|
1292
|
+
"producer": {
|
|
1293
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1294
|
+
"id": string;
|
|
1295
|
+
"name": string;
|
|
1296
|
+
"version"?: string;
|
|
1297
|
+
"runId"?: string;
|
|
1298
|
+
};
|
|
1299
|
+
"status": "draft" | "ready" | "blocked" | "superseded";
|
|
1300
|
+
"ownership": {
|
|
1301
|
+
"ownerLane": string;
|
|
1302
|
+
"ownedWritePaths": Array<string>;
|
|
1303
|
+
"readOnlyPaths": Array<string>;
|
|
1304
|
+
"untouchablePaths": Array<string>;
|
|
1305
|
+
"concurrencyNotes": string;
|
|
1306
|
+
"handoffPolicy"?: string;
|
|
1307
|
+
};
|
|
1308
|
+
"links": Array<{
|
|
1309
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1310
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1311
|
+
"artifactId": string;
|
|
1312
|
+
"path": string;
|
|
1313
|
+
"required": boolean;
|
|
1314
|
+
"statusAtLinkTime": string;
|
|
1315
|
+
}>;
|
|
1316
|
+
"extensions": {
|
|
1317
|
+
[key: string]: {
|
|
1318
|
+
"schemaVersion": string;
|
|
1319
|
+
[key: string]: unknown;
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
"description"?: string;
|
|
1323
|
+
"tags"?: Array<string>;
|
|
1324
|
+
"sourceRefs"?: Array<{
|
|
1325
|
+
"kind": "source_doc" | "prompt" | "issue" | "url" | "artifact" | "raw_intent";
|
|
1326
|
+
"ref": string;
|
|
1327
|
+
}>;
|
|
1328
|
+
"approvedBy"?: {
|
|
1329
|
+
"producer": {
|
|
1330
|
+
"kind": "skill" | "agent" | "cli" | "schematic" | "verification_runner" | "human_operator" | "system";
|
|
1331
|
+
"id": string;
|
|
1332
|
+
"name": string;
|
|
1333
|
+
"version"?: string;
|
|
1334
|
+
"runId"?: string;
|
|
1335
|
+
};
|
|
1336
|
+
"approvedAt": string;
|
|
1337
|
+
};
|
|
1338
|
+
"supersessionReason"?: string;
|
|
1339
|
+
"retention"?: {
|
|
1340
|
+
"policy": string;
|
|
1341
|
+
"reason": string;
|
|
1342
|
+
};
|
|
1343
|
+
"sourceSkill": "brainstorm" | "grill-me" | "task";
|
|
1344
|
+
"workType": "feature" | "bug" | "chore" | "refactor" | "research" | "decision";
|
|
1345
|
+
"background": string;
|
|
1346
|
+
"problemOrOpportunity": string;
|
|
1347
|
+
"desiredOutcome": string;
|
|
1348
|
+
"constraints": Array<string>;
|
|
1349
|
+
"userVisibleBehavior": Array<string>;
|
|
1350
|
+
"nonGoals": Array<string>;
|
|
1351
|
+
"risksAndUnknowns": Array<string>;
|
|
1352
|
+
"acceptanceNotes": Array<{
|
|
1353
|
+
"id": string;
|
|
1354
|
+
"description": string;
|
|
1355
|
+
"candidateScenarioRefs"?: Array<string>;
|
|
1356
|
+
}>;
|
|
1357
|
+
"sourceMetadata": {
|
|
1358
|
+
"rawIntentRefs": Array<string>;
|
|
1359
|
+
"conversationRefs": Array<string>;
|
|
1360
|
+
"operatorRefs": Array<string>;
|
|
1361
|
+
"inputTimestamp"?: string;
|
|
1362
|
+
};
|
|
1363
|
+
"observedBehavior"?: string;
|
|
1364
|
+
"expectedBehavior"?: string;
|
|
1365
|
+
"reproductionSteps"?: Array<string>;
|
|
1366
|
+
"logsOrErrors"?: Array<string>;
|
|
1367
|
+
"affectedSurface"?: string;
|
|
1368
|
+
"suspectedCause"?: string;
|
|
1369
|
+
"urgency"?: "low" | "medium" | "high" | "urgent";
|
|
1370
|
+
"candidateE2ECases"?: Array<string>;
|
|
1371
|
+
"candidateUIStates"?: Array<string>;
|
|
1372
|
+
"openQuestions"?: Array<string>;
|
|
1373
|
+
"assumptions"?: Array<string>;
|
|
1374
|
+
"relatedArtifacts"?: Array<{
|
|
1375
|
+
"rel": "raw_intent" | "derived_from" | "supersedes" | "superseded_by" | "implements" | "verifies" | "evidence_for" | "consumed_by" | "produced_by" | "context_for" | "registry_entry_for" | "manifest_for" | "verification_delta_of" | "build_result_of" | "ship_packet_of";
|
|
1376
|
+
"artifactKind": "work_brief" | "implementation_plan" | "verification_delta" | "build_result" | "ship_packet" | "evidence_packet" | "agent_registry_entry" | "context_file_header" | "schematic_manifest" | "skill_manifest";
|
|
1377
|
+
"artifactId": string;
|
|
1378
|
+
"path": string;
|
|
1379
|
+
"required": boolean;
|
|
1380
|
+
"statusAtLinkTime": string;
|
|
1381
|
+
}>;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
export type AnyArtifactV1 = AgentRegistryEntryV1 | BuildResultV1 | ContextFileHeaderV1 | EvidencePacketV1 | ImplementationPlanV1 | SchematicManifestV1 | ShipPacketV1 | SkillManifestV1 | VerificationDeltaV1 | WorkBriefV1;
|
|
1385
|
+
|
|
1386
|
+
export const ARTIFACT_KINDS: readonly ArtifactKind[];
|
|
1387
|
+
export const SUPPORTED_SCHEMA_VERSION: '1.0.0';
|
|
1388
|
+
export const SCHEMA_FILES: Readonly<Record<ArtifactKind, string>>;
|
|
1389
|
+
export function schemaPathForKind(kind: ArtifactKind): string | undefined;
|
|
1390
|
+
export function loadSchema(kind: ArtifactKind): unknown;
|
|
1391
|
+
export function loadAllSchemas(): Readonly<Record<ArtifactKind, unknown>>;
|
|
1392
|
+
export function compileAllArtifactSchemas(): Readonly<{ schemaVersion: '1.0.0'; kinds: readonly ArtifactKind[] }>;
|
|
1393
|
+
export function validateArtifact(data: unknown, options?: { artifactPath?: string }): ArtifactValidationResult<AnyArtifactV1>;
|
|
1394
|
+
export function validateArtifactKind(kind: ArtifactKind, data: unknown, options?: { artifactPath?: string }): ArtifactValidationResult<AnyArtifactV1>;
|
|
1395
|
+
export function validateArtifactFile(filePath: string, options?: { artifactPath?: string; kind?: ArtifactKind }): ArtifactValidationResult<AnyArtifactV1>;
|
|
1396
|
+
export const ValidationErrorCode: Readonly<Record<string, string>>;
|