@marinjursic/prc-linux-arm64 0.1.0 → 0.2.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 (98) hide show
  1. package/DISCLOSURE +21 -0
  2. package/README.md +5 -1
  3. package/bin/catalog/assertions/core-repository.yaml +28 -28
  4. package/bin/catalog/control-check-bindings.json.gz +0 -0
  5. package/bin/catalog/control-check-programs.json.gz +0 -0
  6. package/bin/catalog/control-contracts.json.gz +0 -0
  7. package/bin/catalog/control-id-registry.json.gz +0 -0
  8. package/bin/fixtures/benchmarks/core-native/suite-comprehensive.yaml +10 -1
  9. package/bin/fixtures/benchmarks/core-native/suite.yaml +13 -2
  10. package/bin/packs/core-foundation.yaml +4 -4
  11. package/bin/packs/core-native.yaml +10 -10
  12. package/bin/prc +0 -0
  13. package/bin/schemas/adapter-execution-v0.3.schema.json +145 -0
  14. package/bin/schemas/authoritative-evidence-bundle.schema.json +38 -0
  15. package/bin/schemas/authoritative-evidence-set.schema.json +38 -0
  16. package/bin/schemas/authoritative-evidence-verification.schema.json +54 -0
  17. package/bin/schemas/automatic-coverage.schema.json +49 -0
  18. package/bin/schemas/control-check-bindings.schema.json +119 -0
  19. package/bin/schemas/control-check-evidence-v0.1.schema.json +244 -0
  20. package/bin/schemas/control-check-evidence.schema.json +244 -0
  21. package/bin/schemas/control-check-program-catalog.schema.json +160 -0
  22. package/bin/schemas/control-check-program-definitions.schema.json +139 -0
  23. package/bin/schemas/control-check-program.schema.json +298 -0
  24. package/bin/schemas/control-classification-final.schema.json +64 -0
  25. package/bin/schemas/control-classification-review.schema.json +161 -0
  26. package/bin/schemas/control-classification-skeptic-review.schema.json +96 -0
  27. package/bin/schemas/control-classification-strength-review.schema.json +90 -0
  28. package/bin/schemas/control-contracts.schema.json +101 -12
  29. package/bin/schemas/control-review-output-v0.2.schema.json +66 -0
  30. package/bin/schemas/control-review-output.schema.json +22 -3
  31. package/bin/schemas/evidence-requirements.schema.json +144 -0
  32. package/bin/schemas/evidence-set-verification.schema.json +65 -0
  33. package/bin/schemas/provider-capabilities.schema.json +26 -0
  34. package/bin/schemas/run-result-v0.10.schema.json +5 -5
  35. package/bin/schemas/run-result-v0.11.schema.json +5 -5
  36. package/bin/schemas/run-result-v0.12.schema.json +270 -0
  37. package/bin/schemas/run-result.schema.json +166 -16
  38. package/bin/schemas/signature-verification.schema.json +8 -1
  39. package/bin/schemas/signature.schema.json +8 -1
  40. package/bin/schemas/trust-store.schema.json +8 -1
  41. package/manifest.json +1144 -5
  42. package/package.json +8 -3
  43. package/bin/LICENSE +0 -21
  44. package/bin/README.md +0 -335
  45. package/bin/catalog/control-contracts.json +0 -1
  46. package/bin/catalog/control-id-registry.json +0 -110470
  47. package/bin/docs/architecture/adapters.md +0 -380
  48. package/bin/docs/architecture/agent-providers.md +0 -188
  49. package/bin/docs/architecture/applicability.md +0 -80
  50. package/bin/docs/architecture/catalog-integrity.md +0 -85
  51. package/bin/docs/architecture/evidence-and-results.md +0 -154
  52. package/bin/docs/architecture/execution-plans.md +0 -61
  53. package/bin/docs/architecture/product-contract.md +0 -76
  54. package/bin/docs/architecture/publisher-trust.md +0 -68
  55. package/bin/docs/architecture/remediation-contract.md +0 -113
  56. package/bin/docs/architecture/trust-model.md +0 -95
  57. package/bin/docs/assets/hero.svg +0 -37
  58. package/bin/docs/assets/logo.svg +0 -13
  59. package/bin/docs/assets/production-readiness-scan-demo-poster.png +0 -0
  60. package/bin/docs/assets/production-readiness-scan-demo.gif +0 -0
  61. package/bin/docs/assets/production-readiness-scan-demo.mp4 +0 -0
  62. package/bin/docs/assets/social-card.png +0 -0
  63. package/bin/docs/assets/social-card.svg +0 -40
  64. package/bin/docs/engineering/source-manifest.md +0 -479
  65. package/bin/docs/guides/ai-assisted-review.md +0 -61
  66. package/bin/docs/guides/getting-started.md +0 -78
  67. package/bin/docs/index.md +0 -66
  68. package/bin/docs/prompts/evidence-challenge.md +0 -26
  69. package/bin/docs/prompts/full-readiness-review.md +0 -34
  70. package/bin/docs/prompts/release-diff-review.md +0 -31
  71. package/bin/docs/records/evidence-record.md +0 -42
  72. package/bin/docs/records/go-no-go-decision.md +0 -63
  73. package/bin/docs/records/release-assessment.md +0 -124
  74. package/bin/docs/records/risk-exception.md +0 -64
  75. package/bin/docs/references.md +0 -52
  76. package/bin/docs/scanner/ai-control-review.md +0 -208
  77. package/bin/docs/scanner/benchmarks.md +0 -122
  78. package/bin/docs/scanner/cli-contract.md +0 -130
  79. package/bin/docs/scanner/configuration.md +0 -101
  80. package/bin/docs/scanner/control-contracts.md +0 -47
  81. package/bin/docs/scanner/core-repository.md +0 -62
  82. package/bin/docs/scanner/diff-and-invalidation.md +0 -79
  83. package/bin/docs/scanner/doctor.md +0 -71
  84. package/bin/docs/scanner/getting-started.md +0 -355
  85. package/bin/docs/scanner/go-http-timeouts.md +0 -96
  86. package/bin/docs/scanner/infrastructure-policy.md +0 -64
  87. package/bin/docs/scanner/kubernetes-workloads.md +0 -63
  88. package/bin/docs/scanner/mcp-agent-integration.md +0 -138
  89. package/bin/docs/scanner/openapi-contracts.md +0 -75
  90. package/bin/docs/scanner/private-key-armor.md +0 -44
  91. package/bin/docs/scanner/releases.md +0 -160
  92. package/bin/docs/scanner/remediation.md +0 -273
  93. package/bin/docs/scanner/risk-exceptions.md +0 -52
  94. package/bin/docs/scanner/security-walkthrough.md +0 -236
  95. package/bin/docs/scanner/state-and-history.md +0 -113
  96. package/bin/docs/scanner/supply-chain.md +0 -132
  97. package/bin/docs/scanner/test-discovery.md +0 -60
  98. package/bin/docs/stylesheets/extra.css +0 -183
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-classification-final.schema.json",
4
+ "title": "Production Readiness Final Control Classifications v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "packet_id", "methodology_sha256", "registry_version", "registry_sha256", "source_path", "control_count", "controls"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.control-classification-final/v0.1"},
10
+ "packet_id": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*-part-[0-9]{3}$"},
11
+ "methodology_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "registry_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
13
+ "registry_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
14
+ "source_path": {"type": "string", "minLength": 1, "maxLength": 1000},
15
+ "control_count": {"type": "integer", "minimum": 1, "maximum": 250},
16
+ "controls": {
17
+ "type": "array",
18
+ "minItems": 1,
19
+ "maxItems": 250,
20
+ "items": {"$ref": "#/$defs/classification"}
21
+ }
22
+ },
23
+ "$defs": {
24
+ "clause": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["statement", "checker_family", "evidence_authority"],
28
+ "properties": {
29
+ "statement": {"type": "string", "minLength": 1, "maxLength": 2000},
30
+ "checker_family": {
31
+ "enum": ["inventory_fact", "structured_document", "package_metadata", "ci_policy", "container_iac", "source_ast", "artifact_integrity", "analysis_adapter", "execution_evidence", "environment_evidence", "structured_record"]
32
+ },
33
+ "evidence_authority": {
34
+ "enum": ["repository", "artifact", "executed", "environment", "external_registry", "structured_record"]
35
+ }
36
+ }
37
+ },
38
+ "classification": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["control_id", "revision", "semantic_sha256", "classification", "route", "reason", "deterministic_clauses", "nondeterministic_reason_codes", "decision_basis", "skeptical_verdict", "counterexample_analysis"],
42
+ "properties": {
43
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
44
+ "revision": {"type": "integer", "minimum": 1},
45
+ "semantic_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
46
+ "classification": {"enum": ["deterministic", "nondeterministic"]},
47
+ "route": {
48
+ "enum": ["local_static", "artifact_verification", "bounded_execution", "external_readonly_query", "structured_record_validation", "deterministic_composite", "contextual_judgment", "accountable_human_decision", "specialist_or_legal_judgment", "empirical_protocol_undefined", "contract_incomplete", "mixed", "unbounded_claim"]
49
+ },
50
+ "reason": {"type": "string", "minLength": 20, "maxLength": 4000},
51
+ "deterministic_clauses": {"type": "array", "maxItems": 50, "items": {"$ref": "#/$defs/clause"}},
52
+ "nondeterministic_reason_codes": {
53
+ "type": "array",
54
+ "maxItems": 9,
55
+ "uniqueItems": true,
56
+ "items": {"enum": ["contextual_judgment", "human_accountability", "legal_or_specialist_authority", "undefined_protocol", "undefined_scope", "undefined_threshold", "mixed_with_nondeterministic_child", "unbounded_scope", "classification_not_approved"]}
57
+ },
58
+ "decision_basis": {"enum": ["primary_nondeterministic", "two_stage_confirmed", "skeptically_rejected", "strength_audit_confirmed", "strength_audit_reclassified"]},
59
+ "skeptical_verdict": {"type": ["string", "null"], "enum": [null, "confirmed_deterministic", "rejected_nondeterministic"]},
60
+ "counterexample_analysis": {"type": ["string", "null"], "minLength": 20, "maxLength": 4000}
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-classification-review.schema.json",
4
+ "title": "Production Readiness Control Classification Review v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "packet_id", "methodology_sha256", "registry_version", "registry_sha256", "source_path", "controls"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.control-classification-review/v0.1"},
10
+ "packet_id": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*-part-[0-9]{3}$"},
11
+ "methodology_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
12
+ "registry_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
13
+ "registry_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
14
+ "source_path": {"type": "string", "minLength": 1, "maxLength": 1000},
15
+ "controls": {
16
+ "type": "array",
17
+ "minItems": 1,
18
+ "maxItems": 250,
19
+ "items": {"$ref": "#/$defs/review"}
20
+ }
21
+ },
22
+ "$defs": {
23
+ "clause": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": ["statement", "checker_family", "evidence_authority"],
27
+ "properties": {
28
+ "statement": {"type": "string", "minLength": 1, "maxLength": 2000},
29
+ "checker_family": {
30
+ "enum": [
31
+ "inventory_fact",
32
+ "structured_document",
33
+ "package_metadata",
34
+ "ci_policy",
35
+ "container_iac",
36
+ "source_ast",
37
+ "artifact_integrity",
38
+ "analysis_adapter",
39
+ "execution_evidence",
40
+ "environment_evidence",
41
+ "structured_record"
42
+ ]
43
+ },
44
+ "evidence_authority": {
45
+ "enum": [
46
+ "repository",
47
+ "artifact",
48
+ "executed",
49
+ "environment",
50
+ "external_registry",
51
+ "structured_record"
52
+ ]
53
+ }
54
+ }
55
+ },
56
+ "review": {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "required": [
60
+ "control_id",
61
+ "revision",
62
+ "semantic_sha256",
63
+ "classification",
64
+ "route",
65
+ "reason",
66
+ "deterministic_clauses",
67
+ "nondeterministic_reason_codes",
68
+ "review_status"
69
+ ],
70
+ "properties": {
71
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
72
+ "revision": {"type": "integer", "minimum": 1},
73
+ "semantic_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
74
+ "classification": {"enum": ["deterministic", "nondeterministic"]},
75
+ "route": {
76
+ "enum": [
77
+ "local_static",
78
+ "artifact_verification",
79
+ "bounded_execution",
80
+ "external_readonly_query",
81
+ "structured_record_validation",
82
+ "deterministic_composite",
83
+ "contextual_judgment",
84
+ "accountable_human_decision",
85
+ "specialist_or_legal_judgment",
86
+ "empirical_protocol_undefined",
87
+ "contract_incomplete",
88
+ "mixed",
89
+ "unbounded_claim"
90
+ ]
91
+ },
92
+ "reason": {"type": "string", "minLength": 20, "maxLength": 4000},
93
+ "deterministic_clauses": {
94
+ "type": "array",
95
+ "maxItems": 50,
96
+ "items": {"$ref": "#/$defs/clause"}
97
+ },
98
+ "nondeterministic_reason_codes": {
99
+ "type": "array",
100
+ "maxItems": 9,
101
+ "uniqueItems": true,
102
+ "items": {
103
+ "enum": [
104
+ "contextual_judgment",
105
+ "human_accountability",
106
+ "legal_or_specialist_authority",
107
+ "undefined_protocol",
108
+ "undefined_scope",
109
+ "undefined_threshold",
110
+ "mixed_with_nondeterministic_child",
111
+ "unbounded_scope",
112
+ "classification_not_approved"
113
+ ]
114
+ }
115
+ },
116
+ "review_status": {"const": "primary_agent_reviewed"}
117
+ },
118
+ "allOf": [
119
+ {
120
+ "if": {"properties": {"classification": {"const": "deterministic"}}},
121
+ "then": {
122
+ "properties": {
123
+ "route": {
124
+ "enum": [
125
+ "local_static",
126
+ "artifact_verification",
127
+ "bounded_execution",
128
+ "external_readonly_query",
129
+ "structured_record_validation",
130
+ "deterministic_composite"
131
+ ]
132
+ },
133
+ "deterministic_clauses": {"minItems": 1},
134
+ "nondeterministic_reason_codes": {"maxItems": 0}
135
+ }
136
+ },
137
+ "else": {
138
+ "properties": {
139
+ "route": {
140
+ "enum": [
141
+ "contextual_judgment",
142
+ "accountable_human_decision",
143
+ "specialist_or_legal_judgment",
144
+ "empirical_protocol_undefined",
145
+ "contract_incomplete",
146
+ "mixed",
147
+ "unbounded_claim"
148
+ ]
149
+ },
150
+ "nondeterministic_reason_codes": {"minItems": 1}
151
+ },
152
+ "anyOf": [
153
+ {"properties": {"route": {"const": "mixed"}}},
154
+ {"properties": {"deterministic_clauses": {"maxItems": 0}}}
155
+ ]
156
+ }
157
+ }
158
+ ]
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-classification-skeptic-review.schema.json",
4
+ "title": "Production Readiness Skeptical Control Classification Review v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "packet_id", "primary_packet_id", "methodology_sha256", "registry_version", "registry_sha256", "controls"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.control-classification-skeptic-review/v0.1"},
10
+ "packet_id": {"type": "string", "pattern": "^skeptic-[a-z0-9]+(?:-[a-z0-9]+)*-part-[0-9]{3}-part-[0-9]{3}$"},
11
+ "primary_packet_id": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*-part-[0-9]{3}$"},
12
+ "methodology_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
13
+ "registry_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
14
+ "registry_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
15
+ "controls": {
16
+ "type": "array",
17
+ "minItems": 1,
18
+ "maxItems": 100,
19
+ "items": {"$ref": "#/$defs/review"}
20
+ }
21
+ },
22
+ "$defs": {
23
+ "review": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "control_id",
28
+ "revision",
29
+ "semantic_sha256",
30
+ "verdict",
31
+ "reason",
32
+ "counterexample_analysis",
33
+ "nondeterministic_route",
34
+ "nondeterministic_reason_codes",
35
+ "review_status"
36
+ ],
37
+ "properties": {
38
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
39
+ "revision": {"type": "integer", "minimum": 1},
40
+ "semantic_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
41
+ "verdict": {"enum": ["confirmed_deterministic", "rejected_nondeterministic"]},
42
+ "reason": {"type": "string", "minLength": 20, "maxLength": 4000},
43
+ "counterexample_analysis": {"type": "string", "minLength": 20, "maxLength": 4000},
44
+ "nondeterministic_route": {
45
+ "type": ["string", "null"],
46
+ "enum": [
47
+ null,
48
+ "contextual_judgment",
49
+ "accountable_human_decision",
50
+ "specialist_or_legal_judgment",
51
+ "empirical_protocol_undefined",
52
+ "contract_incomplete",
53
+ "mixed",
54
+ "unbounded_claim"
55
+ ]
56
+ },
57
+ "nondeterministic_reason_codes": {
58
+ "type": "array",
59
+ "maxItems": 9,
60
+ "uniqueItems": true,
61
+ "items": {
62
+ "enum": [
63
+ "contextual_judgment",
64
+ "human_accountability",
65
+ "legal_or_specialist_authority",
66
+ "undefined_protocol",
67
+ "undefined_scope",
68
+ "undefined_threshold",
69
+ "mixed_with_nondeterministic_child",
70
+ "unbounded_scope",
71
+ "classification_not_approved"
72
+ ]
73
+ }
74
+ },
75
+ "review_status": {"const": "skeptical_agent_reviewed"}
76
+ },
77
+ "allOf": [
78
+ {
79
+ "if": {"properties": {"verdict": {"const": "confirmed_deterministic"}}},
80
+ "then": {
81
+ "properties": {
82
+ "nondeterministic_route": {"type": "null"},
83
+ "nondeterministic_reason_codes": {"maxItems": 0}
84
+ }
85
+ },
86
+ "else": {
87
+ "properties": {
88
+ "nondeterministic_route": {"type": "string"},
89
+ "nondeterministic_reason_codes": {"minItems": 1}
90
+ }
91
+ }
92
+ }
93
+ ]
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-classification-strength-review.schema.json",
4
+ "title": "Semantic-strength review of deterministic control classifications",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version", "review_id", "methodology_sha256", "registry_version",
9
+ "registry_sha256", "control_count", "controls"
10
+ ],
11
+ "properties": {
12
+ "schema_version": {"const": "prc.control-classification-strength-review/v0.1"},
13
+ "review_id": {"type": "string", "pattern": "^deterministic-strength-part-[0-9]{3}$"},
14
+ "methodology_sha256": {"$ref": "#/$defs/digest"},
15
+ "registry_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
16
+ "registry_sha256": {"$ref": "#/$defs/digest"},
17
+ "control_count": {"type": "integer", "minimum": 1, "maximum": 250},
18
+ "controls": {"type": "array", "minItems": 1, "maxItems": 250, "items": {"$ref": "#/$defs/review"}}
19
+ },
20
+ "$defs": {
21
+ "digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
22
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
23
+ "route": {
24
+ "enum": [
25
+ "local_static", "artifact_verification", "bounded_execution", "external_readonly_query",
26
+ "structured_record_validation", "deterministic_composite", "contextual_judgment",
27
+ "accountable_human_decision", "specialist_or_legal_judgment",
28
+ "empirical_protocol_undefined", "contract_incomplete", "mixed", "unbounded_claim"
29
+ ]
30
+ },
31
+ "reason_code": {
32
+ "enum": [
33
+ "contextual_judgment", "human_accountability", "legal_or_specialist_authority",
34
+ "undefined_protocol", "undefined_scope", "undefined_threshold",
35
+ "mixed_with_nondeterministic_child", "unbounded_scope", "classification_not_approved"
36
+ ]
37
+ },
38
+ "clause": {
39
+ "type": "object", "additionalProperties": false,
40
+ "required": ["statement", "checker_family", "evidence_authority"],
41
+ "properties": {
42
+ "statement": {"type": "string", "minLength": 20, "maxLength": 4000},
43
+ "checker_family": {"enum": ["inventory_fact", "structured_document", "package_metadata", "ci_policy", "container_iac", "source_ast", "artifact_integrity", "analysis_adapter", "execution_evidence", "environment_evidence", "structured_record"]},
44
+ "evidence_authority": {"enum": ["repository", "artifact", "executed", "environment", "external_registry", "structured_record"]}
45
+ }
46
+ },
47
+ "review": {
48
+ "type": "object", "additionalProperties": false,
49
+ "required": [
50
+ "control_id", "revision", "semantic_sha256", "original_statement", "old_deterministic_clauses",
51
+ "verdict", "route", "reason", "deterministic_clauses", "nondeterministic_reason_codes",
52
+ "counterexample_analysis", "review_status", "row_sha256"
53
+ ],
54
+ "properties": {
55
+ "control_id": {"$ref": "#/$defs/control_id"},
56
+ "revision": {"type": "integer", "minimum": 1},
57
+ "semantic_sha256": {"$ref": "#/$defs/digest"},
58
+ "original_statement": {"type": "string", "minLength": 1, "maxLength": 4000},
59
+ "old_deterministic_clauses": {"type": "array", "minItems": 1, "maxItems": 50, "items": {"$ref": "#/$defs/clause"}},
60
+ "verdict": {"enum": ["strength_audit_confirmed", "strength_audit_reclassified"]},
61
+ "route": {"$ref": "#/$defs/route"},
62
+ "reason": {"type": "string", "minLength": 20, "maxLength": 8000},
63
+ "deterministic_clauses": {"type": "array", "maxItems": 50, "items": {"$ref": "#/$defs/clause"}},
64
+ "nondeterministic_reason_codes": {"type": "array", "maxItems": 9, "uniqueItems": true, "items": {"$ref": "#/$defs/reason_code"}},
65
+ "counterexample_analysis": {"type": "string", "minLength": 20, "maxLength": 8000},
66
+ "review_status": {"const": "strength_audited"},
67
+ "row_sha256": {"$ref": "#/$defs/digest"}
68
+ },
69
+ "allOf": [
70
+ {
71
+ "if": {"properties": {"verdict": {"const": "strength_audit_confirmed"}}},
72
+ "then": {
73
+ "properties": {
74
+ "route": {"enum": ["local_static", "artifact_verification", "bounded_execution", "external_readonly_query", "structured_record_validation", "deterministic_composite"]},
75
+ "deterministic_clauses": {"minItems": 1},
76
+ "nondeterministic_reason_codes": {"maxItems": 0}
77
+ }
78
+ },
79
+ "else": {
80
+ "properties": {
81
+ "route": {"enum": ["contextual_judgment", "accountable_human_decision", "specialist_or_legal_judgment", "empirical_protocol_undefined", "contract_incomplete", "mixed", "unbounded_claim"]},
82
+ "deterministic_clauses": {"maxItems": 0},
83
+ "nondeterministic_reason_codes": {"minItems": 1}
84
+ }
85
+ }
86
+ }
87
+ ]
88
+ }
89
+ }
90
+ }
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-contracts.schema.json",
4
- "title": "Production Readiness Control Contracts v0.1",
4
+ "title": "Production Readiness Reviewed Control Contracts v0.2",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "required": ["schema_version", "registry_sha256", "registry_version", "contract_count", "contracts"],
7
+ "required": [
8
+ "schema_version",
9
+ "generator_id",
10
+ "registry_sha256",
11
+ "registry_version",
12
+ "classification_methodology_sha256",
13
+ "classification_summary_sha256",
14
+ "classification_corpus_sha256",
15
+ "control_check_bindings_schema_version",
16
+ "control_check_bindings_sha256",
17
+ "binding_count",
18
+ "contract_count",
19
+ "contracts"
20
+ ],
8
21
  "properties": {
9
- "schema_version": {"const": "prc.control-contracts/v0.1"},
10
- "registry_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
22
+ "schema_version": {"const": "prc.control-contracts/v0.2"},
23
+ "generator_id": {"const": "prc.control-contracts@0.2"},
24
+ "registry_sha256": {"$ref": "#/$defs/digest"},
11
25
  "registry_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
26
+ "classification_methodology_sha256": {"$ref": "#/$defs/digest"},
27
+ "classification_summary_sha256": {"$ref": "#/$defs/digest"},
28
+ "classification_corpus_sha256": {"$ref": "#/$defs/digest"},
29
+ "control_check_bindings_schema_version": {"const": "prc.control-check-bindings/v0.1"},
30
+ "control_check_bindings_sha256": {"$ref": "#/$defs/digest"},
31
+ "binding_count": {"type": "integer", "minimum": 0, "maximum": 100000},
12
32
  "contract_count": {"type": "integer", "minimum": 1, "maximum": 100000},
13
33
  "contracts": {
14
34
  "type": "array",
@@ -18,15 +38,59 @@
18
38
  }
19
39
  },
