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-checkingand/studio/hathor/sophia-citation-service(verify against those pages' sources) - Direct URL / bookmark — yes;
alternates.canonicalset 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, withdata-hathor-rg-engine-summary
- Route Map panel
data-hathor-research-grounding-route-map—<h2>"Route Map" listing the 5STUDIO_HATHOR_RESEARCH_GROUNDING_ROUTE_MAPentries (sources / claims / evidence / governance child paths) - Quick-action lane — two
Link.quickActionanchors: Sophia Citation Service, Back to Studio workspace index
States#
- Loading —
data-hathor-rg-loadingwhile the GET catalog request is in flight - Unauthorized (admin-scope 401/403) —
data-hathor-rg-unauthorized - Error —
data-hathor-rg-error - Ready (form) — passage textarea + citation-positions input + submit
- Result —
data-hathor-rg-resultwithdata-hathor-rg-headline,data-hathor-rg-positions,data-hathor-rg-required,data-hathor-rg-uncited(per-rowdata-hathor-rg-uncited-rowcarryingdata-claim-type) ordata-hathor-rg-clean - Validation error —
data-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-positionsinput - Submit —
<button data-hathor-rg-submit>"Analyze grounding" → POSTANALYZE_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
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-sophia-citation-service.md,./studio-hathor-lore-fact-checking.md - Component sources:
apps/oshun/web/src/components/studio/StudioHathorResearchGroundingWorkspace.tsxapps/oshun/web/src/components/studio/StudioHathorResearchGroundingRouteMap.ts
Open questions / known gaps#
- Hathor is
unconfirmed-v1perWALKTHROUGH/matrix/routes.csv. Confirm whether the dedicated/studio/hathor/lane consoles ship at V1 or are internal-only.