Context. surface studio · domain yemaya · route /studio/yemaya/gameplay-design · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/yemaya/gameplay-design/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 inspecting the Project Obsidian gameplay design document.
The Game Design Operations Lane wires the real @yemaya/project-obsidian
ObsidianGameDesign reference via /v1/admin/yemaya/gameplay-design: read its
six-phase core loop and seven gameplay systems (investigation, interrogation,
deduction, stealth, tactical combat, character progression, UI/UX) and resolve
each system's config.
Entry points#
- No breadcrumb panel on this page.
- Reachable from the Studio index and from the NPC Systems quick-action (which links here).
- Direct URL / bookmark (signed-in + studio entitlement).
Layout regions#
page.tsx renders ShellLayout active="studio" and:
- Workspace panel (
StudioYemayaGameplayDesignWorkspace,data-yemaya-gameplay-design-workspace):<h1>"Yemaya Gameplay Design Workspace" (WorkspaceHeading).- Summary paragraph (
data-yemaya-gameplay-design-summary). - Game Design Operations Lane —
<h2>data-yemaya-gd-lane-heading, the real-backed form lane (loading / unauthorized / error / ready-form / result, see States).
- Route Map panel (
data-yemaya-gameplay-design-route-map):<h2>"Route Map" + fiveSTUDIO_YEMAYA_GAMEPLAY_DESIGN_ROUTE_MAPentries. - Quick-action panel: two
quickActionlinks.
States#
- Loading —
data-yemaya-gd-loading"Loading game design engine…" while the GET catalog fetch is in flight. - Unauthorized —
data-yemaya-gd-unauthorized"Access restricted." on a 401/403 admin-scope failure (fail-closed). - Error —
data-yemaya-gd-error"Could not load the game design engine." on a non-OK / malformed catalog response. - Ready-form —
data-yemaya-gd-formonce the catalog resolves;data-yemaya-gd-engine-summary+ adata-yemaya-gd-constantslist. - Result —
data-yemaya-gd-resultwithdata-yemaya-gd-headline(the system name) and adata-yemaya-gd-configJSON block; or a validation messagedata-yemaya-gd-resolve-error.
Interactions#
Operations form (data-yemaya-gd-form)#
- Design system —
selectdata-yemaya-gd-systempopulated fromcatalog.systems. - Submit —
buttondata-yemaya-gd-submit"Inspect system" → POST/v1/admin/yemaya/gameplay-design/systemwith{ system }.
Route map#
data-yemaya-gameplay-design-route-map — five entries:
-
/studio/yemaya/gameplay-design -
/studio/yemaya/gameplay-design/scenes/[sceneId] -
/studio/yemaya/gameplay-design/exports/[exportId] -
/studio/yemaya/gameplay-design/revisions/[revisionId] -
/studio/yemaya/gameplay-design/governance/[policyId]
Quick actions#
- "Open Yemaya Location Management workspace" →
/studio/yemaya/location-management. - "Back to Studio workspace index" →
/studio.
Data & contracts#
- Reads: GET
/v1/admin/yemaya/gameplay-design(catalog:summary,systems,constants) on mount. - Writes: POST
/v1/admin/yemaya/gameplay-design/system. - Realtime: none.
- Caching: client fetch on mount,
cache: 'no-store',buildBffAuthHeaders(). - Auth/role check: admin-scoped fail-closed (401/403 → unauthorized state) behind the proxy studio gate.
Cross-references#
- Studio overview:
studio-overview.md - Workspace source:
apps/oshun/web/src/components/studio/StudioYemayaGameplayDesignWorkspace.tsx - Route map source:
apps/oshun/web/src/components/studio/StudioYemayaGameplayDesignRouteMap.ts - Engine:
@yemaya/project-obsidian(ObsidianGameDesign) - Sibling per-view doc:
studio-yemaya-npc-systems.md - Feature spec:
V1/features.md
Open questions / known gaps#
- The summary paragraph still advertises "dense expert-mode controls, progressive disclosure" — leftover legacy copy; the live surface is the single Game Design Operations Lane.
- The Route Map advertises scenes / exports / revisions / governance sub-routes that the live lane does not expose.