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.
Files changed (34) hide show
  1. package/.opencode/codex.codex +1 -1
  2. package/.opencode/commands/dependency-audit.md +3 -3
  3. package/.opencode/enforcer-config.json +2 -2
  4. package/.plugin/plugin.json +1 -1
  5. package/README.md +2 -2
  6. package/dist/CHANGELOG.md +8 -0
  7. package/dist/README.md +2 -2
  8. package/dist/analytics/routing-refiner.js +1 -1
  9. package/dist/core/boot-orchestrator.js +2 -2
  10. package/dist/core/features-config.js +1 -1
  11. package/dist/enforcement/loaders/agents-md-validation-loader.js +2 -2
  12. package/dist/mcps/governance.server.js +1 -1
  13. package/dist/mcps/knowledge-skills/tech-writer.server.js +1 -1
  14. package/dist/mcps/registry.json +1 -1
  15. package/dist/processors/implementations/agents-md-validation-processor.js +1 -1
  16. package/dist/skills/registry.json +1 -1
  17. package/package.json +1 -2
  18. package/scripts/node/enforce-agents-md.mjs +2 -2
  19. package/scripts/node/postinstall.cjs +4 -4
  20. package/scripts/node/pre-publish-guard.js +1 -1
  21. package/scripts/node/setup.cjs +10 -0
  22. package/scripts/node/universal-version-manager.js +7 -7
  23. package/src/mcps/governance.server.ts +1 -1
  24. package/src/mcps/knowledge-skills/tech-writer.server.ts +1 -1
  25. package/src/mcps/registry.json +1 -1
  26. package/src/opencode/codex.codex +1 -1
  27. package/src/opencode/commands/dependency-audit.md +3 -3
  28. package/src/opencode/enforcer-config.json +2 -2
  29. package/src/skills/registry.json +1 -1
  30. package/xray/agents_template.md +34 -94
  31. package/xray/codex.json +1 -1
  32. package/xray/config.json +1 -1
  33. package/xray/features.json +1 -1
  34. package/xray/integrations.json +3 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
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.8",
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.8",
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.8"
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.8",
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.8",
223
+ "version": "3.0.9",
224
224
  "terms": [
225
225
  1,
226
226
  2,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "0xray",
3
3
  "name": "0xRay",
4
- "version": "3.0.8",
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.9** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
3
+ **v3.0.10** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
4
4
 
5
5
  [![Docs](https://img.shields.io/badge/docs-0xRayAI.github.io/xray-10b981?style=flat-square)](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.8",
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.9** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
3
+ **v3.0.10** — 41 agents · 44 skills · 15 MCPs servers · 20 codex terms · 160 test files
4
4
 
5
5
  [![Docs](https://img.shields.io/badge/docs-0xRayAI.github.io/xray-10b981?style=flat-square)](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.8",
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.8",
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.8",
720
+ version: "3.0.9",
721
721
  codex_enabled: true,
722
- codex_version: "v3.0.7",
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,
@@ -286,7 +286,7 @@ export class FeaturesConfigLoader {
286
286
  */
287
287
  getDefaultConfig() {
288
288
  return {
289
- version: "3.0.8",
289
+ version: "3.0.9",
290
290
  description: "0xRay Framework - Unified Feature Configuration",
291
291
  token_optimization: {
292
292
  enabled: true,
@@ -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 docs/AGENTS_TEMPLATE.md",
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 docs/AGENTS_TEMPLATE.md for structure",
236
+ "Reference xray/agents_template.md for structure",
237
237
  ],
238
238
  };
239
239
  }
@@ -31,7 +31,7 @@ class GovernanceServer {
31
31
  }
32
32
  createServer() {
33
33
  const server = new Server({
34
- name: "governance", version: "3.0.8",
34
+ name: "governance", version: "3.0.9",
35
35
  }, {
36
36
  capabilities: {
37
37
  tools: {},
@@ -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.8",
598
+ version: "3.0.9",
599
599
  description: "Generated API documentation",
600
600
  },
601
601
  servers: [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
2
+ "version": "3.0.9",
3
3
  "description": "0xRay Community MCPs Registry - curated API-focused MCP servers",
4
4
  "sources": [
5
5
  {
@@ -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 docs/AGENTS_TEMPLATE.md");
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");
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
2
+ "version": "3.0.9",
3
3
  "description": "0xRay Skills Registry - recommended skill sources for consumers",
4
4
  "sources": [
5
5
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0xray",
3
- "version": "3.0.9",
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 docs/AGENTS_TEMPLATE.md');
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, '..', '..', '..', 'docs', 'AGENTS_TEMPLATE.md');
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 AGENTS-consumer.md → AGENTS.md
35
- const agentsConsumer = path.join(packageRoot, "AGENTS-consumer.md");
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(agentsConsumer) && resolvedPackage !== resolvedTarget) {
38
- fs.copyFileSync(agentsConsumer, agentsDest);
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
@@ -87,7 +87,7 @@ function checkGitStatus() {
87
87
  'CHANGELOG.md',
88
88
  'AGENTS.md',
89
89
  'AGENTS-full.md',
90
- 'AGENTS-consumer.md',
90
+ 'xray/agents_template.md',
91
91
  'README.md',
92
92
  'logs/',
93
93
  'backups/',
@@ -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.7", termsCount: 68, lastUpdated: new Date().toISOString().split("T")[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.9",
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.8")
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
- "src/opencode/AGENTS-consumer.md",
706
- rcp("agents_template.md") || "src/opencode/agents_template.md",
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, AGENTS-consumer.md, etc.)
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, AGENTS-consumer.md, docs/*.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
  *
@@ -72,7 +72,7 @@ class GovernanceServer {
72
72
  private createServer(): Server {
73
73
  const server = new Server(
74
74
  {
75
- name: "governance", version: "3.0.8",
75
+ name: "governance", version: "3.0.9",
76
76
  },
77
77
  {
78
78
  capabilities: {
@@ -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.8",
891
+ version: "3.0.9",
892
892
  description: "Generated API documentation",
893
893
  },
894
894
  servers: [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
2
+ "version": "3.0.9",
3
3
  "description": "0xRay Community MCPs Registry - curated API-focused MCP servers",
4
4
  "sources": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
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.8",
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.8",
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.8"
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.8",
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.8",
223
+ "version": "3.0.9",
224
224
  "terms": [
225
225
  1,
226
226
  2,
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
2
+ "version": "3.0.9",
3
3
  "description": "0xRay Skills Registry - recommended skill sources for consumers",
4
4
  "sources": [
5
5
  {
@@ -1,109 +1,49 @@
1
- # StringRay AI v1.15.1 – Agent Context & Universal Development Codex
1
+ # AGENTS.md — 0xRay Consumer Template
2
2
 
3
- **Framework Version**: 1.14.0
4
- **Codex Version**: 1.7.5 (condensed)
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
- ## 🎯 CRITICAL RULES – ZERO TOLERANCE (MANDATORY)
6
+ ## What is 0xRay?
9
7
 
10
- 1. **Full File Reading Before Edit**
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
- 2. **Verify Changes Actually Applied**
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
- 3. **Command & Tool Output Review**
21
- Immediately review ALL command/tool outputs.
22
- Identify errors, warnings, or anomalies.
23
- Add TODO for course correction if issues found.
24
- Do not proceed until critical problems are resolved.
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
- 4. **No False Success Claims**
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
- 5. **Surgical & Progressive Fixes**
31
- Fix root causes minimally – no patches, stubs, or over-engineering.
32
- All code must be production-ready from first commit.
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
- 6. **Error & Loop Prevention**
35
- Resolve all errors before continuing (90%+ runtime prevention target).
36
- Every loop/async must have clear termination/timeout.
28
+ ## Governance
37
29
 
38
- 7. **Type Safety & Immutability First**
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
- 8. **DRY, YAGNI, Separation of Concerns**
42
- No duplication. No unnecessary features. One responsibility per module/function.
32
+ ## Logging
43
33
 
44
- 9. **Test & Performance Awareness**
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
- 10. **Security & Input Validation**
48
- Validate/sanitize all inputs. Security by design.
36
+ ## Architecture
49
37
 
50
- ## Core Codex Terms (Top 20 – Enforced)
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
- 1. Progressive production-ready code
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
- ## Agent Capabilities Matrix
74
-
75
- | Agent | Role | Complexity | Key Tools | Strategy |
76
- |---------------------------|-----------------------------------|------------|----------------------------------------|-------------------|
77
- | enforcer | Codex & error prevention | All | read, grep, lsp_*, bash | Block violations |
78
- | orchestrator | Workflow coordination | Enterprise | read, grep, call_omo_agent, session_* | Consensus |
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.0.8",
2
+ "version": "3.0.9",
3
3
  "lastUpdated": "2026-06-05",
4
4
  "errorPreventionTarget": 0.998,
5
5
  "terms": {
package/xray/config.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "./config.schema.json",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "0xRay Framework - Token Management & Performance Configuration",
5
5
  "token_management": {
6
6
  "maxPromptTokens": 20000,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "./features.schema.json",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "0xRay Framework - Unified Feature Configuration",
5
5
  "token_optimization": {
6
6
  "enabled": true,
@@ -4,19 +4,19 @@
4
4
  "openclaw": {
5
5
  "enabled": false,
6
6
  "type": "external-service",
7
- "version": "3.0.8",
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.8",
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.8",
19
+ "version": "3.0.9",
20
20
  "config": {}
21
21
  }
22
22
  }