Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ redis-data/
# Logs
logs/
*.log
.archive/
155 changes: 155 additions & 0 deletions CHAPTER_01_DATABASE_INSERT.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
-- Insert Chapter 1 for Voidborne: The Silent Throne
-- Run this in your Supabase SQL editor or via Prisma

-- First, ensure we have a story (if not already created)
INSERT INTO "Story" (id, title, description, genre, status, "createdAt", "updatedAt")
VALUES (
'voidborne-the-silent-throne',
'Voidborne: The Silent Throne',
'A space political saga where reality itself is at stake. Five Great Houses control humanity''s future, but someone has mastered the forbidden art of Stitchingโ€”rewriting reality thread by thread. As Heir to House Valdris, you must navigate deadly politics, uncover the truth, and prevent the unraveling of existence itself.',
'SCIFI',
'ACTIVE',
NOW(),
NOW()
)
ON CONFLICT (id) DO NOTHING;

-- Insert Chapter 1
INSERT INTO "Chapter" (
id,
"storyId",
"chapterNumber",
title,
content,
"generationTime",
status,
"createdAt",
"updatedAt"
)
VALUES (
'ch01-the-stitch-in-reality',
'voidborne-the-silent-throne',
1,
'The Stitch in Reality',
'## The Silent Throne - Chapter 1

**Location:** The Grand Conclave, Valdris Station
**Date:** Year 2847, Standard Galactic Calendar

The observation deck of Valdris Station offered a view that few in the galaxy could claim: the entire Grand Conclave assembled in one place.

Kaelen Valdris stood at the reinforced glass, hands clasped behind her back, watching the five dreadnoughts maintain their uneasy orbit. Each ship represented one of the Great Housesโ€”massive vessels that served as both home and fortress for humanity''s ruling elite.

*House Vor.* The crimson warship bristled with weapons.
*House Veyron.* Industrial gray, scarred from a thousand mining operations.
*House Kaelen.* Sleek black, its hull crawling with sensors.
*House Maris.* White and gold, the banker''s palace.
*House Seren.* Bio-organic curves of purple and green.

And below them all, her station. *House Valdris.* Holder of the Silent Throne. Master of the Thread.

---

"Heir Valdris." Admiral Zhang Wei emerged from the shadows. "The Conclave convenes in one hour. All five Houses are demanding answers."

"Let them demand." Kaelen didn''t turn from the window. "The Thread is my family''s legacy, not theirs."

"Someone is Stitching," Zhang said quietly. "Reality itself is being altered."

Kaelen''s jaw tightened. *Stitching.* The art of manipulating the Threadโ€”the quantum substrate underlying all realityโ€”had been lost for three hundred years.

"The Houses believe you''re responsible," Zhang continued. "They think Valdris has secretly preserved the Stitching arts."

---

### The Conclave Chamber

The Grand Conclave met in a spherical chamber at the heart of Valdris Station. Five representatives had arrived:

**Lady Elara Vor** (House Vor) - Military commander, hand on her plasma sidearm.
**Director Cassius Veyron** (House Veyron) - More machine than man.
**The Watcher** (House Kaelen) - Identity hidden behind a mask.
**Archon Livia Maris** (House Maris) - Monitoring financial flows across star systems.
**Doctor Phaedra Seren** (House Seren) - Barely human anymore.
**Captain Reyes** - Independent operator, neutral observer.

"Three hundred years your House has held the Silent Throne," Lady Vor said. "Yet now reality fractures around us. Explain."

"House Valdris did not cause this," Kaelen replied.

"Then how," The Watcher asked, "do our surveillance nets detect Thread activity from this very station?"

Archon Maris spoke: "Markets cannot function when history changes. If this continues, the financial system collapses within six months."

Doctor Seren added: "My patients report memories that don''t belong to them. We''ve had seventeen suicides this month."

Kaelen felt the weight of their stares. "I will find the source. Give me two weeksโ€”"

"Two weeks?" Lady Vor laughed bitterly. "No. The Conclave demands immediate action."

Director Veyron leaned forward. "Open the Vault. Reveal what Valdris has hidden about the Thread."

"And if I refuse?"

Lady Vor''s smile was cold. "Then we will respond accordingly."

A threat. Unmistakable.

---

## What Should Kaelen Do?

**Three choices. One decision. Reality hangs in the balance.**',
NOW() + INTERVAL ''7 days'', -- Betting opens for 1 week
'BETTING',
NOW(),
NOW()
);

