@cleocode/core 2026.3.45 → 2026.3.46

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 (137) hide show
  1. package/dist/bootstrap.d.ts.map +1 -1
  2. package/dist/index.js +1475 -372
  3. package/dist/index.js.map +4 -4
  4. package/dist/init.d.ts.map +1 -1
  5. package/dist/injection.d.ts +1 -1
  6. package/dist/injection.d.ts.map +1 -1
  7. package/dist/routing/capability-matrix.d.ts +6 -4
  8. package/dist/routing/capability-matrix.d.ts.map +1 -1
  9. package/dist/scaffold.d.ts +16 -9
  10. package/dist/scaffold.d.ts.map +1 -1
  11. package/dist/skills/agents/install.d.ts.map +1 -1
  12. package/dist/skills/routing-table.d.ts +17 -16
  13. package/dist/skills/routing-table.d.ts.map +1 -1
  14. package/dist/skills/skill-paths.d.ts.map +1 -1
  15. package/dist/system/health.d.ts.map +1 -1
  16. package/dist/ui/index.d.ts +0 -1
  17. package/dist/ui/index.d.ts.map +1 -1
  18. package/package.json +9 -4
  19. package/schemas/adr-frontmatter.schema.json +72 -0
  20. package/schemas/agent-configs.schema.json +120 -0
  21. package/schemas/agent-registry.json +243 -0
  22. package/schemas/agent-registry.schema.json +132 -0
  23. package/schemas/archive/research-manifest.schema.json +257 -0
  24. package/schemas/archive.schema.json +450 -0
  25. package/schemas/brain-decision.schema.json +69 -0
  26. package/schemas/brain-learning.schema.json +57 -0
  27. package/schemas/brain-pattern.schema.json +72 -0
  28. package/schemas/config.schema.json +2606 -0
  29. package/schemas/context-state.schema.json +137 -0
  30. package/schemas/contribution.schema.json +722 -0
  31. package/schemas/critical-path.schema.json +246 -0
  32. package/schemas/deps-cache.schema.json +97 -0
  33. package/schemas/doctor-output.schema.json +283 -0
  34. package/schemas/error.schema.json +161 -0
  35. package/schemas/export-package.schema.json +375 -0
  36. package/schemas/global-config.schema.json +219 -0
  37. package/schemas/grade.schema.json +49 -0
  38. package/schemas/log.schema.json +250 -0
  39. package/schemas/metrics.schema.json +328 -0
  40. package/schemas/migrations.schema.json +150 -0
  41. package/schemas/nexus-registry.schema.json +90 -0
  42. package/schemas/operation-constitution.schema.json +438 -0
  43. package/schemas/output.schema.json +164 -0
  44. package/schemas/project-context.schema.json +164 -0
  45. package/schemas/project-info.schema.json +180 -0
  46. package/schemas/projects-registry.schema.json +107 -0
  47. package/schemas/protocol-frontmatter.schema.json +72 -0
  48. package/schemas/rcasd-consensus-report.schema.json +10 -0
  49. package/schemas/rcasd-evidence.schema.json +42 -0
  50. package/schemas/rcasd-gate-result.schema.json +46 -0
  51. package/schemas/rcasd-hitl-resolution.schema.json +10 -0
  52. package/schemas/rcasd-index.schema.json +10 -0
  53. package/schemas/rcasd-manifest.schema.json +10 -0
  54. package/schemas/rcasd-research-output.schema.json +10 -0
  55. package/schemas/rcasd-spec-frontmatter.schema.json +10 -0
  56. package/schemas/rcasd-stage-transition.schema.json +38 -0
  57. package/schemas/releases.schema.json +267 -0
  58. package/schemas/skills-manifest.schema.json +91 -0
  59. package/schemas/skillsmp.schema.json +208 -0
  60. package/schemas/spec-index.schema.json +196 -0
  61. package/schemas/system-flow-atlas.schema.json +125 -0
  62. package/src/__tests__/injection-chain.test.ts +11 -10
  63. package/src/__tests__/injection-mvi-tiers.test.ts +4 -2
  64. package/src/agents/__tests__/capacity.test.d.ts +7 -0
  65. package/src/agents/__tests__/capacity.test.d.ts.map +1 -0
  66. package/src/agents/__tests__/capacity.test.js +173 -0
  67. package/src/agents/__tests__/capacity.test.js.map +1 -0
  68. package/src/agents/__tests__/registry.test.d.ts +8 -0
  69. package/src/agents/__tests__/registry.test.d.ts.map +1 -0
  70. package/src/agents/__tests__/registry.test.js +348 -0
  71. package/src/agents/__tests__/registry.test.js.map +1 -0
  72. package/src/agents/__tests__/retry.test.d.ts +7 -0
  73. package/src/agents/__tests__/retry.test.d.ts.map +1 -0
  74. package/src/agents/__tests__/retry.test.js +225 -0
  75. package/src/agents/__tests__/retry.test.js.map +1 -0
  76. package/src/bootstrap.ts +3 -1
  77. package/src/init.ts +63 -18
  78. package/src/injection.ts +11 -5
  79. package/src/intelligence/__tests__/impact.test.d.ts +15 -0
  80. package/src/intelligence/__tests__/impact.test.d.ts.map +1 -0
  81. package/src/intelligence/__tests__/impact.test.js +384 -0
  82. package/src/intelligence/__tests__/impact.test.js.map +1 -0
  83. package/src/intelligence/__tests__/patterns.test.d.ts +8 -0
  84. package/src/intelligence/__tests__/patterns.test.d.ts.map +1 -0
  85. package/src/intelligence/__tests__/patterns.test.js +370 -0
  86. package/src/intelligence/__tests__/patterns.test.js.map +1 -0
  87. package/src/intelligence/__tests__/prediction.test.d.ts +8 -0
  88. package/src/intelligence/__tests__/prediction.test.d.ts.map +1 -0
  89. package/src/intelligence/__tests__/prediction.test.js +314 -0
  90. package/src/intelligence/__tests__/prediction.test.js.map +1 -0
  91. package/src/nexus/__tests__/nexus-e2e.test.d.ts +12 -0
  92. package/src/nexus/__tests__/nexus-e2e.test.d.ts.map +1 -0
  93. package/src/nexus/__tests__/nexus-e2e.test.js +1220 -0
  94. package/src/nexus/__tests__/nexus-e2e.test.js.map +1 -0
  95. package/src/nexus/__tests__/transfer.test.d.ts +8 -0
  96. package/src/nexus/__tests__/transfer.test.d.ts.map +1 -0
  97. package/src/nexus/__tests__/transfer.test.js +372 -0
  98. package/src/nexus/__tests__/transfer.test.js.map +1 -0
  99. package/src/nexus/__tests__/transfer.test.ts +1 -1
  100. package/src/routing/capability-matrix.ts +1435 -205
  101. package/src/scaffold.ts +18 -11
  102. package/src/skills/__tests__/routing-table.test.ts +53 -33
  103. package/src/skills/agents/install.ts +9 -1
  104. package/src/skills/routing-table.ts +39 -253
  105. package/src/skills/skill-paths.ts +3 -2
  106. package/src/store/__tests__/project-detect.test.ts +1 -1
  107. package/src/system/health.ts +18 -7
  108. package/src/ui/index.ts +0 -6
  109. package/src/validation/operation-gate-validators.ts +2 -2
  110. package/templates/CLEO-INJECTION.md +120 -0
  111. package/templates/README.md +29 -0
  112. package/templates/agent-registry.json +305 -0
  113. package/templates/cleo-gitignore +74 -0
  114. package/templates/config.template.json +187 -0
  115. package/templates/git-hooks/commit-msg +149 -0
  116. package/templates/git-hooks/pre-commit +40 -0
  117. package/templates/git-hooks/pre-push +79 -0
  118. package/templates/github/ISSUE_TEMPLATE/bug_report.yml +143 -0
  119. package/templates/github/ISSUE_TEMPLATE/config.yml +8 -0
  120. package/templates/github/ISSUE_TEMPLATE/feature_request.yml +125 -0
  121. package/templates/github/ISSUE_TEMPLATE/help_question.yml +99 -0
  122. package/templates/global-config.template.json +56 -0
  123. package/templates/hooks/precompact-safestop.sh +89 -0
  124. package/templates/issue-templates/bug_report.yml +143 -0
  125. package/templates/issue-templates/config.yml +8 -0
  126. package/templates/issue-templates/feature_request.yml +125 -0
  127. package/templates/issue-templates/help_question.yml +99 -0
  128. package/templates/skillsmp.json.example +28 -0
  129. package/templates/skillsmp.json.example.md +214 -0
  130. package/dist/ui/injection-legacy.d.ts +0 -26
  131. package/dist/ui/injection-legacy.d.ts.map +0 -1
  132. package/src/ui/__tests__/injection-registry.test.d.ts +0 -11
  133. package/src/ui/__tests__/injection-registry.test.d.ts.map +0 -1
  134. package/src/ui/__tests__/injection-registry.test.js +0 -46
  135. package/src/ui/__tests__/injection-registry.test.js.map +0 -1
  136. package/src/ui/__tests__/injection-registry.test.ts +0 -57
  137. package/src/ui/injection-legacy.ts +0 -44
