Repository navigation
A1: Shift board — live duty + workplace lights from real signals - #63
Merged
Merged
Conversation
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.
Owner
Author
|
Verify note (deployed to live box, branch checked out in /root/ravenstack-keep):
|
…-duty-panel # Conflicts: # ui-v2/vite.config.ts
This was referenced Sep 21, 2026
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.
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: composeskeep-rooms.json/keep-duty.json(durable snapshots) from keep.dbagent_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)./api/duty+/api/roomsonmcp/src/http_api.py.schemas/(keep-rooms,keep-duty,keep-bubblesprepared for A2).mcp/test_duty.py— 7 hermetic cases; runs green together with existingtest_server.py.UI (ui-v2)
/dutyroute: workplace light grid + duty roster table, 30s poll, fail-closed “Board unread.” when :8112 is unreachable — never fabricates.getDutyBoardserverFn readsKEEP_HTTP_URL(defaulthttp://127.0.0.1:8112)..env.exampledocumentsKEEP_HTTP_URL.Honest behavior
dark= source unreachable (e.g. ReClaw API down) — never disguised as ok.leave= no signal / >3 days quiet.Verified
test_server+test_duty)./api/duty+/api/rooms(real signals: gate busy w/ waiting_human, dock quiet w/ 153 files, auction quiet, watchtower busy reclaw_api=ok).vite buildexit 0;/dutySSR-renders (The chalkboard).Deploy (live box
/root/ravenstack-keep)fetch branch → restart
ravenstack-keep-http.service→ restartravenstack-keep-ui.service.A2 speech bubbles are explicitly NOT started until this board is verified live.