V1 Web PWA · Surface walkthrough

Studio Hathor · Research Grounding

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/research-grounding · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/hathor/research-grounding/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 analyzes a passage for citation grounding — the real grounding engine checks which claim positions carry citations and flags uncited claims that require evidence. The operator pastes a passage and the comma-separated citation character offsets, and the lane returns the grounding analysis.

Entry points#

  • Quick-action link from /studio/hathor/lore-fact-checking and /studio/hathor/sophia-citation-service (verify against those pages' sources)
  • Direct URL / bookmark — yes; alternates.canonical set to /studio/hathor/research-grounding
  • Studio overview — see ../../studio-overview.md

Layout regions#

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

  • Workspace <StudioHathorResearchGroundingWorkspace /> (data-hathor-research-grounding-workspace):
    • WorkspaceHeading <h1> — "Hathor Research Grounding Workspace"
    • Summary <p data-hathor-research-grounding-summary>
    • Grounding Operations Lane<h2 data-hathor-rg-lane-heading>; holds the loading / unauthorized / error / form / result states, with data-hathor-rg-engine-summary
  • Route Map panel data-hathor-research-grounding-route-map<h2> "Route Map" listing the 5 STUDIO_HATHOR_RESEARCH_GROUNDING_ROUTE_MAP entries (sources / claims / evidence / governance child paths)
  • Quick-action lane — two Link.quickAction anchors: Sophia Citation Service, Back to Studio workspace index

States#

  • Loadingdata-hathor-rg-loading while the GET catalog request is in flight
  • Unauthorized (admin-scope 401/403)data-hathor-rg-unauthorized
  • Errordata-hathor-rg-error
  • Ready (form) — passage textarea + citation-positions input + submit
  • Resultdata-hathor-rg-result with data-hathor-rg-headline, data-hathor-rg-positions, data-hathor-rg-required, data-hathor-rg-uncited (per-row data-hathor-rg-uncited-row carrying data-claim-type) or data-hathor-rg-clean
  • Validation errordata-hathor-rg-analyze-error

Interactions#

Grounding Operations Lane#

  • Passage<textarea data-hathor-rg-text> (<span>Passage</span>)
  • Citation positions (comma-separated character offsets)data-hathor-rg-positions input
  • Submit<button data-hathor-rg-submit> "Analyze grounding" → POST ANALYZE_ENDPOINT

Route Map panel#

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

Quick-action lane#

  • "Open Hathor Sophia Citation Service workspace"/studio/hathor/sophia-citation-service
  • "Back to Studio workspace index"/studio

Data & contracts#

  • Reads: GET /v1/admin/hathor/research-grounding (RG_ENDPOINT) — the grounding-engine catalog
  • Writes: POST /v1/admin/hathor/research-grounding/analyze (ANALYZE_ENDPOINT) with the passage + citation positions
  • 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.