@marinjursic/prc-darwin-arm64 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/bin/LICENSE +21 -0
- package/bin/README.md +335 -0
- package/bin/THIRD_PARTY_NOTICES.md +74 -0
- package/bin/adapters/checkov-v3.3.8.yaml +50 -0
- package/bin/adapters/gitleaks-v8.30.0.yaml +63 -0
- package/bin/adapters/grype-v0.116.1.yaml +58 -0
- package/bin/adapters/syft-v1.51.0.yaml +54 -0
- package/bin/catalog/assertions/core-repository.yaml +625 -0
- package/bin/catalog/assertions/iac.yaml +24 -0
- package/bin/catalog/assertions/supply-chain.yaml +45 -0
- package/bin/catalog/control-contracts.json +1 -0
- package/bin/catalog/control-id-registry.json +110470 -0
- package/bin/catalog/objectives/core-repository.yaml +243 -0
- package/bin/catalog/objectives/iac.yaml +13 -0
- package/bin/catalog/objectives/supply-chain.yaml +13 -0
- package/bin/catalog/profiles/api.yaml +12 -0
- package/bin/catalog/profiles/core-repository.yaml +49 -0
- package/bin/catalog/profiles/iac.yaml +18 -0
- package/bin/catalog/profiles/kubernetes.yaml +15 -0
- package/bin/catalog/profiles/quick.yaml +27 -0
- package/bin/catalog/profiles/supply-chain.yaml +20 -0
- package/bin/docs/architecture/adapters.md +380 -0
- package/bin/docs/architecture/agent-providers.md +188 -0
- package/bin/docs/architecture/applicability.md +80 -0
- package/bin/docs/architecture/catalog-integrity.md +85 -0
- package/bin/docs/architecture/evidence-and-results.md +154 -0
- package/bin/docs/architecture/execution-plans.md +61 -0
- package/bin/docs/architecture/product-contract.md +76 -0
- package/bin/docs/architecture/publisher-trust.md +68 -0
- package/bin/docs/architecture/remediation-contract.md +113 -0
- package/bin/docs/architecture/trust-model.md +95 -0
- package/bin/docs/assets/hero.svg +37 -0
- package/bin/docs/assets/logo.svg +13 -0
- package/bin/docs/assets/production-readiness-scan-demo-poster.png +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.gif +0 -0
- package/bin/docs/assets/production-readiness-scan-demo.mp4 +0 -0
- package/bin/docs/assets/social-card.png +0 -0
- package/bin/docs/assets/social-card.svg +40 -0
- package/bin/docs/checklists/00-readiness-principle.md +17 -0
- package/bin/docs/checklists/01-release-foundations.md +91 -0
- package/bin/docs/checklists/02-product-risk-architecture.md +136 -0
- package/bin/docs/checklists/03-source-build-supply-chain.md +97 -0
- package/bin/docs/checklists/04-environments-quality-experience.md +226 -0
- package/bin/docs/checklists/05-application-security.md +320 -0
- package/bin/docs/checklists/06-data-privacy-performance.md +166 -0
- package/bin/docs/checklists/07-reliability-operations.md +355 -0
- package/bin/docs/checklists/08-maintenance-vendors-compliance.md +112 -0
- package/bin/docs/checklists/09-conditional-modules.md +229 -0
- package/bin/docs/checklists/10-evidence-and-decision.md +111 -0
- package/bin/docs/engineering/00-overview.md +51 -0
- package/bin/docs/engineering/01-governance-and-foundations.md +919 -0
- package/bin/docs/engineering/02-product-and-requirements.md +186 -0
- package/bin/docs/engineering/03-user-experience-web-and-content.md +1352 -0
- package/bin/docs/engineering/04-architecture-and-design.md +387 -0
- package/bin/docs/engineering/05-code-quality-and-implementation.md +1103 -0
- package/bin/docs/engineering/06-application-services-and-apis.md +476 -0
- package/bin/docs/engineering/07-data-and-information-lifecycle.md +1009 -0
- package/bin/docs/engineering/08-security-and-cryptography.md +1215 -0
- package/bin/docs/engineering/09-privacy-and-data-protection.md +205 -0
- package/bin/docs/engineering/10-verification-and-testing.md +841 -0
- package/bin/docs/engineering/11-developer-experience-platform-and-delivery.md +1013 -0
- package/bin/docs/engineering/12-operations-sre-and-support.md +795 -0
- package/bin/docs/engineering/13-documentation-and-knowledge.md +349 -0
- package/bin/docs/engineering/14-trust-safety-and-ecosystems.md +330 -0
- package/bin/docs/engineering/15-ai-ml-and-ai-assisted-development.md +785 -0
- package/bin/docs/engineering/16-specialized-domains-and-release-assurance.md +775 -0
- package/bin/docs/engineering/source-manifest.md +479 -0
- package/bin/docs/guides/ai-assisted-review.md +61 -0
- package/bin/docs/guides/getting-started.md +78 -0
- package/bin/docs/index.md +66 -0
- package/bin/docs/prompts/evidence-challenge.md +26 -0
- package/bin/docs/prompts/full-readiness-review.md +34 -0
- package/bin/docs/prompts/release-diff-review.md +31 -0
- package/bin/docs/records/evidence-record.md +42 -0
- package/bin/docs/records/go-no-go-decision.md +63 -0
- package/bin/docs/records/release-assessment.md +124 -0
- package/bin/docs/records/risk-exception.md +64 -0
- package/bin/docs/references.md +52 -0
- package/bin/docs/scanner/ai-control-review.md +208 -0
- package/bin/docs/scanner/benchmarks.md +122 -0
- package/bin/docs/scanner/cli-contract.md +130 -0
- package/bin/docs/scanner/configuration.md +101 -0
- package/bin/docs/scanner/control-contracts.md +47 -0
- package/bin/docs/scanner/core-repository.md +62 -0
- package/bin/docs/scanner/diff-and-invalidation.md +79 -0
- package/bin/docs/scanner/doctor.md +71 -0
- package/bin/docs/scanner/getting-started.md +355 -0
- package/bin/docs/scanner/go-http-timeouts.md +96 -0
- package/bin/docs/scanner/infrastructure-policy.md +64 -0
- package/bin/docs/scanner/kubernetes-workloads.md +63 -0
- package/bin/docs/scanner/mcp-agent-integration.md +138 -0
- package/bin/docs/scanner/openapi-contracts.md +75 -0
- package/bin/docs/scanner/private-key-armor.md +44 -0
- package/bin/docs/scanner/releases.md +160 -0
- package/bin/docs/scanner/remediation.md +273 -0
- package/bin/docs/scanner/risk-exceptions.md +52 -0
- package/bin/docs/scanner/security-walkthrough.md +236 -0
- package/bin/docs/scanner/state-and-history.md +113 -0
- package/bin/docs/scanner/supply-chain.md +132 -0
- package/bin/docs/scanner/test-discovery.md +60 -0
- package/bin/docs/stylesheets/extra.css +183 -0
- package/bin/fixtures/benchmarks/core-native/suite-comprehensive.yaml +302 -0
- package/bin/fixtures/benchmarks/core-native/suite.yaml +59 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/baseline/app.go +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/conflict-template/app.js +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-risky-template/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/container-valid/Dockerfile +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-missing/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package.json +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/empty-manifest-template/package.json +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/final-newline-template/app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/CODEOWNERS +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/dependabot.yml +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/workflows/validate.yml +15 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CODE_OF_CONDUCT.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CONTRIBUTING.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/LICENSE +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/README.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/SECURITY.md +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/foundation-present/tests/example.test.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/server.go +18 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/client.go +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/client.go +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/client.go +22 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/go.mod +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/hazards_test.go +8 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-risky-template/deployment.yaml +27 -0
- package/bin/fixtures/benchmarks/core-native/targets/kubernetes-valid/deployment.yaml +26 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-ids-risky-template/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-responses-risky-template/openapi.yaml +11 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-malformed-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-risky-template/openapi.yaml +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/openapi-root-valid/openapi.yaml +17 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-command/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/app.js +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/package.json +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/private-key-template/deploy.pem +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/readme-missing/fixture.txt +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package-lock.json +6 -0
- package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package.json +4 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/.terraform.lock.hcl +3 -0
- package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/main.tf +7 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/tests/test_app.py +5 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/app.py +2 -0
- package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/tests/test_app.py +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-malformed/.github/workflows/validate.yml +1 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-no-jobs/.github/workflows/empty.yml +9 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-risky/.github/workflows/risky.yml +10 -0
- package/bin/fixtures/benchmarks/core-native/targets/workflow-valid/.github/workflows/validate.yml +14 -0
- package/bin/packs/core-foundation.yaml +25 -0
- package/bin/packs/core-native.yaml +59 -0
- package/bin/prc +0 -0
- package/bin/schemas/adapter-execution-v0.1.schema.json +101 -0
- package/bin/schemas/adapter-execution-v0.2.schema.json +128 -0
- package/bin/schemas/adapter-execution.schema.json +145 -0
- package/bin/schemas/adapter-fixture-report.schema.json +59 -0
- package/bin/schemas/adapter-fixture-suite.schema.json +104 -0
- package/bin/schemas/adapter-manifest-v0.1.schema.json +55 -0
- package/bin/schemas/adapter-manifest-v0.2.schema.json +122 -0
- package/bin/schemas/adapter-manifest-v0.3.schema.json +172 -0
- package/bin/schemas/adapter-manifest.schema.json +299 -0
- package/bin/schemas/adapter-message.schema.json +136 -0
- package/bin/schemas/adapter-registry-report.schema.json +13 -0
- package/bin/schemas/adapter-registry.schema.json +47 -0
- package/bin/schemas/agent-execution-v0.1.schema.json +26 -0
- package/bin/schemas/agent-execution.schema.json +26 -0
- package/bin/schemas/agent-failure-v0.1.schema.json +102 -0
- package/bin/schemas/agent-failure.schema.json +102 -0
- package/bin/schemas/agent-output-v0.1.schema.json +36 -0
- package/bin/schemas/agent-output.schema.json +36 -0
- package/bin/schemas/agent-task-v0.1.schema.json +44 -0
- package/bin/schemas/agent-task.schema.json +46 -0
- package/bin/schemas/assertion-catalog.schema.json +69 -0
- package/bin/schemas/benchmark-report.schema.json +94 -0
- package/bin/schemas/benchmark-suite.schema.json +116 -0
- package/bin/schemas/catalog-bundle.schema.json +27 -0
- package/bin/schemas/catalog-manifest.schema.json +23 -0
- package/bin/schemas/checkov-iac-policy-report.schema.json +82 -0
- package/bin/schemas/control-contracts.schema.json +44 -0
- package/bin/schemas/control-review-output.schema.json +51 -0
- package/bin/schemas/doctor.schema.json +53 -0
- package/bin/schemas/evidence-v0.1.schema.json +21 -0
- package/bin/schemas/evidence.schema.json +21 -0
- package/bin/schemas/finding-v0.1.schema.json +70 -0
- package/bin/schemas/finding.schema.json +70 -0
- package/bin/schemas/fix-contract-v0.1.schema.json +35 -0
- package/bin/schemas/fix-contract-v0.2.schema.json +46 -0
- package/bin/schemas/fix-contract-v0.3.schema.json +49 -0
- package/bin/schemas/fix-contract.schema.json +49 -0
- package/bin/schemas/grype-vulnerability-report.schema.json +88 -0
- package/bin/schemas/history.schema.json +37 -0
- package/bin/schemas/invalidation.schema.json +86 -0
- package/bin/schemas/inventory-v0.1.schema.json +42 -0
- package/bin/schemas/inventory-v0.2.schema.json +95 -0
- package/bin/schemas/inventory-v0.3.schema.json +139 -0
- package/bin/schemas/inventory.schema.json +139 -0
- package/bin/schemas/objective-catalog.schema.json +62 -0
- package/bin/schemas/pack-report.schema.json +16 -0
- package/bin/schemas/pack.schema.json +53 -0
- package/bin/schemas/plan-v0.1.schema.json +31 -0
- package/bin/schemas/plan-v0.2.schema.json +32 -0
- package/bin/schemas/plan-v0.3.schema.json +44 -0
- package/bin/schemas/plan-v0.4.schema.json +48 -0
- package/bin/schemas/plan-v0.5.schema.json +49 -0
- package/bin/schemas/plan-v0.6.schema.json +137 -0
- package/bin/schemas/plan.schema.json +137 -0
- package/bin/schemas/profile.schema.json +42 -0
- package/bin/schemas/project-config.schema.json +128 -0
- package/bin/schemas/release-manifest-v0.1.schema.json +86 -0
- package/bin/schemas/release-manifest-v0.2.schema.json +146 -0
- package/bin/schemas/release-manifest-v0.3.schema.json +146 -0
- package/bin/schemas/release-manifest.schema.json +6 -0
- package/bin/schemas/remediation-candidate-v0.1.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.2.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.3.schema.json +51 -0
- package/bin/schemas/remediation-candidate-v0.4.schema.json +69 -0
- package/bin/schemas/remediation-candidate.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.1.schema.json +69 -0
- package/bin/schemas/remediation-run-v0.2.schema.json +78 -0
- package/bin/schemas/remediation-run-v0.3.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.4.schema.json +86 -0
- package/bin/schemas/remediation-run-v0.5.schema.json +131 -0
- package/bin/schemas/remediation-run-v0.6.schema.json +143 -0
- package/bin/schemas/remediation-run-v0.7.schema.json +160 -0
- package/bin/schemas/remediation-run-v0.8.schema.json +161 -0
- package/bin/schemas/remediation-run.schema.json +161 -0
- package/bin/schemas/risk-exception-verification.schema.json +17 -0
- package/bin/schemas/risk-exception.schema.json +137 -0
- package/bin/schemas/run-result-v0.1.schema.json +54 -0
- package/bin/schemas/run-result-v0.10.schema.json +64 -0
- package/bin/schemas/run-result-v0.11.schema.json +146 -0
- package/bin/schemas/run-result-v0.2.schema.json +60 -0
- package/bin/schemas/run-result-v0.3.schema.json +52 -0
- package/bin/schemas/run-result-v0.4.schema.json +52 -0
- package/bin/schemas/run-result-v0.5.schema.json +60 -0
- package/bin/schemas/run-result-v0.6.schema.json +61 -0
- package/bin/schemas/run-result-v0.7.schema.json +61 -0
- package/bin/schemas/run-result-v0.8.schema.json +61 -0
- package/bin/schemas/run-result-v0.9.schema.json +77 -0
- package/bin/schemas/run-result.schema.json +165 -0
- package/bin/schemas/signature-verification.schema.json +22 -0
- package/bin/schemas/signature.schema.json +18 -0
- package/bin/schemas/state-check-v0.1.schema.json +27 -0
- package/bin/schemas/state-check.schema.json +28 -0
- package/bin/schemas/trust-store.schema.json +50 -0
- package/bin/schemas/verification-execution-v0.1.schema.json +105 -0
- package/bin/schemas/verification-execution.schema.json +105 -0
- package/bin/schemas/version-v0.1.schema.json +27 -0
- package/bin/schemas/version.schema.json +27 -0
- package/manifest.json +9 -0
- package/package.json +28 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-message.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter JSONL Message",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{"$ref": "#/$defs/hello"},
|
|
7
|
+
{"$ref": "#/$defs/input"},
|
|
8
|
+
{"$ref": "#/$defs/execute"},
|
|
9
|
+
{"$ref": "#/$defs/log"},
|
|
10
|
+
{"$ref": "#/$defs/observation_message"},
|
|
11
|
+
{"$ref": "#/$defs/artifact_message"},
|
|
12
|
+
{"$ref": "#/$defs/summary"}
|
|
13
|
+
],
|
|
14
|
+
"$defs": {
|
|
15
|
+
"hello": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["type", "protocol", "run_id"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"type": {"const": "hello"},
|
|
21
|
+
"protocol": {"const": "prc-adapter-jsonl-v1"},
|
|
22
|
+
"run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"subject": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["target_name", "inventory_digest"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"target_name": {"type": "string", "minLength": 1},
|
|
31
|
+
"target_commit": {"type": "string", "pattern": "^[0-9a-f]{40,64}$"},
|
|
32
|
+
"inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"input": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["type", "subject", "facts", "config"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"type": {"const": "input"},
|
|
41
|
+
"subject": {"$ref": "#/$defs/subject"},
|
|
42
|
+
"facts": {"type": "object"},
|
|
43
|
+
"config": {"type": "object"}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"execute": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["type"],
|
|
50
|
+
"properties": {"type": {"const": "execute"}}
|
|
51
|
+
},
|
|
52
|
+
"log": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["type", "level", "message"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"type": {"const": "log"},
|
|
58
|
+
"level": {"enum": ["debug", "info", "warning", "error"]},
|
|
59
|
+
"message": {"type": "string", "minLength": 1}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"location": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": ["path"],
|
|
66
|
+
"properties": {
|
|
67
|
+
"path": {"type": "string", "minLength": 1},
|
|
68
|
+
"line": {"type": "integer", "minimum": 0},
|
|
69
|
+
"column": {"type": "integer", "minimum": 0}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"observation": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": ["id", "kind", "outcome", "summary", "locations"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {"type": "string", "minLength": 1},
|
|
78
|
+
"kind": {"type": "string", "minLength": 1},
|
|
79
|
+
"outcome": {"enum": ["found", "not_found", "value", "unsupported"]},
|
|
80
|
+
"summary": {"type": "string", "minLength": 1},
|
|
81
|
+
"locations": {"type": "array", "items": {"$ref": "#/$defs/location"}},
|
|
82
|
+
"data": {"type": "object"}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"observation_message": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["type", "observation"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"type": {"const": "observation"},
|
|
91
|
+
"observation": {"$ref": "#/$defs/observation"}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"artifact": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"required": ["id", "media_type", "digest", "size"],
|
|
98
|
+
"properties": {
|
|
99
|
+
"id": {"type": "string", "minLength": 1},
|
|
100
|
+
"media_type": {"type": "string", "minLength": 1},
|
|
101
|
+
"digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
|
|
102
|
+
"size": {"type": "integer", "minimum": 0},
|
|
103
|
+
"path": {"type": "string", "minLength": 1}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"artifact_message": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": ["type", "artifact"],
|
|
110
|
+
"properties": {
|
|
111
|
+
"type": {"const": "artifact"},
|
|
112
|
+
"artifact": {"$ref": "#/$defs/artifact"}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"summary": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["type", "status", "counts"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"type": {"const": "summary"},
|
|
121
|
+
"status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
|
|
122
|
+
"counts": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": {"type": "integer", "minimum": 0}
|
|
125
|
+
},
|
|
126
|
+
"reason": {"type": "string", "minLength": 1}
|
|
127
|
+
},
|
|
128
|
+
"allOf": [
|
|
129
|
+
{
|
|
130
|
+
"if": {"properties": {"status": {"not": {"const": "completed"}}}},
|
|
131
|
+
"then": {"required": ["reason"]}
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-registry-report.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter Registry Report v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "registry", "digest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.adapter-registry-report/v0.1"},
|
|
10
|
+
"registry": {"$ref": "adapter-registry.schema.json"},
|
|
11
|
+
"digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-registry.schema.json",
|
|
4
|
+
"title": "Production Readiness Adapter Registry v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "id", "revision", "entries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.adapter-registry/v0.1"},
|
|
10
|
+
"id": {"type": "string", "pattern": "^prc\\.adapter-registry\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
11
|
+
"revision": {"type": "integer", "minimum": 1},
|
|
12
|
+
"entries": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"maxItems": 4096,
|
|
16
|
+
"uniqueItems": true,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["adapter_id", "manifest_path", "manifest_sha256", "publisher_id", "trust", "status"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"adapter_id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
|
|
23
|
+
"manifest_path": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*\\.ya?ml$",
|
|
26
|
+
"not": {"pattern": "(^|/)\\.\\.?(/|$)"}
|
|
27
|
+
},
|
|
28
|
+
"manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
29
|
+
"publisher_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
|
|
30
|
+
"trust": {"enum": ["first-party-sandboxed", "verified-community", "unverified-community", "local"]},
|
|
31
|
+
"status": {"enum": ["active", "deprecated", "revoked"]},
|
|
32
|
+
"reason": {"type": "string", "minLength": 1}
|
|
33
|
+
},
|
|
34
|
+
"allOf": [
|
|
35
|
+
{
|
|
36
|
+
"if": {"properties": {"status": {"enum": ["deprecated", "revoked"]}}, "required": ["status"]},
|
|
37
|
+
"then": {"required": ["reason"]}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"if": {"properties": {"status": {"const": "active"}}, "required": ["status"]},
|
|
41
|
+
"then": {"not": {"required": ["reason"]}}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-execution-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Execution",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "execution_id", "provider", "task_id", "executable_sha256", "output_schema_sha256", "started_at", "completed_at", "duration_ms", "stdout_path", "stdout_sha256", "stdout_bytes", "stderr_path", "stderr_sha256", "stderr_bytes", "output"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-execution/v0.1"},
|
|
10
|
+
"execution_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
12
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"executable_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"output_schema_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"started_at": {"type": "string", "format": "date-time"},
|
|
16
|
+
"completed_at": {"type": "string", "format": "date-time"},
|
|
17
|
+
"duration_ms": {"type": "integer", "minimum": 0},
|
|
18
|
+
"stdout_path": {"type": "string", "minLength": 1},
|
|
19
|
+
"stdout_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
20
|
+
"stdout_bytes": {"type": "integer", "minimum": 0},
|
|
21
|
+
"stderr_path": {"type": "string", "minLength": 1},
|
|
22
|
+
"stderr_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
23
|
+
"stderr_bytes": {"type": "integer", "minimum": 0},
|
|
24
|
+
"output": {"$ref": "agent-output-v0.1.schema.json"}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-execution.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Execution",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "execution_id", "provider", "task_id", "executable_sha256", "output_schema_sha256", "started_at", "completed_at", "duration_ms", "stdout_path", "stdout_sha256", "stdout_bytes", "stderr_path", "stderr_sha256", "stderr_bytes", "output"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-execution/v0.1"},
|
|
10
|
+
"execution_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
12
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"executable_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"output_schema_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"started_at": {"type": "string", "format": "date-time"},
|
|
16
|
+
"completed_at": {"type": "string", "format": "date-time"},
|
|
17
|
+
"duration_ms": {"type": "integer", "minimum": 0},
|
|
18
|
+
"stdout_path": {"type": "string", "minLength": 1},
|
|
19
|
+
"stdout_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
20
|
+
"stdout_bytes": {"type": "integer", "minimum": 0},
|
|
21
|
+
"stderr_path": {"type": "string", "minLength": 1},
|
|
22
|
+
"stderr_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
23
|
+
"stderr_bytes": {"type": "integer", "minimum": 0},
|
|
24
|
+
"output": {"$ref": "agent-output.schema.json"}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-failure-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Failure v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "failure_id", "provider", "task_id", "executable_sha256", "output_schema_sha256", "started_at", "completed_at", "duration_ms", "stage", "reason_code", "reason", "transcripts_complete", "stdout_bytes", "stderr_bytes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-failure/v0.1"},
|
|
10
|
+
"failure_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
12
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"executable_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"output_schema_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"started_at": {"type": "string", "format": "date-time"},
|
|
16
|
+
"completed_at": {"type": "string", "format": "date-time"},
|
|
17
|
+
"duration_ms": {"type": "integer", "minimum": 0},
|
|
18
|
+
"stage": {"enum": ["preflight", "transcript", "execution", "postflight", "protocol"]},
|
|
19
|
+
"reason_code": {"enum": ["preflight_failed", "transcript_failed", "cancelled", "timeout", "output_limit", "process_failed", "workspace_changed", "result_missing", "protocol_rejected"]},
|
|
20
|
+
"reason": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
21
|
+
"transcripts_complete": {"type": "boolean"},
|
|
22
|
+
"stdout_path": {"type": "string", "minLength": 1},
|
|
23
|
+
"stdout_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
24
|
+
"stdout_bytes": {"type": "integer", "minimum": 0},
|
|
25
|
+
"stderr_path": {"type": "string", "minLength": 1},
|
|
26
|
+
"stderr_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
27
|
+
"stderr_bytes": {"type": "integer", "minimum": 0}
|
|
28
|
+
},
|
|
29
|
+
"allOf": [
|
|
30
|
+
{
|
|
31
|
+
"if": {"required": ["stdout_path"]},
|
|
32
|
+
"then": {"required": ["stdout_sha256"]},
|
|
33
|
+
"else": {"not": {"required": ["stdout_sha256"]}}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"if": {"required": ["stderr_path"]},
|
|
37
|
+
"then": {"required": ["stderr_sha256"]},
|
|
38
|
+
"else": {"not": {"required": ["stderr_sha256"]}}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"if": {"properties": {"transcripts_complete": {"const": true}}, "required": ["transcripts_complete"]},
|
|
42
|
+
"then": {"required": ["stdout_path", "stdout_sha256", "stderr_path", "stderr_sha256"]},
|
|
43
|
+
"else": {"not": {"required": ["stdout_path", "stderr_path"]}}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"if": {"properties": {"stage": {"const": "preflight"}}, "required": ["stage"]},
|
|
47
|
+
"then": {"properties": {"reason_code": {"const": "preflight_failed"}}}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"if": {"properties": {"stage": {"const": "transcript"}}, "required": ["stage"]},
|
|
51
|
+
"then": {"properties": {"reason_code": {"const": "transcript_failed"}}}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"if": {"properties": {"stage": {"const": "execution"}}, "required": ["stage"]},
|
|
55
|
+
"then": {"properties": {"reason_code": {"enum": ["cancelled", "timeout", "output_limit", "process_failed"]}}}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"if": {"properties": {"stage": {"const": "postflight"}}, "required": ["stage"]},
|
|
59
|
+
"then": {"properties": {"reason_code": {"enum": ["workspace_changed", "result_missing"]}}}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"if": {"properties": {"stage": {"const": "protocol"}}, "required": ["stage"]},
|
|
63
|
+
"then": {"properties": {"reason_code": {"const": "protocol_rejected"}}}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"if": {"properties": {"reason_code": {"const": "preflight_failed"}}, "required": ["reason_code"]},
|
|
67
|
+
"then": {"properties": {"reason": {"const": "Provider invocation failed scanner preflight before launch."}}}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"if": {"properties": {"reason_code": {"const": "transcript_failed"}}, "required": ["reason_code"]},
|
|
71
|
+
"then": {"properties": {"reason": {"const": "Provider transcript persistence failed; no candidate was accepted."}}}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"if": {"properties": {"reason_code": {"const": "cancelled"}}, "required": ["reason_code"]},
|
|
75
|
+
"then": {"properties": {"reason": {"const": "Provider invocation was cancelled; no candidate was accepted."}}}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"if": {"properties": {"reason_code": {"const": "timeout"}}, "required": ["reason_code"]},
|
|
79
|
+
"then": {"properties": {"reason": {"const": "Provider invocation exceeded its scanner-owned timeout; no candidate was accepted."}}}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"if": {"properties": {"reason_code": {"const": "output_limit"}}, "required": ["reason_code"]},
|
|
83
|
+
"then": {"properties": {"reason": {"const": "Provider output exceeded its scanner-owned byte limit; no candidate was accepted."}}}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"if": {"properties": {"reason_code": {"const": "process_failed"}}, "required": ["reason_code"]},
|
|
87
|
+
"then": {"properties": {"reason": {"const": "Provider process exited unsuccessfully; no candidate was accepted."}}}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"if": {"properties": {"reason_code": {"const": "workspace_changed"}}, "required": ["reason_code"]},
|
|
91
|
+
"then": {"properties": {"reason": {"const": "Source workspace integrity changed during provider invocation; no candidate was accepted."}}}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"if": {"properties": {"reason_code": {"const": "result_missing"}}, "required": ["reason_code"]},
|
|
95
|
+
"then": {"properties": {"reason": {"const": "Provider result was unavailable within its scanner-owned bound; no candidate was accepted."}}}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"if": {"properties": {"reason_code": {"const": "protocol_rejected"}}, "required": ["reason_code"]},
|
|
99
|
+
"then": {"properties": {"reason": {"const": "Provider result failed the sealed output protocol; no candidate was accepted."}}}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-failure.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Failure v0.1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "failure_id", "provider", "task_id", "executable_sha256", "output_schema_sha256", "started_at", "completed_at", "duration_ms", "stage", "reason_code", "reason", "transcripts_complete", "stdout_bytes", "stderr_bytes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-failure/v0.1"},
|
|
10
|
+
"failure_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"provider": {"enum": ["codex", "claude"]},
|
|
12
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"executable_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"output_schema_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"started_at": {"type": "string", "format": "date-time"},
|
|
16
|
+
"completed_at": {"type": "string", "format": "date-time"},
|
|
17
|
+
"duration_ms": {"type": "integer", "minimum": 0},
|
|
18
|
+
"stage": {"enum": ["preflight", "transcript", "execution", "postflight", "protocol"]},
|
|
19
|
+
"reason_code": {"enum": ["preflight_failed", "transcript_failed", "cancelled", "timeout", "output_limit", "process_failed", "workspace_changed", "result_missing", "protocol_rejected"]},
|
|
20
|
+
"reason": {"type": "string", "minLength": 1, "maxLength": 4096},
|
|
21
|
+
"transcripts_complete": {"type": "boolean"},
|
|
22
|
+
"stdout_path": {"type": "string", "minLength": 1},
|
|
23
|
+
"stdout_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
24
|
+
"stdout_bytes": {"type": "integer", "minimum": 0},
|
|
25
|
+
"stderr_path": {"type": "string", "minLength": 1},
|
|
26
|
+
"stderr_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
27
|
+
"stderr_bytes": {"type": "integer", "minimum": 0}
|
|
28
|
+
},
|
|
29
|
+
"allOf": [
|
|
30
|
+
{
|
|
31
|
+
"if": {"required": ["stdout_path"]},
|
|
32
|
+
"then": {"required": ["stdout_sha256"]},
|
|
33
|
+
"else": {"not": {"required": ["stdout_sha256"]}}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"if": {"required": ["stderr_path"]},
|
|
37
|
+
"then": {"required": ["stderr_sha256"]},
|
|
38
|
+
"else": {"not": {"required": ["stderr_sha256"]}}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"if": {"properties": {"transcripts_complete": {"const": true}}, "required": ["transcripts_complete"]},
|
|
42
|
+
"then": {"required": ["stdout_path", "stdout_sha256", "stderr_path", "stderr_sha256"]},
|
|
43
|
+
"else": {"not": {"required": ["stdout_path", "stderr_path"]}}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"if": {"properties": {"stage": {"const": "preflight"}}, "required": ["stage"]},
|
|
47
|
+
"then": {"properties": {"reason_code": {"const": "preflight_failed"}}}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"if": {"properties": {"stage": {"const": "transcript"}}, "required": ["stage"]},
|
|
51
|
+
"then": {"properties": {"reason_code": {"const": "transcript_failed"}}}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"if": {"properties": {"stage": {"const": "execution"}}, "required": ["stage"]},
|
|
55
|
+
"then": {"properties": {"reason_code": {"enum": ["cancelled", "timeout", "output_limit", "process_failed"]}}}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"if": {"properties": {"stage": {"const": "postflight"}}, "required": ["stage"]},
|
|
59
|
+
"then": {"properties": {"reason_code": {"enum": ["workspace_changed", "result_missing"]}}}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"if": {"properties": {"stage": {"const": "protocol"}}, "required": ["stage"]},
|
|
63
|
+
"then": {"properties": {"reason_code": {"const": "protocol_rejected"}}}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"if": {"properties": {"reason_code": {"const": "preflight_failed"}}, "required": ["reason_code"]},
|
|
67
|
+
"then": {"properties": {"reason": {"const": "Provider invocation failed scanner preflight before launch."}}}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"if": {"properties": {"reason_code": {"const": "transcript_failed"}}, "required": ["reason_code"]},
|
|
71
|
+
"then": {"properties": {"reason": {"const": "Provider transcript persistence failed; no candidate was accepted."}}}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"if": {"properties": {"reason_code": {"const": "cancelled"}}, "required": ["reason_code"]},
|
|
75
|
+
"then": {"properties": {"reason": {"const": "Provider invocation was cancelled; no candidate was accepted."}}}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"if": {"properties": {"reason_code": {"const": "timeout"}}, "required": ["reason_code"]},
|
|
79
|
+
"then": {"properties": {"reason": {"const": "Provider invocation exceeded its scanner-owned timeout; no candidate was accepted."}}}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"if": {"properties": {"reason_code": {"const": "output_limit"}}, "required": ["reason_code"]},
|
|
83
|
+
"then": {"properties": {"reason": {"const": "Provider output exceeded its scanner-owned byte limit; no candidate was accepted."}}}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"if": {"properties": {"reason_code": {"const": "process_failed"}}, "required": ["reason_code"]},
|
|
87
|
+
"then": {"properties": {"reason": {"const": "Provider process exited unsuccessfully; no candidate was accepted."}}}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"if": {"properties": {"reason_code": {"const": "workspace_changed"}}, "required": ["reason_code"]},
|
|
91
|
+
"then": {"properties": {"reason": {"const": "Source workspace integrity changed during provider invocation; no candidate was accepted."}}}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"if": {"properties": {"reason_code": {"const": "result_missing"}}, "required": ["reason_code"]},
|
|
95
|
+
"then": {"properties": {"reason": {"const": "Provider result was unavailable within its scanner-owned bound; no candidate was accepted."}}}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"if": {"properties": {"reason_code": {"const": "protocol_rejected"}}, "required": ["reason_code"]},
|
|
99
|
+
"then": {"properties": {"reason": {"const": "Provider result failed the sealed output protocol; no candidate was accepted."}}}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-output-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Output",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "status", "root_cause", "changed_files", "patch", "commands_requested_or_run", "limitations", "requested_capability_changes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-output/v0.1"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"status": {"enum": ["candidate", "unable", "needs_escalation"]},
|
|
12
|
+
"root_cause": {"type": "string", "minLength": 1, "maxLength": 16384},
|
|
13
|
+
"changed_files": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
|
|
14
|
+
"patch": {"type": "string", "maxLength": 4194304},
|
|
15
|
+
"commands_requested_or_run": {"type": "array", "maxItems": 0},
|
|
16
|
+
"limitations": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1, "maxLength": 16384}},
|
|
17
|
+
"requested_capability_changes": {"type": "array", "maxItems": 0}
|
|
18
|
+
},
|
|
19
|
+
"allOf": [
|
|
20
|
+
{
|
|
21
|
+
"if": {"properties": {"status": {"const": "candidate"}}, "required": ["status"]},
|
|
22
|
+
"then": {
|
|
23
|
+
"properties": {
|
|
24
|
+
"changed_files": {"minItems": 1},
|
|
25
|
+
"patch": {"minLength": 1}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"else": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"changed_files": {"maxItems": 0},
|
|
31
|
+
"patch": {"maxLength": 0}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-output.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Output",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "status", "root_cause", "changed_files", "patch", "commands_requested_or_run", "limitations", "requested_capability_changes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-output/v0.1"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"status": {"enum": ["candidate", "unable", "needs_escalation"]},
|
|
12
|
+
"root_cause": {"type": "string", "minLength": 1, "maxLength": 16384},
|
|
13
|
+
"changed_files": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
|
|
14
|
+
"patch": {"type": "string", "maxLength": 4194304},
|
|
15
|
+
"commands_requested_or_run": {"type": "array", "maxItems": 0},
|
|
16
|
+
"limitations": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1, "maxLength": 16384}},
|
|
17
|
+
"requested_capability_changes": {"type": "array", "maxItems": 0}
|
|
18
|
+
},
|
|
19
|
+
"allOf": [
|
|
20
|
+
{
|
|
21
|
+
"if": {"properties": {"status": {"const": "candidate"}}, "required": ["status"]},
|
|
22
|
+
"then": {
|
|
23
|
+
"properties": {
|
|
24
|
+
"changed_files": {"minItems": 1},
|
|
25
|
+
"patch": {"minLength": 1}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"else": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"changed_files": {"maxItems": 0},
|
|
31
|
+
"patch": {"maxLength": 0}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-task-v0.1.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Task",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "mode", "workspace_inventory_digest", "assertion_id", "control_ids", "goal", "read_scope", "relevant_paths", "inputs", "allowed_paths", "protected_paths", "allowed_commands", "network", "secrets", "allow_remote_source_processing", "timeout_seconds", "max_output_bytes", "max_cost_usd"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-task/v0.1"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"mode": {"const": "suggest"},
|
|
12
|
+
"workspace_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
14
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
15
|
+
"goal": {"type": "string", "minLength": 1, "maxLength": 16384},
|
|
16
|
+
"read_scope": {"const": "task-inputs"},
|
|
17
|
+
"relevant_paths": {"$ref": "#/$defs/paths"},
|
|
18
|
+
"inputs": {"type": "array", "maxItems": 10000, "items": {"$ref": "#/$defs/input_file"}},
|
|
19
|
+
"allowed_paths": {"$ref": "#/$defs/nonempty_paths"},
|
|
20
|
+
"protected_paths": {"$ref": "#/$defs/nonempty_paths"},
|
|
21
|
+
"allowed_commands": {"type": "array", "maxItems": 0},
|
|
22
|
+
"network": {"const": "deny"},
|
|
23
|
+
"secrets": {"const": "none"},
|
|
24
|
+
"allow_remote_source_processing": {"const": true},
|
|
25
|
+
"timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
|
|
26
|
+
"max_output_bytes": {"type": "integer", "minimum": 1024, "maximum": 4194304},
|
|
27
|
+
"max_cost_usd": {"type": "number", "minimum": 0, "maximum": 1000}
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"path": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"},
|
|
31
|
+
"input_file": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"required": ["path", "sha256", "content"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"path": {"$ref": "#/$defs/path"},
|
|
37
|
+
"sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
38
|
+
"content": {"type": "string", "maxLength": 262144}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"paths": {"type": "array", "maxItems": 10000, "uniqueItems": true, "items": {"$ref": "#/$defs/path"}},
|
|
42
|
+
"nonempty_paths": {"type": "array", "minItems": 1, "maxItems": 10000, "uniqueItems": true, "items": {"$ref": "#/$defs/path"}}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/agent-task.schema.json",
|
|
4
|
+
"title": "Production Readiness Agent Task v0.2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "task_id", "mode", "workspace_inventory_digest", "finding_id", "finding_fingerprint", "assertion_id", "control_ids", "goal", "read_scope", "relevant_paths", "inputs", "allowed_paths", "protected_paths", "allowed_commands", "network", "secrets", "allow_remote_source_processing", "timeout_seconds", "max_output_bytes", "max_cost_usd"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": "prc.agent-task/v0.2"},
|
|
10
|
+
"task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
11
|
+
"mode": {"const": "suggest"},
|
|
12
|
+
"workspace_inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
13
|
+
"finding_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
14
|
+
"finding_fingerprint": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
15
|
+
"assertion_id": {"type": "string", "pattern": "^PRC-A-[A-Z0-9]+-[0-9]{3}$"},
|
|
16
|
+
"control_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^[A-Z]+-[0-9A-F]{8}$"}},
|
|
17
|
+
"goal": {"type": "string", "minLength": 1, "maxLength": 16384},
|
|
18
|
+
"read_scope": {"const": "task-inputs"},
|
|
19
|
+
"relevant_paths": {"$ref": "#/$defs/paths"},
|
|
20
|
+
"inputs": {"type": "array", "maxItems": 10000, "items": {"$ref": "#/$defs/input_file"}},
|
|
21
|
+
"allowed_paths": {"$ref": "#/$defs/nonempty_paths"},
|
|
22
|
+
"protected_paths": {"$ref": "#/$defs/nonempty_paths"},
|
|
23
|
+
"allowed_commands": {"type": "array", "maxItems": 0},
|
|
24
|
+
"network": {"const": "deny"},
|
|
25
|
+
"secrets": {"const": "none"},
|
|
26
|
+
"allow_remote_source_processing": {"const": true},
|
|
27
|
+
"timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
|
|
28
|
+
"max_output_bytes": {"type": "integer", "minimum": 1024, "maximum": 4194304},
|
|
29
|
+
"max_cost_usd": {"type": "number", "minimum": 0, "maximum": 1000}
|
|
30
|
+
},
|
|
31
|
+
"$defs": {
|
|
32
|
+
"path": {"type": "string", "pattern": "^(?!/)(?!.*\\\\)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"},
|
|
33
|
+
"input_file": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["path", "sha256", "content"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"path": {"$ref": "#/$defs/path"},
|
|
39
|
+
"sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
|
|
40
|
+
"content": {"type": "string", "maxLength": 262144}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"paths": {"type": "array", "maxItems": 10000, "uniqueItems": true, "items": {"$ref": "#/$defs/path"}},
|
|
44
|
+
"nonempty_paths": {"type": "array", "minItems": 1, "maxItems": 10000, "uniqueItems": true, "items": {"$ref": "#/$defs/path"}}
|
|
45
|
+
}
|
|
46
|
+
}
|