Principle:20000419 Fauxnix Differential Diagnostics
| Knowledge Sources | |
|---|---|
| Domains | Diagnostics, Harness_Detection |
| Last Updated | 2026-10-26 00:00 GMT |
Overview
A diagnostics technique that probes the local environment — encoding preference, per-harness MCP config detection, launcher status, Node version, and MCP module load — and aggregates the results into a single report with a boolean ok flag.
Description
Differential Diagnostics is the principle behind fauxnix doctor. It reads each agent harness's config file and reports whether fauxnix MCP is configured, found-but-missing, or not detected, with config-specific path resolution (e.g. CLAUDE_CONFIG_DIR, CODEX_HOME, XDG_CONFIG_HOME). It reports the encoding preference (FAUXNIX_NATIVE_ENCODING), the facade launcher status (installed/stale/up-to-date), the Node version against the package engines range, and whether the MCP module dynamically imports and exposes startMcpServer. The loader is injectable for testing. The report's ok is true only when both the Node version and the MCP module load pass.
Usage
Use this principle when a tool needs a single "is everything set up correctly?" command that covers multiple integration surfaces. The injectable-loader design makes the module-load check testable without a real import side effect.
Theoretical Basis
report.lines = [
encodingLines(env),
field('claude', detectClaude(home, cwd, env)),
field('codex', detectCodex(home, env)),
field('opencode', detectOpenCode(home, env)),
field('qwen', detectQwen(home)),
field('facade', detectFacade(env)),
mcpLines(nodeVersion, loadMcp)
]
report.ok = nodeOk and moduleOk