Greeting Pictures

Status: ✅ GP1 + GP2 shipped (pushed in e20b5bf85, 2026-11-11); the story's opening shows the picture too (B11, 9dc58e3ad + 04bca3c29, 2026-11-22/23). A greeting carries its own picture, set in the Forge's greeting editor; it shows beside the greeting on chat.'s Start tab, on the card of a story started from it, and at the top of the story's opening. GP3 (the agents) is open. Built against develop at 7de29ebe4; where the code had moved since this spec was drafted (565ef85b3), what was built and why is in Build notes (GP1 + GP2) below. Every Acceptance Criteria box stays open until a live pass ticks it.

Overview

A character can have several greetings. Each one is a different way into the story: a tavern at night, a ballroom, a battlefield. Today every one of them looks the same from the outside, because the only picture a story ever shows is the character's portrait (or the package cover). The chat door's Your stories card is an example: 143 messages · 13h ago · Chat with Nerio · excerpt · Pick up the story, beside Nerio's portrait.

This feature lets a creator attach one picture to a greeting, such as the scene, the outfit or the mood. Two places then show it:

It reuses the picture-linking machinery that character avatars and lorebook-entry pictures already use. It adds no new picture plumbing.

What is there today

Greetings are their own rows.

A story already records its greeting.

A story card's picture is the portrait.

Pictures already link to entities through one table.

Greeting text can already embed pictures.

Where greetings are written.

Where readers pick a greeting.

The gaps

  1. A greeting has no picture field, no link route, and no Used by branch.
  2. The story list doesn't read the conversation's greeting, so a card can't know which picture to show.
  3. GreetingOverview has no picture, so pickers can't show one.

Design

Storage: a picture field on the greeting, through PrimaryImageTarget

Rating, review and who sees what

A greeting picture is a picture like any other.

