Engine reference — generated from the canonical engineering source. Do not edit this page by hand.
Limon User Guide
Limon is the ZERG ops console and chat interface (Vue.js 3 SPA served by
the wild deployment). It has 21 views (limon_views=21) behind one login. This page
enumerates every view truthfully from limon/src/router.ts and the view
components; it is the first user-facing documentation of the console.
Sign-in and session
LoginView (/login) is the only public route (router.ts:8-13).
Credentials are Mango account + password; the session is stored in
sessionStorage and validated on first navigation ( restore —
router.ts:173-210).
There is exactly one 401 path (handleUnauthorized in the auth
store, ): a dead token clears the session and redirects
to /login — no per-view logout logic, no duplicate redirects.
Capability gating: every route declares one meta.capability, and
every capability maps to exactly one server scope (utils/capabilities.ts
generated from the shared RBAC matrix). Non-holders bounce to
/dashboard; actions (New Chat, End Session, Publish, endpoint changes)
render only when their exact grant is present. The vocabulary is the
SERVER’s: only the bare * grant counts as admin (the
retired admin:* alias is NOT special, and namespace wildcards such as
chat:* are NOT expanded — matching is exact string or *), and no
console code hand-picks isAdmin for a surface the server grants to
members. The ONE
documented exception is /schedules: the Sol handler
(sol_http_scheduler:list_jobs/1) answers an empty success page to every
non-admin, so the route, nav link and view are admin-gated
(meta.requiresAdmin) and a non-admin direct mount renders a typed
permission state instead of “No schedules found”.
List envelopes: Channels reads the shared pagination
envelope ({items,total,...}) and normalizes the current Sol emitter’s
JSON-encoded channel rows. Team list rows carry no membership data, so
a team card shows members unknown until a detail/membership fetch
supplies member_count — it never invents “0 members”.
The 21 views
| # | Route | View | Purpose | Access |
|---|---|---|---|---|
| 1 | /login | LoginView | Sign in (public) | public |
| 2 | / | DashboardView | Health (10s poll), audit summary, worker list, connection status | authenticated |
| 3 | /workflows | WorkflowView | Workflow/recipe list + start | workflows:read |
| 4 | /workflows/:id | WorkflowView | Workflow detail: tree, lineage, branch, cancel | workflows:read |
| 5 | /chat | ChatView | Agent chat (model picker, streaming) | chat:read |
| 6 | /chat/:id | ChatView | Resume a chat session by id | chat:read |
| 7 | /teams | TeamsView | Team management (create, mail) | teams:list; create/manage gated |
| 8 | /skills | SkillsView | Skill marketplace: browse/publish/report | skills:browse; publish/manage gated |
| 9 | /schedules | SchedulesView | Scheduled jobs: create, pause/resume, run now, delete | admin only (server gate); schedule:manage/schedule:spawn gate the actions |
| 10 | /recipes | RecipesView | Workflow recipe templates (JSON-driven) | workflows:read |
| 11 | /goals | GoalsView | Agent goals (5s poll) | goals:read |
| 12 | /bg-workers | BgWorkersView | Background workers: list/start/kill (5s poll) | infra:read |
| 13 | /memory | MemoryView | Cross-session memory: agent picker, search | memory:read |
| 14 | /settings | SettingsView | Connection (API/Mango URLs), branding (Enterprise), seat info | authenticated; endpoint changes need settings:write |
| 15 | /audit | AuditView | Audit event log (filter by category) | audit:read |
| 16 | /workers | WorkersView | Connected ZMQ workers (5s poll) | zmq:list |
| 17 | /channels | ChannelsView | Delivery channels (telegram/discord/webhook): create/remove/test | channels:read; manage gated |
| 18 | /events | EventsView | Event stream browser (paged, 50/page) | audit:read |
| 19 | /providers | ProvidersView | LLM provider health (5s poll) | infra:read |
| 20 | /settings/managed | ManagedSettingsView | Managed (server-enforced) settings: key/value edit | settings:read |
| 21 | /seats | SeatsView | License status (seats, tier) | metrics:read |
| 22 | /system | SystemView | System/uptime overview (polling) | infra:read |
| 23 | /infra | SystemView (alias of /system) | Infrastructure: service health + resource monitoring | infra:read + clustering seat gate (router.ts:166-184) |
| 24 | /telemetry | TelemetryView | Telemetry event stream (type/timestamp/data) | infra:read; clear needs infra:manage |
Counted by distinct view components: 21 (LoginView, DashboardView,
WorkflowView, ChatView, TeamsView, SkillsView, SchedulesView,
RecipesView, GoalsView, BgWorkersView, MemoryView, SettingsView,
AuditView, WorkersView, ChannelsView, EventsView, ProvidersView,
ManagedSettingsView, SeatsView, SystemView, TelemetryView). The former
InfraView was deleted in (it duplicated SystemView); /infra
still renders SystemView with the clustering seat gate. /workflows
and /workflows/:id share WorkflowView; /chat and /chat/:id share
ChatView.
Chat & streaming model
Chat connects over WebSocket to
/api/v1/chat/<sessionId>/ws (useChatWebSocket.ts:92). The scheme
derives from the configured API URL (http→ws, https→wss; the
pre-fix forced-wss rule was removed in ).
Authentication rides a short-TTL (60s) single-use ticket
minted over the authenticated REST channel
(POST /api/v1/chat/:id/ws-ticket) and presented as the
zerg_ticket, <ticket> subprotocol — the bearer token never touches
the WS wire (; the token had earlier leaked into
proxy/access logs via the query string until ). Limon STOPPED
SENDING the old zerg_auth, <token> bearer subprotocol in
ticket-or-cookie is Limon’s only posture, and every reconnect
mints a fresh ticket (single-use) through a new socket with a manual
full-jitter retry loop. Sol still ACCEPTS the zerg_auth
subprotocol (the server-side arm was not removed; see
docs/auth-flow.md §WS auth), so an external client can still present a
bearer that way — the accepted order is ticket → cookie → zerg_auth
→ ?token=.
Token re-validation every 5 minutes is the second layer for bearer
sockets; a one-time-ticket socket is capped at its 5-minute absolute
lifetime and re-handshakes with a fresh ticket (the ticket is spent at
open and cannot re-resolve a grant). The connection is refused at connect
time when the token is invalid (sol_ws_chat).
Streaming (non-WS paths) uses SSE (api_stream_post); the render
path throttles markdown updates (~150× measured improvement,
).
Sync-events stream: the
console’s /api/v1/sync-events connection is cookie-only by browser
construction (EventSource cannot send an Authorization header). The
supported posture is therefore SAME-HOST: the console and Sol share the
host that holds the zerg_session cookie. In a split-host deployment the
browser treats the stream as a third-party request; a blocked cookie lands
ONE typed capability error (the cross-origin preflight) instead of a
redial loop. The stream is additionally gated on the server’s
audit:stream grant (the /events route itself needs audit:read);
without it the view still polls REST and says why. The server documents
NO Last-Event-ID replay: a reconnect is a fresh mixed
stream, so the client reconciles each viewed aggregate from its highest
CONTIGUOUS seq, treats the server last_seq as the completion bound (a
sparse page can never silently skip a hole; a bounded walk that cannot
reach the bound raises the visible reconcile required state), and a
reconnect with no cursor at all raises that state explicitly.
CSRF dialects: Sol cookie-authenticated
mutations (the WS-ticket mint) send the zerg_csrf header equal to the
readable zerg_csrf cookie — that is the ONE name in Sol’s CORS
allow-headers list (sol_auth_middleware:csrf_pair_valid/1). The Mango
logout beacon is a MANGO request and keeps Mango’s X-CSRF-Token
double-submit (stores/auth.ts + mango-client.ts); it is not a Sol
mutation. The cookie-only WS preflight targets the real authenticated
route GET /api/v1/chat.
Turn dedupe: a reconnect can’t double-fire a message — turns are
deduplicated by content identity.
Delivery verdicts: a dispatched message is accepted by the
server ack, the first token, or the completed turn. A disconnect or a
history settlement with no ack/token/echo marks the optimistic row
failed with Retry — it never keeps looking sent.
History recovery: reconnect merges the newest server window
and, when the local transcript ends before it, walks bounded REST pages
to bridge the hole; a hole the walk cannot close is stated in-view
(historyGap) instead of being silently left.
Settings & admin surface
SettingsView exposes connection endpoints and, when the
Enterprise tier is licensed (branding store), custom branding.
Changing either endpoint requires the settings:write grant; the login
screen names the active Mango origin before credentials are typed. An
endpoint must be an origin root over https (or an explicit loopback/
private-network air-gap address) — userinfo, paths, queries and hashes
are refused.
ManagedSettingsView is the admin surface for server-enforced
settings — changes persist server-side.
SeatsView shows the live license posture (Community/Pro/Business/
Enterprise) and the admin-facing seat gate; /infra additionally
requires the clustering allowance from the seat store ( tier
gate — a missing license server degrades to pass).
Restricted browsers & air-gap fallbacks
Clipboard (chat copy): navigator.clipboard exists on secure
contexts only. On a plain-http air-gap deployment the message Copy
button falls back to a hidden-textarea document.execCommand('copy')
write — it reports “Copied” only when a copy actually
happened, and a missing clipboard API never trips the error boundary.
Browser storage: every localStorage/sessionStorage access goes
through the shared guarded helper (limon/src/utils/storage.ts,
). With storage disabled (blocked cookies, hardened privacy
mode, air-gapped profiles) the console keeps working from in-memory
state; saved API URLs survive only for the tab.
Session teardown: logout/expiry clears every identity-scoped
store (chat, seat, teams, skills, schedules, channels, managed
settings) so no previous-identity rows survive a session switch, and
an expired-token revoke no longer raises the misleading “token may
not have been revoked” warning.
Where the data comes from
Every view reads Sol REST endpoints through limon/src/api/ (sol.ts et
al.); polling uses the shared usePolling composable (visibility-pause +
401-stop uniform, ). There is no view-local polling
reimplementation — new views should use the same composables.
See also
docs/api-reference.md — the REST surface the views consume
docs/sessions.md — session model behind ChatView
docs/seats.md — tier gates behind SeatsView/SystemView (/infra alias)
docs/permissions.md — the RBAC the admin gates mirror