agentskeptic 3.3.3 → 3.5.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.
Files changed (98) hide show
  1. package/dist/cli/lockOrchestration.test.js +3 -0
  2. package/dist/cli/lockOrchestration.test.js.map +1 -1
  3. package/dist/cli.js +195 -18
  4. package/dist/cli.js.map +1 -1
  5. package/dist/cliArgv.d.ts +6 -0
  6. package/dist/cliArgv.d.ts.map +1 -1
  7. package/dist/cliArgv.js +9 -0
  8. package/dist/cliArgv.js.map +1 -1
  9. package/dist/cliExecutionFinalize.d.ts +43 -0
  10. package/dist/cliExecutionFinalize.d.ts.map +1 -0
  11. package/dist/cliExecutionFinalize.js +149 -0
  12. package/dist/cliExecutionFinalize.js.map +1 -0
  13. package/dist/cliOperationalCodes.d.ts +4 -0
  14. package/dist/cliOperationalCodes.d.ts.map +1 -1
  15. package/dist/cliOperationalCodes.js +4 -0
  16. package/dist/cliOperationalCodes.js.map +1 -1
  17. package/dist/decisionEvidenceBundle/completeness.d.ts +26 -0
  18. package/dist/decisionEvidenceBundle/completeness.d.ts.map +1 -0
  19. package/dist/decisionEvidenceBundle/completeness.js +36 -0
  20. package/dist/decisionEvidenceBundle/completeness.js.map +1 -0
  21. package/dist/decisionEvidenceBundle/constants.d.ts +9 -0
  22. package/dist/decisionEvidenceBundle/constants.d.ts.map +1 -0
  23. package/dist/decisionEvidenceBundle/constants.js +9 -0
  24. package/dist/decisionEvidenceBundle/constants.js.map +1 -0
  25. package/dist/decisionEvidenceBundle/exitCode.d.ts +4 -0
  26. package/dist/decisionEvidenceBundle/exitCode.d.ts.map +1 -0
  27. package/dist/decisionEvidenceBundle/exitCode.js +9 -0
  28. package/dist/decisionEvidenceBundle/exitCode.js.map +1 -0
  29. package/dist/decisionEvidenceBundle/index.d.ts +6 -0
  30. package/dist/decisionEvidenceBundle/index.d.ts.map +1 -0
  31. package/dist/decisionEvidenceBundle/index.js +6 -0
  32. package/dist/decisionEvidenceBundle/index.js.map +1 -0
  33. package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.d.ts +24 -0
  34. package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.d.ts.map +1 -0
  35. package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.js +162 -0
  36. package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.js.map +1 -0
  37. package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.d.ts +21 -0
  38. package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.d.ts.map +1 -0
  39. package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.js +88 -0
  40. package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.js.map +1 -0
  41. package/dist/decisionEvidenceBundle.test.d.ts +2 -0
  42. package/dist/decisionEvidenceBundle.test.d.ts.map +1 -0
  43. package/dist/decisionEvidenceBundle.test.js +59 -0
  44. package/dist/decisionEvidenceBundle.test.js.map +1 -0
  45. package/dist/decisionEvidenceHumanLayer.d.ts +23 -0
  46. package/dist/decisionEvidenceHumanLayer.d.ts.map +1 -0
  47. package/dist/decisionEvidenceHumanLayer.js +23 -0
  48. package/dist/decisionEvidenceHumanLayer.js.map +1 -0
  49. package/dist/enforceCli.d.ts.map +1 -1
  50. package/dist/enforceCli.js +22 -3
  51. package/dist/enforceCli.js.map +1 -1
  52. package/dist/enforceStateful.d.ts.map +1 -1
  53. package/dist/enforceStateful.js +150 -97
  54. package/dist/enforceStateful.js.map +1 -1
  55. package/dist/execution-identity.v1.json +14 -0
  56. package/dist/executionIdentityVerifyCli.d.ts +7 -0
  57. package/dist/executionIdentityVerifyCli.d.ts.map +1 -0
  58. package/dist/executionIdentityVerifyCli.js +84 -0
  59. package/dist/executionIdentityVerifyCli.js.map +1 -0
  60. package/dist/mergeGateReceiptFinalize.d.ts +16 -0
  61. package/dist/mergeGateReceiptFinalize.d.ts.map +1 -0
  62. package/dist/mergeGateReceiptFinalize.js +40 -0
  63. package/dist/mergeGateReceiptFinalize.js.map +1 -0
  64. package/dist/operationalDisposition.d.ts +32 -0
  65. package/dist/operationalDisposition.d.ts.map +1 -1
  66. package/dist/operationalDisposition.js +32 -0
  67. package/dist/operationalDisposition.js.map +1 -1
  68. package/dist/publicDistribution.generated.d.ts +1 -1
  69. package/dist/publicDistribution.generated.js +1 -1
  70. package/dist/schemaLoad.d.ts +1 -1
  71. package/dist/schemaLoad.d.ts.map +1 -1
  72. package/dist/schemaLoad.js +12 -0
  73. package/dist/schemaLoad.js.map +1 -1
  74. package/dist/standardVerifyWorkflowCli.d.ts +2 -0
  75. package/dist/standardVerifyWorkflowCli.d.ts.map +1 -1
  76. package/dist/standardVerifyWorkflowCli.js +5 -2
  77. package/dist/standardVerifyWorkflowCli.js.map +1 -1
  78. package/dist/verificationReceipt.d.ts +44 -0
  79. package/dist/verificationReceipt.d.ts.map +1 -0
  80. package/dist/verificationReceipt.js +131 -0
  81. package/dist/verificationReceipt.js.map +1 -0
  82. package/dist/verify/batchVerifyTelemetrySubcommand.d.ts.map +1 -1
  83. package/dist/verify/batchVerifyTelemetrySubcommand.js +115 -17
  84. package/dist/verify/batchVerifyTelemetrySubcommand.js.map +1 -1
  85. package/package.json +6 -4
  86. package/schemas/agentskeptic-error-codes.json +28 -0
  87. package/schemas/ci/verification-truth.manifest.json +30 -1
  88. package/schemas/ci/verification-truth.manifest.schema.json +6 -1
  89. package/schemas/decision-bundle-validation-v1.schema.json +50 -0
  90. package/schemas/decision-evidence-attestation-v1.schema.json +19 -0
  91. package/schemas/decision-evidence-bundle-manifest-v1.schema.json +51 -0
  92. package/schemas/decision-evidence-exit-v1.schema.json +13 -0
  93. package/schemas/decision-evidence-human-layer-v1.schema.json +27 -0
  94. package/schemas/decision-evidence-next-action-v1.schema.json +14 -0
  95. package/schemas/execution-identity-v1.schema.json +36 -0
  96. package/schemas/openapi-commercial-v1.yaml +1 -1
  97. package/schemas/verification-receipt-v1.schema.json +108 -0
  98. package/scripts/emit-primary-marketing.cjs +1 -1