Surface Owner Adult reader Protected reader (13–17) / guest / signed out
Your stories card (chat door, writing client) The greeting picture, blurred by their own Content Filter if rated; a held picture is never drawn Same The anonymous face rule: only an all-ages, not-held picture stored by us. Anything else falls back to the portrait the face admits, else the placeholder. No rated bytes reach them.
Greeting picker (Start tab, new story, the writing client's picker) Same as the card Same, blurred by the reader's Content Filter The same anonymous-face rule. A greeting whose picture the face doesn't admit shows no picture, and the greeting itself stays listed (a withheld picture never hides safe content).
Gallery manager, Used by Lists the greeting under the character — — (the gallery is 18+, and a protected identity has no gallery)
Forge greeting editor (attach / change) The picture field — — (protected identities can't pick from a gallery they don't have; the field is absent)

Fallbacks. The card shows the first of these that exists:

  1. the package cover (a package story keeps its cover);
  2. the greeting picture, when the greeting and its character are live and the picture is admitted for this reader;
  3. the character portrait;
  4. the placeholder.

A soft-deleted greeting's picture is not shown. The card falls back to the portrait. A soft-deleted character's greeting picture is not shown either (B12). The card then has no portrait to fall back to, so it shows the package's cover, or the placeholder with none.

The card

Creator UX: where a picture gets attached

Import, export, packages, branches

Owner decisions

Decided 2026-10-28 (owner): all five as the working defaults below — one picture per greeting, free at every tier, the package cover first, a swap on a public character re-enters review, not shown in the story header.

# Decision Decided If she picks otherwise
G1 One picture per greeting, or several? One. It is the greeting's cover. More pictures belong in the text (g://) or the gallery. Several means a link table and a "primary" flag, which is the shape PrimaryImageTarget was built to avoid. M1 grows a lane.
G2 Is it free? Free, at every tier. It is part of authoring a character (the access-first ethic). A paid version would be a Feature Commitment checked with FeatureGate.IsEnabledAsync, never a tier check.
G3 Package story: cover or greeting picture first? Cover first. A package is a curated product and its cover is its face. Greeting first means a package story shows the chosen opening's picture. That is one line in the precedence.
G4 Does changing a public character's greeting picture re-enter review? Yes. It joins the publish face, as greeting pictures in text already do. No means a public character could swap in an unreviewed picture. Not recommended, because it contradicts "every public character is reviewed by a human".
G5 Show it in the story page header too? No. The card only; the transcript keeps the character's face. The opening is a different place (B11, owner 2026-11-21): it shows the picture; the header still doesn't. Yes means the header reads the same cardPicture. That is a small fe change.

Milestones

Each milestone is push-safe at its boundary.

M Delivers Lanes Push unit
GP1 — the field The column, the PrimaryImageTarget for greetings, the link route widened to type 9 (access through the parent character's edit right), the Used by branch, the create and update requests (Optional), GreetingOverview.pictureUrl + pictures, the publish-face digest, the Forge and classic editor fields. db, dotnet, fe one unit: no reader surface changes yet, and the editor can set and clear it
GP2 — the cards and pickers The list view join, the precedence plus cardPicture.source in the list endpoint and its three sibling readers, StoryCard / SavedChatCard, and the picture in GreetingList, GreetingPicker and GreetingChoiceModal. db, dotnet, fe one unit
GP3 — agents GreetingDraft picture plus apply and undo, the proposal card, MCP; and the Media Assistant link leg once MA4's link half ships. db, dotnet, fe one unit (the MA leg rides MA4)

Lanes (GP1, GP2)

Lane Runtime Owns Appends to
GP1a db New database/v1/n_greeting_picture_image.sql (the column, the guarded ALTER); functions/63_gallery_image_usage.sql (greeting branch); functions/07_greeting_migration_functions.sql (upsert surgical on the picture); views/03_character_greeting_view.sql; the anonymous-face digest (fn_anon_greeting_pictures or its caller); DB tests v1_run_all.sql
GP1b dotnet PrimaryImageTarget greeting instance; GalleryEndpoints.cs:1901-1909 (type 9, access via the parent character); CreatorGreetingEndpoints.cs + CreatorModels.cs (Optional<int?> picture); CharacterGreeting.cs, GreetingViewRow, GreetingOverview + MapToGreetingOverview (pictureUrl, pictures); tests —
GP1c fe GreetingEditForm.tsx, useCharacterGreetingForm.ts, the classic editor's greetings step, clientConsole/src/types/entities.ts, api/greetings.ts —
GP2a db + dotnet views/06a_conversation_list_view.sql (greeting join); ConversationsEndpoints.cs:2796-2813 (precedence, cardPicture); CreatorConversationRepository, WebConversationRepository, AdminConversationRepository (the same derivation); tests —
GP2b fe chatConsole/src/chat/list/{StoryCard.tsx, api.ts}, components/details/start/GreetingList.tsx, api/member.ts, api/showcase.ts; clientConsole SavedChatCard.tsx, GreetingPicker.tsx, GreetingChoiceModal.tsx; fixtures (chat/test/storyServer.ts) —

Contracts

Build notes (GP1 + GP2)

Built 2026-11-10 as one push unit. The spec was drafted against 565ef85b3, and these are the places the code had moved, with what was built instead and why.

Numbers. Migration 417_greeting_picture_image.sql (the column, the partial FK index), wired in v1_run_all.sql beside its sibling 40_lorebook_entry_picture_image.sql: after 03 and 31, before functions/07, 63, 65, 82a, 94 and views/00. No new functions file: functions/63, 64, 65, 82a, 94 and 146 and views/03 and 06a change in place (CREATE OR REPLACE, the views' own drop and create). functions/146 names a greeting's link row in the media console's "used in" by its character.

GP1, what landed.

GP2, what landed.

Divergences from the spec, each decided here.

Cost

Non-Goals

Acceptance Criteria

The feature is not done until every box below is verified ✅ against the running product.

User use cases — satisfiable + accessible (verify by driving the UI, not the code):

Behavior:

Invariants that must stay true (carve-outs):

Edges:

The story's opening (B11, owner 2026-11-21):