Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

81.7 KB
Raw Blame
{
  "stages": {
    "writers-room-evaluate": {
      "name": "Writers Room — Prose Evaluation",
      "description": "Editorial pass on a Writers Room draft: logline, summary, themes, strengths, issues with excerpts, and concrete suggestions.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-format": {
      "name": "Writers Room — Auto-format Prose",
      "description": "Copy-edit pass on a Writers Room draft: paragraphing, dialogue formatting, whitespace, punctuation, and consistent chapter/scene markdown headings. Returns cleaned prose only.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "manuscript-reformat": {
      "name": "Manuscript — Reformat (fix paste artifacts)",
      "description": "Repair PDF/paste formatting artifacts in a manuscript section — hard-wrapped paragraphs, split drop-caps, hyphen-broken words, and orphaned/duplicated quotation marks — WITHOUT changing any words. Returns the reformatted text only; an integrity guard rejects the result if any letters/digits changed.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "writers-room-script": {
      "name": "Writers Room — Adapt to Scene Script",
      "description": "Adapt a Writers Room prose draft into a scene-by-scene screenplay-style breakdown with sluglines, action, dialogue, and per-scene visual prompts the image-gen pipeline can render.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-characters": {
      "name": "Writers Room — Character Profiles",
      "description": "Extract a character bible from a Writers Room draft: name, aliases, role, image-gen-ready physical description, personality, and background. Preserves user edits and flags fields the prose does not yet support so the writer knows what to add.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-places": {
      "name": "Writers Room — Setting / World Bible",
      "description": "Extract a setting/world bible from a Writers Room draft: per-location descriptions keyed by screenplay slugline (palette, era, weather, recurring details). Storyboard scenes match their slugline back to a setting and inject its description into the image prompt for visual continuity.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-objects": {
      "name": "Writers Room — Recurring Objects",
      "description": "Extract a recurring-objects bible from a Writers Room draft: symbolic or physically significant items that appear across multiple scenes (the letter, the fedora, a keepsake). Captures description and narrative significance so the writer can validate continuity.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-cuts": {
      "name": "Writers Room — Adversarial Cut Pass",
      "description": "Ruthless-editor pass over a Writers Room work body: identifies 8–12% of the prose to cut as typed passages (FAT/REDUNDANT/OVER-EXPLAIN/GENERIC/TELL/STRUCTURAL) plus fat_percentage and a protected tightest passage. Drives the Polish loop's mechanical safe-cut application (#2173).",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-revise": {
      "name": "Writers Room — Brief-Driven Revision",
      "description": "Rewrites a Writers Room draft against a PROBLEM / WHAT TO KEEP / WHAT TO CHANGE / VOICE RULES / TARGET brief, receiving the old draft as raw material. The revision half of the Polish loop's cut → revise → keep/revert cycle (#2173). Returns revised prose only.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "writers-room-continue": {
      "name": "Writers Room — Live Continuation",
      "description": "Live Creative Director feedback: from the prose around the cursor, propose 2–4 short optional continuation beats, prose snippets, or dialogue lines the writer can accept. Drives the opt-in live-mode side panel in the editor.",
      "model": "light",
      "returnsJson": true,
      "variables": []
    },
    "writers-room-cd-bridge": {
      "name": "Writers Room — Creative Director Bridge",
      "description": "From the prose around the cursor, propose a short Creative Director treatment — a logline, synopsis, overall visual treatment (styleSpec), and 2–6 filmable scenes (intent + visual prompt + duration). The writer reviews it and sends it into a new Creative Director project. Drives the opt-in live-mode side panel in the editor.",
      "model": "light",
      "returnsJson": true,
      "variables": []
    },
    "catalog-extract": {
      "name": "Catalog Ingest — Grounded Graph",
      "description": "Extract all six catalog ingredient types and source-grounded relationships in one validated response per context-budgeted source chunk.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "catalog-ideas-scenes-concepts": {
      "name": "Catalog Ingest — Ideas / Scenes / Concepts",
      "description": "Extract reusable narrative fragments — ideas (premises), scenes (dramatic beats), and concepts (lore, magic systems, factions) — from a raw user-pasted scrap into the Creative Ingredients Catalog. Runs alongside the character/place/object writers-room passes during catalog ingest.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "cd-treatment": {
      "name": "Creative Director — Treatment",
      "description": "Plan a long-form generated-video project: write the logline, synopsis, and scene-by-scene treatment.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "cd-evaluate": {
      "name": "Creative Director — Scene Evaluation",
      "description": "Evaluate a freshly-rendered scene against the project style spec and scene intent. Reads multi-frame samples to judge intent across the full clip timeline.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "cd-plan": {
      "name": "Creative Director — Production Plan",
      "description": "Turn a production directive into a validated plan: an ordered list of creative-tool-registry tool calls (with dependsOn ordering) the generalized advance loop executes step-by-step.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "app-detection": {
      "name": "App Detection",
      "description": "Analyze a project directory and detect its configuration",
      "model": "default",
      "returnsJson": true,
      "variables": [
        "jsonOutputFormat",
        "appDetectionSchema",
        "portDetectionRules",
        "pm2NamingConvention"
      ]
    },
    "cos-agent-briefing": {
      "name": "CoS Agent Briefing",
      "description": "Unused — CoS agents are briefed by a built-in prompt; editing this template has no effect (#8200)",
      "model": "heavy",
      "returnsJson": false,
      "variables": []
    },
    "cos-evaluate": {
      "name": "CoS Task Evaluation",
      "description": "Evaluate pending tasks and decide what to work on",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "cos-report-summary": {
      "name": "CoS Report Summary",
      "description": "Generate daily work summary report",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "cos-self-improvement": {
      "name": "CoS Self Improvement",
      "description": "Analyze system performance and suggest improvements",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "cos-task-enhance": {
      "name": "CoS Task Enhancement",
      "description": "Research the codebase and expand a brief task description into an executable agent prompt",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "memory-evaluate": {
      "name": "Memory Evaluation",
      "description": "Evaluate agent output to extract useful memories",
      "model": "lmstudio:gptoss-20b",
      "provider": "lmstudio",
      "returnsJson": true,
      "variables": []
    },
    "brain-classifier": {
      "name": "Brain Classifier",
      "description": "Classify captured thoughts into People/Projects/Ideas/Admin",
      "model": "lmstudio:gptoss-20b",
      "provider": "lmstudio",
      "returnsJson": true,
      "variables": []
    },
    "brain-daily-digest": {
      "name": "Brain Daily Digest",
      "description": "Generate daily actionable digest",
      "model": "lmstudio:gptoss-20b",
      "provider": "lmstudio",
      "returnsJson": true,
      "variables": []
    },
    "brain-weekly-review": {
      "name": "Brain Weekly Review",
      "description": "Generate weekly review and open loops analysis",
      "model": "lmstudio:gptoss-20b",
      "provider": "lmstudio",
      "returnsJson": true,
      "variables": []
    },
    "soul-contradiction-detector": {
      "name": "Soul Contradiction Detector",
      "description": "Analyze soul documents for internal contradictions and inconsistencies",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "soul-enrichment": {
      "name": "Soul Enrichment",
      "description": "Generate the next follow-up question to enrich soul documents (plain-text question, not JSON)",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "soul-enrichment-process": {
      "name": "Soul Enrichment Processor",
      "description": "Process enrichment answers for inclusion in soul documents",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "soul-test-generator": {
      "name": "Soul Test Generator",
      "description": "Generate behavioral tests from soul content",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "soul-test-scorer": {
      "name": "Soul Test Scorer",
      "description": "Score AI responses against expected soul behavioral patterns",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "values-alignment-scorer": {
      "name": "Values-Alignment Scorer",
      "description": "Grade whether a twin response is consistent with the user's ranked values hierarchy",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "adversarial-boundary-scorer": {
      "name": "Adversarial Boundary Scorer",
      "description": "Grade whether a twin held or breached a stated boundary under an adversarial manipulation attempt",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "multi-turn-consistency-scorer": {
      "name": "Multi-Turn Consistency Scorer",
      "description": "Grade whether a twin stayed consistent across a multi-turn conversation",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "soul-writing-analyzer": {
      "name": "Soul Writing Analyzer",
      "description": "Extract communication patterns from writing samples",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-trait-extractor": {
      "name": "Twin Trait Extractor",
      "description": "Extract quantitative personality traits from twin documents",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-confidence-analyzer": {
      "name": "Twin Confidence Analyzer",
      "description": "Analyze completeness and confidence of twin personality definition",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-import-analyzer": {
      "name": "Twin Import Analyzer",
      "description": "Extract personality insights from imported external data",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-interview-analyze": {
      "name": "Twin Interview Analyzer",
      "description": "Extract traits and suggested documents from a pasted personality assessment or interview transcript",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-spoken-written-compare": {
      "name": "Twin Spoken-vs-Written Comparison",
      "description": "Compare a person's spoken transcript against their writing samples and surface communication-style differences",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "twin-image-identity-analyze": {
      "name": "Twin Image Identity Analyzer",
      "description": "Analyze a photo of a person and extract visible appearance and self-presentation descriptors for their digital twin",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "model-personality-profile": {
      "name": "Model Personality Self-Profile",
      "description": "Blind single-prompt introspective self-evaluation returning a structured personality trait map",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "model-personality-alignment-scorer": {
      "name": "Model Personality Alignment Scorer",
      "description": "Score how well a model's self-reported personality aligns with the digital twin's stored trait profile",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-idea-expansion": {
      "name": "Pipeline — Idea / Beat Sheet",
      "description": "Turn a rough seed idea for one issue or episode into a tight beat sheet with logline, theme, beats, setting, and any new characters. Spine for prose, comic script, TV script, and storyboard stages.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "pipeline-prose": {
      "name": "Pipeline — Prose Draft",
      "description": "Draft an 800–1500 word short-story version of one issue/episode from the beat sheet. Includes H2 scene breaks so downstream comic and TV adaptations have stable anchor points.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "pipeline-comic-script": {
      "name": "Pipeline — Comic Book Script",
      "description": "Adapt the prose draft into a Marvel/DC house-format comic-book issue script (page → panel → description / caption / dialogue / SFX). One of two parallel script stages, both downstream of prose.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "pipeline-teleplay": {
      "name": "Pipeline — TV Teleplay",
      "description": "Adapt the prose draft into a single-episode TV teleplay with sluglines, present-tense action, dialogue, and act breaks. One of two parallel script stages, both downstream of prose.",
      "model": "default",
      "returnsJson": false,
      "variables": []
    },
    "pipeline-editorial-analysis": {
      "name": "Pipeline — Editorial Reader-Emotion Analysis",
      "description": "Read one issue's reader-facing content (prose, comic script, or teleplay) and map the reader's emotional journey section by section, plus plot tension, character arcs, and protagonist detection. Feeds the series Editorial Roadmap. Runs at `heavy` tier — analyzes full issue content.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-judge-issue": {
      "name": "Pipeline — Calibrated Issue Quality Judge",
      "description": "CWQE Phase 3 (#2167): a harsh, calibrated LLM judge that scores one drafted issue across 9 dimensions (voice adherence, beat coverage, character voice, plants seeded, prose quality, continuity, canon compliance, lore integration, engagement) against the same brief the writer received. Uses an anti-inflation calibration ladder (median AI chapter = 6; no 10 for a draft) plus a QUOTE TEST (3 strongest / 3 weakest sentences) and a scene-vs-summary ratio. qualityScore = judge overall − deterministic slop penalty (#2165). Provider/model resolve via the writer stage judgeProvider/judgeModel (writer/judge split) — configure a DIFFERENT model to avoid self-congratulation.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-judge-compare": {
      "name": "Pipeline — Head-to-Head Issue Comparison",
      "description": "CWQE Phase 5 (#2169): a forced-pick comparison judge for the head-to-head Elo ranking. Reads two drafted issues (truncated to a comparable budget) and MUST pick a winner — ties are forbidden — quoting the deciding passage. Escapes the rubric trap where 1-10 scoring collapses to a 2-point band; comparative ranking forces discrimination. Runs pairwise across a series' drafted issues in a Swiss/Elo tournament to produce the weakest-issue ordering Phase 7 consumes.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-judge-foundation": {
      "name": "Pipeline — Foundation Quality Judge",
      "description": "CWQE Phase 11 (#2176): a harsh, calibrated LLM judge that scores a series' FOUNDATION — universe canon (worldbuilding 40%), character records and authored arcs (character 30%), the full volume/episode synopsis plan (structure 20%), and declared voice with exemplars (craft 10%) — BEFORE drafting. Uses an anti-inflation calibration ladder (median AI foundation = 6; no 10) and requires a concrete gap AND fix per dimension. Series Autopilot proceeds only when the weighted threshold and every dimension floor pass; otherwise it repairs the world bible, referenced core cast plus whole-series character arcs, series voice, or story structure through the owning service and re-judges. Provider/model resolve via the pipeline-arc-overview stage's judgeProvider/judgeModel (writer/judge split) — configure a DIFFERENT model to avoid self-congratulation.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-character-foundation": {
      "name": "Pipeline — Character Foundation",
      "description": "Character-first planning pass used before the macro arc and again for post-arc reconciliation. It fully authors every series-linked character's narrative profile and render identity, completes causal Ghost/Wound/Lie/Want/Need engines, distinct voices, relationships, secrets, and provisional whole-series transitions before plot generation; afterward it preserves that foundation while permitting only necessary refinements and a small additive set of story-required characters.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "phase",
        "foundationFindingJson",
        "seriesJson",
        "outline",
        "charactersJson"
      ]
    },
    "pipeline-foundation-repair": {
      "name": "Pipeline — Foundation Repair",
      "description": "Judge-directed pre-draft repair for the weak character or craft dimension. It strengthens the referenced core cast and whole-series character arcs as an ensemble, or writes an actionable series voice with concrete exemplars, while preserving established identities and story structure.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "dimension",
        "foundationFindingJson",
        "seriesJson",
        "outline",
        "charactersJson"
      ]
    },
    "pipeline-panel-editor": {
      "name": "Pipeline — Reader Panel: The Editor",
      "description": "Reader-panel persona (#2170, CWQE Phase 6). A senior developmental/line editor reads a condensed arc digest of the series and answers ~10 qualitative questions (momentum, earned ending, cut candidate, missing scene, thinnest character, best/worst scene, would recommend, haunts you, next book), citing issue numbers. One of four personas whose disagreements feed the panel view + consensus findings.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "seriesName",
        "logline",
        "issueCount",
        "digest"
      ]
    },
    "pipeline-panel-genre-reader": {
      "name": "Pipeline — Reader Panel: The Genre Reader",
      "description": "Reader-panel persona (#2170, CWQE Phase 6). A voracious genre reader (50+ novels/year) reads a condensed arc digest and answers the panel's ~10 qualitative questions from a pure page-turn-pull perspective, citing issue numbers. One of four personas whose disagreements feed the panel view + consensus findings.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "seriesName",
        "logline",
        "issueCount",
        "digest"
      ]
    },
    "pipeline-panel-writer": {
      "name": "Pipeline — Reader Panel: The Writer",
      "description": "Reader-panel persona (#2170, CWQE Phase 6). A working novelist reads a condensed arc digest for craft — structure, beats, setup/payoff — and answers the panel's ~10 qualitative questions citing issue numbers. One of four personas whose disagreements feed the panel view + consensus findings.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "seriesName",
        "logline",
        "issueCount",
        "digest"
      ]
    },
    "pipeline-panel-first-reader": {
      "name": "Pipeline — Reader Panel: The First Reader",
      "description": "Reader-panel persona (#2170, CWQE Phase 6). An ordinary reader with no craft vocabulary reads a condensed arc digest and answers the panel's ~10 qualitative questions as pure emotional response, citing issue numbers. One of four personas whose disagreements feed the panel view + consensus findings.",
      "model": "heavy",
      "returnsJson": true,
      "variables": [
        "seriesName",
        "logline",
        "issueCount",
        "digest"
      ]
    },
    "pipeline-reverse-outline": {
      "name": "Pipeline — Reverse Outline (scene segmentation + plotline tagging)",
      "description": "Read the whole drafted manuscript and produce a reverse outline: identify the recurring plotlines, then segment the prose into scenes (each tagged to the plotline it advances, with POV, setting, and narrative/action/dialogue mix). Feeds the color-coded Reverse Outline view and is the canonical scene-segmentation substrate other editorial checks read. Runs at `heavy` tier — reads the full stitched manuscript.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-continuity-bible": {
      "name": "Pipeline — Continuity Bible (established-facts ledger)",
      "description": "Read the whole drafted manuscript and extract concrete, checkable facts about the story world — physical traits, ages, dates/elapsed time, locations, possessions, world rules, and who-knows-what-when. Auto-seeded from universe canon (locked canon = ground truth) and learned from prose; feeds the browsable Series Continuity view and is the substrate the canon-contradiction / timeline / knowledge-leak checks read. Runs at `heavy` tier — reads the full stitched manuscript.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-extract-scenes": {
      "name": "Pipeline — Extract Scenes from TV Teleplay",
      "description": "Parse an already-formatted TV teleplay into a structured scenes[] list (one entry per slugline) the storyboards stage can render. Defers to character / setting bibles for canonical names and slugline reuse.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-audio-cues": {
      "name": "Pipeline — Audio Cue Planner",
      "description": "Break an episode's narrative beats into a small ordered list of per-arc-beat musical cues (one cue per emotional movement, not per scene), each with a self-contained text-to-music prompt + human label. Drives the whole-episode 'generated' audio mode; timing is placed at stitch time from rendered clip durations.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "story-builder-idea-expand": {
      "name": "Story Builder — Idea Expand",
      "description": "Expand a one-line seed idea into a working title, logline, and a world-and-arc-ready premise for the Unified Story Builder's first step (seed intake mode). Seeds the universe starter prompt and the series premise.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "story-builder-reader-map": {
      "name": "Story Builder — Reader Map",
      "description": "Plan the reader/viewer's experience across a series arc — hooks, payoffs, emotional beats, and cliffhangers — built on the protagonist arc and Vonnegut shape. Distinct from the protagonist arc; lives at series.arc.readerMap.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "story-builder-reader-map-refine": {
      "name": "Story Builder — Reader Map Refine",
      "description": "Refine an existing reader map against free-text feedback, returning the full revised map plus a changes list and rationale (the AI-feedback affordance for the Story Builder reader-map step).",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "story-builder-arc-refine": {
      "name": "Story Builder — Plot Arc Refine",
      "description": "Refine an existing plot arc's narrative fields (logline, summary, protagonist arc, themes) against free-text feedback, returning the full revised arc plus a changes list and rationale (the AI-feedback affordance for the Story Builder plot-arc step). Does not re-plan the season breakdown.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-arc-overview": {
      "name": "Pipeline — Series Arc Overview",
      "description": "Plan the top-level multi-season story spine for a series from its bible: a series-level logline, summary, themes, protagonist arc, and a 2–5 season breakdown with per-season loglines, ending hooks, and episode-count targets. Runs at `heavy` tier — most expensive single call in the pipeline.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-season-episodes": {
      "name": "Pipeline — Season Episode Breakdown",
      "description": "Plan the episode-by-episode breakdown for one season of a multi-season series. Slots N episodes between the season's pickup state and ending hook, respecting prior seasons' continuity, the protagonist's whole-series arc, and a balanced mix of pilot / complication / midpoint / b-plot / all-is-lost / climax / finale arc roles.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-arc-verify": {
      "name": "Pipeline — Arc Verification",
      "description": "Cross-season continuity pass over an authored arc: catches character contradictions, dropped subplots, episode-count vs arc-weight mismatch, unresolved finale hooks, arc-role imbalance, and theme drift. Returns actionable { severity, location, problem, suggestion } issues — empty list means clean.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-arc-resolve": {
      "name": "Pipeline — Arc Verification Auto-Resolve",
      "description": "Rewrite an authored arc + its volume/season outlines so every finding from the arc verification pass is resolved, preserving as much of the user's original work as possible. Grounds rewrites in the linked universe's canon entities when the series has one. Returns the corrected arc + seasons plus a per-finding resolution note.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-volume-verify": {
      "name": "Pipeline — Volume / Season Verification",
      "description": "Deep continuity pass on a single volume / season: volume-internal arc shape, within-volume continuity, beat-level escalation (issues with beats), promise drift, boundary continuity with neighbor volumes, cast economy, volume-scope world-entity drift, and obvious length-vs-weight mismatches. Complement to the cross-volume arc verify, deeper because the scope is smaller. Returns actionable { severity, location, problem, suggestion } issues — empty list means clean.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-beat-continuity": {
      "name": "Pipeline — Whole-Manuscript Beat Continuity",
      "description": "Whole-book beat-level continuity pass over every issue's beat sheet — the altitude between cross-volume synopsis verify and the full scripts. Catches dropped cliffhangers/unresolved setups, finale drift from the arc's intended ending, promised through-lines that never land, duplicated 'firsts', volume-to-volume hand-off breaks, and cross-issue character-state contradictions BEFORE the expensive full-script stage. Returns actionable { severity, location, problem, suggestion } issues — empty list means the beats cohere.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-beat-continuity-resolve": {
      "name": "Pipeline — Beat Continuity Auto-Resolve",
      "description": "Auto-resolve whole-manuscript beat-continuity findings by rewriting the BEATS of the specific issues that caused each finding (idea.output) — the beat altitude, not the arc. Returns a sparse episodes[] of full corrected beat sheets keyed by series-global episodeNumber (+ seasonNumber), plus optional notes for anything needing an arc-level restructure.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-script-verify": {
      "name": "Pipeline — Comic Script Verification",
      "description": "Craft pass over ONE issue's comic script before art: catches un-renderable panels, missing/malformed page-panel structure, panel-to-panel flow breaks, dialogue/art imbalance, within-issue continuity, and page-turn/beat placement. Used by Series Autopilot's per-issue script gate (advisory — surfaces findings, doesn't auto-rewrite). Returns actionable { severity, location, problem, suggestion } issues — empty list means sound.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-self-improve": {
      "name": "Pipeline — Self-Improvement Diagnosis",
      "description": "Post-mortem on a Series Autopilot run that ended badly (or limped to done): reads the run's own telemetry — convergence rounds, checks that threw, retried child runners, skipped steps, the terminal reason — and decides whether the fault is the STORY (needs human editorial work) or the PIPELINE (PortOS is missing an earlier editorial step, a stage prompt breaks its output contract, a runner swallows a failure, a gate can't do its job). Returns a { verdict, confidence, area, title, problem, evidence, proposedChange, risks } JSON diagnosis; a `pipeline` verdict above the confidence bar files a worktree-isolated CoS task against PortOS itself. Opt-in per run — never fires on a healthy run.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-observer": {
      "name": "Pipeline — Observing Orchestrator",
      "description": "In-flight observer for a Series Autopilot run (the continuous, self-dispatching sibling of the self-improve post-mortem): after a step whose fresh telemetry says the automation misbehaved — a retried/escalated child, a skipped step, an editorial check that threw, a filed gap — it reads the run's signal window and decides whether the fault is the STORY or the PIPELINE (a missing/misordered step, an ineffective loop, a broken check or prompt, a misconfigured gate, a missing option). Returns the same { verdict, confidence, area, title, problem, evidence, proposedChange, risks } JSON diagnosis at a HIGHER confidence bar: a `pipeline` verdict dispatches an AUTO-APPROVED, worktree-isolated CoS task that PRs and merges through the review loop without a human gate. Opt-in per run; bounded passes; never fires on a clean step.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-manuscript-completeness": {
      "name": "Pipeline — Manuscript Completeness",
      "description": "Developmental editor pass over the ACTUAL drafted manuscript (comic script / prose / teleplay across all issues), not synopses. Surfaces what's missing to FINISH a near-complete draft: missing-content (beats/pages/scenes), arc-gap (themes/protagonist turns the draft doesn't yet deliver), character-gap (under-developed cast), pacing, and continuity. Returns categorized { severity, category, issueNumber, anchorQuote, location, problem, suggestion } findings — issueNumber + anchorQuote anchor each finding to a manuscript spot so the editor can jump to it; empty list means complete.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-manuscript-fix": {
      "name": "Pipeline — Manuscript Fix",
      "description": "Generate a surgical, anchored edit that closes one 'Finish the draft' editorial gap in a single issue's drafted text. Given the issue's manuscript + the finding (category/severity/problem/suggestion/anchorQuote), returns a { find, replace } JSON pair where `find` is a verbatim excerpt of the manuscript to locate and `replace` is that excerpt rewritten to close the gap — preserving the author's voice. The user can edit `replace` before accepting it into the manuscript.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-volume-cover-concepts": {
      "name": "Pipeline — Volume Cover Concepts",
      "description": "Generate FRONT and BACK cover-art concepts for one volume (season) of a comic series. Returns a {coverConcept, backCoverConcept} JSON pair — pure scene descriptions for the image-gen renderer (no masthead, logo, or typography). Lightweight per-season call; may seed the cover and/or backCover script slots when they're blank, and never clobbers a user edit.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-comic-cover-concepts": {
      "name": "Pipeline — Comic Issue Cover Concepts",
      "description": "Generate FRONT and BACK cover-art concepts for a single comic issue. Returns a {coverConcept, backCoverConcept} JSON pair — pure scene descriptions for the image-gen renderer (no masthead, issue-number tag, or typography). Lightweight per-issue call; may seed the cover and/or backCover script slots (gated by the request `target`) when they're blank, and never clobbers a user edit.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-series-title-logo": {
      "name": "Pipeline — Series Title / Logo Design",
      "description": "Design the series masthead / logo typography from the series name + logline + style notes + universe influences. Returns a {titleLogo} JSON object — a single prose paragraph describing typography treatment, finish, color hints, and motifs to inject into cover prompts and TV title screens. Runs once on series creation from a universe; user can regenerate from the bible sidebar.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-series-generate": {
      "name": "Pipeline — Generate Series Concepts",
      "description": "Multi-concept series ideation (#2180, CWQE Phase 15): invents SEVERAL genuinely distinct new series within a universe — each with a name / logline / premise / story shape PLUS craft facets (hook, world, conflict engine, cost, tension, theme) — under an anti-generic banlist that merges a shipped default list with the universe's own avoid-influences. Returns a {candidates:[...]} JSON payload. Interactive mode presents the candidates for user pick on the New Series form; autonomous invention judge-picks the winner via the forced-rank pipeline-series-concept-judge stage. Configure a judgeProvider/judgeModel here to drive the writer/judge split for the pick.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-series-concept-judge": {
      "name": "Pipeline — Series Concept Judge (forced pick)",
      "description": "Forced-pick ranker for autonomous multi-concept series ideation (#2180, CWQE Phase 15). Reads the candidate concepts and MUST pick the single one 'a reader who has seen a thousand pitches would stop scrolling for' — ties forbidden — rewarding freshness over the generic default, a generative conflict engine, real cost, and both scales of tension. Resolves via the pipeline-series-generate stage's judgeProvider/judgeModel (writer/judge split). Falls back to the first candidate when no judge is configured or the call fails.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-series-voice-discover": {
      "name": "Pipeline — Discover Series Voice",
      "description": "Voice discovery (#2179, CWQE Phase 14): writes the SAME short scene beat in several distinct registers (spare / lyric / wry / close-psychic / cinematic) so the author picks the series voice by ear. Returns a {candidates:[{register, passage, note}]} JSON payload; the picked passage lands in the style guide's voiceExemplars, rejected ones can drop into voiceAntiExemplars. Explicit user-triggered action — does NOT persist and does NOT fire on boot.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-comic-panel-image-prompt": {
      "name": "Pipeline — Comic Panel Image Prompt",
      "description": "Refine a single comic panel's description into a richer image-gen-ready prompt. Uses caption / dialogue / sfx context + neighboring-panel continuity to elaborate without re-imagining the scene.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-storyboard-image-prompt": {
      "name": "Pipeline — Storyboard Scene Image Prompt",
      "description": "Refine a single storyboard scene's description into a richer image-gen-ready prompt. Uses slugline + neighboring-scene continuity to elaborate without contradicting location or time of day.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-comic-page-refine-render": {
      "name": "Pipeline — Comic Page Refine Render",
      "description": "Apply a small author correction to an already-rendered comic page's render prompt for an image-to-image re-render — changes only what the instruction asks and preserves the rest of the page (no redraw from the comic script).",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "universe-character-expand": {
      "name": "Universe — Expand Character Profile",
      "description": "Flesh out blank fields on one universe canon character — novelist depth (motivations / likes / mannerisms / relationships) plus graphic-novelist visual fields (silhouette / palette / expressions / props / hand gestures). Preserves populated fields and stays distinct from peer characters.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "universe-canon-entry-expand": {
      "name": "Universe — Expand Place / Object Entry",
      "description": "Flesh out blank fields on one universe canon place or object — description, palette / era / weather / recurring details for a place, description + significance for an object. Preserves populated fields and stays distinct from peer entries of the same kind.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "importer-classify": {
      "name": "Importer — Content-Type Classification",
      "description": "Classify the first chunk of a source as short-story / novel / screenplay / comic-script. Runs at `light` tier — only sees ~4K chars from the head of the source, costs are negligible compared to the canon/arc/issue extractors.",
      "model": "light",
      "returnsJson": true,
      "variables": []
    },
    "importer-canon-extract": {
      "name": "Importer — Universe Canon Extraction",
      "description": "Reverse-engineer characters / places / objects from a finished short story / novel / screenplay / comic script. Runs at `heavy` tier — source can be book-length.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "importer-arc-extract": {
      "name": "Importer — Series Arc Extraction",
      "description": "Extract series-level arc (logline / summary / themes / protagonistArc / shape) plus 1–5 seasons from a finished work. Persists into `series.arc` + `series.seasons[]`.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "importer-issue-proposal": {
      "name": "Importer — Issue Proposal",
      "description": "Split a finished work into PortOS pipeline issues with titles + arcPosition + arcRole + verbatim prose excerpts. Honors source-marked issue / chapter / volume headers.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-character-refine": {
      "name": "Pipeline — Differentiate One Character",
      "description": "Rewrite one character's `physicalDescription` so they render visually distinct from every peer in the cast — ethnicity, age decade, build, hair, eye color, distinguishing features, signature wardrobe, posture. Sees the full peer cast so it can push away from collisions; preserves evidence and firstAppearance. Backs the per-character \"AI: differentiate\" button on the Universe Canon and series Nouns views.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-character-differentiate-cast": {
      "name": "Pipeline — Differentiate Cast (Universe-Wide)",
      "description": "One call rewrites EVERY character's `physicalDescription` so the cast as a whole has no visually-colliding pairs — the cast-wide counterpart to the per-character refine. Backs the \"AI: differentiate cast\" button on the Universe Canon view; locked characters are still shown to the model for contrast but are skipped when the rewrites are applied.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-canon-describe-from-prose": {
      "name": "Pipeline — Describe Nouns From Prose",
      "description": "Backfill descriptions for canon nouns (characters/places/objects) that have none, using ONLY what the manuscript prose establishes. Grades each noun prose support (sufficient/thin/none) so nouns the prose never describes surface as a manuscript-quality red flag instead of being invented.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-info-dumping": {
      "name": "Pipeline — Editorial Check: Info-dumping",
      "description": "Editorial check (#1284): flags info-dumping / 'as you know, Bob' exposition in the drafted manuscript — backstory bricks, maid-and-butler dialogue, front-loaded world rules — and suggests how to dramatize or trim each instead. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-interiority": {
      "name": "Pipeline — Editorial Check: Protagonist interiority",
      "description": "Editorial check (#1294): flags POV scenes that move a viewpoint character through events without developing their interiority across four dimensions — mind, objective, emotional response, and decision-making. Reads the stitched manuscript, infers POV when untagged, and names the missing dimension per finding. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-chekhov": {
      "name": "Pipeline — Editorial Check: Chekhov's guns (setups & payoffs)",
      "description": "Editorial check (#1299): flags planted elements that never pay off (weapon, clue, secret, stated fear, promise, threat, skill introduced then dropped) and payoffs that arrive with no setup. Reads the stitched manuscript across chunks with a cross-chunk setup digest, and reconciles detected setups/payoffs against the authored reader-map hooks/payoffs. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-premature-reveal": {
      "name": "Pipeline — Editorial Check: Premature reveal (spoiler leak)",
      "description": "Editorial check (#2178): the information-economy guard for reveal-gated canon — flags a deliberately-withheld fact (character secret, late-story twist, hidden identity) that the prose states or unambiguously implies BEFORE its reveal issue, so a first-time reader learns it too early. Reconciles the stitched manuscript against the reveal-gated canon entries (reveal issue / hard-spoiler flag, spoiler-free surface descriptor, and the underlying gated fact) and distinguishes a genuine leak from deliberate foreshadowing, flagging only leaks. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-world-unforeshadowed-solution": {
      "name": "Pipeline — Editorial Check: Unforeshadowed solution",
      "description": "Editorial check (#2175): the worldbuilding sibling of the deus ex machina — flags a story problem resolved by a rule, power, property, or artifact the reader was never shown before it saved the day (Sanderson's First Law). Reconciles the stitched manuscript against the established world canon (artifacts/objects + places) and the continuity-bible world-rule facts, so a rule that WAS planted earlier is not flagged; the whole-arc verdict lands on the final part with earlier plants carried in the setup digest. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-world-cost-free-power": {
      "name": "Pipeline — Editorial Check: Cost-free power",
      "description": "Editorial check (#2175): flags an ability, technology, or magic used at a decisive moment with no cost, limitation, or price paid on the page (Sanderson's Second Law — limitations are more interesting than powers). Reconciles the stitched manuscript against the established world canon and continuity-bible world-rule facts, so a use that pays the established cost — or a power the canon defines as limitless — is not flagged. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-comic-page-turn": {
      "name": "Pipeline — Editorial Check: Comic page-turn beats",
      "description": "Editorial check (#1314): flags comic reveals/cliffhangers placed where the reader sees them early — on a page that shares its two-page spread with earlier pages rather than the first page after a page turn. Reads each issue's parsed comic-page layout and reconciles placement against the authored reader-map reveals/cliffhangers. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-dead-metaphor": {
      "name": "Pipeline — Editorial Check: Dead / mixed metaphor & overwriting",
      "description": "Editorial check (#1308): the judgment layer for tired language the deterministic cliché scan can't catch — dead or mixed metaphors, lightly-reworded novel clichés, and overwrought / purple prose. Reads the stitched manuscript; severity is advisory; skips knowing in-voice clichés. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-opening-start": {
      "name": "Pipeline — Editorial Check: Weak opening (wrong start)",
      "description": "Editorial check (#1300): flags clichéd or mis-placed openings — \"he wakes up\" / alarm-clock / dream starts, weather and scene-setting preambles, and scenes that begin before the interesting moment. Reads the stitched manuscript, focusing on the story opening and each chapter/issue opening. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-mirror-description": {
      "name": "Pipeline — Editorial Check: Mirror self-description",
      "description": "Editorial check (#1300): flags the tired device of a character looking at themselves in a mirror or reflection so the prose can catalog their appearance, while leaving reflections that do real story work alone. Reads the stitched manuscript. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-dialogue-pleasantries": {
      "name": "Pipeline — Editorial Check: Empty greeting / small-talk openings",
      "description": "Editorial check (#1300): flags scenes that open on empty pleasantries — greeting rituals and logistical small talk that carry no tension or information — while leaving pleasantries laced with subtext alone. Reads the stitched manuscript. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-kill-your-darlings": {
      "name": "Pipeline — Editorial Check: Kill your darlings",
      "description": "Editorial check (#1300): surfaces precious, self-indulgent passages — showpiece descriptions, digressions, over-explaining, and favorite lines that stop the scene's momentum — as candidates to cut, judged by story need rather than quality. Reads the stitched manuscript. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-endings-cliffhanger": {
      "name": "Pipeline — Editorial Check: Chapter-ending cliffhangers",
      "description": "Editorial check (#1298): flags chapter/issue endings that resolve and settle (\"soft landings\") instead of ending on an unresolved beat that pulls the reader forward, leaving a clearly terminal final chapter alone. Reads the stitched manuscript and reconciles detected endings against the authored reader-map cliffhangers. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-sensory-balance": {
      "name": "Pipeline — Editorial Check: Sensory balance",
      "description": "Editorial check (#1309): flags scenes that lean almost entirely on sight while sound, smell, touch, and taste are neglected, and sensory-bare scenes with almost no concrete grounding. Reads the stitched manuscript plus the reverse-outline scene segmentation (degrading to a whole-issue scan when absent), naming the missing sense per finding. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-white-room": {
      "name": "Pipeline — Editorial Check: White-room / ungrounded scene",
      "description": "Editorial check (#1309): flags \"white-room\" scenes — dialogue and action in an undescribed void with no setting, blocking, or spatial grounding. Reads the stitched manuscript plus the reverse-outline scene segmentation (using each scene's recorded setting as a candidate signal, degrading to a whole-issue scan when absent). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-summary-not-scene": {
      "name": "Pipeline — Editorial Check: Narrated summary where a scene belongs",
      "description": "Editorial check (#3591): flags dramatizable beats narrated at helicopter level instead of played out in-scene — compressed-away turning points, reported action, habitual/iterative mode wrapped around a single decisive event, and result-first narration. The reviewer half of the drafting rule \"at least 70% in-scene, not summary\". Reads the stitched manuscript plus the reverse-outline scene segmentation (degrading to a whole-issue scan when absent). Each finding names the summarized beat and where to zoom in. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-interiority-balance": {
      "name": "Pipeline — Editorial Check: Interiority balance (description vs. POV reaction)",
      "description": "Editorial check (#1623): flags visually dense but emotionally empty scenes — prose heavy on setting, blocking, and physical detail yet light on the viewpoint character's reaction, emotion, or thought, so description swamps interiority. Judges the description-to-interiority ratio within each scene. Reads the stitched manuscript plus the reverse-outline scene segmentation (degrading to a whole-issue scan when absent). Distinct from sensory.balance (the senses) and interiority.protagonist (whole-issue interiority absence). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-arc-transitions": {
      "name": "Pipeline — Editorial Check: Character-arc transitions",
      "description": "Editorial check (#1293): scans each character's scenes for genuine change moments (decision, realization, point-of-no-return, relapse, sacrifice) and proposes transition beats with anchor quotes. Reconciles detected change moments against the authored per-character arcs (series.characterArcs) and flags flat arcs — a carrying character with no transition scenes. Reads the stitched manuscript plus the reverse-outline scene map (degrading to a whole-issue scan when absent). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-timeline-contradiction": {
      "name": "Pipeline — Editorial Check: Timeline / canon contradiction",
      "description": "Editorial check (#1581): scans for internal contradictions against canon and chronology — a character who dies and reappears alive without explanation, an age contradiction (the bible says 16, the prose says 'in her 30s'), or an impossible timeline. Reconciles the stitched manuscript against the established canon character facts, the reverse-outline scene ordering, and the authored per-character arcs; degrades to a prose-only scan when no canon or outline exists. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-fact-accuracy": {
      "name": "Pipeline — Editorial Check: Research / fact accuracy",
      "description": "Editorial check (#1588): scans grounded fiction for contradictions to real-world facts the author has documented — a city placed in the wrong country, an anachronistic event or technology, a physiologically impossible feat. Reconciles the stitched manuscript against the author-supplied fact reference (series.factReference); distinct from the internal timeline/canon-contradiction check. Opt-in and gated on the per-series fact-critical flag so it never fires on pure fantasy. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-character-consistency": {
      "name": "Pipeline — Editorial Check: Character consistency (unearned personality shift)",
      "description": "Editorial check (#1582): flags unearned characterization changes — a reserved character who suddenly cracks jokes with no arc beat, an established trait (fear, allergy, skill) silently contradicted, or POV-character knowledge that changes mid-scene without on-page learning. Reconciles the stitched manuscript against the established canon character traits, the reverse-outline scene ordering, and the authored per-character arcs so an intentional, earned transition is NOT flagged; degrades to a prose-only scan when no canon or outline exists. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-object-motivation": {
      "name": "Pipeline — Editorial Check: Unmotivated object interaction",
      "description": "Editorial check (#1288): flags moments where a character treats an object as significant without earned motivation — no recorded attachment and no on-page setup. Reads the stitched manuscript plus the canon object↔character attachments. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-object-backstory": {
      "name": "Pipeline — Editorial Check: Attachment backstory consistency",
      "description": "Editorial check (#1288): flags object↔character attachments whose origin story contradicts the attached character's established background — conflicting people, places, eras, or timelines. Canon-only (no manuscript). Returns canon-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-object-weight-proportionality": {
      "name": "Pipeline — Editorial Check: Object narrative-weight proportionality",
      "description": "Editorial check (#1624): flags objects whose narrative weight is out of proportion to their prominence — a minor object given a disproportionate backstory or significance (over-weighted plot machinery), or a prominent/decisive object with little established lineage to earn it (under-established payoff). Weighs each object's manuscript prominence against the depth of backstory/significance the prose and canon establish. Reads the stitched manuscript plus the canon object↔character attachment summary. Distinct from objects.unmotivated-interaction (a single unmotivated beat) and objects.backstory-consistency (a contradicted origin). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-style-conformance": {
      "name": "Pipeline — Editorial Check: Style-guide conformance",
      "description": "Editorial check (#1303): flags prose that drifts from the series style guide — wrong narrative tense, point-of-view person drift, or content/profanity beyond the configured rating ceiling. Reads the stitched manuscript plus the declared style-guide expectations. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-pov-rewrite": {
      "name": "Pipeline — Perspective Rewrite (alternate POV)",
      "description": "Rewrite one issue's drafted passage (prose, comic script, or teleplay) from a different cast character's point of view — the same events re-lensed through another character's interiority, wants, and blind spots. A non-destructive revision exercise; the canonical draft is untouched. Runs at `heavy` tier — re-renders the full passage.",
      "model": "heavy",
      "returnsJson": false,
      "variables": []
    },
    "pipeline-pov-analysis": {
      "name": "Pipeline — Perspective Rewrite Analysis (what we learn)",
      "description": "Compare an original passage with its alternate-POV rewrite and report what the exercise reveals: new interiority surfaced, information the original POV was hiding, whether the new POV has a stronger claim to the scene, and concrete fold-back edits. Runs at `heavy` tier — reads both passages.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-telling-emotion": {
      "name": "Pipeline — Editorial Check: Telling-not-showing emotion",
      "description": "Editorial check (#1306): the judgment layer for named-emotion statements (\"she was sad\", \"he felt nervous\") worth dramatizing through action/sensation/subtext. Reads the stitched manuscript; severity is advisory; skips dialogue, deliberate pacing, and already-shown emotion. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-interiority-register": {
      "name": "Pipeline — Editorial Check: Interiority register",
      "description": "Editorial check (#3593): flags rendered thought written in an authored, essayistic register instead of the character's own voice — analytical full-sentence thought where a character under pressure would think in fragments, author intrusion articulating a theme the character would not, register mismatch against how that character speaks elsewhere, and an indistinguishable inner voice across the whole cast (flagged once). The register layer above the other interiority checks, which judge presence and ratio. Reads the stitched manuscript; severity is advisory; skips characterized formality, free indirect discourse, calm reflective beats, and transitional summary interiority. Findings name the register shift rather than rewriting the passage. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-on-the-nose": {
      "name": "Pipeline — Editorial Check: On-the-nose / subtext-free dialogue",
      "description": "Editorial check (#1307): the judgment layer for dialogue that states feeling/meaning outright with no subtext and \"maid-and-butler\" exchanges where characters tell each other what they both already know. Reads the stitched manuscript; severity is advisory; skips earned directness, functional exchanges, and dialogue whose subtext already works. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-reported-speech": {
      "name": "Pipeline — Editorial Check: Reported speech where a quoted line belongs",
      "description": "Editorial check (#3592): flags a character's decisive utterance delivered as narrated report instead of a quoted line — summarized speech at a turning point (\"she told him she was leaving\"), reported reaction to speech, and confrontations narrated indirectly with no line ever quoted. The inverse of on-the-nose dialogue: too little dialogue on the page rather than dialogue with too little under it. Reads the stitched manuscript; severity is advisory; skips deliberate compression of routine exchanges, between-scene bridges, POV constraints, and free-indirect-discourse voices. Findings name which moment to quote rather than drafting the line. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-voice-distinctiveness": {
      "name": "Pipeline — Editorial Check: Character voice distinctiveness",
      "description": "Editorial check (#1307): samples each character dialogue and flags interchangeable voices (everyone sounds like one narrator) plus drafted lines that contradict the canon speechPattern/speechAccent. Reads the stitched manuscript + authored voice profiles; rolls a per-character voice-sample digest across chunks. Returns issue-anchored findings naming differentiating tics.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-voice-consistency": {
      "name": "Pipeline — Editorial Check: Narrative voice / tone consistency",
      "description": "Editorial check (#1586): the NARRATOR-voice sibling of voice-distinctiveness (which covers per-character dialogue). Fingerprints each issue's narrative tone (diction, register, humor, emotional temperature) and flags an unexplained tonal shift across issues (witty issue 1 → grim issue 3 → witty issue 5 = whiplash) plus drift from the style guide's intended voice. Does not flag a purposeful tonal modulation the story earns. Reads the stitched manuscript + the style guide's intended tone; rolls a per-issue tone fingerprint across chunks. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-plot-structure": {
      "name": "Pipeline — Editorial Check: Plot structure & momentum",
      "description": "Editorial check (#1310, #7205): structural pathologies at the manuscript, arc, and scene level — a passive protagonist, deus ex machina / convenient coincidence, idiot plot, flat or unclear stakes, a sagging middle, dropped subplots, and scenes that stall because characters repeat a tactic without an action, response, discovery, consequence, or material change. Distinguishes repeated strategy from repeated wording, preserves purposeful quiet/connective/static passages, and omits whole-scene judgments when chunk context is incomplete. Reads the stitched manuscript plus the reverse-outline scene map + plotline coverage and authored reader-map hooks/payoffs; degrades to a whole-manuscript scan when no outline exists. Returns issue-anchored findings with a concrete structural repair.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-head-hopping": {
      "name": "Pipeline — Editorial Check: Head-hopping / POV discipline",
      "description": "Editorial check (#1311): in a limited-POV scene, flags narration that enters another character's head, reports knowledge/perception the POV character couldn't have, or switches POV mid-scene without a break. Reads the stitched manuscript plus the reverse-outline POV-per-scene map (degrading to a whole-issue scan when absent) and the series style guide's POV person; no-ops for third-person omniscient. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-climax-agency": {
      "name": "Pipeline — Editorial Check: Climax / resolution power (passive protagonist at the climax)",
      "description": "Editorial check (#1583): judges whether the CLIMAX is the protagonist's hardest, most active choice (not a passive climax where an ally rescues them, the antagonist self-destructs, or a coincidence resolves the conflict) AND whether it resolves the story's core problem and lands the emotional/thematic argument (not just the surface plot). Reconciles the prose against the authored reader-map payoffs (series.arc.readerMap) and the declared themes (series.arc.themes), using the reverse-outline scene map to locate the climax; gates its verdict on the final manuscript part and degrades to a whole-manuscript scan when no reader-map, themes, or outline exists. Complements plot.structure-momentum. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-reaction-proportionality": {
      "name": "Pipeline — Editorial Check: Emotional beat proportionality (reactions vs event magnitude)",
      "description": "Editorial check (#1584): whether each character's emotional reactions are PROPORTIONATE to the magnitude of the events that befall them. Flags an under-reaction (a high-magnitude event — trauma, death, betrayal, major loss/win — that draws no on-page reaction and is never processed in later issues) and an over-reaction (a minor setback triggering grief/rage/despair out of all proportion). Uses the reverse-outline scene map to weigh event magnitude and attribute findings to the right issue, and carries unprocessed high-magnitude events across manuscript parts so a later part can flag a trauma introduced early and left unaddressed; degrades to a whole-manuscript scan when no outline exists. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-secondary-arc": {
      "name": "Pipeline — Editorial Check: Secondary-character arcs (recurring non-POV cast)",
      "description": "Editorial check (#1585): the non-POV sibling of pov.justified (#1295). Tallies recurring NON-POV characters from the reverse-outline scene map (present across multiple scenes but never holding the viewpoint) and judges whether each shows meaningful change — flagging a flat side character (same at the end as the start) or one who regresses with no purpose. Does not flag a genuine walk-on or a deliberately-static foil whose constancy is the point. Because a flat arc is a whole-story claim, the verdict lands on the final manuscript part and each recurring secondary's established state is carried across parts; degrades to a whole-manuscript scan when no outline exists. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-theme-coherence": {
      "name": "Pipeline — Editorial Check: Theme coherence / thematic throughline",
      "description": "Editorial check (#1317): whether the manuscript actually DELIVERS its declared themes (series.arc.themes), not just states them. Builds a per-theme setup/complication/payoff coverage map, flags a theme that is stated but never dramatized or dropped after the opening, detects a strong EMERGENT theme not in the arc, and checks that the climax lands the thematic argument. Reads the stitched manuscript plus the authored arc themes and the reverse-outline scene map; degrades to a whole-manuscript scan when no outline or no themes exist. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-unmodeled-names": {
      "name": "Pipeline — Editorial Check: Unmodeled proper nouns used as character names",
      "description": "Editorial check (#1412): the LLM-assisted half of roster economy (#1292). Surfaces capitalized proper nouns used as apparent CHARACTER names that are ABSENT from the story bible (canon.characters names + aliases), and classifies each (named person vs. place / organization / brand / honorific the deterministic roster.economy scan can't distinguish). Flags throwaway one-appearance unmodeled names, suggesting adding them to canon or leaving them unnamed. Reads the stitched manuscript plus the canon roster; treats an empty bible as every named proper noun being a candidate. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-eyeline-match": {
      "name": "Pipeline — Editorial Check: Storyboard eyeline match",
      "description": "Editorial check (#1466): LLM scan of a scene's storyboard shot list for eyeline-match breaks — two characters in conversation whose gaze directions don't reciprocate across the cut, or a described eyeline that contradicts the shot's tagged screen direction. The judgment sibling of the deterministic visual.shot-continuity check; reads the per-issue storyboard shots (storyboard.shots). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-appearance-continuity": {
      "name": "Pipeline — Editorial Check: Storyboard appearance / prop continuity",
      "description": "Editorial check (#1467): LLM diff of a scene's storyboard shot descriptions for appearance/prop continuity breaks — the same character described with conflicting wardrobe/hair/state, a prop that appears/vanishes/transforms, or a setting whose weather/time/layout contradicts across shots, with no action justifying the change. The semantic sibling of the deterministic visual.shot-continuity check (the shot parser matches characters by name but never diffs their descriptions); reads the per-issue storyboard shots (storyboard.shots). Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-comic-prose-sync": {
      "name": "Pipeline — Editorial Check: Comic ↔ prose synchronization (hybrid issues)",
      "description": "Editorial check (#1589): cross-media consistency for hybrid comic+prose issues. Pairs each issue's prose narration with its authoritative comic pages (description + dialogue + caption + SFX) and flags SUBSTANTIVE divergences — a plot beat the prose narrates that no panel shows, panel dialogue that contradicts the prose (different words or a different speaker), or a chronology disagreement across the two media. Tuned to ignore ordinary medium-translation compression/reordering; reads the per-issue manuscript prose + comicScript.pacing. Runs one model call per hybrid issue. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-pacing-escalation-curve": {
      "name": "Pipeline — Editorial Check: Pacing / intensity escalation curve",
      "description": "Editorial check (#1618): scores each issue's dramatic intensity and flags a series-wide escalation curve that fails to build — flat intensity (issue 1 reads as intensely as issue N), a front-loaded climax (the biggest beat lands early), or stakes that plateau or de-escalate across the arc. Reads the stitched manuscript plus the reverse-outline scene map and a deterministic per-issue conflict-marker density tally (a grounding hint confirmed against the prose); degrades to a whole-manuscript scan when no outline exists. Returns issue-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-arc-regression": {
      "name": "Pipeline — Editorial Check: Character-arc regression / premature closure",
      "description": "Editorial check (#1619): judges the SHAPE of each character's arc across the whole series and flags an unmotivated regression (growth then a purposeless revert, distinct from a dramatized relapse), a circular arc (ends where it began), or premature closure (the arc resolves early then goes flat for the rest of the series). Reads the stitched manuscript plus the reverse-outline scene map and the authored per-character arcs (series.characterArcs); degrades to a whole-manuscript scan when no outline or authored arcs exist. Whole-arc verdicts are gated to the final manuscript part. Returns character-anchored findings.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "pipeline-editorial-adversarial-cuts": {
      "name": "Pipeline — Editorial Check: Adversarial cuts (prose tightening)",
      "description": "Editorial check (#2168): a ruthless literary editor persona that cuts 8–12% of the text as 10–20 passages, each an exact verbatim quote classified by cut type (FAT, REDUNDANT, OVER-EXPLAIN, GENERIC, TELL, STRUCTURAL). Also returns fat_percentage, tightest_passage (protected), loosest_passage, and one_sentence_verdict. Safe cut types (OVER-EXPLAIN, REDUNDANT) can be batch-applied mechanically. Returns issue-anchored findings with cutType.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-weave-episode": {
      "name": "FableLoom — Weave Episode Graph",
      "description": "Generates a complete interactive-video episode as single-camera-cut nodes, choosing its own node and ending counts from the story. Automatic cuts use one Continue path; decision nodes loop while waiting on viewer intent. Each node includes image, video, and camera-movement direction.",
      "model": "heavy",
      "returnsJson": true,
      "timeout": 1200000,
      "variables": []
    },
    "fableloom-outline-episode": {
      "name": "FableLoom — Draft Episode Beat Outline",
      "description": "Plans one episode as concise log-line beats, transitions, audience-connection states, and distinct endings before any teleplay prose or scene media is generated.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-branch-node": {
      "name": "FableLoom — Branch a Scene",
      "description": "Turns one camera-cut node into an interactive decision and grows new intent paths from it. Each branch is a new single-shot node with playback, image, video, and camera-movement direction. Returns { branches[] }.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-generate-series-plan": {
      "name": "FableLoom — Draft Series Plan",
      "description": "Drafts a complete series-level scaffold from the loom title, logline, premise, linked-universe canon, and episode outline. Returns a full story arc plus ordered plot points and side quests without changing episode scene graphs.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-feedback-episode": {
      "name": "FableLoom — Apply Episode Feedback",
      "description": "Applies one conversational author instruction to an existing branching-narrative episode. Returns sparse patches for episode metadata, existing scene content, and existing path labels/details while preserving scene and path ids.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-feedback-series-plan": {
      "name": "FableLoom — Apply Series Plan Feedback",
      "description": "Applies one conversational author instruction to a FableLoom series arc, ordered plot points, and side quests without changing episode scene graphs. Returns a sparse top-level plan patch plus a short change list.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-play-turn": {
      "name": "FableLoom — Play Turn",
      "description": "Narrates one turn of an interactive read-through: matches the reader's free-text message against the current scene's intent-labeled paths (move) or responds in-world without leaving the scene (stay). Returns { action, transitionId?, narration }.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-reformat-scenes": {
      "name": "FableLoom — Reformat Scenes",
      "description": "Rewrites existing branching-narrative scenes into another scene format (narrated prose ⇄ teleplay) without changing the story: same beats, same characters, same decision points, same ids. Returns { scenes[] } keyed by node id.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-review": {
      "name": "FableLoom — Episode Review",
      "description": "Story-editor critique of a branching episode's narrative layer — intent clarity, branch coherence, ending payoff, scene craft, canon fit — layered over the deterministic graph checks (which run separately and are passed in so the model doesn't repeat them). Returns { summary, findings[] } with node-anchored findings.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-review-episode-outline": {
      "name": "FableLoom — Review Episode Beat Outline",
      "description": "Story-editor review of one episode's pre-teleplay log-line arc, branch consequences, continuity, audience contract, endings, and handoff to adjacent episodes.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-review-series-plan": {
      "name": "FableLoom — Review Series Plan",
      "description": "Holistic story-editor analysis of the series arc, ordered plot points, side-quest lifecycle, and episode outline. Returns a summary, strengths, risks, and actionable recommendations without modifying the loom.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-review-series-teleplay": {
      "name": "FableLoom — Review Full Teleplay Series",
      "description": "Reviews every expanded episode scene as one interactive teleplay series for continuity, escalation, choice clarity, endings, visual beats, and configured delivery handoffs.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-editorial-remediate": {
      "name": "FableLoom — Evaluate and Remediate Series",
      "description": "Evaluates a complete interactive series and returns one safe sparse patch for missing outlines, scene craft, branch labeling, and explicit convergence continuity while preserving all existing graph membership and ids.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-editorial-self-improve": {
      "name": "FableLoom — Editorial Autopilot Self-Improvement",
      "description": "Opt-in, content-free post-mortem for a paused or failed FableLoom editor/reviewer loop. Distinguishes unfinished story work from an inefficient, broken, or incomplete PortOS workflow and returns a bounded software diagnosis; a confident PortOS verdict queues a deduplicated, approval-gated CoS task.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-review-playthroughs": {
      "name": "FableLoom — Review Playthrough Variations",
      "description": "Reviews deterministically enumerated playthrough variations for mechanics, causal branch coherence, audience agency, continuity, pacing, ending payoff, canon, and ship-quality storytelling.",
      "model": "heavy",
      "returnsJson": true,
      "variables": []
    },
    "fableloom-plan-shots": {
      "name": "FableLoom — Plan Timed Shots",
      "description": "Episode-scoped short-shot production planning before media generation.",
      "model": "default",
      "returnsJson": true,
      "timeout": 1200000,
      "variables": [
        "source",
        "guidance",
        "feedback"
      ]
    },
    "fableloom-review-shots": {
      "name": "FableLoom — Review Timed Shots",
      "description": "Episode-scoped short-shot production planning before media generation.",
      "model": "default",
      "returnsJson": true,
      "variables": [
        "source",
        "shots"
      ]
    },
    "universe-cast-integrity-review": {
      "name": "Universe — Cast Integrity Review",
      "description": "Review an authored cast for narrative integrity rather than completeness: whether the stated control belief predicts behavior, its origin supports it, the three drives are specific, relationships create pressure, and a plausible challenge can test the strategy. Returns per-character findings with evidence and a suggested edit. Minor roles, flat arcs and explained unknowns are held to lighter requirements.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    },
    "universe-character-augment": {
      "name": "Universe — Augment Populated Character Fields",
      "description": "Sharpen character fields that are already written but too generic to predict behavior. Distinct from the fill-blanks expand: it rewrites populated prose while preserving the authored intent, and returns per-field proposals the author accepts or rejects individually.",
      "model": "default",
      "returnsJson": true,
      "variables": []
    }
  }
}