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.
- package/dist/cli/lockOrchestration.test.js +3 -0
- package/dist/cli/lockOrchestration.test.js.map +1 -1
- package/dist/cli.js +195 -18
- package/dist/cli.js.map +1 -1
- package/dist/cliArgv.d.ts +6 -0
- package/dist/cliArgv.d.ts.map +1 -1
- package/dist/cliArgv.js +9 -0
- package/dist/cliArgv.js.map +1 -1
- package/dist/cliExecutionFinalize.d.ts +43 -0
- package/dist/cliExecutionFinalize.d.ts.map +1 -0
- package/dist/cliExecutionFinalize.js +149 -0
- package/dist/cliExecutionFinalize.js.map +1 -0
- package/dist/cliOperationalCodes.d.ts +4 -0
- package/dist/cliOperationalCodes.d.ts.map +1 -1
- package/dist/cliOperationalCodes.js +4 -0
- package/dist/cliOperationalCodes.js.map +1 -1
- package/dist/decisionEvidenceBundle/completeness.d.ts +26 -0
- package/dist/decisionEvidenceBundle/completeness.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/completeness.js +36 -0
- package/dist/decisionEvidenceBundle/completeness.js.map +1 -0
- package/dist/decisionEvidenceBundle/constants.d.ts +9 -0
- package/dist/decisionEvidenceBundle/constants.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/constants.js +9 -0
- package/dist/decisionEvidenceBundle/constants.js.map +1 -0
- package/dist/decisionEvidenceBundle/exitCode.d.ts +4 -0
- package/dist/decisionEvidenceBundle/exitCode.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/exitCode.js +9 -0
- package/dist/decisionEvidenceBundle/exitCode.js.map +1 -0
- package/dist/decisionEvidenceBundle/index.d.ts +6 -0
- package/dist/decisionEvidenceBundle/index.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/index.js +6 -0
- package/dist/decisionEvidenceBundle/index.js.map +1 -0
- package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.d.ts +24 -0
- package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.js +162 -0
- package/dist/decisionEvidenceBundle/validateDecisionEvidenceBundle.js.map +1 -0
- package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.d.ts +21 -0
- package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.js +88 -0
- package/dist/decisionEvidenceBundle/writeDecisionEvidenceBundle.js.map +1 -0
- package/dist/decisionEvidenceBundle.test.d.ts +2 -0
- package/dist/decisionEvidenceBundle.test.d.ts.map +1 -0
- package/dist/decisionEvidenceBundle.test.js +59 -0
- package/dist/decisionEvidenceBundle.test.js.map +1 -0
- package/dist/decisionEvidenceHumanLayer.d.ts +23 -0
- package/dist/decisionEvidenceHumanLayer.d.ts.map +1 -0
- package/dist/decisionEvidenceHumanLayer.js +23 -0
- package/dist/decisionEvidenceHumanLayer.js.map +1 -0
- package/dist/enforceCli.d.ts.map +1 -1
- package/dist/enforceCli.js +22 -3
- package/dist/enforceCli.js.map +1 -1
- package/dist/enforceStateful.d.ts.map +1 -1
- package/dist/enforceStateful.js +150 -97
- package/dist/enforceStateful.js.map +1 -1
- package/dist/execution-identity.v1.json +14 -0
- package/dist/executionIdentityVerifyCli.d.ts +7 -0
- package/dist/executionIdentityVerifyCli.d.ts.map +1 -0
- package/dist/executionIdentityVerifyCli.js +84 -0
- package/dist/executionIdentityVerifyCli.js.map +1 -0
- package/dist/mergeGateReceiptFinalize.d.ts +16 -0
- package/dist/mergeGateReceiptFinalize.d.ts.map +1 -0
- package/dist/mergeGateReceiptFinalize.js +40 -0
- package/dist/mergeGateReceiptFinalize.js.map +1 -0
- package/dist/operationalDisposition.d.ts +32 -0
- package/dist/operationalDisposition.d.ts.map +1 -1
- package/dist/operationalDisposition.js +32 -0
- package/dist/operationalDisposition.js.map +1 -1
- package/dist/publicDistribution.generated.d.ts +1 -1
- package/dist/publicDistribution.generated.js +1 -1
- package/dist/schemaLoad.d.ts +1 -1
- package/dist/schemaLoad.d.ts.map +1 -1
- package/dist/schemaLoad.js +12 -0
- package/dist/schemaLoad.js.map +1 -1
- package/dist/standardVerifyWorkflowCli.d.ts +2 -0
- package/dist/standardVerifyWorkflowCli.d.ts.map +1 -1
- package/dist/standardVerifyWorkflowCli.js +5 -2
- package/dist/standardVerifyWorkflowCli.js.map +1 -1
- package/dist/verificationReceipt.d.ts +44 -0
- package/dist/verificationReceipt.d.ts.map +1 -0
- package/dist/verificationReceipt.js +131 -0
- package/dist/verificationReceipt.js.map +1 -0
- package/dist/verify/batchVerifyTelemetrySubcommand.d.ts.map +1 -1
- package/dist/verify/batchVerifyTelemetrySubcommand.js +115 -17
- package/dist/verify/batchVerifyTelemetrySubcommand.js.map +1 -1
- package/package.json +6 -4
- package/schemas/agentskeptic-error-codes.json +28 -0
- package/schemas/ci/verification-truth.manifest.json +30 -1
- package/schemas/ci/verification-truth.manifest.schema.json +6 -1
- package/schemas/decision-bundle-validation-v1.schema.json +50 -0
- package/schemas/decision-evidence-attestation-v1.schema.json +19 -0
- package/schemas/decision-evidence-bundle-manifest-v1.schema.json +51 -0
- package/schemas/decision-evidence-exit-v1.schema.json +13 -0
- package/schemas/decision-evidence-human-layer-v1.schema.json +27 -0
- package/schemas/decision-evidence-next-action-v1.schema.json +14 -0
- package/schemas/execution-identity-v1.schema.json +36 -0
- package/schemas/openapi-commercial-v1.yaml +1 -1
- package/schemas/verification-receipt-v1.schema.json +108 -0
- 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
|
+
}
|
|
@@ -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.
|
|
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
|
}
|