Context. surface studio · domain hathor · route /studio/hathor/geography-modeling · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/geography-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 for the real @hathor/domain-models region geography scorers.
Submit a region (terrain coverage, danger level + sources, biome, flora/fauna
diversity, exploration status) and read back travel speed, composite danger,
biodiversity, exploration level, and dominant terrain. Admin-scoped and
fail-closed.
Entry points#
- Quick-action link from
/studio/hathor/world-configuration(this page links out to world-configuration) - 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-geography-modeling-workspace>:<h1>(WorkspaceHeading) "Hathor Geography Modeling Workspace"- Summary
<p data-hathor-geography-modeling-summary> - Region Analysis Lane (
<h2 data-geo-lane-heading>) — the analyze formdata-geo-form
- Route Map panel (
data-hathor-geography-modeling-route-map):<h2>"Route Map" + 5 entries fromSTUDIO_HATHOR_GEOGRAPHY_MODELING_ROUTE_MAP - Quick-action lane: two
Link.quickActionanchors — World Configuration, Back to Studio workspace index
States#
- Loading —
<p data-geo-loading>while the GET request is in flight - Unauthorized —
data-geo-unauthorizedon 401/403 (admin Hathor scope required); fail-closed - Error —
data-geo-erroron non-OK GET / malformed catalog - Ready (form) —
data-geo-formonce the enum catalog loads - Result —
data-geo-resultafter a 200 analyze;data-geo-analyze-errorfor invalid JSON / non-200
Interactions#
Region Analysis Lane#
- Region (JSON) —
<textarea data-geo-payload>(aria-label "region json"); accepts{ region:{ name, terrain[{ type, coverage }], dangerLevel, dangerSourceCount, biome?, floraDiversity, faunaDiversity, explorationStatus } } - Reference enums —
data-geo-enums - Analyse region —
<button data-geo-submit type="submit">→ POST/v1/admin/hathor/workbench-worlds/analyze - Result —
data-geo-headlineplusdata-geo-scoreswith per-metricdata-geo-scorerows (travel speed, danger, biodiversity, exploration, dominant terrain)
Route Map panel#
- 5 route entries — verify match with
STUDIO_HATHOR_GEOGRAPHY_MODELING_ROUTE_MAP
Quick-action lane#
- "Open Hathor World Configuration workspace" (→
/studio/hathor/world-configuration) - "Back to Studio workspace index" (→
/studio)
Data & contracts#
- Reads: GET
/v1/admin/hathor/workbench-worlds(note: the geography lane reuses theworkbench-worldsendpoint, not ageography-modelingslug) on mount - Writes: POST
/v1/admin/hathor/workbench-worlds/analyze - 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-dashboard.md(rolls the same region scorers into a world overview),./studio-hathor-location-modeling.md - Component sources:
apps/oshun/web/src/components/studio/StudioHathorGeographyModelingWorkspace.tsxapps/oshun/web/src/components/studio/StudioHathorGeographyModelingRouteMap.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 lane reads/writes the
workbench-worldsendpoint rather than a dedicatedgeography-modelingslug; confirm whether that sharing is intentional or a slug that should be renamed. - Route Map advertises
continents/, nestedregions/biomes/, andgovernance/sub-routes with nopage.tsxyet.