A condition in a draft could only be walked the way the author's flags really
resolve, so a conversation gated behind a flag they have not earned was
untestable in the preview: the other branch was unreachable without granting
themselves the flag for real.
A condition node now offers both exits. One is labelled "your flags" and is the
branch a player with the author's flags would take; the other is an amber
override that walks the opposite branch anyway. The same applies to a choice
whose gate fails: it stays clickable, reads as an override, and says so in its
gate note.
conditionBranches in preview.ts pairs the two targets and labels them, so the
component holds no branch logic of its own; an unwired branch is reported as
unwired rather than silently offering nothing. The footer counts overrides
against the author's flags, so an override walk is never mistaken for what a
player would see, and Back/Restart behave as before.
Verified in the running editor with a draft whose condition tests a flag that is
false for the dev account: the gate card showed "false for you, so a player
matching your flags takes the false branch" with both buttons, and taking the
true branch landed on the true card with "1 override against your flags" in the
footer. 3 pure tests cover the pairing and the unwired case; 223 npc-dialogue
tests pass.
Authoring meant saving, leaving the admin, and finding the contact on the player
site to see whether a branch worked. A Play button in the canvas toolbar now
walks the draft exactly as it stands, without saving it.
The walker is not the runtime component: that resolves text and choices through
server actions keyed on a saved dialogue id, and teaching all four a draft mode
would be a much larger change. preview.ts answers what is local (choice order,
branch targets, effect descriptions) and the server answers the one thing it
cannot, flag values, through a new previewDialogueCondition action gated on
npc-dialogues:update. It calls the same evaluateCondition the player runtime
uses, so a preview cannot disagree with the outcome.
Effects are described, never applied. Choices the author's own flags would hide
are shown as hidden rather than silently dropped.
Verified on a temp document with an event effect and a condition node: the event
step showed 'Would set flag preview_probe_flag to true' with a dry-run note, the
condition answered false for a missing flag, the walk followed the false branch to
its END node, and player_flags gained no row (5 before, 5 after).
Bare admin buttons render with the UA's white background, so each one carries an
explicit background; 9 pure tests cover the walker's reading of the graph.