@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,214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"datasetId": "migration-planning-golden",
|
|
4
|
+
"task": "migration-planning.v1",
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"id": "generic/ambiguous-evidence",
|
|
8
|
+
"description": "Ambiguous change description requires abstention.",
|
|
9
|
+
"scenarioGroup": "abstention",
|
|
10
|
+
"ecosystem": "generic",
|
|
11
|
+
"fixture": {
|
|
12
|
+
"dependency": { "packageId": "generic:widget", "declaredName": "widget", "normalizedName": "widget", "registry": "generic", "packageManager": null, "dependencyType": "dependency", "manifest": "manifest.json" },
|
|
13
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
14
|
+
"findingId": "ambiguous-change",
|
|
15
|
+
"findingSummary": "Version 2 changes initialization behavior.",
|
|
16
|
+
"evidence": [{ "id": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "kind": "breakingChanges", "sourceId": "generic:widget:notes", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Version 2 changes initialization behavior in some environments. Consult future documentation for details." }],
|
|
17
|
+
"locations": [],
|
|
18
|
+
"locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" },
|
|
19
|
+
"limitations": [{ "code": "NO_POSITIVE_USAGE_MATCH", "message": "No positive usage match is available; this is not evidence of non-use or safety." }]
|
|
20
|
+
},
|
|
21
|
+
"response": { "kind": "candidate", "candidate": { "status": "ABSTAIN", "items": [], "abstentionReason": "AMBIGUOUS_EVIDENCE" } },
|
|
22
|
+
"expected": { "rawOutcome": "ABSTAIN", "finalOutcome": "abstained", "trustDecision": "NOT_EVALUATED", "expectedTrustDetailCode": null, "actionExpected": false, "oracleUnsafe": false, "evidenceRefs": ["sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], "locations": [], "actionConcepts": [], "forbiddenClaims": ["safe", "unused"], "requiresHumanReview": true },
|
|
23
|
+
"coverage": ["ABSTENTION_AMBIGUOUS", "GENERIC_ECOSYSTEM", "VALID_ABSTENTION"],
|
|
24
|
+
"policyProbes": [],
|
|
25
|
+
"rationale": "The evidence describes a change but provides no explicit action."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "generic/explicit-action",
|
|
29
|
+
"description": "Official guide provides one explicit identifier-bearing action.",
|
|
30
|
+
"scenarioGroup": "grounded-action",
|
|
31
|
+
"ecosystem": "generic",
|
|
32
|
+
"fixture": {
|
|
33
|
+
"dependency": { "packageId": "generic:config-kit", "declaredName": "config-kit", "normalizedName": "config-kit", "registry": "generic", "packageManager": null, "dependencyType": "dependency", "manifest": "manifest.json" },
|
|
34
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.5.0", "currentVersion": "1.5.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
35
|
+
"findingId": "config-option-renamed",
|
|
36
|
+
"findingSummary": "The configuration option is renamed in 2.0.0.",
|
|
37
|
+
"evidence": [{ "id": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "kind": "migrationGuide", "sourceId": "generic:config-kit:migration", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration." }],
|
|
38
|
+
"locations": [],
|
|
39
|
+
"locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" },
|
|
40
|
+
"limitations": []
|
|
41
|
+
},
|
|
42
|
+
"response": { "kind": "candidate", "candidate": { "status": "ACTIONABLE", "items": [{ "instruction": "Replace `oldOption` with `newOption` for 2.0.0.", "evidenceRefs": ["sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"], "supportingExcerpts": [{ "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "text": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration." }] }], "abstentionReason": null } },
|
|
43
|
+
"expected": { "rawOutcome": "ACTIONABLE", "finalOutcome": "generated", "trustDecision": "ACCEPTED", "expectedTrustDetailCode": null, "actionExpected": true, "oracleUnsafe": false, "evidenceRefs": ["sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"], "locations": [], "actionConcepts": [{ "requiredTokens": ["oldoption", "newoption", "replace"], "forbiddenTokens": ["delete data"] }], "forbiddenClaims": ["safe", "recommended"], "requiresHumanReview": true },
|
|
44
|
+
"coverage": ["EXPLICIT_OFFICIAL_ACTION", "TECHNICAL_IDENTIFIER", "IDENTITY_PRESERVATION", "HUMAN_REVIEW"],
|
|
45
|
+
"policyProbes": [
|
|
46
|
+
{ "id": "invented-api", "instruction": "Replace `oldOption` with `inventedApi`.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "oracleSupported": false, "coverage": ["INVENTED_API"] },
|
|
47
|
+
{ "id": "invented-config", "instruction": "Set `invented_config_key` before upgrading.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "oracleSupported": false, "coverage": ["INVENTED_CONFIG", "INFERRED_PREREQUISITE"] },
|
|
48
|
+
{ "id": "invented-flag", "instruction": "Enable --invented-flag for migration.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "ACCEPTED", "expectedDetailCode": null, "oracleSupported": false, "coverage": ["INVENTED_FLAG", "KNOWN_LEXICAL_GAP"] },
|
|
49
|
+
{ "id": "paraphrased-excerpt", "instruction": "Replace the documented option.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "Replace the old option with the new option.", "expectedDecision": "REJECTED", "expectedDetailCode": "EXCERPT_NOT_EXACT", "oracleSupported": false, "coverage": ["PARAPHRASED_EXCERPT"] },
|
|
50
|
+
{ "id": "cross-context-ref", "instruction": "Review the documented option.", "evidenceRef": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "excerpt": "Release announcement only.", "expectedDecision": "REJECTED", "expectedDetailCode": "UNKNOWN_EVIDENCE_REFERENCE", "oracleSupported": false, "coverage": ["CROSS_PACKAGE_REF", "EXCERPT_OTHER_EVIDENCE"] },
|
|
51
|
+
{ "id": "invented-url", "instruction": "Review https://example.invalid/migrate.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "URL_NOT_ALLOWED", "oracleSupported": false, "coverage": ["INVENTED_URL"] },
|
|
52
|
+
{ "id": "code-fence", "instruction": "```js\nnewOption();\n```", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "CODE_OR_PATCH_NOT_ALLOWED", "oracleSupported": false, "coverage": ["CODE_SNIPPET"] },
|
|
53
|
+
{ "id": "patch", "instruction": "diff --git a/config b/config", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "CODE_OR_PATCH_NOT_ALLOWED", "oracleSupported": false, "coverage": ["PATCH_DIFF"] },
|
|
54
|
+
{ "id": "command", "instruction": "Run pnpm add config-kit.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "COMMAND_NOT_ALLOWED", "oracleSupported": false, "coverage": ["PACKAGE_COMMAND", "SHELL_COMMAND"] },
|
|
55
|
+
{ "id": "ordering", "instruction": "Upgrade dependency A before updating dependency B.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "DEPENDENCY_ORDERING", "oracleSupported": false, "coverage": ["DEPENDENCY_ORDERING"] },
|
|
56
|
+
{ "id": "rollback", "instruction": "Create a rollback plan if migration fails.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "ROLLBACK_PLAN", "oracleSupported": false, "coverage": ["ROLLBACK_PLAN"] },
|
|
57
|
+
{ "id": "effort", "instruction": "The migration takes 2 hours.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "EFFORT_ESTIMATE", "oracleSupported": false, "coverage": ["EFFORT_ESTIMATE"] },
|
|
58
|
+
{ "id": "confidence", "instruction": "Confidence: 90%.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "NUMERIC_CONFIDENCE", "oracleSupported": false, "coverage": ["NUMERIC_CONFIDENCE"] },
|
|
59
|
+
{ "id": "safety-paraphrase", "instruction": "The upgrade is safe enough for approval.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "SAFETY_OR_COMPLETION_CLAIM", "oracleSupported": false, "coverage": ["SAFETY_CLAIM_ADVERSARIAL"] },
|
|
60
|
+
{ "id": "repository-location", "instruction": "Update src/config.ts before migration.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "REJECTED", "expectedDetailCode": "REPOSITORY_LOCATION", "oracleSupported": false, "coverage": ["MODEL_LOCATION", "REPOSITORY_FILE_SYMBOL"] },
|
|
61
|
+
{ "id": "semantic-unsupported", "instruction": "Delete stored data during migration.", "evidenceRef": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "excerpt": "For 2.0.0, replace `oldOption` with `newOption` in the application configuration.", "expectedDecision": "ACCEPTED", "expectedDetailCode": null, "oracleSupported": false, "coverage": ["UNSUPPORTED_ACTION_SEMANTIC"] }
|
|
62
|
+
],
|
|
63
|
+
"rationale": "A controlled explicit action supports concept-based comparison and trust-policy probes."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "generic/invalid-json",
|
|
67
|
+
"description": "Invalid structured output is contained as a deterministic fallback.",
|
|
68
|
+
"scenarioGroup": "failure",
|
|
69
|
+
"ecosystem": "generic",
|
|
70
|
+
"fixture": {
|
|
71
|
+
"dependency": { "packageId": "generic:invalid", "declaredName": "invalid", "normalizedName": "invalid", "registry": "generic", "packageManager": null, "dependencyType": "dependency", "manifest": "manifest.json" },
|
|
72
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
73
|
+
"findingId": "invalid-output", "findingSummary": "Migration action is documented.",
|
|
74
|
+
"evidence": [{ "id": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", "kind": "migrationGuide", "sourceId": "generic:invalid:guide", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Review the migration guide before adopting version 2.0.0." }],
|
|
75
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
76
|
+
},
|
|
77
|
+
"response": { "kind": "rawText", "output": "{invalid" },
|
|
78
|
+
"expected": { "rawOutcome": "INVALID", "finalOutcome": "rejected", "trustDecision": "NOT_EVALUATED", "expectedTrustDetailCode": "OUTPUT_JSON_INVALID", "actionExpected": true, "oracleUnsafe": true, "evidenceRefs": ["sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"], "locations": [], "actionConcepts": [{ "requiredTokens": ["review", "migration guide"] }], "forbiddenClaims": [], "requiresHumanReview": true },
|
|
79
|
+
"coverage": ["INVALID_JSON_SCHEMA", "TRUST_CONTAINMENT"], "policyProbes": [],
|
|
80
|
+
"rationale": "Malformed model output must never become an actionable item."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "generic/provider-failure",
|
|
84
|
+
"description": "Provider failure remains package-local.",
|
|
85
|
+
"scenarioGroup": "failure",
|
|
86
|
+
"ecosystem": "generic",
|
|
87
|
+
"fixture": {
|
|
88
|
+
"dependency": { "packageId": "generic:failure", "declaredName": "failure", "normalizedName": "failure", "registry": "generic", "packageManager": null, "dependencyType": "dependency", "manifest": "manifest.json" },
|
|
89
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
90
|
+
"findingId": "provider-failure", "findingSummary": "A migration action may exist.",
|
|
91
|
+
"evidence": [{ "id": "sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", "kind": "migrationGuide", "sourceId": "generic:failure:guide", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Review configuration behavior for version 2.0.0." }],
|
|
92
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
93
|
+
},
|
|
94
|
+
"response": { "kind": "runtimeError", "code": "TIMEOUT" },
|
|
95
|
+
"expected": { "rawOutcome": "RUNTIME_FAILURE", "finalOutcome": "failed", "trustDecision": "NOT_EVALUATED", "expectedTrustDetailCode": "TIMEOUT", "actionExpected": true, "oracleUnsafe": false, "evidenceRefs": ["sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"], "locations": [], "actionConcepts": [{ "requiredTokens": ["review", "configuration"] }], "forbiddenClaims": [], "requiresHumanReview": true },
|
|
96
|
+
"coverage": ["PACKAGE_LOCAL_FAILURE", "PROVIDER_FAILURE"], "policyProbes": [],
|
|
97
|
+
"rationale": "A provider timeout is observable but cannot publish an action."
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "generic/release-announcement",
|
|
101
|
+
"description": "A release announcement without action requires abstention.",
|
|
102
|
+
"scenarioGroup": "abstention",
|
|
103
|
+
"ecosystem": "generic",
|
|
104
|
+
"fixture": {
|
|
105
|
+
"dependency": { "packageId": "generic:announced", "declaredName": "announced", "normalizedName": "announced", "registry": "generic", "packageManager": null, "dependencyType": "dependency", "manifest": "manifest.json" },
|
|
106
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "1.1.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "minor" } },
|
|
107
|
+
"findingId": "announcement", "findingSummary": "Version 1.1.0 was released.",
|
|
108
|
+
"evidence": [{ "id": "sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", "kind": "releaseNotes", "sourceId": "generic:announced:release", "authority": "officialProject", "trust": "official", "releaseVersions": ["1.1.0"], "content": "Version 1.1.0 is now available with maintenance improvements." }],
|
|
109
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
110
|
+
},
|
|
111
|
+
"response": { "kind": "candidate", "candidate": { "status": "ABSTAIN", "items": [], "abstentionReason": "NO_EXPLICIT_ACTION" } },
|
|
112
|
+
"expected": { "rawOutcome": "ABSTAIN", "finalOutcome": "abstained", "trustDecision": "NOT_EVALUATED", "expectedTrustDetailCode": null, "actionExpected": false, "oracleUnsafe": false, "evidenceRefs": ["sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"], "locations": [], "actionConcepts": [], "forbiddenClaims": ["migration required"], "requiresHumanReview": true },
|
|
113
|
+
"coverage": ["ABSTENTION_RELEASE_ANNOUNCEMENT", "NO_EXPLICIT_ACTION"], "policyProbes": [],
|
|
114
|
+
"rationale": "Availability alone is not a migration instruction."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "node/multi-action",
|
|
118
|
+
"description": "Two official records support two actions and one exact usage location.",
|
|
119
|
+
"scenarioGroup": "grounded-action",
|
|
120
|
+
"ecosystem": "node",
|
|
121
|
+
"fixture": {
|
|
122
|
+
"dependency": { "packageId": "npm:ui-kit", "declaredName": "ui-kit", "normalizedName": "ui-kit", "registry": "npm", "packageManager": "npm", "dependencyType": "dependency", "manifest": "package.json" },
|
|
123
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
124
|
+
"findingId": "ui-api-migration", "findingSummary": "Two UI APIs require migration.",
|
|
125
|
+
"evidence": [
|
|
126
|
+
{ "id": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "kind": "migrationGuide", "sourceId": "npm:ui-kit:guide", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Replace `LegacyButton` with `Button` in version 2.0.0." },
|
|
127
|
+
{ "id": "sha256:1111111111111111111111111111111111111111111111111111111111111111", "kind": "changelog", "sourceId": "npm:ui-kit:changelog", "authority": "publisherProvided", "trust": "publisher", "releaseVersions": ["2.0.0"], "content": "Rename the `oldTheme` option to `theme` for version 2.0.0." }
|
|
128
|
+
],
|
|
129
|
+
"locations": [{ "impactEvidenceId": "sha256:9999999999999999999999999999999999999999999999999999999999999999", "symbol": "LegacyButton", "file": "src/App.tsx" }],
|
|
130
|
+
"locationEligibility": { "status": "ELIGIBLE", "reasonCode": "POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
131
|
+
},
|
|
132
|
+
"response": { "kind": "candidate", "candidate": { "status": "ACTIONABLE", "items": [
|
|
133
|
+
{ "instruction": "Replace `LegacyButton` with `Button` for version 2.0.0.", "evidenceRefs": ["sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"], "supportingExcerpts": [{ "evidenceRef": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "text": "Replace `LegacyButton` with `Button` in version 2.0.0." }] },
|
|
134
|
+
{ "instruction": "Rename `oldTheme` to `theme` for version 2.0.0.", "evidenceRefs": ["sha256:1111111111111111111111111111111111111111111111111111111111111111"], "supportingExcerpts": [{ "evidenceRef": "sha256:1111111111111111111111111111111111111111111111111111111111111111", "text": "Rename the `oldTheme` option to `theme` for version 2.0.0." }] }
|
|
135
|
+
], "abstentionReason": null } },
|
|
136
|
+
"expected": { "rawOutcome": "ACTIONABLE", "finalOutcome": "generated", "trustDecision": "ACCEPTED", "expectedTrustDetailCode": null, "actionExpected": true, "oracleUnsafe": false, "evidenceRefs": ["sha256:1111111111111111111111111111111111111111111111111111111111111111", "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"], "locations": [{ "impactEvidenceId": "sha256:9999999999999999999999999999999999999999999999999999999999999999", "symbol": "LegacyButton", "file": "src/App.tsx" }], "actionConcepts": [{ "requiredTokens": ["legacybutton", "button", "replace"] }, { "requiredTokens": ["oldtheme", "theme", "rename"] }], "forbiddenClaims": ["safe"], "requiresHumanReview": true },
|
|
137
|
+
"coverage": ["MULTI_ACTION", "MULTI_EVIDENCE", "NODE_NPM", "POSITIVE_LOCATION", "LOCATION_PRESERVATION"], "policyProbes": [],
|
|
138
|
+
"rationale": "Each action has its own evidence while location ownership remains deterministic."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "node/no-action-breaking",
|
|
142
|
+
"description": "Breaking change text without migration instruction requires abstention.",
|
|
143
|
+
"scenarioGroup": "abstention",
|
|
144
|
+
"ecosystem": "node",
|
|
145
|
+
"fixture": {
|
|
146
|
+
"dependency": { "packageId": "npm:router", "declaredName": "router", "normalizedName": "router", "registry": "npm", "packageManager": "npm", "dependencyType": "dependency", "manifest": "package.json" },
|
|
147
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
148
|
+
"findingId": "router-breaking", "findingSummary": "Routing behavior changed.",
|
|
149
|
+
"evidence": [{ "id": "sha256:2222222222222222222222222222222222222222222222222222222222222222", "kind": "breakingChanges", "sourceId": "npm:router:release", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Version 2.0.0 changes routing behavior and removes legacy compatibility." }],
|
|
150
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
151
|
+
},
|
|
152
|
+
"response": { "kind": "candidate", "candidate": { "status": "ABSTAIN", "items": [], "abstentionReason": "NO_EXPLICIT_ACTION" } },
|
|
153
|
+
"expected": { "rawOutcome": "ABSTAIN", "finalOutcome": "abstained", "trustDecision": "NOT_EVALUATED", "expectedTrustDetailCode": null, "actionExpected": false, "oracleUnsafe": false, "evidenceRefs": ["sha256:2222222222222222222222222222222222222222222222222222222222222222"], "locations": [], "actionConcepts": [], "forbiddenClaims": ["replacement api"], "requiresHumanReview": true },
|
|
154
|
+
"coverage": ["ABSTENTION_BREAKING_ONLY", "MISSED_ABSTENTION_GUARD"], "policyProbes": [],
|
|
155
|
+
"rationale": "A breaking-change statement does not itself authorize a migration action."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "node/whole-candidate-rejection",
|
|
159
|
+
"description": "One invented item rejects an otherwise partly valid candidate.",
|
|
160
|
+
"scenarioGroup": "adversarial",
|
|
161
|
+
"ecosystem": "node",
|
|
162
|
+
"fixture": {
|
|
163
|
+
"dependency": { "packageId": "npm:client", "declaredName": "client", "normalizedName": "client", "registry": "npm", "packageManager": "npm", "dependencyType": "dependency", "manifest": "package.json" },
|
|
164
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "2.0.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "major" } },
|
|
165
|
+
"findingId": "client-method", "findingSummary": "The client method was renamed.",
|
|
166
|
+
"evidence": [{ "id": "sha256:3333333333333333333333333333333333333333333333333333333333333333", "kind": "migrationGuide", "sourceId": "npm:client:guide", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "Replace `oldClient` with `newClient` in version 2.0.0." }],
|
|
167
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "NO_POSITIVE_USAGE_MATCH" }, "limitations": []
|
|
168
|
+
},
|
|
169
|
+
"response": { "kind": "candidate", "candidate": { "status": "ACTIONABLE", "items": [
|
|
170
|
+
{ "instruction": "Replace `oldClient` with `newClient`.", "evidenceRefs": ["sha256:3333333333333333333333333333333333333333333333333333333333333333"], "supportingExcerpts": [{ "evidenceRef": "sha256:3333333333333333333333333333333333333333333333333333333333333333", "text": "Replace `oldClient` with `newClient` in version 2.0.0." }] },
|
|
171
|
+
{ "instruction": "Enable `inventedClientMode`.", "evidenceRefs": ["sha256:3333333333333333333333333333333333333333333333333333333333333333"], "supportingExcerpts": [{ "evidenceRef": "sha256:3333333333333333333333333333333333333333333333333333333333333333", "text": "Replace `oldClient` with `newClient` in version 2.0.0." }] }
|
|
172
|
+
], "abstentionReason": null } },
|
|
173
|
+
"expected": { "rawOutcome": "ACTIONABLE", "finalOutcome": "rejected", "trustDecision": "REJECTED", "expectedTrustDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "actionExpected": true, "oracleUnsafe": true, "evidenceRefs": ["sha256:3333333333333333333333333333333333333333333333333333333333333333"], "locations": [], "actionConcepts": [{ "requiredTokens": ["oldclient", "newclient", "replace"] }], "forbiddenClaims": ["inventedclientmode"], "requiresHumanReview": true },
|
|
174
|
+
"coverage": ["WHOLE_CANDIDATE_REJECTION", "INVENTED_IDENTIFIER", "UNSAFE_CONTAINMENT"], "policyProbes": [],
|
|
175
|
+
"rationale": "Fail-closed whole-candidate rejection prevents partial publication."
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "python/unknown-registry-action",
|
|
179
|
+
"description": "Unknown baseline and registry-latest target remain factual while an action is drafted.",
|
|
180
|
+
"scenarioGroup": "policy-preservation",
|
|
181
|
+
"ecosystem": "python",
|
|
182
|
+
"fixture": {
|
|
183
|
+
"dependency": { "packageId": "pypi:model-kit", "declaredName": "model-kit", "normalizedName": "model-kit", "registry": "pypi", "packageManager": "pip", "dependencyType": "runtime", "manifest": "requirements.txt" },
|
|
184
|
+
"versions": { "analysisMode": "declaredConstraint", "declaredVersion": ">=1.0", "currentVersion": null, "currentVersionSource": null, "targetVersion": "2.0.0", "targetPolicy": "registryLatest", "delta": { "direction": "unknown", "classification": "unknown" } },
|
|
185
|
+
"findingId": "method-rename", "findingSummary": "A method was renamed in the target release.",
|
|
186
|
+
"evidence": [{ "id": "sha256:4444444444444444444444444444444444444444444444444444444444444444", "kind": "migrationGuide", "sourceId": "pypi:model-kit:guide", "authority": "officialProject", "trust": "official", "releaseVersions": ["2.0.0"], "content": "For version 2.0.0, replace `dict()` with `model_dump()`." }],
|
|
187
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "UNSUPPORTED_USAGE_COVERAGE" },
|
|
188
|
+
"limitations": [{ "code": "UNSUPPORTED_USAGE_COVERAGE", "message": "Python repository usage coverage is unsupported; no unused or safe conclusion is available." }, { "code": "REGISTRY_LATEST_IS_NOT_RECOMMENDATION", "message": "The target is a registry-latest fact and is not a recommendation." }]
|
|
189
|
+
},
|
|
190
|
+
"response": { "kind": "candidate", "candidate": { "status": "ACTIONABLE", "items": [{ "instruction": "Replace `dict()` with `model_dump()` for version 2.0.0.", "evidenceRefs": ["sha256:4444444444444444444444444444444444444444444444444444444444444444"], "supportingExcerpts": [{ "evidenceRef": "sha256:4444444444444444444444444444444444444444444444444444444444444444", "text": "For version 2.0.0, replace `dict()` with `model_dump()`." }] }], "abstentionReason": null } },
|
|
191
|
+
"expected": { "rawOutcome": "ACTIONABLE", "finalOutcome": "generated", "trustDecision": "ACCEPTED", "expectedTrustDetailCode": null, "actionExpected": true, "oracleUnsafe": false, "evidenceRefs": ["sha256:4444444444444444444444444444444444444444444444444444444444444444"], "locations": [], "actionConcepts": [{ "requiredTokens": ["dict", "model_dump", "replace"] }], "forbiddenClaims": ["recommended", "installed version", "safe"], "requiresHumanReview": true },
|
|
192
|
+
"coverage": ["PYTHON_PYPI", "REGISTRY_LATEST_FACT", "UNKNOWN_BASELINE", "VERSION_UNCERTAINTY"], "policyProbes": [],
|
|
193
|
+
"rationale": "Version uncertainty and location coverage are independent from evidence-grounded action eligibility."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "python/unsupported-usage-action",
|
|
197
|
+
"description": "Publisher changelog action survives unsupported usage coverage without a safety claim.",
|
|
198
|
+
"scenarioGroup": "policy-preservation",
|
|
199
|
+
"ecosystem": "python",
|
|
200
|
+
"fixture": {
|
|
201
|
+
"dependency": { "packageId": "pypi:web-kit", "declaredName": "web-kit", "normalizedName": "web-kit", "registry": "pypi", "packageManager": "pip", "dependencyType": "runtime", "manifest": "requirements.txt" },
|
|
202
|
+
"versions": { "analysisMode": "exactBaseline", "declaredVersion": "1.0.0", "currentVersion": "1.0.0", "currentVersionSource": "exactDeclaration", "targetVersion": "1.1.0", "targetPolicy": "explicit", "delta": { "direction": "upgrade", "classification": "minor" } },
|
|
203
|
+
"findingId": "setting-rename", "findingSummary": "A publisher setting was renamed.",
|
|
204
|
+
"evidence": [{ "id": "sha256:5555555555555555555555555555555555555555555555555555555555555555", "kind": "changelog", "sourceId": "pypi:web-kit:publisher", "authority": "publisherProvided", "trust": "publisher", "releaseVersions": ["1.1.0"], "content": "Rename `legacy_setting` to `current_setting` when adopting version 1.1.0." }],
|
|
205
|
+
"locations": [], "locationEligibility": { "status": "REVIEW_REQUIRED", "reasonCode": "UNSUPPORTED_USAGE_COVERAGE" },
|
|
206
|
+
"limitations": [{ "code": "UNSUPPORTED_USAGE_COVERAGE", "message": "Usage coverage is unsupported; the dependency is not classified as unused or safe." }]
|
|
207
|
+
},
|
|
208
|
+
"response": { "kind": "candidate", "candidate": { "status": "ACTIONABLE", "items": [{ "instruction": "Rename `legacy_setting` to `current_setting` for version 1.1.0.", "evidenceRefs": ["sha256:5555555555555555555555555555555555555555555555555555555555555555"], "supportingExcerpts": [{ "evidenceRef": "sha256:5555555555555555555555555555555555555555555555555555555555555555", "text": "Rename `legacy_setting` to `current_setting` when adopting version 1.1.0." }] }], "abstentionReason": null } },
|
|
209
|
+
"expected": { "rawOutcome": "ACTIONABLE", "finalOutcome": "generated", "trustDecision": "ACCEPTED", "expectedTrustDetailCode": null, "actionExpected": true, "oracleUnsafe": false, "evidenceRefs": ["sha256:5555555555555555555555555555555555555555555555555555555555555555"], "locations": [], "actionConcepts": [{ "requiredTokens": ["legacy_setting", "current_setting", "rename"] }], "forbiddenClaims": ["unused", "safe"], "requiresHumanReview": true },
|
|
210
|
+
"coverage": ["PUBLISHER_ACTION", "PYTHON_GENERIC_LOCATION", "UNSUPPORTED_USAGE_COVERAGE"], "policyProbes": [],
|
|
211
|
+
"rationale": "Unsupported location coverage must not block a package-level instruction or create a negative usage conclusion."
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/eval/schemas/expected-result.schema.json",
|
|
4
|
+
"title": "UpgradeLens Golden Expected Result",
|
|
5
|
+
"description": "Provider-independent expected outcome for AI Version Analysis evaluation cases.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"riskLevel",
|
|
10
|
+
"requiresHumanReview",
|
|
11
|
+
"humanReviewReasons",
|
|
12
|
+
"evidenceCoverage",
|
|
13
|
+
"validation",
|
|
14
|
+
"expectedEvidenceRefs",
|
|
15
|
+
"expectedFindings"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"riskLevel": { "enum": ["low", "medium", "high", "unknown"] },
|
|
19
|
+
"requiresHumanReview": { "type": "boolean" },
|
|
20
|
+
"humanReviewReasons": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"uniqueItems": true,
|
|
23
|
+
"items": { "type": "string", "minLength": 1 }
|
|
24
|
+
},
|
|
25
|
+
"evidenceCoverage": { "enum": ["none", "partial", "sufficient"] },
|
|
26
|
+
"validation": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["status", "warningCodes"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"status": { "enum": ["valid", "validWithWarnings", "invalid"] },
|
|
32
|
+
"warningCodes": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"uniqueItems": true,
|
|
35
|
+
"items": { "type": "string", "minLength": 1 }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"expectedEvidenceRefs": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["summary", "risk", "findings"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"summary": { "$ref": "#/$defs/evidenceRefArray" },
|
|
45
|
+
"risk": { "$ref": "#/$defs/evidenceRefArray" },
|
|
46
|
+
"findings": { "$ref": "#/$defs/evidenceRefArray" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"expectedFindings": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["kind", "appliesToVersions", "evidenceRefs"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"kind": { "enum": ["breakingChange", "deprecation", "compatibility"] },
|
|
57
|
+
"appliesToVersions": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"uniqueItems": true,
|
|
60
|
+
"items": { "type": "string", "minLength": 1 }
|
|
61
|
+
},
|
|
62
|
+
"evidenceRefs": { "$ref": "#/$defs/evidenceRefArray" },
|
|
63
|
+
"requiredKeywords": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": { "type": "string", "minLength": 1 }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"forbiddenClaims": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": { "type": "string", "minLength": 1 }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"$defs": {
|
|
78
|
+
"digest": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
81
|
+
},
|
|
82
|
+
"evidenceRefArray": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"uniqueItems": true,
|
|
85
|
+
"items": { "$ref": "#/$defs/digest" }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/eval/schemas/golden-case.schema.json",
|
|
4
|
+
"title": "UpgradeLens Golden Evaluation Case",
|
|
5
|
+
"description": "Portable provider-independent golden case for AI Version Analysis evaluation.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"id",
|
|
11
|
+
"title",
|
|
12
|
+
"category",
|
|
13
|
+
"repository",
|
|
14
|
+
"dependency",
|
|
15
|
+
"versions",
|
|
16
|
+
"selectedEvidence",
|
|
17
|
+
"expectedResult"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
21
|
+
"id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-z0-9][a-z0-9-]*(/[a-z0-9][a-z0-9-]*)+$"
|
|
24
|
+
},
|
|
25
|
+
"title": { "type": "string", "minLength": 1 },
|
|
26
|
+
"category": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"high-risk",
|
|
29
|
+
"medium-risk",
|
|
30
|
+
"low-risk",
|
|
31
|
+
"unknown",
|
|
32
|
+
"declared-constraint",
|
|
33
|
+
"missing-evidence",
|
|
34
|
+
"conflict"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["name", "fixturePath", "ecosystem", "languages"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": { "type": "string", "minLength": 1 },
|
|
43
|
+
"fixturePath": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\]+$"
|
|
47
|
+
},
|
|
48
|
+
"ecosystem": { "type": "string", "minLength": 1 },
|
|
49
|
+
"packageManager": { "type": ["string", "null"] },
|
|
50
|
+
"languages": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"uniqueItems": true,
|
|
54
|
+
"items": { "type": "string", "minLength": 1 }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"dependency": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": [
|
|
62
|
+
"packageId",
|
|
63
|
+
"declaredName",
|
|
64
|
+
"normalizedName",
|
|
65
|
+
"ecosystem",
|
|
66
|
+
"registry",
|
|
67
|
+
"dependencyType",
|
|
68
|
+
"manifest"
|
|
69
|
+
],
|
|
70
|
+
"properties": {
|
|
71
|
+
"packageId": { "type": "string", "minLength": 1 },
|
|
72
|
+
"declaredName": { "type": "string", "minLength": 1 },
|
|
73
|
+
"normalizedName": { "type": "string", "minLength": 1 },
|
|
74
|
+
"ecosystem": { "type": "string", "minLength": 1 },
|
|
75
|
+
"registry": { "type": "string", "minLength": 1 },
|
|
76
|
+
"dependencyType": { "type": "string", "minLength": 1 },
|
|
77
|
+
"manifest": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\]+$"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"versions": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"required": [
|
|
88
|
+
"analysisMode",
|
|
89
|
+
"declaredVersion",
|
|
90
|
+
"currentVersion",
|
|
91
|
+
"targetVersion",
|
|
92
|
+
"targetPolicy",
|
|
93
|
+
"delta"
|
|
94
|
+
],
|
|
95
|
+
"properties": {
|
|
96
|
+
"analysisMode": { "enum": ["exactBaseline", "declaredConstraint"] },
|
|
97
|
+
"declaredVersion": { "type": ["string", "null"] },
|
|
98
|
+
"currentVersion": { "type": ["string", "null"] },
|
|
99
|
+
"targetVersion": { "type": "string", "minLength": 1 },
|
|
100
|
+
"targetPolicy": { "enum": ["explicit", "registryLatest"] },
|
|
101
|
+
"delta": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["direction", "classification"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"direction": { "enum": ["upgrade", "same", "downgrade", "unknown"] },
|
|
107
|
+
"classification": { "enum": ["major", "minor", "patch", "prerelease", "other", "unknown"] }
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"selectedEvidence": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": { "$ref": "#/$defs/evidence" }
|
|
115
|
+
},
|
|
116
|
+
"expectedResult": {
|
|
117
|
+
"$ref": "https://raw.githubusercontent.com/thomasMinh1995/UpgradeLens/main/eval/schemas/expected-result.schema.json"
|
|
118
|
+
},
|
|
119
|
+
"notes": { "type": "string" }
|
|
120
|
+
},
|
|
121
|
+
"$defs": {
|
|
122
|
+
"digest": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
125
|
+
},
|
|
126
|
+
"httpsUrl": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"format": "uri",
|
|
129
|
+
"pattern": "^https://(?![^/?#]*@)"
|
|
130
|
+
},
|
|
131
|
+
"evidence": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"required": [
|
|
135
|
+
"id",
|
|
136
|
+
"kind",
|
|
137
|
+
"sourceId",
|
|
138
|
+
"sourceUrl",
|
|
139
|
+
"authority",
|
|
140
|
+
"trust",
|
|
141
|
+
"contentDigest",
|
|
142
|
+
"locator",
|
|
143
|
+
"releaseVersions",
|
|
144
|
+
"content"
|
|
145
|
+
],
|
|
146
|
+
"properties": {
|
|
147
|
+
"id": { "$ref": "#/$defs/digest" },
|
|
148
|
+
"kind": {
|
|
149
|
+
"enum": [
|
|
150
|
+
"breakingChanges",
|
|
151
|
+
"changelog",
|
|
152
|
+
"compatibility",
|
|
153
|
+
"deprecations",
|
|
154
|
+
"migrationGuide",
|
|
155
|
+
"registryFact",
|
|
156
|
+
"releaseNotes"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"sourceId": { "type": "string", "minLength": 1 },
|
|
160
|
+
"sourceUrl": { "$ref": "#/$defs/httpsUrl" },
|
|
161
|
+
"authority": {
|
|
162
|
+
"enum": ["registryAuthoritative", "officialProject", "publisherProvided", "community"]
|
|
163
|
+
},
|
|
164
|
+
"trust": { "enum": ["official", "publisher", "verified", "community", "unknown"] },
|
|
165
|
+
"contentDigest": { "$ref": "#/$defs/digest" },
|
|
166
|
+
"locator": { "type": "string", "minLength": 1 },
|
|
167
|
+
"releaseVersions": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"uniqueItems": true,
|
|
170
|
+
"items": { "type": "string", "minLength": 1 }
|
|
171
|
+
},
|
|
172
|
+
"content": { "type": "string", "minLength": 1 },
|
|
173
|
+
"conflictsWith": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"uniqueItems": true,
|
|
176
|
+
"items": { "$ref": "#/$defs/digest" }
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@thomasminh1995/depverdict",
|
|
3
|
+
"version": "0.6.0-alpha.1",
|
|
4
|
+
"description": "DepVerdict is a decision-first CLI for evidence-bounded dependency upgrade analysis.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"depverdict": "bin/depverdict.js",
|
|
8
|
+
"upgradelens": "bin/upgradelens.js"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./src/index.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin",
|
|
15
|
+
"docs",
|
|
16
|
+
"!docs/*-cli-captures",
|
|
17
|
+
"eval/README.md",
|
|
18
|
+
"eval/datasets",
|
|
19
|
+
"eval/migration-planning/golden-dataset.json",
|
|
20
|
+
"eval/migration-planning/golden-dataset-v2.json",
|
|
21
|
+
"eval/schemas",
|
|
22
|
+
"schemas",
|
|
23
|
+
"src",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "node --test",
|
|
29
|
+
"check": "npm test && npm run check:package",
|
|
30
|
+
"check:package": "node scripts/package-content-guard.mjs"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=20"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"cli",
|
|
37
|
+
"dependency-upgrades",
|
|
38
|
+
"migration-planning",
|
|
39
|
+
"repository-analysis",
|
|
40
|
+
"developer-tools"
|
|
41
|
+
],
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/thomasMinh1995/DepVerdict.git"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/thomasMinh1995/DepVerdict#readme",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/thomasMinh1995/DepVerdict/issues"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@babel/parser": "^7.29.7",
|
|
53
|
+
"ajv": "^8.18.0",
|
|
54
|
+
"ajv-formats": "^3.0.1",
|
|
55
|
+
"undici": "^6.27.0"
|
|
56
|
+
}
|
|
57
|
+
}
|