-- Insert the three choice outcomes
INSERT INTO "Outcome" (
id,
"chapterId",
type,
description,
"outcomeText",
status,
"createdAt",
"updatedAt"
)
VALUES
(
'ch01-choice-a-open-vault',
'ch01-the-stitch-in-reality',
'CHOICE',
'Open the Vault',
'Kaelen opens the Blood-Locked Vault, revealing the Thread archives to all five Houses. Shows cooperation but risks exposing Valdris secrets. Gains trust from Maris & Seren, risks theft by Kaelen & Veyron, Vor sees weakness.',
'PENDING',
NOW(),
NOW()
),
(
'ch01-choice-b-negotiate-rebels',
'ch01-the-stitch-in-reality',
'CHOICE',
'Negotiate with Rebels',
'Kaelen reveals an underground movement experimenting with Thread fragments. Proposes using them to investigate, buying time and deflecting blame. Divides the Conclave, brings rebels into play, keeps secrets safe.',
'PENDING',
NOW(),
NOW()
),
(
'ch01-choice-c-seal-station',
'ch01-the-stitch-in-reality',
'CHOICE',
'Seal the Station',
'Kaelen declares total lockdownโ€”no one leaves or enters. She will find the Stitcher herself. Aggressive move that risks war but forces the culprit to act. Shows strength but risks everything.',
'PENDING',
NOW(),
NOW()
);

-- Schedule chapter for generation (7 days from now)
-- Betting deadline will be 6 days from now (1 hour before generation)

COMMIT;
210 changes: 210 additions & 0 deletions CHAPTER_01_THE_SILENT_THRONE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
# Chapter 1: The Stitch in Reality

## The Silent Throne - Voidborne

---

**Location:** The Grand Conclave, Valdris Station
**Date:** Year 2847, Standard Galactic Calendar
**Protagonist:** Heir Kaelen Valdris, House Valdris

---

The observation deck of Valdris Station offered a view that few in the galaxy could claim: the entire Grand Conclave assembled in one place.

Kaelen Valdris stood at the reinforced glass, hands clasped behind her back, watching the five dreadnoughts maintain their uneasy orbit. Each ship represented one of the Great Housesโ€”massive vessels that served as both home and fortress for humanity's ruling elite.

*House Vor.* The crimson warship bristled with weapons, a flying fortress that had crushed three rebellions in the last decade alone.

*House Veyron.* Industrial gray and scarred from a thousand mining operations, its holds full of resources extracted from dead worlds.

*House Kaelen.* Sleek black, its hull crawling with sensor arrays and quantum processorsโ€”watching everything, knowing everything.

*House Maris.* White and gold, the banker's palace, where debts were tracked with the precision of atomic clocks.

*House Seren.* Bio-organic curves of purple and green, where human modification had become an art form verging on the divine.

And below them all, her station. *House Valdris.* Holder of the Silent Throne. Master of the Thread.

Or she would be, if she could prove she deserved it.

"Heir Valdris." The voice came from behind her. Admiral Zhang Wei, her military advisor, emerged from the shadows. His augmented eyes glowed faintly in the dim light. "The Conclave convenes in one hour. All five Houses are demanding answers."

"Let them demand." Kaelen didn't turn from the window. "The Thread is my family's legacy, not theirs."

"Forgive me, Heir, but that legacy is precisely what terrifies them." Zhang stepped closer, his voice dropping. "Someone is Stitching. Not just reading the Threadโ€”*weaving new patterns.* Reality itself is being altered, and it's happening here, in Valdris space."

Kaelen's jaw tightened. Stitching. The art of manipulating the Threadโ€”the quantum substrate underlying all realityโ€”had been lost for three hundred years. Her great-grandmother, the last true Threader, had sealed the knowledge before her death, warning that Stitching could unravel existence itself.

