mdkg 0.2.0 → 0.3.1
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 +87 -1
- package/CLI_COMMAND_MATRIX.md +1176 -0
- package/README.md +58 -5
- package/dist/cli.js +267 -12
- package/dist/command-contract.json +7473 -0
- package/dist/commands/capability.js +13 -8
- package/dist/commands/doctor.js +370 -86
- package/dist/commands/fix.js +924 -0
- package/dist/commands/format.js +9 -3
- package/dist/commands/skill.js +13 -3
- package/dist/commands/skill_support.js +3 -3
- package/dist/commands/spec.js +101 -0
- package/dist/commands/status.js +270 -0
- package/dist/commands/subgraph.js +300 -0
- package/dist/commands/validate.js +1 -1
- package/dist/commands/work.js +569 -20
- package/dist/commands/workspace.js +19 -7
- package/dist/graph/agent_file_types.js +95 -7
- package/dist/graph/capabilities_indexer.js +89 -2
- package/dist/graph/frontmatter.js +6 -0
- package/dist/graph/node.js +8 -2
- package/dist/init/AGENT_START.md +5 -1
- package/dist/init/CLI_COMMAND_MATRIX.md +36 -0
- package/dist/init/README.md +41 -2
- package/dist/init/init-manifest.json +20 -20
- package/dist/init/templates/default/receipt.md +12 -1
- package/dist/init/templates/default/spec.md +8 -6
- package/dist/init/templates/default/work.md +5 -1
- package/dist/init/templates/default/work_order.md +11 -0
- package/dist/init/templates/specs/agent.SPEC.md +45 -4
- package/dist/init/templates/specs/api.SPEC.md +1 -0
- package/dist/init/templates/specs/base.SPEC.md +45 -12
- package/dist/init/templates/specs/capability.SPEC.md +16 -3
- package/dist/init/templates/specs/integration.SPEC.md +1 -0
- package/dist/init/templates/specs/model.SPEC.md +1 -0
- package/dist/init/templates/specs/project.SPEC.md +14 -1
- package/dist/init/templates/specs/{omniruntime-agent.SPEC.md → runtime-agent.SPEC.md} +13 -3
- package/dist/init/templates/specs/runtime-image.SPEC.md +1 -0
- package/dist/init/templates/specs/tool.SPEC.md +1 -0
- package/dist/util/argparse.js +9 -0
- package/package.json +12 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"tool": "mdkg",
|
|
4
|
-
"mdkg_version": "0.
|
|
4
|
+
"mdkg_version": "0.3.1",
|
|
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": "0661196763bf05681523a576fcd0a29138ccc36df4f48dad7ba16a1f4b7b0418"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"path": ".mdkg/skills/build-pack-and-execute-task/SKILL.md",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
{
|
|
152
152
|
"path": ".mdkg/templates/default/receipt.md",
|
|
153
153
|
"category": "template",
|
|
154
|
-
"sha256": "
|
|
154
|
+
"sha256": "516faf98abe421f154d162b18006c7875f1a0025ac4d35cc16df744c13548d9d"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"path": ".mdkg/templates/default/rule.md",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
{
|
|
162
162
|
"path": ".mdkg/templates/default/spec.md",
|
|
163
163
|
"category": "template",
|
|
164
|
-
"sha256": "
|
|
164
|
+
"sha256": "8c96e0b6dafa65acb83a2d84519e05a7354896aec8991c148650e9ec58196c77"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
"path": ".mdkg/templates/default/task.md",
|
|
@@ -176,12 +176,12 @@
|
|
|
176
176
|
{
|
|
177
177
|
"path": ".mdkg/templates/default/work_order.md",
|
|
178
178
|
"category": "template",
|
|
179
|
-
"sha256": "
|
|
179
|
+
"sha256": "5fe376413035f2afe406d13491a597f103a2fce29d137951fe55ae042a1082f5"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"path": ".mdkg/templates/default/work.md",
|
|
183
183
|
"category": "template",
|
|
184
|
-
"sha256": "
|
|
184
|
+
"sha256": "cfc53d3be1d2c31576448d071a579bc3d5d2f6851755e29c20825f6b6764c0aa"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"path": ".mdkg/templates/skills/base.SKILL.md",
|
|
@@ -191,57 +191,57 @@
|
|
|
191
191
|
{
|
|
192
192
|
"path": ".mdkg/templates/specs/agent.SPEC.md",
|
|
193
193
|
"category": "template",
|
|
194
|
-
"sha256": "
|
|
194
|
+
"sha256": "dab10c0ed12aa10a752ee3bd61f263065644826eb950c71a9e3458673edb0ca5"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
"path": ".mdkg/templates/specs/api.SPEC.md",
|
|
198
198
|
"category": "template",
|
|
199
|
-
"sha256": "
|
|
199
|
+
"sha256": "aee86cadcca31a5a015d7e15ad7503c4aa30f2af0079ec03f857b82b3ecbae59"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"path": ".mdkg/templates/specs/base.SPEC.md",
|
|
203
203
|
"category": "template",
|
|
204
|
-
"sha256": "
|
|
204
|
+
"sha256": "6d4171fac00c2f3d8f2a2ac746b8a47c59aaecebe224c3a0046dd6e6974a1d08"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
"path": ".mdkg/templates/specs/capability.SPEC.md",
|
|
208
208
|
"category": "template",
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "68a91e8bbd80d1ff1972e4c31e29f26451d5a1be1d25d414170fdd670010066f"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": ".mdkg/templates/specs/integration.SPEC.md",
|
|
213
213
|
"category": "template",
|
|
214
|
-
"sha256": "
|
|
214
|
+
"sha256": "e907ce6ebc1fa5a455e31e39036e3f8699dccb3d9e45288c8ea025eaec4ca4a2"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"path": ".mdkg/templates/specs/model.SPEC.md",
|
|
218
218
|
"category": "template",
|
|
219
|
-
"sha256": "
|
|
219
|
+
"sha256": "56061a241819dfda4d3022c075f744cf6650f5f52c58cd15b0af9d1f613af4f2"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"path": ".mdkg/templates/specs/
|
|
222
|
+
"path": ".mdkg/templates/specs/project.SPEC.md",
|
|
223
223
|
"category": "template",
|
|
224
|
-
"sha256": "
|
|
224
|
+
"sha256": "386c41852cbb46e7a6ba583a7b0c4126262a56618d8e214aaa601b68d55818b9"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
"path": ".mdkg/templates/specs/
|
|
227
|
+
"path": ".mdkg/templates/specs/runtime-agent.SPEC.md",
|
|
228
228
|
"category": "template",
|
|
229
|
-
"sha256": "
|
|
229
|
+
"sha256": "53af7c3e172f5ed1297f340aca0be5e53302613d2e6bb9145915067d7b0004c8"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"path": ".mdkg/templates/specs/runtime-image.SPEC.md",
|
|
233
233
|
"category": "template",
|
|
234
|
-
"sha256": "
|
|
234
|
+
"sha256": "37416b045cd7733d1f5e1cc629ac9b6616024d5fa52f2bdcd90110267151e593"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"path": ".mdkg/templates/specs/tool.SPEC.md",
|
|
238
238
|
"category": "template",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "05b827bbce4f721ea25beda62850688aff3db644aec65e71b9cf76cad8e5f46f"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"path": "AGENT_START.md",
|
|
243
243
|
"category": "startup_doc",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "cf58e37c72be2593f1d920520dbdc6e316182bfda5c49837443a8b18024504c7"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"path": "AGENTS.md",
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
{
|
|
257
257
|
"path": "CLI_COMMAND_MATRIX.md",
|
|
258
258
|
"category": "startup_doc",
|
|
259
|
-
"sha256": "
|
|
259
|
+
"sha256": "a9a7133e5a7c9a07a6814c679d04637370ea144eac19a6500980a37a2c4199f5"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
"path": "llms.txt",
|
|
@@ -7,8 +7,10 @@ work_order_id: order.example
|
|
|
7
7
|
receipt_status: recorded
|
|
8
8
|
outcome: success
|
|
9
9
|
cost_ref: cost.redacted
|
|
10
|
+
redaction_policy: refs_and_hashes_only
|
|
10
11
|
proof_refs: []
|
|
11
12
|
attestation_refs: []
|
|
13
|
+
evidence_hashes: []
|
|
12
14
|
input_hashes: []
|
|
13
15
|
output_hashes: []
|
|
14
16
|
tags: []
|
|
@@ -38,7 +40,16 @@ archive sidecars.
|
|
|
38
40
|
|
|
39
41
|
# Proof
|
|
40
42
|
|
|
41
|
-
Record non-secret proof, attestation, and hash references.
|
|
43
|
+
Record non-secret proof, attestation, and hash references. `evidence_hashes`
|
|
44
|
+
can hash receipt evidence bundles or redacted proof summaries that are not
|
|
45
|
+
stored directly in this file.
|
|
46
|
+
|
|
47
|
+
# Redaction
|
|
48
|
+
|
|
49
|
+
`redaction_policy` records how this mirror avoids raw secrets and canonical
|
|
50
|
+
runtime state. Use refs, hashes, archive refs, artifact refs, and redacted
|
|
51
|
+
summaries instead of credentials, auth headers, live payment state, ledger
|
|
52
|
+
mutations, marketplace inventory, or production runtime state.
|
|
42
53
|
|
|
43
54
|
# Notes
|
|
44
55
|
|
|
@@ -3,8 +3,9 @@ id: {{id}}
|
|
|
3
3
|
type: spec
|
|
4
4
|
title: {{title}}
|
|
5
5
|
version: 0.1.0
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
spec_kind: capability
|
|
7
|
+
role: tool_service
|
|
8
|
+
runtime_mode: tool_service
|
|
8
9
|
work_contracts: []
|
|
9
10
|
requested_capabilities: []
|
|
10
11
|
skill_refs: []
|
|
@@ -13,7 +14,7 @@ model_refs: []
|
|
|
13
14
|
wasm_component_refs: []
|
|
14
15
|
runtime_image_refs: []
|
|
15
16
|
subagent_refs: []
|
|
16
|
-
resource_profile:
|
|
17
|
+
resource_profile: local_cli
|
|
17
18
|
update_policy: manual
|
|
18
19
|
tags: []
|
|
19
20
|
owners: []
|
|
@@ -28,11 +29,11 @@ updated: {{updated}}
|
|
|
28
29
|
|
|
29
30
|
# Purpose
|
|
30
31
|
|
|
31
|
-
Define the
|
|
32
|
+
Define the reusable capability surface.
|
|
32
33
|
|
|
33
34
|
# Runtime
|
|
34
35
|
|
|
35
|
-
Describe role, runtime mode, resource profile, and update policy.
|
|
36
|
+
Describe the role, runtime mode, resource profile, and update policy.
|
|
36
37
|
|
|
37
38
|
# Work Contracts
|
|
38
39
|
|
|
@@ -40,4 +41,5 @@ List related WORK.md contracts.
|
|
|
40
41
|
|
|
41
42
|
# Capabilities
|
|
42
43
|
|
|
43
|
-
List requested capabilities and
|
|
44
|
+
List requested capabilities and the authority/resource constraints that govern
|
|
45
|
+
use.
|
|
@@ -6,7 +6,7 @@ version: 0.1.0
|
|
|
6
6
|
agent_id: agent.example
|
|
7
7
|
kind: generic
|
|
8
8
|
pricing_model: quoted
|
|
9
|
-
required_capabilities: []
|
|
9
|
+
required_capabilities: [capability.example]
|
|
10
10
|
skill_refs: []
|
|
11
11
|
tool_refs: []
|
|
12
12
|
model_refs: []
|
|
@@ -31,6 +31,10 @@ updated: {{updated}}
|
|
|
31
31
|
|
|
32
32
|
Describe the reusable capability contract.
|
|
33
33
|
|
|
34
|
+
Replace `capability.example` with at least one concrete required capability or
|
|
35
|
+
add an explicit dependency ref such as `skill_refs`, `tool_refs`, `model_refs`,
|
|
36
|
+
`wasm_component_refs`, `runtime_image_refs`, or `subagent_refs`.
|
|
37
|
+
|
|
34
38
|
This file is a semantic mirror for discovery and review. Do not store raw
|
|
35
39
|
secrets, credentials, live payment state, ledger mutations, marketplace
|
|
36
40
|
inventory, or canonical execution state here.
|
|
@@ -8,7 +8,10 @@ work_version: 0.1.0
|
|
|
8
8
|
requester: user.example
|
|
9
9
|
order_status: submitted
|
|
10
10
|
request_ref: request.example
|
|
11
|
+
trigger_ref: trigger.manual
|
|
12
|
+
payload_hash: sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
|
11
13
|
input_refs: []
|
|
14
|
+
queue_refs: []
|
|
12
15
|
requested_outputs: [result:text:required]
|
|
13
16
|
constraint_refs: []
|
|
14
17
|
artifact_policy: commit_sidecar_and_zip
|
|
@@ -27,6 +30,9 @@ updated: {{updated}}
|
|
|
27
30
|
|
|
28
31
|
Capture the concrete request against a WORK.md version.
|
|
29
32
|
|
|
33
|
+
`payload_hash` should be the stable sha256 of the redacted trigger payload or
|
|
34
|
+
request mirror used to create this order.
|
|
35
|
+
|
|
30
36
|
This file is a committed semantic mirror, not the canonical execution database.
|
|
31
37
|
Do not store raw secrets, credentials, live payment state, ledger mutations,
|
|
32
38
|
marketplace inventory, or bulky payloads here.
|
|
@@ -37,6 +43,11 @@ Record committed input references without secrets. Use `archive://...` for mdkg
|
|
|
37
43
|
archive sidecars and `artifact://...` for external or runtime-managed artifact
|
|
38
44
|
identities.
|
|
39
45
|
|
|
46
|
+
# Queue refs
|
|
47
|
+
|
|
48
|
+
Queue refs are optional delivery-state pointers. They are not canonical runtime
|
|
49
|
+
state.
|
|
50
|
+
|
|
40
51
|
# Requested Outputs
|
|
41
52
|
|
|
42
53
|
Document the output descriptors requested from the work contract.
|
|
@@ -1,16 +1,37 @@
|
|
|
1
1
|
---
|
|
2
2
|
extends: base.SPEC.md
|
|
3
3
|
template_kind: agent
|
|
4
|
+
spec_kind: agent
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Agent Role
|
|
7
8
|
|
|
8
9
|
Define the durable agent role and trigger conditions.
|
|
9
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
|
+
|
|
10
27
|
# Allowed Resources
|
|
11
28
|
|
|
12
29
|
- Resources the agent may read or write.
|
|
13
30
|
|
|
31
|
+
# Allowed Capabilities
|
|
32
|
+
|
|
33
|
+
- Capability ids and optional generic capability URIs.
|
|
34
|
+
|
|
14
35
|
# Forbidden Actions
|
|
15
36
|
|
|
16
37
|
- Actions this agent must never perform.
|
|
@@ -27,13 +48,33 @@ Define the durable agent role and trigger conditions.
|
|
|
27
48
|
|
|
28
49
|
- Attempt, validation, and final evidence requirements.
|
|
29
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
|
+
|
|
30
63
|
# Escalation Behavior
|
|
31
64
|
|
|
32
65
|
- When to stop, ask, or return a blocker.
|
|
33
66
|
|
|
67
|
+
# Failure Modes
|
|
68
|
+
|
|
69
|
+
- Ambiguous scope.
|
|
70
|
+
- Conflicting writers.
|
|
71
|
+
- Invalid or stale context.
|
|
72
|
+
- Validation failure.
|
|
73
|
+
- Missing final receipt.
|
|
74
|
+
|
|
34
75
|
# Projection Targets
|
|
35
76
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
77
|
+
- Tool-specific agent manifest.
|
|
78
|
+
- Future runtime agent manifest.
|
|
79
|
+
- Future workflow/runtime capability object.
|
|
80
|
+
- Future workflow/runtime agent definition.
|
|
@@ -3,8 +3,9 @@ id: {{spec_id}}
|
|
|
3
3
|
type: spec
|
|
4
4
|
title: {{title}}
|
|
5
5
|
version: 0.1.0
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
spec_kind: capability
|
|
7
|
+
role: {{role}}
|
|
8
|
+
runtime_mode: {{runtime_mode}}
|
|
8
9
|
work_contracts: []
|
|
9
10
|
requested_capabilities: []
|
|
10
11
|
skill_refs: []
|
|
@@ -34,21 +35,40 @@ Name, stable id, owner, status, and source mdkg nodes.
|
|
|
34
35
|
|
|
35
36
|
What durable capability or contract this SPEC defines.
|
|
36
37
|
|
|
37
|
-
#
|
|
38
|
+
# Authority Boundary
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
Who or what is allowed to make decisions, mutate state, delegate work, or accept
|
|
41
|
+
evidence under this SPEC.
|
|
40
42
|
|
|
41
|
-
#
|
|
43
|
+
# Resource Boundary
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
Included behavior, resources, paths, graph nodes, queues, services, and
|
|
46
|
+
explicit non-authorities.
|
|
44
47
|
|
|
45
|
-
# Resource URIs
|
|
48
|
+
# Optional Resource URIs
|
|
46
49
|
|
|
47
|
-
- Optional draft URI: `
|
|
50
|
+
- Optional generic draft URI: `resource://...`
|
|
51
|
+
- Optional mdkg draft URI: `mdkg://resource/...`
|
|
48
52
|
|
|
49
53
|
# Capabilities
|
|
50
54
|
|
|
51
|
-
- Capability id
|
|
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:
|
|
52
72
|
|
|
53
73
|
# Inputs
|
|
54
74
|
|
|
@@ -58,13 +78,21 @@ What this SPEC explicitly does not define.
|
|
|
58
78
|
|
|
59
79
|
- Required output or receipt contract.
|
|
60
80
|
|
|
81
|
+
# Receipts / Evidence
|
|
82
|
+
|
|
83
|
+
- Attempt evidence:
|
|
84
|
+
- Validation evidence:
|
|
85
|
+
- Final receipt or closeout evidence:
|
|
86
|
+
- Aggregate checkpoint policy:
|
|
87
|
+
|
|
61
88
|
# Dependencies
|
|
62
89
|
|
|
63
90
|
- Other specs, skills, tools, models, services, or runtime images.
|
|
64
91
|
|
|
65
|
-
# Security
|
|
92
|
+
# Security / Privacy
|
|
66
93
|
|
|
67
94
|
- Authority, secret, data, and mutation boundaries.
|
|
95
|
+
- No raw secrets, credentials, local auth state, or production controls.
|
|
68
96
|
|
|
69
97
|
# Validation Checks
|
|
70
98
|
|
|
@@ -76,11 +104,16 @@ What this SPEC explicitly does not define.
|
|
|
76
104
|
|
|
77
105
|
# Projection Targets
|
|
78
106
|
|
|
79
|
-
-
|
|
107
|
+
- Runtime manifest, package metadata, API contract, tool manifest, or protocol
|
|
108
|
+
projection.
|
|
80
109
|
|
|
81
110
|
# Versioning
|
|
82
111
|
|
|
83
|
-
- Compatibility
|
|
112
|
+
- Compatibility rules.
|
|
113
|
+
|
|
114
|
+
# Change Policy
|
|
115
|
+
|
|
116
|
+
- Who can change this SPEC and what validation is required.
|
|
84
117
|
|
|
85
118
|
# Open Questions
|
|
86
119
|
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
---
|
|
2
2
|
extends: base.SPEC.md
|
|
3
3
|
template_kind: capability
|
|
4
|
+
spec_kind: capability
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Capability Name
|
|
7
8
|
|
|
8
9
|
Stable mdkg capability id.
|
|
9
10
|
|
|
10
|
-
#
|
|
11
|
+
# Optional Capability URI
|
|
11
12
|
|
|
12
|
-
Optional: `
|
|
13
|
+
Optional generic URI: `capability://...`
|
|
14
|
+
|
|
15
|
+
Optional mdkg URI: `mdkg://capability/...`
|
|
13
16
|
|
|
14
17
|
# Resource Types
|
|
15
18
|
|
|
16
|
-
- Optional
|
|
19
|
+
- Optional generic resource URI: `resource://...`
|
|
20
|
+
- Optional mdkg resource URI: `mdkg://resource/...`
|
|
17
21
|
|
|
18
22
|
# Allowed Principals
|
|
19
23
|
|
|
20
24
|
- Roles or agents allowed to use this capability.
|
|
21
25
|
|
|
26
|
+
# Required Policy Context
|
|
27
|
+
|
|
28
|
+
- Preconditions, policy refs, scopes, or approval state required before use.
|
|
29
|
+
|
|
22
30
|
# Delegation Rules
|
|
23
31
|
|
|
24
32
|
- Whether and how the capability can be delegated.
|
|
@@ -30,3 +38,8 @@ Optional: `omni://capability/...`
|
|
|
30
38
|
# Audit Events
|
|
31
39
|
|
|
32
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.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
extends: base.SPEC.md
|
|
3
3
|
template_kind: project
|
|
4
|
+
spec_kind: project_service
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Project Role
|
|
@@ -15,7 +16,19 @@ Describe the repo/service responsibility and non-authorities.
|
|
|
15
16
|
|
|
16
17
|
# Owned Capabilities
|
|
17
18
|
|
|
18
|
-
- Capability ids and optional
|
|
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.
|
|
19
32
|
|
|
20
33
|
# Integration Boundaries
|
|
21
34
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
extends: agent.SPEC.md
|
|
3
|
-
template_kind:
|
|
3
|
+
template_kind: runtime_agent
|
|
4
|
+
spec_kind: runtime_agent
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Queue Ownership
|
|
@@ -9,7 +10,8 @@ template_kind: omniruntime_agent
|
|
|
9
10
|
|
|
10
11
|
# Trigger Kinds
|
|
11
12
|
|
|
12
|
-
- User message, scheduled job, API event, mdkg queue event,
|
|
13
|
+
- User message, scheduled job, API event, mdkg queue event, runtime event, or
|
|
14
|
+
internal retry.
|
|
13
15
|
|
|
14
16
|
# Sandbox Requirements
|
|
15
17
|
|
|
@@ -23,8 +25,10 @@ template_kind: omniruntime_agent
|
|
|
23
25
|
|
|
24
26
|
- Repo, graph, branch, or room keys that serialize writes.
|
|
25
27
|
|
|
26
|
-
#
|
|
28
|
+
# Receipt Lifecycle
|
|
27
29
|
|
|
30
|
+
- TriggerEvent contract.
|
|
31
|
+
- AgentRun contract.
|
|
28
32
|
- AttemptReceipt contract.
|
|
29
33
|
- ValidationReceipt contract.
|
|
30
34
|
- FinalReceipt contract.
|
|
@@ -37,3 +41,9 @@ template_kind: omniruntime_agent
|
|
|
37
41
|
|
|
38
42
|
- Aggregate-safe stats and improvement proposals only unless a runtime spec says
|
|
39
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.
|
package/dist/util/argparse.js
CHANGED
|
@@ -61,20 +61,28 @@ const VALUE_FLAGS = new Set([
|
|
|
61
61
|
"--work-id",
|
|
62
62
|
"--requester",
|
|
63
63
|
"--request-ref",
|
|
64
|
+
"--trigger-ref",
|
|
65
|
+
"--payload-hash",
|
|
64
66
|
"--input-refs",
|
|
67
|
+
"--queue-refs",
|
|
65
68
|
"--requested-outputs",
|
|
66
69
|
"--constraint-refs",
|
|
70
|
+
"--add-queue-refs",
|
|
71
|
+
"--enqueue",
|
|
67
72
|
"--receipt-status",
|
|
68
73
|
"--work-order-id",
|
|
69
74
|
"--outcome",
|
|
70
75
|
"--cost-ref",
|
|
76
|
+
"--redaction-policy",
|
|
71
77
|
"--proof-refs",
|
|
72
78
|
"--attestation-refs",
|
|
79
|
+
"--evidence-hashes",
|
|
73
80
|
"--input-hashes",
|
|
74
81
|
"--output-hashes",
|
|
75
82
|
"--add-input-refs",
|
|
76
83
|
"--add-proof-refs",
|
|
77
84
|
"--add-attestation-refs",
|
|
85
|
+
"--add-evidence-hashes",
|
|
78
86
|
"--notes",
|
|
79
87
|
"--agent",
|
|
80
88
|
"--skill",
|
|
@@ -86,6 +94,7 @@ const VALUE_FLAGS = new Set([
|
|
|
86
94
|
"--requires",
|
|
87
95
|
"--target",
|
|
88
96
|
"--snapshot",
|
|
97
|
+
"--family",
|
|
89
98
|
]);
|
|
90
99
|
const BOOLEAN_FLAGS = new Set([
|
|
91
100
|
"--tolerant",
|