@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,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"id": "python/pydantic-major-breaking",
|
|
4
|
+
"title": "Pydantic major upgrade with migration guide",
|
|
5
|
+
"category": "high-risk",
|
|
6
|
+
"repository": {
|
|
7
|
+
"name": "pydantic-major-fixture",
|
|
8
|
+
"fixturePath": "fixtures/python/pydantic-major-breaking",
|
|
9
|
+
"ecosystem": "python",
|
|
10
|
+
"packageManager": "pip",
|
|
11
|
+
"languages": ["Python"]
|
|
12
|
+
},
|
|
13
|
+
"dependency": {
|
|
14
|
+
"packageId": "pypi:pydantic",
|
|
15
|
+
"declaredName": "pydantic",
|
|
16
|
+
"normalizedName": "pydantic",
|
|
17
|
+
"ecosystem": "python",
|
|
18
|
+
"registry": "pypi",
|
|
19
|
+
"dependencyType": "runtime",
|
|
20
|
+
"manifest": "requirements.txt"
|
|
21
|
+
},
|
|
22
|
+
"versions": {
|
|
23
|
+
"analysisMode": "exactBaseline",
|
|
24
|
+
"declaredVersion": "1.10.13",
|
|
25
|
+
"currentVersion": "1.10.13",
|
|
26
|
+
"targetVersion": "2.0.0",
|
|
27
|
+
"targetPolicy": "explicit",
|
|
28
|
+
"delta": { "direction": "upgrade", "classification": "major" }
|
|
29
|
+
},
|
|
30
|
+
"selectedEvidence": [
|
|
31
|
+
{
|
|
32
|
+
"id": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4",
|
|
33
|
+
"kind": "migrationGuide",
|
|
34
|
+
"sourceId": "pypi:pydantic:migration-guide",
|
|
35
|
+
"sourceUrl": "https://docs.pydantic.dev/latest/migration/",
|
|
36
|
+
"authority": "officialProject",
|
|
37
|
+
"trust": "official",
|
|
38
|
+
"contentDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb4",
|
|
39
|
+
"locator": "heading:Migration Guide",
|
|
40
|
+
"releaseVersions": ["2.0.0"],
|
|
41
|
+
"content": "Pydantic V2 includes many breaking changes from V1. Users should read the migration guide before upgrading from Pydantic V1 to V2."
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"expectedResult": {
|
|
45
|
+
"riskLevel": "high",
|
|
46
|
+
"requiresHumanReview": true,
|
|
47
|
+
"humanReviewReasons": ["HIGH_RISK"],
|
|
48
|
+
"evidenceCoverage": "sufficient",
|
|
49
|
+
"validation": { "status": "valid", "warningCodes": [] },
|
|
50
|
+
"expectedEvidenceRefs": {
|
|
51
|
+
"summary": ["sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4"],
|
|
52
|
+
"risk": ["sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4"],
|
|
53
|
+
"findings": ["sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4"]
|
|
54
|
+
},
|
|
55
|
+
"expectedFindings": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "breakingChange",
|
|
58
|
+
"appliesToVersions": ["2.0.0"],
|
|
59
|
+
"evidenceRefs": ["sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa4"],
|
|
60
|
+
"requiredKeywords": ["breaking", "migration"]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"forbiddenClaims": ["source-code impact", "automatic fix"]
|
|
64
|
+
},
|
|
65
|
+
"notes": "Major migration guide case for Python ecosystem."
|
|
66
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "2.0.0",
|
|
3
|
+
"datasetId": "migration-planning-golden",
|
|
4
|
+
"task": "migration-planning.v1",
|
|
5
|
+
"baseDataset": {
|
|
6
|
+
"datasetId": "migration-planning-golden",
|
|
7
|
+
"version": "1.0.0",
|
|
8
|
+
"digest": "sha256:6f32b8171fb8610d024860957cbe5bffa05b46b9a2fc3d25caf404bc5725ee3c"
|
|
9
|
+
},
|
|
10
|
+
"cases": [
|
|
11
|
+
{
|
|
12
|
+
"id": "containment/code-fence",
|
|
13
|
+
"role": "RECORDED_CONTAINMENT",
|
|
14
|
+
"baseCaseId": "generic/explicit-action",
|
|
15
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "code-fence" },
|
|
16
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "CODE_OR_PATCH_NOT_ALLOWED", "coverage": ["CODE_SNIPPET"] }
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "containment/command",
|
|
20
|
+
"role": "RECORDED_CONTAINMENT",
|
|
21
|
+
"baseCaseId": "generic/explicit-action",
|
|
22
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "command" },
|
|
23
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "COMMAND_NOT_ALLOWED", "coverage": ["PACKAGE_COMMAND", "SHELL_COMMAND"] }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "containment/confidence",
|
|
27
|
+
"role": "RECORDED_CONTAINMENT",
|
|
28
|
+
"baseCaseId": "generic/explicit-action",
|
|
29
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "confidence" },
|
|
30
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "NUMERIC_CONFIDENCE", "coverage": ["NUMERIC_CONFIDENCE"] }
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "containment/cross-context-ref",
|
|
34
|
+
"role": "RECORDED_CONTAINMENT",
|
|
35
|
+
"baseCaseId": "generic/explicit-action",
|
|
36
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "cross-context-ref" },
|
|
37
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "UNKNOWN_EVIDENCE_REFERENCE", "coverage": ["CROSS_PACKAGE_REF", "EXCERPT_OTHER_EVIDENCE"] }
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "containment/effort",
|
|
41
|
+
"role": "RECORDED_CONTAINMENT",
|
|
42
|
+
"baseCaseId": "generic/explicit-action",
|
|
43
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "effort" },
|
|
44
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "EFFORT_ESTIMATE", "coverage": ["EFFORT_ESTIMATE"] }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "containment/invented-api",
|
|
48
|
+
"role": "RECORDED_CONTAINMENT",
|
|
49
|
+
"baseCaseId": "generic/explicit-action",
|
|
50
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "invented-api" },
|
|
51
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "coverage": ["INVENTED_API"] }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "containment/invented-config",
|
|
55
|
+
"role": "RECORDED_CONTAINMENT",
|
|
56
|
+
"baseCaseId": "generic/explicit-action",
|
|
57
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "invented-config" },
|
|
58
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "coverage": ["INFERRED_PREREQUISITE", "INVENTED_CONFIG"] }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "containment/invented-flag",
|
|
62
|
+
"role": "RECORDED_CONTAINMENT",
|
|
63
|
+
"baseCaseId": "generic/explicit-action",
|
|
64
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "invented-flag" },
|
|
65
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "coverage": ["INVENTED_FLAG", "KNOWN_LEXICAL_GAP"] }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "containment/invented-url",
|
|
69
|
+
"role": "RECORDED_CONTAINMENT",
|
|
70
|
+
"baseCaseId": "generic/explicit-action",
|
|
71
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "invented-url" },
|
|
72
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "URL_NOT_ALLOWED", "coverage": ["INVENTED_URL"] }
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "containment/npm-package-safe",
|
|
76
|
+
"role": "RECORDED_CONTAINMENT",
|
|
77
|
+
"baseCaseId": "node/whole-candidate-rejection",
|
|
78
|
+
"recordedSource": {
|
|
79
|
+
"kind": "CUSTOM_CANDIDATE",
|
|
80
|
+
"candidate": {
|
|
81
|
+
"status": "ACTIONABLE",
|
|
82
|
+
"items": [{
|
|
83
|
+
"instruction": "For npm package client upgrading from 1.0.0 to 2.0.0, replace oldClient with newClient.",
|
|
84
|
+
"evidenceRefs": ["sha256:3333333333333333333333333333333333333333333333333333333333333333"],
|
|
85
|
+
"supportingExcerpts": [{
|
|
86
|
+
"evidenceRef": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
87
|
+
"text": "Replace `oldClient` with `newClient` in version 2.0.0."
|
|
88
|
+
}]
|
|
89
|
+
}],
|
|
90
|
+
"abstentionReason": null
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"recordedExpected": { "unsafe": false, "expectedTrustDecision": "ACCEPTED", "expectedDetailCode": null, "coverage": ["KNOWN_FALSE_REJECTION", "SAFE_CANDIDATE"] }
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "containment/ordering",
|
|
97
|
+
"role": "RECORDED_CONTAINMENT",
|
|
98
|
+
"baseCaseId": "generic/explicit-action",
|
|
99
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "ordering" },
|
|
100
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "DEPENDENCY_ORDERING", "coverage": ["DEPENDENCY_ORDERING"] }
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "containment/paraphrased-excerpt",
|
|
104
|
+
"role": "RECORDED_CONTAINMENT",
|
|
105
|
+
"baseCaseId": "generic/explicit-action",
|
|
106
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "paraphrased-excerpt" },
|
|
107
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "EXCERPT_NOT_EXACT", "coverage": ["PARAPHRASED_EXCERPT"] }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "containment/patch",
|
|
111
|
+
"role": "RECORDED_CONTAINMENT",
|
|
112
|
+
"baseCaseId": "generic/explicit-action",
|
|
113
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "patch" },
|
|
114
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "CODE_OR_PATCH_NOT_ALLOWED", "coverage": ["PATCH_DIFF"] }
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "containment/repository-location",
|
|
118
|
+
"role": "RECORDED_CONTAINMENT",
|
|
119
|
+
"baseCaseId": "generic/explicit-action",
|
|
120
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "repository-location" },
|
|
121
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "REPOSITORY_LOCATION", "coverage": ["MODEL_LOCATION", "REPOSITORY_FILE_SYMBOL"] }
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "containment/rollback",
|
|
125
|
+
"role": "RECORDED_CONTAINMENT",
|
|
126
|
+
"baseCaseId": "generic/explicit-action",
|
|
127
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "rollback" },
|
|
128
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "ROLLBACK_PLAN", "coverage": ["ROLLBACK_PLAN"] }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "containment/safety-paraphrase",
|
|
132
|
+
"role": "RECORDED_CONTAINMENT",
|
|
133
|
+
"baseCaseId": "generic/explicit-action",
|
|
134
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "safety-paraphrase" },
|
|
135
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "SAFETY_OR_COMPLETION_CLAIM", "coverage": ["SAFETY_CLAIM_ADVERSARIAL"] }
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "containment/semantic-unsupported",
|
|
139
|
+
"role": "RECORDED_CONTAINMENT",
|
|
140
|
+
"baseCaseId": "generic/explicit-action",
|
|
141
|
+
"recordedSource": { "kind": "BASE_POLICY_PROBE", "probeId": "semantic-unsupported" },
|
|
142
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "UNSUPPORTED_ACTION", "coverage": ["KNOWN_SEMANTIC_GAP", "UNSUPPORTED_ACTION_SEMANTIC"] }
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "containment/whole-candidate",
|
|
146
|
+
"role": "RECORDED_CONTAINMENT",
|
|
147
|
+
"baseCaseId": "node/whole-candidate-rejection",
|
|
148
|
+
"recordedSource": { "kind": "BASE_RESPONSE" },
|
|
149
|
+
"recordedExpected": { "unsafe": true, "expectedTrustDecision": "REJECTED", "expectedDetailCode": "IDENTIFIER_NOT_IN_EXCERPT", "coverage": ["INVENTED_API", "WHOLE_CANDIDATE"] }
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "failure/invalid-json",
|
|
153
|
+
"role": "INJECTED_FAILURE",
|
|
154
|
+
"baseCaseId": "generic/explicit-action",
|
|
155
|
+
"injectedFailure": { "kind": "INVALID_JSON", "output": "{invalid" },
|
|
156
|
+
"injectedExpected": { "finalOutcome": "rejected", "detailCode": "OUTPUT_JSON_INVALID" }
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "failure/provider-timeout",
|
|
160
|
+
"role": "INJECTED_FAILURE",
|
|
161
|
+
"baseCaseId": "generic/explicit-action",
|
|
162
|
+
"injectedFailure": { "kind": "RUNTIME_ERROR", "code": "TIMEOUT" },
|
|
163
|
+
"injectedExpected": { "finalOutcome": "failed", "detailCode": "TIMEOUT" }
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "failure/schema-invalid",
|
|
167
|
+
"role": "INJECTED_FAILURE",
|
|
168
|
+
"baseCaseId": "generic/explicit-action",
|
|
169
|
+
"injectedFailure": { "kind": "SCHEMA_INVALID", "output": { "status": "ACTIONABLE" } },
|
|
170
|
+
"injectedExpected": { "finalOutcome": "rejected", "detailCode": "OUTPUT_SCHEMA_INVALID" }
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "generic/ambiguous-evidence",
|
|
174
|
+
"role": "LIVE_QUALITY",
|
|
175
|
+
"baseCaseId": "generic/ambiguous-evidence",
|
|
176
|
+
"fakeResponseSource": "BASE_CASE",
|
|
177
|
+
"expected": { "actionExpected": false, "actionCriteria": { "actions": [], "forbiddenExpansions": [], "forbiddenModalities": [], "allowedVersions": ["2.0.0"] } }
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "generic/explicit-action",
|
|
181
|
+
"role": "LIVE_QUALITY",
|
|
182
|
+
"baseCaseId": "generic/explicit-action",
|
|
183
|
+
"fakeResponseSource": "BASE_CASE",
|
|
184
|
+
"expected": {
|
|
185
|
+
"actionExpected": true,
|
|
186
|
+
"actionCriteria": {
|
|
187
|
+
"actions": [{
|
|
188
|
+
"id": "replace-config-option",
|
|
189
|
+
"acceptablePatterns": [
|
|
190
|
+
{ "allOf": ["oldoption", "newoption"], "anyActionVerb": ["replace", "rename", "change", "update"] },
|
|
191
|
+
{ "allOf": ["renamed", "application", "configuration", "option"], "anyActionVerb": ["update", "apply", "change"] }
|
|
192
|
+
],
|
|
193
|
+
"specificity": { "actionVerbs": ["replace", "rename", "change", "update", "apply"], "sourceIdentifiers": ["oldoption"], "targetIdentifiers": ["newoption"], "objectAnchors": [] }
|
|
194
|
+
}],
|
|
195
|
+
"forbiddenExpansions": [
|
|
196
|
+
{ "id": "command", "anyOf": ["npm install", "pnpm add", "pip install", "run command"] },
|
|
197
|
+
{ "id": "config-flag", "anyOf": ["invented flag", "invented-flag", "invented_config_key"] },
|
|
198
|
+
{ "id": "dependency-order", "anyOf": ["before updating", "after updating", "prerequisite", "required before"] },
|
|
199
|
+
{ "id": "invented-api", "anyOf": ["inventedapi", "inventedclientmode", "replacementapi"] },
|
|
200
|
+
{ "id": "rollback", "anyOf": ["rollback", "roll back", "revert plan"] },
|
|
201
|
+
{ "id": "safety-completion", "anyOf": ["safe to upgrade", "upgrade is safe", "migration complete", "ready to deploy"] },
|
|
202
|
+
{ "id": "stored-data", "anyOf": ["delete stored data", "delete data", "reset database"] }
|
|
203
|
+
],
|
|
204
|
+
"forbiddenModalities": ["must", "required"],
|
|
205
|
+
"allowedVersions": ["2.0.0"]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "generic/release-announcement",
|
|
211
|
+
"role": "LIVE_QUALITY",
|
|
212
|
+
"baseCaseId": "generic/release-announcement",
|
|
213
|
+
"fakeResponseSource": "BASE_CASE",
|
|
214
|
+
"expected": { "actionExpected": false, "actionCriteria": { "actions": [], "forbiddenExpansions": [], "forbiddenModalities": [], "allowedVersions": ["2.0.0"] } }
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "node/multi-action",
|
|
218
|
+
"role": "LIVE_QUALITY",
|
|
219
|
+
"baseCaseId": "node/multi-action",
|
|
220
|
+
"fakeResponseSource": "BASE_CASE",
|
|
221
|
+
"expected": {
|
|
222
|
+
"actionExpected": true,
|
|
223
|
+
"actionCriteria": {
|
|
224
|
+
"actions": [
|
|
225
|
+
{
|
|
226
|
+
"id": "replace-legacy-button",
|
|
227
|
+
"acceptablePatterns": [{ "allOf": ["legacybutton", "button"], "anyActionVerb": ["replace", "change", "update"] }],
|
|
228
|
+
"specificity": { "actionVerbs": ["replace", "change", "update"], "sourceIdentifiers": ["legacybutton"], "targetIdentifiers": ["button"], "objectAnchors": ["button"] }
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "rename-theme-option",
|
|
232
|
+
"acceptablePatterns": [{ "allOf": ["oldtheme", "theme"], "anyActionVerb": ["rename", "replace", "change", "update"] }],
|
|
233
|
+
"specificity": { "actionVerbs": ["rename", "replace", "change", "update"], "sourceIdentifiers": ["oldtheme"], "targetIdentifiers": ["theme"], "objectAnchors": ["theme", "option"] }
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"forbiddenExpansions": [
|
|
237
|
+
{ "id": "dependency-order", "anyOf": ["before updating", "after updating", "prerequisite"] },
|
|
238
|
+
{ "id": "invented-api", "anyOf": ["inventedbutton", "inventedtheme", "invented flag"] },
|
|
239
|
+
{ "id": "rollback", "anyOf": ["rollback", "roll back"] },
|
|
240
|
+
{ "id": "safety", "anyOf": ["safe to upgrade", "upgrade is safe"] }
|
|
241
|
+
],
|
|
242
|
+
"forbiddenModalities": ["must", "required"],
|
|
243
|
+
"allowedVersions": ["2.0.0"]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "node/no-action-breaking",
|
|
249
|
+
"role": "LIVE_QUALITY",
|
|
250
|
+
"baseCaseId": "node/no-action-breaking",
|
|
251
|
+
"fakeResponseSource": "BASE_CASE",
|
|
252
|
+
"expected": { "actionExpected": false, "actionCriteria": { "actions": [], "forbiddenExpansions": [], "forbiddenModalities": [], "allowedVersions": ["2.0.0"] } }
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"id": "python/unknown-registry-action",
|
|
256
|
+
"role": "LIVE_QUALITY",
|
|
257
|
+
"baseCaseId": "python/unknown-registry-action",
|
|
258
|
+
"fakeResponseSource": "BASE_CASE",
|
|
259
|
+
"expected": {
|
|
260
|
+
"actionExpected": true,
|
|
261
|
+
"actionCriteria": {
|
|
262
|
+
"actions": [{
|
|
263
|
+
"id": "replace-dict-method",
|
|
264
|
+
"acceptablePatterns": [
|
|
265
|
+
{ "allOf": ["dict", "model_dump"], "anyActionVerb": ["replace", "rename", "change", "update"] },
|
|
266
|
+
{ "allOf": ["documented", "method", "rename"], "anyActionVerb": ["apply", "use", "review"] }
|
|
267
|
+
],
|
|
268
|
+
"specificity": { "actionVerbs": ["replace", "rename", "change", "update", "apply"], "sourceIdentifiers": ["dict"], "targetIdentifiers": ["model_dump"], "objectAnchors": ["method", "model_dump"] }
|
|
269
|
+
}],
|
|
270
|
+
"forbiddenExpansions": [
|
|
271
|
+
{ "id": "installed-version", "anyOf": ["installed version", "currently installed"] },
|
|
272
|
+
{ "id": "recommendation", "anyOf": ["recommended target", "recommend upgrading"] },
|
|
273
|
+
{ "id": "safety", "anyOf": ["safe to upgrade", "upgrade is safe"] }
|
|
274
|
+
],
|
|
275
|
+
"forbiddenModalities": ["must", "required"],
|
|
276
|
+
"allowedVersions": ["2.0.0"]
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"id": "python/unsupported-usage-action",
|
|
282
|
+
"role": "LIVE_QUALITY",
|
|
283
|
+
"baseCaseId": "python/unsupported-usage-action",
|
|
284
|
+
"fakeResponseSource": "BASE_CASE",
|
|
285
|
+
"expected": {
|
|
286
|
+
"actionExpected": true,
|
|
287
|
+
"actionCriteria": {
|
|
288
|
+
"actions": [{
|
|
289
|
+
"id": "rename-publisher-setting",
|
|
290
|
+
"acceptablePatterns": [
|
|
291
|
+
{ "allOf": ["legacy_setting", "current_setting"], "anyActionVerb": ["rename", "replace", "change", "update"] },
|
|
292
|
+
{ "allOf": ["publisher", "setting"], "anyActionVerb": ["rename", "update", "apply"] }
|
|
293
|
+
],
|
|
294
|
+
"specificity": { "actionVerbs": ["rename", "replace", "change", "update", "apply"], "sourceIdentifiers": ["legacy_setting"], "targetIdentifiers": ["current_setting"], "objectAnchors": [] }
|
|
295
|
+
}],
|
|
296
|
+
"forbiddenExpansions": [
|
|
297
|
+
{ "id": "repository-unused", "anyOf": ["unused", "not used", "not impacted"] },
|
|
298
|
+
{ "id": "safety", "anyOf": ["safe to upgrade", "upgrade is safe"] }
|
|
299
|
+
],
|
|
300
|
+
"forbiddenModalities": ["must", "required"],
|
|
301
|
+
"allowedVersions": ["1.1.0"]
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|