"Impossible," Kaelen said, but her voice carried no conviction. She'd felt it herself. Strange dรฉjร  vu. Memories that didn't quite fit. Ships arriving at coordinates they'd never been given.

"The Houses believe you're responsible," Zhang said quietly. "They think Valdris has secretly preserved the Stitching arts and is using them to consolidate power."

"That's absurd."

"Is it?" Zhang's augmented eyes flickered. "Three months ago, House Veyron's mining colony at Kepler-442 reported finding an intact Thread Nodeโ€”a device that should not exist. Two months ago, House Kaelen's surveillance network detected quantum anomalies near our borders. Last month, House Maris discovered discrepancies in their financial records spanning twenty yearsโ€”transactions that happened differently than anyone remembers."

Kaelen finally turned to face him. "And House Vor?"

"Admiral Tor reports that his warship fleet conducted exercises last week that they have no memory of planning. The mission logs exist. The fuel was consumed. But no one remembers giving the order."

A chill ran down Kaelen's spine. Reality was coming loose at the seams.

"Someone is Stitching," Zhang repeated. "The question is: what are you going to do about it?"

---

## The Conclave Chamber

The Grand Conclave met in a spherical chamber at the heart of Valdris Station. Five throne platforms floated in zero gravity, arranged in a pentagon around the central dais where Kaelen now stood.

The representatives had arrived.

**Lady Elara Vor,** Military Commander of House Vor, her red uniform impeccable, her hand never far from her plasma sidearm.

**Director Cassius Veyron,** his body augmented with industrial mining gear, more machine than man, calculating profit margins even as he spoke.

**The Watcher,** House Kaelen's enigmatic representative, their true identity hidden behind a featureless black mask and layers of encryption.

**Archon Livia Maris,** dressed in flowing white robes, her neural implants glowing softly as she monitored financial flows across seventeen star systems in real-time.

**Doctor Phaedra Seren,** her skin shimmering with bio-luminescent patterns, her genome rewritten so many times she barely qualified as human anymore.

And then there was Captain Reyes, the wild card. An independent operator who commanded the *Drift Runner,* a ship that owed allegiance to no House. Reyes had been invited as a neutral observerโ€”and potential scapegoat if things went wrong.

"Heir Valdris." Lady Vor's voice cut through the chamber like a blade. "Three hundred years your House has held the Silent Throne. Three hundred years you've promised the Thread would remain sealed, unused, safe. Yet now reality itself fractures around us. Explain."

Kaelen activated her own platform, rising to meet Vor eye-to-eye. "House Valdris did not cause this. We are investigatingโ€”"

"Investigating?" Director Veyron's voice rumbled like grinding gears. "You expect us to believe someone else has mastered Stitching? An art your House kept secret for millennia?"

"We kept nothing," Kaelen said sharply. "The Thread was sealed. The techniques were lost. My great-grandmother ensured that."

"Then how," The Watcher's voice synthesized and distorted, "do our surveillance nets detect Thread activity emanating from this very station? How do quantum signatures match historical records of Valdris Stitching patterns?"

The accusation hung in the air like poison.

Archon Maris spoke, her tone measured: "The economic impact of these reality fluctuations is catastrophic. Markets cannot function when history changes. Debts become meaningless when both parties remember different transactions. If this continues, the entire financial system collapses within six months."

"And my patients," Doctor Seren added, her voice surprisingly gentle, "report memories that don't belong to them. Personalities fractured across conflicting timelines. We've had seventeen suicides this month aloneโ€”people who can no longer determine which version of their life is real."

Kaelen felt the weight of their stares. Five Great Houses. Trillions of lives depending on stability. And her, standing alone on a throne she'd never wanted.

"I will find the source," she said. "Give me two weeksโ€”"

"Two weeks?" Lady Vor laughed bitterly. "While you 'investigate,' should we watch reality crumble? No, Heir Valdris. The Conclave demands action. Immediate action."

"What do you propose?" Kaelen asked, though she already knew the answer.

