Project Model
Scritorio projects are local folders. Markdown is the source of truth, and app indexes are rebuildable. The default project shape is one book. A series is optional shared context layered above multiple books only when the author needs it.Source Of Truth
Primary content should live in author-readable files:- manuscript drafts
- book overview files and outlines
- optional series bibles
- flexible manuscript units, such as acts, chapters, sections, prologues, dedications, quotations, custom pages, and manuscript notes
- beat sheets and other planning documents linked to manuscript units
- research notes and source notes
- citation records, bibliography notes, footnotes, and endnotes
- fiction canon and worldbuilding
- character and location dossiers
- character
soul.mdfiles for in-character chat and voice grounding - timelines
- book-level Editorial Board customizations
- editorial reports
- coaching assignments, submissions, reviews, and writer-profile notes
- curriculum progress and module state
- visual prompts, cover concepts, illustration notes, and asset notes
Book-First Shape
A standalone book project should be understandable even outside Scritorio:Flexible Manuscript Units
Scritorio should support acts without requiring them. The core manuscript model is a flexiblemanuscript_unit, not a fixed act/chapter/scene hierarchy.
Current author-facing v1 unit types should include:
actchaptersectionnoteprologuededicationpagequotation
part, appendix, front_matter, and back_matter may still be recognized for compatibility, but they are not the preferred v1 creation surface.
Units may be represented by Markdown files, folders with Markdown files inside them, or front matter relationships. A fiction author might organize a book as acts containing stable-id chapter files. A nonfiction author might use chapters and sections. Another author might begin with one long manuscript file. All of these should remain valid as import shapes, while app-created units should follow the current filesystem layout.
Chapters are first-class manuscript units. A chapter may live at the manuscript root or inside an act folder. Act and chapter filenames are stable storage ids such as act-a552eb2e.md and chapter-c3960842.md; they are not act or chapter numbers. The displayed chapter number is derived by sorting included manuscript units by order and counting only unit_type: chapter files. The YAML title property is reserved for a real author-supplied chapter title, not generic labels such as Chapter 1.
Beat Sheets And Planning Documents
Beat sheets should be first-class linked planning documents. A common shape is:chapter-c3960842.md is manuscript content. chapter-c3960842.beat-sheet.md and chapter-c3960842.notes.md are planning sidecars. Beat sheets and chapter notes should be indexed, searchable, previewable, repairable, and available to coaching or editorial context, but excluded from assembled manuscript prose unless the author explicitly includes them as manuscript units.
Chapter notes may have a sibling collection directory such as chapter-c3960842.notes/ for captured Editorial Board notes and related note cards. The index sidecar and collection directory should move together.
Front matter may make these relationships explicit:
Optional Series Shape
Series support should be available without making every author start inside a series container:Wastebasket
Removing a book or series from the library should move the folder into a Scritorio Wastebasket first, not permanently delete it. Emptying the Wastebasket is a separate destructive action that should require explicit confirmation. The Wastebasket should preserve enough metadata to support future restore flows:- original path
- project kind
- title
- trashed timestamp
Markdown And Front Matter
Markdown files should be portable and readable in other tools. YAML front matter can identify file type, title, point of view, chapter, topic, tags, sources, canon dependencies, or visual relationships. Scritorio should support Markdown footnotes where the chosen Markdown parser/export path allows them. Footnotes, endnotes, source notes, and bibliography entries should remain readable local content, not opaque database-only records.Indexes, Footnotes, And Bibliographies
Nonfiction authors need book-production support for scholarly and reader-navigation material. Scritorio should eventually support:- author-curated index entries
- suggested index terms extracted from manuscript text
- generated draft indexes with page or section targets once an export format exists
- bibliography records and source-note files
- footnotes and endnotes in Markdown-compatible form
- citation/source coverage checks
- links between claims, notes, citations, bibliography entries, and manuscript passages
SQLite As Cache
SQLite should be an index and cache, not the canonical manuscript store. It can store:- file paths
- file types
- titles
- content hashes
- modified times
- parsed front matter
- product-defined and author-defined Codex fields
- character soul file paths and derived voice metadata
- object records derived from Markdown files
- manuscript unit records derived from Markdown files and front matter
- parent-child manuscript relationships and ordering
- linked planning documents, including beat sheets
- series and book relationships
- search indexes
- generated navigation state
- backlinks and explicit cross-file links
- report references
- extracted mentions
- unresolved issue references
- source and citation references
- index term candidates
- footnote, endnote, and bibliography references
- visual asset metadata
- cover, illustration, page, spread, and chapter-art relationships
- embeddings or semantic search metadata later
.scritorio/index.sqlite is deleted, it should be rebuildable from the local project folder. Core author content must never exist only in SQLite.
Example Vault
The repo includesexamples/the-long-silence/ as a real sample project. It should help test fiction workflows, canon checks, style checks, and continuity checks.
It should not define the only supported project shape.