Context. surface studio · domain hathor · route /studio/hathor/workbench-dashboard · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/workbench-dashboard/page.tsx
Last walked. 2026-05-29 automated runtime walk (Playwright headless) — render, /v1 data (2xx), console/page-errors, expected content, screenshot verified; live screen-reader, touch, offline, and telemetry-delivery checks pending a manual AT pass. Evidence: WALKTHROUGH/results/runtime-sweep-2026-05-29.md; body re-derived 2026-06-03 from current source (lane-console architecture)
Purpose#
Admin lane console that rolls the real @hathor/domain-models region scorers
into an aggregate world overview. Describe a world's regions and read back
per-region geography scores plus rolled-up world metrics — region count, mean
composite danger, mean biodiversity, fully-explored count, the most dangerous
region, and a dominant-terrain histogram. Admin-scoped and fail-closed.
Entry points#
- Quick-action link from
/studio/hathor/lore-fact-checking(this page links out to lore-fact-checking) - Aggregator embed:
StudioHathorWorkbenchWorkspacemounts this workspace inline as its "Workbench Dashboard Lane" - Direct URL / bookmark — yes;
alternates.canonicalset - Studio overview — see
../../studio-overview.md
Layout regions#
page.tsx renders inside <ShellLayout active="studio">:
- Workspace
<section data-hathor-workbench-dashboard-workspace>:<h1>(WorkspaceHeading) "Hathor Workbench Dashboard Workspace"- Summary
<p data-hathor-workbench-dashboard-summary> - The overview form lane:
data-hathor-wd-form
- Route Map panel (
data-hathor-workbench-dashboard-route-map):<h2>"Route Map" + 5 entries fromSTUDIO_HATHOR_WORKBENCH_DASHBOARD_ROUTE_MAP - Quick-action lane: two
Link.quickActionanchors — Lore Fact-Checking, Back to Studio workspace index
States#
- Loading —
<p data-hathor-wd-loading> - Unauthorized —
data-hathor-wd-unauthorizedon 401/403 (admin Hathor scope required); fail-closed - Error —
data-hathor-wd-erroron non-OK GET / malformed catalog - Ready (form) —
data-hathor-wd-formonce the catalog loads - Result —
data-hathor-wd-resultafter a 200 overview;data-hathor-wd-overview-errorfor invalid JSON / non-200
Interactions#
Workspace body (overview form lane)#
- Regions (JSON array) —
<textarea data-hathor-wd-regions>(aria-label "regions json") - Build world overview —
<button data-hathor-wd-submit type="submit">→ POST/v1/admin/hathor/workbench-dashboard/overview - Result —
data-hathor-wd-region-count,data-hathor-wd-avg-danger,data-hathor-wd-avg-biodiversity,data-hathor-wd-explored,data-hathor-wd-most-dangerous, and adata-hathor-wd-region-listofdata-hathor-wd-regionrows
Route Map panel#
- 5 route entries — verify match with
STUDIO_HATHOR_WORKBENCH_DASHBOARD_ROUTE_MAP
Quick-action lane#
- "Open Hathor Lore Fact-Checking workspace" (→
/studio/hathor/lore-fact-checking) - "Back to Studio workspace index" (→
/studio)
Data & contracts#
- Reads: GET
/v1/admin/hathor/workbench-dashboardon mount - Writes: POST
/v1/admin/hathor/workbench-dashboard/overview - Realtime: none
- Caching: client
fetchon mount,cache: 'no-store';buildBffAuthHeaders - Auth/role check: admin-scoped fail-closed (401/403); behind the signed-in
- studio proxy gate
Cross-references#
- Parent:
../../studio-overview.md - Shell:
../../../shell/04-auth-session.md - Sibling routes:
./studio-hathor-workbench.md(aggregator that embeds this workspace),./studio-hathor-geography-modeling.md(the per-region scorer this dashboard rolls up) - Component sources:
apps/oshun/web/src/components/studio/StudioHathorWorkbenchDashboardWorkspace.tsxapps/oshun/web/src/components/studio/StudioHathorWorkbenchDashboardRouteMap.ts
Open questions / known gaps#
- Hathor is
unconfirmed-v1perWALKTHROUGH/matrix/routes.csv. Confirm whether the dedicated/studio/hathor/*admin lane consoles ship in V1. - The "dashboard" computes an overview from a pasted regions payload rather than from a persisted world; confirm whether it should read a stored world instead of taking the regions inline.
- Route Map advertises
queues/,reviews/,alerts/, andgovernance/sub-routes with nopage.tsxyet.