Director Veyron leaned forward. "Open the Vault. Reveal what Valdris has hidden about the Thread. Let the Houses examine it together."

"The Vault is sealed by Blood Lock," Kaelen said. "Only Valdris blood can open it."

"Then open it," The Watcher said simply.

"And if I refuse?"

Lady Vor's smile was cold. "Then the Conclave will have its answer about who's responsible for this crisis. And we will respond accordingly."

A threat. Thinly veiled, but unmistakable.

Kaelen looked to Captain Reyes, who had remained silent throughout. The independent captain met her gaze and gave a slight shrugโ€”*your choice*.

The heir of House Valdris had three options:

---

## The Choice

**Option A: Open the Vault**
Kaelen opens the Blood-Locked Vault, revealing the Thread archives to all five Houses. This shows cooperation and transparency but risks giving away Valdris's greatest secretsโ€”and potentially confirming that Valdris possesses Stitching knowledge.

**Consequences:**
- Gains trust from Houses Maris and Seren (diplomatic Houses)
- Risks technological theft by Houses Kaelen and Veyron
- House Vor sees it as weakness
- The true nature of the Thread is revealed to everyone
- If Valdris is hiding something, it will be exposed

---

**Option B: Negotiate with the Rebels**
Kaelen reveals that she's discovered an underground movement in the station's lower levelsโ€”refugees and dissidents who have been experimenting with Thread fragments. She proposes using them as a neutral third party to investigate, buying time while deflecting blame from Valdris.

**Consequences:**
- Divides the Conclave (some see wisdom, others see deflection)
- Brings the rebel faction into play as a major story element
- House Vor may see this as weakness and act unilaterally
- The rebels gain legitimacy but may have their own agenda
- Keeps Valdris secrets safe for now

---

**Option C: Seal the Station**
Kaelen declares a total lockdown of Valdris Station. No one leaves, no ships enter. She will find the source of the Stitching herselfโ€”and if any House opposes this, they reveal themselves as complicit.

**Consequences:**
- Extremely aggressive move, risks war
- House Vor respects strength but may respond with force
- Forces the true culprit to act (they can't hide if trapped)
- Economic chaos as the Conclave is held hostage
- Captain Reyes and other neutrals become allies or enemies
- Shows absolute authority but risks everything

---

## Betting Closes: [1 Hour Before AI Decision]

### Current Betting Pool: 0 USDC
*Be the first to bet on Chapter 2's direction!*

**How to Bet:**
1. Connect your wallet (USDC on Base)
2. Choose Option A, B, or C
3. Place your bet (minimum 10 USDC)
4. If your choice wins, share the pool with other winners!

**Odds Update Dynamically:**
- More bets on an option = lower odds = safer bet
- Fewer bets = higher odds = bigger payout

---

**To Be Continued in Chapter 2...**

*The AI will analyze narrative coherence, character motivations, and betting patterns to determine which choice Kaelen makes. Your bets influence the odds, but the story's logic determines the outcome.*

---

## Story Metadata

**Chapter:** 1
**Word Count:** 1,847
**Setting:** Valdris Station, Grand Conclave
**Key Characters Introduced:**
- Kaelen Valdris (Protagonist, Heir to Silent Throne)
- Admiral Zhang Wei (Military Advisor, augmented)
- Lady Elara Vor (House Vor, Military)
- Director Cassius Veyron (House Veyron, Industrial)
- The Watcher (House Kaelen, Intelligence)
- Archon Livia Maris (House Maris, Finance)
- Doctor Phaedra Seren (House Seren, Biotech)
- Captain Reyes (Independent, Neutral)

**Major Plot Threads:**
1. Someone is Stitching (manipulating reality)
2. Five Houses suspect Valdris
3. The Thread Vault holds secrets
4. Reality is fracturing (memories, timelines)
5. Underground rebel faction mentioned

**Stakes:**
- War between the Great Houses
- Collapse of economic systems
- Psychological breakdown of billions
- Potential unraveling of reality itself

---

*Generated for Voidborne: The Silent Throne*
*Chapter 1 of ???*
Loading