Package Cast β€” Supporting Characters and Who Is in the Scene

Status: βœ… C1 SHIPPED (2026-09-10, 93eee7954) β€” cast, roster, injection, page, credit and screening are live; the acceptance list below records what was exercised (UC-5 picker still open). βœ… C2 built (member lore, owner 2026-10-16; landed 2026-10-16, af701eeea). It also carries the rule that a member's own lore resolves {{char}} to that member (Who {{char}} is in a member's lore). 🚧 C3 built, live check open (owner, 2026-10-16; M1, the field on the character, and M2, where the cast reads it, landed 2026-10-17 β€” 43e0020e5, 4eaa4af1d, 69aab405b, 3a76bb523; M2's live check and C3-T are not recorded as done):

C3-T closes the package changes with a check of every package tool. Delivery plan: docs-internal/architecture/chat-engine/PACKAGE_CAST_C3_DELIVERY.md.

A package bundles one character, one mode, lorebooks, persona templates, trackers. It has never been able to bundle more than one character, and the stories it is built for β€” a party, a household, a crew, a court β€” are exactly the stories where it should. This doc gives a package a cast: a set of supporting characters the primary character shares the scene with, and a roster the story keeps up to date so the model always knows who is in the room.

It replaces the "Character Groups" design in trackers.md, which parked the cast in a standalone character_groups entity because, when it was written, nothing else could hold one. A package can now.


Overview

A creator building an adventure has a protagonist (the package's character), a narrator mode, and a world in lorebooks. The companions, rivals and recurring NPCs of that world are today either squeezed into the protagonist's system prompt (every companion, every message, whether or not they are on stage) or written twice β€” once as a Character the creator already made, once again as a lorebook entry so keyword search can surface it. Both are lossy: the first spends tokens on absent characters and dilutes the protagonist's own voice; the second forgets whoever has not been mentioned in the last few messages and puts a maintenance burden on the creator.

The cast fixes this with two ideas from the tracker design:

The primary character stays the single speaker. This is a cast, not a group chat: the model plays the scene through the package's character (or its narrator), with the cast as the people in it. Per-message speaker selection is a different, much larger feature and is a non-goal here.


What already exists (and is reused as-is)

The feature is assembled from substrate that shipped in the tracker and package work of 2026-09; nothing below is rebuilt.

Need Existing piece
A tracker the eval maintains, the bar renders, the reader can edit Phase-1 trackers: per-message web_messages.tracker_json snapshots, TrackerEvalStageBase, WebTrackerHistoryInjector, TrackerBar
A list tracker whose allowed values are names and whose current items pin content T1: TrackerValueFormatter.DescribeType / TryNormalize for linked lists, WebTrackerPinnedKnowledgeSource reading the latest snapshot
"Which trackers are active on this conversation" P1: ConversationTrackerSetResolver (character βˆͺ package, deduped by key, renumbered) β€” every consumer already reads it
Package components staged in the builder and saved as a set The lorebook / tracker steps: fn_save_package_full + a fn_sync_package_* full-replacement function, the workbench draft, useStepStates, BuilderStepCard, DetailPanel
Bundling someone else's character with credit fn_save_package_full's character bind gate, fn_package_co_creator_count, package_contribution_view, the contributors strip
Screening a private component that a public package exposes The linked-entity fan-out in fn_run_publish_request_checks
A mode that omits a section still gets it SystemPromptBuilder.AppendJournalFallback
A character rendered as prompt text CharacterContentProvider (first person, primary only) and IPersona.ToFormattedCard() (the "state facts, don't shout directives" craft note)

Design Goals

  1. Reuse the character. A cast member is a Character. Its prompt, avatar, lorebooks and creator credit come from the character row; the package adds only what is specific to this story's framing of it.
  2. Zero-setup roster. The creator adds cast members; the roster exists. No tracker to create, name, type, bind, or keep in sync. The only knob is the eval hint.
  3. Presence decides cost. Tokens go to the people in the scene. Absent members cost one line each. (C3: every member also carries their cast profile, present or not. That's the price of the model never inventing an offstage character's hair colour. Present members still add their full card on top.)
  4. Same rails, no forks. The roster is an ordinary tracker to every consumer β€” eval, injector, bar, inline edit, summary timeline, pinned knowledge. Nothing downstream learns a new shape.
  5. Authorization by precedent. Adding a cast member follows the same rule as binding the package's own character; injecting cast prompts into a package conversation follows the same transitive-grant rule package lorebooks already use.
  6. The cast is configuration, read live. Like package trackers (and unlike package lorebooks, which are copied into a conversation at creation), editing the cast changes the next turn of every conversation started from the package.

Non-Goals

Deliberately out of scope:


The Shape

Data model

-- database/v1/21_tables_packages.sql (new block)
CREATE TABLE IF NOT EXISTS package_cast_members (
    id                     SERIAL PRIMARY KEY,
    package_id             INTEGER NOT NULL REFERENCES packages(id)   ON DELETE CASCADE,
    character_id           INTEGER NOT NULL REFERENCES characters(id) ON DELETE CASCADE,
    always_on_summary      VARCHAR(200) NOT NULL DEFAULT '',
    override_system_prompt TEXT,
    present_at_start       BOOLEAN NOT NULL DEFAULT TRUE,
    sort_order             INTEGER NOT NULL DEFAULT 0,
    created_at             TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    updated_at             TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    UNIQUE (package_id, character_id)
);
CREATE INDEX IF NOT EXISTS idx_package_cast_members_character ON package_cast_members(character_id);

ALTER TABLE packages ADD COLUMN IF NOT EXISTS cast_extraction_hint TEXT;

The roster is synthesised, not stored

The roster is not a trackers row. ConversationTrackerSetResolver gains a third leg that, when the conversation's package has at least one live cast member, synthesises an ActiveTrackerDefinition:

Field Value
Key cast
Name "Cast"
ValueType 4 (list)
EnumValues JSON array of the live members' story names (COALESCE(NULLIF(btrim(char_name),''), name)), in sort_order
InitialValue JSON array of the members with present_at_start, same order
ExtractionHint packages.cast_extraction_hint or the built-in default
InjectionMode / IsVisible 0 (full) / true
SortOrder 0 β€” it leads the union; character and package trackers renumber after it

One substrate fix rides along: TrackerValueFormatter.TryNormalize rejects an empty list for every list tracker today (zero items after filtering β†’ "skip, carry the prior value forward"), so no list tracker can ever be emptied by the eval and the last cast member could never leave. The list arm now distinguishes decoded to zero items (a legal answer: the list is empty, normalised to []) from decoded to items none of which are allowed (still rejected, prior value kept). Blank raw text stays rejected. The same rule lives one step earlier in TrackerEvalParser, which used to drop an empty JSON array before the formatter saw it (found live on the probe: the eval answered [] and the snapshot carried the prior value with neither an update nor a skip counted) β€” an empty array now reaches the apply step as the canonical [], while blank text is still "no change". The reader could already empty a list from the bar; the eval now can too.

Everything downstream is unchanged: the eval renders the list instruction from EnumValues and canonicalises answers against it, the injector writes the OOC line, the bar renders chips with a picker over the names, inline edit validates against the union, the summary timeline folds it. WebChatEntryPoint.HasBoundTrackers asks a third question ("does the package have a cast?") so the eval's compute reserve is metered for a cast-only package exactly as for a tracker-only one.

Why not a real tracker row. Materialising one hits four traps the tracker substrate already documents: idx_trackers_owner_key is unique per (owner, key), so a creator's second package cannot also own cast; fn_sync_package_tracker_bindings is a client-driven full replacement, so an auto-bound row is deleted on the next save unless injected server-side; a generated row must then be hidden from the Forge list, the assistant's pool, the bind pickers, sharing, publishing and entity references β€” seven exclusion lists; and packages soft-delete, so "dies with the package" becomes a liveness predicate on every read anyway. A synthesised definition has none of these and is exactly what every consumer already accepts.

The cast key is reserved while a package has a cast. The roster leads the union and DedupeByKey keeps the first definition, so a creator's own tracker keyed cast on the character or the package is shadowed for conversations started from that package. The builder's Story State step says so on the read-only roster row.

Prompt injection

A new WebChat provider, WebCastContentProvider, keyed cast (added to ContextKeys and PromptKeyCatalog with IsDynamic: true and SacrificeRank: 4, the same rung as journal β€” lowest rank is trimmed first and ties break by size, so an oversized cast is trimmed before the story's summary and, being the bigger block, before a small journal). Per turn it:

  1. Returns "" unless the conversation is web, has a package with live cast members, and trackers are on (Features.EnableTrackers).
  2. Reads the latest cast value from the previous snapshot (GetLatestTrackerJsonAsync, the same read the pinned-knowledge source makes), falling back to the roster's initial value; decodes the list; matches items to members by story name, case-insensitively.
  3. Renders, in cast sort_order:
Other characters in this scene, written by the narrator, never the reader:

### Elara
<override_system_prompt, or the character's system prompt>

### Grimjaw
<…>

Also in this world, not present right now:
- The Shadow King β€” ancient lich ruling Shadowkeep.

Details that matter:

SystemPromptBuilder gains a cast fallback section, AppendJournalFallback generalised into AppendFallbackSection(sections, key, template) so journal and cast share one implementation (rule of two), applied sequentially over the growing list so the two fallbacks do not tie on sort order: when the mode declares no cast subprompt and no inline {{cast}} token, a section is appended after the mode's own with the template "{content}". The fallback only runs on the has-subprompts branch, so DefaultSections (the no-mode / zero-subprompt path) gains a Cast entry at order 175 (after journal, before lorebook) β€” and DefaultProviderKeys, mirrored by WebChatFeatureStateService for the HowDrawer, widens with it. Without the catalog entry the section would be treated as static and poison prefix caching; the catalog entry is required for that reason, not for provider lookup. A creator who wants to frame the cast writes a cast subprompt in their mode; a mode that does not is not a reason for the cast to vanish (the trackers / journal rule: not mode-gated, soft UI note only).

Package save, edit read, and the gate

fn_save_package_full gains p_cast JSONB DEFAULT NULL and p_cast_extraction_hint TEXT DEFAULT NULL. The hint is three-state β€” absent = keep, '' = clear to NULL, value = set β€” which the function's other text columns are not (they are two-state COALESCE), so it is written explicitly: cast_extraction_hint = CASE WHEN p_cast_extraction_hint IS NULL THEN packages.cast_extraction_hint WHEN btrim(p_cast_extraction_hint) = '' THEN NULL ELSE p_cast_extraction_hint END. The roster reads NULLIF(btrim(cast_extraction_hint), '') and falls back to the built-in default. p_cast is an array of { "characterId": uuid, "alwaysOnSummary": text, "presentAtStart": bool } (C1 also carried "overrideSystemPrompt"; C3 retired it, and a payload that still sends it is ignored) in display order; NULL or [] = no cast. It is resolved with the primary character's own bind rule, verbatim from the existing gate:

owned by the package owner, OR is_public, OR shared into this project via project_items, OR already a cast member of this package (the anti-wedge prong).

The tracker rule (owner-only) is deliberately not used: it exists to match the character tracker bind surface, and the corresponding surface for characters is this gate. A supporting character must not be harder to add than the protagonist, and bundling another creator's public character with credit is the documented package composition story.

The array goes through a shape guard (every element names a uuid, or the whole save is a shaped refusal), is deduped first-occurrence-wins on the lower-cased uuid, capped at 8 members (cheap check first), resolved with an arity check (supplied β‰  resolved β†’ RAISE, nothing written), refused if it contains the package's character, and refused if two members β€” or a member and the package's character β€” share a story name case-insensitively. The cap is (a constant in fn_save_package_full mirrored by PackageCast.MaxMembers in Core β€” promoted to a default_settings key only if a real cast ever needs more; the tracker cap is a setting because that setting already existed), then synced by fn_sync_package_cast_members(p_package_id, p_cast JSONB) β€” a full replacement in array order under pg_advisory_xact_lock(hashtext('package_cast'), p_package_id), with ON CONFLICT (package_id, character_id) DO UPDATE on the three per-member fields and sort_order. Refusals β€” every raise text starts with Cast so none collides with the tracker arm's A package can carry at most prefix in MapSaveRefusal (which string-matches prefixes in order; an unmapped raise is a deliberate logged 500, so all three need their own arm): 'Cast member % not found or not bindable by user %' β†’ cast_not_bindable (403); 'Cast can carry at most % members (% supplied)' β†’ cast_limit_reached (422); 'Cast cannot include the package character' β†’ cast_includes_character (422). All roll the whole save back.

fn_get_package_for_edit returns cast JSONB (uuid, always-on summary, present at start and, since C3, hasCastProfile in place of the override; in sort_order, live characters only) and cast_extraction_hint.

Like every other package set, the save is a full replacement: a caller that omits cast clears it. The agent lane only ever creates packages through this function (ComposerProposalApplier.Creations, packageUuid: null) and stages no cast; its idempotency retry re-enters the create branch, lands on the existing package through ON CONFLICT (idempotency_key), and the unconditional syncs then run with empty arrays β€” the cast inherits exactly the behaviour trackers, persona templates and model profiles already have on that path, nothing new.

Wire contract (pinned so frontend and backend build to it concurrently)

C3:

The C3 contract is in its delivery plan, Β§3.

// Save (POST /api/creator/projects/{p}/packages) β€” additive fields on SavePackageRequest
cast?: {
  characterId: string            // character uuid
  alwaysOnSummary: string        // ≀ 200 chars, may be ""
  overrideSystemPrompt: string | null
  presentAtStart: boolean
}[]                              // omitted or [] = no cast (full replacement, display order)
castExtractionHint?: string      // omitted = keep, "" = clear, value = set

// Edit read (GET …/packages/{id}) β€” additive fields on PackageEditResponse
cast: {
  characterId: string
  alwaysOnSummary: string
  overrideSystemPrompt: string | null
  presentAtStart: boolean
}[]                              // binding order, live characters only
castExtractionHint: string | null

// Public details (GET /api/browse/packages/{id}/details) β€” additive on PackageDetailResponse
cast: LinkedPackageCastMemberOverview[]
interface LinkedPackageCastMemberOverview {   // mirrors BrowseModels.cs
  id: string                     // character uuid
  name: string                   // display name
  description: string | null
  pictureUrl: string | null      // avatar
  pictureContentRating: number | null
  pictureModerationStatus: number | null
  pictureContentType: string | null
  characterType: string
  isPublic: boolean
}

// Chat β€” no new endpoint; GET /api/conversations/{id}/trackers returns the roster as
// ConversationTrackerDto { key: "cast", name: "Cast", valueType: 4, enumValues: "[…]", sortOrder: 0, … }

// Refusal codes on the save (existing { error, code } envelope):
//   cast_not_bindable (403) Β· cast_limit_reached (422) Β· cast_includes_character (422)
//   cast_duplicate_name (422) Β· cast_payload_invalid (400: a null element, a non-array,
//   or a raw array over 4Γ— the cap) Β· cast_summary_too_long / cast_override_too_long /
//   cast_hint_too_long (400)

SQL: fn_save_package_full(..., p_cast JSONB DEFAULT NULL, p_cast_extraction_hint TEXT DEFAULT NULL), fn_sync_package_cast_members(p_package_id INTEGER, p_cast JSONB), and fn_get_package_for_edit returning cast JSONB + cast_extraction_hint TEXT. The pipeline read is one repository method, IPackageCastRepository.GetForPromptAsync(packageId, readerUserId) β†’ PackageCastMemberForPrompt(CharacterId, StoryName, SystemPrompt, CastProfile, AlwaysOnSummary, PresentAtStart, SortOrder, ReaderOwnsCharacter, ReaderOwnsPackage) for live members of a live package (C3: the character's CastProfile sits where C1's OverrideSystemPrompt was), plus HasCastAsync(packageId).

Builder (workbench)

Public package page and credit

Moderation

C3:

The cast adds package-owned prompt text β€” each member's override prompt and offstage line, and the package's eval hint β€” that no existing screener reads. It is screened as the package's own content, the way a tracker's extraction hint and a persona template's prompt are: a new fn_check_package_cast_content(p_package_id) returns those fields (prompt area, field_id = the membership row) and the package own-field block of fn_run_publish_request_checks calls it; the verified-creator auto-publish path scans each cast field with its own keyword call (never one concatenated string β€” the scanner truncates at 100k characters and a concatenation of eight capped overrides can exceed it) and its oversized content gate covers the override; PublishRequestFieldLoader's package branch loads the same fields for the AI ladder; and EntityContentExtractionService labels them so a moderator can read the text behind a flag.

fn_run_publish_request_checks' linked-entity fan-out gains a cast arm: every non-public, non-deleted cast character is screened when the package is submitted, attributed to the character, exactly as the primary character is today. The C# twin of that fan-out (AdminPublishRequestRepository.AdminGetLinkedEntitiesToScreenAsync, which feeds the AI ladder and the prefilter) gains the same two arms, and ContentCheckEntityBits gains a tracker bit so the tracker arm is not dead on arrival. The fan-out has a pre-existing gap for package trackers β€” no entity_tracker_bindings owner_type = 6 arm β€” and closing it is more than one UNION ALL: the fan-out dispatches through fn_check_entity_content, which knows five entity types and has no tracker checker. Closed in the same change as three explicit items: a new fn_check_tracker_content (name and description in the display area, extraction hint and initial value in the prompt area), the entity_type('tracker') dispatch arm in fn_check_entity_content (which also makes a tracker's own publish request screened β€” correct, and new), and the fan-out arm over non-public bound trackers.

Authorization at conversation start

None new. fn_create_conversation_from_package already treats the package as the grant: it checks the package is public or the caller's, and binds package lorebooks with no reader-side check. Cast prompts are injected under the same rule. Prompt secrecy rests on the creator-surface can_view gates, never on which context the LLM call is dressed in.


Build notes (found by the adversary pass, so the builders do not rediscover them)

Slices

C1 β€” Cast, roster, injection, page, credit, screening βœ… SHIPPED 2026-09-10

Everything above except presence-gated lorebooks. Ships as one change.

C2 β€” Presence-gated lorebooks πŸ“‹

Delivery plan (ready, 2026-10-16): docs-internal/architecture/chat-engine/PACKAGE_CAST_C2_DELIVERY.md β€” the lanes, the contracts, the shapes that change, the live check and the expanded acceptance list.

Present members' own character_lorebook_bindings join the knowledge search for that turn; absent members' do not. The seam is a Core interface ICastKnowledgeSource, sibling to ITrackerPinnedKnowledgeSource, consumed by LorebookContentProvider and implemented in WebChat: read the present set (same snapshot read as the provider), resolve the members' lorebook ids (a narrow SELECT lorebook_id FROM character_lorebook_bindings WHERE character_id = ANY(...)), and run the existing explicit-id methods (GetAlwaysIncludeByLorebookIdsAsync, SearchByLorebookIdsAsync) against ids not already in the conversation's resolved set; merge into the search lane under the normal budget with a cast activation leg. fn_get_conversation_lorebook_ids is not extended β€” it is static per-conversation SQL with five call sites and no per-turn input.

Edge rules carried from the original design: a lorebook bound to the conversation or the primary character stays active regardless of presence; two present members sharing a lorebook search it once; the member's lorebooks are searched, never always-included wholesale. One thing the substrate settles in advance: the conversation's bound lorebook ids reach fn_search_lorebook as an unordered set (09_tables_bindings.sql says so β€” binding priority is display order, not a retrieval weight), so "cast lorebooks rank below the protagonist's" cannot be expressed by ordering. If C2 wants that precedence it is a separate search call with its own budget lane, decided before C2 starts, not after.

Who {{char}} is in a member's lore (owner, 2026-10-16)

"it also needs to check the linked lorebooks if they are in that character linked and use {{char}} to use that linked character" β€” the owner, 2026-10-16. C2 is the package cast's next phase.

Today (verified 2026-10-16, at 73498381b):

The rule C2 builds:

How: mirror the cast card fill.

The other readers C2 has to keep consistent:

C3 β€” The cast profile 🚧

Delivery plan (ready, 2026-10-16): docs-internal/architecture/chat-engine/PACKAGE_CAST_C3_DELIVERY.md. It holds the contracts, the shapes that change, the milestones, the overlap with C2, the live check and the expanded acceptance list.

"The offstage line needs to contain appearance and public perception. It can't happen that the model suddenly gives an offstage character blond hair when it's a dark haired one. It needs to have enough information to be able to TALK about that character." β€” the owner, 2026-10-16.

C1 told the model one line about an offstage member, and that line belonged to the package. A one-liner can't carry a face, a reputation and enough history to talk about someone. And what a character looks like isn't the package's to say twice in two packages. C3 moves that knowledge onto the character and makes the cast section say it every turn.

The character's cast profile

Every character has a cast profile: what the story knows about them while they're part of a cast, on stage or off. What they look like, how people see them, enough for the model to talk about them. It is used only when the character is a member of a package's cast; a character's own conversations never read it.

The package's prompt override is retired

package_cast_members.override_system_prompt stops being read or written. A present member's card is always their own system prompt. The editor field, the wire field, the length check and its screening go. An override saved before C3 never reaches a prompt again. The column stays as a schema shell (the SubscribeStar precedent: retire the code, keep the data); dropping it is a later cleanup push.

The 200-character always_on_summary stays, as the member's role in this story: "ranger companion, distrustful of outsiders". It is the package's own word on this member, so it stays on the membership. It keeps its column, its wire name and its meaning; what changes is that it now shows for every member, next to their name.

The cast section in two pieces

"Once we do caching, we can keep the offstage cached and then just add the cast details when we need." β€” the owner, 2026-10-16.

The section splits by how often each part changes:

Piece Key What it holds Changes when
Stable block cast_profiles Every live member, in cast order, present or not: ### Name β€” role, then their cast profile A creator edits the cast, a member's role, profile or story name, or removes a member. Never because of the turn or the roster.
Dynamic part cast Who is in the scene now, and each present member's card (their own system prompt) Someone enters or leaves

In the prompt the dynamic part comes first and the stable block right after it:

Other characters in this scene, written by the narrator, never the reader:

### Elara
<Elara's system prompt>

Everyone else in the cast is elsewhere right now.
The story's supporting cast β€” who they are, whether or not they are in the scene:

### Elara β€” ranger companion, distrustful of outsiders
Tall, dark-haired, a scar through her left eyebrow. The river towns know her as the ranger who never takes payment.

### Grimjaw

### The Shadow King β€” ancient lich ruling Shadowkeep
Gaunt, crowned in iron. Peasants won't say his name.

Who {{char}} is in a cast profile

The member, always: the same fill the card gets (C1) and the member's own lore gets (C2). A profile that says {{char}} is known in the river towns… names Elara in Elara's entry, never the package's lead.

C3-T β€” Package tooling check πŸ“‹

"add to the docs to check the tooling for packages creation and editing, somewhere at the end of changes to packages." β€” the owner, 2026-10-16.

The last step of the package changes. Every tool that creates or edits a package is checked against the cast as it stands after C2 and C3 (no override, the role tag, the character's cast profile, members' own lorebooks), by driving it:

Correct means:

The inventory and the per-tool checks are in the delivery plan, Β§5.4.

Cast arrival pictures 🚧 (owner, 2026-11-10: "Can we also have this for the cast?")

A member who comes on stage shows their own picture (the character's) once, beside the reply whose tracker snapshot put them on stage: the place's arrival rule (LOCATION_TRACKER.md Β§6 Pictures) applied to the cast roster. Staying on stage shows nothing; leaving and coming back shows them again; the opening cast shows on the greeting; a reader's own change to the roster shows who they brought on. The reader's persona name and account name (both, on every path) and the story's lead never count. The pictures follow the cast tracker (none written with trackers off, and none in the owner's own history then), not the lorebook's picture switch, and share the four arrival places in front of the turn's own pictures, never displacing one. A member before its release date for the reader shows unnamed ("Private Character") to the story's own reader and not at all to a published reader or a share link; a protected reader gets the all-ages stored card only. Full rule, storage (cast_arrival, the record's cast list) and delivery: LOCATION_TRACKER.md Β§6 Cast arrival.

C4 β€” Later, only if real casts need it πŸ“‹

Always-on token budget with priority drop; a per-member "present" cap; cast on the character owner type; Who-drawer cast card with avatars and presence toggles. (These were "C3" until 2026-10-16; C3 is now the cast profile.)

Known shape after C1, stated plainly: the roster and the cast section are re-read from the database on every turn by several consumers (the eval, the injector, the pinned-knowledge source, the provider, the compute reserve) β€” the same shape package trackers have, roughly doubled on cast packages. Folding the resolved set onto the pipeline context is the fix, together with the provider's conversation read on plain chats. C3 does it for the two cast providers, which share one member read per turn; the roster consumers stay on this list. A comma in a member's story name ("Elara, the Ranger") is ambiguous in the eval's plain-text type line and unmatchable in a non-JSON eval answer β€” inherited from T1 linked lists, where entry names have the same shape; the JSON answer path the eval is instructed to use is unaffected. Also: the edit read returns only the four wire fields per member, so the workbench resolves each member's name, avatar and type with one character read per member on package load β€” the same fan-out the lorebook and tracker legs already do. Widening fn_get_package_for_edit's cast JSONB with that display half (and dropping the fan-out) is the first thing to do when the edit read gets a composite pass; not a C1 gate.


Open Questions

Dev-owned (product weight):

Mine (engineering, decided in C1 unless overruled):


Acceptance Criteria (C1)

The slice is not done until every box below is verified βœ… against the running product.

C3 note: these boxes record what C1 shipped. The lines naming the override, the offstage line or the absent list describe C1 behaviour that C3 retires or reshapes; Acceptance Criteria (C3) says what holds after it.

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

Behavior:

Invariants that must stay true:

Edges:

Acceptance Criteria (C2) β€” outline, expanded when C2 starts

The expanded list, with the delivery's invariants and edges, is Β§9 of docs-internal/architecture/chat-engine/PACKAGE_CAST_C2_DELIVERY.md.

Acceptance Criteria (C3)

The slice is not done until every box below is verified βœ… against the running product. The expanded list (shapes, lanes, the live recipe) is Β§9 of docs-internal/architecture/chat-engine/PACKAGE_CAST_C3_DELIVERY.md.

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

Behavior:

Invariants that must stay true:

Edges:

Acceptance Criteria (C3-T β€” package tooling check)

The check is not done until every box below is verified βœ… by driving the tool. Reading its code doesn't count.

Acceptance Criteria (cast arrival pictures)