@bonginkan/maria-lite 0.0.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 (32) hide show
  1. package/LICENSE +125 -0
  2. package/README.md +35 -0
  3. package/dist/cli.cjs +161094 -0
  4. package/dist/cli.cjs.map +1 -0
  5. package/knowledge-packs/caio-ai-management-pack.yaml +21 -0
  6. package/knowledge-packs/ceo-decision-pack.yaml +22 -0
  7. package/knowledge-packs/cto-engineering-execution-pack.yaml +22 -0
  8. package/knowledge-packs/cxo-kpi-analytics-pack.yaml +23 -0
  9. package/knowledge-packs/dev-environment-operations-pack.yaml +19 -0
  10. package/knowledge-packs/e2e-testing-configuration-pack.yaml +20 -0
  11. package/knowledge-packs/intent-routing-pack.yaml +19 -0
  12. package/knowledge-packs/lint-truth-pack.yaml +19 -0
  13. package/knowledge-packs/maria-os-local-mode-local-llm-pack.yaml +38 -0
  14. package/knowledge-packs/operations-decomposition-super-pack.yaml +23 -0
  15. package/knowledge-packs/parent-maria-pack.yaml +23 -0
  16. package/knowledge-packs/product-storytelling-pack.yaml +23 -0
  17. package/knowledge-packs/team-dev-workflow-pack.yaml +19 -0
  18. package/package.json +47 -0
  19. package/schemas/ceo-clone/1.2/AuditEvent.schema.json +84 -0
  20. package/schemas/ceo-clone/1.2/BoundarySpec.schema.json +104 -0
  21. package/schemas/ceo-clone/1.2/CandidateDecision.schema.json +21 -0
  22. package/schemas/ceo-clone/1.2/D3ExecutionPolicy.schema.json +53 -0
  23. package/schemas/ceo-clone/1.2/D3MatchExplanation.schema.json +53 -0
  24. package/schemas/ceo-clone/1.2/DecisionLog.schema.json +211 -0
  25. package/schemas/ceo-clone/1.2/DecisionRequest.schema.json +55 -0
  26. package/schemas/ceo-clone/1.2/DecisionResponse.schema.json +136 -0
  27. package/schemas/ceo-clone/1.2/DeliveryAndAcceptance.schema.json +73 -0
  28. package/schemas/ceo-clone/1.2/ExecutionEnvelope.schema.json +39 -0
  29. package/schemas/ceo-clone/1.2/ReviewQueue.schema.json +30 -0
  30. package/schemas/ceo-clone/1.2/ReviewSloPolicy.schema.json +40 -0
  31. package/schemas/ceo-clone/1.2/SupportAccessBoundary.schema.json +40 -0
  32. package/schemas/ceo-clone/1.2/index.schema.json +46 -0
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/D3MatchExplanation.schema.json",
4
+ "title": "CEO Clone D3 Match Explanation v1.2",
5
+ "description": "LLM output is NOT a decision. It is an explanation+ranking provider to support deterministic safety/boundary logic.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "match_decision",
10
+ "ranked_candidates",
11
+ "unknowns_detected",
12
+ "boundary_hits",
13
+ "recommended_response_type"
14
+ ],
15
+ "properties": {
16
+ "match_decision": { "type": "string", "enum": ["sufficient", "insufficient", "conflicted"] },
17
+ "ranked_candidates": {
18
+ "type": "array",
19
+ "minItems": 0,
20
+ "maxItems": 10,
21
+ "items": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": ["decision_log_id", "why_each"],
25
+ "properties": {
26
+ "decision_log_id": { "type": "string", "maxLength": 128 },
27
+ "why_each": { "type": "array", "minItems": 1, "maxItems": 5, "items": { "type": "string", "maxLength": 220 } }
28
+ }
29
+ }
30
+ },
31
+ "unknowns_detected": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["critical_unknowns", "nice_to_have_unknowns"],
35
+ "properties": {
36
+ "critical_unknowns": { "type": "array", "maxItems": 3, "items": { "type": "string", "maxLength": 250 } },
37
+ "nice_to_have_unknowns": { "type": "array", "maxItems": 30, "items": { "type": "string", "maxLength": 250 } }
38
+ }
39
+ },
40
+ "boundary_hits": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "required": ["hard_prohibitions", "risk_rule_notes", "escalation_reasons"],
44
+ "properties": {
45
+ "hard_prohibitions": { "type": "array", "maxItems": 30, "items": { "type": "string", "maxLength": 240 } },
46
+ "risk_rule_notes": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 240 } },
47
+ "escalation_reasons": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 240 } }
48
+ }
49
+ },
50
+ "recommended_response_type": { "type": "string", "enum": ["conditional_yes", "conditional_no", "defer", "block"] }
51
+ }
52
+ }
53
+
@@ -0,0 +1,211 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/DecisionLog.schema.json",
4
+ "title": "CEO Clone DecisionLog v1.2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "id",
9
+ "timestamp",
10
+ "actor",
11
+ "goal",
12
+ "context",
13
+ "assumptions",
14
+ "constraints",
15
+ "options_considered",
16
+ "decision",
17
+ "reversal_conditions",
18
+ "evidence",
19
+ "provenance"
20
+ ],
21
+ "properties": {
22
+ "id": { "type": "string", "minLength": 8, "maxLength": 128 },
23
+ "timestamp": { "type": "string", "format": "date-time" },
24
+ "actor": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["role", "name"],
28
+ "properties": {
29
+ "role": { "type": "string", "enum": ["CEO", "CFO", "CTO", "Exec", "Other"] },
30
+ "name": { "type": "string", "minLength": 1, "maxLength": 80 }
31
+ }
32
+ },
33
+ "goal": { "type": "string", "minLength": 1, "maxLength": 800 },
34
+ "context": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["summary", "domain", "time_horizon"],
38
+ "properties": {
39
+ "summary": {
40
+ "type": "string",
41
+ "minLength": 1,
42
+ "maxLength": 900,
43
+ "description": "Quality gate: keep within ~3 sentences."
44
+ },
45
+ "domain": { "type": "string", "minLength": 1, "maxLength": 120 },
46
+ "time_horizon": { "type": "string", "enum": ["days", "weeks", "months", "quarters", "years"] },
47
+ "stakeholders": {
48
+ "type": "array",
49
+ "items": { "type": "string", "minLength": 1, "maxLength": 120 },
50
+ "maxItems": 30
51
+ }
52
+ }
53
+ },
54
+ "assumptions": {
55
+ "type": "array",
56
+ "items": { "type": "string", "minLength": 1, "maxLength": 300 },
57
+ "maxItems": 30
58
+ },
59
+ "constraints": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["risk_tier", "budget", "deadline"],
63
+ "properties": {
64
+ "risk_tier": { "type": "string", "enum": ["S1", "S2", "S3", "S4", "S5", "unknown"] },
65
+ "budget": {
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "required": ["amount", "currency"],
69
+ "properties": {
70
+ "amount": { "type": "number", "minimum": 0 },
71
+ "currency": { "type": "string", "minLength": 3, "maxLength": 3 }
72
+ }
73
+ },
74
+ "deadline": { "type": "string", "format": "date" },
75
+ "must_not_do": {
76
+ "type": "array",
77
+ "items": { "type": "string", "minLength": 1, "maxLength": 200 },
78
+ "maxItems": 30
79
+ }
80
+ }
81
+ },
82
+ "options_considered": {
83
+ "type": "array",
84
+ "minItems": 2,
85
+ "maxItems": 12,
86
+ "description": "Quality gate: at least 2 options (Proceed/Defer is allowed).",
87
+ "items": {
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "required": ["name", "pros", "cons", "rejection_reason"],
91
+ "properties": {
92
+ "name": { "type": "string", "minLength": 1, "maxLength": 120 },
93
+ "pros": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 }, "maxItems": 15 },
94
+ "cons": { "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 200 }, "maxItems": 15 },
95
+ "rejection_reason": { "type": "string", "minLength": 1, "maxLength": 500 }
96
+ }
97
+ }
98
+ },
99
+ "decision": {
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": ["selected_option", "summary", "decision_type"],
103
+ "properties": {
104
+ "selected_option": { "type": "string", "minLength": 1, "maxLength": 120 },
105
+ "summary": { "type": "string", "minLength": 1, "maxLength": 800 },
106
+ "decision_type": { "type": "string", "enum": ["approve", "reject", "defer", "experiment"] },
107
+ "owner": { "type": "string", "minLength": 1, "maxLength": 120 },
108
+ "next_actions": {
109
+ "type": "array",
110
+ "maxItems": 20,
111
+ "items": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": ["action", "owner"],
115
+ "properties": {
116
+ "action": { "type": "string", "minLength": 1, "maxLength": 200 },
117
+ "owner": { "type": "string", "minLength": 1, "maxLength": 120 },
118
+ "due": { "type": "string", "format": "date" }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "reversal_conditions": {
125
+ "type": "array",
126
+ "minItems": 1,
127
+ "maxItems": 15,
128
+ "items": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "required": ["condition", "impact", "signal"],
132
+ "properties": {
133
+ "condition": { "type": "string", "minLength": 1, "maxLength": 300 },
134
+ "impact": { "type": "string", "enum": ["minor", "major", "fatal"] },
135
+ "signal": { "type": "string", "minLength": 1, "maxLength": 300 }
136
+ }
137
+ }
138
+ },
139
+ "evidence": {
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "required": ["refs"],
143
+ "properties": {
144
+ "refs": {
145
+ "type": "array",
146
+ "minItems": 2,
147
+ "maxItems": 30,
148
+ "items": {
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "required": ["type", "ref"],
152
+ "properties": {
153
+ "type": { "type": "string", "enum": ["doc", "url", "ticket", "repo", "metric", "memo", "artifact"] },
154
+ "ref": { "type": "string", "minLength": 1, "maxLength": 400 },
155
+ "note": { "type": "string", "maxLength": 200 }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ },
161
+ "provenance": {
162
+ "description": "Mandatory transparency to prevent 'CEO said this' misuse. Derived requires reviewer.",
163
+ "oneOf": [
164
+ {
165
+ "type": "object",
166
+ "additionalProperties": false,
167
+ "required": ["source", "refs", "authoring", "confidence"],
168
+ "properties": {
169
+ "source": { "type": "string", "enum": ["command", "git", "doc", "recording", "manual"] },
170
+ "refs": { "type": "array", "minItems": 1, "maxItems": 20, "items": { "type": "string", "maxLength": 500 } },
171
+ "authoring": {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": ["mode"],
175
+ "properties": {
176
+ "mode": { "type": "string", "const": "original" }
177
+ }
178
+ },
179
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 }
180
+ }
181
+ },
182
+ {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": ["source", "refs", "authoring", "confidence"],
186
+ "properties": {
187
+ "source": { "type": "string", "enum": ["command", "git", "doc", "recording", "manual"] },
188
+ "refs": { "type": "array", "minItems": 1, "maxItems": 20, "items": { "type": "string", "maxLength": 500 } },
189
+ "authoring": {
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "required": ["mode", "reviewer", "reviewer_accountability"],
193
+ "properties": {
194
+ "mode": { "type": "string", "const": "derived" },
195
+ "reviewer": { "type": "string", "maxLength": 120 },
196
+ "reviewer_accountability": {
197
+ "type": "string",
198
+ "maxLength": 500,
199
+ "description": "Short statement of reviewer responsibility for approving derived logs."
200
+ }
201
+ }
202
+ },
203
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 }
204
+ }
205
+ }
206
+ ]
207
+ },
208
+ "tags": { "type": "array", "items": { "type": "string", "maxLength": 40 }, "maxItems": 30 }
209
+ }
210
+ }
211
+
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/DecisionRequest.schema.json",
4
+ "title": "CEO Clone DecisionRequest v1.2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "id",
9
+ "timestamp",
10
+ "goal",
11
+ "known_constraints",
12
+ "critical_unknowns",
13
+ "nice_to_have_unknowns",
14
+ "urgency",
15
+ "risk_acceptance",
16
+ "requester"
17
+ ],
18
+ "properties": {
19
+ "id": { "type": "string", "minLength": 8, "maxLength": 128 },
20
+ "timestamp": { "type": "string", "format": "date-time" },
21
+ "goal": { "type": "string", "minLength": 1, "maxLength": 800 },
22
+ "known_constraints": { "type": "array", "maxItems": 40, "items": { "type": "string", "minLength": 1, "maxLength": 250 } },
23
+ "critical_unknowns": { "type": "array", "maxItems": 3, "items": { "type": "string", "minLength": 1, "maxLength": 250 } },
24
+ "nice_to_have_unknowns": { "type": "array", "maxItems": 30, "items": { "type": "string", "minLength": 1, "maxLength": 250 } },
25
+ "urgency": { "type": "string", "enum": ["low", "normal", "high", "critical"] },
26
+ "risk_acceptance": { "type": "string", "enum": ["conservative", "balanced", "aggressive"] },
27
+ "domain": { "type": "string", "maxLength": 120 },
28
+ "attachments": {
29
+ "type": "array",
30
+ "maxItems": 10,
31
+ "items": {
32
+ "type": "object",
33
+ "additionalProperties": false,
34
+ "required": ["type", "ref"],
35
+ "properties": {
36
+ "type": { "type": "string", "enum": ["doc", "url", "ticket", "repo", "metric", "memo", "artifact"] },
37
+ "ref": { "type": "string", "maxLength": 400 }
38
+ }
39
+ }
40
+ },
41
+ "requester": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": ["role", "name_or_team"],
45
+ "properties": {
46
+ "role": {
47
+ "type": "string",
48
+ "enum": ["Requester", "Exec", "PM", "Engineering", "Security", "Legal", "Finance", "Ops", "Other"]
49
+ },
50
+ "name_or_team": { "type": "string", "minLength": 1, "maxLength": 120 }
51
+ }
52
+ }
53
+ }
54
+ }
55
+
@@ -0,0 +1,136 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/DecisionResponse.schema.json",
4
+ "title": "CEO Clone DecisionResponse v1.2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "id",
9
+ "timestamp",
10
+ "summary",
11
+ "decision_range",
12
+ "reasoning_outline",
13
+ "blocked_points",
14
+ "next_actions",
15
+ "disclosures",
16
+ "trace"
17
+ ],
18
+ "properties": {
19
+ "id": { "type": "string", "minLength": 8, "maxLength": 128 },
20
+ "timestamp": { "type": "string", "format": "date-time" },
21
+ "summary": { "type": "string", "minLength": 1, "maxLength": 600 },
22
+ "decision_range": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": ["type", "conditions_yes", "conditions_no"],
26
+ "properties": {
27
+ "type": { "type": "string", "enum": ["conditional_yes", "conditional_no", "defer", "block"] },
28
+ "conditions_yes": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 200 } },
29
+ "conditions_no": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 200 } }
30
+ }
31
+ },
32
+ "reasoning_outline": { "type": "array", "maxItems": 10, "items": { "type": "string", "minLength": 1, "maxLength": 220 } },
33
+ "blocked_points": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 220 } },
34
+ "next_actions": {
35
+ "type": "array",
36
+ "maxItems": 12,
37
+ "items": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["action", "owner", "due", "relates_to"],
41
+ "properties": {
42
+ "action": { "type": "string", "minLength": 1, "maxLength": 220 },
43
+ "owner": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": ["role", "name_or_team"],
47
+ "properties": {
48
+ "role": {
49
+ "type": "string",
50
+ "enum": ["Requester", "CEO", "DelegateReviewer", "Security", "Legal", "Finance", "Ops", "Other"]
51
+ },
52
+ "name_or_team": { "type": "string", "minLength": 1, "maxLength": 120 }
53
+ }
54
+ },
55
+ "due": { "type": "string", "format": "date" },
56
+ "relates_to": {
57
+ "type": "object",
58
+ "additionalProperties": false,
59
+ "required": ["type", "key"],
60
+ "properties": {
61
+ "type": { "type": "string", "enum": ["critical_unknown", "boundary_requirement", "escalation"] },
62
+ "key": { "type": "string", "minLength": 1, "maxLength": 250 }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "disclosures": {
69
+ "type": "object",
70
+ "additionalProperties": false,
71
+ "required": ["must_display", "display_targets", "safety_notice", "provenance_disclaimer"],
72
+ "properties": {
73
+ "must_display": { "type": "boolean", "const": true },
74
+ "display_targets": {
75
+ "type": "array",
76
+ "minItems": 2,
77
+ "items": { "type": "string", "enum": ["ui", "artifact"] },
78
+ "description": "Both UI and artifacts must display disclaimers to prevent misuse."
79
+ },
80
+ "safety_notice": { "type": "string", "minLength": 1, "maxLength": 400 },
81
+ "provenance_disclaimer": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["is_derived", "fixed_notice", "reviewer_responsibility"],
85
+ "properties": {
86
+ "is_derived": { "type": "boolean" },
87
+ "fixed_notice": { "type": "string", "minLength": 1, "maxLength": 700 },
88
+ "reviewer_responsibility": { "type": "string", "minLength": 1, "maxLength": 700 }
89
+ }
90
+ }
91
+ }
92
+ },
93
+ "trace": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "matched_log_ids",
98
+ "why_these_logs",
99
+ "what_changed_since_then",
100
+ "boundary_checks",
101
+ "boundary_version",
102
+ "d3"
103
+ ],
104
+ "properties": {
105
+ "matched_log_ids": { "type": "array", "maxItems": 3, "items": { "type": "string", "maxLength": 128 } },
106
+ "why_these_logs": { "type": "array", "minItems": 1, "maxItems": 3, "items": { "type": "string", "maxLength": 220 } },
107
+ "what_changed_since_then": { "type": "array", "maxItems": 3, "items": { "type": "string", "maxLength": 220 } },
108
+ "boundary_checks": {
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "required": ["status", "reasons"],
112
+ "properties": {
113
+ "status": { "type": "string", "enum": ["pass", "block"] },
114
+ "reasons": { "type": "array", "maxItems": 10, "items": { "type": "string", "maxLength": 240 } }
115
+ }
116
+ },
117
+ "boundary_version": { "type": "string", "maxLength": 20 },
118
+ "d3": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": ["used", "reason"],
122
+ "properties": {
123
+ "used": { "type": "boolean" },
124
+ "reason": { "type": "string", "minLength": 1, "maxLength": 500 }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ ,
130
+ "d3_explanation": {
131
+ "description": "Optional D3 explanation output (LLM). Not a decision; used for transparency.",
132
+ "$ref": "D3MatchExplanation.schema.json"
133
+ }
134
+ }
135
+ }
136
+
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/DeliveryAndAcceptance.schema.json",
4
+ "title": "CEO Clone Delivery & Acceptance Package v1.2",
5
+ "description": "Defines deliverables, onboarding steps, and acceptance criteria required for procurement readiness.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["version", "deliverables", "onboarding_steps", "acceptance_criteria"],
9
+ "properties": {
10
+ "version": { "type": "string", "pattern": "^v\\d+\\.\\d+$" },
11
+ "deliverables": {
12
+ "type": "array",
13
+ "minItems": 5,
14
+ "maxItems": 50,
15
+ "items": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["id", "title", "type", "description"],
19
+ "properties": {
20
+ "id": { "type": "string", "maxLength": 128 },
21
+ "title": { "type": "string", "maxLength": 200 },
22
+ "type": {
23
+ "type": "string",
24
+ "enum": ["BoundarySpec", "DecisionLogSeed", "ReviewOpsDoc", "EvalSuite", "AcceptanceTestReport", "Runbook", "SecurityDoc"]
25
+ },
26
+ "description": { "type": "string", "maxLength": 1200 }
27
+ }
28
+ }
29
+ },
30
+ "onboarding_steps": {
31
+ "type": "array",
32
+ "minItems": 5,
33
+ "maxItems": 30,
34
+ "items": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["order", "name", "outputs"],
38
+ "properties": {
39
+ "order": { "type": "integer", "minimum": 1, "maximum": 99 },
40
+ "name": {
41
+ "type": "string",
42
+ "enum": [
43
+ "Kickoff",
44
+ "DataClassification",
45
+ "InitialCaptureConfig",
46
+ "ReviewTeamSetup",
47
+ "ShadowOperation",
48
+ "GoLive"
49
+ ]
50
+ },
51
+ "outputs": { "type": "array", "minItems": 1, "items": { "type": "string", "maxLength": 200 } }
52
+ }
53
+ }
54
+ },
55
+ "acceptance_criteria": {
56
+ "type": "array",
57
+ "minItems": 5,
58
+ "maxItems": 50,
59
+ "items": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["id", "title", "severity", "evidence_required"],
63
+ "properties": {
64
+ "id": { "type": "string", "maxLength": 128 },
65
+ "title": { "type": "string", "maxLength": 300 },
66
+ "severity": { "type": "string", "enum": ["blocker", "high", "medium", "low"] },
67
+ "evidence_required": { "type": "array", "minItems": 1, "items": { "type": "string", "maxLength": 200 } }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/ExecutionEnvelope.schema.json",
4
+ "title": "CEO Clone ExecutionEnvelope v1.2",
5
+ "description": "Common result envelope for CLI/Service. Required for local-only loud failure and ops usability.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["status", "user_message", "next_actions", "artifacts_written", "audit_events_written"],
9
+ "properties": {
10
+ "status": { "type": "string", "enum": ["ok", "retryable", "blocked", "error"] },
11
+ "user_message": { "type": "string", "minLength": 1, "maxLength": 1200 },
12
+ "next_actions": {
13
+ "type": "array",
14
+ "maxItems": 20,
15
+ "items": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": ["action", "owner"],
19
+ "properties": {
20
+ "action": { "type": "string", "minLength": 1, "maxLength": 220 },
21
+ "owner": { "type": "string", "minLength": 1, "maxLength": 120 },
22
+ "due": { "type": "string", "format": "date" }
23
+ }
24
+ }
25
+ },
26
+ "artifacts_written": { "type": "array", "maxItems": 50, "items": { "type": "string", "maxLength": 500 } },
27
+ "audit_events_written": { "type": "array", "maxItems": 50, "items": { "type": "string", "maxLength": 500 } },
28
+ "error": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": ["code", "message"],
32
+ "properties": {
33
+ "code": { "type": "string", "maxLength": 120 },
34
+ "message": { "type": "string", "maxLength": 2000 }
35
+ }
36
+ }
37
+ }
38
+ }
39
+
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/ReviewQueue.schema.json",
4
+ "title": "CEO Clone ReviewQueue v1.2",
5
+ "description": "Review queue with machine-readable status and timestamps. Used to enforce SLO and degradation mode.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["queue_id", "items"],
9
+ "properties": {
10
+ "queue_id": { "type": "string", "minLength": 8, "maxLength": 128 },
11
+ "items": {
12
+ "type": "array",
13
+ "maxItems": 20000,
14
+ "items": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "required": ["candidate_id", "status", "created_at"],
18
+ "properties": {
19
+ "candidate_id": { "type": "string", "maxLength": 128 },
20
+ "status": { "type": "string", "enum": ["pending", "approved", "edited", "discarded"] },
21
+ "created_at": { "type": "string", "format": "date-time" },
22
+ "reviewed_at": { "type": "string", "format": "date-time" },
23
+ "reviewer": { "type": "string", "maxLength": 120 },
24
+ "notes": { "type": "string", "maxLength": 800 }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ }
30
+
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "ceo-clone/1.2/ReviewSloPolicy.schema.json",
4
+ "title": "CEO Clone Review SLO Policy v1.2",
5
+ "description": "Commercial ops policy for review latency and degradation mode triggers.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["version", "targets", "degradation_mode"],
9
+ "properties": {
10
+ "version": { "type": "string", "pattern": "^v\\d+\\.\\d+$" },
11
+ "targets": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "required": ["pending_resolved_within_hours_p80", "s3_or_higher_same_day_required"],
15
+ "properties": {
16
+ "pending_resolved_within_hours_p80": { "type": "integer", "minimum": 1, "maximum": 168 },
17
+ "s3_or_higher_same_day_required": { "type": "boolean" }
18
+ }
19
+ },
20
+ "degradation_mode": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["enter_when_pending_over", "mode", "effect_on_query"],
24
+ "properties": {
25
+ "enter_when_pending_over": { "type": "integer", "minimum": 1, "maximum": 100000 },
26
+ "mode": { "type": "string", "enum": ["conservative"] },
27
+ "effect_on_query": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": ["bias_to", "s3_requires_review"],
31
+ "properties": {
32
+ "bias_to": { "type": "string", "enum": ["defer"] },
33
+ "s3_requires_review": { "type": "boolean" }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+