20
40
  "$defs": {
41
+ "digest": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
42
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
43
+ "deterministic_route": {
44
+ "enum": ["local_static", "artifact_verification", "bounded_execution", "external_readonly_query", "structured_record_validation", "deterministic_composite"]
45
+ },
46
+ "nondeterministic_route": {
47
+ "enum": ["contextual_judgment", "accountable_human_decision", "specialist_or_legal_judgment", "empirical_protocol_undefined", "contract_incomplete", "mixed", "unbounded_claim"]
48
+ },
21
49
  "contract": {
22
50
  "type": "object",
23
51
  "additionalProperties": false,
24
- "required": ["control_id", "revision", "contract_status", "canonical_control_id", "evaluation_class", "automation_class", "applicability_class", "atomicity", "complete_inventory_required", "negative_condition", "project_thresholds_required", "evidence_authorities", "not_applicable_proof", "reviewer_status", "contract_sha256"],
52
+ "required": [
53
+ "control_id",
54
+ "revision",
55
+ "contract_status",
56
+ "reviewer_status",
57
+ "classification",
58
+ "classification_route",
59
+ "classification_decision_basis",
60
+ "classification_row_sha256",
61
+ "deterministic_binding_id",
62
+ "deterministic_binding_sha256",
63
+ "canonical_control_id",
64
+ "evaluation_class",
65
+ "automation_class",
66
+ "applicability_class",
67
+ "atomicity",
68
+ "complete_inventory_required",
69
+ "negative_condition",
70
+ "project_thresholds_required",
71
+ "evidence_authorities",
72
+ "not_applicable_proof",
73
+ "contract_sha256"
74
+ ],
25
75
  "properties": {
26
- "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
76
+ "control_id": {"$ref": "#/$defs/control_id"},
27
77
  "revision": {"type": "integer", "minimum": 1},
28
- "contract_status": {"enum": ["generated_unreviewed", "reviewed", "retired"]},
29
- "canonical_control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
78
+ "contract_status": {"const": "reviewed"},
79
+ "reviewer_status": {"const": "agent_reviewed"},
80
+ "classification": {"enum": ["deterministic", "nondeterministic"]},
81
+ "classification_route": {
82
+ "enum": ["local_static", "artifact_verification", "bounded_execution", "external_readonly_query", "structured_record_validation", "deterministic_composite", "contextual_judgment", "accountable_human_decision", "specialist_or_legal_judgment", "empirical_protocol_undefined", "contract_incomplete", "mixed", "unbounded_claim"]
83
+ },
84
+ "classification_decision_basis": {"enum": ["primary_nondeterministic", "skeptically_rejected", "strength_audit_confirmed", "strength_audit_reclassified"]},
85
+ "classification_row_sha256": {"$ref": "#/$defs/digest"},
86
+ "deterministic_binding_id": {
87
+ "type": ["string", "null"],
88
+ "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})@[1-9][0-9]*$"
89
+ },
90
+ "deterministic_binding_sha256": {
91
+ "anyOf": [{"$ref": "#/$defs/digest"}, {"type": "null"}]
92
+ },
93
+ "canonical_control_id": {"$ref": "#/$defs/control_id"},
30
94
  "evaluation_class": {"enum": ["repository", "environment", "human_external", "mixed", "unclassified"]},
31
95
  "automation_class": {"enum": ["deterministic_candidate", "ai_advisory_candidate", "environment_evidence_required", "human_or_external_required", "mixed_evidence_required"]},
32
96
  "applicability_class": {"enum": ["conditional", "scope_required"]},
@@ -34,11 +98,36 @@
34
98
  "complete_inventory_required": {"type": "boolean"},
35
99
  "negative_condition": {"type": "boolean"},
36
100
  "project_thresholds_required": {"type": "boolean"},
37
- "evidence_authorities": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"enum": ["declared", "repository", "artifact", "environment", "human"]}},
101
+ "evidence_authorities": {
102
+ "type": "array",
103
+ "minItems": 1,
104
+ "uniqueItems": true,
105
+ "items": {"enum": ["declared", "repository", "artifact", "executed", "environment", "external_registry", "structured_record", "human"]}
106
+ },
38
107
  "not_applicable_proof": {"type": "string", "minLength": 1, "maxLength": 1000},
39
- "reviewer_status": {"enum": ["generated_unreviewed", "expert_reviewed"]},
40
- "contract_sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
41
- }
108
+ "contract_sha256": {"$ref": "#/$defs/digest"}
109
+ },
110
+ "allOf": [
111
+ {
112
+ "if": {"properties": {"classification": {"const": "deterministic"}}},
113
+ "then": {
114
+ "properties": {
115
+ "classification_route": {"$ref": "#/$defs/deterministic_route"},
116
+ "classification_decision_basis": {"const": "strength_audit_confirmed"},
117
+ "deterministic_binding_id": {"type": "string"},
118
+ "deterministic_binding_sha256": {"$ref": "#/$defs/digest"}
119
+ }
120
+ },
121
+ "else": {
122
+ "properties": {
123
+ "classification_route": {"$ref": "#/$defs/nondeterministic_route"},
124
+ "classification_decision_basis": {"enum": ["primary_nondeterministic", "skeptically_rejected", "strength_audit_reclassified"]},
125
+ "deterministic_binding_id": {"type": "null"},
126
+ "deterministic_binding_sha256": {"type": "null"}
127
+ }
128
+ }
129
+ }
130
+ ]
42
131
  }
