@marinjursic/prc-linux-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.
Files changed (264) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/bin/LICENSE +21 -0
  4. package/bin/README.md +335 -0
  5. package/bin/THIRD_PARTY_NOTICES.md +74 -0
  6. package/bin/adapters/checkov-v3.3.8.yaml +50 -0
  7. package/bin/adapters/gitleaks-v8.30.0.yaml +63 -0
  8. package/bin/adapters/grype-v0.116.1.yaml +58 -0
  9. package/bin/adapters/syft-v1.51.0.yaml +54 -0
  10. package/bin/catalog/assertions/core-repository.yaml +625 -0
  11. package/bin/catalog/assertions/iac.yaml +24 -0
  12. package/bin/catalog/assertions/supply-chain.yaml +45 -0
  13. package/bin/catalog/control-contracts.json +1 -0
  14. package/bin/catalog/control-id-registry.json +110470 -0
  15. package/bin/catalog/objectives/core-repository.yaml +243 -0
  16. package/bin/catalog/objectives/iac.yaml +13 -0
  17. package/bin/catalog/objectives/supply-chain.yaml +13 -0
  18. package/bin/catalog/profiles/api.yaml +12 -0
  19. package/bin/catalog/profiles/core-repository.yaml +49 -0
  20. package/bin/catalog/profiles/iac.yaml +18 -0
  21. package/bin/catalog/profiles/kubernetes.yaml +15 -0
  22. package/bin/catalog/profiles/quick.yaml +27 -0
  23. package/bin/catalog/profiles/supply-chain.yaml +20 -0
  24. package/bin/docs/architecture/adapters.md +380 -0
  25. package/bin/docs/architecture/agent-providers.md +188 -0
  26. package/bin/docs/architecture/applicability.md +80 -0
  27. package/bin/docs/architecture/catalog-integrity.md +85 -0
  28. package/bin/docs/architecture/evidence-and-results.md +154 -0
  29. package/bin/docs/architecture/execution-plans.md +61 -0
  30. package/bin/docs/architecture/product-contract.md +76 -0
  31. package/bin/docs/architecture/publisher-trust.md +68 -0
  32. package/bin/docs/architecture/remediation-contract.md +113 -0
  33. package/bin/docs/architecture/trust-model.md +95 -0
  34. package/bin/docs/assets/hero.svg +37 -0
  35. package/bin/docs/assets/logo.svg +13 -0
  36. package/bin/docs/assets/production-readiness-scan-demo-poster.png +0 -0
  37. package/bin/docs/assets/production-readiness-scan-demo.gif +0 -0
  38. package/bin/docs/assets/production-readiness-scan-demo.mp4 +0 -0
  39. package/bin/docs/assets/social-card.png +0 -0
  40. package/bin/docs/assets/social-card.svg +40 -0
  41. package/bin/docs/checklists/00-readiness-principle.md +17 -0
  42. package/bin/docs/checklists/01-release-foundations.md +91 -0
  43. package/bin/docs/checklists/02-product-risk-architecture.md +136 -0
  44. package/bin/docs/checklists/03-source-build-supply-chain.md +97 -0
  45. package/bin/docs/checklists/04-environments-quality-experience.md +226 -0
  46. package/bin/docs/checklists/05-application-security.md +320 -0
  47. package/bin/docs/checklists/06-data-privacy-performance.md +166 -0
  48. package/bin/docs/checklists/07-reliability-operations.md +355 -0
  49. package/bin/docs/checklists/08-maintenance-vendors-compliance.md +112 -0
  50. package/bin/docs/checklists/09-conditional-modules.md +229 -0
  51. package/bin/docs/checklists/10-evidence-and-decision.md +111 -0
  52. package/bin/docs/engineering/00-overview.md +51 -0
  53. package/bin/docs/engineering/01-governance-and-foundations.md +919 -0
  54. package/bin/docs/engineering/02-product-and-requirements.md +186 -0
  55. package/bin/docs/engineering/03-user-experience-web-and-content.md +1352 -0
  56. package/bin/docs/engineering/04-architecture-and-design.md +387 -0
  57. package/bin/docs/engineering/05-code-quality-and-implementation.md +1103 -0
  58. package/bin/docs/engineering/06-application-services-and-apis.md +476 -0
  59. package/bin/docs/engineering/07-data-and-information-lifecycle.md +1009 -0
  60. package/bin/docs/engineering/08-security-and-cryptography.md +1215 -0
  61. package/bin/docs/engineering/09-privacy-and-data-protection.md +205 -0
  62. package/bin/docs/engineering/10-verification-and-testing.md +841 -0
  63. package/bin/docs/engineering/11-developer-experience-platform-and-delivery.md +1013 -0
  64. package/bin/docs/engineering/12-operations-sre-and-support.md +795 -0
  65. package/bin/docs/engineering/13-documentation-and-knowledge.md +349 -0
  66. package/bin/docs/engineering/14-trust-safety-and-ecosystems.md +330 -0
  67. package/bin/docs/engineering/15-ai-ml-and-ai-assisted-development.md +785 -0
  68. package/bin/docs/engineering/16-specialized-domains-and-release-assurance.md +775 -0
  69. package/bin/docs/engineering/source-manifest.md +479 -0
  70. package/bin/docs/guides/ai-assisted-review.md +61 -0
  71. package/bin/docs/guides/getting-started.md +78 -0
  72. package/bin/docs/index.md +66 -0
  73. package/bin/docs/prompts/evidence-challenge.md +26 -0
  74. package/bin/docs/prompts/full-readiness-review.md +34 -0
  75. package/bin/docs/prompts/release-diff-review.md +31 -0
  76. package/bin/docs/records/evidence-record.md +42 -0
  77. package/bin/docs/records/go-no-go-decision.md +63 -0
  78. package/bin/docs/records/release-assessment.md +124 -0
  79. package/bin/docs/records/risk-exception.md +64 -0
  80. package/bin/docs/references.md +52 -0
  81. package/bin/docs/scanner/ai-control-review.md +208 -0
  82. package/bin/docs/scanner/benchmarks.md +122 -0
  83. package/bin/docs/scanner/cli-contract.md +130 -0
  84. package/bin/docs/scanner/configuration.md +101 -0
  85. package/bin/docs/scanner/control-contracts.md +47 -0
  86. package/bin/docs/scanner/core-repository.md +62 -0
  87. package/bin/docs/scanner/diff-and-invalidation.md +79 -0
  88. package/bin/docs/scanner/doctor.md +71 -0
  89. package/bin/docs/scanner/getting-started.md +355 -0
  90. package/bin/docs/scanner/go-http-timeouts.md +96 -0
  91. package/bin/docs/scanner/infrastructure-policy.md +64 -0
  92. package/bin/docs/scanner/kubernetes-workloads.md +63 -0
  93. package/bin/docs/scanner/mcp-agent-integration.md +138 -0
  94. package/bin/docs/scanner/openapi-contracts.md +75 -0
  95. package/bin/docs/scanner/private-key-armor.md +44 -0
  96. package/bin/docs/scanner/releases.md +160 -0
  97. package/bin/docs/scanner/remediation.md +273 -0
  98. package/bin/docs/scanner/risk-exceptions.md +52 -0
  99. package/bin/docs/scanner/security-walkthrough.md +236 -0
  100. package/bin/docs/scanner/state-and-history.md +113 -0
  101. package/bin/docs/scanner/supply-chain.md +132 -0
  102. package/bin/docs/scanner/test-discovery.md +60 -0
  103. package/bin/docs/stylesheets/extra.css +183 -0
  104. package/bin/fixtures/benchmarks/core-native/suite-comprehensive.yaml +302 -0
  105. package/bin/fixtures/benchmarks/core-native/suite.yaml +59 -0
  106. package/bin/fixtures/benchmarks/core-native/targets/baseline/README.md +3 -0
  107. package/bin/fixtures/benchmarks/core-native/targets/baseline/app.go +1 -0
  108. package/bin/fixtures/benchmarks/core-native/targets/conflict-template/app.js +5 -0
  109. package/bin/fixtures/benchmarks/core-native/targets/container-risky-template/Dockerfile +2 -0
  110. package/bin/fixtures/benchmarks/core-native/targets/container-valid/Dockerfile +2 -0
  111. package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-missing/package.json +5 -0
  112. package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package-lock.json +6 -0
  113. package/bin/fixtures/benchmarks/core-native/targets/dependency-lock-present/package.json +5 -0
  114. package/bin/fixtures/benchmarks/core-native/targets/empty-manifest-template/package.json +1 -0
  115. package/bin/fixtures/benchmarks/core-native/targets/final-newline-template/app.py +1 -0
  116. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/CODEOWNERS +1 -0
  117. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/dependabot.yml +6 -0
  118. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/.github/workflows/validate.yml +15 -0
  119. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CODE_OF_CONDUCT.md +3 -0
  120. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/CONTRIBUTING.md +3 -0
  121. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/LICENSE +1 -0
  122. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/README.md +3 -0
  123. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/SECURITY.md +3 -0
  124. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package-lock.json +6 -0
  125. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/package.json +7 -0
  126. package/bin/fixtures/benchmarks/core-native/targets/foundation-present/tests/example.test.js +3 -0
  127. package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/go.mod +3 -0
  128. package/bin/fixtures/benchmarks/core-native/targets/go-http-server-timeout-risky-template/server.go +18 -0
  129. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/client.go +3 -0
  130. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-malformed-template/go.mod +3 -0
  131. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/client.go +7 -0
  132. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-risky-template/go.mod +3 -0
  133. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/client.go +22 -0
  134. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/go.mod +3 -0
  135. package/bin/fixtures/benchmarks/core-native/targets/go-http-timeout-safe/hazards_test.go +8 -0
  136. package/bin/fixtures/benchmarks/core-native/targets/kubernetes-risky-template/deployment.yaml +27 -0
  137. package/bin/fixtures/benchmarks/core-native/targets/kubernetes-valid/deployment.yaml +26 -0
  138. package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-ids-risky-template/openapi.yaml +17 -0
  139. package/bin/fixtures/benchmarks/core-native/targets/openapi-operation-responses-risky-template/openapi.yaml +11 -0
  140. package/bin/fixtures/benchmarks/core-native/targets/openapi-root-malformed-template/openapi.yaml +5 -0
  141. package/bin/fixtures/benchmarks/core-native/targets/openapi-root-risky-template/openapi.yaml +5 -0
  142. package/bin/fixtures/benchmarks/core-native/targets/openapi-root-valid/openapi.yaml +17 -0
  143. package/bin/fixtures/benchmarks/core-native/targets/package-test-command/app.js +3 -0
  144. package/bin/fixtures/benchmarks/core-native/targets/package-test-command/package.json +7 -0
  145. package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/app.js +3 -0
  146. package/bin/fixtures/benchmarks/core-native/targets/package-test-placeholder/package.json +7 -0
  147. package/bin/fixtures/benchmarks/core-native/targets/private-key-template/deploy.pem +3 -0
  148. package/bin/fixtures/benchmarks/core-native/targets/readme-missing/fixture.txt +1 -0
  149. package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package-lock.json +6 -0
  150. package/bin/fixtures/benchmarks/core-native/targets/runtime-missing/package.json +4 -0
  151. package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/.terraform.lock.hcl +3 -0
  152. package/bin/fixtures/benchmarks/core-native/targets/terraform-locked/main.tf +7 -0
  153. package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/.terraform.lock.hcl +3 -0
  154. package/bin/fixtures/benchmarks/core-native/targets/terraform-unlocked-template/main.tf +7 -0
  155. package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/app.py +2 -0
  156. package/bin/fixtures/benchmarks/core-native/targets/test-declaration-valid/tests/test_app.py +5 -0
  157. package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/app.py +2 -0
  158. package/bin/fixtures/benchmarks/core-native/targets/test-path-without-declaration/tests/test_app.py +1 -0
  159. package/bin/fixtures/benchmarks/core-native/targets/workflow-malformed/.github/workflows/validate.yml +1 -0
  160. package/bin/fixtures/benchmarks/core-native/targets/workflow-no-jobs/.github/workflows/empty.yml +9 -0
  161. package/bin/fixtures/benchmarks/core-native/targets/workflow-risky/.github/workflows/risky.yml +10 -0
  162. package/bin/fixtures/benchmarks/core-native/targets/workflow-valid/.github/workflows/validate.yml +14 -0
  163. package/bin/packs/core-foundation.yaml +25 -0
  164. package/bin/packs/core-native.yaml +59 -0
  165. package/bin/prc +0 -0
  166. package/bin/schemas/adapter-execution-v0.1.schema.json +101 -0
  167. package/bin/schemas/adapter-execution-v0.2.schema.json +128 -0
  168. package/bin/schemas/adapter-execution.schema.json +145 -0
  169. package/bin/schemas/adapter-fixture-report.schema.json +59 -0
  170. package/bin/schemas/adapter-fixture-suite.schema.json +104 -0
  171. package/bin/schemas/adapter-manifest-v0.1.schema.json +55 -0
  172. package/bin/schemas/adapter-manifest-v0.2.schema.json +122 -0
  173. package/bin/schemas/adapter-manifest-v0.3.schema.json +172 -0
  174. package/bin/schemas/adapter-manifest.schema.json +299 -0
  175. package/bin/schemas/adapter-message.schema.json +136 -0
  176. package/bin/schemas/adapter-registry-report.schema.json +13 -0
  177. package/bin/schemas/adapter-registry.schema.json +47 -0
  178. package/bin/schemas/agent-execution-v0.1.schema.json +26 -0
  179. package/bin/schemas/agent-execution.schema.json +26 -0
  180. package/bin/schemas/agent-failure-v0.1.schema.json +102 -0
  181. package/bin/schemas/agent-failure.schema.json +102 -0
  182. package/bin/schemas/agent-output-v0.1.schema.json +36 -0
  183. package/bin/schemas/agent-output.schema.json +36 -0
  184. package/bin/schemas/agent-task-v0.1.schema.json +44 -0
  185. package/bin/schemas/agent-task.schema.json +46 -0
  186. package/bin/schemas/assertion-catalog.schema.json +69 -0
  187. package/bin/schemas/benchmark-report.schema.json +94 -0
  188. package/bin/schemas/benchmark-suite.schema.json +116 -0
  189. package/bin/schemas/catalog-bundle.schema.json +27 -0
  190. package/bin/schemas/catalog-manifest.schema.json +23 -0
  191. package/bin/schemas/checkov-iac-policy-report.schema.json +82 -0
  192. package/bin/schemas/control-contracts.schema.json +44 -0
  193. package/bin/schemas/control-review-output.schema.json +51 -0
  194. package/bin/schemas/doctor.schema.json +53 -0
  195. package/bin/schemas/evidence-v0.1.schema.json +21 -0
  196. package/bin/schemas/evidence.schema.json +21 -0
  197. package/bin/schemas/finding-v0.1.schema.json +70 -0
  198. package/bin/schemas/finding.schema.json +70 -0
  199. package/bin/schemas/fix-contract-v0.1.schema.json +35 -0
  200. package/bin/schemas/fix-contract-v0.2.schema.json +46 -0
  201. package/bin/schemas/fix-contract-v0.3.schema.json +49 -0
  202. package/bin/schemas/fix-contract.schema.json +49 -0
  203. package/bin/schemas/grype-vulnerability-report.schema.json +88 -0
  204. package/bin/schemas/history.schema.json +37 -0
  205. package/bin/schemas/invalidation.schema.json +86 -0
  206. package/bin/schemas/inventory-v0.1.schema.json +42 -0
  207. package/bin/schemas/inventory-v0.2.schema.json +95 -0
  208. package/bin/schemas/inventory-v0.3.schema.json +139 -0
  209. package/bin/schemas/inventory.schema.json +139 -0
  210. package/bin/schemas/objective-catalog.schema.json +62 -0
  211. package/bin/schemas/pack-report.schema.json +16 -0
  212. package/bin/schemas/pack.schema.json +53 -0
  213. package/bin/schemas/plan-v0.1.schema.json +31 -0
  214. package/bin/schemas/plan-v0.2.schema.json +32 -0
  215. package/bin/schemas/plan-v0.3.schema.json +44 -0
  216. package/bin/schemas/plan-v0.4.schema.json +48 -0
  217. package/bin/schemas/plan-v0.5.schema.json +49 -0
  218. package/bin/schemas/plan-v0.6.schema.json +137 -0
  219. package/bin/schemas/plan.schema.json +137 -0
  220. package/bin/schemas/profile.schema.json +42 -0
  221. package/bin/schemas/project-config.schema.json +128 -0
  222. package/bin/schemas/release-manifest-v0.1.schema.json +86 -0
  223. package/bin/schemas/release-manifest-v0.2.schema.json +146 -0
  224. package/bin/schemas/release-manifest-v0.3.schema.json +146 -0
  225. package/bin/schemas/release-manifest.schema.json +6 -0
  226. package/bin/schemas/remediation-candidate-v0.1.schema.json +51 -0
  227. package/bin/schemas/remediation-candidate-v0.2.schema.json +51 -0
  228. package/bin/schemas/remediation-candidate-v0.3.schema.json +51 -0
  229. package/bin/schemas/remediation-candidate-v0.4.schema.json +69 -0
  230. package/bin/schemas/remediation-candidate.schema.json +69 -0
  231. package/bin/schemas/remediation-run-v0.1.schema.json +69 -0
  232. package/bin/schemas/remediation-run-v0.2.schema.json +78 -0
  233. package/bin/schemas/remediation-run-v0.3.schema.json +86 -0
  234. package/bin/schemas/remediation-run-v0.4.schema.json +86 -0
  235. package/bin/schemas/remediation-run-v0.5.schema.json +131 -0
  236. package/bin/schemas/remediation-run-v0.6.schema.json +143 -0
  237. package/bin/schemas/remediation-run-v0.7.schema.json +160 -0
  238. package/bin/schemas/remediation-run-v0.8.schema.json +161 -0
  239. package/bin/schemas/remediation-run.schema.json +161 -0
  240. package/bin/schemas/risk-exception-verification.schema.json +17 -0
  241. package/bin/schemas/risk-exception.schema.json +137 -0
  242. package/bin/schemas/run-result-v0.1.schema.json +54 -0
  243. package/bin/schemas/run-result-v0.10.schema.json +64 -0
  244. package/bin/schemas/run-result-v0.11.schema.json +146 -0
  245. package/bin/schemas/run-result-v0.2.schema.json +60 -0
  246. package/bin/schemas/run-result-v0.3.schema.json +52 -0
  247. package/bin/schemas/run-result-v0.4.schema.json +52 -0
  248. package/bin/schemas/run-result-v0.5.schema.json +60 -0
  249. package/bin/schemas/run-result-v0.6.schema.json +61 -0
  250. package/bin/schemas/run-result-v0.7.schema.json +61 -0
  251. package/bin/schemas/run-result-v0.8.schema.json +61 -0
  252. package/bin/schemas/run-result-v0.9.schema.json +77 -0
  253. package/bin/schemas/run-result.schema.json +165 -0
  254. package/bin/schemas/signature-verification.schema.json +22 -0
  255. package/bin/schemas/signature.schema.json +18 -0
  256. package/bin/schemas/state-check-v0.1.schema.json +27 -0
  257. package/bin/schemas/state-check.schema.json +28 -0
  258. package/bin/schemas/trust-store.schema.json +50 -0
  259. package/bin/schemas/verification-execution-v0.1.schema.json +105 -0
  260. package/bin/schemas/verification-execution.schema.json +105 -0
  261. package/bin/schemas/version-v0.1.schema.json +27 -0
  262. package/bin/schemas/version.schema.json +27 -0
  263. package/manifest.json +9 -0
  264. package/package.json +28 -0
