Context. surface studio · domain hathor · route /studio/hathor/location-modeling · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/location-modeling/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 assesses a single location record — condition, danger level, atmosphere, services, demographics, economy, trade routes, districts, and defenses — and returns scored diagnostics. The operator submits a JSON location object and the lane returns the assessment scores.
Entry points#
- Quick-action link from
/studio/hathor/character-modelingand/studio/hathor/domain-models(verify against those pages' sources) - Direct URL / bookmark — yes;
alternates.canonicalset to/studio/hathor/location-modeling - Studio overview — see
../../studio-overview.md
Layout regions#
page.tsx renders inside <ShellLayout active="studio">:
- Workspace
<StudioHathorLocationModelingWorkspace />(data-hathor-location-modeling-workspace):WorkspaceHeading<h1>— "Hathor Location Modeling Workspace"- Summary
<p data-hathor-location-modeling-summary> - Location Assessment Lane —
<h2 data-loc-lane-heading>; holds the loading / unauthorized / error / form / result states
- Route Map panel
data-hathor-location-modeling-route-map—<h2>"Route Map" listing the 5STUDIO_HATHOR_LOCATION_MODELING_ROUTE_MAPentries (locations / landmarks / travel-routes / governance child paths) - Quick-action lane — three
Link.quickActionanchors: Character Modeling, Timeline Modeling, Back to Studio workspace index
States#
- Loading —
data-loc-loadingwhile the GET catalog request is in flight - Unauthorized (admin-scope 401/403) —
data-loc-unauthorized - Error —
data-loc-error - Ready (form) —
data-loc-enumsenum hint + location textarea + submit - Result —
data-loc-resultwithdata-loc-headlineanddata-loc-scores - Validation error —
data-loc-assess-error
Interactions#
Location Assessment Lane#
- Location payload —
<textarea data-loc-payload>, JSON{ location:{ locationId, name, condition, dangerLevel, atmosphere, services[], hasDemographics, economyActivity, tradeRoutes, districts[], defenses? } } - Submit —
<button data-loc-submit>"Assess location" → POSTASSESS_ENDPOINT
Route Map panel#
- Route entries — verify match with
STUDIO_HATHOR_LOCATION_MODELING_ROUTE_MAP(5 entries)
Quick-action lane#
- "Open Hathor Character Modeling workspace" →
/studio/hathor/character-modeling - "Open Hathor Timeline Modeling workspace" →
/studio/hathor/timeline-modeling - "Back to Studio workspace index" →
/studio
Data & contracts#
- Reads:
GET /v1/admin/hathor/workbench-locations(LOC_ENDPOINT; note the endpoint slug differs from the route slug — it reuses the workbench-locations admin backend) — the location enums catalog - Writes:
POST /v1/admin/hathor/workbench-locations/assess(ASSESS_ENDPOINT) with the location record - Realtime: none
- Caching: client
fetchon mount,cache: 'no-store',buildBffAuthHeaders() - Auth/role check: admin-scoped, fail-closed on 401/403; route additionally gated signed-in + studio by the BFF proxy
Cross-references#
- Parent:
../../studio-overview.md - Shell:
../../../shell/04-auth-session.md - Sibling routes:
./studio-hathor-character-modeling.md,./studio-hathor-timeline-modeling.md,./studio-hathor-domain-models.md - Component sources:
apps/oshun/web/src/components/studio/StudioHathorLocationModelingWorkspace.tsxapps/oshun/web/src/components/studio/StudioHathorLocationModelingRouteMap.ts
Open questions / known gaps#
- The GET/POST endpoints live under
workbench-locations, notlocation-modeling. Confirm the shared backend is intentional. - Hathor is
unconfirmed-v1perWALKTHROUGH/matrix/routes.csv. Confirm whether the dedicated/studio/hathor/lane consoles ship at V1 or are internal-only.