# V3 Concert Authoring Pipeline

Section 73D is implemented as a typed Saraswati Stage contract, a Lilith Studio
authoring surface, deterministic release-gate evidence, and Playwright coverage.
The pipeline is scoped to complete concert authoring for a GA Saraswati artist
without bypassing V1 editorial workflow, Isis provenance, or UE Sequencer
publication controls.

## Release Contract

- Web Studio route: `/lilith-studio/concerts`
- Library contract: `libs/v3/saraswati-stage/src/concert-authoring-pipeline.ts`
- Release schema: `saraswati.concert-authoring-pipeline.v1`
- Publish receipt schema: `saraswati.concert-sequencer-publish.v1`
- Provenance bundle:
  `isis:provenance:saraswati-concert:concert-saraswati-raga-devi-ga-debut-001:v3`
- Release gate: `pnpm verify:v3 concert-authoring-pipeline`

## Locked Gates

| Gate                                 | Locked value                                                 |
| ------------------------------------ | ------------------------------------------------------------ |
| Persona dossier and setlist proposal | Complete in 2 working days                                   |
| Per-track generation and review      | 12-track debut catalog in 6 working weeks                    |
| Motion preset bindings               | 12 songs bound in 12 working days                            |
| Lighting and Niagara cue tracks      | 12 songs bound in 12 working days                            |
| Sequencer assembly                   | Full Sequencer assembled in 2 working days                   |
| Between-song speech bank             | 10 slots x 4 alternates, reviewed and signed off             |
| Audience choreography                | Light emoji, applause beds, and song request routing bound   |
| Dress rehearsal                      | 2 closed staging rehearsals with operator participation      |
| Provenance publish                   | Full Isis bundle visible in provenance inspector             |
| GA cadence                           | 6 artists x 2 concerts/month = 12 concerts/month for 60 days |

## Web Studio Signoff

The Lilith Studio concert route exposes the same release contract through
deterministic `data-*` attributes used by Vitest and Playwright:

- `data-proposal-days="2"`
- `data-debut-track-count="12"`
- `data-setlist-song-count="12"`
- `data-motion-preset-days="12"`
- `data-lighting-niagara-days="12"`
- `data-sequencer-assembly-days="2"`
- `data-speech-slots="10"`
- `data-speech-alternates-per-slot="4"`
- `data-dress-rehearsal-count="2"`
- `data-monthly-ga-concert-count="12"`
- `data-provenance-bundle-id="isis:provenance:saraswati-concert:concert-saraswati-raga-devi-ga-debut-001:v3"`

The publish button calls `publishSaraswatiConcertSequencer`. It remains disabled
when the speech-bank evidence drops outside the 8-12 slots x 3-5 alternates
window, the staging dress-rehearsal count falls below two, or the GA cadence
proof window is incomplete.

## Verification

The release gate checks the library contract, Web Studio route, shell route
registry, unit tests, Playwright coverage, evidence JSON, workflow hooks, and
TODO checkboxes. Focused automated verification for implementation signoff:

- `pnpm verify:v3 concert-authoring-pipeline`
- `pnpm nx run @oshun/tenant-saraswati-stage:test`
- `pnpm --dir apps/oshun/web exec vitest run src/app/lilith-studio/concerts/SaraswatiConcertAuthoringPipeline.test.tsx src/app/lilith-studio/LilithStudioShell.test.tsx`
- `pnpm exec playwright test -c apps/oshun/web/playwright.config.ts apps/oshun/web/e2e/lilith-saraswati-concert-authoring-smoke.spec.ts --workers=1`
