@thomasminh1995/depverdict 0.6.0-alpha.1
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/LICENSE +21 -0
- package/README.md +518 -0
- package/bin/depverdict.js +7 -0
- package/bin/upgradelens.js +7 -0
- package/docs/GR-01-Semantic-Grounding-Failure-Analysis.md +309 -0
- package/docs/GR-02-Versioned-Action-Evaluation-Criteria.md +187 -0
- package/docs/GR-03-Extractive-Contract-Safety-Experiment.md +242 -0
- package/docs/GR-04-Versioned-Production-Extractive-Contract.md +154 -0
- package/docs/IA-01-Repository-Usage-Discovery.md +122 -0
- package/docs/IA-02-Repository-Impact-Analysis.md +118 -0
- package/docs/IA-03-Repository-Impact-Evidence.md +160 -0
- package/docs/IA-04-CLI-Orchestration.md +235 -0
- package/docs/IA-05-Real-Provider-Validation.md +235 -0
- package/docs/IA-05-VinGrade-Validation.md +339 -0
- package/docs/MVP-01.md +48 -0
- package/docs/MVP-02-Architecture.md +536 -0
- package/docs/MVP-02-CLI-HTTP-Runtime.md +50 -0
- package/docs/MVP-02-HTTP-Lifecycle.md +37 -0
- package/docs/MVP-02-Knowledge-Manifest-Generation.md +75 -0
- package/docs/MVP-02-Knowledge-Manifest.md +279 -0
- package/docs/MVP-02-Knowledge-Research-Orchestration.md +62 -0
- package/docs/MVP-02-Knowledge-Store.md +87 -0
- package/docs/MVP-02-PyPI-Registry-Adapter.md +97 -0
- package/docs/MVP-02-Research-Planning.md +196 -0
- package/docs/MVP-02-Source-Provenance.md +81 -0
- package/docs/MVP-02-npm-Registry-Adapter.md +99 -0
- package/docs/RR-01-End-to-End-and-Real-Provider-Validation.md +393 -0
- package/docs/RR-01-RERUN-Extractive-Contract-Validation.md +566 -0
- package/docs/RR-02-Full-Product-Workflow-and-Developer-CLI-UX-Review.md +35 -0
- package/docs/RR02-FIX-01-Persistent-Qualification-Resolution.md +32 -0
- package/docs/RR02-FIX-02-Stage-aware-CLI-Progress-and-Heartbeat.md +28 -0
- package/docs/RR02-FIX-03-npm-Capture-Evidence-Exclusion.md +33 -0
- package/docs/RR02-FIX-03A-Complete-Package-Exclusion-and-Evidence-Commit.md +223 -0
- package/docs/RR02-FIX-04-Event-loop-safe-Heartbeat.md +393 -0
- package/docs/RR02-FIX-05-Materialize-Persisted-Qualification.md +207 -0
- package/docs/RR02-RERUN-CLI-Qualification-Progress-UX-and-Package-Validation.md +342 -0
- package/docs/VinGrade-MVP-02-Validation.md +480 -0
- package/docs/VinGrade-RC02-Live-Validation.md +273 -0
- package/docs/ai-capability-discovery.md +573 -0
- package/docs/ai-engineering-production-readiness.md +390 -0
- package/docs/ai-engineering-review.md +251 -0
- package/docs/ai-runtime-governance-discovery.md +754 -0
- package/docs/architecture-overview.md +78 -0
- package/docs/cli-progress.md +111 -0
- package/docs/decisions/diff-01-brand-distribution-identity.md +450 -0
- package/docs/decisions/diff-02-identity-compatibility-contract.md +274 -0
- package/docs/decisions/diff-03-repository-docs-community-migration.md +165 -0
- package/docs/decisions/diff-04-release-evidence-gap-acceptance.md +110 -0
- package/docs/discovery/mvp-05-ai-migration-planning-discovery.md +350 -0
- package/docs/gateway-runtime-discovery.md +614 -0
- package/docs/live-ai-validation.md +299 -0
- package/docs/migration-planning-qualification-resolution.md +99 -0
- package/docs/migrations/upgradelens-to-depverdict.md +97 -0
- package/docs/mp-r03-deterministic-upgrade-decision-architecture.md +135 -0
- package/docs/mp-r04-evidence-bounded-migration-handoff-architecture.md +116 -0
- package/docs/mp-r05-product-completion-and-decision-first-cli-architecture.md +162 -0
- package/docs/mvp-05-deterministic-context-runtime.md +127 -0
- package/docs/mvp-05-migration-checklist-contract.md +166 -0
- package/docs/mvp-05-migration-checklist-orchestration.md +105 -0
- package/docs/mvp-05-migration-evaluation-and-qualification.md +135 -0
- package/docs/mvp-05-provider-neutral-generator.md +79 -0
- package/docs/ollama-local-smoke-validation.md +156 -0
- package/docs/openai-compatible-runtime-discovery.md +789 -0
- package/docs/openrouter-one-dependency-validation.md +205 -0
- package/docs/oss-02-package-guard-hardening-architecture.md +131 -0
- package/docs/oss-04-public-ci-package-metadata-architecture.md +142 -0
- package/docs/package-content-policy.md +98 -0
- package/docs/releases/v0.5.0-technical-preview.md +114 -0
- package/docs/releases/v0.6.0-alpha.1-depverdict-preview.md +101 -0
- package/docs/reviews/diff-02-identity-contract-compatibility.md +413 -0
- package/docs/reviews/diff-03-repository-docs-community-migration.md +364 -0
- package/docs/reviews/diff-04-depverdict-distribution-identity-readiness-rereview.md +453 -0
- package/docs/reviews/diff-04-fix-post-rename-identity-release-remediation.md +310 -0
- package/docs/reviews/diff-05-final-preview-distribution-qualification.md +561 -0
- package/docs/reviews/mvp-05-final-product-value-workflow-rereview.md +471 -0
- package/docs/reviews/mvp-05-product-workflow-review.md +605 -0
- package/docs/reviews/oss-01-duplicate-artifact-investigation-cleanup.md +411 -0
- package/docs/reviews/oss-02-package-guard-hardening.md +303 -0
- package/docs/reviews/oss-03-community-scaffolding.md +378 -0
- package/docs/reviews/oss-04-public-ci-package-metadata.md +439 -0
- package/docs/reviews/oss-05-technical-preview-qualification.md +482 -0
- package/docs/reviews/upgradelens-vs-upgradedepdetective-source-comparison.md +355 -0
- package/docs/reviews/v0.5.0-pre-release-smoke.md +263 -0
- package/docs/reviews/v0.5.0-version-bump-release-verification.md +306 -0
- package/docs/runtime-contract-discovery.md +521 -0
- package/docs/structured-output-compatibility-report.md +100 -0
- package/docs/ts-fix-01-exact-duplicate-occurrence-target-selection-architecture.md +111 -0
- package/docs/version-analysis-architecture.md +827 -0
- package/eval/README.md +86 -0
- package/eval/datasets/generic/declared-constraint.json +59 -0
- package/eval/datasets/generic/evidence-conflict.json +73 -0
- package/eval/datasets/generic/major-breaking-release.json +66 -0
- package/eval/datasets/generic/missing-evidence.json +46 -0
- package/eval/datasets/generic/patch-release-low.json +59 -0
- package/eval/datasets/node/axios-patch-low.json +59 -0
- package/eval/datasets/node/react-major-breaking.json +66 -0
- package/eval/datasets/node/react-minor-compatibility.json +66 -0
- package/eval/datasets/python/fastapi-deprecation.json +66 -0
- package/eval/datasets/python/pydantic-major-breaking.json +66 -0
- package/eval/migration-planning/golden-dataset-v2.json +306 -0
- package/eval/migration-planning/golden-dataset.json +214 -0
- package/eval/schemas/expected-result.schema.json +88 -0
- package/eval/schemas/golden-case.schema.json +181 -0
- package/package.json +57 -0
- package/schemas/ai-scorecard.schema.json +132 -0
- package/schemas/benchmark-report.schema.json +189 -0
- package/schemas/benchmark.schema.json +55 -0
- package/schemas/capability-profile.schema.json +44 -0
- package/schemas/conformance-report.schema.json +150 -0
- package/schemas/deployment-profile.schema.json +64 -0
- package/schemas/evaluation-report.schema.json +158 -0
- package/schemas/knowledge-evidence-bundle.schema.json +150 -0
- package/schemas/knowledge-manifest.schema.json +548 -0
- package/schemas/metrics.schema.json +178 -0
- package/schemas/migration-checklist-extractive-candidate.schema.json +42 -0
- package/schemas/migration-checklist.schema.json +706 -0
- package/schemas/migration-evaluation-dataset-v2.schema.json +208 -0
- package/schemas/migration-evaluation-dataset.schema.json +204 -0
- package/schemas/migration-planning-qualification-record.schema.json +234 -0
- package/schemas/project-manifest.schema.json +308 -0
- package/schemas/qualification-record.schema.json +56 -0
- package/schemas/repository-impact-evidence.schema.json +232 -0
- package/schemas/repository-impact.schema.json +202 -0
- package/schemas/upgrade-decision.schema.json +273 -0
- package/schemas/usage-index.schema.json +179 -0
- package/schemas/version-analysis.schema.json +449 -0
- package/src/ai-runtime-debug.js +325 -0
- package/src/ai-runtime-error.js +42 -0
- package/src/ai-runtime.js +174 -0
- package/src/ai-scorecard.js +204 -0
- package/src/ai-version-analysis.js +484 -0
- package/src/artifact-root-compatibility.js +91 -0
- package/src/benchmark-report.js +111 -0
- package/src/benchmark-runner.js +191 -0
- package/src/canonical-json.js +69 -0
- package/src/cli.js +1299 -0
- package/src/conformance-report.js +158 -0
- package/src/conformance-runner.js +253 -0
- package/src/constants.js +73 -0
- package/src/cooperative-scheduler.js +79 -0
- package/src/dependencies.js +44 -0
- package/src/dependency-ai-context.js +625 -0
- package/src/detectors.js +253 -0
- package/src/discovery.js +234 -0
- package/src/ecosystem-version-adapter.js +294 -0
- package/src/environment-compatibility.js +77 -0
- package/src/evaluation-comparator.js +158 -0
- package/src/evaluation-report.js +76 -0
- package/src/evaluation-runner.js +248 -0
- package/src/evidence-source-adapter.js +472 -0
- package/src/files.js +89 -0
- package/src/governance-diagnostics.js +64 -0
- package/src/governance-loader.js +63 -0
- package/src/governance-metadata.js +346 -0
- package/src/governance-validator.js +360 -0
- package/src/http/bounded-fetch.js +278 -0
- package/src/http/cli-http-runtime.js +44 -0
- package/src/impact/input-loader.js +157 -0
- package/src/impact/matcher.js +40 -0
- package/src/impact/repository-impact.js +199 -0
- package/src/impact/runtime.js +24 -0
- package/src/impact/status.js +62 -0
- package/src/impact/writer.js +30 -0
- package/src/impact-evidence/input-loader.js +202 -0
- package/src/impact-evidence/repository-impact-evidence.js +234 -0
- package/src/impact-evidence/runtime.js +16 -0
- package/src/impact-evidence/writer.js +30 -0
- package/src/index.js +563 -0
- package/src/installed-version-baseline.js +196 -0
- package/src/knowledge-cache.js +324 -0
- package/src/knowledge-evidence-bundle.js +101 -0
- package/src/knowledge-evidence-producer.js +233 -0
- package/src/knowledge-manifest-builder.js +188 -0
- package/src/knowledge-manifest-writer.js +32 -0
- package/src/knowledge-manifest.js +255 -0
- package/src/knowledge-research.js +615 -0
- package/src/metrics-engine.js +205 -0
- package/src/migration-checklist/ai-candidate.js +320 -0
- package/src/migration-checklist/assembler.js +37 -0
- package/src/migration-checklist/context-runtime.js +828 -0
- package/src/migration-checklist/evaluation/action-criteria.js +244 -0
- package/src/migration-checklist/evaluation/comparator-v2.js +332 -0
- package/src/migration-checklist/evaluation/comparator.js +279 -0
- package/src/migration-checklist/evaluation/dataset-v2.js +227 -0
- package/src/migration-checklist/evaluation/dataset.js +336 -0
- package/src/migration-checklist/evaluation/extractive-fixtures-v2.js +148 -0
- package/src/migration-checklist/evaluation/metrics-v2.js +226 -0
- package/src/migration-checklist/evaluation/metrics.js +158 -0
- package/src/migration-checklist/evaluation/qualification-v2.js +321 -0
- package/src/migration-checklist/evaluation/qualification.js +239 -0
- package/src/migration-checklist/evaluation/runner-v2.js +294 -0
- package/src/migration-checklist/evaluation/runner.js +194 -0
- package/src/migration-checklist/evaluation/scorecard-v2.js +106 -0
- package/src/migration-checklist/evaluation/scorecard.js +86 -0
- package/src/migration-checklist/extractive-candidate.js +166 -0
- package/src/migration-checklist/extractive-prompt.js +62 -0
- package/src/migration-checklist/generator.js +702 -0
- package/src/migration-checklist/grounding-policy.js +117 -0
- package/src/migration-checklist/input-loader.js +613 -0
- package/src/migration-checklist/migration-checklist.js +635 -0
- package/src/migration-checklist/presentation.js +292 -0
- package/src/migration-checklist/progress.js +96 -0
- package/src/migration-checklist/prompt.js +83 -0
- package/src/migration-checklist/qualification-guard.js +462 -0
- package/src/migration-checklist/qualification-resolution.js +122 -0
- package/src/migration-checklist/qualification-store.js +225 -0
- package/src/migration-checklist/runtime.js +205 -0
- package/src/migration-checklist/verification.js +134 -0
- package/src/migration-checklist/writer.js +35 -0
- package/src/openai-compatible-provider.js +451 -0
- package/src/orchestration/failure-log.js +32 -0
- package/src/orchestration/pipeline.js +200 -0
- package/src/orchestration/progress-events.js +337 -0
- package/src/orchestration/progress-reporter.js +131 -0
- package/src/orchestration/text-writer.js +22 -0
- package/src/portable.js +13 -0
- package/src/product-completion.js +249 -0
- package/src/project-manifest-input.js +90 -0
- package/src/project-manifest.js +141 -0
- package/src/python-requirements.js +137 -0
- package/src/registry/npm-packument.js +256 -0
- package/src/registry/npm-registry-adapter.js +262 -0
- package/src/registry/pypi-project.js +300 -0
- package/src/registry/pypi-registry-adapter.js +235 -0
- package/src/registry/sanitize-registry-body.js +51 -0
- package/src/renderers/console.js +160 -0
- package/src/renderers/impact-presentation.js +278 -0
- package/src/renderers/markdown.js +172 -0
- package/src/research-plan.js +455 -0
- package/src/runtime-conformance.js +275 -0
- package/src/source-provenance.js +393 -0
- package/src/source-url.js +62 -0
- package/src/structured-output-schema.js +66 -0
- package/src/target-selector.js +306 -0
- package/src/upgrade-decision/input-loader.js +107 -0
- package/src/upgrade-decision/presentation.js +43 -0
- package/src/upgrade-decision/runtime.js +21 -0
- package/src/upgrade-decision/upgrade-decision.js +626 -0
- package/src/upgrade-decision/writer.js +30 -0
- package/src/usage/analyzer-registry.js +63 -0
- package/src/usage/coverage.js +116 -0
- package/src/usage/input-loader.js +139 -0
- package/src/usage/js/analyzer.js +240 -0
- package/src/usage/js/parser.js +21 -0
- package/src/usage/runtime.js +187 -0
- package/src/usage/scope.js +44 -0
- package/src/usage/source-files.js +50 -0
- package/src/usage/usage-index.js +217 -0
- package/src/usage/writer.js +31 -0
- package/src/version-analysis-loader.js +203 -0
- package/src/version-analysis-manifest.js +314 -0
- package/src/version-analysis-writer.js +30 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/schemas/ai-scorecard.schema.json",
|
|
4
|
+
"title": "UpgradeLens AI Engineering Scorecard",
|
|
5
|
+
"description": "Deterministic scorecard derived from AI quality metrics.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"generatedAt",
|
|
11
|
+
"generator",
|
|
12
|
+
"input",
|
|
13
|
+
"overallScore",
|
|
14
|
+
"categoryScores",
|
|
15
|
+
"metricDetails",
|
|
16
|
+
"recommendations"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
20
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
21
|
+
"generator": { "$ref": "#/$defs/generator" },
|
|
22
|
+
"input": { "$ref": "#/$defs/input" },
|
|
23
|
+
"overallScore": { "$ref": "#/$defs/score" },
|
|
24
|
+
"categoryScores": { "$ref": "#/$defs/categoryScores" },
|
|
25
|
+
"metricDetails": { "$ref": "#/$defs/metricDetails" },
|
|
26
|
+
"recommendations": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": { "$ref": "#/$defs/recommendation" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"$defs": {
|
|
32
|
+
"score": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
33
|
+
"ratio": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
34
|
+
"nonNegativeInteger": { "type": "integer", "minimum": 0 },
|
|
35
|
+
"generator": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["name", "version"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"name": { "const": "UpgradeLens" },
|
|
41
|
+
"version": { "type": "string", "minLength": 1 }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"input": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["metrics"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"metrics": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["schemaVersion", "generatedAt", "datasetVersion", "promptVersion", "model", "caseCount"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
55
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
56
|
+
"datasetVersion": { "type": "string", "minLength": 1 },
|
|
57
|
+
"promptVersion": { "type": "string", "minLength": 1 },
|
|
58
|
+
"model": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": ["provider", "name"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
64
|
+
"name": { "type": "string", "minLength": 1 }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"caseCount": { "$ref": "#/$defs/nonNegativeInteger" }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"categoryScores": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": [
|
|
76
|
+
"riskAnalysis",
|
|
77
|
+
"humanReview",
|
|
78
|
+
"evidenceQuality",
|
|
79
|
+
"trustLayer",
|
|
80
|
+
"deterministicQuality"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"riskAnalysis": { "$ref": "#/$defs/score" },
|
|
84
|
+
"humanReview": { "$ref": "#/$defs/score" },
|
|
85
|
+
"evidenceQuality": { "$ref": "#/$defs/score" },
|
|
86
|
+
"trustLayer": { "$ref": "#/$defs/score" },
|
|
87
|
+
"deterministicQuality": { "$ref": "#/$defs/score" }
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"metricDetails": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": [
|
|
94
|
+
"casePassRate",
|
|
95
|
+
"riskClassificationAccuracy",
|
|
96
|
+
"humanReviewAccuracy",
|
|
97
|
+
"humanReviewReasonAccuracy",
|
|
98
|
+
"evidenceReferenceAccuracy",
|
|
99
|
+
"evidenceCoverageAccuracy",
|
|
100
|
+
"evidenceReferenceCoverage",
|
|
101
|
+
"unsupportedClaimRate",
|
|
102
|
+
"validationPassRate",
|
|
103
|
+
"deterministicPassRate"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"casePassRate": { "$ref": "#/$defs/ratio" },
|
|
107
|
+
"riskClassificationAccuracy": { "$ref": "#/$defs/ratio" },
|
|
108
|
+
"humanReviewAccuracy": { "$ref": "#/$defs/ratio" },
|
|
109
|
+
"humanReviewReasonAccuracy": { "$ref": "#/$defs/ratio" },
|
|
110
|
+
"evidenceReferenceAccuracy": { "$ref": "#/$defs/ratio" },
|
|
111
|
+
"evidenceCoverageAccuracy": { "$ref": "#/$defs/ratio" },
|
|
112
|
+
"evidenceReferenceCoverage": { "$ref": "#/$defs/ratio" },
|
|
113
|
+
"unsupportedClaimRate": { "$ref": "#/$defs/ratio" },
|
|
114
|
+
"validationPassRate": { "$ref": "#/$defs/ratio" },
|
|
115
|
+
"deterministicPassRate": { "$ref": "#/$defs/ratio" }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"recommendation": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": ["severity", "category", "code", "message"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"severity": { "enum": ["info", "medium", "high"] },
|
|
124
|
+
"category": {
|
|
125
|
+
"enum": ["Risk Analysis", "Human Review", "Evidence Quality", "Trust Layer", "Deterministic Quality", "General"]
|
|
126
|
+
},
|
|
127
|
+
"code": { "type": "string", "minLength": 1 },
|
|
128
|
+
"message": { "type": "string", "minLength": 1 }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/schemas/benchmark-report.schema.json",
|
|
4
|
+
"title": "UpgradeLens AI Benchmark Report",
|
|
5
|
+
"description": "Machine-readable report for prompt and model benchmark runs.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"generatedAt",
|
|
11
|
+
"generator",
|
|
12
|
+
"benchmark",
|
|
13
|
+
"runs",
|
|
14
|
+
"ranking"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
18
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
19
|
+
"generator": { "$ref": "#/$defs/generator" },
|
|
20
|
+
"benchmark": { "$ref": "#/$defs/benchmark" },
|
|
21
|
+
"runs": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": { "$ref": "#/$defs/runResult" }
|
|
24
|
+
},
|
|
25
|
+
"ranking": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": { "$ref": "#/$defs/rankingEntry" }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"score": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
32
|
+
"ratio": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
33
|
+
"nullableNumber": {
|
|
34
|
+
"type": ["number", "null"],
|
|
35
|
+
"minimum": 0
|
|
36
|
+
},
|
|
37
|
+
"generator": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["name", "version"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": { "const": "UpgradeLens" },
|
|
43
|
+
"version": { "type": "string", "minLength": 1 }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"model": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["provider", "name"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
52
|
+
"name": { "type": "string", "minLength": 1 }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"runtime": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["type"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"type": { "type": "string", "minLength": 1 },
|
|
61
|
+
"settings": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"benchmark": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": ["name", "configPath", "datasetPath", "runCount"],
|
|
71
|
+
"properties": {
|
|
72
|
+
"name": { "type": "string", "minLength": 1 },
|
|
73
|
+
"configPath": { "type": ["string", "null"] },
|
|
74
|
+
"datasetPath": { "type": "string", "minLength": 1 },
|
|
75
|
+
"runCount": { "type": "integer", "minimum": 0 }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"metrics": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"required": [
|
|
82
|
+
"overallScore",
|
|
83
|
+
"riskAccuracy",
|
|
84
|
+
"humanReviewAccuracy",
|
|
85
|
+
"evidenceQuality",
|
|
86
|
+
"unsupportedClaimRate",
|
|
87
|
+
"deterministicPassRate"
|
|
88
|
+
],
|
|
89
|
+
"properties": {
|
|
90
|
+
"overallScore": { "$ref": "#/$defs/score" },
|
|
91
|
+
"riskAccuracy": { "$ref": "#/$defs/ratio" },
|
|
92
|
+
"humanReviewAccuracy": { "$ref": "#/$defs/ratio" },
|
|
93
|
+
"evidenceQuality": { "$ref": "#/$defs/score" },
|
|
94
|
+
"unsupportedClaimRate": { "$ref": "#/$defs/ratio" },
|
|
95
|
+
"deterministicPassRate": { "$ref": "#/$defs/ratio" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"performance": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["latencyMs", "tokenUsage", "estimatedCost"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"latencyMs": { "$ref": "#/$defs/nullableNumber" },
|
|
104
|
+
"tokenUsage": { "$ref": "#/$defs/nullableNumber" },
|
|
105
|
+
"estimatedCost": { "$ref": "#/$defs/nullableNumber" }
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"scorecardSummary": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": ["overallScore", "categoryScores", "recommendationCodes"],
|
|
112
|
+
"properties": {
|
|
113
|
+
"overallScore": { "$ref": "#/$defs/score" },
|
|
114
|
+
"categoryScores": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": [
|
|
118
|
+
"riskAnalysis",
|
|
119
|
+
"humanReview",
|
|
120
|
+
"evidenceQuality",
|
|
121
|
+
"trustLayer",
|
|
122
|
+
"deterministicQuality"
|
|
123
|
+
],
|
|
124
|
+
"properties": {
|
|
125
|
+
"riskAnalysis": { "$ref": "#/$defs/score" },
|
|
126
|
+
"humanReview": { "$ref": "#/$defs/score" },
|
|
127
|
+
"evidenceQuality": { "$ref": "#/$defs/score" },
|
|
128
|
+
"trustLayer": { "$ref": "#/$defs/score" },
|
|
129
|
+
"deterministicQuality": { "$ref": "#/$defs/score" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"recommendationCodes": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"uniqueItems": true,
|
|
135
|
+
"items": { "type": "string", "minLength": 1 }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"runResult": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": [
|
|
143
|
+
"id",
|
|
144
|
+
"promptVersion",
|
|
145
|
+
"model",
|
|
146
|
+
"runtime",
|
|
147
|
+
"datasetPath",
|
|
148
|
+
"evaluation",
|
|
149
|
+
"metrics",
|
|
150
|
+
"scorecard",
|
|
151
|
+
"performance"
|
|
152
|
+
],
|
|
153
|
+
"properties": {
|
|
154
|
+
"id": { "type": "string", "minLength": 1 },
|
|
155
|
+
"promptVersion": { "type": "string", "minLength": 1 },
|
|
156
|
+
"model": { "$ref": "#/$defs/model" },
|
|
157
|
+
"runtime": { "$ref": "#/$defs/runtime" },
|
|
158
|
+
"datasetPath": { "type": "string", "minLength": 1 },
|
|
159
|
+
"evaluation": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"required": ["totalCases", "passed", "failed"],
|
|
163
|
+
"properties": {
|
|
164
|
+
"totalCases": { "type": "integer", "minimum": 0 },
|
|
165
|
+
"passed": { "type": "integer", "minimum": 0 },
|
|
166
|
+
"failed": { "type": "integer", "minimum": 0 }
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"metrics": { "$ref": "#/$defs/metrics" },
|
|
170
|
+
"scorecard": { "$ref": "#/$defs/scorecardSummary" },
|
|
171
|
+
"performance": { "$ref": "#/$defs/performance" }
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"rankingEntry": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["rank", "runId", "overallScore", "riskAccuracy", "evidenceQuality", "latencyMs", "estimatedCost"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"rank": { "type": "integer", "minimum": 1 },
|
|
180
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
181
|
+
"overallScore": { "$ref": "#/$defs/score" },
|
|
182
|
+
"riskAccuracy": { "$ref": "#/$defs/ratio" },
|
|
183
|
+
"evidenceQuality": { "$ref": "#/$defs/score" },
|
|
184
|
+
"latencyMs": { "$ref": "#/$defs/nullableNumber" },
|
|
185
|
+
"estimatedCost": { "$ref": "#/$defs/nullableNumber" }
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/schemas/benchmark.schema.json",
|
|
4
|
+
"title": "UpgradeLens AI Benchmark Configuration",
|
|
5
|
+
"description": "Provider-neutral benchmark matrix for comparing prompt versions, models, and runtimes.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "name", "datasetPath", "runs"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
11
|
+
"name": { "type": "string", "minLength": 1 },
|
|
12
|
+
"datasetPath": { "type": "string", "minLength": 1 },
|
|
13
|
+
"runs": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"items": { "$ref": "#/$defs/run" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"run": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": ["id", "promptVersion", "model", "runtime"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"id": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
|
|
28
|
+
},
|
|
29
|
+
"promptVersion": { "type": "string", "minLength": 1 },
|
|
30
|
+
"datasetPath": { "type": "string", "minLength": 1 },
|
|
31
|
+
"model": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["provider", "name"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
37
|
+
"name": { "type": "string", "minLength": 1 }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"runtime": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": ["type"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"type": { "type": "string", "minLength": 1 },
|
|
46
|
+
"settings": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": true
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/schemas/capability-profile.schema.json",
|
|
4
|
+
"title": "UpgradeLens AI Runtime Capability Profile",
|
|
5
|
+
"description": "Portable descriptive metadata for one declared runtime capability set.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"capabilityId",
|
|
11
|
+
"protocol",
|
|
12
|
+
"structuredOutput",
|
|
13
|
+
"jsonMode",
|
|
14
|
+
"streaming",
|
|
15
|
+
"toolCalling",
|
|
16
|
+
"responsesApi",
|
|
17
|
+
"usageMetadata",
|
|
18
|
+
"identityVerification",
|
|
19
|
+
"timeoutSupported"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
23
|
+
"capabilityId": { "$ref": "#/$defs/id" },
|
|
24
|
+
"protocol": { "$ref": "#/$defs/id" },
|
|
25
|
+
"structuredOutput": {
|
|
26
|
+
"enum": ["jsonSchema", "jsonMode", "promptOnly", "none"]
|
|
27
|
+
},
|
|
28
|
+
"jsonMode": { "type": "boolean" },
|
|
29
|
+
"streaming": { "type": "boolean" },
|
|
30
|
+
"toolCalling": { "type": "boolean" },
|
|
31
|
+
"responsesApi": { "type": "boolean" },
|
|
32
|
+
"usageMetadata": { "type": "boolean" },
|
|
33
|
+
"identityVerification": { "type": "boolean" },
|
|
34
|
+
"timeoutSupported": { "type": "boolean" }
|
|
35
|
+
},
|
|
36
|
+
"$defs": {
|
|
37
|
+
"id": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 128,
|
|
41
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://upgradelens.dev/schemas/conformance-report.schema.json",
|
|
4
|
+
"title": "UpgradeLens Offline Conformance Report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion",
|
|
9
|
+
"generatedAt",
|
|
10
|
+
"generator",
|
|
11
|
+
"suite",
|
|
12
|
+
"runtime",
|
|
13
|
+
"deploymentProfileDigest",
|
|
14
|
+
"capabilityProfileDigest",
|
|
15
|
+
"conformanceScope",
|
|
16
|
+
"summary",
|
|
17
|
+
"capabilities",
|
|
18
|
+
"cases",
|
|
19
|
+
"failures",
|
|
20
|
+
"recommendation"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
24
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
25
|
+
"generator": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["name", "version"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"name": { "type": "string", "minLength": 1 },
|
|
31
|
+
"version": { "type": "string", "minLength": 1 }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"suite": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["mode", "protocol", "scope", "caseCount"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"mode": { "const": "offlineFixture" },
|
|
40
|
+
"protocol": { "const": "openai-compatible-chat-completions" },
|
|
41
|
+
"scope": { "const": "offline-runtime-protocol" },
|
|
42
|
+
"caseCount": { "type": "integer", "minimum": 1 }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"runtime": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["provider", "model"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"provider": { "type": "string", "minLength": 1 },
|
|
51
|
+
"model": { "type": "string", "minLength": 1 }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"deploymentProfileDigest": { "$ref": "#/$defs/digest" },
|
|
55
|
+
"capabilityProfileDigest": { "$ref": "#/$defs/digest" },
|
|
56
|
+
"conformanceScope": { "const": "offline-runtime-protocol" },
|
|
57
|
+
"summary": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["total", "passed", "failed", "skipped"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"total": { "type": "integer", "minimum": 0 },
|
|
63
|
+
"passed": { "type": "integer", "minimum": 0 },
|
|
64
|
+
"failed": { "type": "integer", "minimum": 0 },
|
|
65
|
+
"skipped": { "type": "integer", "minimum": 0 }
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"capabilities": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"required": [
|
|
72
|
+
"connectivity",
|
|
73
|
+
"authentication",
|
|
74
|
+
"timeout",
|
|
75
|
+
"cancellation",
|
|
76
|
+
"structuredOutput",
|
|
77
|
+
"jsonSchema",
|
|
78
|
+
"jsonMode",
|
|
79
|
+
"responseValidation",
|
|
80
|
+
"usage",
|
|
81
|
+
"identity",
|
|
82
|
+
"contentType",
|
|
83
|
+
"httpErrors",
|
|
84
|
+
"oversizedResponse",
|
|
85
|
+
"redirectProtection",
|
|
86
|
+
"providerErrors"
|
|
87
|
+
],
|
|
88
|
+
"properties": {
|
|
89
|
+
"connectivity": { "$ref": "#/$defs/capabilityStatus" },
|
|
90
|
+
"authentication": { "$ref": "#/$defs/capabilityStatus" },
|
|
91
|
+
"timeout": { "$ref": "#/$defs/capabilityStatus" },
|
|
92
|
+
"cancellation": { "$ref": "#/$defs/capabilityStatus" },
|
|
93
|
+
"structuredOutput": { "$ref": "#/$defs/capabilityStatus" },
|
|
94
|
+
"jsonSchema": { "$ref": "#/$defs/capabilityStatus" },
|
|
95
|
+
"jsonMode": { "$ref": "#/$defs/capabilityStatus" },
|
|
96
|
+
"responseValidation": { "$ref": "#/$defs/capabilityStatus" },
|
|
97
|
+
"usage": { "$ref": "#/$defs/capabilityStatus" },
|
|
98
|
+
"identity": { "$ref": "#/$defs/capabilityStatus" },
|
|
99
|
+
"contentType": { "$ref": "#/$defs/capabilityStatus" },
|
|
100
|
+
"httpErrors": { "$ref": "#/$defs/capabilityStatus" },
|
|
101
|
+
"oversizedResponse": { "$ref": "#/$defs/capabilityStatus" },
|
|
102
|
+
"redirectProtection": { "$ref": "#/$defs/capabilityStatus" },
|
|
103
|
+
"providerErrors": { "$ref": "#/$defs/capabilityStatus" }
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"cases": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": { "$ref": "#/$defs/caseResult" }
|
|
109
|
+
},
|
|
110
|
+
"failures": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": { "$ref": "#/$defs/failure" }
|
|
113
|
+
},
|
|
114
|
+
"recommendation": {
|
|
115
|
+
"enum": ["CONFORMANT", "PARTIALLY_CONFORMANT", "NON_CONFORMANT"]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"$defs": {
|
|
119
|
+
"digest": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
122
|
+
},
|
|
123
|
+
"capabilityStatus": {
|
|
124
|
+
"enum": ["PASS", "FAIL", "NOT_SUPPORTED"]
|
|
125
|
+
},
|
|
126
|
+
"caseResult": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"required": ["id", "capability", "required", "status", "expected", "observed"],
|
|
130
|
+
"properties": {
|
|
131
|
+
"id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
132
|
+
"capability": { "type": "string", "minLength": 1 },
|
|
133
|
+
"required": { "type": "boolean" },
|
|
134
|
+
"status": { "enum": ["PASS", "FAIL", "SKIP"] },
|
|
135
|
+
"expected": { "type": "string", "minLength": 1 },
|
|
136
|
+
"observed": { "type": "string", "minLength": 1 }
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"failure": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": ["caseId", "code", "message"],
|
|
143
|
+
"properties": {
|
|
144
|
+
"caseId": { "type": "string", "minLength": 1 },
|
|
145
|
+
"code": { "type": "string", "minLength": 1 },
|
|
146
|
+
"message": { "type": "string", "minLength": 1 }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/schemas/deployment-profile.schema.json",
|
|
4
|
+
"title": "UpgradeLens AI Runtime Deployment Profile",
|
|
5
|
+
"description": "Portable, secret-free metadata for one exact runtime deployment.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"deploymentId",
|
|
11
|
+
"provider",
|
|
12
|
+
"endpoint",
|
|
13
|
+
"model",
|
|
14
|
+
"capabilityProfile",
|
|
15
|
+
"capabilityProfileDigest",
|
|
16
|
+
"timeoutSeconds",
|
|
17
|
+
"maxResponseBytes"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
21
|
+
"deploymentId": { "$ref": "#/$defs/id" },
|
|
22
|
+
"provider": { "$ref": "#/$defs/id" },
|
|
23
|
+
"endpoint": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "uri",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 2048
|
|
28
|
+
},
|
|
29
|
+
"model": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 256
|
|
33
|
+
},
|
|
34
|
+
"capabilityProfile": { "$ref": "#/$defs/id" },
|
|
35
|
+
"capabilityProfileDigest": { "$ref": "#/$defs/digest" },
|
|
36
|
+
"modelRevision": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"maxLength": 256
|
|
40
|
+
},
|
|
41
|
+
"timeoutSeconds": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"minimum": 1,
|
|
44
|
+
"maximum": 86400
|
|
45
|
+
},
|
|
46
|
+
"maxResponseBytes": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"minimum": 1,
|
|
49
|
+
"maximum": 1073741824
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"$defs": {
|
|
53
|
+
"digest": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
56
|
+
},
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1,
|
|
60
|
+
"maxLength": 128,
|
|
61
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|