Publish DCP v1 conformance corpus (25 cases: 7 accept / 18 reject) + dataset card
Browse files- README.md +72 -0
- cases.jsonl +25 -0
- corpus/invalid/bad-dcp-version.json +18 -0
- corpus/invalid/bad-extension-key.json +21 -0
- corpus/invalid/bad-id-pattern.json +18 -0
- corpus/invalid/delta-nested-object.json +19 -0
- corpus/invalid/entity-shape-violation.json +17 -0
- corpus/invalid/envelope-extra-field.json +19 -0
- corpus/invalid/envelope-missing-message-id.json +17 -0
- corpus/invalid/event-empty-payload.json +12 -0
- corpus/invalid/job-delta-nested-object.json +13 -0
- corpus/invalid/job-extension-no-prefix.json +14 -0
- corpus/invalid/job-lease-field-toplevel.json +14 -0
- corpus/invalid/job-mismatch-open-verb.json +13 -0
- corpus/invalid/message-type-mismatch.json +18 -0
- corpus/invalid/message-type-no-dot.json +18 -0
- corpus/invalid/non-namespaced-extension.json +21 -0
- corpus/invalid/ref-forbidden-rel.json +18 -0
- corpus/invalid/timestamp-with-offset.json +18 -0
- corpus/invalid/unknown-entity-type.json +18 -0
- corpus/manifest.json +157 -0
- corpus/valid/event-only-delta.json +18 -0
- corpus/valid/event-only-refs.json +18 -0
- corpus/valid/extensions-namespaced.json +27 -0
- corpus/valid/job-requeued-same-entity.json +31 -0
- corpus/valid/minimal-task-created.json +18 -0
- corpus/valid/unknown-status-tolerated.json +18 -0
- corpus/valid/unknown-verb-tolerated.json +18 -0
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: DCP v1 Conformance Corpus
|
| 6 |
+
tags:
|
| 7 |
+
- json-schema
|
| 8 |
+
- validation
|
| 9 |
+
- conformance
|
| 10 |
+
- ai-agents
|
| 11 |
+
- multi-agent
|
| 12 |
+
- agent-protocols
|
| 13 |
+
- interoperability
|
| 14 |
+
size_categories:
|
| 15 |
+
- n<1K
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files: cases.jsonl
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# DCP v1 Conformance Corpus
|
| 22 |
+
|
| 23 |
+
The official, language-neutral conformance test corpus of the **[Development Coordination Protocol (DCP)](https://devcopro.org)** — an open, vendor-neutral vocabulary for exchanging *project-coordination events* (a task completed, a decision recorded, a finding raised…) between AI agents and humans.
|
| 24 |
+
|
| 25 |
+
A DCP implementation, in **any language**, is conformant when it **accepts every `accept` case and rejects every `reject` case** in this corpus, validating each payload as a `DcpMessage` against the [DCP v1 JSON Schemas](https://schemas.devcopro.org/v1/dcp-message.schema.json) (JSON Schema 2020-12) **plus** the one cross-field rule schemas cannot express: `message_type` must equal `<body.entity_type>.<body.verb>` — on conflict, the body wins and the message is malformed.
|
| 26 |
+
|
| 27 |
+
## Contents
|
| 28 |
+
|
| 29 |
+
- **`cases.jsonl`** — all 25 cases (7 accept / 18 reject), one JSON object per line:
|
| 30 |
+
`case`, `file`, `expect` (`accept`/`reject`), `schema`, `note` (what the case probes), and the full `payload`.
|
| 31 |
+
- **`corpus/`** — the same corpus in its original layout: `valid/`, `invalid/`, and `manifest.json` (the machine-readable case list an implementation iterates).
|
| 32 |
+
|
| 33 |
+
## Quick start
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from datasets import load_dataset
|
| 37 |
+
|
| 38 |
+
cases = load_dataset("DevCoPro/dcp-conformance-corpus", split="train")
|
| 39 |
+
for case in cases:
|
| 40 |
+
result = my_validator(case["payload"]) # your implementation
|
| 41 |
+
assert result.ok == (case["expect"] == "accept"), case["case"]
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Or language-neutral, straight from the original layout: iterate `corpus/manifest.json`, validate each `file` against the schema base `https://schemas.devcopro.org/v1/`, and compare with `expect`.
|
| 45 |
+
|
| 46 |
+
## What DCP is (and deliberately is not)
|
| 47 |
+
|
| 48 |
+
DCP standardizes **what changed in a project** — over a closed set of 8 coordination entities (Project, Task, Dependency, ArchitectureImpact, Decision, ReviewRequest, Finding, Milestone) with an open verb vocabulary. Its prime directive: **"DCP carries no trust; it describes project-state changes only."** It never authenticates, routes, plans, schedules, or executes — those belong to other layers, which is exactly why it composes with the rest of the 2026 agent-protocol stack:
|
| 49 |
+
|
| 50 |
+
- **[CloudEvents binding](https://devcopro.org/how-to/dcp-over-cloudevents/)** (normative) — a `DcpMessage` rides unchanged as CE `data`.
|
| 51 |
+
- **[A2A community extension](https://devcopro.org/a2a/dcp/v1/)** — DCP events in an A2A DataPart.
|
| 52 |
+
- MCP connects agents to tools; DCP is the payload vocabulary for the coordination conversation itself.
|
| 53 |
+
|
| 54 |
+
## Links
|
| 55 |
+
|
| 56 |
+
- Spec & docs: **https://devcopro.org** · [Specification](https://devcopro.org/spec/) · [Quickstart](https://devcopro.org/quickstart/)
|
| 57 |
+
- Source repository: **https://github.com/TokonoMix/development-coordination-protocol** (Apache-2.0 / CC-BY-4.0)
|
| 58 |
+
- Canonical schemas: https://schemas.devcopro.org/v1/dcp-message.schema.json (offline bundle + SHA256SUMS available)
|
| 59 |
+
|
| 60 |
+
## Citation
|
| 61 |
+
|
| 62 |
+
```bibtex
|
| 63 |
+
@misc{dcp-conformance-corpus,
|
| 64 |
+
title = {DCP v1 Conformance Corpus},
|
| 65 |
+
author = {{InterIP Networks}},
|
| 66 |
+
year = {2026},
|
| 67 |
+
url = {https://huggingface.co/datasets/DevCoPro/dcp-conformance-corpus},
|
| 68 |
+
note = {Conformance test corpus for the Development Coordination Protocol v1.0.0-draft}
|
| 69 |
+
}
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Maintained by Mesut Kalkan (founding maintainer, InterIP Networks). Licensed Apache-2.0, same as the DCP schemas and examples.
|
cases.jsonl
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"case": "minimal-task-created", "file": "valid/minimal-task-created.json", "expect": "accept", "schema": "dcp-message", "note": "Only required fields present.", "payload": {"dcp_version": "1.0", "message_id": "msg_min0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 2 |
+
{"case": "event-only-refs", "file": "valid/event-only-refs.json", "expect": "accept", "schema": "dcp-message", "note": "Event payload satisfied by refs alone.", "payload": {"dcp_version": "1.0", "message_id": "msg_refs001", "message_type": "task.updated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_refs001", "entity_type": "task", "verb": "updated", "entity_id": "task_x", "refs": [{"rel": "relates_to", "ref": "task_y"}]}}}
|
| 3 |
+
{"case": "event-only-delta", "file": "valid/event-only-delta.json", "expect": "accept", "schema": "dcp-message", "note": "Event payload satisfied by delta alone.", "payload": {"dcp_version": "1.0", "message_id": "msg_delta01", "message_type": "task.status_changed", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_delta01", "entity_type": "task", "verb": "status_changed", "entity_id": "task_x", "delta": {"status": {"from": "todo", "to": "in_progress"}}}}}
|
| 4 |
+
{"case": "unknown-verb-tolerated", "file": "valid/unknown-verb-tolerated.json", "expect": "accept", "schema": "dcp-message", "note": "Unknown verb 'archived' must be tolerated (forward-compat).", "payload": {"dcp_version": "1.0", "message_id": "msg_uverb01", "message_type": "task.archived", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_uverb01", "entity_type": "task", "verb": "archived", "entity_id": "task_x", "refs": [{"rel": "relates_to", "ref": "project_x"}]}}}
|
| 5 |
+
{"case": "unknown-status-tolerated", "file": "valid/unknown-status-tolerated.json", "expect": "accept", "schema": "dcp-message", "note": "Unknown status 'on_hold' must be tolerated (forward-compat).", "payload": {"dcp_version": "1.0", "message_id": "msg_ustat01", "message_type": "task.snapshot", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_ustat01", "entity_type": "task", "verb": "snapshot", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "on_hold"}}}}
|
| 6 |
+
{"case": "extensions-namespaced", "file": "valid/extensions-namespaced.json", "expect": "accept", "schema": "dcp-message", "note": "Namespaced x- extensions on envelope and entity.", "payload": {"dcp_version": "1.0", "message_id": "msg_ext0001", "message_type": "project.snapshot", "issued_at": "2026-06-29T10:00:00Z", "extensions": {"x-tokonomix": {"council_run_id": "run_123"}}, "body": {"event_id": "evt_ext0001", "entity_type": "project", "verb": "snapshot", "entity_id": "project_x", "entity": {"id": "project_x", "name": "P", "status": "active", "extensions": {"x-github": {"issue": 7}}}}}}
|
| 7 |
+
{"case": "envelope-extra-field", "file": "invalid/envelope-extra-field.json", "expect": "reject", "schema": "dcp-message", "note": "Unknown top-level field violates additionalProperties:false on the envelope core.", "payload": {"dcp_version": "1.0", "message_id": "msg_bad0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}, "foo": "bar"}}
|
| 8 |
+
{"case": "envelope-missing-message-id", "file": "invalid/envelope-missing-message-id.json", "expect": "reject", "schema": "dcp-message", "note": "message_id is required.", "payload": {"dcp_version": "1.0", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 9 |
+
{"case": "message-type-mismatch", "file": "invalid/message-type-mismatch.json", "expect": "reject", "schema": "dcp-message", "note": "message_type must equal '<entity_type>.<verb>'.", "payload": {"dcp_version": "1.0", "message_id": "msg_mt0001", "message_type": "task.updated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 10 |
+
{"case": "event-empty-payload", "file": "invalid/event-empty-payload.json", "expect": "reject", "schema": "dcp-message", "note": "Event must carry at least one of entity/delta/refs.", "payload": {"dcp_version": "1.0", "message_id": "msg_empty01", "message_type": "task.updated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_empty01", "entity_type": "task", "verb": "updated", "entity_id": "task_x"}}}
|
| 11 |
+
{"case": "bad-id-pattern", "file": "invalid/bad-id-pattern.json", "expect": "reject", "schema": "dcp-message", "note": "entity_id must match the opaque id pattern.", "payload": {"dcp_version": "1.0", "message_id": "msg_badid01", "message_type": "task.updated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_refs001", "entity_type": "task", "verb": "updated", "entity_id": "Task 42", "refs": [{"rel": "relates_to", "ref": "task_y"}]}}}
|
| 12 |
+
{"case": "non-namespaced-extension", "file": "invalid/non-namespaced-extension.json", "expect": "reject", "schema": "dcp-message", "note": "Extension keys must match '^x-<vendor>$'.", "payload": {"dcp_version": "1.0", "message_id": "msg_ns0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}, "extensions": {"foo": {}}}}
|
| 13 |
+
{"case": "bad-extension-key", "file": "invalid/bad-extension-key.json", "expect": "reject", "schema": "dcp-message", "note": "Extension key must be lowercase 'x-...'.", "payload": {"dcp_version": "1.0", "message_id": "msg_bk0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}, "extensions": {"x-Vendor": {}}}}
|
| 14 |
+
{"case": "bad-dcp-version", "file": "invalid/bad-dcp-version.json", "expect": "reject", "schema": "dcp-message", "note": "dcp_version must be 'major.minor'.", "payload": {"dcp_version": "1", "message_id": "msg_ver0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 15 |
+
{"case": "ref-forbidden-rel", "file": "invalid/ref-forbidden-rel.json", "expect": "reject", "schema": "dcp-message", "note": "rel vocabulary is closed; routing/permission verbs like 'approved_by' are forbidden (SRP guard).", "payload": {"dcp_version": "1.0", "message_id": "msg_rel0001", "message_type": "task.updated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_refs001", "entity_type": "task", "verb": "updated", "entity_id": "task_x", "refs": [{"rel": "approved_by", "ref": "user_x"}]}}}
|
| 16 |
+
{"case": "delta-nested-object", "file": "invalid/delta-nested-object.json", "expect": "reject", "schema": "dcp-message", "note": "delta leaf values must be scalar or null; nested objects are rejected.", "payload": {"dcp_version": "1.0", "message_id": "msg_dn0001", "message_type": "task.status_changed", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_delta01", "entity_type": "task", "verb": "status_changed", "entity_id": "task_x", "delta": {"meta": {"to": {"nested": 1}}}}}}
|
| 17 |
+
{"case": "timestamp-with-offset", "file": "invalid/timestamp-with-offset.json", "expect": "reject", "schema": "dcp-message", "note": "Timestamps must be UTC with a trailing 'Z'.", "payload": {"dcp_version": "1.0", "message_id": "msg_ts0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00+02:00", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 18 |
+
{"case": "entity-shape-violation", "file": "invalid/entity-shape-violation.json", "expect": "reject", "schema": "dcp-message", "note": "A task snapshot missing 'title' must be rejected (conditional entity dispatch).", "payload": {"dcp_version": "1.0", "message_id": "msg_es0001", "message_type": "task.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "status": "todo"}}}}
|
| 19 |
+
{"case": "unknown-entity-type", "file": "invalid/unknown-entity-type.json", "expect": "reject", "schema": "dcp-message", "note": "entity_type is a closed enum of the eight v1 nouns.", "payload": {"dcp_version": "1.0", "message_id": "msg_uet0001", "message_type": "epic.created", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_uet0001", "entity_type": "epic", "verb": "created", "entity_id": "epic_x", "refs": [{"rel": "relates_to", "ref": "project_x"}]}}}
|
| 20 |
+
{"case": "message-type-no-dot", "file": "invalid/message-type-no-dot.json", "expect": "reject", "schema": "dcp-message", "note": "message_type must be '<entity>.<verb>'.", "payload": {"dcp_version": "1.0", "message_id": "msg_nd0001", "message_type": "taskcreated", "issued_at": "2026-06-29T10:00:00Z", "body": {"event_id": "evt_min0001", "entity_type": "task", "verb": "created", "entity_id": "task_x", "entity": {"id": "task_x", "project_id": "project_x", "title": "A task", "status": "todo"}}}}
|
| 21 |
+
{"case": "job-requeued-same-entity", "file": "valid/job-requeued-same-entity.json", "expect": "accept", "schema": "dcp-message", "note": "Job-lifecycle (x-agentsweaver): open verb 'requeued' on a stable entity_id; delta status leased->open is a retry (lease expiry or operator retry), ordered by the emitter-maintained monotonic x-agentsweaver.attempt counter.", "payload": {"dcp_version": "1.0", "message_id": "msg_aw_01JZK0007", "message_type": "task.requeued", "issued_at": "2026-07-03T06:34:00Z", "correlation_id": "msg_aw_01JZK0000", "body": {"event_id": "evt_aw_01JZK0007", "entity_type": "task", "verb": "requeued", "entity_id": "task_awjob_8b2d1a", "project_id": "project_aw_tokonomix_rail", "occurred_at": "2026-07-03T06:33:57Z", "attributed_to": "aw-job-broker", "delta": {"status": {"from": "leased", "to": "open"}, "responsible_party": {"to": null}}, "extensions": {"x-agentsweaver": {"attempt": 2, "requeue_reason": "lease_expired"}}}}}
|
| 22 |
+
{"case": "job-mismatch-open-verb", "file": "invalid/job-mismatch-open-verb.json", "expect": "reject", "schema": "dcp-message", "note": "message_type/body.verb mismatch on an OPEN verb (task.leased vs assigned) \u2014 the 4.1 rule applies beyond the controlled vocabulary.", "payload": {"dcp_version": "1.0", "message_id": "msg_aw_bad_0001", "message_type": "task.leased", "issued_at": "2026-07-03T06:21:00Z", "body": {"event_id": "evt_aw_bad_0001", "entity_type": "task", "verb": "assigned", "entity_id": "task_awjob_7f3a9c", "delta": {"status": {"to": "leased"}}}}}
|
| 23 |
+
{"case": "job-lease-field-toplevel", "file": "invalid/job-lease-field-toplevel.json", "expect": "reject", "schema": "dcp-message", "note": "Rail mechanics (fence_token) as a top-level Event field instead of inside x-<vendor> extensions \u2014 additionalProperties:false rejects.", "payload": {"dcp_version": "1.0", "message_id": "msg_aw_bad_0002", "message_type": "task.leased", "issued_at": "2026-07-03T06:21:00Z", "body": {"event_id": "evt_aw_bad_0002", "entity_type": "task", "verb": "leased", "entity_id": "task_awjob_7f3a9c", "fence_token": 1041, "delta": {"status": {"to": "leased"}}}}}
|
| 24 |
+
{"case": "job-extension-no-prefix", "file": "invalid/job-extension-no-prefix.json", "expect": "reject", "schema": "dcp-message", "note": "Extension key without the x- prefix.", "payload": {"dcp_version": "1.0", "message_id": "msg_aw_bad_0003", "message_type": "task.leased", "issued_at": "2026-07-03T06:21:00Z", "body": {"event_id": "evt_aw_bad_0003", "entity_type": "task", "verb": "leased", "entity_id": "task_awjob_7f3a9c", "delta": {"status": {"to": "leased"}}, "extensions": {"agentsweaver": {"fence_token": 1041}}}}}
|
| 25 |
+
{"case": "job-delta-nested-object", "file": "invalid/job-delta-nested-object.json", "expect": "reject", "schema": "dcp-message", "note": "Delta leaf must be scalar or null; nested object rejected (job-lifecycle variant of the existing rule).", "payload": {"dcp_version": "1.0", "message_id": "msg_aw_bad_0004", "message_type": "task.leased", "issued_at": "2026-07-03T06:21:00Z", "body": {"event_id": "evt_aw_bad_0004", "entity_type": "task", "verb": "leased", "entity_id": "task_awjob_7f3a9c", "delta": {"status": {"from": {"state": "open"}, "to": {"state": "leased"}}}}}}
|
corpus/invalid/bad-dcp-version.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1",
|
| 3 |
+
"message_id": "msg_ver0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/bad-extension-key.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_bk0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"extensions": {
|
| 19 |
+
"x-Vendor": {}
|
| 20 |
+
}
|
| 21 |
+
}
|
corpus/invalid/bad-id-pattern.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_badid01",
|
| 4 |
+
"message_type": "task.updated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_refs001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "updated",
|
| 10 |
+
"entity_id": "Task 42",
|
| 11 |
+
"refs": [
|
| 12 |
+
{
|
| 13 |
+
"rel": "relates_to",
|
| 14 |
+
"ref": "task_y"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/delta-nested-object.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_dn0001",
|
| 4 |
+
"message_type": "task.status_changed",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_delta01",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "status_changed",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"delta": {
|
| 12 |
+
"meta": {
|
| 13 |
+
"to": {
|
| 14 |
+
"nested": 1
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
}
|
corpus/invalid/entity-shape-violation.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_es0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"status": "todo"
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
corpus/invalid/envelope-extra-field.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_bad0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"foo": "bar"
|
| 19 |
+
}
|
corpus/invalid/envelope-missing-message-id.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_type": "task.created",
|
| 4 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 5 |
+
"body": {
|
| 6 |
+
"event_id": "evt_min0001",
|
| 7 |
+
"entity_type": "task",
|
| 8 |
+
"verb": "created",
|
| 9 |
+
"entity_id": "task_x",
|
| 10 |
+
"entity": {
|
| 11 |
+
"id": "task_x",
|
| 12 |
+
"project_id": "project_x",
|
| 13 |
+
"title": "A task",
|
| 14 |
+
"status": "todo"
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
corpus/invalid/event-empty-payload.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_empty01",
|
| 4 |
+
"message_type": "task.updated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_empty01",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "updated",
|
| 10 |
+
"entity_id": "task_x"
|
| 11 |
+
}
|
| 12 |
+
}
|
corpus/invalid/job-delta-nested-object.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_aw_bad_0004",
|
| 4 |
+
"message_type": "task.leased",
|
| 5 |
+
"issued_at": "2026-07-03T06:21:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_aw_bad_0004",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "leased",
|
| 10 |
+
"entity_id": "task_awjob_7f3a9c",
|
| 11 |
+
"delta": { "status": { "from": { "state": "open" }, "to": { "state": "leased" } } }
|
| 12 |
+
}
|
| 13 |
+
}
|
corpus/invalid/job-extension-no-prefix.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_aw_bad_0003",
|
| 4 |
+
"message_type": "task.leased",
|
| 5 |
+
"issued_at": "2026-07-03T06:21:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_aw_bad_0003",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "leased",
|
| 10 |
+
"entity_id": "task_awjob_7f3a9c",
|
| 11 |
+
"delta": { "status": { "to": "leased" } },
|
| 12 |
+
"extensions": { "agentsweaver": { "fence_token": 1041 } }
|
| 13 |
+
}
|
| 14 |
+
}
|
corpus/invalid/job-lease-field-toplevel.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_aw_bad_0002",
|
| 4 |
+
"message_type": "task.leased",
|
| 5 |
+
"issued_at": "2026-07-03T06:21:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_aw_bad_0002",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "leased",
|
| 10 |
+
"entity_id": "task_awjob_7f3a9c",
|
| 11 |
+
"fence_token": 1041,
|
| 12 |
+
"delta": { "status": { "to": "leased" } }
|
| 13 |
+
}
|
| 14 |
+
}
|
corpus/invalid/job-mismatch-open-verb.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_aw_bad_0001",
|
| 4 |
+
"message_type": "task.leased",
|
| 5 |
+
"issued_at": "2026-07-03T06:21:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_aw_bad_0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "assigned",
|
| 10 |
+
"entity_id": "task_awjob_7f3a9c",
|
| 11 |
+
"delta": { "status": { "to": "leased" } }
|
| 12 |
+
}
|
| 13 |
+
}
|
corpus/invalid/message-type-mismatch.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_mt0001",
|
| 4 |
+
"message_type": "task.updated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/message-type-no-dot.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_nd0001",
|
| 4 |
+
"message_type": "taskcreated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/non-namespaced-extension.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_ns0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"extensions": {
|
| 19 |
+
"foo": {}
|
| 20 |
+
}
|
| 21 |
+
}
|
corpus/invalid/ref-forbidden-rel.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_rel0001",
|
| 4 |
+
"message_type": "task.updated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_refs001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "updated",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"refs": [
|
| 12 |
+
{
|
| 13 |
+
"rel": "approved_by",
|
| 14 |
+
"ref": "user_x"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/timestamp-with-offset.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_ts0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00+02:00",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/invalid/unknown-entity-type.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_uet0001",
|
| 4 |
+
"message_type": "epic.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_uet0001",
|
| 8 |
+
"entity_type": "epic",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "epic_x",
|
| 11 |
+
"refs": [
|
| 12 |
+
{
|
| 13 |
+
"rel": "relates_to",
|
| 14 |
+
"ref": "project_x"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/manifest.json
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$comment": "DCP v1 conformance corpus. Any implementation MUST accept every 'accept' case and reject every 'reject' case when validating as a DcpMessage (schema + the message_type consistency rule).",
|
| 3 |
+
"dcp_version": "1.0",
|
| 4 |
+
"schemaBase": "https://schemas.devcopro.org/v1/",
|
| 5 |
+
"cases": [
|
| 6 |
+
{
|
| 7 |
+
"file": "valid/minimal-task-created.json",
|
| 8 |
+
"schema": "dcp-message",
|
| 9 |
+
"expect": "accept",
|
| 10 |
+
"note": "Only required fields present."
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"file": "valid/event-only-refs.json",
|
| 14 |
+
"schema": "dcp-message",
|
| 15 |
+
"expect": "accept",
|
| 16 |
+
"note": "Event payload satisfied by refs alone."
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"file": "valid/event-only-delta.json",
|
| 20 |
+
"schema": "dcp-message",
|
| 21 |
+
"expect": "accept",
|
| 22 |
+
"note": "Event payload satisfied by delta alone."
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"file": "valid/unknown-verb-tolerated.json",
|
| 26 |
+
"schema": "dcp-message",
|
| 27 |
+
"expect": "accept",
|
| 28 |
+
"note": "Unknown verb 'archived' must be tolerated (forward-compat)."
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"file": "valid/unknown-status-tolerated.json",
|
| 32 |
+
"schema": "dcp-message",
|
| 33 |
+
"expect": "accept",
|
| 34 |
+
"note": "Unknown status 'on_hold' must be tolerated (forward-compat)."
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"file": "valid/extensions-namespaced.json",
|
| 38 |
+
"schema": "dcp-message",
|
| 39 |
+
"expect": "accept",
|
| 40 |
+
"note": "Namespaced x- extensions on envelope and entity."
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"file": "invalid/envelope-extra-field.json",
|
| 44 |
+
"schema": "dcp-message",
|
| 45 |
+
"expect": "reject",
|
| 46 |
+
"note": "Unknown top-level field violates additionalProperties:false on the envelope core."
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"file": "invalid/envelope-missing-message-id.json",
|
| 50 |
+
"schema": "dcp-message",
|
| 51 |
+
"expect": "reject",
|
| 52 |
+
"note": "message_id is required."
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"file": "invalid/message-type-mismatch.json",
|
| 56 |
+
"schema": "dcp-message",
|
| 57 |
+
"expect": "reject",
|
| 58 |
+
"note": "message_type must equal '<entity_type>.<verb>'."
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"file": "invalid/event-empty-payload.json",
|
| 62 |
+
"schema": "dcp-message",
|
| 63 |
+
"expect": "reject",
|
| 64 |
+
"note": "Event must carry at least one of entity/delta/refs."
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"file": "invalid/bad-id-pattern.json",
|
| 68 |
+
"schema": "dcp-message",
|
| 69 |
+
"expect": "reject",
|
| 70 |
+
"note": "entity_id must match the opaque id pattern."
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"file": "invalid/non-namespaced-extension.json",
|
| 74 |
+
"schema": "dcp-message",
|
| 75 |
+
"expect": "reject",
|
| 76 |
+
"note": "Extension keys must match '^x-<vendor>$'."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"file": "invalid/bad-extension-key.json",
|
| 80 |
+
"schema": "dcp-message",
|
| 81 |
+
"expect": "reject",
|
| 82 |
+
"note": "Extension key must be lowercase 'x-...'."
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"file": "invalid/bad-dcp-version.json",
|
| 86 |
+
"schema": "dcp-message",
|
| 87 |
+
"expect": "reject",
|
| 88 |
+
"note": "dcp_version must be 'major.minor'."
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"file": "invalid/ref-forbidden-rel.json",
|
| 92 |
+
"schema": "dcp-message",
|
| 93 |
+
"expect": "reject",
|
| 94 |
+
"note": "rel vocabulary is closed; routing/permission verbs like 'approved_by' are forbidden (SRP guard)."
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"file": "invalid/delta-nested-object.json",
|
| 98 |
+
"schema": "dcp-message",
|
| 99 |
+
"expect": "reject",
|
| 100 |
+
"note": "delta leaf values must be scalar or null; nested objects are rejected."
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"file": "invalid/timestamp-with-offset.json",
|
| 104 |
+
"schema": "dcp-message",
|
| 105 |
+
"expect": "reject",
|
| 106 |
+
"note": "Timestamps must be UTC with a trailing 'Z'."
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"file": "invalid/entity-shape-violation.json",
|
| 110 |
+
"schema": "dcp-message",
|
| 111 |
+
"expect": "reject",
|
| 112 |
+
"note": "A task snapshot missing 'title' must be rejected (conditional entity dispatch)."
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"file": "invalid/unknown-entity-type.json",
|
| 116 |
+
"schema": "dcp-message",
|
| 117 |
+
"expect": "reject",
|
| 118 |
+
"note": "entity_type is a closed enum of the eight v1 nouns."
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"file": "invalid/message-type-no-dot.json",
|
| 122 |
+
"schema": "dcp-message",
|
| 123 |
+
"expect": "reject",
|
| 124 |
+
"note": "message_type must be '<entity>.<verb>'."
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"file": "valid/job-requeued-same-entity.json",
|
| 128 |
+
"schema": "dcp-message",
|
| 129 |
+
"expect": "accept",
|
| 130 |
+
"note": "Job-lifecycle (x-agentsweaver): open verb 'requeued' on a stable entity_id; delta status leased->open is a retry (lease expiry or operator retry), ordered by the emitter-maintained monotonic x-agentsweaver.attempt counter."
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"file": "invalid/job-mismatch-open-verb.json",
|
| 134 |
+
"schema": "dcp-message",
|
| 135 |
+
"expect": "reject",
|
| 136 |
+
"note": "message_type/body.verb mismatch on an OPEN verb (task.leased vs assigned) \u2014 the 4.1 rule applies beyond the controlled vocabulary."
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"file": "invalid/job-lease-field-toplevel.json",
|
| 140 |
+
"schema": "dcp-message",
|
| 141 |
+
"expect": "reject",
|
| 142 |
+
"note": "Rail mechanics (fence_token) as a top-level Event field instead of inside x-<vendor> extensions \u2014 additionalProperties:false rejects."
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"file": "invalid/job-extension-no-prefix.json",
|
| 146 |
+
"schema": "dcp-message",
|
| 147 |
+
"expect": "reject",
|
| 148 |
+
"note": "Extension key without the x- prefix."
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"file": "invalid/job-delta-nested-object.json",
|
| 152 |
+
"schema": "dcp-message",
|
| 153 |
+
"expect": "reject",
|
| 154 |
+
"note": "Delta leaf must be scalar or null; nested object rejected (job-lifecycle variant of the existing rule)."
|
| 155 |
+
}
|
| 156 |
+
]
|
| 157 |
+
}
|
corpus/valid/event-only-delta.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_delta01",
|
| 4 |
+
"message_type": "task.status_changed",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_delta01",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "status_changed",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"delta": {
|
| 12 |
+
"status": {
|
| 13 |
+
"from": "todo",
|
| 14 |
+
"to": "in_progress"
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/valid/event-only-refs.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_refs001",
|
| 4 |
+
"message_type": "task.updated",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_refs001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "updated",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"refs": [
|
| 12 |
+
{
|
| 13 |
+
"rel": "relates_to",
|
| 14 |
+
"ref": "task_y"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/valid/extensions-namespaced.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_ext0001",
|
| 4 |
+
"message_type": "project.snapshot",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"extensions": {
|
| 7 |
+
"x-tokonomix": {
|
| 8 |
+
"council_run_id": "run_123"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
"body": {
|
| 12 |
+
"event_id": "evt_ext0001",
|
| 13 |
+
"entity_type": "project",
|
| 14 |
+
"verb": "snapshot",
|
| 15 |
+
"entity_id": "project_x",
|
| 16 |
+
"entity": {
|
| 17 |
+
"id": "project_x",
|
| 18 |
+
"name": "P",
|
| 19 |
+
"status": "active",
|
| 20 |
+
"extensions": {
|
| 21 |
+
"x-github": {
|
| 22 |
+
"issue": 7
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
}
|
corpus/valid/job-requeued-same-entity.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_aw_01JZK0007",
|
| 4 |
+
"message_type": "task.requeued",
|
| 5 |
+
"issued_at": "2026-07-03T06:34:00Z",
|
| 6 |
+
"correlation_id": "msg_aw_01JZK0000",
|
| 7 |
+
"body": {
|
| 8 |
+
"event_id": "evt_aw_01JZK0007",
|
| 9 |
+
"entity_type": "task",
|
| 10 |
+
"verb": "requeued",
|
| 11 |
+
"entity_id": "task_awjob_8b2d1a",
|
| 12 |
+
"project_id": "project_aw_tokonomix_rail",
|
| 13 |
+
"occurred_at": "2026-07-03T06:33:57Z",
|
| 14 |
+
"attributed_to": "aw-job-broker",
|
| 15 |
+
"delta": {
|
| 16 |
+
"status": {
|
| 17 |
+
"from": "leased",
|
| 18 |
+
"to": "open"
|
| 19 |
+
},
|
| 20 |
+
"responsible_party": {
|
| 21 |
+
"to": null
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"extensions": {
|
| 25 |
+
"x-agentsweaver": {
|
| 26 |
+
"attempt": 2,
|
| 27 |
+
"requeue_reason": "lease_expired"
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
}
|
corpus/valid/minimal-task-created.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_min0001",
|
| 4 |
+
"message_type": "task.created",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_min0001",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "created",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "todo"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/valid/unknown-status-tolerated.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_ustat01",
|
| 4 |
+
"message_type": "task.snapshot",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_ustat01",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "snapshot",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"entity": {
|
| 12 |
+
"id": "task_x",
|
| 13 |
+
"project_id": "project_x",
|
| 14 |
+
"title": "A task",
|
| 15 |
+
"status": "on_hold"
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
corpus/valid/unknown-verb-tolerated.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dcp_version": "1.0",
|
| 3 |
+
"message_id": "msg_uverb01",
|
| 4 |
+
"message_type": "task.archived",
|
| 5 |
+
"issued_at": "2026-06-29T10:00:00Z",
|
| 6 |
+
"body": {
|
| 7 |
+
"event_id": "evt_uverb01",
|
| 8 |
+
"entity_type": "task",
|
| 9 |
+
"verb": "archived",
|
| 10 |
+
"entity_id": "task_x",
|
| 11 |
+
"refs": [
|
| 12 |
+
{
|
| 13 |
+
"rel": "relates_to",
|
| 14 |
+
"ref": "project_x"
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|