@@ -0,0 +1,164 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/project-context.schema.json",
4
+ "schemaVersion": "1.0.0",
5
+ "title": "CLEO Project Context Schema",
6
+ "description": "LLM agent metadata structure for project discovery. Generated by cleo init --detect, consumed via @ reference injection. Distinct from config.json (executable config) - this provides discovery metadata and LLM guidance.",
7
+ "type": "object",
8
+ "required": ["schemaVersion", "detectedAt", "projectTypes"],
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "$schema": {
12
+ "type": "string",
13
+ "description": "JSON Schema reference URI"
14
+ },
15
+ "schemaVersion": {
16
+ "type": "string",
17
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
18
+ "description": "Project context schema version (semver)"
19
+ },
20
+ "detectedAt": {
21
+ "type": "string",
22
+ "format": "date-time",
23
+ "description": "ISO 8601 timestamp of detection"
24
+ },
25
+ "projectTypes": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string",
29
+ "enum": ["node", "python", "rust", "go", "ruby", "elixir", "java", "php", "deno", "bun", "dotnet", "bash", "unknown"]
30
+ },
31
+ "minItems": 1,
32
+ "description": "All detected project types"
33
+ },
34
+ "primaryType": {
35
+ "type": "string",
36
+ "enum": ["node", "python", "rust", "go", "ruby", "elixir", "java", "php", "deno", "bun", "dotnet", "bash", "unknown"],
37
+ "description": "Primary project type"
38
+ },
39
+ "monorepo": {
40
+ "type": "boolean",
41
+ "default": false,
42
+ "description": "Whether project is a monorepo"
43
+ },
44
+ "testing": {
45
+ "type": "object",
46
+ "description": "Testing configuration summary.",
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "framework": {
50
+ "type": "string",
51
+ "enum": ["bats", "jest", "vitest", "playwright", "cypress", "mocha", "ava", "uvu", "tap", "node:test", "deno", "bun", "pytest", "go", "cargo", "rspec", "junit", "custom"],
52
+ "description": "Detected testing framework"
53
+ },
54
+ "command": {
55
+ "type": "string",
56
+ "description": "Test execution command"
57
+ },
58
+ "testFilePatterns": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string"
62
+ },
63
+ "description": "Glob patterns for test files"
64
+ },
65
+ "directories": {
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "unit": {
70
+ "type": "string"
71
+ },
72
+ "integration": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "build": {
80
+ "type": "object",
81
+ "description": "Build configuration summary.",
82
+ "additionalProperties": false,
83
+ "properties": {
84
+ "command": {
85
+ "type": "string",
86
+ "description": "Build command"
87
+ },
88
+ "outputDir": {
89
+ "type": "string",
90
+ "description": "Build output directory"
91
+ }
92
+ }
93
+ },
94
+ "directories": {
95
+ "type": "object",
96
+ "description": "Directory structure summary.",
97
+ "additionalProperties": false,
98
+ "properties": {
99
+ "source": {
100
+ "type": "string",
101
+ "description": "Source code directory"
102
+ },
103
+ "tests": {
104
+ "type": "string",
105
+ "description": "Test directory"
106
+ },
107
+ "docs": {
108
+ "type": "string",
109
+ "description": "Documentation directory"
110
+ }
111
+ }
112
+ },
113
+ "conventions": {
114
+ "type": "object",
115
+ "description": "Coding conventions.",
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "fileNaming": {
119
+ "type": "string",
120
+ "enum": ["kebab-case", "snake_case", "camelCase", "PascalCase"],
121
+ "description": "File naming convention"
122
+ },
123
+ "importStyle": {
124
+ "type": "string",
125
+ "enum": ["esm", "commonjs", "mixed"],
126
+ "description": "Module import style"
127
+ },
128
+ "typeSystem": {
129
+ "type": "string",
130
+ "description": "Type system (typescript, python-hints, rust, etc.)"
131
+ }
132
+ }
133
+ },
134
+ "llmHints": {
135
+ "type": "object",
136
+ "description": "LLM agent guidance for code generation and understanding.",
137
+ "additionalProperties": false,
138
+ "properties": {
139
+ "preferredTestStyle": {
140
+ "type": "string",
141
+ "description": "Framework-specific test style guidance"
142
+ },
143
+ "typeSystem": {
144
+ "type": "string",
145
+ "description": "Type system details (e.g., 'TypeScript strict mode')"
146
+ },
147
+ "commonPatterns": {
148
+ "type": "array",
149
+ "items": {
150
+ "type": "string"
151
+ },
152
+ "description": "Framework-specific best practices"
153
+ },
154
+ "avoidPatterns": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "string"
158
+ },
159
+ "description": "Deprecated APIs, incompatible syntax, style violations to avoid"
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,180 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/project-info.schema.json",
4
+ "schemaVersion": "1.0.0",
5
+ "title": "CLEO Project Info Schema",
6
+ "description": "Per-project metadata file (.cleo/project-info.json) containing schema versions, injection status, and health diagnostics. Part of the hybrid registry architecture where global registry tracks project locations and this file stores project-specific details.",
7
+ "type": "object",
8
+ "required": ["schemaVersion", "projectHash", "schemas"],
9
+ "additionalProperties": false,
10
+
11
+ "properties": {
12
+ "$schema": {
13
+ "type": "string",
14
+ "description": "JSON Schema reference for validation."
15
+ },
16
+ "schemaVersion": {
17
+ "type": "string",
18
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
19
+ "description": "Schema version for this file (semver)."
20
+ },
21
+ "projectHash": {
22
+ "type": "string",
23
+ "pattern": "^[a-f0-9]{12}$",
24
+ "description": "Unique 12-character hex hash derived from absolute project path (SHA-256 prefix). Links to global registry entry."
25
+ },
26
+ "cleoVersion": {
27
+ "type": "string",
28
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
29
+ "description": "CLEO version that last modified this file (semver)."
30
+ },
31
+ "lastUpdated": {
32
+ "type": "string",
33
+ "format": "date-time",
34
+ "description": "ISO 8601 timestamp of last modification to this file."
35
+ },
36
+ "schemas": {
37
+ "type": "object",
38
+ "description": "Schema versions for core CLEO data files in this project.",
39
+ "required": ["config"],
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "config": {
43
+ "type": "string",
44
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
45
+ "description": "Schema version for config.json (semver)."
46
+ },
47
+ "sqlite": {
48
+ "type": "string",
49
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
50
+ "description": "Schema version for tasks.db SQLite store (semver)."
51
+ },
52
+ "projectContext": {
53
+ "type": "string",
54
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
55
+ "description": "Schema version for project-context.json (semver)."
56
+ },
57
+ "todo": {
58
+ "type": "string",
59
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
60
+ "description": "Deprecated: JSON todo.json schema version. Kept for backward compatibility."
61
+ },
62
+ "archive": {
63
+ "type": "string",
64
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
65
+ "description": "Deprecated: JSON archive schema version. Kept for backward compatibility."
66
+ },
67
+ "log": {
68
+ "type": "string",
69
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
70
+ "description": "Deprecated: JSON log schema version. Kept for backward compatibility."
71
+ }
72
+ }
73
+ },
74
+ "injection": {
75
+ "type": "object",
76
+ "description": "Injection versions for LLM agent documentation files. Null if file does not exist or injection not applied.",
77
+ "additionalProperties": false,
78
+ "properties": {
79
+ "CLAUDE.md": {
80
+ "type": ["string", "null"],
81
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
82
+ "description": "Injection version in CLAUDE.md (semver) or null if not injected."
83
+ },
84
+ "AGENTS.md": {
85
+ "type": ["string", "null"],
86
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
87
+ "description": "Injection version in AGENTS.md (semver) or null if not injected."
88
+ },
89
+ "GEMINI.md": {
90
+ "type": ["string", "null"],
91
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
92
+ "description": "Injection version in GEMINI.md (semver) or null if not injected."
93
+ }
94
+ }
95
+ },
96
+ "health": {
97
+ "type": "object",
98
+ "description": "Project health status from last doctor check. Optional - may not exist until first health check.",
99
+ "required": ["status"],
100
+ "additionalProperties": false,
101
+ "properties": {
102
+ "status": {
103
+ "type": "string",
104
+ "enum": ["healthy", "warning", "error", "unknown"],
105
+ "description": "Overall project health: healthy=no issues, warning=minor issues, error=critical issues, unknown=not yet checked."
106
+ },
107
+ "lastCheck": {
108
+ "type": ["string", "null"],
109
+ "format": "date-time",
110
+ "description": "ISO 8601 timestamp of last health check (doctor command). Null if never checked."
111
+ },
112
+ "issues": {
113
+ "type": "array",
114
+ "description": "Array of health check issues. Empty if status='healthy'.",
115
+ "items": {
116
+ "$ref": "#/definitions/healthIssue"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "features": {
122
+ "type": "object",
123
+ "description": "Optional CLEO features enabled for this project.",
124
+ "additionalProperties": false,
125
+ "properties": {
126
+ "multiSession": {
127
+ "type": "boolean",
128
+ "description": "Multi-agent concurrent session support.",
129
+ "default": false
130
+ },
131
+ "verification": {
132
+ "type": "boolean",
133
+ "description": "Verification gates for task quality.",
134
+ "default": false
135
+ },
136
+ "contextAlerts": {
137
+ "type": "boolean",
138
+ "description": "Context window threshold alerts.",
139
+ "default": false
140
+ }
141
+ }
142
+ }
143
+ },
144
+
145
+ "definitions": {
146
+ "healthIssue": {
147
+ "type": "object",
148
+ "description": "Individual health check issue.",
149
+ "required": ["severity", "code", "message"],
150
+ "additionalProperties": false,
151
+ "properties": {
152
+ "severity": {
153
+ "type": "string",
154
+ "enum": ["warning", "error"],
155
+ "description": "Issue severity: warning=non-blocking, error=critical/blocking."
156
+ },
157
+ "code": {
158
+ "type": "string",
159
+ "pattern": "^[A-Z_]+$",
160
+ "description": "Machine-readable issue code (e.g., 'SCHEMA_OUTDATED', 'INJECTION_MISSING')."
161
+ },
162
+ "message": {
163
+ "type": "string",
164
+ "minLength": 1,
165
+ "maxLength": 500,
166
+ "description": "Human-readable issue description."
167
+ },
168
+ "file": {
169
+ "type": "string",
170
+ "description": "File path related to the issue (relative to project root)."
171
+ },
172
+ "fix": {
173
+ "type": "string",
174
+ "maxLength": 200,
175
+ "description": "Suggested command or action to resolve the issue."
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/projects-registry.schema.json",
4
+ "schemaVersion": "2.0.0",
5
+ "title": "CLEO Projects Registry Schema",
6
+ "description": "Unified global registry tracking all CLEO-initialized projects. Single source of truth for both project management and Nexus cross-project coordination.",
7
+ "type": "object",
8
+ "required": ["schemaVersion", "lastUpdated", "projects"],
9
+ "additionalProperties": false,
10
+
11
+ "properties": {
12
+ "$schema": {
13
+ "type": "string",
14
+ "description": "JSON Schema reference for validation."
15
+ },
16
+ "schemaVersion": {
17
+ "type": "string",
18
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
19
+ "description": "Schema version for this file (semver)."
20
+ },
21
+ "lastUpdated": {
22
+ "type": "string",
23
+ "format": "date-time",
24
+ "description": "ISO 8601 timestamp of last registry modification."
25
+ },
26
+ "projects": {
27
+ "type": "object",
28
+ "description": "Hash-keyed project entries. Hash is 12-char hex SHA-256 prefix of absolute project path.",
29
+ "patternProperties": {
30
+ "^[a-f0-9]{12}$": {
31
+ "$ref": "#/definitions/projectEntry"
32
+ }
33
+ },
34
+ "additionalProperties": false
35
+ }
36
+ },
37
+
38
+ "definitions": {
39
+ "projectEntry": {
40
+ "type": "object",
41
+ "description": "Individual project registration record with metadata and optional Nexus fields.",
42
+ "required": ["hash", "path", "name", "registeredAt", "lastSeen"],
43
+ "additionalProperties": false,
44
+ "properties": {
45
+ "hash": {
46
+ "type": "string",
47
+ "pattern": "^[a-f0-9]{12}$",
48
+ "description": "Unique 12-character hex hash derived from absolute project path (SHA-256 prefix). MUST match parent key."
49
+ },
50
+ "path": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "description": "Absolute file system path to project root. MUST be unique across all projects."
54
+ },
55
+ "name": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 100,
59
+ "description": "Human-readable project name (typically basename of path)."
60
+ },
61
+ "registeredAt": {
62
+ "type": "string",
63
+ "format": "date-time",
64
+ "description": "ISO 8601 timestamp when project was first registered (cleo init)."
65
+ },
66
+ "lastSeen": {
67
+ "type": "string",
68
+ "format": "date-time",
69
+ "description": "ISO 8601 timestamp of last CLEO operation in this project."
70
+ },
71
+ "healthStatus": {
72
+ "type": "string",
73
+ "enum": ["healthy", "warning", "error", "unknown"],
74
+ "description": "Overall project health status. Defaults to 'unknown' if not yet checked."
75
+ },
76
+ "healthLastCheck": {
77
+ "type": ["string", "null"],
78
+ "format": "date-time",
79
+ "description": "ISO 8601 timestamp of last health check. Null if never checked."
80
+ },
81
+ "permissions": {
82
+ "type": "string",
83
+ "enum": ["read", "write", "execute"],
84
+ "description": "Nexus cross-project permission level. Defaults to 'read'."
85
+ },
86
+ "taskCount": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "description": "Number of tasks in project. Cached for quick reference."
90
+ },
91
+ "labels": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ },
96
+ "uniqueItems": true,
97
+ "description": "Unique labels across all tasks in the project."
98
+ },
99
+ "lastSync": {
100
+ "type": ["string", "null"],
101
+ "format": "date-time",
102
+ "description": "ISO 8601 timestamp of last Nexus sync. Null if never synced."
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo.dev/schemas/protocol-frontmatter.schema.json",
4
+ "title": "Protocol Frontmatter Schema",
5
+ "description": "JSON Schema for CLEO protocol YAML frontmatter blocks",
6
+ "_meta": {
7
+ "schemaVersion": "1.0.0"
8
+ },
9
+ "type": "object",
10
+ "required": ["id", "title", "version", "status"],
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "enum": ["RSCH", "CONS", "SPEC", "DCMP", "IMPL", "CONT", "VALID", "TEST", "REL", "ADR", "ART", "PROV", "AGENT"],
15
+ "description": "Short protocol code"
16
+ },
17
+ "title": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "description": "Full protocol title"
21
+ },
22
+ "version": {
23
+ "type": "string",
24
+ "pattern": "^\\d+\\.\\d+\\.\\d+$",
25
+ "description": "Semver version"
26
+ },
27
+ "status": {
28
+ "type": "string",
29
+ "enum": ["active", "draft", "deprecated", "experimental"]
30
+ },
31
+ "type": {
32
+ "type": "string",
33
+ "enum": ["base", "conditional", "cross-cutting"]
34
+ },
35
+ "audience": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "tags": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ "skillRef": {
48
+ "type": "string",
49
+ "description": "ct-skills skill that executes this pipeline"
50
+ },
51
+ "mcpOperations": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "lastUpdated": {
58
+ "type": "string",
59
+ "description": "ISO date string"
60
+ },
61
+ "provenanceTask": {
62
+ "type": "string",
63
+ "pattern": "^T\\d+$",
64
+ "description": "CLEO task ID that originated this protocol"
65
+ },
66
+ "enforcement": {
67
+ "type": "string",
68
+ "enum": ["strict", "advisory", "disabled"]
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-consensus-report.schema.json",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./rcsd-consensus-report.schema.json"
7
+ }
8
+ ],
9
+ "description": "RCASD schema alias. Backward compatible with legacy rcsd-consensus-report schema."
10
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "schemaVersion": "1.0.0",
4
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-evidence.schema.json",
5
+ "title": "RCASD Evidence",
6
+ "description": "Schema for lifecycle stage evidence records. Evidence links artifacts (files, URLs, manifests) to specific pipeline stages for provenance tracking.",
7
+ "type": "object",
8
+ "required": ["id", "stageId", "uri", "type", "recordedAt"],
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "id": {
12
+ "type": "string",
13
+ "description": "Unique evidence identifier"
14
+ },
15
+ "stageId": {
16
+ "type": "string",
17
+ "description": "Reference to the lifecycle stage this evidence supports"
18
+ },
19
+ "uri": {
20
+ "type": "string",
21
+ "description": "URI pointing to the evidence artifact"
22
+ },
23
+ "type": {
24
+ "type": "string",
25
+ "enum": ["file", "url", "manifest"],
26
+ "description": "Type of evidence artifact"
27
+ },
28
+ "recordedAt": {
29
+ "type": "string",
30
+ "format": "date-time",
31
+ "description": "When the evidence was recorded"
32
+ },
33
+ "recordedBy": {
34
+ "type": ["string", "null"],
35
+ "description": "Agent or user who recorded the evidence"
36
+ },
37
+ "description": {
38
+ "type": ["string", "null"],
39
+ "description": "Description of what this evidence demonstrates"
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "schemaVersion": "1.0.0",
4
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-gate-result.schema.json",
5
+ "title": "RCASD Gate Result",
6
+ "description": "Schema for lifecycle gate check results. Gates enforce quality requirements at stage boundaries in the RCASD-IVTR pipeline.",
7
+ "type": "object",
8
+ "required": ["id", "stageId", "gateName", "result", "checkedAt", "checkedBy"],
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "id": {
12
+ "type": "string",
13
+ "description": "Unique gate result identifier"
14
+ },
15
+ "stageId": {
16
+ "type": "string",
17
+ "description": "Reference to the lifecycle stage this gate belongs to"
18
+ },
19
+ "gateName": {
20
+ "type": "string",
21
+ "description": "Name of the gate check (e.g., prerequisites-met, code-complete)"
22
+ },
23
+ "result": {
24
+ "type": "string",
25
+ "enum": ["pass", "fail", "warn"],
26
+ "description": "Gate check result"
27
+ },
28
+ "checkedAt": {
29
+ "type": "string",
30
+ "format": "date-time",
31
+ "description": "When the gate was checked"
32
+ },
33
+ "checkedBy": {
34
+ "type": "string",
35
+ "description": "Agent or user who performed the check"
36
+ },
37
+ "details": {
38
+ "type": ["string", "null"],
39
+ "description": "Additional details about the check result"
40
+ },
41
+ "reason": {
42
+ "type": ["string", "null"],
43
+ "description": "Reason for failure or warning"
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-hitl-resolution.schema.json",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./rcsd-hitl-resolution.schema.json"
7
+ }
8
+ ],
9
+ "description": "RCASD schema alias. Backward compatible with legacy rcsd-hitl-resolution schema."
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-index.schema.json",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./rcsd-index.schema.json"
7
+ }
8
+ ],
9
+ "description": "RCASD schema alias. Backward compatible with legacy rcsd-index schema."
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-manifest.schema.json",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./rcsd-manifest.schema.json"
7
+ }
8
+ ],
9
+ "description": "RCASD schema alias. Backward compatible with legacy rcsd-manifest schema."
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://cleo-dev.com/schemas/v1/rcasd-research-output.schema.json",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./rcsd-research-output.schema.json"
7
+ }
8
+ ],
9
+ "description": "RCASD schema alias. Backward compatible with legacy rcsd-research-output schema."
10
+ }