Skip to main content

0xRay 4.0 trim list (fat, not bone)

This page is the 4.0 record. The suit era is 4.1.

The bone is the v2 three-subsystem OS — Inference, External Governance, Autonomous Engine. 4.0 wears that bone as the engine. The suit is the wear. Do not list those subsystems as disposable. See v3 from v2.

This page is the fat: duplicate conductors and extra skill servers. Unused experiments are already gone. Do not grow what remains (Codex 69).

Keep as product (the three subsystems + bridges)​

PathRole
src/integrations/grok/hooks/Grok PreToolUse / SessionStart — constitution
src/integrations/hermes-agent/Hermes bridge
src/plugin/xray-codex-injection.tsOpenCode gate
src/integrations/openclaw/OpenClaw
scripts/node/install-bridges.cjsFour-bridge postinstall
src/nucleus/delegation-gate.tsMulti-host spawn / pending SSOT
src/nucleus/suit-temperament.ts4.0 profile resolution
7 consumer MCP serversPublic face of the three subsystems
src/mcps/orchestrator/ + src/nucleus/thin-dispatch.tsAutonomous Engine — keep
src/nucleus/confer.ts · synthesis.tsEngine ceremony — keep; temperament decides when mandatory
src/governance/ · xray/codex.jsonExternal Governance — keep
src/inference/ · src/memory-routing/Inference — keep

Still called​

