mdkg 0.3.7 → 0.3.8
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/CHANGELOG.md +24 -0
- package/CLI_COMMAND_MATRIX.md +81 -22
- package/README.md +50 -25
- package/dist/cli.js +70 -34
- package/dist/command-contract.json +354 -9
- package/dist/commands/capability.js +1 -0
- package/dist/commands/doctor.js +7 -7
- package/dist/commands/format.js +40 -1
- package/dist/commands/handoff.js +6 -0
- package/dist/commands/new.js +12 -3
- package/dist/commands/spec.js +76 -17
- package/dist/commands/subgraph.js +7 -4
- package/dist/commands/upgrade.js +70 -6
- package/dist/commands/validate.js +106 -3
- package/dist/commands/work.js +12 -5
- package/dist/graph/agent_file_types.js +59 -20
- package/dist/graph/capabilities_indexer.js +45 -3
- package/dist/graph/indexer.js +5 -0
- package/dist/graph/template_schema.js +37 -17
- package/dist/graph/validate_graph.js +11 -5
- package/dist/init/AGENT_START.md +5 -5
- package/dist/init/CLI_COMMAND_MATRIX.md +29 -16
- package/dist/init/README.md +11 -9
- package/dist/init/init-manifest.json +59 -4
- package/dist/init/templates/default/manifest.md +45 -0
- package/dist/init/templates/specs/agent.MANIFEST.md +80 -0
- package/dist/init/templates/specs/api.MANIFEST.md +33 -0
- package/dist/init/templates/specs/base.MANIFEST.md +120 -0
- package/dist/init/templates/specs/capability.MANIFEST.md +45 -0
- package/dist/init/templates/specs/integration.MANIFEST.md +25 -0
- package/dist/init/templates/specs/model.MANIFEST.md +21 -0
- package/dist/init/templates/specs/project.MANIFEST.md +39 -0
- package/dist/init/templates/specs/runtime-agent.MANIFEST.md +49 -0
- package/dist/init/templates/specs/runtime-image.MANIFEST.md +21 -0
- package/dist/init/templates/specs/tool.MANIFEST.md +25 -0
- package/dist/util/argparse.js +3 -0
- package/package.json +17 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"tool": "mdkg",
|
|
4
|
-
"mdkg_version": "0.3.
|
|
4
|
+
"mdkg_version": "0.3.8",
|
|
5
5
|
"files": [
|
|
6
6
|
{
|
|
7
7
|
"path": ".mdkg/config.json",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
{
|
|
62
62
|
"path": ".mdkg/README.md",
|
|
63
63
|
"category": "mdkg_doc",
|
|
64
|
-
"sha256": "
|
|
64
|
+
"sha256": "e876acfbf3e9de411cd45eb86e7e9bff821f8a5dd6dc933bd6da4ac88a9686e6"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"path": ".mdkg/skills/build-pack-and-execute-task/SKILL.md",
|
|
@@ -133,6 +133,11 @@
|
|
|
133
133
|
"category": "template",
|
|
134
134
|
"sha256": "8f984580aefd02b34639fa7f5d2a834662656bbf2e12f14a285f5ae31aff74ce"
|
|
135
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"path": ".mdkg/templates/default/manifest.md",
|
|
138
|
+
"category": "template",
|
|
139
|
+
"sha256": "2ff2af58cae6a0381a66949d7d9e997fac6486da85171b09096c43663889da95"
|
|
140
|
+
},
|
|
136
141
|
{
|
|
137
142
|
"path": ".mdkg/templates/default/prd.md",
|
|
138
143
|
"category": "template",
|
|
@@ -193,51 +198,101 @@
|
|
|
193
198
|
"category": "template",
|
|
194
199
|
"sha256": "08a1bd65297173a1dc9df95776775d406337a419d4bc51863593b6f28777ebdb"
|
|
195
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"path": ".mdkg/templates/specs/agent.MANIFEST.md",
|
|
203
|
+
"category": "template",
|
|
204
|
+
"sha256": "79fb755c95747d3f673e1333ec3f039d08f76488ba268b7fa32f457d8638ee64"
|
|
205
|
+
},
|
|
196
206
|
{
|
|
197
207
|
"path": ".mdkg/templates/specs/agent.SPEC.md",
|
|
198
208
|
"category": "template",
|
|
199
209
|
"sha256": "dab10c0ed12aa10a752ee3bd61f263065644826eb950c71a9e3458673edb0ca5"
|
|
200
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"path": ".mdkg/templates/specs/api.MANIFEST.md",
|
|
213
|
+
"category": "template",
|
|
214
|
+
"sha256": "dd342ab2bd331b716e4b7de9f8c7cfa503703422a4cc88c21fe90ff49b11aa83"
|
|
215
|
+
},
|
|
201
216
|
{
|
|
202
217
|
"path": ".mdkg/templates/specs/api.SPEC.md",
|
|
203
218
|
"category": "template",
|
|
204
219
|
"sha256": "aee86cadcca31a5a015d7e15ad7503c4aa30f2af0079ec03f857b82b3ecbae59"
|
|
205
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"path": ".mdkg/templates/specs/base.MANIFEST.md",
|
|
223
|
+
"category": "template",
|
|
224
|
+
"sha256": "056c4ccf8285db72c8befdc6acd165d625dbe892d70e89ce586f081db8e250fc"
|
|
225
|
+
},
|
|
206
226
|
{
|
|
207
227
|
"path": ".mdkg/templates/specs/base.SPEC.md",
|
|
208
228
|
"category": "template",
|
|
209
229
|
"sha256": "6d4171fac00c2f3d8f2a2ac746b8a47c59aaecebe224c3a0046dd6e6974a1d08"
|
|
210
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"path": ".mdkg/templates/specs/capability.MANIFEST.md",
|
|
233
|
+
"category": "template",
|
|
234
|
+
"sha256": "0ab2c2f90c6bdcddaafd77ac6cc36422d6ee10cc935942d8f80728f5b184d5cc"
|
|
235
|
+
},
|
|
211
236
|
{
|
|
212
237
|
"path": ".mdkg/templates/specs/capability.SPEC.md",
|
|
213
238
|
"category": "template",
|
|
214
239
|
"sha256": "68a91e8bbd80d1ff1972e4c31e29f26451d5a1be1d25d414170fdd670010066f"
|
|
215
240
|
},
|
|
241
|
+
{
|
|
242
|
+
"path": ".mdkg/templates/specs/integration.MANIFEST.md",
|
|
243
|
+
"category": "template",
|
|
244
|
+
"sha256": "7af890bdac5515600661c241dd488c2bc270248ae6fba9afb0307d7a643022a4"
|
|
245
|
+
},
|
|
216
246
|
{
|
|
217
247
|
"path": ".mdkg/templates/specs/integration.SPEC.md",
|
|
218
248
|
"category": "template",
|
|
219
249
|
"sha256": "e907ce6ebc1fa5a455e31e39036e3f8699dccb3d9e45288c8ea025eaec4ca4a2"
|
|
220
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"path": ".mdkg/templates/specs/model.MANIFEST.md",
|
|
253
|
+
"category": "template",
|
|
254
|
+
"sha256": "3fe36a424b6eba8542bd08d3e2728ffd7f35d2c72037f2e565757cea15da2e1f"
|
|
255
|
+
},
|
|
221
256
|
{
|
|
222
257
|
"path": ".mdkg/templates/specs/model.SPEC.md",
|
|
223
258
|
"category": "template",
|
|
224
259
|
"sha256": "56061a241819dfda4d3022c075f744cf6650f5f52c58cd15b0af9d1f613af4f2"
|
|
225
260
|
},
|
|
261
|
+
{
|
|
262
|
+
"path": ".mdkg/templates/specs/project.MANIFEST.md",
|
|
263
|
+
"category": "template",
|
|
264
|
+
"sha256": "e1f68306a9cff3d73e65a2fea38d52b49dd76921b5d7c7ea9710eb2c23cb6f89"
|
|
265
|
+
},
|
|
226
266
|
{
|
|
227
267
|
"path": ".mdkg/templates/specs/project.SPEC.md",
|
|
228
268
|
"category": "template",
|
|
229
269
|
"sha256": "386c41852cbb46e7a6ba583a7b0c4126262a56618d8e214aaa601b68d55818b9"
|
|
230
270
|
},
|
|
271
|
+
{
|
|
272
|
+
"path": ".mdkg/templates/specs/runtime-agent.MANIFEST.md",
|
|
273
|
+
"category": "template",
|
|
274
|
+
"sha256": "4ba2013362597f101fb225bc6a3369a47a0c1cac3de78220efea4e53d42f0393"
|
|
275
|
+
},
|
|
231
276
|
{
|
|
232
277
|
"path": ".mdkg/templates/specs/runtime-agent.SPEC.md",
|
|
233
278
|
"category": "template",
|
|
234
279
|
"sha256": "53af7c3e172f5ed1297f340aca0be5e53302613d2e6bb9145915067d7b0004c8"
|
|
235
280
|
},
|
|
281
|
+
{
|
|
282
|
+
"path": ".mdkg/templates/specs/runtime-image.MANIFEST.md",
|
|
283
|
+
"category": "template",
|
|
284
|
+
"sha256": "098debed22f274c9f408defcf330ef27c760e1a3166876f2a6e16cb28cfb4757"
|
|
285
|
+
},
|
|
236
286
|
{
|
|
237
287
|
"path": ".mdkg/templates/specs/runtime-image.SPEC.md",
|
|
238
288
|
"category": "template",
|
|
239
289
|
"sha256": "37416b045cd7733d1f5e1cc629ac9b6616024d5fa52f2bdcd90110267151e593"
|
|
240
290
|
},
|
|
291
|
+
{
|
|
292
|
+
"path": ".mdkg/templates/specs/tool.MANIFEST.md",
|
|
293
|
+
"category": "template",
|
|
294
|
+
"sha256": "79e45600a3b83d70e2791cbdff0138b57018a30b7e277d9017b7ba142deccb91"
|
|
295
|
+
},
|
|
241
296
|
{
|
|
242
297
|
"path": ".mdkg/templates/specs/tool.SPEC.md",
|
|
243
298
|
"category": "template",
|
|
@@ -246,7 +301,7 @@
|
|
|
246
301
|
{
|
|
247
302
|
"path": "AGENT_START.md",
|
|
248
303
|
"category": "startup_doc",
|
|
249
|
-
"sha256": "
|
|
304
|
+
"sha256": "0d3bb2f9ea156f53c1bf68595e591578caadc18d296fa919e71ea1a3d9a968e8"
|
|
250
305
|
},
|
|
251
306
|
{
|
|
252
307
|
"path": "AGENTS.md",
|
|
@@ -261,7 +316,7 @@
|
|
|
261
316
|
{
|
|
262
317
|
"path": "CLI_COMMAND_MATRIX.md",
|
|
263
318
|
"category": "startup_doc",
|
|
264
|
-
"sha256": "
|
|
319
|
+
"sha256": "8f426fd8da402b4b550b71e7ec3882c614ceb2d79d23c47b9c27bca7e39fadb2"
|
|
265
320
|
},
|
|
266
321
|
{
|
|
267
322
|
"path": "llms.txt",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{id}}
|
|
3
|
+
type: manifest
|
|
4
|
+
title: {{title}}
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
spec_kind: capability
|
|
7
|
+
role: tool_service
|
|
8
|
+
runtime_mode: tool_service
|
|
9
|
+
work_contracts: []
|
|
10
|
+
requested_capabilities: []
|
|
11
|
+
skill_refs: []
|
|
12
|
+
tool_refs: []
|
|
13
|
+
model_refs: []
|
|
14
|
+
wasm_component_refs: []
|
|
15
|
+
runtime_image_refs: []
|
|
16
|
+
subagent_refs: []
|
|
17
|
+
resource_profile: local_cli
|
|
18
|
+
update_policy: manual
|
|
19
|
+
tags: []
|
|
20
|
+
owners: []
|
|
21
|
+
links: []
|
|
22
|
+
artifacts: []
|
|
23
|
+
relates: []
|
|
24
|
+
refs: []
|
|
25
|
+
aliases: []
|
|
26
|
+
created: {{created}}
|
|
27
|
+
updated: {{updated}}
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Purpose
|
|
31
|
+
|
|
32
|
+
Define the reusable capability surface.
|
|
33
|
+
|
|
34
|
+
# Runtime
|
|
35
|
+
|
|
36
|
+
Describe the role, runtime mode, resource profile, and update policy.
|
|
37
|
+
|
|
38
|
+
# Work Contracts
|
|
39
|
+
|
|
40
|
+
List related WORK.md contracts.
|
|
41
|
+
|
|
42
|
+
# Capabilities
|
|
43
|
+
|
|
44
|
+
List requested capabilities and the authority/resource constraints that govern
|
|
45
|
+
use.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: agent
|
|
4
|
+
spec_kind: agent
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent Role
|
|
8
|
+
|
|
9
|
+
Define the durable agent role and trigger conditions.
|
|
10
|
+
|
|
11
|
+
Suggested generic roles:
|
|
12
|
+
|
|
13
|
+
- orchestrator agent.
|
|
14
|
+
- worker agent.
|
|
15
|
+
- reviewer agent.
|
|
16
|
+
- summarizer agent.
|
|
17
|
+
- graph/project agent.
|
|
18
|
+
|
|
19
|
+
# Trigger Conditions
|
|
20
|
+
|
|
21
|
+
- Human request.
|
|
22
|
+
- Graph work item.
|
|
23
|
+
- Queue event.
|
|
24
|
+
- Scheduled check.
|
|
25
|
+
- API or runtime event.
|
|
26
|
+
|
|
27
|
+
# Allowed Resources
|
|
28
|
+
|
|
29
|
+
- Resources the agent may read or write.
|
|
30
|
+
|
|
31
|
+
# Allowed Capabilities
|
|
32
|
+
|
|
33
|
+
- Capability ids and optional generic capability URIs.
|
|
34
|
+
|
|
35
|
+
# Forbidden Actions
|
|
36
|
+
|
|
37
|
+
- Actions this agent must never perform.
|
|
38
|
+
|
|
39
|
+
# Input Context
|
|
40
|
+
|
|
41
|
+
- Required room, goal, task, pack, or queue context.
|
|
42
|
+
|
|
43
|
+
# Output Contract
|
|
44
|
+
|
|
45
|
+
- Required report, patch, receipt, or handoff.
|
|
46
|
+
|
|
47
|
+
# Receipt / Evidence Contract
|
|
48
|
+
|
|
49
|
+
- Attempt, validation, and final evidence requirements.
|
|
50
|
+
|
|
51
|
+
# Queue / Event Semantics
|
|
52
|
+
|
|
53
|
+
- Accepted trigger events.
|
|
54
|
+
- AgentRun claim rules.
|
|
55
|
+
- AttemptReceipt requirements.
|
|
56
|
+
- ValidationReceipt requirements.
|
|
57
|
+
- FinalReceipt requirements.
|
|
58
|
+
|
|
59
|
+
# Single-Writer Policy
|
|
60
|
+
|
|
61
|
+
- The graph, repo, path, branch, queue, or work item key that serializes writes.
|
|
62
|
+
|
|
63
|
+
# Escalation Behavior
|
|
64
|
+
|
|
65
|
+
- When to stop, ask, or return a blocker.
|
|
66
|
+
|
|
67
|
+
# Failure Modes
|
|
68
|
+
|
|
69
|
+
- Ambiguous scope.
|
|
70
|
+
- Conflicting writers.
|
|
71
|
+
- Invalid or stale context.
|
|
72
|
+
- Validation failure.
|
|
73
|
+
- Missing final receipt.
|
|
74
|
+
|
|
75
|
+
# Projection Targets
|
|
76
|
+
|
|
77
|
+
- Tool-specific agent manifest.
|
|
78
|
+
- Future runtime agent manifest.
|
|
79
|
+
- Future workflow/runtime capability object.
|
|
80
|
+
- Future workflow/runtime agent definition.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: api
|
|
4
|
+
spec_kind: api
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Service Name
|
|
8
|
+
|
|
9
|
+
API or service identity.
|
|
10
|
+
|
|
11
|
+
# Methods
|
|
12
|
+
|
|
13
|
+
- Method name, request, response, and streaming behavior.
|
|
14
|
+
|
|
15
|
+
# Idempotency
|
|
16
|
+
|
|
17
|
+
- Idempotency keys and replay behavior.
|
|
18
|
+
|
|
19
|
+
# Auth
|
|
20
|
+
|
|
21
|
+
- Required principal, policy, and capability context.
|
|
22
|
+
|
|
23
|
+
# Errors
|
|
24
|
+
|
|
25
|
+
- Error taxonomy and fail-closed behavior.
|
|
26
|
+
|
|
27
|
+
# Versioning
|
|
28
|
+
|
|
29
|
+
- Package/version and compatibility policy.
|
|
30
|
+
|
|
31
|
+
# Conformance Tests
|
|
32
|
+
|
|
33
|
+
- Fixture and integration proof requirements.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: {{manifest_id}}
|
|
3
|
+
type: manifest
|
|
4
|
+
title: {{title}}
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
spec_kind: capability
|
|
7
|
+
role: {{role}}
|
|
8
|
+
runtime_mode: {{runtime_mode}}
|
|
9
|
+
work_contracts: []
|
|
10
|
+
requested_capabilities: []
|
|
11
|
+
skill_refs: []
|
|
12
|
+
tool_refs: []
|
|
13
|
+
model_refs: []
|
|
14
|
+
wasm_component_refs: []
|
|
15
|
+
runtime_image_refs: []
|
|
16
|
+
subagent_refs: []
|
|
17
|
+
resource_profile: builder
|
|
18
|
+
update_policy: manual
|
|
19
|
+
tags: [manifest]
|
|
20
|
+
owners: []
|
|
21
|
+
links: []
|
|
22
|
+
artifacts: []
|
|
23
|
+
relates: []
|
|
24
|
+
refs: []
|
|
25
|
+
aliases: []
|
|
26
|
+
created: {{created}}
|
|
27
|
+
updated: {{updated}}
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Identity
|
|
31
|
+
|
|
32
|
+
Name, stable id, owner, status, and source mdkg nodes.
|
|
33
|
+
|
|
34
|
+
# Purpose
|
|
35
|
+
|
|
36
|
+
What durable capability or contract this MANIFEST defines.
|
|
37
|
+
|
|
38
|
+
# Authority Boundary
|
|
39
|
+
|
|
40
|
+
Who or what is allowed to make decisions, mutate state, delegate work, or accept
|
|
41
|
+
evidence under this MANIFEST.
|
|
42
|
+
|
|
43
|
+
# Resource Boundary
|
|
44
|
+
|
|
45
|
+
Included behavior, resources, paths, graph nodes, queues, services, and
|
|
46
|
+
explicit non-authorities.
|
|
47
|
+
|
|
48
|
+
# Optional Resource URIs
|
|
49
|
+
|
|
50
|
+
- Optional generic draft URI: `resource://...`
|
|
51
|
+
- Optional mdkg draft URI: `mdkg://resource/...`
|
|
52
|
+
|
|
53
|
+
# Capabilities
|
|
54
|
+
|
|
55
|
+
- Capability id:
|
|
56
|
+
- Optional generic draft URI: `capability://...`
|
|
57
|
+
- Optional mdkg draft URI: `mdkg://capability/...`
|
|
58
|
+
|
|
59
|
+
# Queue / Event Semantics
|
|
60
|
+
|
|
61
|
+
- Trigger events accepted:
|
|
62
|
+
- Queue ownership:
|
|
63
|
+
- Retry, ack, fail, and dead-letter expectations:
|
|
64
|
+
- Ordering or idempotency rules:
|
|
65
|
+
|
|
66
|
+
# Single-Writer Policy
|
|
67
|
+
|
|
68
|
+
- Writer key:
|
|
69
|
+
- Allowed write surfaces:
|
|
70
|
+
- Forbidden write surfaces:
|
|
71
|
+
- Conflict handling:
|
|
72
|
+
|
|
73
|
+
# Inputs
|
|
74
|
+
|
|
75
|
+
- Required input contract.
|
|
76
|
+
|
|
77
|
+
# Outputs
|
|
78
|
+
|
|
79
|
+
- Required output or receipt contract.
|
|
80
|
+
|
|
81
|
+
# Receipts / Evidence
|
|
82
|
+
|
|
83
|
+
- Attempt evidence:
|
|
84
|
+
- Validation evidence:
|
|
85
|
+
- Final receipt or closeout evidence:
|
|
86
|
+
- Aggregate checkpoint policy:
|
|
87
|
+
|
|
88
|
+
# Dependencies
|
|
89
|
+
|
|
90
|
+
- Other manifests, skills, tools, models, services, or runtime images.
|
|
91
|
+
|
|
92
|
+
# Security / Privacy
|
|
93
|
+
|
|
94
|
+
- Authority, secret, data, and mutation boundaries.
|
|
95
|
+
- No raw secrets, credentials, local auth state, or production controls.
|
|
96
|
+
|
|
97
|
+
# Validation Checks
|
|
98
|
+
|
|
99
|
+
- Commands or review checks.
|
|
100
|
+
|
|
101
|
+
# Closeout Evidence
|
|
102
|
+
|
|
103
|
+
- Evidence required to accept this MANIFEST or implementation.
|
|
104
|
+
|
|
105
|
+
# Projection Targets
|
|
106
|
+
|
|
107
|
+
- Runtime manifest, package metadata, API contract, tool manifest, or protocol
|
|
108
|
+
projection.
|
|
109
|
+
|
|
110
|
+
# Versioning
|
|
111
|
+
|
|
112
|
+
- Compatibility rules.
|
|
113
|
+
|
|
114
|
+
# Change Policy
|
|
115
|
+
|
|
116
|
+
- Who can change this MANIFEST and what validation is required.
|
|
117
|
+
|
|
118
|
+
# Open Questions
|
|
119
|
+
|
|
120
|
+
- Decision needed before implementation.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: capability
|
|
4
|
+
spec_kind: capability
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Capability Name
|
|
8
|
+
|
|
9
|
+
Stable mdkg capability id.
|
|
10
|
+
|
|
11
|
+
# Optional Capability URI
|
|
12
|
+
|
|
13
|
+
Optional generic URI: `capability://...`
|
|
14
|
+
|
|
15
|
+
Optional mdkg URI: `mdkg://capability/...`
|
|
16
|
+
|
|
17
|
+
# Resource Types
|
|
18
|
+
|
|
19
|
+
- Optional generic resource URI: `resource://...`
|
|
20
|
+
- Optional mdkg resource URI: `mdkg://resource/...`
|
|
21
|
+
|
|
22
|
+
# Allowed Principals
|
|
23
|
+
|
|
24
|
+
- Roles or agents allowed to use this capability.
|
|
25
|
+
|
|
26
|
+
# Required Policy Context
|
|
27
|
+
|
|
28
|
+
- Preconditions, policy refs, scopes, or approval state required before use.
|
|
29
|
+
|
|
30
|
+
# Delegation Rules
|
|
31
|
+
|
|
32
|
+
- Whether and how the capability can be delegated.
|
|
33
|
+
|
|
34
|
+
# Revocation Rules
|
|
35
|
+
|
|
36
|
+
- Conditions that revoke or disable the capability.
|
|
37
|
+
|
|
38
|
+
# Audit Events
|
|
39
|
+
|
|
40
|
+
- Receipts, summaries, or metrics created by use.
|
|
41
|
+
|
|
42
|
+
# Validation Checks
|
|
43
|
+
|
|
44
|
+
- Checks that prove capability use remains inside its authority and resource
|
|
45
|
+
boundaries.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: integration
|
|
4
|
+
spec_kind: integration
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Integration Boundary
|
|
8
|
+
|
|
9
|
+
Systems, repos, protocols, and ownership split.
|
|
10
|
+
|
|
11
|
+
# Data Flow
|
|
12
|
+
|
|
13
|
+
- Inputs, outputs, transformations, and receipts.
|
|
14
|
+
|
|
15
|
+
# Failure And Retry
|
|
16
|
+
|
|
17
|
+
- Retry, idempotency, dead-letter, and cleanup policy.
|
|
18
|
+
|
|
19
|
+
# Security
|
|
20
|
+
|
|
21
|
+
- Auth, secret refs, network, and data minimization.
|
|
22
|
+
|
|
23
|
+
# Conformance
|
|
24
|
+
|
|
25
|
+
- Contract tests and fixture expectations.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: model
|
|
4
|
+
spec_kind: model
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Model Identity
|
|
8
|
+
|
|
9
|
+
Provider, model id, version, and intended use.
|
|
10
|
+
|
|
11
|
+
# Capabilities
|
|
12
|
+
|
|
13
|
+
- Reasoning, coding, browsing, vision, tool-use, or structured-output needs.
|
|
14
|
+
|
|
15
|
+
# Policy Context
|
|
16
|
+
|
|
17
|
+
- Data classes, retention, privacy, and allowed prompts.
|
|
18
|
+
|
|
19
|
+
# Evaluation Checks
|
|
20
|
+
|
|
21
|
+
- Task families, quality gates, and regression criteria.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: project
|
|
4
|
+
spec_kind: project_service
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Project Role
|
|
8
|
+
|
|
9
|
+
Describe the repo/service responsibility and non-authorities.
|
|
10
|
+
|
|
11
|
+
# Canonical Repo
|
|
12
|
+
|
|
13
|
+
- Local path:
|
|
14
|
+
- Remote:
|
|
15
|
+
- Default branch:
|
|
16
|
+
|
|
17
|
+
# Owned Capabilities
|
|
18
|
+
|
|
19
|
+
- Capability ids and optional generic capability URIs.
|
|
20
|
+
|
|
21
|
+
# Project-Agent Boundary
|
|
22
|
+
|
|
23
|
+
- Graph writes owned by this project.
|
|
24
|
+
- Read-only surfaces exposed to parent or sibling orchestrators.
|
|
25
|
+
- Queue/event surfaces accepted from external orchestrators.
|
|
26
|
+
|
|
27
|
+
# Single-Writer Policy
|
|
28
|
+
|
|
29
|
+
- Project writer key.
|
|
30
|
+
- Branch or graph write policy.
|
|
31
|
+
- Accepted receipt before external refresh.
|
|
32
|
+
|
|
33
|
+
# Integration Boundaries
|
|
34
|
+
|
|
35
|
+
- Upstream/downstream repos and APIs.
|
|
36
|
+
|
|
37
|
+
# Validation Checks
|
|
38
|
+
|
|
39
|
+
- Build, test, mdkg, security, and release gates.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: agent.MANIFEST.md
|
|
3
|
+
template_kind: runtime_agent
|
|
4
|
+
spec_kind: runtime_agent
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Queue Ownership
|
|
8
|
+
|
|
9
|
+
- Orchestrator queue and per-agent queue responsibilities.
|
|
10
|
+
|
|
11
|
+
# Trigger Kinds
|
|
12
|
+
|
|
13
|
+
- User message, scheduled job, API event, mdkg queue event, runtime event, or
|
|
14
|
+
internal retry.
|
|
15
|
+
|
|
16
|
+
# Sandbox Requirements
|
|
17
|
+
|
|
18
|
+
- Lease refs, workspace bounds, cleanup, and metering requirements.
|
|
19
|
+
|
|
20
|
+
# SecretGrant Requirements
|
|
21
|
+
|
|
22
|
+
- Opaque refs and allowed consumers only.
|
|
23
|
+
|
|
24
|
+
# Single-Writer Keys
|
|
25
|
+
|
|
26
|
+
- Repo, graph, branch, or room keys that serialize writes.
|
|
27
|
+
|
|
28
|
+
# Receipt Lifecycle
|
|
29
|
+
|
|
30
|
+
- TriggerEvent contract.
|
|
31
|
+
- AgentRun contract.
|
|
32
|
+
- AttemptReceipt contract.
|
|
33
|
+
- ValidationReceipt contract.
|
|
34
|
+
- FinalReceipt contract.
|
|
35
|
+
|
|
36
|
+
# Cancellation And Retry
|
|
37
|
+
|
|
38
|
+
- Cancellation, retry, backoff, dead-letter, and finalization policy.
|
|
39
|
+
|
|
40
|
+
# Telemetry Policy
|
|
41
|
+
|
|
42
|
+
- Aggregate-safe stats and improvement proposals only unless a runtime spec says
|
|
43
|
+
otherwise.
|
|
44
|
+
|
|
45
|
+
# Projection Targets
|
|
46
|
+
|
|
47
|
+
- Local runtime agent manifest.
|
|
48
|
+
- Workflow/runtime protocol manifest.
|
|
49
|
+
- Downstream agent manifest owned outside mdkg canonical source.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: runtime_image
|
|
4
|
+
spec_kind: runtime_image
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Runtime Image
|
|
8
|
+
|
|
9
|
+
Image name, digest policy, base image, and supported commands.
|
|
10
|
+
|
|
11
|
+
# Resource Profile
|
|
12
|
+
|
|
13
|
+
- CPU, memory, storage, network, and sandbox assumptions.
|
|
14
|
+
|
|
15
|
+
# Secrets And Mounts
|
|
16
|
+
|
|
17
|
+
- Opaque refs only; no raw secret values.
|
|
18
|
+
|
|
19
|
+
# Conformance Checks
|
|
20
|
+
|
|
21
|
+
- Build, scan, smoke, and cleanup proof.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
extends: base.MANIFEST.md
|
|
3
|
+
template_kind: tool
|
|
4
|
+
spec_kind: tool
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Tool Identity
|
|
8
|
+
|
|
9
|
+
Name, command/API surface, and owner.
|
|
10
|
+
|
|
11
|
+
# Allowed Operations
|
|
12
|
+
|
|
13
|
+
- Operations and parameters.
|
|
14
|
+
|
|
15
|
+
# Required Policy Context
|
|
16
|
+
|
|
17
|
+
- Auth, sandbox, path, network, and secret boundaries.
|
|
18
|
+
|
|
19
|
+
# Failure Modes
|
|
20
|
+
|
|
21
|
+
- Expected errors and retry behavior.
|
|
22
|
+
|
|
23
|
+
# Audit Events
|
|
24
|
+
|
|
25
|
+
- Events or receipts emitted by tool use.
|
package/dist/util/argparse.js
CHANGED
|
@@ -15,7 +15,9 @@ const VALUE_FLAGS = new Set([
|
|
|
15
15
|
"--edges",
|
|
16
16
|
"--format",
|
|
17
17
|
"--out",
|
|
18
|
+
"--json-out",
|
|
18
19
|
"--output",
|
|
20
|
+
"--limit",
|
|
19
21
|
"--relates",
|
|
20
22
|
"--scope",
|
|
21
23
|
"--blocked-by",
|
|
@@ -123,6 +125,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
123
125
|
"--dry-run",
|
|
124
126
|
"--apply",
|
|
125
127
|
"--json",
|
|
128
|
+
"--summary",
|
|
126
129
|
"--xml",
|
|
127
130
|
"--toon",
|
|
128
131
|
"--md",
|