0xray 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.opencode/codex.codex +1 -1
- package/.opencode/commands/dependency-audit.md +3 -3
- package/.opencode/enforcer-config.json +2 -2
- package/.opencode/hooks/post-commit +1 -1
- package/.opencode/init.sh +2 -2
- package/AGENTS.md +1 -1
- package/README.md +2 -2
- package/dist/AGENTS.md +1 -1
- package/dist/CHANGELOG.md +10 -0
- package/dist/README.md +2 -2
- package/dist/analytics/routing-refiner.js +1 -1
- package/dist/core/boot-orchestrator.js +1 -1
- package/dist/core/features-config.js +1 -1
- package/dist/mcps/architect-tools.server.js +1 -1
- package/dist/mcps/auto-format.server.js +1 -1
- package/dist/mcps/boot-orchestrator.server.js +1 -1
- package/dist/mcps/enforcer-tools.server.js +1 -1
- package/dist/mcps/estimation.server.js +1 -1
- package/dist/mcps/framework-compliance-audit.server.js +1 -1
- package/dist/mcps/framework-help.server.js +1 -1
- package/dist/mcps/governance.server.js +1 -1
- package/dist/mcps/knowledge-skills/api-design.server.js +1 -1
- package/dist/mcps/knowledge-skills/architecture-patterns.server.js +1 -1
- package/dist/mcps/knowledge-skills/bug-triage-specialist.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-analyzer.server.js +1 -1
- package/dist/mcps/knowledge-skills/code-review.server.js +1 -1
- package/dist/mcps/knowledge-skills/content-creator.server.js +1 -1
- package/dist/mcps/knowledge-skills/database-design.server.js +1 -1
- package/dist/mcps/knowledge-skills/devops-deployment.server.js +1 -1
- package/dist/mcps/knowledge-skills/git-workflow.server.js +1 -1
- package/dist/mcps/knowledge-skills/growth-strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/log-monitor.server.js +1 -1
- package/dist/mcps/knowledge-skills/mobile-development.server.js +1 -1
- package/dist/mcps/knowledge-skills/multimodal-looker.server.js +1 -1
- package/dist/mcps/knowledge-skills/performance-optimization.server.js +1 -1
- package/dist/mcps/knowledge-skills/project-analysis.server.js +1 -1
- package/dist/mcps/knowledge-skills/refactoring-strategies.server.js +1 -1
- package/dist/mcps/knowledge-skills/security-audit.server.js +1 -1
- package/dist/mcps/knowledge-skills/seo-consultant.server.js +1 -1
- package/dist/mcps/knowledge-skills/session-management.server.js +1 -1
- package/dist/mcps/knowledge-skills/skill-invocation.server.js +1 -1
- package/dist/mcps/knowledge-skills/strategist.server.js +1 -1
- package/dist/mcps/knowledge-skills/tech-writer.server.js +2 -2
- package/dist/mcps/knowledge-skills/testing-best-practices.server.js +1 -1
- package/dist/mcps/knowledge-skills/testing-strategy.server.js +1 -1
- package/dist/mcps/knowledge-skills/ui-ux-design.server.js +1 -1
- package/dist/mcps/lint.server.js +1 -1
- package/dist/mcps/model-health-check.server.js +1 -1
- package/dist/mcps/performance-analysis.server.js +1 -1
- package/dist/mcps/processor-pipeline.server.js +1 -1
- package/dist/mcps/registry.json +1 -1
- package/dist/mcps/researcher.server.js +1 -1
- package/dist/mcps/security-scan.server.js +1 -1
- package/dist/mcps/state-manager.server.js +1 -1
- package/dist/orchestrator/universal-registry-bridge.js +1 -1
- package/dist/skills/hermes-agent/SKILL.md +1 -1
- package/dist/skills/registry.json +1 -1
- package/package.json +3 -2
- package/scripts/node/pre-publish-guard.js +16 -10
- package/scripts/node/release.mjs +1 -1
- package/scripts/node/setup.cjs +32 -0
- package/scripts/node/universal-version-manager.js +2 -2
- package/src/mcps/architect-tools.server.ts +1 -1
- package/src/mcps/auto-format.server.ts +1 -1
- package/src/mcps/boot-orchestrator.server.ts +1 -1
- package/src/mcps/enforcer-tools.server.ts +1 -1
- package/src/mcps/estimation.server.ts +1 -1
- package/src/mcps/framework-compliance-audit.server.ts +1 -1
- package/src/mcps/framework-help.server.ts +1 -1
- package/src/mcps/governance.server.ts +1 -1
- package/src/mcps/knowledge-skills/api-design.server.ts +1 -1
- package/src/mcps/knowledge-skills/architecture-patterns.server.ts +1 -1
- package/src/mcps/knowledge-skills/bug-triage-specialist.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-analyzer.server.ts +1 -1
- package/src/mcps/knowledge-skills/code-review.server.ts +1 -1
- package/src/mcps/knowledge-skills/content-creator.server.ts +1 -1
- package/src/mcps/knowledge-skills/database-design.server.ts +1 -1
- package/src/mcps/knowledge-skills/devops-deployment.server.ts +1 -1
- package/src/mcps/knowledge-skills/git-workflow.server.ts +1 -1
- package/src/mcps/knowledge-skills/growth-strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/log-monitor.server.ts +1 -1
- package/src/mcps/knowledge-skills/mobile-development.server.ts +1 -1
- package/src/mcps/knowledge-skills/multimodal-looker.server.ts +1 -1
- package/src/mcps/knowledge-skills/performance-optimization.server.ts +1 -1
- package/src/mcps/knowledge-skills/project-analysis.server.ts +1 -1
- package/src/mcps/knowledge-skills/refactoring-strategies.server.ts +1 -1
- package/src/mcps/knowledge-skills/security-audit.server.ts +1 -1
- package/src/mcps/knowledge-skills/seo-consultant.server.ts +1 -1
- package/src/mcps/knowledge-skills/session-management.server.ts +1 -1
- package/src/mcps/knowledge-skills/skill-invocation.server.ts +1 -1
- package/src/mcps/knowledge-skills/strategist.server.ts +1 -1
- package/src/mcps/knowledge-skills/tech-writer.server.ts +2 -2
- package/src/mcps/knowledge-skills/testing-best-practices.server.ts +1 -1
- package/src/mcps/knowledge-skills/testing-strategy.server.ts +1 -1
- package/src/mcps/knowledge-skills/ui-ux-design.server.ts +1 -1
- package/src/mcps/lint.server.ts +1 -1
- package/src/mcps/model-health-check.server.ts +1 -1
- package/src/mcps/performance-analysis.server.ts +1 -1
- package/src/mcps/processor-pipeline.server.ts +1 -1
- package/src/mcps/registry.json +1 -1
- package/src/mcps/researcher.server.ts +1 -1
- package/src/mcps/security-scan.server.ts +1 -1
- package/src/mcps/state-manager.server.ts +1 -1
- package/src/opencode/codex.codex +1 -1
- package/src/opencode/commands/dependency-audit.md +3 -3
- package/src/opencode/enforcer-config.json +2 -2
- package/src/skills/hermes-agent/SKILL.md +1 -1
- package/src/skills/registry.json +1 -1
- package/xray/agents_template.md +109 -0
- package/xray/codex.json +598 -0
- package/xray/config.json +26 -0
- package/xray/features.json +132 -0
- package/xray/integrations.json +23 -0
- package/xray/routing-mappings.json +752 -0
- package/xray/workflow_state.json +28 -0
package/xray/codex.json
ADDED
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.1",
|
|
3
|
+
"lastUpdated": "2026-06-05",
|
|
4
|
+
"errorPreventionTarget": 0.998,
|
|
5
|
+
"terms": {
|
|
6
|
+
"1": {
|
|
7
|
+
"number": 1,
|
|
8
|
+
"title": "Progressive Prod-Ready Code",
|
|
9
|
+
"description": "All code must be production-ready from the first commit. No placeholder, stub, or incomplete implementations. Every function, class, and module must be fully functional and ready for deployment.",
|
|
10
|
+
"category": "core",
|
|
11
|
+
"zeroTolerance": true,
|
|
12
|
+
"enforcementLevel": "blocking"
|
|
13
|
+
},
|
|
14
|
+
"2": {
|
|
15
|
+
"number": 2,
|
|
16
|
+
"title": "No Patches/Boiler/Stubs/Bridge Code",
|
|
17
|
+
"description": "Prohibit temporary patches, boilerplate code, stub implementations, and bridge code. All code must have clear, permanent purpose and complete implementation.",
|
|
18
|
+
"category": "core",
|
|
19
|
+
"zeroTolerance": true,
|
|
20
|
+
"enforcementLevel": "blocking"
|
|
21
|
+
},
|
|
22
|
+
"3": {
|
|
23
|
+
"number": 3,
|
|
24
|
+
"title": "Do Not Over-Engineer the Solution",
|
|
25
|
+
"description": "Solutions should be simple and direct. Focus on the actual problem. Avoid unnecessary abstractions, patterns, or complexity. Keep it minimal and maintainable.",
|
|
26
|
+
"category": "core",
|
|
27
|
+
"zeroTolerance": false,
|
|
28
|
+
"enforcementLevel": "medium"
|
|
29
|
+
},
|
|
30
|
+
"4": {
|
|
31
|
+
"number": 4,
|
|
32
|
+
"title": "Fit for Purpose and Prod-Level Code",
|
|
33
|
+
"description": "Every piece of code must solve the specific problem it was created for, meet production standards (error handling, logging, monitoring), be maintainable, follow established patterns, and include appropriate tests.",
|
|
34
|
+
"category": "core",
|
|
35
|
+
"zeroTolerance": false,
|
|
36
|
+
"enforcementLevel": "high"
|
|
37
|
+
},
|
|
38
|
+
"5": {
|
|
39
|
+
"number": 5,
|
|
40
|
+
"title": "Surgical Fixes Where Needed",
|
|
41
|
+
"description": "Apply precise, targeted fixes. Fix the root cause, not symptoms. Make minimal changes to resolve the issue. Avoid refactoring unrelated code. Preserve existing functionality.",
|
|
42
|
+
"category": "core",
|
|
43
|
+
"zeroTolerance": false,
|
|
44
|
+
"enforcementLevel": "high"
|
|
45
|
+
},
|
|
46
|
+
"6": {
|
|
47
|
+
"number": 6,
|
|
48
|
+
"title": "Batched Introspection Cycles",
|
|
49
|
+
"description": "Group introspection and analysis into intentional cycles. Review code in batches, not line-by-line. Combine related improvements. Avoid micro-optimizations during development.",
|
|
50
|
+
"category": "core",
|
|
51
|
+
"zeroTolerance": false,
|
|
52
|
+
"enforcementLevel": "low"
|
|
53
|
+
},
|
|
54
|
+
"7": {
|
|
55
|
+
"number": 7,
|
|
56
|
+
"title": "Resolve All Errors (90% Runtime Prevention)",
|
|
57
|
+
"description": "Zero-tolerance for unresolved errors. All errors must be resolved before proceeding. No console.log debugging or ignored errors. Systematic error handling with proper recovery. 90% of runtime errors prevented through systematic checks.",
|
|
58
|
+
"category": "core",
|
|
59
|
+
"zeroTolerance": true,
|
|
60
|
+
"enforcementLevel": "blocking"
|
|
61
|
+
},
|
|
62
|
+
"8": {
|
|
63
|
+
"number": 8,
|
|
64
|
+
"title": "Prevent Infinite Loops",
|
|
65
|
+
"description": "Guarantee termination in all iterative processes. All loops must have clear termination conditions. Recursive functions must have base cases. Event loops must have exit strategies. Async operations must have timeout mechanisms.",
|
|
66
|
+
"category": "core",
|
|
67
|
+
"zeroTolerance": true,
|
|
68
|
+
"enforcementLevel": "blocking"
|
|
69
|
+
},
|
|
70
|
+
"9": {
|
|
71
|
+
"number": 9,
|
|
72
|
+
"title": "Use Shared Global State Where Possible",
|
|
73
|
+
"description": "Prefer shared state over duplicated state. Single source of truth for data. Centralized state management. Avoid prop-drilling through multiple layers.",
|
|
74
|
+
"category": "core",
|
|
75
|
+
"zeroTolerance": false,
|
|
76
|
+
"enforcementLevel": "medium"
|
|
77
|
+
},
|
|
78
|
+
"10": {
|
|
79
|
+
"number": 10,
|
|
80
|
+
"title": "Single Source of Truth",
|
|
81
|
+
"description": "Maintain one authoritative source for each piece of information. Configuration stored in one place. Data models defined once. API contracts specified in a single location.",
|
|
82
|
+
"category": "core",
|
|
83
|
+
"zeroTolerance": false,
|
|
84
|
+
"enforcementLevel": "high"
|
|
85
|
+
},
|
|
86
|
+
"11": {
|
|
87
|
+
"number": 11,
|
|
88
|
+
"title": "Type Safety First",
|
|
89
|
+
"description": "Never use any, @ts-ignore, or @ts-expect-error. Leverage TypeScript's type system fully. Use discriminated unions for complex state. Type errors are blocking issues.",
|
|
90
|
+
"category": "core",
|
|
91
|
+
"zeroTolerance": true,
|
|
92
|
+
"enforcementLevel": "blocking"
|
|
93
|
+
},
|
|
94
|
+
"12": {
|
|
95
|
+
"number": 12,
|
|
96
|
+
"title": "Early Returns and Guard Clauses",
|
|
97
|
+
"description": "Validate inputs at function boundaries. Return early for invalid conditions. Reduce nesting with guard clauses. Keep the happy path at the top level.",
|
|
98
|
+
"category": "core",
|
|
99
|
+
"zeroTolerance": false,
|
|
100
|
+
"enforcementLevel": "medium"
|
|
101
|
+
},
|
|
102
|
+
"13": {
|
|
103
|
+
"number": 13,
|
|
104
|
+
"title": "Error Boundaries and Graceful Degradation",
|
|
105
|
+
"description": "Wrap components in error boundaries. Provide fallback UI when components fail. Implement circuit breakers for external dependencies. Maintain user experience during failures.",
|
|
106
|
+
"category": "core",
|
|
107
|
+
"zeroTolerance": false,
|
|
108
|
+
"enforcementLevel": "high"
|
|
109
|
+
},
|
|
110
|
+
"14": {
|
|
111
|
+
"number": 14,
|
|
112
|
+
"title": "Immutability Where Possible",
|
|
113
|
+
"description": "Prefer const over let. Use immutable data structures. Avoid mutating function parameters. Use spread operator or array methods instead of mutation.",
|
|
114
|
+
"category": "core",
|
|
115
|
+
"zeroTolerance": false,
|
|
116
|
+
"enforcementLevel": "medium"
|
|
117
|
+
},
|
|
118
|
+
"15": {
|
|
119
|
+
"number": 15,
|
|
120
|
+
"title": "Separation of Concerns",
|
|
121
|
+
"description": "Keep UI separate from business logic. Separate data fetching from rendering. Isolate side effects. Clear boundaries between layers. Each component/module has one responsibility.",
|
|
122
|
+
"category": "core",
|
|
123
|
+
"zeroTolerance": false,
|
|
124
|
+
"enforcementLevel": "high"
|
|
125
|
+
},
|
|
126
|
+
"16": {
|
|
127
|
+
"number": 16,
|
|
128
|
+
"title": "DRY - Don't Repeat Yourself",
|
|
129
|
+
"description": "Extract repeated logic into reusable functions. Use composition over inheritance. Create shared utilities for common operations. Avoid copy-pasting code.",
|
|
130
|
+
"category": "core",
|
|
131
|
+
"zeroTolerance": false,
|
|
132
|
+
"enforcementLevel": "medium"
|
|
133
|
+
},
|
|
134
|
+
"17": {
|
|
135
|
+
"number": 17,
|
|
136
|
+
"title": "YAGNI - You Aren't Gonna Need It",
|
|
137
|
+
"description": "Don't implement features that aren't needed now. Avoid 'just in case' code. Build for current requirements, not hypothetical ones. Keep codebase lean and focused.",
|
|
138
|
+
"category": "core",
|
|
139
|
+
"zeroTolerance": false,
|
|
140
|
+
"enforcementLevel": "medium"
|
|
141
|
+
},
|
|
142
|
+
"18": {
|
|
143
|
+
"number": 18,
|
|
144
|
+
"title": "Meaningful Naming",
|
|
145
|
+
"description": "Variables, functions, and classes should be self-documenting. Use verbs for functions, nouns for classes. Boolean variables should be clear (isLoading, hasError).",
|
|
146
|
+
"category": "core",
|
|
147
|
+
"zeroTolerance": false,
|
|
148
|
+
"enforcementLevel": "medium"
|
|
149
|
+
},
|
|
150
|
+
"19": {
|
|
151
|
+
"number": 19,
|
|
152
|
+
"title": "Small, Focused Functions",
|
|
153
|
+
"description": "Each function should do one thing well. Keep functions under 20-30 lines when possible. Reduce complexity by breaking down large functions. Pure functions are easier to test.",
|
|
154
|
+
"category": "core",
|
|
155
|
+
"zeroTolerance": false,
|
|
156
|
+
"enforcementLevel": "medium"
|
|
157
|
+
},
|
|
158
|
+
"20": {
|
|
159
|
+
"number": 20,
|
|
160
|
+
"title": "Consistent Code Style",
|
|
161
|
+
"description": "Follow existing patterns in the codebase. Use linters and formatters. Maintain consistent formatting. Follow language idioms.",
|
|
162
|
+
"category": "core",
|
|
163
|
+
"zeroTolerance": false,
|
|
164
|
+
"enforcementLevel": "low"
|
|
165
|
+
},
|
|
166
|
+
"21": {
|
|
167
|
+
"number": 21,
|
|
168
|
+
"title": "Dependency Injection",
|
|
169
|
+
"description": "Pass dependencies as parameters. Avoid hardcoded dependencies. Make code testable by injecting mocks. Reduce coupling between components.",
|
|
170
|
+
"category": "architecture",
|
|
171
|
+
"zeroTolerance": false,
|
|
172
|
+
"enforcementLevel": "medium"
|
|
173
|
+
},
|
|
174
|
+
"22": {
|
|
175
|
+
"number": 22,
|
|
176
|
+
"title": "Interface Segregation",
|
|
177
|
+
"description": "Define specific, focused interfaces. Avoid god interfaces with too many methods. Clients shouldn't depend on methods they don't use.",
|
|
178
|
+
"category": "architecture",
|
|
179
|
+
"zeroTolerance": false,
|
|
180
|
+
"enforcementLevel": "medium"
|
|
181
|
+
},
|
|
182
|
+
"23": {
|
|
183
|
+
"number": 23,
|
|
184
|
+
"title": "Open/Closed Principle",
|
|
185
|
+
"description": "Open for extension, closed for modification. Use polymorphism to add new behavior. Avoid changing existing code when adding features.",
|
|
186
|
+
"category": "architecture",
|
|
187
|
+
"zeroTolerance": false,
|
|
188
|
+
"enforcementLevel": "medium"
|
|
189
|
+
},
|
|
190
|
+
"24": {
|
|
191
|
+
"number": 24,
|
|
192
|
+
"title": "Single Responsibility Principle",
|
|
193
|
+
"description": "Each class/module should have one reason to change. Separate concerns into different modules. Keep functions focused on one task.",
|
|
194
|
+
"category": "architecture",
|
|
195
|
+
"zeroTolerance": false,
|
|
196
|
+
"enforcementLevel": "high"
|
|
197
|
+
},
|
|
198
|
+
"25": {
|
|
199
|
+
"number": 25,
|
|
200
|
+
"title": "Code Rot Prevention",
|
|
201
|
+
"description": "Monitor code consolidation. Refactor code that has grown organically. Remove unused code and dependencies. Update deprecated APIs.",
|
|
202
|
+
"category": "architecture",
|
|
203
|
+
"zeroTolerance": false,
|
|
204
|
+
"enforcementLevel": "medium"
|
|
205
|
+
},
|
|
206
|
+
"26": {
|
|
207
|
+
"number": 26,
|
|
208
|
+
"title": "Test Coverage >85%",
|
|
209
|
+
"description": "Maintain 85%+ behavioral test coverage. Focus on behavior, not implementation details. Integration tests for critical paths. Unit tests for pure functions.",
|
|
210
|
+
"category": "testing",
|
|
211
|
+
"zeroTolerance": false,
|
|
212
|
+
"enforcementLevel": "high"
|
|
213
|
+
},
|
|
214
|
+
"27": {
|
|
215
|
+
"number": 27,
|
|
216
|
+
"title": "Fast Feedback Loops",
|
|
217
|
+
"description": "Provide immediate validation feedback. Show loading states for async operations. Real-time error messages. Clear success confirmation.",
|
|
218
|
+
"category": "testing",
|
|
219
|
+
"zeroTolerance": false,
|
|
220
|
+
"enforcementLevel": "medium"
|
|
221
|
+
},
|
|
222
|
+
"28": {
|
|
223
|
+
"number": 28,
|
|
224
|
+
"title": "Performance Budget Enforcement",
|
|
225
|
+
"description": "Bundle size <2MB. First Contentful Paint <2s. Time to Interactive <5s. Lazy load non-critical components.",
|
|
226
|
+
"category": "performance",
|
|
227
|
+
"zeroTolerance": false,
|
|
228
|
+
"enforcementLevel": "high"
|
|
229
|
+
},
|
|
230
|
+
"29": {
|
|
231
|
+
"number": 29,
|
|
232
|
+
"title": "Security by Design",
|
|
233
|
+
"description": "Validate all inputs. Sanitize data before rendering. Use HTTPS for all requests. Implement rate limiting. Never expose sensitive data.",
|
|
234
|
+
"category": "security",
|
|
235
|
+
"zeroTolerance": true,
|
|
236
|
+
"enforcementLevel": "blocking"
|
|
237
|
+
},
|
|
238
|
+
"30": {
|
|
239
|
+
"number": 30,
|
|
240
|
+
"title": "Accessibility First",
|
|
241
|
+
"description": "Semantic HTML elements. ARIA labels for interactive elements. Keyboard navigation support. Screen reader compatibility.",
|
|
242
|
+
"category": "accessibility",
|
|
243
|
+
"zeroTolerance": false,
|
|
244
|
+
"enforcementLevel": "medium"
|
|
245
|
+
},
|
|
246
|
+
"31": {
|
|
247
|
+
"number": 31,
|
|
248
|
+
"title": "Async/Await Over Callbacks",
|
|
249
|
+
"description": "Use async/await for asynchronous code. Avoid callback hell. Proper error handling with try/catch. Parallel async operations with Promise.all.",
|
|
250
|
+
"category": "core",
|
|
251
|
+
"zeroTolerance": false,
|
|
252
|
+
"enforcementLevel": "medium"
|
|
253
|
+
},
|
|
254
|
+
"32": {
|
|
255
|
+
"number": 32,
|
|
256
|
+
"title": "Proper Error Handling",
|
|
257
|
+
"description": "Never ignore errors. Provide context in error messages. Log errors for debugging. Implement retry logic for transient failures.",
|
|
258
|
+
"category": "core",
|
|
259
|
+
"zeroTolerance": true,
|
|
260
|
+
"enforcementLevel": "blocking"
|
|
261
|
+
},
|
|
262
|
+
"33": {
|
|
263
|
+
"number": 33,
|
|
264
|
+
"title": "Logging and Monitoring",
|
|
265
|
+
"description": "Log important events and errors. Use structured logging. Monitor performance metrics. Set up error tracking.",
|
|
266
|
+
"category": "operations",
|
|
267
|
+
"zeroTolerance": false,
|
|
268
|
+
"enforcementLevel": "medium"
|
|
269
|
+
},
|
|
270
|
+
"34": {
|
|
271
|
+
"number": 34,
|
|
272
|
+
"title": "Documentation Updates",
|
|
273
|
+
"description": "Update README when adding features. Document API endpoints. Include inline comments for complex logic. Keep architecture diagrams current.",
|
|
274
|
+
"category": "documentation",
|
|
275
|
+
"zeroTolerance": false,
|
|
276
|
+
"enforcementLevel": "medium"
|
|
277
|
+
},
|
|
278
|
+
"35": {
|
|
279
|
+
"number": 35,
|
|
280
|
+
"title": "Version Control Best Practices",
|
|
281
|
+
"description": "Atomic commits. Descriptive commit messages. Use feature branches. Pull requests for code review.",
|
|
282
|
+
"category": "process",
|
|
283
|
+
"zeroTolerance": false,
|
|
284
|
+
"enforcementLevel": "medium"
|
|
285
|
+
},
|
|
286
|
+
"36": {
|
|
287
|
+
"number": 36,
|
|
288
|
+
"title": "Continuous Integration",
|
|
289
|
+
"description": "Automated testing on every commit. Linting and formatting checks. Build verification. Fast feedback on quality.",
|
|
290
|
+
"category": "ci-cd",
|
|
291
|
+
"zeroTolerance": false,
|
|
292
|
+
"enforcementLevel": "high"
|
|
293
|
+
},
|
|
294
|
+
"37": {
|
|
295
|
+
"number": 37,
|
|
296
|
+
"title": "Configuration Management",
|
|
297
|
+
"description": "Environment variables for secrets. Config files for environment-specific settings. Never commit secrets. Validate configuration on startup.",
|
|
298
|
+
"category": "operations",
|
|
299
|
+
"zeroTolerance": false,
|
|
300
|
+
"enforcementLevel": "high"
|
|
301
|
+
},
|
|
302
|
+
"38": {
|
|
303
|
+
"number": 38,
|
|
304
|
+
"title": "Functionality Retention",
|
|
305
|
+
"description": "Preserve existing functionality when refactoring. Regression testing before changes. Maintain backward compatibility when possible.",
|
|
306
|
+
"category": "testing",
|
|
307
|
+
"zeroTolerance": true,
|
|
308
|
+
"enforcementLevel": "blocking"
|
|
309
|
+
},
|
|
310
|
+
"39": {
|
|
311
|
+
"number": 39,
|
|
312
|
+
"title": "Avoid Syntax Errors",
|
|
313
|
+
"description": "Code must compile without errors. No syntax violations. No broken builds. TypeScript compilation must succeed.",
|
|
314
|
+
"category": "core",
|
|
315
|
+
"zeroTolerance": true,
|
|
316
|
+
"enforcementLevel": "blocking"
|
|
317
|
+
},
|
|
318
|
+
"40": {
|
|
319
|
+
"number": 40,
|
|
320
|
+
"title": "Modular Design",
|
|
321
|
+
"description": "Clear module boundaries. Low coupling, high cohesion. Reusable components. Pluggable architecture.",
|
|
322
|
+
"category": "architecture",
|
|
323
|
+
"zeroTolerance": false,
|
|
324
|
+
"enforcementLevel": "medium"
|
|
325
|
+
},
|
|
326
|
+
"41": {
|
|
327
|
+
"number": 41,
|
|
328
|
+
"title": "State Management Patterns",
|
|
329
|
+
"description": "Choose appropriate state management. Keep state as close to where it's used as possible. Minimize global state. Derive computed state.",
|
|
330
|
+
"category": "architecture",
|
|
331
|
+
"zeroTolerance": false,
|
|
332
|
+
"enforcementLevel": "medium"
|
|
333
|
+
},
|
|
334
|
+
"42": {
|
|
335
|
+
"number": 42,
|
|
336
|
+
"title": "Code Review Standards",
|
|
337
|
+
"description": "At least one reviewer for all changes. Focus on correctness, not style. Verify tests are added. Check documentation updates.",
|
|
338
|
+
"category": "process",
|
|
339
|
+
"zeroTolerance": false,
|
|
340
|
+
"enforcementLevel": "medium"
|
|
341
|
+
},
|
|
342
|
+
"43": {
|
|
343
|
+
"number": 43,
|
|
344
|
+
"title": "Deployment Safety",
|
|
345
|
+
"description": "Zero-downtime deployments. Feature flags for risky changes. Rollback capability. Monitor deployments closely.",
|
|
346
|
+
"category": "ci-cd",
|
|
347
|
+
"zeroTolerance": false,
|
|
348
|
+
"enforcementLevel": "high"
|
|
349
|
+
},
|
|
350
|
+
"44": {
|
|
351
|
+
"number": 44,
|
|
352
|
+
"title": "Infrastructure as Code Validation",
|
|
353
|
+
"description": "All infrastructure and configuration files must be validated. YAML/JSON syntax validation. Configuration file linting. Schema validation.",
|
|
354
|
+
"category": "infrastructure",
|
|
355
|
+
"zeroTolerance": false,
|
|
356
|
+
"enforcementLevel": "high"
|
|
357
|
+
},
|
|
358
|
+
"45": {
|
|
359
|
+
"number": 45,
|
|
360
|
+
"title": "Test Execution Optimization",
|
|
361
|
+
"description": "Test execution must be optimized. Run unit tests with multiple workers. Stop execution if 5+ tests fail. Use chunked output processing.",
|
|
362
|
+
"category": "testing",
|
|
363
|
+
"zeroTolerance": false,
|
|
364
|
+
"enforcementLevel": "medium"
|
|
365
|
+
},
|
|
366
|
+
"46": {
|
|
367
|
+
"number": 46,
|
|
368
|
+
"title": "Import Consistency",
|
|
369
|
+
"description": "All imports must use consistent patterns. No mixed import styles. Use absolute imports with aliased paths. No relative path confusion.",
|
|
370
|
+
"category": "quality",
|
|
371
|
+
"zeroTolerance": true,
|
|
372
|
+
"enforcementLevel": "blocking"
|
|
373
|
+
},
|
|
374
|
+
"47": {
|
|
375
|
+
"number": 47,
|
|
376
|
+
"title": "Module System Consistency",
|
|
377
|
+
"description": "Use consistent module system throughout. No mixing CommonJS and ESM. Use .js for JS modules, .mjs for ESM. Consistent file extensions.",
|
|
378
|
+
"category": "quality",
|
|
379
|
+
"zeroTolerance": true,
|
|
380
|
+
"enforcementLevel": "blocking"
|
|
381
|
+
},
|
|
382
|
+
"48": {
|
|
383
|
+
"number": 48,
|
|
384
|
+
"title": "Regression Prevention",
|
|
385
|
+
"description": "All changes must preserve existing functionality. Run full test suite before completion. Verify no functionality is broken. Validate integration points.",
|
|
386
|
+
"category": "testing",
|
|
387
|
+
"zeroTolerance": true,
|
|
388
|
+
"enforcementLevel": "blocking"
|
|
389
|
+
},
|
|
390
|
+
"49": {
|
|
391
|
+
"number": 49,
|
|
392
|
+
"title": "Comprehensive Validation",
|
|
393
|
+
"description": "Validate all changes against multiple criteria. Syntax, type safety, tests, security. No single-point validation failures.",
|
|
394
|
+
"category": "validation",
|
|
395
|
+
"zeroTolerance": false,
|
|
396
|
+
"enforcementLevel": "high"
|
|
397
|
+
},
|
|
398
|
+
"50": {
|
|
399
|
+
"number": 50,
|
|
400
|
+
"title": "Self-Healing Validation",
|
|
401
|
+
"description": "Automated systems must detect and recover from failures. Self-correction mechanisms for common errors. Automatic retry with backoff.",
|
|
402
|
+
"category": "resilience",
|
|
403
|
+
"zeroTolerance": false,
|
|
404
|
+
"enforcementLevel": "medium"
|
|
405
|
+
},
|
|
406
|
+
"51": {
|
|
407
|
+
"number": 51,
|
|
408
|
+
"title": "Graceful Degradation",
|
|
409
|
+
"description": "Systems must handle failures gracefully. Provide meaningful error messages. Fallback behavior when primary path fails.",
|
|
410
|
+
"category": "resilience",
|
|
411
|
+
"zeroTolerance": false,
|
|
412
|
+
"enforcementLevel": "high"
|
|
413
|
+
},
|
|
414
|
+
"52": {
|
|
415
|
+
"number": 52,
|
|
416
|
+
"title": "Agent Spawn Governance",
|
|
417
|
+
"description": "All agent spawning must go through the AgentSpawnGovernor. No unauthorized agent creation. All spawns must be authorized, tracked, and monitored. Rate limits and concurrent limits must be enforced.",
|
|
418
|
+
"category": "governance",
|
|
419
|
+
"zeroTolerance": true,
|
|
420
|
+
"enforcementLevel": "blocking"
|
|
421
|
+
},
|
|
422
|
+
"53": {
|
|
423
|
+
"number": 53,
|
|
424
|
+
"title": "Subagent Spawning Prevention",
|
|
425
|
+
"description": "Subagents cannot spawn other subagents. Only the main orchestrator may spawn agents. Prevents infinite loops and resource exhaustion. Violations result in immediate termination.",
|
|
426
|
+
"category": "governance",
|
|
427
|
+
"zeroTolerance": true,
|
|
428
|
+
"enforcementLevel": "blocking"
|
|
429
|
+
},
|
|
430
|
+
"54": {
|
|
431
|
+
"number": 54,
|
|
432
|
+
"title": "Concurrent Agent Limits",
|
|
433
|
+
"description": "Maximum concurrent agents must be limited. Default limit: 8 total concurrent. Per-agent type limits enforced. Exceeding limits requires authorization.",
|
|
434
|
+
"category": "governance",
|
|
435
|
+
"zeroTolerance": true,
|
|
436
|
+
"enforcementLevel": "blocking"
|
|
437
|
+
},
|
|
438
|
+
"55": {
|
|
439
|
+
"number": 55,
|
|
440
|
+
"title": "Emergency Memory Cleanup",
|
|
441
|
+
"description": "Automatic cleanup when memory threshold exceeded. Emergency threshold: 80MB. Trigger cleanup when exceeded. Log all cleanup actions.",
|
|
442
|
+
"category": "governance",
|
|
443
|
+
"zeroTolerance": false,
|
|
444
|
+
"enforcementLevel": "high"
|
|
445
|
+
},
|
|
446
|
+
"56": {
|
|
447
|
+
"number": 56,
|
|
448
|
+
"title": "Infinite Spawn Pattern Detection",
|
|
449
|
+
"description": "Detect and prevent recursive spawning patterns. Monitor spawn history. Block patterns that indicate infinite recursion. Log all blocked attempts.",
|
|
450
|
+
"category": "governance",
|
|
451
|
+
"zeroTolerance": true,
|
|
452
|
+
"enforcementLevel": "blocking"
|
|
453
|
+
},
|
|
454
|
+
"57": {
|
|
455
|
+
"number": 57,
|
|
456
|
+
"title": "Spawn Rate Limiting",
|
|
457
|
+
"description": "Limit on how many agents can spawn per time window. Prevents rapid spawn accumulation. Requires cooldown period between spawns.",
|
|
458
|
+
"category": "governance",
|
|
459
|
+
"zeroTolerance": true,
|
|
460
|
+
"enforcementLevel": "blocking"
|
|
461
|
+
},
|
|
462
|
+
"58": {
|
|
463
|
+
"number": 58,
|
|
464
|
+
"title": "PostProcessor Validation Chain",
|
|
465
|
+
"description": "All code changes must pass through PostProcessor validation. Pre-deployment validation required. Security scanning required. Regression detection required.",
|
|
466
|
+
"category": "governance",
|
|
467
|
+
"zeroTolerance": true,
|
|
468
|
+
"enforcementLevel": "blocking"
|
|
469
|
+
},
|
|
470
|
+
"59": {
|
|
471
|
+
"number": 59,
|
|
472
|
+
"title": "Multi-Agent Coordination",
|
|
473
|
+
"description": "Complex tasks require multi-agent coordination through orchestrator. Direct agent-to-agent communication prohibited. All coordination through coordinator.",
|
|
474
|
+
"category": "governance",
|
|
475
|
+
"zeroTolerance": false,
|
|
476
|
+
"enforcementLevel": "high"
|
|
477
|
+
},
|
|
478
|
+
"60": {
|
|
479
|
+
"number": 60,
|
|
480
|
+
"title": "Regression Analysis Integration",
|
|
481
|
+
"description": "Changes must be analyzed for regression potential. Cascade pattern detection. Code removal attempt detection. AI degradation pattern detection.",
|
|
482
|
+
"category": "governance",
|
|
483
|
+
"zeroTolerance": false,
|
|
484
|
+
"enforcementLevel": "high"
|
|
485
|
+
},
|
|
486
|
+
"61": {
|
|
487
|
+
"number": 61,
|
|
488
|
+
"title": "Do One Thing at a Time",
|
|
489
|
+
"description": "Focus on a single task until completion. Do not multitask or juggle multiple changes simultaneously. Complete one fix, feature, or refactor before starting the next. Context switching reduces quality and increases error rate.",
|
|
490
|
+
"category": "process",
|
|
491
|
+
"zeroTolerance": false,
|
|
492
|
+
"enforcementLevel": "high"
|
|
493
|
+
},
|
|
494
|
+
"62": {
|
|
495
|
+
"number": 62,
|
|
496
|
+
"title": "Triage. Fix. Loop.",
|
|
497
|
+
"description": "When addressing issues: first triage to assess scope and severity, then fix the root cause, then loop back to verify. Never skip triage. Never fix without verification. Repeat for each issue independently.",
|
|
498
|
+
"category": "process",
|
|
499
|
+
"zeroTolerance": false,
|
|
500
|
+
"enforcementLevel": "high"
|
|
501
|
+
},
|
|
502
|
+
"63": {
|
|
503
|
+
"number": 63,
|
|
504
|
+
"title": "Watch Commands for Errors",
|
|
505
|
+
"description": "Always monitor command output for errors, warnings, and unexpected behavior. Do not assume success based on exit codes alone. Read stderr and stdout for clues. Investigate any unexpected output before proceeding.",
|
|
506
|
+
"category": "core",
|
|
507
|
+
"zeroTolerance": true,
|
|
508
|
+
"enforcementLevel": "blocking"
|
|
509
|
+
},
|
|
510
|
+
"64": {
|
|
511
|
+
"number": 64,
|
|
512
|
+
"title": "Always Add .gitignore",
|
|
513
|
+
"description": "Every project must have an appropriate .gitignore file covering build artifacts, dependencies, environment files, OS files, IDE files, and runtime-generated files. Never commit generated, transient, or sensitive files.",
|
|
514
|
+
"category": "operations",
|
|
515
|
+
"zeroTolerance": false,
|
|
516
|
+
"enforcementLevel": "high"
|
|
517
|
+
},
|
|
518
|
+
"65": {
|
|
519
|
+
"number": 65,
|
|
520
|
+
"title": "Write Tests for New Code or Functions",
|
|
521
|
+
"description": "Any new code, function, module, or component must have corresponding tests. Unit tests for pure logic, integration tests for boundaries. No production code without test coverage. Tests must validate behavior, not implementation.",
|
|
522
|
+
"category": "testing",
|
|
523
|
+
"zeroTolerance": false,
|
|
524
|
+
"enforcementLevel": "high"
|
|
525
|
+
},
|
|
526
|
+
"66": {
|
|
527
|
+
"number": 66,
|
|
528
|
+
"title": "Modular Integration and E2E Tests",
|
|
529
|
+
"description": "Write integration and end-to-end tests in a modular, independently-runnable fashion so each test can be individually triaged and fixed. Run the full battery of integration/E2E tests only after major subsystem development, builds, commits, or releases. During active development, run only the relevant subset for fast feedback.",
|
|
530
|
+
"category": "testing",
|
|
531
|
+
"zeroTolerance": false,
|
|
532
|
+
"enforcementLevel": "high"
|
|
533
|
+
},
|
|
534
|
+
"67": {
|
|
535
|
+
"number": 67,
|
|
536
|
+
"title": "Use Best Subagents, Reuse Session Context",
|
|
537
|
+
"description": "Delegate work to the best-suited subagent for each task. Stay responsive to user inquiries, additional todos, and course corrections. Reuse the same subagent via session ID to preserve context and avoid restarting from zero. Do not spawn fresh agents when an existing one has the relevant context.",
|
|
538
|
+
"category": "process",
|
|
539
|
+
"zeroTolerance": false,
|
|
540
|
+
"enforcementLevel": "high"
|
|
541
|
+
},
|
|
542
|
+
"68": {
|
|
543
|
+
"number": 68,
|
|
544
|
+
"title": "Lead Dev Mindset — Ownership to Completion",
|
|
545
|
+
"description": "Act as the lead developer. Take ownership. Implement production-ready code without asking for permission or confirmation. Loop, iterate, and test until fully functional. Do not ask questions — make decisions and execute. Deliver complete, tested solutions.",
|
|
546
|
+
"category": "process",
|
|
547
|
+
"zeroTolerance": false,
|
|
548
|
+
"enforcementLevel": "high"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"interweaves": [
|
|
552
|
+
"Error Prevention Interweave",
|
|
553
|
+
"Performance Interweave",
|
|
554
|
+
"Security Interweave",
|
|
555
|
+
"Governance Interweave"
|
|
556
|
+
],
|
|
557
|
+
"lenses": [
|
|
558
|
+
"Code Quality Lens",
|
|
559
|
+
"Maintainability Lens",
|
|
560
|
+
"Performance Lens",
|
|
561
|
+
"Governance Lens"
|
|
562
|
+
],
|
|
563
|
+
"principles": [
|
|
564
|
+
"SOLID Principles",
|
|
565
|
+
"DRY Principles",
|
|
566
|
+
"KISS Principles",
|
|
567
|
+
"YAGNI Principles"
|
|
568
|
+
],
|
|
569
|
+
"antiPatterns": [
|
|
570
|
+
"Spaghetti code",
|
|
571
|
+
"Lasagna code",
|
|
572
|
+
"Ravioli code",
|
|
573
|
+
"Tight coupling",
|
|
574
|
+
"Circular dependencies",
|
|
575
|
+
"Golden hammer",
|
|
576
|
+
"Cowboy coding"
|
|
577
|
+
],
|
|
578
|
+
"validationCriteria": {
|
|
579
|
+
"All functions have implementations": true,
|
|
580
|
+
"No TODO comments in production code": true,
|
|
581
|
+
"All error paths are handled": true,
|
|
582
|
+
"Edge cases are covered": true,
|
|
583
|
+
"TypeScript compilation succeeds": true,
|
|
584
|
+
"Tests pass (unit, integration, E2E)": true,
|
|
585
|
+
"Integration and E2E tests are modular and individually triageable": true,
|
|
586
|
+
"Subagent selection uses best fit with context reuse": true,
|
|
587
|
+
"Lead dev ownership drives code to completion": true,
|
|
588
|
+
"No security vulnerabilities": true,
|
|
589
|
+
"No type errors or any usage": true,
|
|
590
|
+
"Agent spawns go through governor": true,
|
|
591
|
+
"Subagent spawning prevented": true,
|
|
592
|
+
"PostProcessor validation passes": true
|
|
593
|
+
},
|
|
594
|
+
"frameworkAlignment": {
|
|
595
|
+
"OpenCode": "v1.1.1",
|
|
596
|
+
"0xRay": "v2.0.0"
|
|
597
|
+
}
|
|
598
|
+
}
|
package/xray/config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./config.schema.json",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "0xRay Framework - Token Management & Performance Configuration",
|
|
5
|
+
"token_management": {
|
|
6
|
+
"maxPromptTokens": 20000,
|
|
7
|
+
"warningThreshold": 15000,
|
|
8
|
+
"modelLimits": {},
|
|
9
|
+
"contextPruning": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"aggressivePruning": true,
|
|
12
|
+
"preserveCriticalContext": true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"cache_settings": {
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"max_size_mb": 25,
|
|
18
|
+
"ttl_seconds": 120,
|
|
19
|
+
"auto_cleanup_interval_seconds": 60
|
|
20
|
+
},
|
|
21
|
+
"memory_management": {
|
|
22
|
+
"max_heap_mb": 512,
|
|
23
|
+
"gc_interval_ms": 30000,
|
|
24
|
+
"force_gc_on_threshold": true
|
|
25
|
+
}
|
|
26
|
+
}
|