@@ -0,0 +1,101 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-execution-v0.1.schema.json",
4
+ "title": "Bound Production Readiness Adapter Execution v0.1 (legacy)",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "execution_id", "adapter_run_id", "adapter_id", "manifest_sha256", "image", "subject", "started_at", "completed_at", "duration_ms", "diagnostics_sha256", "diagnostics_bytes", "transcript"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-execution/v0.1"},
10
+ "execution_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
11
+ "adapter_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "adapter_id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
13
+ "manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
14
+ "image": {"type": "string", "pattern": "^.+@sha256:[0-9a-f]{64}$"},
15
+ "subject": {"$ref": "#/$defs/subject"},
16
+ "started_at": {"type": "string", "format": "date-time"},
17
+ "completed_at": {"type": "string", "format": "date-time"},
18
+ "duration_ms": {"type": "integer", "minimum": 0},
19
+ "diagnostics_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
20
+ "diagnostics_bytes": {"type": "integer", "minimum": 0},
21
+ "transcript": {"$ref": "#/$defs/transcript"}
22
+ },
23
+ "$defs": {
24
+ "subject": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["target_name", "inventory_digest"],
28
+ "properties": {
29
+ "target_name": {"type": "string", "minLength": 1},
30
+ "target_commit": {"type": "string", "pattern": "^[0-9a-f]{40,64}$"},
31
+ "inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
32
+ }
33
+ },
34
+ "location": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["path"],
38
+ "properties": {
39
+ "path": {"type": "string", "minLength": 1},
40
+ "line": {"type": "integer", "minimum": 0},
41
+ "column": {"type": "integer", "minimum": 0}
42
+ }
43
+ },
44
+ "observation": {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "required": ["id", "kind", "outcome", "summary", "locations"],
48
+ "properties": {
49
+ "id": {"type": "string", "minLength": 1},
50
+ "kind": {"type": "string", "minLength": 1},
51
+ "outcome": {"enum": ["found", "not_found", "value", "unsupported"]},
52
+ "summary": {"type": "string", "minLength": 1},
53
+ "locations": {"type": "array", "items": {"$ref": "#/$defs/location"}},
54
+ "data": {"type": "object"}
55
+ }
56
+ },
57
+ "artifact": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": ["id", "media_type", "digest", "size"],
61
+ "properties": {
62
+ "id": {"type": "string", "minLength": 1},
63
+ "media_type": {"type": "string", "minLength": 1},
64
+ "digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
65
+ "size": {"type": "integer", "minimum": 0},
66
+ "path": {"type": "string", "minLength": 1}
67
+ }
68
+ },
69
+ "log": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": ["level", "message"],
73
+ "properties": {
74
+ "level": {"enum": ["debug", "info", "warning", "error"]},
75
+ "message": {"type": "string", "minLength": 1}
76
+ }
77
+ },
78
+ "summary": {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": ["status", "counts"],
82
+ "properties": {
83
+ "status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
84
+ "counts": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 0}},
85
+ "reason": {"type": "string", "minLength": 1}
86
+ },
87
+ "allOf": [{"if": {"properties": {"status": {"not": {"const": "completed"}}}}, "then": {"required": ["reason"]}}]
88
+ },
89
+ "transcript": {
90
+ "type": "object",
91
+ "additionalProperties": false,
92
+ "required": ["logs", "observations", "artifacts", "summary"],
93
+ "properties": {
94
+ "logs": {"type": "array", "items": {"$ref": "#/$defs/log"}},
95
+ "observations": {"type": "array", "items": {"$ref": "#/$defs/observation"}},
96
+ "artifacts": {"type": "array", "items": {"$ref": "#/$defs/artifact"}},
97
+ "summary": {"$ref": "#/$defs/summary"}
98
+ }
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-execution-v0.2.schema.json",
4
+ "title": "Bound Production Readiness Adapter Execution v0.2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "execution_id", "adapter_run_id", "adapter_id", "manifest_sha256", "image", "resolution", "subject", "started_at", "completed_at", "duration_ms", "diagnostics_sha256", "diagnostics_bytes", "transcript"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-execution/v0.2"},
10
+ "execution_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
11
+ "adapter_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "adapter_id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
13
+ "manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
14
+ "image": {"type": "string", "pattern": "^.+@sha256:[0-9a-f]{64}$"},
15
+ "resolution": {"$ref": "#/$defs/resolution"},
16
+ "subject": {"$ref": "#/$defs/subject"},
17
+ "started_at": {"type": "string", "format": "date-time"},
18
+ "completed_at": {"type": "string", "format": "date-time"},
19
+ "duration_ms": {"type": "integer", "minimum": 0},
20
+ "diagnostics_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
21
+ "diagnostics_bytes": {"type": "integer", "minimum": 0},
22
+ "transcript": {"$ref": "#/$defs/transcript"}
23
+ },
24
+ "$defs": {
25
+ "resolution": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": ["source", "publisher_id", "trust"],
29
+ "properties": {
30
+ "source": {"enum": ["explicit-local", "registry"]},
31
+ "publisher_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
32
+ "trust": {"enum": ["local-explicit", "first-party-sandboxed", "verified-community", "unverified-community", "local"]},
33
+ "registry_id": {"type": "string", "pattern": "^prc\\.adapter-registry\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
34
+ "registry_revision": {"type": "integer", "minimum": 1},
35
+ "registry_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
36
+ },
37
+ "allOf": [
38
+ {
39
+ "if": {"properties": {"source": {"const": "registry"}}},
40
+ "then": {
41
+ "required": ["registry_id", "registry_revision", "registry_digest"],
42
+ "properties": {"trust": {"enum": ["first-party-sandboxed", "verified-community", "unverified-community", "local"]}}
43
+ },
44
+ "else": {
45
+ "properties": {"trust": {"const": "local-explicit"}},
46
+ "not": {"anyOf": [{"required": ["registry_id"]}, {"required": ["registry_revision"]}, {"required": ["registry_digest"]}]}
47
+ }
48
+ }
49
+ ]
50
+ },
51
+ "subject": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": ["target_name", "inventory_digest"],
55
+ "properties": {
56
+ "target_name": {"type": "string", "minLength": 1},
57
+ "target_commit": {"type": "string", "pattern": "^[0-9a-f]{40,64}$"},
58
+ "inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
59
+ }
60
+ },
61
+ "location": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": ["path"],
65
+ "properties": {
66
+ "path": {"type": "string", "minLength": 1},
67
+ "line": {"type": "integer", "minimum": 0},
68
+ "column": {"type": "integer", "minimum": 0}
69
+ }
70
+ },
71
+ "observation": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": ["id", "kind", "outcome", "summary", "locations"],
75
+ "properties": {
76
+ "id": {"type": "string", "minLength": 1},
77
+ "kind": {"type": "string", "minLength": 1},
78
+ "outcome": {"enum": ["found", "not_found", "value", "unsupported"]},
79
+ "summary": {"type": "string", "minLength": 1},
80
+ "locations": {"type": "array", "items": {"$ref": "#/$defs/location"}},
81
+ "data": {"type": "object"}
82
+ }
83
+ },
84
+ "artifact": {
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "required": ["id", "media_type", "digest", "size"],
88
+ "properties": {
89
+ "id": {"type": "string", "minLength": 1},
90
+ "media_type": {"type": "string", "minLength": 1},
91
+ "digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
92
+ "size": {"type": "integer", "minimum": 0},
93
+ "path": {"type": "string", "minLength": 1}
94
+ }
95
+ },
96
+ "log": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": ["level", "message"],
100
+ "properties": {
101
+ "level": {"enum": ["debug", "info", "warning", "error"]},
102
+ "message": {"type": "string", "minLength": 1}
103
+ }
104
+ },
105
+ "summary": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "required": ["status", "counts"],
109
+ "properties": {
110
+ "status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
111
+ "counts": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 0}},
112
+ "reason": {"type": "string", "minLength": 1}
113
+ },
114
+ "allOf": [{"if": {"properties": {"status": {"not": {"const": "completed"}}}}, "then": {"required": ["reason"]}}]
115
+ },
116
+ "transcript": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": ["logs", "observations", "artifacts", "summary"],
120
+ "properties": {
121
+ "logs": {"type": "array", "items": {"$ref": "#/$defs/log"}},
122
+ "observations": {"type": "array", "items": {"$ref": "#/$defs/observation"}},
123
+ "artifacts": {"type": "array", "items": {"$ref": "#/$defs/artifact"}},
124
+ "summary": {"$ref": "#/$defs/summary"}
125
+ }
126
+ }
127
+ }
128
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-execution.schema.json",
4
+ "title": "Bound Production Readiness Adapter Execution v0.3",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "execution_id", "adapter_run_id", "adapter_id", "manifest_sha256", "image", "resolution", "data_inputs", "subject", "started_at", "completed_at", "duration_ms", "diagnostics_sha256", "diagnostics_bytes", "transcript"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-execution/v0.3"},
10
+ "execution_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
11
+ "adapter_run_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "adapter_id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
13
+ "manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
14
+ "image": {"type": "string", "pattern": "^.+@sha256:[0-9a-f]{64}$"},
15
+ "resolution": {"$ref": "#/$defs/resolution"},
16
+ "data_inputs": {
17
+ "type": "array",
18
+ "maxItems": 16,
19
+ "items": {"$ref": "#/$defs/data_input"}
20
+ },
21
+ "subject": {"$ref": "#/$defs/subject"},
22
+ "started_at": {"type": "string", "format": "date-time"},
23
+ "completed_at": {"type": "string", "format": "date-time"},
24
+ "duration_ms": {"type": "integer", "minimum": 0},
25
+ "diagnostics_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
26
+ "diagnostics_bytes": {"type": "integer", "minimum": 0},
27
+ "transcript": {"$ref": "#/$defs/transcript"}
28
+ },
29
+ "$defs": {
30
+ "data_input": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["name", "destination", "sha256", "files", "bytes"],
34
+ "properties": {
35
+ "name": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
36
+ "destination": {"type": "string", "pattern": "^/prc-inputs/[a-z0-9][a-z0-9.-]{0,127}$"},
37
+ "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
38
+ "files": {"type": "integer", "minimum": 1},
39
+ "bytes": {"type": "integer", "minimum": 1}
40
+ }
41
+ },
42
+ "resolution": {
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": ["source", "publisher_id", "trust"],
46
+ "properties": {
47
+ "source": {"enum": ["explicit-local", "registry"]},
48
+ "publisher_id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
49
+ "trust": {"enum": ["local-explicit", "first-party-sandboxed", "verified-community", "unverified-community", "local"]},
50
+ "registry_id": {"type": "string", "pattern": "^prc\\.adapter-registry\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
51
+ "registry_revision": {"type": "integer", "minimum": 1},
52
+ "registry_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
53
+ },
54
+ "allOf": [
55
+ {
56
+ "if": {"properties": {"source": {"const": "registry"}}},
57
+ "then": {
58
+ "required": ["registry_id", "registry_revision", "registry_digest"],
59
+ "properties": {"trust": {"enum": ["first-party-sandboxed", "verified-community", "unverified-community", "local"]}}
60
+ },
61
+ "else": {
62
+ "properties": {"trust": {"const": "local-explicit"}},
63
+ "not": {"anyOf": [{"required": ["registry_id"]}, {"required": ["registry_revision"]}, {"required": ["registry_digest"]}]}
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ "subject": {
69
+ "type": "object",
70
+ "additionalProperties": false,
71
+ "required": ["target_name", "inventory_digest"],
72
+ "properties": {
73
+ "target_name": {"type": "string", "minLength": 1},
74
+ "target_commit": {"type": "string", "pattern": "^[0-9a-f]{40,64}$"},
75
+ "inventory_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
76
+ }
77
+ },
78
+ "location": {
79
+ "type": "object",
80
+ "additionalProperties": false,
81
+ "required": ["path"],
82
+ "properties": {
83
+ "path": {"type": "string", "minLength": 1},
84
+ "line": {"type": "integer", "minimum": 0},
85
+ "column": {"type": "integer", "minimum": 0}
86
+ }
87
+ },
88
+ "observation": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": ["id", "kind", "outcome", "summary", "locations"],
92
+ "properties": {
93
+ "id": {"type": "string", "minLength": 1},
94
+ "kind": {"type": "string", "minLength": 1},
95
+ "outcome": {"enum": ["found", "not_found", "value", "unsupported"]},
96
+ "summary": {"type": "string", "minLength": 1},
97
+ "locations": {"type": "array", "items": {"$ref": "#/$defs/location"}},
98
+ "data": {"type": "object"}
99
+ }
100
+ },
101
+ "artifact": {
102
+ "type": "object",
103
+ "additionalProperties": false,
104
+ "required": ["id", "media_type", "digest", "size"],
105
+ "properties": {
106
+ "id": {"type": "string", "minLength": 1},
107
+ "media_type": {"type": "string", "minLength": 1},
108
+ "digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
109
+ "size": {"type": "integer", "minimum": 0},
110
+ "path": {"type": "string", "minLength": 1}
111
+ }
112
+ },
113
+ "log": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": ["level", "message"],
117
+ "properties": {
118
+ "level": {"enum": ["debug", "info", "warning", "error"]},
119
+ "message": {"type": "string", "minLength": 1}
120
+ }
121
+ },
122
+ "summary": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": ["status", "counts"],
126
+ "properties": {
127
+ "status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
128
+ "counts": {"type": "object", "additionalProperties": {"type": "integer", "minimum": 0}},
129
+ "reason": {"type": "string", "minLength": 1}
130
+ },
131
+ "allOf": [{"if": {"properties": {"status": {"not": {"const": "completed"}}}}, "then": {"required": ["reason"]}}]
132
+ },
133
+ "transcript": {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": ["logs", "observations", "artifacts", "summary"],
137
+ "properties": {
138
+ "logs": {"type": "array", "items": {"$ref": "#/$defs/log"}},
139
+ "observations": {"type": "array", "items": {"$ref": "#/$defs/observation"}},
140
+ "artifacts": {"type": "array", "items": {"$ref": "#/$defs/artifact"}},
141
+ "summary": {"$ref": "#/$defs/summary"}
142
+ }
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-fixture-report.schema.json",
4
+ "title": "Production Readiness Adapter Fixture Report v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "suite_id", "suite_digest", "corpus_digest", "adapter_id", "manifest_sha256", "summary", "cases", "quality_failures", "passed"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-fixture-report/v0.1"},
10
+ "suite_id": {"type": "string", "pattern": "^prc\\.adapter-fixture\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
11
+ "suite_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "corpus_digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
13
+ "adapter_id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
14
+ "manifest_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
15
+ "summary": {"$ref": "#/$defs/summary"},
16
+ "cases": {"type": "array", "minItems": 1, "maxItems": 100, "items": {"$ref": "#/$defs/case"}},
17
+ "quality_failures": {"type": "array", "items": {"type": "string", "minLength": 1}},
18
+ "passed": {"type": "boolean"}
19
+ },
20
+ "$defs": {
21
+ "summary": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["cases", "matched", "mismatched", "deterministic_cases"],
25
+ "properties": {
26
+ "cases": {"type": "integer", "minimum": 1},
27
+ "matched": {"type": "integer", "minimum": 0},
28
+ "mismatched": {"type": "integer", "minimum": 0},
29
+ "deterministic_cases": {"type": "integer", "minimum": 0}
30
+ }
31
+ },
32
+ "actual": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "required": ["disposition", "observations"],
36
+ "properties": {
37
+ "disposition": {"enum": ["accepted", "protocol_rejected", "contract_rejected"]},
38
+ "summary_status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
39
+ "error_code": {"enum": ["resource_limit", "schema_violation", "malformed_output", "sequence_violation", "protocol_violation", "undeclared_observation_kind", "contract_violation"]},
40
+ "error": {"type": "string", "minLength": 1},
41
+ "observations": {"type": "array", "maxItems": 10000, "items": {"$ref": "adapter-fixture-suite.schema.json#/$defs/observation"}}
42
+ }
43
+ },
44
+ "case": {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "required": ["id", "output", "output_sha256", "expected", "actual", "deterministic", "passed"],
48
+ "properties": {
49
+ "id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
50
+ "output": {"$ref": "adapter-fixture-suite.schema.json#/$defs/relative_jsonl"},
51
+ "output_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
52
+ "expected": {"$ref": "adapter-fixture-suite.schema.json#/$defs/expected"},
53
+ "actual": {"$ref": "#/$defs/actual"},
54
+ "deterministic": {"type": "boolean"},
55
+ "passed": {"type": "boolean"}
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-fixture-suite.schema.json",
4
+ "title": "Production Readiness Adapter Fixture Suite v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "id", "title", "manifest", "cases"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-fixture-suite/v0.1"},
10
+ "id": {"type": "string", "pattern": "^prc\\.adapter-fixture\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
11
+ "title": {"type": "string", "minLength": 1},
12
+ "manifest": {"$ref": "#/$defs/manifest"},
13
+ "cases": {
14
+ "type": "array",
15
+ "minItems": 1,
16
+ "maxItems": 100,
17
+ "items": {"$ref": "#/$defs/case"}
18
+ }
19
+ },
20
+ "$defs": {
21
+ "relative_yaml": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*\\.yaml$",
24
+ "not": {"pattern": "(^|/)\\.\\.?(/|$)"}
25
+ },
26
+ "relative_jsonl": {
27
+ "type": "string",
28
+ "pattern": "^[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*\\.jsonl$",
29
+ "not": {"pattern": "(^|/)\\.\\.?(/|$)"}
30
+ },
31
+ "manifest": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["path", "sha256"],
35
+ "properties": {
36
+ "path": {"$ref": "#/$defs/relative_yaml"},
37
+ "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
38
+ }
39
+ },
40
+ "limits": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "minProperties": 1,
44
+ "properties": {
45
+ "max_line_bytes": {"type": "integer", "minimum": 1},
46
+ "max_messages": {"type": "integer", "minimum": 1},
47
+ "max_stdout_bytes": {"type": "integer", "minimum": 1}
48
+ }
49
+ },
50
+ "observation": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["id", "kind", "outcome"],
54
+ "properties": {
55
+ "id": {"type": "string", "minLength": 1},
56
+ "kind": {"type": "string", "minLength": 1},
57
+ "outcome": {"enum": ["found", "not_found", "value", "unsupported"]}
58
+ }
59
+ },
60
+ "expected": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": ["disposition"],
64
+ "properties": {
65
+ "disposition": {"enum": ["accepted", "protocol_rejected", "contract_rejected"]},
66
+ "summary_status": {"enum": ["completed", "partial", "unsupported", "configuration_error", "execution_error", "timeout", "parse_error"]},
67
+ "error_code": {"enum": ["resource_limit", "schema_violation", "malformed_output", "sequence_violation", "protocol_violation", "undeclared_observation_kind", "contract_violation"]},
68
+ "observations": {"type": "array", "maxItems": 10000, "items": {"$ref": "#/$defs/observation"}}
69
+ },
70
+ "allOf": [
71
+ {
72
+ "if": {"properties": {"disposition": {"const": "accepted"}}, "required": ["disposition"]},
73
+ "then": {"required": ["summary_status"], "not": {"required": ["error_code"]}}
74
+ },
75
+ {
76
+ "if": {"properties": {"disposition": {"const": "protocol_rejected"}}, "required": ["disposition"]},
77
+ "then": {
78
+ "required": ["error_code"],
79
+ "not": {"anyOf": [{"required": ["summary_status"]}, {"required": ["observations"]}]}
80
+ }
81
+ },
82
+ {
83
+ "if": {"properties": {"disposition": {"const": "contract_rejected"}}, "required": ["disposition"]},
84
+ "then": {
85
+ "required": ["error_code", "observations"],
86
+ "properties": {"observations": {"minItems": 1}},
87
+ "not": {"required": ["summary_status"]}
88
+ }
89
+ }
90
+ ]
91
+ },
92
+ "case": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "required": ["id", "output", "expected"],
96
+ "properties": {
97
+ "id": {"type": "string", "pattern": "^[a-z0-9][a-z0-9.-]{0,127}$"},
98
+ "output": {"$ref": "#/$defs/relative_jsonl"},
99
+ "limits": {"$ref": "#/$defs/limits"},
100
+ "expected": {"$ref": "#/$defs/expected"}
101
+ }
102
+ }
103
+ }
104
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/adapter-manifest-v0.1.schema.json",
4
+ "title": "Production Readiness Adapter Manifest v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "id", "title", "trust", "runner", "image", "command", "capabilities", "resources"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.adapter-manifest/v0.1"},
10
+ "id": {"type": "string", "pattern": "^prc\\.adapter\\.[a-z0-9.-]+@[0-9]+\\.[0-9]+$"},
11
+ "title": {"type": "string", "minLength": 1},
12
+ "trust": {"enum": ["first-party-sandboxed", "verified-community", "unverified-community", "local"]},
13
+ "runner": {"const": "oci"},
14
+ "image": {
15
+ "type": "string",
16
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]*@sha256:[0-9a-f]{64}$"
17
+ },
18
+ "command": {
19
+ "type": "array",
20
+ "minItems": 1,
21
+ "maxItems": 128,
22
+ "items": {"type": "string"}
23
+ },
24
+ "capabilities": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["read_workspace", "write_scratch", "network", "network_hosts", "secret_handles", "child_processes"],
28
+ "properties": {
29
+ "read_workspace": {"const": true},
30
+ "write_scratch": {"type": "boolean"},
31
+ "network": {"const": "deny"},
32
+ "network_hosts": {"type": "array", "maxItems": 0},
33
+ "secret_handles": {"type": "array", "maxItems": 0},
34
+ "child_processes": {"const": false}
35
+ }
36
+ },
37
+ "resources": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["timeout_seconds", "memory_mb", "cpus", "pids", "tmpfs_mb", "max_line_bytes", "max_messages", "max_stdin_bytes", "max_stdout_bytes", "max_stderr_bytes"],
41
+ "properties": {
42
+ "timeout_seconds": {"type": "integer", "minimum": 1, "maximum": 3600},
43
+ "memory_mb": {"type": "integer", "minimum": 32, "maximum": 32768},
44
+ "cpus": {"type": "number", "exclusiveMinimum": 0, "maximum": 32},
45
+ "pids": {"type": "integer", "minimum": 1, "maximum": 4096},
46
+ "tmpfs_mb": {"type": "integer", "minimum": 1, "maximum": 4096},
47
+ "max_line_bytes": {"type": "integer", "minimum": 1, "maximum": 4194304},
48
+ "max_messages": {"type": "integer", "minimum": 1, "maximum": 1000000},
49
+ "max_stdin_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216},
50
+ "max_stdout_bytes": {"type": "integer", "minimum": 1, "maximum": 268435456},
51
+ "max_stderr_bytes": {"type": "integer", "minimum": 1, "maximum": 16777216}
52
+ }
53
+ }
54
+ }
55
+ }