Skip to content

Mechanic v3: real probe rack, mechanic model config, strip fake UI claims - #88

Merged
jasandroidx merged 2 commits into
ravenstackfrom
s2-valerie-real
Sep 23, 2026
Merged

jasandroidx merged 2 commits into
ravenstackfrom
s2-valerie-real

Conversation

@jasandroidx

Copy link
Copy Markdown
Owner

Summary

Implements Ravenstack/keep/specs/mechanic-v3.md Phase 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

  • Probes (armory/workflows/probes/*.sh): sitrep, gateway, tailnet, ollama, keep, disk-mem, crashes. Each is read-only, <30s, plain text, ends with one SUMMARY: OK|WARN|FAIL <reason> line. None ever curl 127.0.0.1:8100. Plus armory/bin/probe (the /usr/local/bin/probe <name> runner: validates ^[a-z0-9-]+$, confirms the script exists, pipes through raven-drop probe-<name>).
    • Note: this checkout has no filesystem access to /root/ravenstack-armory (confirmed — it doesn't exist in this container; box paths aren't reachable from here per AGENTS.md). The scripts are committed at armory/ with a README.md giving the exact rsync/install deploy step onto the box.
  • runProbe server 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 via KEEP_PROBES_DIR/KEEP_PROBE_BIN, defaulting to the real box paths), execFile only (never a shell string), 45s timeout, returns {ok, summary, output, ranAt}. 12 new unit tests in probes.test.ts.
  • Model split (ai.ts): diagnoseMechanicWorkbench now runs on KEEP_MECHANIC_MODEL (default qwen3-coder:30b); every other caller of complete() (Oracle, Forge, Round Table, hall talk, portrait lore) stays on KEEP_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:

Before After
STATUS: Live Monitoring Active | Google Search Grounding: ENABLED Boot banner now reads real state: MODEL: <mechanic model> · FASTMCP BRIDGE: reachable/unreachable/— · LATEST DROP: <file> @ <time>
OPENCLAW WORKBENCH v2026.7 (boot banner header) VALERIE'S MECHANIC WORKBENCH // CRT DIAGNOSTIC CONSOLE
SYSTEM // MONITORED (message badge) SYSTEM
WORKSHOP ONLINE // SEARCH GROUNDED (status pill) FASTMCP BRIDGE: REACHABLE/UNREACHABLE/—, color-coded from the last real bridge read
Layer 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, else Valerie is thinking (<model>)…
Search docs.openclaw.ai chip removed (no search tool exists)
Chevy Silverado / Physical Shop chip removed
PHYS: Auto circuits, OBD-II & sensors (5-layer legend line) removed
Hardcoded "RECLAW STACK TELEMETRY" block (Hetzner CCX33, openclaw:2026.7.1, Ollama gemma4, etc. — reference text, never probed) Latest sitrep probe's real verdict (OK/WARN/FAIL) + detail + PROBED HH:MM, with a "RUN SITREP PROBE" button; unknown = —
valerie@ravenstack-workshop:~/ReClaw-2.0$ shell prompt (implied a real shell) Ask Valerie ›
Inline SVG pixel-art avatar '&lt;img src={VALERIE_PORTRAIT}&gt;' (/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 kept

New 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 for probes.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 → last sitrep probe result; Raven Drop badge → getLatestRavenDropInfo(); probe rack button colors → each probe's own SUMMARY line; Live Gateway Logs → tail_gateway_logs via FastMCP, with honest disconnected/error states.

Not done here (out of scope for this PR)

  • Phase 2 (fix rack, human-approved repairs) and Phase 3 (real shell) from the spec — not requested.
  • Deploying the probe scripts onto the actual Hetzner box (/root/ravenstack-armory) — see armory/README.md for the exact steps; this session has no access to that host.
  • No services were restarted and nothing was merged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PESvczRwpL58x1u2fepPFM


Generated by Claude Code

…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.
@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ravenstack-keep Ready Ready Preview Sep 23, 2026 1:35am UTC

Request Review

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.
@jasandroidx
jasandroidx merged commit deaff8c into ravenstack Sep 23, 2026
4 checks passed
@jasandroidx
jasandroidx deleted the s2-valerie-real branch September 23, 2026 01:48

This branch was successfully deployed

1 active deployment
Preview — 9b58100c Deployed Sep 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants