Context. surface studio · domain aja · route /studio/aja/per-stage-configuration · auth signed-in + studio entitlement · source apps/oshun/web/src/app/studio/aja/per-stage-configuration/page.tsx
Last walked. 2026-07-02 pipeline-control lane addendum — Playwright real-dev-infra coverage now proves signed-in render, route-map contract, quick-action href order, ready stage-config form, 44 px submit target, malformed-JSON client guard with no POST, forward-dependency issue rendering, valid config result, fail-closed loading/unauthorized/catalog-error states, mobile no-overflow, and direct BFF 401/403/400/200 gates for catalog and validate. Spec: apps/oshun/web/e2e/studio-aja-pipeline-control-lane-consoles.spec.ts.' '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#
Leaf lane console that wires the real motion-pipeline stage-config validator. The operator submits a single stage configuration and the lane validates it — known stage, positive timeout, sane retry policy, and dependencies that resolve to earlier stages in canonical execution order — returning the stage, a valid/invalid verdict, and any field-level issues.
Entry points#
- Direct URL / bookmark —
/studio/aja/per-stage-configuration. - Studio nav — Domain-bridge studios section of
/studio. - Embedded — appears as the Per-Stage Configuration Lane inside
/studio/aja/svc-motion-pipeline. - Sibling quick-action — "Open Aja Pipeline Stages workspace"
(
/studio/aja/pipeline-stages).
Layout regions#
page.tsx renders inside <ShellLayout active="studio">:
- Workspace
<StudioAjaPerStageConfigurationWorkspace />:<h1>"Aja Per-Stage Configuration Workspace" + summary (data-aja-per-stage-configuration-summary).- Stage Config Validation Lane (heading
data-aja-psc-lane-heading) — the form; includesdata-aja-psc-engine-summary(catalogsummary) anddata-aja-psc-stages(canonical stage chain).
- Route Map panel (
data-aja-per-stage-configuration-route-map,<h2>"Route Map"): 5STUDIO_AJA_PER_STAGE_CONFIGURATION_ROUTE_MAPentries — primary, scenes, exports, revisions, governance. - Quick-action lane: two
Link.quickActionanchors. No breadcrumb panel.
States#
The lane fetches GET /v1/admin/aja/per-stage-configuration on mount.
- Loading —
data-aja-psc-loading"Loading stage-config validator…". - Unauthorized —
data-aja-psc-unauthorized(401/403; default "Aja workspace scope required to validate stage configs."). - Error —
data-aja-psc-error. - Ready (form) —
data-aja-psc-form. - Result —
data-aja-psc-resultwithdata-aja-psc-headline(stage + valid/issue count) anddata-aja-psc-issues-list(rowsdata-aja-psc-issue-row). - Validation error —
data-aja-psc-validate-error(e.g. "Config must be valid JSON.").
Interactions#
Validate form (data-aja-psc-form)#
- Stage config (JSON) — textarea
data-aja-psc-config(defaultretargetingstage config). - Validate stage config — submit
data-aja-psc-submit; firesPOST /v1/admin/aja/per-stage-configuration/validatewith{ config }.
Route Map#
- Route entries (5) — non-interactive listing.
Quick-action lane#
- "Open Aja Pipeline Stages workspace" →
/studio/aja/pipeline-stages - "Back to Studio workspace index" →
/studio
E2E coverage#
apps/oshun/web/e2e/studio-aja-pipeline-control-lane-consoles.spec.tscovers signed-in shell render, ready stage-config form, malformed-JSON client guard with noPOST, real BFF forward-dependency issue rendering (dependencies/forward-referenceforpreprocessingdepending onretargeting), validretargetingconfig output, route-map count, exact quick-action hrefs, 44 px submit target, loading / unauthorized / malformed-catalog fail-closed states, mobile no-overflow, and direct BFF auth/schema/happy-path gates.
Data & contracts#
- Reads:
GET /v1/admin/aja/per-stage-configuration(catalog:summary,canonicalStages,qualityPresets,retryBounds). - Writes:
POST /v1/admin/aja/per-stage-configuration/validate→{ stage, valid, issues }. - Realtime: none.
- Caching: client fetch on mount (
cache: 'no-store'); SSR shell. - Auth/role check: BFF endpoint admin-scoped + fail-closed; route gated signed-in + studio via proxy.
Cross-references#
- Parent:
../../studio-overview.md - Aggregator that embeds this lane:
./studio-aja-svc-motion-pipeline.md - Sibling (quick-action):
/studio/aja/pipeline-stages - Component sources:
apps/oshun/web/src/components/studio/StudioAjaPerStageConfigurationWorkspace.tsxapps/oshun/web/src/components/studio/StudioAjaPerStageConfigurationRouteMap.ts
Known downstream boundaries#
- Route Map lists
scenes/exports/revisions/governancechild routes as descriptive contracts; implementation status of those child pages is tracked separately from this leaf console.