PathWhy it stays
src/postprocessor/ metamorphosissrc/nucleus/kernel.ts and governance still score it
Extra src/processors/implementations/The enforcer and processor tests still import them
Extra src/mcps/*.server.ts outside the 7invoke-skill still calls them through mcpClientManager
src/core/orchestrator.ts + src/orchestrator/enhanced-*.tssrc/index.ts, src/core/index.ts, the coordinator, and integration tests still import them

Consumer .mcp.json remains seven servers. Extra *.server.ts files stay unregistered. Prompt-config src/agents/*.ts stay as host YML companions.

Removed, recoverable​

128 paths were removed. The blobs sit on 601cdafc0, and that commit still holds them.

git show 601cdafc0:PATH
git checkout 601cdafc0 -- PATH

Worth is Grab when a later job may want that design back, and Shelf when the file is history. Superseded is No, Yes plus the live path, or Slice when a live neighbor covers part of the job. Add a row in the same pass that removes a file. Keep every row. Change Superseded when a live path takes the job.

Grab​

RemovedWorthSupersededGrab
api/health.tsGrab. Vercel routes api/mcp.ts onlyNoapi/health.ts
monitoring/prometheus.yml, monitoring/alertmanager.ymlGrab, if Prometheus returnsNomonitoring/
src/benchmark/performance-benchmark.tsGrab. Last benchmark harnessNosrc/benchmark/performance-benchmark.ts
src/performance/performance-budget-enforcer.ts, performance-regression-tester.tsGrab. Harness onlySlice: src/processors/implementations/performance-budget-processor.tssrc/performance/
src/infrastructure/iac-validator.ts, schemas/cloud-schemas.tsGrab. IaC check with no callerNosrc/infrastructure/
src/public/XrayService.ts, src/public/index.tsGrab. Service sketch. Root public/*.html staysSlice: package export 0xray/nucleussrc/public/
src/cli/server.tsGrab. Local HTTP server. No CLI command started itSlice: src/nucleus/govern-http.ts, src/postprocessor/triggers/APITrigger.ts, WebhookTrigger.tssrc/cli/server.ts
workflows/post-deployment-audit.ymlGrab. Root copyYes: src/opencode/workflows/post-deployment-audit.ymlworkflows/post-deployment-audit.yml
src/orchestrator/self-direction-activation.ts, src/__tests__/unit/self-direction-activation.test.tsGrab. Class had no production callerNoboth paths
src/tools/assess-complexity-tool.ts, query-routing-tool.ts, and their unit testsGrab. WrappersYes: scoreAndRoute in src/nucleus/thin-dispatch.ts, map in xray/routing-mappings.jsonsrc/tools/
analytics-disable.ts, analytics-enable-action.ts, analytics-preview.ts, analytics-status.ts, src/analytics/consent-manager.ts, and its testGrab. Opt-in upload had no callerSlice: npx 0xray analytics runs src/analytics/simple-pattern-analyzer.tsthose six paths
src/core/trace-context.tsGrab. Trace sketchNosrc/core/trace-context.ts
src/enforcement/test-auto-healing.tsGrab. Self-test scriptSlice: rule enforcer and validators under src/enforcement/src/enforcement/test-auto-healing.ts
src/integrations/cross-language-bridge.tsGrab. Bridge sketchYes: src/integrations/hermes-agent/bridge.mjssrc/integrations/cross-language-bridge.ts
CodeChangeAnalyzer.ts, ProcessorConfigLoader.ts, RetryHandler.ts, ComprehensiveValidator.tsGrab. Four postprocessor jobsSlice: FailureAnalysisEngine, RedeployCoordinator, LightweightValidator, HookMetricsCollectorthose four paths
src/utils/batch-operations.ts, task-graph.ts, test-template-generator.ts, todo-manager.js, token-manager.tsGrab. Helpers with no importerNothose five paths
agent-config-validator.ts, orchestration-flow-validator.tsGrabSlice: estimation-validator.ts, report-content-validator.tsthose two paths
src/cli/commands/enforce.ts, govern.ts, security-audit.tsGrab. Command sketches. Restoring govern.ts does not register a commandYes: 0xray mcp governance and evaluatePreToolGate in src/integrations/hooks/delegation-gate-runtime.mjsthose three paths
src/integrations/enforcement-gate.ts, src/integrations/__tests__/enforcement-gate.test.tsGrab. Composed ValidatorRegistry, PostProcessor, and governYes: evaluatePreToolGatethose two paths
comprehensive-security-audit.ts and its test, security-hardening-system.ts, security-orchestration-layer.ts, security-agent-coordinator.ts, src/__tests__/unit/security-encryption-fix.test.tsGrab. Security cluster with no suit callerSlice: security-auditor.ts, security-hardener.ts, security-headers.ts, security-scanner.ts, prompt-security-validator.tsthose six paths
src/testing/memory-regression-suite.tsGrab. Memory regression harnessNosrc/testing/memory-regression-suite.ts
src/postprocessor/integration.tsGrab. Express wiring into the postprocessorSlice: the triggers and src/nucleus/govern-http.tssrc/postprocessor/integration.ts
src/mcps/index.tsGrab as a checklist of extra servers. The consumer seven stay XRAY_MCP_SERVERSSlice: scripts/node/bridge-mcp-wiring.cjssrc/mcps/index.ts

Shelf​

RemovedWorthSupersededGrab
advanced-features/analytics/predictive-analytics.tsShelfYes: src/analytics/predictive-analytics.tsthat path
Rest of advanced-features/ (dashboards, distributed, scaling, simulation, streaming; 26 files)Shelf. Experiments with no production importerNoadvanced-features/
Root skills/ (31 SKILL.md plus skills/xray-orchestrator/index.ts)Shelf. Stale copiesYes: src/skills/skills/
src/integrations/grok/hooks/pre-tool-use.tsShelf. TypeScript twinYes: src/integrations/grok/hooks/pre-tool-use.jsthat path
src/delegation/task-skill-router.d.tsShelf. Declaration only. plates.cjs still matches the wordsNo. Live map is xray/routing-mappings.jsonthat path
src/config/routing-mappings.tsShelf. A second copy forks the mapYes: xray/routing-mappings.jsonthat path
src/core/bridge.mjsShelf. Separate from the Hermes bridgeYes: src/integrations/hermes-agent/bridge.mjssrc/core/bridge.mjs
src/integrations/base/ExampleIntegration.tsShelf. SampleYes: src/integrations/base/Integration.tsthat path
src/agents/known-names.tsShelfYes: src/agents/registry.tsthat path
src/mcps/connection/connection-manager.ts and its unit testShelfYes: src/mcps/connection/connection-pool.tsthose two paths
Barrels: src/enforcement/index.ts, src/enforcement/loaders/index.ts, src/inference/index.ts, src/metrics/index.ts, src/mcps/orchestrator/index.ts, src/postprocessor/metamorphosis/index.ts, src/security/index.tsShelf. The modules they re-exported stayNothose seven paths
src/processors/implementations/session-capture-processor.tsShelfYes: src/inference/session-capture.tsthat path
src/orchestrator/universal-registry-bridge.tsShelfNothat path