V1 Web PWA · Surface walkthrough

Studio Hathor · NPC-to-NPC Conversations

A per-surface walkthrough of the V1 Web PWA studio surface: layout, states, interactions, data, and cross-references.

walked
8sections2 minread

On this page

Context. surface studio · domain hathor · route /studio/hathor/npc-to-npc-conversations · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/npc-to-npc-conversations/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 validates a multi-NPC conversation transcript for turn-taking integrity — the real turn-taking validator flags participants who spoke vs. stayed silent, self-addressed turns, repeats, and who was addressed. The operator submits a JSON conversation payload and the lane returns the turn-taking diagnostics.

Entry points#

  • Quick-action link from /studio/hathor/npc-behavior-control (verify against that page's source)
  • Direct URL / bookmark — yes; alternates.canonical set to /studio/hathor/npc-to-npc-conversations
  • Studio overview — see ../../studio-overview.md

Layout regions#

page.tsx renders inside <ShellLayout active="studio">:

  • Workspace <StudioHathorNpcToNpcConversationsWorkspace /> (data-hathor-npc-to-npc-conversations-workspace):
    • WorkspaceHeading <h1> — "Hathor NPC-to-NPC Conversations Workspace"
    • Summary <p data-hathor-npc-to-npc-conversations-summary>
    • Live Turn-Taking Validator lane — <h2 data-cnv-heading> (lane data-cnv-lane); holds the loading / unauthorized / error / form / result states
  • Route Map panel data-hathor-npc-to-npc-conversations-route-map<h2> "Route Map" listing the 5 STUDIO_HATHOR_NPC_TO_NPC_CONVERSATIONS_ROUTE_MAP entries (profiles / sessions / contexts / governance child paths)
  • Quick-action lane — two Link.quickAction anchors: NPC Behavior Control, Back to Studio workspace index

States#

  • Loadingdata-cnv-loading while the GET catalog request is in flight
  • Unauthorized (admin-scope 401/403)data-cnv-unauthorized
  • Errordata-cnv-error
  • Ready (form) — conversation textarea + submit
  • Resultdata-cnv-result with data-cnv-participants (per-participant data-cnv-participant-row carrying data-participant / data-silent, plus data-cnv-spoke / data-cnv-silent / data-cnv-addressed / data-cnv-self-addressed / data-cnv-repeats)
  • Validation errordata-cnv-validate-error

Interactions#

Live Turn-Taking Validator lane#

  • Conversation payload<textarea data-cnv-payload>
  • Submit<button data-cnv-submit> "Validate conversation" → POST CNV_VALIDATE_ENDPOINT

Route Map panel#

  • Route entries — verify match with STUDIO_HATHOR_NPC_TO_NPC_CONVERSATIONS_ROUTE_MAP (5 entries)

Quick-action lane#

  • "Open Hathor NPC Behavior Control workspace"/studio/hathor/npc-behavior-control
  • "Back to Studio workspace index"/studio

Data & contracts#

  • Reads: GET /v1/admin/hathor/npc-to-npc-conversations (CNV_ENDPOINT) — the conversation-validation catalog
  • Writes: POST /v1/admin/hathor/npc-to-npc-conversations/validate (CNV_VALIDATE_ENDPOINT) with the conversation payload
  • Realtime: none
  • Caching: client fetch on 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#

Open questions / known gaps#

  • Hathor is unconfirmed-v1 per WALKTHROUGH/matrix/routes.csv. Confirm whether the dedicated /studio/hathor/ lane consoles ship at V1 or are internal-only.