@gtrabanco/agentic-workflow-schema 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtrabanco/agentic-workflow-schema",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Versioned machine contracts, JSON Schemas, parsers, and deterministic document snapshots for agentic-workflow orchestration.",
5
5
  "keywords": [
6
6
  "agentic-workflow",
@@ -28,13 +28,17 @@
28
28
  },
29
29
  "./envelope.schema.json": "./envelope.schema.json",
30
30
  "./skill-outcome.schema.json": "./skill-outcome.schema.json",
31
- "./workflow-snapshot.schema.json": "./workflow-snapshot.schema.json"
31
+ "./workflow-snapshot.schema.json": "./workflow-snapshot.schema.json",
32
+ "./candidate-snapshot.schema.json": "./candidate-snapshot.schema.json",
33
+ "./review-receipt.schema.json": "./review-receipt.schema.json"
32
34
  },
33
35
  "files": [
34
36
  "dist",
35
37
  "envelope.schema.json",
36
38
  "skill-outcome.schema.json",
37
39
  "workflow-snapshot.schema.json",
40
+ "candidate-snapshot.schema.json",
41
+ "review-receipt.schema.json",
38
42
  "README.md",
39
43
  "README.es.md",
40
44
  "LICENSE"
@@ -51,6 +55,7 @@
51
55
  "prepublishOnly": "npm test"
52
56
  },
53
57
  "devDependencies": {
58
+ "ajv": "^8.20.0",
54
59
  "typescript": "6"
55
60
  }
56
61
  }
@@ -0,0 +1,130 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/gtrabanco/agentic-workflow/packages/agentic-workflow-schema/review-receipt.schema.json",
4
+ "title": "agentic-workflow review receipt v1",
5
+ "description": "A content-bound review receipt proving exactly which diff and acceptance boundary a review evaluated. Source of truth: @gtrabanco/agentic-workflow-schema.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "contract",
10
+ "id",
11
+ "candidateSnapshotDigest",
12
+ "kind",
13
+ "verdict",
14
+ "findings",
15
+ "reviewer",
16
+ "sessionId",
17
+ "startedAt",
18
+ "finishedAt",
19
+ "diagnostics",
20
+ "policyVersion"
21
+ ],
22
+ "properties": {
23
+ "contract": {
24
+ "type": "string",
25
+ "const": "agentic-workflow/review-receipt@1"
26
+ },
27
+ "id": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
31
+ },
32
+ "candidateSnapshotDigest": {
33
+ "type": "string",
34
+ "pattern": "^[a-f0-9]{64}$"
35
+ },
36
+ "kind": {
37
+ "enum": [
38
+ "implementation",
39
+ "security",
40
+ "verification",
41
+ "debt",
42
+ "design",
43
+ "accessibility",
44
+ "brand",
45
+ "performance",
46
+ "seo",
47
+ "audit"
48
+ ]
49
+ },
50
+ "verdict": {
51
+ "enum": ["pass", "fail"]
52
+ },
53
+ "findings": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "#/$defs/findingV1"
57
+ }
58
+ },
59
+ "reviewer": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "sessionId": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ },
67
+ "startedAt": {
68
+ "type": "string",
69
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
70
+ },
71
+ "finishedAt": {
72
+ "type": "string",
73
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
74
+ },
75
+ "diagnostics": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "policyVersion": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ }
85
+ },
86
+ "$defs": {
87
+ "findingV1": {
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": ["id", "severity", "summary", "refs"],
91
+ "properties": {
92
+ "id": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
96
+ },
97
+ "severity": {
98
+ "enum": ["info", "low", "medium", "high", "critical"]
99
+ },
100
+ "summary": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "evidence": {
105
+ "$ref": "#/$defs/findingEvidenceV1"
106
+ },
107
+ "refs": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ "findingEvidenceV1": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": ["path"],
119
+ "properties": {
120
+ "path": {
121
+ "type": "string"
122
+ },
123
+ "line": {
124
+ "type": "integer",
125
+ "minimum": 1
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }