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,28 +1,28 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/assurance-manifest-v1.schema.json",
3
- "title": "AssuranceManifestV1",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "required": ["schemaVersion", "scenarios"],
7
- "properties": {
8
- "schemaVersion": { "const": 1 },
9
- "scenarios": {
10
- "type": "array",
11
- "minItems": 1,
12
- "items": {
13
- "type": "object",
14
- "additionalProperties": false,
15
- "required": ["id", "kind", "argv"],
16
- "properties": {
17
- "id": { "type": "string", "minLength": 1 },
18
- "kind": { "const": "spawn_argv" },
19
- "argv": {
20
- "type": "array",
21
- "minItems": 1,
22
- "items": { "type": "string" }
23
- }
24
- }
25
- }
26
- }
27
- }
28
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/assurance-manifest-v1.schema.json",
3
+ "title": "AssuranceManifestV1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schemaVersion", "scenarios"],
7
+ "properties": {
8
+ "schemaVersion": { "const": 1 },
9
+ "scenarios": {
10
+ "type": "array",
11
+ "minItems": 1,
12
+ "items": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["id", "kind", "argv"],
16
+ "properties": {
17
+ "id": { "type": "string", "minLength": 1 },
18
+ "kind": { "const": "spawn_argv" },
19
+ "argv": {
20
+ "type": "array",
21
+ "minItems": 1,
22
+ "items": { "type": "string" }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
@@ -1,28 +1,28 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/assurance-run-report-v1.schema.json",
3
- "title": "AssuranceRunReportV1",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "required": ["schemaVersion", "issuedAt", "scenarios"],
7
- "properties": {
8
- "schemaVersion": { "const": 1 },
9
- "issuedAt": {
10
- "type": "string",
11
- "minLength": 1,
12
- "description": "ISO-8601 timestamp in UTC when the report was finalized after all scenarios completed."
13
- },
14
- "scenarios": {
15
- "type": "array",
16
- "minItems": 1,
17
- "items": {
18
- "type": "object",
19
- "additionalProperties": false,
20
- "required": ["id", "exitCode"],
21
- "properties": {
22
- "id": { "type": "string", "minLength": 1 },
23
- "exitCode": { "type": "integer" }
24
- }
25
- }
26
- }
27
- }
28
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/assurance-run-report-v1.schema.json",
3
+ "title": "AssuranceRunReportV1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schemaVersion", "issuedAt", "scenarios"],
7
+ "properties": {
8
+ "schemaVersion": { "const": 1 },
9
+ "issuedAt": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "description": "ISO-8601 timestamp in UTC when the report was finalized after all scenarios completed."
13
+ },
14
+ "scenarios": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "items": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": ["id", "exitCode"],
21
+ "properties": {
22
+ "id": { "type": "string", "minLength": 1 },
23
+ "exitCode": { "type": "integer" }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
@@ -1,163 +1,163 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/ci-lock-v1.schema.json",
3
- "title": "CiLockV1",
4
- "oneOf": [
5
- {
6
- "type": "object",
7
- "additionalProperties": false,
8
- "required": [
9
- "lockSchemaVersion",
10
- "kind",
11
- "workflowId",
12
- "status",
13
- "verificationPolicy",
14
- "runLevelReasonCodes",
15
- "eventSequence",
16
- "steps",
17
- "primaryFailureCodes",
18
- "correctnessEnforcementKind",
19
- "enforceableProjection"
20
- ],
21
- "properties": {
22
- "lockSchemaVersion": { "const": 1 },
23
- "kind": { "const": "batch" },
24
- "workflowId": { "type": "string" },
25
- "status": {
26
- "type": "string",
27
- "enum": ["complete", "incomplete", "inconsistent"]
28
- },
29
- "verificationPolicy": {
30
- "type": "object",
31
- "additionalProperties": false,
32
- "required": ["consistencyMode", "verificationWindowMs", "pollIntervalMs"],
33
- "properties": {
34
- "consistencyMode": { "type": "string", "enum": ["strong", "eventual"] },
35
- "verificationWindowMs": { "type": "integer" },
36
- "pollIntervalMs": { "type": "integer" }
37
- }
38
- },
39
- "runLevelReasonCodes": {
40
- "type": "array",
41
- "items": { "type": "string" }
42
- },
43
- "eventSequence": {
44
- "oneOf": [
45
- {
46
- "type": "object",
47
- "additionalProperties": false,
48
- "required": ["kind"],
49
- "properties": {
50
- "kind": { "const": "normal" }
51
- }
52
- },
53
- {
54
- "type": "object",
55
- "additionalProperties": false,
56
- "required": ["kind", "reasonCodes"],
57
- "properties": {
58
- "kind": { "const": "irregular" },
59
- "reasonCodes": {
60
- "type": "array",
61
- "items": { "type": "string" }
62
- }
63
- }
64
- }
65
- ]
66
- },
67
- "steps": {
68
- "type": "array",
69
- "items": {
70
- "type": "object",
71
- "additionalProperties": false,
72
- "required": [
73
- "seq",
74
- "toolId",
75
- "status",
76
- "outcomeLabel",
77
- "reasonCodes",
78
- "referenceCode"
79
- ],
80
- "properties": {
81
- "seq": { "type": "integer", "minimum": 0 },
82
- "toolId": { "type": "string" },
83
- "status": { "type": "string" },
84
- "outcomeLabel": { "type": "string" },
85
- "reasonCodes": {
86
- "type": "array",
87
- "items": { "type": "string" }
88
- },
89
- "referenceCode": { "type": ["string", "null"] }
90
- }
91
- }
92
- },
93
- "primaryFailureCodes": {
94
- "type": "array",
95
- "items": { "type": "string" }
96
- },
97
- "correctnessEnforcementKind": {
98
- "type": ["string", "null"]
99
- },
100
- "enforceableProjection": {
101
- "type": ["object", "null"]
102
- }
103
- }
104
- },
105
- {
106
- "type": "object",
107
- "additionalProperties": false,
108
- "required": [
109
- "lockSchemaVersion",
110
- "kind",
111
- "verdict",
112
- "ingestReasonCodes",
113
- "runHeaderReasonCodes",
114
- "units"
115
- ],
116
- "properties": {
117
- "lockSchemaVersion": { "const": 1 },
118
- "kind": { "const": "quick" },
119
- "verdict": {
120
- "type": "string",
121
- "enum": ["pass", "fail", "uncertain"]
122
- },
123
- "ingestReasonCodes": {
124
- "type": "array",
125
- "items": { "type": "string" }
126
- },
127
- "runHeaderReasonCodes": {
128
- "type": "array",
129
- "items": { "type": "string" }
130
- },
131
- "units": {
132
- "type": "array",
133
- "items": {
134
- "type": "object",
135
- "additionalProperties": false,
136
- "required": [
137
- "unitId",
138
- "kind",
139
- "verdict",
140
- "reasonCodes",
141
- "toolName",
142
- "actionIndex"
143
- ],
144
- "properties": {
145
- "unitId": { "type": "string" },
146
- "kind": { "type": "string", "enum": ["row", "related_exists"] },
147
- "verdict": {
148
- "type": "string",
149
- "enum": ["verified", "fail", "uncertain"]
150
- },
151
- "reasonCodes": {
152
- "type": "array",
153
- "items": { "type": "string" }
154
- },
155
- "toolName": { "type": "string" },
156
- "actionIndex": { "type": "integer", "minimum": 0 }
157
- }
158
- }
159
- }
160
- }
161
- }
162
- ]
163
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/ci-lock-v1.schema.json",
3
+ "title": "CiLockV1",
4
+ "oneOf": [
5
+ {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "lockSchemaVersion",
10
+ "kind",
11
+ "workflowId",
12
+ "status",
13
+ "verificationPolicy",
14
+ "runLevelReasonCodes",
15
+ "eventSequence",
16
+ "steps",
17
+ "primaryFailureCodes",
18
+ "correctnessEnforcementKind",
19
+ "enforceableProjection"
20
+ ],
21
+ "properties": {
22
+ "lockSchemaVersion": { "const": 1 },
23
+ "kind": { "const": "batch" },
24
+ "workflowId": { "type": "string" },
25
+ "status": {
26
+ "type": "string",
27
+ "enum": ["complete", "incomplete", "inconsistent"]
28
+ },
29
+ "verificationPolicy": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": ["consistencyMode", "verificationWindowMs", "pollIntervalMs"],
33
+ "properties": {
34
+ "consistencyMode": { "type": "string", "enum": ["strong", "eventual"] },
35
+ "verificationWindowMs": { "type": "integer" },
36
+ "pollIntervalMs": { "type": "integer" }
37
+ }
38
+ },
39
+ "runLevelReasonCodes": {
40
+ "type": "array",
41
+ "items": { "type": "string" }
42
+ },
43
+ "eventSequence": {
44
+ "oneOf": [
45
+ {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["kind"],
49
+ "properties": {
50
+ "kind": { "const": "normal" }
51
+ }
52
+ },
53
+ {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": ["kind", "reasonCodes"],
57
+ "properties": {
58
+ "kind": { "const": "irregular" },
59
+ "reasonCodes": {
60
+ "type": "array",
61
+ "items": { "type": "string" }
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ },
67
+ "steps": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "seq",
74
+ "toolId",
75
+ "status",
76
+ "outcomeLabel",
77
+ "reasonCodes",
78
+ "referenceCode"
79
+ ],
80
+ "properties": {
81
+ "seq": { "type": "integer", "minimum": 0 },
82
+ "toolId": { "type": "string" },
83
+ "status": { "type": "string" },
84
+ "outcomeLabel": { "type": "string" },
85
+ "reasonCodes": {
86
+ "type": "array",
87
+ "items": { "type": "string" }
88
+ },
89
+ "referenceCode": { "type": ["string", "null"] }
90
+ }
91
+ }
92
+ },
93
+ "primaryFailureCodes": {
94
+ "type": "array",
95
+ "items": { "type": "string" }
96
+ },
97
+ "correctnessEnforcementKind": {
98
+ "type": ["string", "null"]
99
+ },
100
+ "enforceableProjection": {
101
+ "type": ["object", "null"]
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "required": [
109
+ "lockSchemaVersion",
110
+ "kind",
111
+ "verdict",
112
+ "ingestReasonCodes",
113
+ "runHeaderReasonCodes",
114
+ "units"
115
+ ],
116
+ "properties": {
117
+ "lockSchemaVersion": { "const": 1 },
118
+ "kind": { "const": "quick" },
119
+ "verdict": {
120
+ "type": "string",
121
+ "enum": ["pass", "fail", "uncertain"]
122
+ },
123
+ "ingestReasonCodes": {
124
+ "type": "array",
125
+ "items": { "type": "string" }
126
+ },
127
+ "runHeaderReasonCodes": {
128
+ "type": "array",
129
+ "items": { "type": "string" }
130
+ },
131
+ "units": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "unitId",
138
+ "kind",
139
+ "verdict",
140
+ "reasonCodes",
141
+ "toolName",
142
+ "actionIndex"
143
+ ],
144
+ "properties": {
145
+ "unitId": { "type": "string" },
146
+ "kind": { "type": "string", "enum": ["row", "related_exists"] },
147
+ "verdict": {
148
+ "type": "string",
149
+ "enum": ["verified", "fail", "uncertain"]
150
+ },
151
+ "reasonCodes": {
152
+ "type": "array",
153
+ "items": { "type": "string" }
154
+ },
155
+ "toolName": { "type": "string" },
156
+ "actionIndex": { "type": "integer", "minimum": 0 }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ ]
163
+ }
@@ -1,48 +1,48 @@
1
- {
2
- "$id": "https://agentskeptic.com/schemas/cli-error-envelope.schema.json",
3
- "title": "ExecutionTruthLayerCliError",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "required": [
7
- "schemaVersion",
8
- "kind",
9
- "code",
10
- "message",
11
- "failureDiagnosis"
12
- ],
13
- "properties": {
14
- "schemaVersion": { "const": 2 },
15
- "kind": { "const": "execution_truth_layer_error" },
16
- "code": { "type": "string" },
17
- "message": { "type": "string", "maxLength": 2048 },
18
- "failureDiagnosis": {
19
- "type": "object",
20
- "additionalProperties": false,
21
- "required": ["summary", "primaryOrigin", "confidence", "evidence", "actionableFailure"],
22
- "properties": {
23
- "summary": { "type": "string", "maxLength": 2048 },
24
- "primaryOrigin": {
25
- "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/failureOrigin"
26
- },
27
- "confidence": {
28
- "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/failureConfidence"
29
- },
30
- "evidence": {
31
- "type": "array",
32
- "minItems": 1,
33
- "items": {
34
- "type": "object",
35
- "additionalProperties": false,
36
- "required": ["referenceCode"],
37
- "properties": {
38
- "referenceCode": { "type": "string" }
39
- }
40
- }
41
- },
42
- "actionableFailure": {
43
- "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/actionableFailure"
44
- }
45
- }
46
- }
47
- }
48
- }
1
+ {
2
+ "$id": "https://agentskeptic.com/schemas/cli-error-envelope.schema.json",
3
+ "title": "ExecutionTruthLayerCliError",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schemaVersion",
8
+ "kind",
9
+ "code",
10
+ "message",
11
+ "failureDiagnosis"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": { "const": 2 },
15
+ "kind": { "const": "execution_truth_layer_error" },
16
+ "code": { "type": "string" },
17
+ "message": { "type": "string", "maxLength": 2048 },
18
+ "failureDiagnosis": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": ["summary", "primaryOrigin", "confidence", "evidence", "actionableFailure"],
22
+ "properties": {
23
+ "summary": { "type": "string", "maxLength": 2048 },
24
+ "primaryOrigin": {
25
+ "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/failureOrigin"
26
+ },
27
+ "confidence": {
28
+ "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/failureConfidence"
29
+ },
30
+ "evidence": {
31
+ "type": "array",
32
+ "minItems": 1,
33
+ "items": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["referenceCode"],
37
+ "properties": {
38
+ "referenceCode": { "type": "string" }
39
+ }
40
+ }
41
+ },
42
+ "actionableFailure": {
43
+ "$ref": "https://agentskeptic.com/schemas/workflow-truth-report.schema.json#/$defs/actionableFailure"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }