Repository navigation
Mechanic v3: real probe rack, mechanic model config, strip fake UI claims - #88
Merged
Merged
Conversation
…aims Backend: - Add read-only probe scripts (sitrep, gateway, tailnet, ollama, keep, disk-mem, crashes) plus the /usr/local/bin/probe runner, committed under armory/ with a README documenting the box-side deploy step (this checkout has no filesystem access to /root/ravenstack-armory). - Add ui-v2/src/lib/keep/probes.ts: execFile-only runner, allowlist = the probes directory itself (KEEP_PROBES_DIR / KEEP_PROBE_BIN env-configurable per the box-path convention in drops.ts), 45s timeout, never a shell string. Wired as the runProbe server fn (auth-protected) plus listProbeNames/getMechanicConfig reads. - diagnoseMechanicWorkbench now runs on KEEP_MECHANIC_MODEL (default qwen3-coder:30b) instead of the shared talk-plane model; every other caller of ai.ts's complete() stays on KEEP_TALK_MODEL. UI (mechanic-workbench.tsx): - Removed every fake status claim: the "Live Monitoring Active / Google Search Grounding: ENABLED" boot banner, "OPENCLAW WORKBENCH v2026.7", "SYSTEM // MONITORED", "WORKSHOP ONLINE // SEARCH GROUNDED", the "Google Search Grounded" subtitle, "scrying search docs...", the "Search docs.openclaw.ai" chip, and the Chevy/Physical Shop chip + PHYS line. Boot banner and header subtitle now show the real mechanic model, FastMCP bridge reachability, and latest Raven Drop, each falling back to "—" when its own read fails. - Shell prompt replaced with "Ask Valerie ›". - New Probe Rack: one button per probe; clicking plays the relay-snap, streams output as [probe:<name>], auto-diagnoses with Valerie, then plays the ready chirp. "Check Control UI" -> gateway, "Probe FastMCP" -> sitrep, "Check Tailscale Funnel" -> tailnet. - Telemetry card now shows the latest sitrep probe's real verdict/detail + "PROBED HH:MM" instead of hardcoded host/gateway/model text. - Portrait swapped from the inline SVG sprite to VALERIE_PORTRAIT (/hall/portraits/valerie.jpg), larger frame, object-cover object-top. - Live Gateway Logs panel (fastmcp-gateway-streamer.tsx): shows last-polled time, surfaces empty/error reasons, stops polling after 3 consecutive errors, and adds a Retry button. - All existing sound effects (key tick, relay snap, diagnostic ready, copy chirp) kept and reused for the new probe flow. typecheck / test / build:box all pass.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The status pill under Valerie's portrait was reading getRoutingStatus()'s mcp.reachable, which goes through mcp.ts (MCP_BASE_URL/KEEP_MCP_URL, defaults to 127.0.0.1:8100 -- unreachable from a hosted deploy). The header's FastMCPStatusBadge and everything else on this page go through fastmcp.ts's executeFastMCPTool (FASTMCP_FUNNEL_URL/FASTMCP_INTERNAL_URL). That mismatch is exactly what showed the header connected while the pill under the portrait said unreachable. Switched to getStackHealth(), which already uses the same fastmcp.ts path and needs no auth.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
Ravenstack/keep/specs/mechanic-v3.mdPhase 1 (probe rack) plus the model-config and no-fake-UI items from the S2 task. No services restarted, nothing merged — this PR is for review.Backend
armory/workflows/probes/*.sh):sitrep,gateway,tailnet,ollama,keep,disk-mem,crashes. Each is read-only, <30s, plain text, ends with oneSUMMARY: OK|WARN|FAIL <reason>line. None ever curl127.0.0.1:8100. Plusarmory/bin/probe(the/usr/local/bin/probe <name>runner: validates^[a-z0-9-]+$, confirms the script exists, pipes throughraven-drop probe-<name>)./root/ravenstack-armory(confirmed — it doesn't exist in this container; box paths aren't reachable from here perAGENTS.md). The scripts are committed atarmory/with aREADME.mdgiving the exactrsync/installdeploy step onto the box.runProbeserver fn (ui-v2/src/lib/keep/probes.ts+server.ts): auth-protected, allowlist = files actually present in the probes dir (re-read every call, env-configurable viaKEEP_PROBES_DIR/KEEP_PROBE_BIN, defaulting to the real box paths),execFileonly (never a shell string), 45s timeout, returns{ok, summary, output, ranAt}. 12 new unit tests inprobes.test.ts.ai.ts):diagnoseMechanicWorkbenchnow runs onKEEP_MECHANIC_MODEL(defaultqwen3-coder:30b); every other caller ofcomplete()(Oracle, Forge, Round Table, hall talk, portrait lore) stays onKEEP_TALK_MODEL.UI (
mechanic-workbench.tsx)Every string below was a claim about live monitoring/search that wasn't true. Removed, no replacement text implying a check that doesn't run:
STATUS: Live Monitoring Active | Google Search Grounding: ENABLEDMODEL: <mechanic model> · FASTMCP BRIDGE: reachable/unreachable/— · LATEST DROP: <file> @ <time>OPENCLAW WORKBENCH v2026.7(boot banner header)VALERIE'S MECHANIC WORKBENCH // CRT DIAGNOSTIC CONSOLESYSTEM // MONITORED(message badge)SYSTEMWORKSHOP ONLINE // SEARCH GROUNDED(status pill)FASTMCP BRIDGE: REACHABLE/UNREACHABLE/—, color-coded from the last real bridge readLayer 0–5 Deep Stack Auditing · Google Search Grounded · Hetzner VPS & Physical Rig(subtitle)Layer 0–5 Deep Stack Auditing · Model: <mechanic model>Valerie is analyzing stack logs & scrying search docs...(busy text)Running probe <name>…while a probe runs, elseValerie is thinking (<model>)…Search docs.openclaw.aichipChevy Silverado / Physical ShopchipPHYS: Auto circuits, OBD-II & sensors(5-layer legend line)openclaw:2026.7.1,Ollama gemma4, etc. — reference text, never probed)PROBED HH:MM, with a "RUN SITREP PROBE" button; unknown =—valerie@ravenstack-workshop:~/ReClaw-2.0$shell prompt (implied a real shell)Ask Valerie ›'<img src={VALERIE_PORTRAIT}>'(/hall/portraits/valerie.jpg), larger frame (h-40 w-32 md:h-56 md:w-44),object-cover object-top; frame/rivets/"CHIEF // V2.0" badge keptNew Probe Rack (one button per probe, above the quick chips): click → relay-snap sound → streams output into the terminal as
[probe:<name>]→ auto-sends it to Valerie for diagnosis → ready chirp on completion. Chips rewired to real probes: "Check Control UI :18789" →gateway, "Probe FastMCP :8100" →sitrep, "Check Tailscale Funnel" →tailnet(the other two chips — Paste Error Log, Fix File Ownership — still just prefill the textarea, unchanged).Live Gateway Logs panel (
fastmcp-gateway-streamer.tsx): now shows last-polled time in the header, surfaces the error/empty reason in the empty state, auto-stops polling after 3 consecutive errors with a visible notice, and adds a Retry button.All existing sound effects (
playKeyTick,playRelaySnap,playDiagnosticReady,playCopyChirp) kept and reused for the probe flow.Verification
Run from
ui-v2/:npm run typecheck✅npm test✅ (34 pass, incl. 12 new forprobes.ts)npm run build:box✅Every visible status on the page now traces to a real call: FastMCP bridge dot/text →
getRoutingStatus().mcp.reachable; telemetry card → lastsitrepprobe result; Raven Drop badge →getLatestRavenDropInfo(); probe rack button colors → each probe's ownSUMMARYline; Live Gateway Logs →tail_gateway_logsvia FastMCP, with honest disconnected/error states.Not done here (out of scope for this PR)
/root/ravenstack-armory) — seearmory/README.mdfor the exact steps; this session has no access to that host.🤖 Generated with Claude Code
https://claude.ai/code/session_01PESvczRwpL58x1u2fepPFM
Generated by Claude Code