@@ -0,0 +1,51 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/decision-evidence-bundle-manifest-v1.schema.json",
4
+ "title": "DecisionEvidenceBundleManifestV1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "bundleKind",
10
+ "createdAt",
11
+ "workflowId",
12
+ "completeness"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": { "const": 1 },
16
+ "bundleKind": { "const": "decision_evidence" },
17
+ "producer": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "required": ["name", "version"],
21
+ "properties": {
22
+ "name": { "type": "string" },
23
+ "version": { "type": "string" }
24
+ }
25
+ },
26
+ "createdAt": { "type": "string", "format": "date-time" },
27
+ "workflowId": { "type": "string" },
28
+ "runId": { "type": "string" },
29
+ "completeness": {
30
+ "type": "object",
31
+ "additionalProperties": false,
32
+ "required": ["status", "artifacts"],
33
+ "properties": {
34
+ "status": {
35
+ "type": "string",
36
+ "enum": ["complete", "partial", "invalid"]
37
+ },
38
+ "artifacts": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["a4Present", "a5Present", "a5Required"],
42
+ "properties": {
43
+ "a4Present": { "type": "boolean" },
44
+ "a5Present": { "type": "boolean" },
45
+ "a5Required": { "type": "boolean" }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/decision-evidence-exit-v1.schema.json",
4
+ "title": "DecisionEvidenceExitV1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "exitCode", "cliConvention"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "exitCode": { "type": "integer", "minimum": 0, "maximum": 3 },
11
+ "cliConvention": { "const": "outcome_certificate_v1" }
12
+ }
13
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/decision-evidence-human-layer-v1.schema.json",
4
+ "title": "DecisionEvidenceHumanLayerV1",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["schemaVersion", "kind", "text"],
10
+ "properties": {
11
+ "schemaVersion": { "const": 1 },
12
+ "kind": { "const": "report" },
13
+ "text": { "type": "string" }
14
+ }
15
+ },
16
+ {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "required": ["schemaVersion", "kind", "reason"],
20
+ "properties": {
21
+ "schemaVersion": { "const": 1 },
22
+ "kind": { "const": "suppressed" },
23
+ "reason": { "const": "no_human_report" }
24
+ }
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/decision-evidence-next-action-v1.schema.json",
4
+ "title": "DecisionEvidenceNextActionV1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaVersion", "summary", "createdAt"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "summary": { "type": "string", "minLength": 1 },
11
+ "ticketUrl": { "type": "string" },
12
+ "createdAt": { "type": "string", "format": "date-time" }
13
+ }
14
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/execution-identity-v1.schema.json",
4
+ "title": "AgentSkeptic execution identity (packaged build)",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "$schema",
9
+ "identityVersion",
10
+ "npmPackageVersion",
11
+ "nodeEnginesDeclared",
12
+ "verificationContractManifest",
13
+ "pythonPipExtrasFragment",
14
+ "closedDriftPathCount",
15
+ "mergeGateFingerprintSha256"
16
+ ],
17
+ "properties": {
18
+ "$schema": { "type": "string" },
19
+ "identityVersion": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
20
+ "npmPackageVersion": { "type": "string", "minLength": 1 },
21
+ "nodeEnginesDeclared": { "type": "string" },
22
+ "verificationContractManifest": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["version", "manifestSha256", "url"],
26
+ "properties": {
27
+ "version": { "type": "string" },
28
+ "manifestSha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
29
+ "url": { "type": "string", "format": "uri" }
30
+ }
31
+ },
32
+ "pythonPipExtrasFragment": { "type": "string", "minLength": 1 },
33
+ "closedDriftPathCount": { "type": "integer", "minimum": 0 },
34
+ "mergeGateFingerprintSha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
35
+ }
36
+ }
@@ -1,7 +1,7 @@
1
1
  openapi: "3.0.3"
