agentskeptic 0.1.1 → 0.1.2

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.
Files changed (43) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +342 -342
  3. package/dist/cli.js +157 -157
  4. package/dist/debug-ui/app.css +188 -188
  5. package/dist/debug-ui/app.js +245 -245
  6. package/dist/debug-ui/index.html +79 -79
  7. package/dist/enforceCli.js +11 -11
  8. package/dist/planTransition.test.js +235 -235
  9. package/dist/planTransitionPathHarvest.test.js +116 -116
  10. package/dist/quickVerify/postgresCatalog.js +53 -53
  11. package/package.json +1 -1
  12. package/schemas/agent-run-record-v1.schema.json +51 -51
  13. package/schemas/agent-run-record-v2.schema.json +61 -61
  14. package/schemas/assurance-manifest-v1.schema.json +28 -28
  15. package/schemas/assurance-run-report-v1.schema.json +28 -28
  16. package/schemas/ci-lock-v1.schema.json +163 -163
  17. package/schemas/cli-error-envelope.schema.json +48 -48
  18. package/schemas/event.schema.json +111 -111
  19. package/schemas/execution-trace-view.schema.json +122 -122
  20. package/schemas/plan-validation-core.schema.json +95 -95
  21. package/schemas/quick-verify-report.schema.json +251 -251
  22. package/schemas/registry-validation-result.schema.json +99 -99
  23. package/schemas/run-comparison-report.schema.json +513 -513
  24. package/schemas/tools-registry-export.schema.json +9 -9
  25. package/schemas/tools-registry.schema.json +284 -284
  26. package/schemas/workflow-engine-result.schema.json +591 -591
  27. package/schemas/workflow-result-compare-input.schema.json +15 -15
  28. package/schemas/workflow-result-signature.schema.json +20 -20
  29. package/schemas/workflow-result-v9.schema.json +85 -85
  30. package/schemas/workflow-result.schema.json +80 -80
  31. package/schemas/workflow-truth-report.schema.json +761 -761
  32. package/dist/failureOriginSchemaEnum.test.d.ts +0 -2
  33. package/dist/failureOriginSchemaEnum.test.d.ts.map +0 -1
  34. package/dist/failureOriginSchemaEnum.test.js +0 -21
  35. package/dist/failureOriginSchemaEnum.test.js.map +0 -1
  36. package/dist/failureOriginSchemaParity.test.d.ts +0 -2
  37. package/dist/failureOriginSchemaParity.test.d.ts.map +0 -1
  38. package/dist/failureOriginSchemaParity.test.js +0 -33
  39. package/dist/failureOriginSchemaParity.test.js.map +0 -1
  40. package/dist/slice6.compare.ac.test.d.ts +0 -2
  41. package/dist/slice6.compare.ac.test.d.ts.map +0 -1
  42. package/dist/slice6.compare.ac.test.js +0 -81
  43. package/dist/slice6.compare.ac.test.js.map +0 -1
