FLESHNOTE / DOCS / ENTITIES / TWISTS & FORESHADOWING

Plot Twists & Foreshadowing Clues

NARRATIVE ARCHITECTURE

Structured clue breadcrumb tracking, pacing heuristics, and reader experience Plot Planner visualization: replacing legacy keyword scanning with deterministic reveal trajectories.

Purpose: Tracking Clues & Narrative Pacing #

Plot reveals are the emotional anchors of speculative fiction and mystery writing. An unearned twist feels cheap to readers, while an overly hinted twist ruins suspense.

FleshNote provides a dedicated two-tiered system connecting Foreshadowing Breadcrumbs (clues scattered in early scenes) to the Twist Reveal (the chapter where the truth drops).

Deprecation Note on Legacy Secrets (`secrets.py`): In earlier builds, secrets were tracked using keyword "danger phrases" scans. This was fully deprecated in favor of explicit TipTap marks ({{foreshadow:...}} and {{twist:...}}) combined with epistemic knowledge filtering.

The Clue-to-Reveal Lifecycle #

The system operates across two linked tables in SQLite:

Element Database Table TipTap Markdown Tag Visual Styling
Foreshadowing (Clue) foreshadowings {{foreshadow:TWIST_ID|The clue phrase}} Purple Dashed Underline
Plot Twist (Reveal) twists {{twist:TWIST_ID|The reveal statement}} Crimson Solid Underline

Twist Health Warnings Engine #

The Twist Inspector Panel evaluates your manuscript to prevent structural pacing defects:

Diagnostic Warning Heuristic Trigger Narrative Risk
Unforeshadowed 0 clues exist leading up to the reveal. Deus Ex Machina: readers feel cheated by an unearned surprise.
Clustered Clues Multiple clues are bunched together in a single chapter or scene. Heavy-handed telegraphing that spoils the upcoming reveal.
Desert Gap A gap of several chapters / thousands of words between the last clue and the reveal. Readers forget the clues by the time the payoff occurs.

"Reader Experience" Visualization in Plot Planner #

For complex, non-linear multi-POV plots, the Plot Planner renders a dedicated visual trajectory lane:

Plot Planner Clue Rail
Chapter 1         Chapter 4         Chapter 7         Chapter 12 (Reveal)
  [Clue 1] ──────── [Clue 2] ───────── [Clue 3] ─────────► [ ★ TWIST REVEAL ]
  (Hinted dagger)   (Ancient poison)  (Missing letter)    ("The Butler Did It")

Connecting trajectory lines between clues and the reveal marker allow the writer to visualize the exact reader experience across the manuscript timeline, making pacing audits immediate and intuitive.

Quick-Jump Navigation & Deletion Safety #

  • One-Click Prose Jump: Clicking any foreshadowing in the Twist Inspector instantly opens the corresponding chapter and scrolls the editor to the exact word offset.
  • Cascading Tag Cleanup: If a twist is deleted, the backend drops associated rows in foreshadowings, and the 300ms debounced Editor scanner automatically converts any orphaned tags back into plain text.
On This Page