agentskeptic 0.2.0 → 1.0.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/README.md +69 -0
- package/dist/actionableFailure.remediationExhaustive.test.js +4 -4
- package/dist/actionableFailure.remediationExhaustive.test.js.map +1 -1
- package/dist/agentRunBundle.js +1 -2
- package/dist/agentRunBundle.js.map +1 -1
- package/dist/agentRunRecord.d.ts +5 -0
- package/dist/agentRunRecord.d.ts.map +1 -1
- package/dist/agentRunRecord.js +5 -0
- package/dist/agentRunRecord.js.map +1 -1
- package/dist/ciLockWorkflow.js +1 -1
- package/dist/cli/lockOrchestration.d.ts.map +1 -1
- package/dist/cli/lockOrchestration.js +40 -45
- package/dist/cli/lockOrchestration.js.map +1 -1
- package/dist/cli/lockOrchestration.test.js +6 -1
- package/dist/cli/lockOrchestration.test.js.map +1 -1
- package/dist/cli/runFunnelAnonSet.d.ts +18 -0
- package/dist/cli/runFunnelAnonSet.d.ts.map +1 -0
- package/dist/cli/runFunnelAnonSet.js +113 -0
- package/dist/cli/runFunnelAnonSet.js.map +1 -0
- package/dist/cli.js +31 -23
- package/dist/cli.js.map +1 -1
- package/dist/cliArgv.d.ts +2 -1
- package/dist/cliArgv.d.ts.map +1 -1
- package/dist/cliArgv.js +3 -2
- package/dist/cliArgv.js.map +1 -1
- package/dist/crossing/crossingDecisionReadyFooter.d.ts +1 -1
- package/dist/crossing/crossingDecisionReadyFooter.d.ts.map +1 -1
- package/dist/crossing/crossingDecisionReadyFooter.js +1 -1
- package/dist/crossing/crossingDecisionReadyFooter.js.map +1 -1
- package/dist/crossing/runCrossingSubcommand.js +8 -8
- package/dist/debugCorpus.d.ts +2 -5
- package/dist/debugCorpus.d.ts.map +1 -1
- package/dist/debugCorpus.js +2 -5
- package/dist/debugCorpus.js.map +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/outcomeCertificate.d.ts +48 -0
- package/dist/outcomeCertificate.d.ts.map +1 -0
- package/dist/outcomeCertificate.js +135 -0
- package/dist/outcomeCertificate.js.map +1 -0
- package/dist/outcomeCertificate.test.d.ts +2 -0
- package/dist/outcomeCertificate.test.d.ts.map +1 -0
- package/dist/outcomeCertificate.test.js +72 -0
- package/dist/outcomeCertificate.test.js.map +1 -0
- package/dist/planTransition.test.js +4 -4
- 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 +5 -0
- package/dist/schemaLoad.js.map +1 -1
- package/dist/shareReport/postPublicVerificationReport.d.ts +6 -0
- package/dist/shareReport/postPublicVerificationReport.d.ts.map +1 -1
- package/dist/shareReport/postPublicVerificationReport.js +3 -1
- package/dist/shareReport/postPublicVerificationReport.js.map +1 -1
- package/dist/standardVerifyWorkflowCli.d.ts +14 -4
- package/dist/standardVerifyWorkflowCli.d.ts.map +1 -1
- package/dist/standardVerifyWorkflowCli.js +35 -22
- package/dist/standardVerifyWorkflowCli.js.map +1 -1
- package/dist/telemetry/cliInstallId.d.ts +12 -0
- package/dist/telemetry/cliInstallId.d.ts.map +1 -1
- package/dist/telemetry/cliInstallId.js +46 -8
- package/dist/telemetry/cliInstallId.js.map +1 -1
- package/dist/telemetry/maybeEmitOssClaimTicketUrl.d.ts.map +1 -1
- package/dist/telemetry/maybeEmitOssClaimTicketUrl.js +24 -6
- package/dist/telemetry/maybeEmitOssClaimTicketUrl.js.map +1 -1
- package/dist/telemetry/openHandoffUrlInOsBrowser.d.ts +9 -0
- package/dist/telemetry/openHandoffUrlInOsBrowser.d.ts.map +1 -0
- package/dist/telemetry/openHandoffUrlInOsBrowser.js +24 -0
- package/dist/telemetry/openHandoffUrlInOsBrowser.js.map +1 -0
- package/dist/telemetry/postOssClaimContinuation.d.ts +5 -0
- package/dist/telemetry/postOssClaimContinuation.d.ts.map +1 -0
- package/dist/telemetry/postOssClaimContinuation.js +30 -0
- package/dist/telemetry/postOssClaimContinuation.js.map +1 -0
- package/dist/telemetry/postOssClaimTicket.d.ts +12 -2
- package/dist/telemetry/postOssClaimTicket.d.ts.map +1 -1
- package/dist/telemetry/postOssClaimTicket.js +36 -7
- package/dist/telemetry/postOssClaimTicket.js.map +1 -1
- package/dist/telemetry/postProductActivationEvent.d.ts.map +1 -1
- package/dist/telemetry/postProductActivationEvent.js +5 -2
- package/dist/telemetry/postProductActivationEvent.js.map +1 -1
- package/dist/verify/batchVerifyTelemetrySubcommand.d.ts.map +1 -1
- package/dist/verify/batchVerifyTelemetrySubcommand.js +20 -17
- package/dist/verify/batchVerifyTelemetrySubcommand.js.map +1 -1
- package/dist/verifyAgentskeptic.d.ts +12 -0
- package/dist/verifyAgentskeptic.d.ts.map +1 -0
- package/dist/verifyAgentskeptic.js +46 -0
- package/dist/verifyAgentskeptic.js.map +1 -0
- package/dist/verifyAgentskeptic.test.d.ts +2 -0
- package/dist/verifyAgentskeptic.test.d.ts.map +1 -0
- package/dist/verifyAgentskeptic.test.js +86 -0
- package/dist/verifyAgentskeptic.test.js.map +1 -0
- package/dist/verifyRunBundleSignature.d.ts.map +1 -1
- package/dist/verifyRunBundleSignature.js +1 -2
- package/dist/verifyRunBundleSignature.js.map +1 -1
- package/package.json +6 -7
- package/schemas/openapi-commercial-v1.in.yaml +3 -3
- package/schemas/openapi-commercial-v1.yaml +3 -3
- package/schemas/outcome-certificate-v1.schema.json +66 -0
- package/schemas/public-verification-report-v2.schema.json +15 -0
- package/scripts/discovery-payload.lib.cjs +27 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://agentskeptic.com/schemas/outcome-certificate-v1.schema.json",
|
|
3
|
+
"title": "OutcomeCertificateV1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"workflowId",
|
|
9
|
+
"runKind",
|
|
10
|
+
"stateRelation",
|
|
11
|
+
"highStakesReliance",
|
|
12
|
+
"relianceRationale",
|
|
13
|
+
"intentSummary",
|
|
14
|
+
"explanation",
|
|
15
|
+
"steps",
|
|
16
|
+
"humanReport"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": { "type": "integer", "const": 1 },
|
|
20
|
+
"workflowId": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
21
|
+
"runKind": { "type": "string", "enum": ["contract_sql", "quick_preview"] },
|
|
22
|
+
"stateRelation": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["matches_expectations", "does_not_match", "not_established"]
|
|
25
|
+
},
|
|
26
|
+
"highStakesReliance": { "type": "string", "enum": ["permitted", "prohibited"] },
|
|
27
|
+
"relianceRationale": { "type": "string", "minLength": 1, "maxLength": 8192 },
|
|
28
|
+
"intentSummary": { "type": "string", "minLength": 1, "maxLength": 8192 },
|
|
29
|
+
"explanation": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["headline", "details"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"headline": { "type": "string", "minLength": 1, "maxLength": 2048 },
|
|
35
|
+
"details": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["code", "message"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"code": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
43
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"steps": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["seq", "declaredAction", "expectedOutcome", "observedOutcome"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"seq": { "type": "integer", "minimum": 0 },
|
|
57
|
+
"toolId": { "type": "string", "maxLength": 512 },
|
|
58
|
+
"declaredAction": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
59
|
+
"expectedOutcome": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
60
|
+
"observedOutcome": { "type": "string", "minLength": 1, "maxLength": 8192 }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"humanReport": { "type": "string", "minLength": 1, "maxLength": 1048576 }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://agentskeptic.com/schemas/public-verification-report-v2.schema.json",
|
|
3
|
+
"title": "PublicVerificationReportEnvelopeV2",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "certificate"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "type": "integer", "const": 2 },
|
|
9
|
+
"certificate": {
|
|
10
|
+
"$ref": "https://agentskeptic.com/schemas/outcome-certificate-v1.schema.json"
|
|
11
|
+
},
|
|
12
|
+
"cliVersion": { "type": "string", "maxLength": 128 },
|
|
13
|
+
"createdFrom": { "type": "string", "maxLength": 256 }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -27,6 +27,21 @@ const MAX_SUMMARY_UTF8_BYTES = 65536;
|
|
|
27
27
|
const MAX_PR_BODY_UTF8_BYTES = 10240;
|
|
28
28
|
const STDERR_TAIL_LINES = 20;
|
|
29
29
|
|
|
30
|
+
const REPO_ROOT = join(__dirname, "..");
|
|
31
|
+
const README_ADOPTION_START = "<!-- adoption-canonical:start -->";
|
|
32
|
+
const README_ADOPTION_END = "<!-- adoption-canonical:end -->";
|
|
33
|
+
|
|
34
|
+
function extractReadmeAdoptionExcerptForLlms() {
|
|
35
|
+
const readme = readFileSync(join(REPO_ROOT, "README.md"), "utf8");
|
|
36
|
+
const i = readme.indexOf(README_ADOPTION_START);
|
|
37
|
+
const j = readme.indexOf(README_ADOPTION_END);
|
|
38
|
+
if (i < 0 || j < 0 || j <= i) return "";
|
|
39
|
+
return readme
|
|
40
|
+
.slice(i + README_ADOPTION_START.length, j)
|
|
41
|
+
.replace(/^\r?\n/, "")
|
|
42
|
+
.replace(/\r?\n$/, "");
|
|
43
|
+
}
|
|
44
|
+
|
|
30
45
|
/**
|
|
31
46
|
* @param {string} gitRepositoryUrl
|
|
32
47
|
* @returns {{ owner: string, repo: string }}
|
|
@@ -180,11 +195,22 @@ function renderLlmsTextFromPayload(payload) {
|
|
|
180
195
|
const integrateUrl = links.integrate;
|
|
181
196
|
const learnHubUrl = links.learnHub;
|
|
182
197
|
const openapiSelfCanonical = links.openapiCanonical;
|
|
198
|
+
const adoptionExcerpt = extractReadmeAdoptionExcerptForLlms();
|
|
199
|
+
const adoptionLlmsBlock =
|
|
200
|
+
adoptionExcerpt.length > 0
|
|
201
|
+
? [
|
|
202
|
+
"<!-- adoption-canonical-llms:start -->",
|
|
203
|
+
adoptionExcerpt,
|
|
204
|
+
"<!-- adoption-canonical-llms:end -->",
|
|
205
|
+
String(payload.identityOneLiner),
|
|
206
|
+
].join("\n")
|
|
207
|
+
: String(payload.identityOneLiner);
|
|
183
208
|
const lines = [
|
|
184
209
|
"# AgentSkeptic",
|
|
185
210
|
"",
|
|
186
211
|
"## Summary",
|
|
187
|
-
|
|
212
|
+
"",
|
|
213
|
+
adoptionLlmsBlock,
|
|
188
214
|
"",
|
|
189
215
|
"## Primary links",
|
|
190
216
|
`- Canonical site: ${links.site}`,
|