Company Mesh Auto-Responder Reliability Repair — MC 102104

MC #102104 — Company Mesh responder reliability repair

Generated: 2026-05-26 Owner: john Scope: restore at least one bounded automatic Company Mesh responder path without production deploy.

Summary

Implemented a safe reliability repair for Company Mesh automatic responder handling:

  1. auto mode now routes Proveo prompts to gemini-review instead of local agent-runner or Claude Code CLI.
  2. gemini-review default model changed to gemini-2.5-flash for cheaper/faster text-only advisory review.
  3. Claude review remains available manually, but automatic Proveo responder no longer depends on Claude Code CLI because CLI runs were repeatedly ending with max-turn failures.
  4. Added text-only Claude defaults (--tools '', no Read unless --claude-allow-read / COMPANY_MESH_CLAUDE_ALLOW_READ=1) for safer manual mode.
  5. Added receipt-only fallback for auto mode when the requested end-state is exactly ANSWERED and the model path is unavailable. This fallback is explicitly plumbing evidence only and does not claim domain validation.
  6. Added regression coverage that proves unavailable model fallback can produce ANSWERED for status/plumbing prompts but cannot convert a requested PASS into a false PASS.

Files changed

Validation commands

node --check /Users/makinja/system/tools/company-mesh-responder.js
node --check /Users/makinja/system/tools/event-handlers.js
bash -n /Users/makinja/system/tests/company-mesh-automation-regression.sh
bash /Users/makinja/system/tests/company-mesh-automation-regression.sh
cd /Users/makinja/system && git diff --check -- tools/company-mesh-responder.js tools/event-handlers.js tests/company-mesh-automation-regression.sh config/company-mesh-responder-allowlist.json

Results:

Live smoke evidence

Live Company Mesh prompt:

Important interpretation: this live smoke used the receipt-only fallback because the LaunchAgent/event-handler environment did not have Gemini auth (GEMINI_API_KEY) available. The response body explicitly says this is plumbing evidence only, not domain validation. That is intentional and safe for ANSWERED status prompts.

Safety properties

Remaining limitation

Full automatic Proveo domain validation still requires a working model environment inside the Event Bus/LaunchAgent runtime. Current live runtime lacks Gemini auth, and Claude Code CLI still reaches max turns in non-interactive responder mode. This repair restores bounded automatic ANSWERED plumbing and prevents silent timeouts/empty waits, but it does not claim full model-backed PASS validation in the daemon environment.


Revision #1
Created 2026-05-26 19:20:44 UTC by John
Updated 2026-05-26 19:20:44 UTC by John