@@ -1,9 +1,9 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/tools-registry-export.schema.json",
3
- "title": "ToolsRegistryExportArray",
4
- "description": "Quick Verify --export-registry file: same items as tools-registry but allows empty array.",
5
- "type": "array",
6
- "items": {
7
- "$ref": "https://agentskeptic.com/schemas/tools-registry.schema.json#/items"
8
- }
9
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/tools-registry-export.schema.json",
3
+ "title": "ToolsRegistryExportArray",
4
+ "description": "Quick Verify --export-registry file: same items as tools-registry but allows empty array.",
5
+ "type": "array",
6
+ "items": {
7
+ "$ref": "https://agentskeptic.com/schemas/tools-registry.schema.json#/items"
8
+ }
9
+ }
@@ -1,284 +1,284 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/tools-registry.schema.json",
3
- "title": "ToolsRegistry",
4
- "type": "array",
5
- "minItems": 1,
6
- "items": {
7
- "type": "object",
8
- "additionalProperties": false,
9
- "required": ["toolId", "effectDescriptionTemplate", "verification"],
10
- "properties": {
11
- "toolId": { "type": "string", "minLength": 1 },
12
- "effectDescriptionTemplate": { "type": "string" },
13
- "verification": {
14
- "oneOf": [
15
- {
16
- "type": "object",
17
- "additionalProperties": false,
18
- "required": ["kind", "table", "identityEq", "requiredFields"],
19
- "properties": {
20
- "kind": { "const": "sql_row" },
21
- "table": { "$ref": "#/$defs/tableSpec" },
22
- "identityEq": { "$ref": "#/$defs/identityEqSpec" },
23
- "requiredFields": { "$ref": "#/$defs/requiredFieldsPointer" }
24
- }
25
- },
26
- {
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": ["kind", "table", "identityEq"],
30
- "properties": {
31
- "kind": { "const": "sql_row_absent" },
32
- "table": { "$ref": "#/$defs/tableSpec" },
33
- "identityEq": { "$ref": "#/$defs/identityEqSpec" },
34
- "filterEq": {
35
- "type": "array",
36
- "items": { "$ref": "#/$defs/equalityPair" }
37
- }
38
- }
39
- },
40
- {
41
- "type": "object",
42
- "additionalProperties": false,
43
- "required": ["kind", "effects"],
44
- "properties": {
45
- "kind": { "const": "sql_effects" },
46
- "effects": {
47
- "type": "array",
48
- "minItems": 2,
49
- "items": {
50
- "type": "object",
51
- "additionalProperties": false,
52
- "required": ["id", "table", "identityEq", "requiredFields"],
53
- "properties": {
54
- "id": { "type": "string", "minLength": 1 },
55
- "table": { "$ref": "#/$defs/tableSpec" },
56
- "identityEq": { "$ref": "#/$defs/identityEqSpec" },
57
- "requiredFields": { "$ref": "#/$defs/requiredFieldsPointer" }
58
- }
59
- }
60
- }
61
- }
62
- },
63
- {
64
- "type": "object",
65
- "additionalProperties": false,
66
- "required": ["kind", "checks"],
67
- "properties": {
68
- "kind": { "const": "sql_relational" },
69
- "checks": {
70
- "type": "array",
71
- "minItems": 1,
72
- "items": { "$ref": "#/$defs/sqlRelationalCheck" }
73
- }
74
- }
75
- }
76
- ]
77
- }
78
- }
79
- },
80
- "$defs": {
81
- "tableSpec": {
82
- "oneOf": [
83
- {
84
- "type": "object",
85
- "additionalProperties": false,
86
- "required": ["const"],
87
- "properties": { "const": { "type": "string", "minLength": 1 } }
88
- },
89
- {
90
- "type": "object",
91
- "additionalProperties": false,
92
- "required": ["pointer"],
93
- "properties": { "pointer": { "type": "string", "pattern": "^/" } }
94
- }
95
- ]
96
- },
97
- "equalityPair": {
98
- "type": "object",
99
- "additionalProperties": false,
100
- "required": ["column", "value"],
101
- "properties": {
102
- "column": { "$ref": "#/$defs/columnSpec" },
103
- "value": { "$ref": "#/$defs/scalarOrPointer" }
104
- }
105
- },
106
- "identityEqSpec": {
107
- "type": "array",
108
- "minItems": 1,
109
- "items": { "$ref": "#/$defs/equalityPair" }
110
- },
111
- "requiredFieldsPointer": {
112
- "type": "object",
113
- "additionalProperties": false,
114
- "required": ["pointer"],
115
- "properties": {
116
- "pointer": { "type": "string", "pattern": "^/" }
117
- }
118
- },
119
- "columnSpec": {
120
- "oneOf": [
121
- {
122
- "type": "object",
123
- "additionalProperties": false,
124
- "required": ["const"],
125
- "properties": { "const": { "type": "string", "minLength": 1 } }
126
- },
127
- {
128
- "type": "object",
129
- "additionalProperties": false,
130
- "required": ["pointer"],
131
- "properties": { "pointer": { "type": "string", "pattern": "^/" } }
132
- }
133
- ]
134
- },
135
- "scalarOrPointer": {
136
- "oneOf": [
137
- {
138
- "type": "object",
139
- "additionalProperties": false,
140
- "required": ["const"],
141
- "properties": {
142
- "const": { "type": ["string", "number", "boolean", "null"] }
143
- }
144
- },
145
- {
146
- "type": "object",
147
- "additionalProperties": false,
148
- "required": ["pointer"],
149
- "properties": { "pointer": { "type": "string", "pattern": "^/" } }
150
- }
151
- ]
152
- },
153
- "expectSpec": {
154
- "type": "object",
155
- "additionalProperties": false,
156
- "required": ["op", "value"],
157
- "properties": {
158
- "op": { "type": "string", "enum": ["eq", "gte", "lte"] },
159
- "value": {
160
- "oneOf": [
161
- {
162
- "type": "object",
163
- "additionalProperties": false,
164
- "required": ["const"],
165
- "properties": {
166
- "const": { "type": "number" }
167
- }
168
- },
169
- {
170
- "type": "object",
171
- "additionalProperties": false,
172
- "required": ["pointer"],
173
- "properties": { "pointer": { "type": "string", "pattern": "^/" } }
174
- }
175
- ]
176
- }
177
- }
178
- },
179
- "sqlRelationalCheck": {
180
- "oneOf": [
181
- {
182
- "type": "object",
183
- "additionalProperties": false,
184
- "required": ["checkKind", "id", "table", "fn", "expect"],
185
- "properties": {
186
- "checkKind": { "const": "aggregate" },
187
- "id": { "type": "string", "minLength": 1 },
188
- "table": { "$ref": "#/$defs/tableSpec" },
189
- "fn": { "type": "string", "enum": ["COUNT_STAR", "SUM"] },
190
- "sumColumn": { "$ref": "#/$defs/columnSpec" },
191
- "whereEq": {
192
- "type": "array",
193
- "items": {
194
- "type": "object",
195
- "additionalProperties": false,
196
- "required": ["column", "value"],
197
- "properties": {
198
- "column": { "$ref": "#/$defs/columnSpec" },
199
- "value": { "$ref": "#/$defs/scalarOrPointer" }
200
- }
201
- }
202
- },
203
- "expect": { "$ref": "#/$defs/expectSpec" }
204
- }
205
- },
206
- {
207
- "type": "object",
208
- "additionalProperties": false,
209
- "required": ["checkKind", "id", "leftTable", "rightTable", "join", "expect"],
210
- "properties": {
211
- "checkKind": { "const": "join_count" },
212
- "id": { "type": "string", "minLength": 1 },
213
- "leftTable": { "$ref": "#/$defs/tableSpec" },
214
- "rightTable": { "$ref": "#/$defs/tableSpec" },
215
- "join": {
216
- "type": "object",
217
- "additionalProperties": false,
218
- "required": ["leftColumn", "rightColumn"],
219
- "properties": {
220
- "leftColumn": { "$ref": "#/$defs/columnSpec" },
221
- "rightColumn": { "$ref": "#/$defs/columnSpec" }
222
- }
223
- },
224
- "whereEq": {
225
- "type": "array",
226
- "items": {
227
- "type": "object",
228
- "additionalProperties": false,
229
- "required": ["tableSide", "column", "value"],
230
- "properties": {
231
- "tableSide": { "type": "string", "enum": ["left", "right"] },
232
- "column": { "$ref": "#/$defs/columnSpec" },
233
- "value": { "$ref": "#/$defs/scalarOrPointer" }
234
- }
235
- }
236
- },
237
- "expect": { "$ref": "#/$defs/expectSpec" }
238
- }
239
- },
240
- {
241
- "type": "object",
242
- "additionalProperties": false,
243
- "required": ["checkKind", "id", "childTable", "matchEq"],
244
- "properties": {
245
- "checkKind": { "const": "related_exists" },
246
- "id": { "type": "string", "minLength": 1 },
247
- "childTable": { "$ref": "#/$defs/tableSpec" },
248
- "matchEq": { "$ref": "#/$defs/identityEqSpec" }
249
- }
250
- },
251
- {
252
- "type": "object",
253
- "additionalProperties": false,
254
- "required": [
255
- "checkKind",
256
- "id",
257
- "anchorTable",
258
- "lookupTable",
259
- "anchorColumn",
260
- "lookupColumn",
261
- "lookupPresenceColumn"
262
- ],
263
- "properties": {
264
- "checkKind": { "const": "anti_join" },
265
- "id": { "type": "string", "minLength": 1 },
266
- "anchorTable": { "$ref": "#/$defs/tableSpec" },
267
- "lookupTable": { "$ref": "#/$defs/tableSpec" },
268
- "anchorColumn": { "$ref": "#/$defs/columnSpec" },
269
- "lookupColumn": { "$ref": "#/$defs/columnSpec" },
270
- "lookupPresenceColumn": { "$ref": "#/$defs/columnSpec" },
271
- "filterEqAnchor": {
272
- "type": "array",
273
- "items": { "$ref": "#/$defs/equalityPair" }
274
- },
275
- "filterEqLookup": {
276
- "type": "array",
277
- "items": { "$ref": "#/$defs/equalityPair" }
278
- }
279
- }
280
- }
281
- ]
282
- }
283
- }
284
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/tools-registry.schema.json",
3
+ "title": "ToolsRegistry",
4
+ "type": "array",
5
+ "minItems": 1,
6
+ "items": {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["toolId", "effectDescriptionTemplate", "verification"],
10
+ "properties": {
11
+ "toolId": { "type": "string", "minLength": 1 },
12
+ "effectDescriptionTemplate": { "type": "string" },
13
+ "verification": {
14
+ "oneOf": [
15
+ {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["kind", "table", "identityEq", "requiredFields"],
19
+ "properties": {
20
+ "kind": { "const": "sql_row" },
21
+ "table": { "$ref": "#/$defs/tableSpec" },
22
+ "identityEq": { "$ref": "#/$defs/identityEqSpec" },
23
+ "requiredFields": { "$ref": "#/$defs/requiredFieldsPointer" }
24
+ }
25
+ },
26
+ {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "required": ["kind", "table", "identityEq"],
30
+ "properties": {
31
+ "kind": { "const": "sql_row_absent" },
32
+ "table": { "$ref": "#/$defs/tableSpec" },
33
+ "identityEq": { "$ref": "#/$defs/identityEqSpec" },
34
+ "filterEq": {
35
+ "type": "array",
36
+ "items": { "$ref": "#/$defs/equalityPair" }
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": ["kind", "effects"],
44
+ "properties": {
45
+ "kind": { "const": "sql_effects" },
46
+ "effects": {
47
+ "type": "array",
48
+ "minItems": 2,
49
+ "items": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": ["id", "table", "identityEq", "requiredFields"],
53
+ "properties": {
54
+ "id": { "type": "string", "minLength": 1 },
55
+ "table": { "$ref": "#/$defs/tableSpec" },
56
+ "identityEq": { "$ref": "#/$defs/identityEqSpec" },
57
+ "requiredFields": { "$ref": "#/$defs/requiredFieldsPointer" }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": ["kind", "checks"],
67
+ "properties": {
68
+ "kind": { "const": "sql_relational" },
69
+ "checks": {
70
+ "type": "array",
71
+ "minItems": 1,
72
+ "items": { "$ref": "#/$defs/sqlRelationalCheck" }
73
+ }
74
+ }
75
+ }
76
+ ]
77
+ }
78
+ }
79
+ },
80
+ "$defs": {
81
+ "tableSpec": {
82
+ "oneOf": [
83
+ {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": ["const"],
87
+ "properties": { "const": { "type": "string", "minLength": 1 } }
88
+ },
89
+ {
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": ["pointer"],
93
+ "properties": { "pointer": { "type": "string", "pattern": "^/" } }
94
+ }
95
+ ]
96
+ },
97
+ "equalityPair": {
98
+ "type": "object",
99
+ "additionalProperties": false,
100
+ "required": ["column", "value"],
101
+ "properties": {
102
+ "column": { "$ref": "#/$defs/columnSpec" },
103
+ "value": { "$ref": "#/$defs/scalarOrPointer" }
104
+ }
105
+ },
106
+ "identityEqSpec": {
107
+ "type": "array",
108
+ "minItems": 1,
109
+ "items": { "$ref": "#/$defs/equalityPair" }
110
+ },
111
+ "requiredFieldsPointer": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": ["pointer"],
115
+ "properties": {
116
+ "pointer": { "type": "string", "pattern": "^/" }
117
+ }
118
+ },
119
+ "columnSpec": {
120
+ "oneOf": [
121
+ {
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": ["const"],
125
+ "properties": { "const": { "type": "string", "minLength": 1 } }
126
+ },
127
+ {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "required": ["pointer"],
131
+ "properties": { "pointer": { "type": "string", "pattern": "^/" } }
132
+ }
133
+ ]
134
+ },
135
+ "scalarOrPointer": {
136
+ "oneOf": [
137
+ {
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": ["const"],
141
+ "properties": {
142
+ "const": { "type": ["string", "number", "boolean", "null"] }
143
+ }
144
+ },
145
+ {
146
+ "type": "object",
147
+ "additionalProperties": false,
148
+ "required": ["pointer"],
149
+ "properties": { "pointer": { "type": "string", "pattern": "^/" } }
150
+ }
151
+ ]
152
+ },
153
+ "expectSpec": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "required": ["op", "value"],
157
+ "properties": {
158
+ "op": { "type": "string", "enum": ["eq", "gte", "lte"] },
159
+ "value": {
160
+ "oneOf": [
161
+ {
162
+ "type": "object",
163
+ "additionalProperties": false,
164
+ "required": ["const"],
165
+ "properties": {
166
+ "const": { "type": "number" }
167
+ }
168
+ },
169
+ {
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": ["pointer"],
173
+ "properties": { "pointer": { "type": "string", "pattern": "^/" } }
174
+ }
175
+ ]
176
+ }
177
+ }
178
+ },
179
+ "sqlRelationalCheck": {
180
+ "oneOf": [
181
+ {
182
+ "type": "object",
183
+ "additionalProperties": false,
184
+ "required": ["checkKind", "id", "table", "fn", "expect"],
185
+ "properties": {
186
+ "checkKind": { "const": "aggregate" },
187
+ "id": { "type": "string", "minLength": 1 },
188
+ "table": { "$ref": "#/$defs/tableSpec" },
189
+ "fn": { "type": "string", "enum": ["COUNT_STAR", "SUM"] },
190
+ "sumColumn": { "$ref": "#/$defs/columnSpec" },
191
+ "whereEq": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": ["column", "value"],
197
+ "properties": {
198
+ "column": { "$ref": "#/$defs/columnSpec" },
199
+ "value": { "$ref": "#/$defs/scalarOrPointer" }
200
+ }
201
+ }
202
+ },
203
+ "expect": { "$ref": "#/$defs/expectSpec" }
204
+ }
205
+ },
206
+ {
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": ["checkKind", "id", "leftTable", "rightTable", "join", "expect"],
210
+ "properties": {
211
+ "checkKind": { "const": "join_count" },
212
+ "id": { "type": "string", "minLength": 1 },
213
+ "leftTable": { "$ref": "#/$defs/tableSpec" },
214
+ "rightTable": { "$ref": "#/$defs/tableSpec" },
215
+ "join": {
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": ["leftColumn", "rightColumn"],
219
+ "properties": {
220
+ "leftColumn": { "$ref": "#/$defs/columnSpec" },
221
+ "rightColumn": { "$ref": "#/$defs/columnSpec" }
222
+ }
223
+ },
224
+ "whereEq": {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": ["tableSide", "column", "value"],
230
+ "properties": {
231
+ "tableSide": { "type": "string", "enum": ["left", "right"] },
232
+ "column": { "$ref": "#/$defs/columnSpec" },
233
+ "value": { "$ref": "#/$defs/scalarOrPointer" }
234
+ }
235
+ }
236
+ },
237
+ "expect": { "$ref": "#/$defs/expectSpec" }
238
+ }
239
+ },
240
+ {
241
+ "type": "object",
242
+ "additionalProperties": false,
243
+ "required": ["checkKind", "id", "childTable", "matchEq"],
244
+ "properties": {
245
+ "checkKind": { "const": "related_exists" },
246
+ "id": { "type": "string", "minLength": 1 },
247
+ "childTable": { "$ref": "#/$defs/tableSpec" },
248
+ "matchEq": { "$ref": "#/$defs/identityEqSpec" }
249
+ }
250
+ },
251
+ {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "required": [
255
+ "checkKind",
256
+ "id",
257
+ "anchorTable",
258
+ "lookupTable",
259
+ "anchorColumn",
260
+ "lookupColumn",
261
+ "lookupPresenceColumn"
262
+ ],
263
+ "properties": {
264
+ "checkKind": { "const": "anti_join" },
265
+ "id": { "type": "string", "minLength": 1 },
266
+ "anchorTable": { "$ref": "#/$defs/tableSpec" },
267
+ "lookupTable": { "$ref": "#/$defs/tableSpec" },
268
+ "anchorColumn": { "$ref": "#/$defs/columnSpec" },
269
+ "lookupColumn": { "$ref": "#/$defs/columnSpec" },
270
+ "lookupPresenceColumn": { "$ref": "#/$defs/columnSpec" },
271
+ "filterEqAnchor": {
272
+ "type": "array",
273
+ "items": { "$ref": "#/$defs/equalityPair" }
274
+ },
275
+ "filterEqLookup": {
276
+ "type": "array",
277
+ "items": { "$ref": "#/$defs/equalityPair" }
278
+ }
279
+ }
280
+ }
281
+ ]
282
+ }
283
+ }
284
+ }