2
2
  info:
3
3
  title: AgentSkeptic commercial license API
4
- version: "3.3.3"
4
+ version: "3.5.0"
5
5
  contact:
6
6
  url: https://agentskeptic.com
7
7
  x-agentskeptic-distribution:
@@ -0,0 +1,108 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentskeptic.com/schemas/verification-receipt-v1.schema.json",
4
+ "title": "AgentSkeptic verification receipt v1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "$schema",
9
+ "receiptVersion",
10
+ "kind",
11
+ "outcome",
12
+ "exitCode",
13
+ "emittedAt",
14
+ "pid",
15
+ "receiptPathRelative",
16
+ "runtime",
17
+ "verificationSummary",
18
+ "inputIntegrity",
19
+ "executionIdentityEmbedded",
20
+ "executionIdentitySha256",
21
+ "abortReason",
22
+ "phaseTimingsMs"
23
+ ],
24
+ "properties": {
25
+ "$schema": { "type": "string" },
26
+ "receiptVersion": { "type": "string", "const": "1.0.0" },
27
+ "kind": { "type": "string", "enum": ["merge_gate", "verify", "enforce"] },
28
+ "outcome": { "type": "string", "enum": ["success", "failure", "operational_abort"] },
29
+ "exitCode": { "type": "integer" },
30
+ "emittedAt": { "type": "string" },
31
+ "pid": { "type": "integer", "minimum": 1 },
32
+ "receiptPathRelative": { "type": "string", "minLength": 1 },
33
+ "runtime": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["nodeProcessVersion", "platform", "arch"],
37
+ "properties": {
38
+ "nodeProcessVersion": { "type": "string" },
39
+ "platform": { "type": "string" },
40
+ "arch": { "type": "string" }
41
+ }
42
+ },
43
+ "verificationSummary": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": ["workflowStatus", "operationalCode", "enforceExitKind"],
47
+ "properties": {
48
+ "workflowStatus": { "type": ["string", "null"] },
49
+ "operationalCode": { "type": ["string", "null"] },
50
+ "enforceExitKind": { "type": ["string", "null"] }
51
+ }
52
+ },
53
+ "inputIntegrity": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "workflowId",
58
+ "dbKind",
59
+ "eventsSha256",
60
+ "registrySha256",
61
+ "npmTestScript",
62
+ "verificationTruthExitPhase"
63
+ ],
64
+ "properties": {
65
+ "workflowId": { "type": "string" },
66
+ "dbKind": { "type": "string", "enum": ["sqlite", "postgres", "none"] },
67
+ "eventsSha256": { "type": ["string", "null"] },
68
+ "registrySha256": { "type": ["string", "null"] },
69
+ "npmTestScript": { "type": ["string", "null"] },
70
+ "verificationTruthExitPhase": { "type": ["string", "null"] }
71
+ }
72
+ },
73
+ "executionIdentityEmbedded": {
74
+ "anyOf": [{ "type": "object" }, { "type": "null" }]
75
+ },
76
+ "executionIdentitySha256": {
77
+ "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{64}$" }, { "type": "null" }]
78
+ },
79
+ "abortReason": {
80
+ "anyOf": [{ "type": "string", "const": "MISSING_DIST_EXECUTION_IDENTITY" }, { "type": "null" }]
81
+ },
82
+ "phaseTimingsMs": {
83
+ "anyOf": [
84
+ { "type": "null" },
85
+ {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "regeneration",
90
+ "preflightDriftRoster",
91
+ "gitDiffGate",
92
+ "structuralGuards",
93
+ "postgresDistribution",
94
+ "journeyTail"
95
+ ],
96
+ "properties": {
97
+ "regeneration": { "type": "integer", "minimum": 0 },
98
+ "preflightDriftRoster": { "type": "integer", "minimum": 0 },
99
+ "gitDiffGate": { "type": "integer", "minimum": 0 },
100
+ "structuralGuards": { "type": "integer", "minimum": 0 },
101
+ "postgresDistribution": { "type": "integer", "minimum": 0 },
102
+ "journeyTail": { "type": "integer", "minimum": 0 }
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ }
108
+ }
@@ -177,7 +177,7 @@ Normative **public distribution** and anchor sync: [\`docs/public-distribution.m
177
177
  - Verification Contract Manifest (canonical): ${contractPin.url}
178
178
  - Verification Contract Manifest (repo raw): ${contractRaw}
179
179
  - Acquisition page (canonical): ${acquisitionUrl}
180
- - CI regeneration + drift pathspecs: [\`schemas/ci/verification-truth.manifest.json\`](schemas/ci/verification-truth.manifest.json) (validated by [\`test/verification-truth.manifest.completeness.test.mjs\`](test/verification-truth.manifest.completeness.test.mjs))
180
+ - CI regeneration + drift pathspecs: [\`schemas/ci/verification-truth.manifest.json\`](schemas/ci/verification-truth.manifest.json) (validated by [\`test/verification-truth.closed-drift.contract.test.mjs\`](test/verification-truth.closed-drift.contract.test.mjs))
181
181
  `;
182
182
  writeFileSync(join(ROOT, "AGENTS.md"), body, "utf8");
183
183
  }