43
132
  }
44
133
  }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://marinjursic.github.io/production-readiness-checklist/schemas/control-review-output-v0.2.schema.json",
4
+ "title": "Advisory complete-control AI review output",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schema_version", "task_id", "reviews"],
8
+ "properties": {
9
+ "schema_version": {"const": "prc.control-review-output/v0.2"},
10
+ "task_id": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
11
+ "reviews": {
12
+ "type": "array",
13
+ "minItems": 1,
14
+ "maxItems": 8,
15
+ "items": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["control_id", "assessment_candidate", "applicability_candidate", "confidence", "priority", "reason", "challenge", "risk_if_ignored", "advice", "remediation_steps", "verification_steps", "evidence_needed", "evidence", "limitations"],
19
+ "properties": {
20
+ "control_id": {"type": "string", "pattern": "^(PRC-[0-9]{2}-[0-9]{3}|USEQ-[A-F0-9]{8})$"},
21
+ "assessment_candidate": {"enum": ["advisory_pass_candidate", "advisory_fail_candidate", "needs_evidence", "not_applicable_candidate"]},
22
+ "applicability_candidate": {"enum": ["applicable", "not_applicable", "undetermined"]},
23
+ "confidence": {"enum": ["low", "medium", "high"]},
24
+ "priority": {"enum": ["critical", "high", "medium", "low", "none"]},
25
+ "reason": {"type": "string", "minLength": 1, "maxLength": 16384},
26
+ "challenge": {"type": "string", "minLength": 1, "maxLength": 16384},
27
+ "risk_if_ignored": {"type": "string", "minLength": 1, "maxLength": 16384},
28
+ "advice": {"type": "string", "minLength": 1, "maxLength": 16384},
29
+ "remediation_steps": {
30
+ "type": "array", "minItems": 1, "maxItems": 12, "uniqueItems": true,
31
+ "items": {"type": "string", "minLength": 1, "maxLength": 16384}
32
+ },
33
+ "verification_steps": {
34
+ "type": "array", "minItems": 1, "maxItems": 12, "uniqueItems": true,
35
+ "items": {"type": "string", "minLength": 1, "maxLength": 16384}
36
+ },
37
+ "evidence_needed": {
38
+ "type": "array", "minItems": 1, "maxItems": 12, "uniqueItems": true,
39
+ "items": {"type": "string", "minLength": 1, "maxLength": 16384}
40
+ },
41
+ "evidence": {
42
+ "type": "array",
43
+ "maxItems": 256,
44
+ "items": {
45
+ "type": "object",
46
+ "additionalProperties": false,
47
+ "required": ["path", "line"],
48
+ "properties": {
49
+ "path": {"type": "string", "minLength": 1, "maxLength": 4096},
50
+ "line": {"type": "integer", "minimum": 1},
51
+ "column": {"type": "integer", "minimum": 0}
52
+ }
53
+ }
54
+ },
55
+ "limitations": {
56
+ "type": "array",
57
+ "minItems": 1,
58
+ "maxItems": 256,
59
+ "uniqueItems": true,
60
+ "items": {"type": "string", "minLength": 1, "maxLength": 16384}
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }