What station review is for
Station review is a quality-assurance step for checking whether a station is publishable, coherent, and safe for simulation and evaluation. It helps reviewers spot weak schema content, weak persona definition, missing rubric signals, and obvious simulation risks before a station goes live.
InterpretationUse review output as QA support, not sole publication approval. Confirm rubric completeness, persona specificity, key points, and simulation safety before publishing.
Edit station fields and avatar appearance
Open your private reviewer link to use the full editor without signing in. It enables draft access, creating and saving stations, publication changes, deletion, revision history, archive links and rollback. The link grants station operations only; it cannot change provider administration. An ordinary visit without a valid reviewer session remains a published-only read-only view.
Operators with access to the staging runtime secret can issue a fresh reviewer link from the repository root with python -m scripts.create_station_review_link --aws-profile medicaitutor-admin. Each run prints a new private URL. New links last 30 days from creation by default and are bound to their API host and environment; use --days 7 for a shorter lifetime. Existing links keep their original expiry, and reopening a link does not extend it. Share the resulting URL privately: anyone holding it has station editing access. Its access grant stays in a browser fragment, is exchanged through POST /stations/review for a secure HttpOnly station cookie with the same expiry, and is removed from the address bar. The exchange returns HTTP 204; no admin key is sent to the browser or embedded in the link. Invalid or expired links require a new link.
The vertical tabs follow the station JSON: General contains slug, title, section, task and lead; the remaining sections include Prompts, Persona, Avatar, Key points, Guardrails, Rubric, Evaluation, Sources, Station meta and Publication. On mobile, choose a section from the section selector. Field paths identify the exact JSON property being edited, including array indexes such as persona.affect_profile.rules[0].internal_affect.
Nested fields are editable in their section. Use Add field or Set value for optional values, Clear value for nullable fields, and the list controls to add, remove or reorder items. Dictionary fields support adding and removing properties. Advanced JSON edits the same draft directly; invalid JSON must be corrected before continuing. Health and Avatar review are generated, read-only sections.
- Open your private reviewer link, select any station, and use the title, category, revisions, archive, rollback and publication controls. Admin credentials remain supported for existing API clients.
- Select the Persona tab to edit the actual simulated participant, not the candidate psychiatrist. Edit the other structured sections as needed; Advanced JSON remains available and shares the same draft.
- Select the Avatar tab. Choose a provider for this station and select a LiveAvatar thumbnail. Search by exact name or ID; Compatible faces filters by speaker role. All usable faces shows the full approved pool with role-incompatible options disabled. Santa is excluded. Age and presentation still require human review.
- Tavus shows only configured profiles. A missing preview or exact provider name is labelled unavailable rather than invented. Selecting one provider does not delete the other provider block.
- Click Save station, inspect the before/after changes and any fields normalized or removed, and confirm. Speaker identity or avatar changes require a reviewer name, a station-specific presentation note, and explicit appearance approval. The server stores this evidence under avatar_review; it does not mark the station expert-reviewed or publish it automatically.
- Reload and inspect the saved revision and archive. A stale-record error means someone changed the station: reload, compare, and reapply your edits. Unsaved drafts are protected by a discard warning when switching stations or leaving the page.
The editor reads GET /stations/editor-catalogue and GET /stations/{slug}/editor-version. Before saving, POST /stations/editor-preview validates and normalizes the draft without writing a station or revision. Saves use the existing POST/PUT station API, authenticated by the scoped reviewer cookie or admin credentials, with X-Station-Editor-Version and, for appearance changes, X-Station-Appearance-Review. Catalogue validation and a pre-write fingerprint check run server-side. This check detects stale loaded records; it is not a distributed atomic compare-and-swap. No provider session is created by browsing or saving the editor.
Speaker and appearance review queue
The content review endpoint and the avatar review queue answer different questions. POST /review checks station content; the private queue checks who the simulated speaker is and whether a provider avatar is appropriate for that station.
Private, read-only review aidThe queue is generated from a current station and provider-catalogue snapshot. The generated page does not write to AWS, LiveAvatar, or the station API. Its static/model proposals are evidence to inspect, not approvals, and snapshot counts must not be treated as permanent API documentation.
- Identify the actual speaker. Read the task, case synopsis, and persona to determine who the avatar represents. Do not assign an avatar based on the candidate psychiatrist or on an occupation word alone.
- Approve the speaker record. Confirm the speaker name and role from source evidence. Resolve contradictions before selecting an appearance.
- Choose a role-compatible avatar. Use an active, approved catalogue entry, keep ordinary clothing for patients and family/carer informants, and reserve clinical presentation for clinical-professional informants.
- Record station-specific appearance approval. Include the current station hash, catalogue hash, reviewer, timestamp, review kind, approved ID, and a note covering age, clothing, framing, and any accepted mismatch. Resolve the exact display name from the current catalogue when writing the station block.
- Apply only after all gates pass. Re-read the current station and catalogue, then use the authenticated station API. Keep the assignment stable across sessions and verify the saved S3/API record.
Approval record example
{
"station_slug": "abuse-in-intellectually-disabled-person-history-taking",
"source_sha256": "current-station-sha256",
"catalog_sha256": "current-liveavatar-catalogue-sha256",
"speaker_review": {
"status": "approved",
"speaker": "Sonia Adam",
"role": "clinical_professional_informant",
"source": "task/case_synopsis/persona",
"reviewed_by": "clinical-reviewer",
"reviewed_at": "2026-09-06T12:00:00Z"
},
"appearance_approval": {
"status": "approved",
"review_kind": "human_station_appearance",
"human_reviewed": true,
"reviewed_by": "clinical-reviewer",
"reviewed_at": "2026-09-06T12:00:00Z",
"approved_avatar_ids": [
"approved-catalogue-avatar-id"
],
"presentation_note": "Clinical-professional presentation is appropriate for this CPN informant; framing and clothing reviewed for this station."
}
}
Resulting station avatar block
{
"avatar": {
"default_provider": "liveavatar",
"liveavatar": {
"avatar_id": "approved-catalogue-avatar-id",
"display_name": "Approved catalogue display name"
}
}
}
Approval is not inferredA role-compatible candidate, a catalogue match, or an automated static preview does not approve a station. A human reviewer must approve the actual station-specific appearance before an assignment can be applied.
Safe edit and publication workflow
Use three separate saves for a material repair. A material repair changes patient facts, the candidate task, disclosure rules, key points, or rubric domains. Set expert_reviewed false while content is unpublished; set it true only after the repaired content receives recorded expert review.
- Save 1 - keep unpublished. Add the unpublished publication block below, click Save station once, then reload the station and confirm the unpublished status and reason. If Save fails, do not edit further; correct the JSON or access error first.
- Save 2 - repair while unpublished. Change the station content without changing the unpublished publication block, save again, inspect the new revision, and complete a station-specific candidate test. If the S3 archive link or read-back does not match the saved JSON, stop and investigate before publishing.
- Save 3 - publish after approval. After human clinical/content approval and successful candidate testing, replace the unpublished block with the published block below and save once. Reload the station and confirm the publication reason and current S3 object. If either differs, treat publication as failed.
Keep unpublished before repair
{
"publication": {
"status": "unpublished",
"reason": "Material repair - candidate retest pending",
"expert_reviewed": false
}
}
Publish after testing and approval
{
"publication": {
"status": "published",
"reason": "Clinical review and candidate validation passed",
"expert_reviewed": true
}
}
Rollback and taxonomy changesSelect a revision and inspect its full JSON preview before confirming rollback. For a section or category migration, review the affected-station count and slugs before confirming. A failed rollback or migration must be investigated before any retry.