Skip to content

A1: Shift board — live duty + workplace lights from real signals - #63

Merged
jasandroidx merged 3 commits into
ravenstackfrom
jules/keep-live-duty-panel
Sep 21, 2026
Merged

jasandroidx merged 3 commits into
ravenstackfrom
jules/keep-live-duty-panel

Conversation

@jasandroidx

Copy link
Copy Markdown
Owner

What

New Shift Board page (/duty) on the Keep hall, drawn only from real signals — zero model calls.

Backend (keep HTTP :8112)

  • mcp/src/duty.py: composes keep-rooms.json / keep-duty.json (durable snapshots) from keep.db agent_status, pending gates (gates.py), ReClaw /county-queue/status, outbox dir, and the library inbox. Rooms: gate · dock · auction-pit · archive · watchtower; lights busy/live/quiet/dark, plus a 5-agent duty roster (busy/idle/leave, leave after 3 days quiet).
  • New routes /api/duty + /api/rooms on mcp/src/http_api.py.
  • Schemas committed under schemas/ (keep-rooms, keep-duty, keep-bubbles prepared for A2).
  • Tests: mcp/test_duty.py — 7 hermetic cases; runs green together with existing test_server.py.

UI (ui-v2)

  • /duty route: workplace light grid + duty roster table, 30s poll, fail-closed “Board unread.” when :8112 is unreachable — never fabricates.
  • getDutyBoard serverFn reads KEEP_HTTP_URL (default http://127.0.0.1:8112).
  • Nav entry (“Board”) in shell + hall HUD; .env.example documents KEEP_HTTP_URL.

Honest behavior

  • dark = source unreachable (e.g. ReClaw API down) — never disguised as ok.
  • leave = no signal / >3 days quiet.
  • No Ollama, no Funnel anywhere in the duty path (asserted by test).

Verified

  • Backend suite: 9/9 green (test_server + test_duty).
  • Live-box smoke of /api/duty + /api/rooms (real signals: gate busy w/ waiting_human, dock quiet w/ 153 files, auction quiet, watchtower busy reclaw_api=ok).
  • UI: tsc has pre-existing repo-wide errors (fastmcp/sentinel/scene/ai — unchanged); new files lint clean; vite build exit 0; /duty SSR-renders (The chalkboard).

Deploy (live box /root/ravenstack-keep)

fetch branch → restart ravenstack-keep-http.service → restart ravenstack-keep-ui.service.
A2 speech bubbles are explicitly NOT started until this board is verified live.

Jules Keep added 2 commits September 21, 2026 02:50
Backend (keep HTTP :8112, no model calls):
- mcp/src/duty.py: duty roster + workplace lights composed from keep.db
  agent_status, pending gates, ReClaw county-queue, outbox, library inbox;
  writes durable keep-rooms.json / keep-duty.json into the Keep data dir.
- /api/duty and /api/rooms routes on http_api.py.
- schemas/keep-{rooms,duty,bubbles}.schema.json committed.
- mcp/test_duty.py: 7 hermetic cases (busy/idle/leave, gate busy, dark,
  snapshots schema-valid, no ollama in path).

UI (ui-v2):
- /duty Shift Board page (workplace light grid + duty roster, 30s poll,
  fail-closed 'Board unread', zero model calls).
- getDutyBoard serverFn; KEEP_HTTP_URL default http://127.0.0.1:8112.
- Board links in shell nav + hall HUD; .env.example documents KEEP_HTTP_URL.
Tailscale serve forwards the MagicDNS hostname to the dev server (Host:
*.ts.net); Vite's DNS-rebinding guard 403s it otherwise, which made the
live Keep's public URL (:8120) unreachable. Host list is env-driven so
behaviour is unchanged when ALLOWED_HOSTS is unset.
@jasandroidx

Copy link
Copy Markdown
Owner Author

Verify note (deployed to live box, branch checked out in /root/ravenstack-keep):

  • :8120 (tailnet, Keep URL) → 200 on / and /duty — restored a pre-existing Vite host-check 403 with the second commit (ALLOWED_HOSTS env, set via a new ravenstack-keep-ui.service.d/allowed-hosts.conf drop-in, persisted).
  • /api/duty + /api/rooms live on :8112 → 200. Real signals read: gate=live (0 pending — the earlier oracle unlock was completed), dock=quiet (153 files), auction-pit=quiet, archive=quiet (no inbox yet), watchtower=busy (reclaw_api=ok, openclaw/mcp down — real). Duty: raziel=idle, others=leave (3-day quiet rule). No model runs.
  • vite build passes; route SSR-renders; new files lint-clean. tsc repo-wide noise is pre-existing.

…-duty-panel

# Conflicts:
#	ui-v2/vite.config.ts
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.

1 participant