mdkg 0.4.0 → 0.4.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.
@@ -80,8 +80,9 @@ intentionally with `mdkg new task ...` or `mdkg new test ...`.
80
80
  Agent workflow docs can use semantic ids:
81
81
 
82
82
  ```bash
83
- mdkg new manifest "image worker" --id agent.image-worker
84
- mdkg new work "generate image" --id work.generate-image
83
+ mdkg new manifest "image worker" --id agent.image-worker --contract-profile generic
84
+ mdkg new work "generate image" --id work.generate-image --contract-profile generic
85
+ mdkg work validate --profile omni-room --json
85
86
  ```
86
87
 
87
88
  `MANIFEST.md` is optional. Repos without manifest files still validate. When
@@ -92,6 +93,14 @@ release, and `mdkg spec list/show/validate` remains a deprecated alias for
92
93
  read-only discovery surface for skills, manifests, WORK contracts, core docs,
93
94
  and design docs.
94
95
 
96
+ Agent workflow files may include optional generic mirror fields such as
97
+ `contract_profile`, `validation_policy_ref`, `evidence_policy_ref`,
98
+ `receipt_kind`, and `redaction_class`. mdkg validates those mirrors and can run
99
+ profile checks such as `mdkg validate --profile omni-room` and
100
+ `mdkg work validate --profile omni-room`; downstream runtimes still own queue
101
+ execution, room ids, provider state, billing or ledger state, and final receipt
102
+ authority.
103
+
95
104
  Read `AGENT_START.md` first when this repo includes it.
96
105
 
97
106
  ## Pack Profiles
@@ -229,10 +238,10 @@ mdkg archive verify archive://archive.example
229
238
  Use work lifecycle helpers for semantic mirrors only:
230
239
 
231
240
  ```bash
232
- mdkg work contract new "example capability" --id work.example --agent-id agent.example --kind example --inputs prompt:text:required --outputs result:text:required
241
+ mdkg work contract new "example capability" --id work.example --agent-id agent.example --kind example --contract-profile generic --inputs prompt:text:required --outputs result:text:required
233
242
  mdkg work trigger work.example --id order.example-1 --requester user://example
234
243
  mdkg work order status order.example-1 --json
235
- mdkg work receipt new "example receipt" --id receipt.example-1 --work-order-id order.example-1 --outcome success
244
+ mdkg work receipt new "example receipt" --id receipt.example-1 --work-order-id order.example-1 --outcome success --contract-profile generic --receipt-kind worker --redaction-class internal
236
245
  mdkg work receipt verify receipt.example-1 --json
237
246
  ```
238
247
 
@@ -249,7 +258,7 @@ Update and artifact commands accept local ids or local qids; subgraph qids are r
249
258
  `mdkg work trigger` creates a deterministic submitted `WORK_ORDER.md` from a
250
259
  WORK contract or a SPEC with exactly one resolvable work contract. `mdkg work
251
260
  order status` and `mdkg work receipt verify` are read-only review helpers.
252
- `mdkg work validate [<id-or-qid>] [--type spec|work|work_order|receipt|feedback|dispute|proposal] --json`
261
+ `mdkg work validate [<id-or-qid>] [--type manifest|spec|work|work_order|receipt|feedback|dispute|proposal] [--profile omni-room] --json`
253
262
  is a read-only focused validator for agent workflow mirrors with typed diagnostics
254
263
  and raw secret, prompt, token, or payload marker warnings.
255
264
  `mdkg work trigger --enqueue <queue>` optionally writes a local project DB queue
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "tool": "mdkg",
4
- "mdkg_version": "0.4.0",
4
+ "mdkg_version": "0.4.1",
5
5
  "files": [
6
6
  {
7
7
  "path": ".mdkg/config.json",
@@ -66,12 +66,12 @@
66
66
  {
67
67
  "path": ".mdkg/README.md",
68
68
  "category": "mdkg_doc",
69
- "sha256": "faaf4bb697eded7c6baf6cb44a2a6c04feabfc250cac3bcb4be6b95e7a3bb02a"
69
+ "sha256": "44e8030ee0642fe9c95589c2f4ece6ab7336d0c6691107bfdf59cebdba5de2ae"
70
70
  },
71
71
  {
72
72
  "path": ".mdkg/skills/author-mdkg-skill/SKILL.md",
73
73
  "category": "default_skill",
74
- "sha256": "9ea196cb778e6a777c945b3bba9d51c7574602f413e9a1d5e01e2b95918c0873"
74
+ "sha256": "ffacd8b8412ab5453b53d91a192f27e0458da4591f80d82d4933805a6fb5a05d"
75
75
  },
76
76
  {
77
77
  "path": ".mdkg/skills/build-pack-and-execute-task/SKILL.md",
@@ -146,7 +146,7 @@
146
146
  {
147
147
  "path": ".mdkg/templates/default/manifest.md",
148
148
  "category": "template",
149
- "sha256": "2ff2af58cae6a0381a66949d7d9e997fac6486da85171b09096c43663889da95"
149
+ "sha256": "a7d758cbe2a51c4889fef39bf91d67f67895f55bcd851d1e02e52f8b2a5a6f2c"
150
150
  },
151
151
  {
152
152
  "path": ".mdkg/templates/default/prd.md",
@@ -166,7 +166,7 @@
166
166
  {
167
167
  "path": ".mdkg/templates/default/receipt.md",
168
168
  "category": "template",
169
- "sha256": "516faf98abe421f154d162b18006c7875f1a0025ac4d35cc16df744c13548d9d"
169
+ "sha256": "5ffbba7d9ad11193bf65830e4be5b3c04c0fe3aa81a4e473a849cd321644a383"
170
170
  },
171
171
  {
172
172
  "path": ".mdkg/templates/default/rule.md",
@@ -176,7 +176,7 @@
176
176
  {
177
177
  "path": ".mdkg/templates/default/spec.md",
178
178
  "category": "template",
179
- "sha256": "8c96e0b6dafa65acb83a2d84519e05a7354896aec8991c148650e9ec58196c77"
179
+ "sha256": "2f00af67cf357f6a15a97bf175e6422d8c84d1fcf0e21977b1134e898378677e"
180
180
  },
181
181
  {
182
182
  "path": ".mdkg/templates/default/spike.md",
@@ -196,12 +196,12 @@
196
196
  {
197
197
  "path": ".mdkg/templates/default/work_order.md",
198
198
  "category": "template",
199
- "sha256": "5fe376413035f2afe406d13491a597f103a2fce29d137951fe55ae042a1082f5"
199
+ "sha256": "d42460ae996f5f309d8666019c24d7b236947bc8a64cff6d4eff61b1d6e46216"
200
200
  },
201
201
  {
202
202
  "path": ".mdkg/templates/default/work.md",
203
203
  "category": "template",
204
- "sha256": "cfc53d3be1d2c31576448d071a579bc3d5d2f6851755e29c20825f6b6764c0aa"
204
+ "sha256": "1ab3c4c79ecdaff2b76007bfbb9844bf581da592f70ac2a2475594b9c279d7cd"
205
205
  },
206
206
  {
207
207
  "path": ".mdkg/templates/skills/base.SKILL.md",
@@ -231,12 +231,12 @@
231
231
  {
232
232
  "path": ".mdkg/templates/specs/base.MANIFEST.md",
233
233
  "category": "template",
234
- "sha256": "056c4ccf8285db72c8befdc6acd165d625dbe892d70e89ce586f081db8e250fc"
234
+ "sha256": "4d5fe98b388e9183c9577438e49c375e86d58314130c668be4695f124ea8c37c"
235
235
  },
236
236
  {
237
237
  "path": ".mdkg/templates/specs/base.SPEC.md",
238
238
  "category": "template",
239
- "sha256": "6d4171fac00c2f3d8f2a2ac746b8a47c59aaecebe224c3a0046dd6e6974a1d08"
239
+ "sha256": "43d8b7726560c6245b2927ed5242dc872c394f16fb3dc9c3e58076766270ff5d"
240
240
  },
241
241
  {
242
242
  "path": ".mdkg/templates/specs/capability.MANIFEST.md",
@@ -311,7 +311,7 @@
311
311
  {
312
312
  "path": "AGENT_START.md",
313
313
  "category": "startup_doc",
314
- "sha256": "91e31ae818b29f62ebe77ac24f7e1a2bd10a4fedfc1684da935f0849aaf6d200"
314
+ "sha256": "c387ce4fee55eafca09bcd30f32e4d7dc8ee7f9cc9811c1adffa0756c9423a35"
315
315
  },
316
316
  {
317
317
  "path": "AGENTS.md",
@@ -326,7 +326,7 @@
326
326
  {
327
327
  "path": "CLI_COMMAND_MATRIX.md",
328
328
  "category": "startup_doc",
329
- "sha256": "82c509b91498131304ff2bc94bb7eb2f29c3c207a00bc8bcaf8a6ab52ff9e689"
329
+ "sha256": "7a71fa553e38395caae5f18ecb9650911c56a019b25e793addc20701e5df5a9e"
330
330
  },
331
331
  {
332
332
  "path": "llms.txt",
@@ -62,6 +62,8 @@ For MANIFEST.md output, include:
62
62
  - Source mdkg nodes
63
63
  - Resource URIs
64
64
  - Capabilities
65
+ - Contract profile, validation policy refs, and evidence policy refs when a
66
+ downstream runtime or workflow profile needs generic semantic mirrors
65
67
  - Inputs
66
68
  - Outputs
67
69
  - Dependencies
@@ -94,14 +96,17 @@ For MANIFEST.md output, include:
94
96
  10. Distinguish durable source from projection:
95
97
  mdkg/MANIFEST/SKILL is source; `.codex/agents`, future runtime manifests, and
96
98
  protocol resources are projections.
97
- 11. Add validation checks and closeout evidence to every authored or revised
99
+ 11. Treat contract-profile fields as generic mdkg validation mirrors only.
100
+ Downstream runtimes own execution semantics, queue state, provider state, and
101
+ final receipt authority.
102
+ 12. Add validation checks and closeout evidence to every authored or revised
98
103
  SKILL/MANIFEST.
99
- 12. If input is incomplete, create repair tasks instead of guessing.
100
- 13. Validate the new or updated skill with `mdkg skill validate <slug>`.
101
- 14. If the skill changes the public workflow, update `AGENT_START.md`,
104
+ 13. If input is incomplete, create repair tasks instead of guessing.
105
+ 14. Validate the new or updated skill with `mdkg skill validate <slug>`.
106
+ 15. If the skill changes the public workflow, update `AGENT_START.md`,
102
107
  `CLI_COMMAND_MATRIX.md`, root onboarding docs, and the skill registry in the
103
108
  same pass.
104
- 15. When mirrored skill folders are enabled, run `mdkg skill sync` after broad
109
+ 16. When mirrored skill folders are enabled, run `mdkg skill sync` after broad
105
110
  manual changes so every configured `.mdkg/config.json`
106
111
  `customization.skill_mirrors.targets` path stays current. The default
107
112
  targets are `.agents/skills/` and `.claude/skills/`; other agent-local
@@ -7,6 +7,9 @@ spec_kind: capability
7
7
  role: tool_service
8
8
  runtime_mode: tool_service
9
9
  work_contracts: []
10
+ contract_profile: generic
11
+ validation_policy_ref: policy.validation.default
12
+ evidence_policy_ref: policy.evidence.default
10
13
  requested_capabilities: []
11
14
  skill_refs: []
12
15
  tool_refs: []
@@ -8,6 +8,11 @@ receipt_status: recorded
8
8
  outcome: success
9
9
  cost_ref: cost.redacted
10
10
  redaction_policy: refs_and_hashes_only
11
+ contract_profile: generic
12
+ receipt_kind: worker
13
+ redaction_class: internal
14
+ validation_policy_ref: policy.validation.default
15
+ evidence_policy_ref: policy.evidence.default
11
16
  proof_refs: []
12
17
  attestation_refs: []
13
18
  evidence_hashes: []
@@ -7,6 +7,9 @@ spec_kind: capability
7
7
  role: tool_service
8
8
  runtime_mode: tool_service
9
9
  work_contracts: []
10
+ contract_profile: generic
11
+ validation_policy_ref: policy.validation.default
12
+ evidence_policy_ref: policy.evidence.default
10
13
  requested_capabilities: []
11
14
  skill_refs: []
12
15
  tool_refs: []
@@ -5,6 +5,7 @@ title: {{title}}
5
5
  version: 0.1.0
6
6
  agent_id: agent.example
7
7
  kind: generic
8
+ contract_profile: generic
8
9
  pricing_model: quoted
9
10
  required_capabilities: [capability.example]
10
11
  skill_refs: []
@@ -10,6 +10,9 @@ order_status: submitted
10
10
  request_ref: request.example
11
11
  trigger_ref: trigger.manual
12
12
  payload_hash: sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
13
+ contract_profile: generic
14
+ validation_policy_ref: policy.validation.default
15
+ evidence_policy_ref: policy.evidence.default
13
16
  input_refs: []
14
17
  queue_refs: []
15
18
  requested_outputs: [result:text:required]
@@ -7,6 +7,9 @@ spec_kind: capability
7
7
  role: {{role}}
8
8
  runtime_mode: {{runtime_mode}}
9
9
  work_contracts: []
10
+ contract_profile: generic
11
+ validation_policy_ref: policy.validation.default
12
+ evidence_policy_ref: policy.evidence.default
10
13
  requested_capabilities: []
11
14
  skill_refs: []
12
15
  tool_refs: []
@@ -7,6 +7,9 @@ spec_kind: capability
7
7
  role: {{role}}
8
8
  runtime_mode: {{runtime_mode}}
9
9
  work_contracts: []
10
+ contract_profile: generic
11
+ validation_policy_ref: policy.validation.default
12
+ evidence_policy_ref: policy.evidence.default
10
13
  requested_capabilities: []
11
14
  skill_refs: []
12
15
  tool_refs: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdkg",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Git-native project memory for AI coding agents",
5
5
  "license": "MIT",
6
6
  "bin": {