0xray 3.0.9 → 3.0.10
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/.plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/dist/CHANGELOG.md +8 -0
- package/dist/README.md +2 -2
- package/dist/analytics/routing-refiner.js +1 -1
- package/dist/core/boot-orchestrator.js +2 -2
- package/dist/core/features-config.js +1 -1
- package/dist/enforcement/loaders/agents-md-validation-loader.js +2 -2
- package/dist/mcps/governance.server.js +1 -1
- package/dist/mcps/knowledge-skills/tech-writer.server.js +1 -1
- package/dist/mcps/registry.json +1 -1
- package/dist/processors/implementations/agents-md-validation-processor.js +1 -1
- package/dist/skills/registry.json +1 -1
- package/package.json +1 -2
- package/scripts/node/enforce-agents-md.mjs +2 -2
- package/scripts/node/postinstall.cjs +4 -4
- package/scripts/node/pre-publish-guard.js +1 -1
- package/scripts/node/setup.cjs +10 -0
- package/scripts/node/universal-version-manager.js +7 -7
- package/src/mcps/governance.server.ts +1 -1
- package/src/mcps/knowledge-skills/tech-writer.server.ts +1 -1
- package/src/mcps/registry.json +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/registry.json +1 -1
- package/xray/agents_template.md +34 -94
- package/xray/codex.json +1 -1
- package/xray/config.json +1 -1
- package/xray/features.json +1 -1
- package/xray/integrations.json +3 -3
package/.opencode/codex.codex
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0.
|
|
2
|
+
"version": "3.0.9",
|
|
3
3
|
"terms": [
|
|
4
4
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68
|
|
5
5
|
],
|
|
@@ -69,7 +69,7 @@ Comprehensive dependency analysis and security audit for all project dependencie
|
|
|
69
69
|
"vulnerabilities": [
|
|
70
70
|
{
|
|
71
71
|
"package": "lodash",
|
|
72
|
-
"version": "3.0.
|
|
72
|
+
"version": "3.0.9",
|
|
73
73
|
"severity": "high",
|
|
74
74
|
"cve": "CVE-2021-23337",
|
|
75
75
|
"description": "Command injection vulnerability"
|
|
@@ -85,14 +85,14 @@ Security-focused format for CI/CD integration:
|
|
|
85
85
|
|
|
86
86
|
```json
|
|
87
87
|
{
|
|
88
|
-
"version": "3.0.
|
|
88
|
+
"version": "3.0.9",
|
|
89
89
|
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
|
|
90
90
|
"runs": [
|
|
91
91
|
{
|
|
92
92
|
"tool": {
|
|
93
93
|
"driver": {
|
|
94
94
|
"name": "Dependency Audit",
|
|
95
|
-
"version": "3.0.
|
|
95
|
+
"version": "3.0.9"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"results": [...]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "xray 3.0",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Codex-compliant framework configuration for Credible UI project",
|
|
5
5
|
"thresholds": {
|
|
6
6
|
"bundleSize": {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
"codex": {
|
|
223
|
-
"version": "3.0.
|
|
223
|
+
"version": "3.0.9",
|
|
224
224
|
"terms": [
|
|
225
225
|
1,
|
|
226
226
|
2,
|
package/.plugin/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "0xray",
|
|
3
3
|
"name": "0xRay",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.9",
|
|
5
5
|
"description": "Multi-agent orchestration, Codex governance, and AI-powered development tools. 13 MCP tools (code review, security audit, API design, database design, project analysis, testing, performance, UI/UX, DevOps, documentation, storytelling) plus 44 knowledge skills for best-practice guidance across the full software development lifecycle.",
|
|
6
6
|
"author": "0xRay AI",
|
|
7
7
|
"homepage": "https://github.com/0xRayAI/xray",
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 0xRay — Self-Healing AI Governance OS
|
|
2
2
|
|
|
3
|
-
**v3.0.
|
|
3
|
+
**v3.0.10** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
|
|
4
4
|
|
|
5
5
|
[](https://0xrayai.github.io/xray/)
|
|
6
6
|
|
|
@@ -180,7 +180,7 @@ Every subsystem is configurable via `features.json` (located at `xray/features.j
|
|
|
180
180
|
|
|
181
181
|
```json
|
|
182
182
|
{
|
|
183
|
-
"version": "3.0.
|
|
183
|
+
"version": "3.0.9",
|
|
184
184
|
"token_optimization": {
|
|
185
185
|
"enabled": true,
|
|
186
186
|
"max_context_tokens": 20000,
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Conventional Commits](https://www.conventionalcommits.org/).
|
|
6
6
|
|
|
7
|
+
## [3.0.10] - 2026-06-13
|
|
8
|
+
|
|
9
|
+
### 🔄 Changes
|
|
10
|
+
|
|
11
|
+
- Version bump
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
7
15
|
## [3.0.9] - 2026-06-13
|
|
8
16
|
|
|
9
17
|
### 🔄 Changes
|
package/dist/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 0xRay — Self-Healing AI Governance OS
|
|
2
2
|
|
|
3
|
-
**v3.0.
|
|
3
|
+
**v3.0.10** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
|
|
4
4
|
|
|
5
5
|
[](https://0xrayai.github.io/xray/)
|
|
6
6
|
|
|
@@ -180,7 +180,7 @@ Every subsystem is configurable via `features.json` (located at `xray/features.j
|
|
|
180
180
|
|
|
181
181
|
```json
|
|
182
182
|
{
|
|
183
|
-
"version": "3.0.
|
|
183
|
+
"version": "3.0.9",
|
|
184
184
|
"token_optimization": {
|
|
185
185
|
"enabled": true,
|
|
186
186
|
"max_context_tokens": 20000,
|
|
@@ -36,7 +36,7 @@ class RoutingRefiner {
|
|
|
36
36
|
const optimizations = this.suggestMappingOptimizations(promptAnalysis, performanceReport);
|
|
37
37
|
const warnings = this.generateWarnings(newMappings, optimizations);
|
|
38
38
|
return {
|
|
39
|
-
version: "3.0.
|
|
39
|
+
version: "3.0.9",
|
|
40
40
|
generatedAt: new Date(),
|
|
41
41
|
summary: {
|
|
42
42
|
newMappings: newMappings.length,
|
|
@@ -717,9 +717,9 @@ export class BootOrchestrator {
|
|
|
717
717
|
try {
|
|
718
718
|
// Consumer runtime compat (XRAY_ env + .xray fallbacks)
|
|
719
719
|
const xrayConfig = {
|
|
720
|
-
version: "3.0.
|
|
720
|
+
version: "3.0.9",
|
|
721
721
|
codex_enabled: true,
|
|
722
|
-
codex_version: "v3.0.
|
|
722
|
+
codex_version: "v3.0.8",
|
|
723
723
|
codex_terms: [
|
|
724
724
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
725
725
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
|
@@ -130,7 +130,7 @@ export class AgentsMdValidationLoader extends BaseLoader {
|
|
|
130
130
|
passed: false,
|
|
131
131
|
message: "AGENTS.md not found in project root",
|
|
132
132
|
suggestions: [
|
|
133
|
-
"Create AGENTS.md using template from
|
|
133
|
+
"Create AGENTS.md using template from xray/agents_template.md",
|
|
134
134
|
"Run: node scripts/node/enforce-agents-md.js --generate",
|
|
135
135
|
"See AGENTS.md for agent triage rules and codex compliance",
|
|
136
136
|
],
|
|
@@ -233,7 +233,7 @@ export class AgentsMdValidationLoader extends BaseLoader {
|
|
|
233
233
|
message: `AGENTS.md missing required sections: ${missingSections.join(", ")}`,
|
|
234
234
|
suggestions: [
|
|
235
235
|
"Add missing sections to AGENTS.md",
|
|
236
|
-
"Reference
|
|
236
|
+
"Reference xray/agents_template.md for structure",
|
|
237
237
|
],
|
|
238
238
|
};
|
|
239
239
|
}
|
|
@@ -595,7 +595,7 @@ class XrayDocumentationGenerationServer extends XrayKnowledgeSkillBase {
|
|
|
595
595
|
openapi: "3.0.0",
|
|
596
596
|
info: {
|
|
597
597
|
title: "API Documentation",
|
|
598
|
-
version: "3.0.
|
|
598
|
+
version: "3.0.9",
|
|
599
599
|
description: "Generated API documentation",
|
|
600
600
|
},
|
|
601
601
|
servers: [
|
package/dist/mcps/registry.json
CHANGED
|
@@ -125,7 +125,7 @@ export class AgentsMdValidationProcessor {
|
|
|
125
125
|
result.valid = false;
|
|
126
126
|
result.errors.push("AGENTS.md not found in project root");
|
|
127
127
|
result.fixes = result.fixes || [];
|
|
128
|
-
result.fixes.push("Create AGENTS.md using template from
|
|
128
|
+
result.fixes.push("Create AGENTS.md using template from xray/agents_template.md");
|
|
129
129
|
return result;
|
|
130
130
|
}
|
|
131
131
|
const content = fs.readFileSync(this.agentsPath, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "0xray",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "Multi-agent orchestration and Codex governance for OpenCode, Hermes, Grok Build, and OpenClaw",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -144,7 +144,6 @@
|
|
|
144
144
|
"scripts/mjs/validate-mcp-connectivity.cjs",
|
|
145
145
|
"scripts/mjs/validate-postinstall-config.mjs",
|
|
146
146
|
"src/opencode/",
|
|
147
|
-
"src/opencode/AGENTS-consumer.md",
|
|
148
147
|
"src/opencode/codex.codex",
|
|
149
148
|
"src/opencode/commands/",
|
|
150
149
|
"src/opencode/enforcer-config.json",
|
|
@@ -297,7 +297,7 @@ class AgentsMdEnforcer {
|
|
|
297
297
|
console.log('❌ AGENTS.md is MISSING');
|
|
298
298
|
console.log('\n💡 To fix:');
|
|
299
299
|
console.log(' 1. Create AGENTS.md in project root');
|
|
300
|
-
console.log(' 2. Copy template from
|
|
300
|
+
console.log(' 2. Copy template from xray/agents_template.md');
|
|
301
301
|
console.log(' 3. Customize for your project');
|
|
302
302
|
} else {
|
|
303
303
|
console.log('❌ AGENTS.md validation FAILED');
|
|
@@ -328,7 +328,7 @@ class AgentsMdEnforcer {
|
|
|
328
328
|
* Load template file
|
|
329
329
|
*/
|
|
330
330
|
async loadTemplate() {
|
|
331
|
-
const templatePath = path.join(__dirname, '..', '..', '
|
|
331
|
+
const templatePath = path.join(__dirname, '..', '..', 'xray', 'agents_template.md');
|
|
332
332
|
if (fs.existsSync(templatePath)) {
|
|
333
333
|
return fs.readFileSync(templatePath, 'utf-8');
|
|
334
334
|
}
|
|
@@ -31,11 +31,11 @@ const resolvedTarget = path.resolve(targetDir);
|
|
|
31
31
|
|
|
32
32
|
const SKIP_DIRS = new Set(["node_modules", "logs"]);
|
|
33
33
|
|
|
34
|
-
// Copy
|
|
35
|
-
const
|
|
34
|
+
// Copy xray/agents_template.md → AGENTS.md (consumer only)
|
|
35
|
+
const agentsTemplate = path.join(packageRoot, "xray", "agents_template.md");
|
|
36
36
|
const agentsDest = path.join(targetDir, "AGENTS.md");
|
|
37
|
-
if (fs.existsSync(
|
|
38
|
-
fs.copyFileSync(
|
|
37
|
+
if (fs.existsSync(agentsTemplate) && resolvedPackage !== resolvedTarget && !fs.existsSync(agentsDest)) {
|
|
38
|
+
fs.copyFileSync(agentsTemplate, agentsDest);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Register MCP servers with Grok CLI (if available) using absolute paths to installed dist
|
package/scripts/node/setup.cjs
CHANGED
|
@@ -72,6 +72,16 @@ try {
|
|
|
72
72
|
}
|
|
73
73
|
} catch (e) { console.warn(`⚠️ logs/framework/: ${e.message}`); }
|
|
74
74
|
|
|
75
|
+
// 0c. Deploy AGENTS.md template for consumer if none exists
|
|
76
|
+
const agentsTemplate = path.join(packageRoot, "xray", "agents_template.md");
|
|
77
|
+
const agentsDest = path.join(targetDir, "AGENTS.md");
|
|
78
|
+
if (fs.existsSync(agentsTemplate) && !fs.existsSync(agentsDest)) {
|
|
79
|
+
try {
|
|
80
|
+
fs.copyFileSync(agentsTemplate, agentsDest);
|
|
81
|
+
console.log("✅ AGENTS.md: deployed template (consumer)");
|
|
82
|
+
} catch (e) { console.warn(`⚠️ AGENTS.md deploy: ${e.message}`); }
|
|
83
|
+
}
|
|
84
|
+
|
|
75
85
|
/* 1. Sync core skills from src/skills/ (dev) or dist/skills/ (consumer) → .opencode/skills/ [P3-SKILLS-DE-DUP-SCOPE-AND-EXEC-01: orchestrator package SSOT canonical src/skills/orchestrator/SKILL.md; mirror .opencode/skills/orchestrator/ is built output of this logic; see paired guarded fw in status.ts getSkillsList + mapping append + deep ref 2026-05-26 authority for one-package dedup under pivoted surgical plan]
|
|
76
86
|
[P3-SKILLS-DE-DUP-RESEARCHER-FOLLOW-01: researcher package SSOT canonical src/skills/researcher/SKILL.md (high-value per deep ref + YML precedent + playbook P3-SKILLS-FOLLOW-01); mirror .opencode/skills/researcher/ is built output of this logic; see paired guarded fw in status.ts + rich append + YML @ harness-codex verification (FORCE exercised P3-YML + codex-enforcement + 100/60/0 + 3 subagents tracked + 0 hot + 3-hot re-establish + all prior green) + deep ref 2026-05-26 + Phase 3 Pivot + Term 61 + user's "create a todo list. spawn subagents..." + 6/6+7/7 + YML. Governance-visible hook for skills SSOT at install layer. Silent, additive, reversible, no behavior change, fw/echo only.]
|
|
77
87
|
[P3-SKILLS-FOLLOW-02: code-review package SSOT canonical src/skills/code-review/SKILL.md (next high-value per deep ref "parallel small batches" + @architect scoping rec 2 + YML @ "Ready for next" + this P3-SKILLS-FOLLOW-02 on user's spawn command); mirror .opencode/skills/code-review/ is built output of this logic; see paired guarded fw "P3-SKILLS-FOLLOW-02-code-review-ssot-preferred" in status.ts (after researcher) + rich append docs/reflections/p3-skills-follow-02-code-review-2026-05-27.md + YML @ harness-codex verification + 0 hot + 3-hot + all ties + ps 0 + this work (2-file surgical edit, harness post, mapping append after latest ~17099+, todo advance 1, spawn replacement, self-audit 100%, green + ready) + deep ref 2026-05-26 + Phase 3 Pivot + Term 61 + 6/6+7/7 + YML. Governance-visible hook for skills SSOT at install layer for code-review. Silent, additive, reversible, no behavior change, fw/echo only. "The box contains its builders. The relay is hot."] */
|
|
@@ -147,7 +147,7 @@ function detectCodexInfo() {
|
|
|
147
147
|
return { version: cver.startsWith("v") ? cver : `v${cver}`, termsCount: termCount, lastUpdated: new Date().toISOString().split("T")[0] };
|
|
148
148
|
} catch {}
|
|
149
149
|
}
|
|
150
|
-
return { version: "v3.0.
|
|
150
|
+
return { version: "v3.0.8", termsCount: 68, lastUpdated: new Date().toISOString().split("T")[0] };
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
const detectedCodex = detectCodexInfo();
|
|
@@ -155,7 +155,7 @@ const detectedCodex = detectCodexInfo();
|
|
|
155
155
|
const OFFICIAL_VERSIONS = {
|
|
156
156
|
// Framework version
|
|
157
157
|
framework: {
|
|
158
|
-
version: "3.0.
|
|
158
|
+
version: "3.0.10",
|
|
159
159
|
displayName: "xray: Self-Healing AI Governance OS",
|
|
160
160
|
lastUpdated: "2026-06-13",
|
|
161
161
|
// Counts (auto-calculated, but can be overridden)
|
|
@@ -403,7 +403,7 @@ const UPDATE_PATTERNS = [
|
|
|
403
403
|
pattern: /xray AI v[0-9]+\.[0-9]+\.[0-9]+/g,
|
|
404
404
|
replacement: `xray AI v${OFFICIAL_VERSIONS.framework.version}`,
|
|
405
405
|
},
|
|
406
|
-
// Footer bare version (e.g., "**Version**: 3.0.
|
|
406
|
+
// Footer bare version (e.g., "**Version**: 3.0.9")
|
|
407
407
|
{
|
|
408
408
|
pattern: /\*\*Version\*\*:\s*[0-9]+\.[0-9]+\.[0-9]+/g,
|
|
409
409
|
replacement: `**Version**: ${OFFICIAL_VERSIONS.framework.version}`,
|
|
@@ -702,8 +702,8 @@ const UPDATE_PATTERNS = [
|
|
|
702
702
|
const documentationFiles = [
|
|
703
703
|
"README.md",
|
|
704
704
|
"AGENTS.md",
|
|
705
|
-
"
|
|
706
|
-
|
|
705
|
+
"xray/agents_template.md",
|
|
706
|
+
"xray/agents_template.md",
|
|
707
707
|
"docs/reference/templates/agents_template.md",
|
|
708
708
|
"docs/reference/templates/master-agent-template.md",
|
|
709
709
|
"docs/reference/templates/agent-template-dev.md",
|
|
@@ -982,7 +982,7 @@ const UPDATE_PATTERNS = [
|
|
|
982
982
|
* =====================================
|
|
983
983
|
*
|
|
984
984
|
* ✅ COMPLETED FEATURES:
|
|
985
|
-
* - Comprehensive documentation management (AGENTS.md,
|
|
985
|
+
* - Comprehensive documentation management (AGENTS.md, xray/agents_template.md, etc.)
|
|
986
986
|
* - File categorization (critical, documentation, historical, test assertions)
|
|
987
987
|
* - Validation step for consistency checking
|
|
988
988
|
* - Changelog generation
|
|
@@ -998,7 +998,7 @@ const UPDATE_PATTERNS = [
|
|
|
998
998
|
*
|
|
999
999
|
* 📋 FILE CATEGORIES:
|
|
1000
1000
|
* - Critical: src/opencode/codex.codex, etc.
|
|
1001
|
-
* - Documentation: AGENTS.md,
|
|
1001
|
+
* - Documentation: AGENTS.md, xray/agents_template.md, docs/*.md
|
|
1002
1002
|
* - Historical: docs/reflections/, docs/archive/
|
|
1003
1003
|
* - Test Assertions: context-loader.test.ts, codex-parser.test.ts
|
|
1004
1004
|
*
|
|
@@ -888,7 +888,7 @@ class XrayDocumentationGenerationServer extends XrayKnowledgeSkillBase {
|
|
|
888
888
|
openapi: "3.0.0",
|
|
889
889
|
info: {
|
|
890
890
|
title: "API Documentation",
|
|
891
|
-
version: "3.0.
|
|
891
|
+
version: "3.0.9",
|
|
892
892
|
description: "Generated API documentation",
|
|
893
893
|
},
|
|
894
894
|
servers: [
|
package/src/mcps/registry.json
CHANGED
package/src/opencode/codex.codex
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0.
|
|
2
|
+
"version": "3.0.9",
|
|
3
3
|
"terms": [
|
|
4
4
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68
|
|
5
5
|
],
|
|
@@ -69,7 +69,7 @@ Comprehensive dependency analysis and security audit for all project dependencie
|
|
|
69
69
|
"vulnerabilities": [
|
|
70
70
|
{
|
|
71
71
|
"package": "lodash",
|
|
72
|
-
"version": "3.0.
|
|
72
|
+
"version": "3.0.9",
|
|
73
73
|
"severity": "high",
|
|
74
74
|
"cve": "CVE-2021-23337",
|
|
75
75
|
"description": "Command injection vulnerability"
|
|
@@ -85,14 +85,14 @@ Security-focused format for CI/CD integration:
|
|
|
85
85
|
|
|
86
86
|
```json
|
|
87
87
|
{
|
|
88
|
-
"version": "3.0.
|
|
88
|
+
"version": "3.0.9",
|
|
89
89
|
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
|
|
90
90
|
"runs": [
|
|
91
91
|
{
|
|
92
92
|
"tool": {
|
|
93
93
|
"driver": {
|
|
94
94
|
"name": "Dependency Audit",
|
|
95
|
-
"version": "3.0.
|
|
95
|
+
"version": "3.0.9"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"results": [...]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "xray 3.0",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Codex-compliant framework configuration for Credible UI project",
|
|
5
5
|
"thresholds": {
|
|
6
6
|
"bundleSize": {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
"codex": {
|
|
223
|
-
"version": "3.0.
|
|
223
|
+
"version": "3.0.9",
|
|
224
224
|
"terms": [
|
|
225
225
|
1,
|
|
226
226
|
2,
|
package/src/skills/registry.json
CHANGED
package/xray/agents_template.md
CHANGED
|
@@ -1,109 +1,49 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AGENTS.md — 0xRay Consumer Template
|
|
2
2
|
|
|
3
|
-
**
|
|
4
|
-
**
|
|
5
|
-
**Last Updated**: 2026-03-23
|
|
6
|
-
**Purpose**: Systematic error prevention and production-ready AI-assisted development
|
|
3
|
+
**Version**: 3.0.9
|
|
4
|
+
**Updated**: 2026-06-13
|
|
7
5
|
|
|
8
|
-
##
|
|
6
|
+
## What is 0xRay?
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
ALWAYS read the ENTIRE file using the `read` tool before ANY edit, refactor, or write.
|
|
12
|
-
Understand complete structure, imports, dependencies, and context.
|
|
13
|
-
Partial/contextual edits are strictly forbidden.
|
|
8
|
+
0xRay provides intelligent multi-agent orchestration with automatic delegation and Codex compliance validation under the pure three-subsystem model (Inference + External Governance via Dynamo + Autonomous Engine via thinDispatch 7-flow in MCP orchestrator). Agents operate via YML surfaces and MCP skill servers.
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
After every edit/write: use `read` to confirm the exact changes are present.
|
|
17
|
-
Check for regressions and unintended modifications.
|
|
18
|
-
NEVER declare success without observable verification.
|
|
10
|
+
## Available MCP Servers
|
|
19
11
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
| Server | Purpose |
|
|
13
|
+
|--------|---------|
|
|
14
|
+
| `xray-enforcer` | Codex compliance & error prevention |
|
|
15
|
+
| `xray-governance` | Proposal governance, codex snapshot |
|
|
16
|
+
| `xray-orchestrator` | thinDispatch 7-flow delegation routing |
|
|
17
|
+
| `xray-skills` | Skill invocation (code-review, security-audit, researcher, etc.) |
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
Only report "completed", "edited", or "fixed" after verification steps confirm success.
|
|
28
|
-
Prohibited: assuming success, subjective "looks correct", skipping checks for "trivial" changes.
|
|
19
|
+
## CLI Commands
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
```
|
|
22
|
+
npx 0xray setup Full framework configuration
|
|
23
|
+
npx 0xray validate Run Codex compliance validation
|
|
24
|
+
npx 0xray status Show framework status
|
|
25
|
+
npx 0xray install <mcp> Install MCP server (groks)
|
|
26
|
+
```
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
Resolve all errors before continuing (90%+ runtime prevention target).
|
|
36
|
-
Every loop/async must have clear termination/timeout.
|
|
28
|
+
## Governance
|
|
37
29
|
|
|
38
|
-
|
|
39
|
-
No `any`, `@ts-ignore`. Prefer immutable patterns and early returns/guards.
|
|
30
|
+
All actions are governed by the Universal Development Codex via Dynamo (External Governance SSOT). Governance precedes action.
|
|
40
31
|
|
|
41
|
-
|
|
42
|
-
No duplication. No unnecessary features. One responsibility per module/function.
|
|
32
|
+
## Logging
|
|
43
33
|
|
|
44
|
-
|
|
45
|
-
>85% behavioral coverage target. Respect bundle <2MB, FCP <2s budgets.
|
|
34
|
+
Use `fwLogger` / `frameworkLogger` structured logging only (never `console.*`). Logs go to `logs/framework/activity.log` + `.opencode/logs/`.
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
Validate/sanitize all inputs. Security by design.
|
|
36
|
+
## Architecture
|
|
49
37
|
|
|
50
|
-
|
|
38
|
+
- **Inference**: Session capture, pattern accumulation, governance triggers
|
|
39
|
+
- **External Governance**: Dynamo Solar SSOT via codex.json
|
|
40
|
+
- **Autonomous Engine**: thinDispatch 7-flow in MCP orchestrator
|
|
51
41
|
|
|
52
|
-
|
|
53
|
-
2. No patches/stubs/bridge code
|
|
54
|
-
3. Avoid over-engineering
|
|
55
|
-
4. Fit-for-purpose prod-level code
|
|
56
|
-
5. Surgical root-cause fixes
|
|
57
|
-
6. Batched introspection cycles
|
|
58
|
-
7. Resolve all errors (90% prevention)
|
|
59
|
-
8. Prevent infinite loops/timeouts
|
|
60
|
-
9. Shared global state / single source of truth
|
|
61
|
-
10. Type safety first (no `any`)
|
|
62
|
-
11. Early returns & guard clauses
|
|
63
|
-
12. Error boundaries & graceful degradation
|
|
64
|
-
13. Immutability preferred
|
|
65
|
-
14. Separation of concerns
|
|
66
|
-
15. DRY – eliminate duplication
|
|
67
|
-
16. YAGNI – no speculative features
|
|
68
|
-
17. Meaningful, self-documenting names
|
|
69
|
-
18. Small, focused functions (<30 lines ideal)
|
|
70
|
-
19. Consistent style (linter enforced)
|
|
71
|
-
20. Test coverage >85% (behavioral focus)
|
|
42
|
+
## Complexity Routing
|
|
72
43
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
| architect | Design & decisions | High | read, grep, lsp_*, background_task | Expert priority |
|
|
80
|
-
| bug-triage-specialist | Error investigation & fixes | Debug | read, grep, ast_grep_* | Majority vote |
|
|
81
|
-
| code-reviewer | Quality & standards | Changes | read, grep, lsp_diagnostics | Expert priority |
|
|
82
|
-
| security-auditor | Vulnerabilities & compliance | Security | read, grep, grep_app_searchGitHub | Block critical |
|
|
83
|
-
| refactorer | Debt & consolidation | Refactor | read, grep, lsp_rename, ast_grep_* | Majority vote |
|
|
84
|
-
| testing-lead | Testing strategy & coverage | Tests | read, grep, lsp_* | Expert priority |
|
|
85
|
-
| storyteller | Narrative deep reflections | Narrative | read, grep, write | Expert priority |
|
|
86
|
-
| researcher | Codebase exploration | Research | read, grep, codesearch, websearch | Expert priority |
|
|
87
|
-
|
|
88
|
-
## Complexity Routing Summary
|
|
89
|
-
|
|
90
|
-
Score = (files×2 + change/10 + deps×3 + duration/10) × operation_weight × risk_mult
|
|
91
|
-
- Operation weights: debug 2.0, refactor 1.8, analyze 1.5, modify 1.2, others 1.0
|
|
92
|
-
- Risk multipliers: critical 1.6, high 1.3, medium 1.0, low 0.8
|
|
93
|
-
Thresholds:
|
|
94
|
-
- ≤15 → single agent
|
|
95
|
-
- 16–50 → multi-agent possible
|
|
96
|
-
- 51+ → orchestrator-led
|
|
97
|
-
|
|
98
|
-
## Operational Guidelines
|
|
99
|
-
|
|
100
|
-
- Evaluate complexity before execution
|
|
101
|
-
- Always verify: read full file → apply change → read again → confirm no regressions
|
|
102
|
-
- Use `call_omo_agent` or `task()` for delegation
|
|
103
|
-
- Log JobId for traceability
|
|
104
|
-
- Enforce codex compliance on every operation
|
|
105
|
-
|
|
106
|
-
**Codex Enforcement**: All actions validated against these rules. Violations block progress until resolved.
|
|
107
|
-
**Target**: 99.6% systematic error prevention through verification-first behavior.
|
|
108
|
-
|
|
109
|
-
(End of file - total 105 lines)
|
|
44
|
+
| Complexity | Score | Strategy |
|
|
45
|
+
|-----------|-------|----------|
|
|
46
|
+
| Simple | ≤15 | Single agent |
|
|
47
|
+
| Moderate | ≤25 | Single agent with tools |
|
|
48
|
+
| Complex | ≤50 | Multi-agent coordination |
|
|
49
|
+
| Enterprise | >50 | Orchestrator-led team |
|
package/xray/codex.json
CHANGED
package/xray/config.json
CHANGED
package/xray/features.json
CHANGED
package/xray/integrations.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"openclaw": {
|
|
5
5
|
"enabled": false,
|
|
6
6
|
"type": "external-service",
|
|
7
|
-
"version": "3.0.
|
|
7
|
+
"version": "3.0.9",
|
|
8
8
|
"config": {}
|
|
9
9
|
},
|
|
10
10
|
"python-bridge": {
|
|
11
11
|
"enabled": false,
|
|
12
12
|
"type": "protocol-bridge",
|
|
13
|
-
"version": "3.0.
|
|
13
|
+
"version": "3.0.9",
|
|
14
14
|
"config": {}
|
|
15
15
|
},
|
|
16
16
|
"react": {
|
|
17
17
|
"enabled": false,
|
|
18
18
|
"type": "framework-adapter",
|
|
19
|
-
"version": "3.0.
|
|
19
|
+
"version": "3.0.9",
|
|
20
20
|
"config": {}
|
|
21
21
|
}
|
|
22
22
|
}
|