12 KiB
Feature dependency analysis — Phase3D.2A proposal
This is a reviewable specification, not an installed dependency engine. Capability-Catalogue.json, Feature-Dependencies.json and Readiness-Specification.json form one logical shared model. Capability IDs identify author outcomes; condition IDs identify scoped facts; edges connect possible producers to consumers. Investigation, readiness, preparation and Family Tree must consume that same versioned model, not maintain their own copies.
Evidence and granularity
The inventory traces source actions to controllers, service/repository paths, views or JavaScript where relevant, current schema metadata and Help. Source anchors include exact line excerpts and file hashes. It distinguishes working source paths, restricted operations, the partial occupancy writer, retained legacy import and explicitly planned capabilities. A source-backed status is not a claim that an individual account/book is currently able to use it.
Separate entries represent an independently useful recommendation, a materially different dependency or a distinct state-changing outcome. Examples: map drawing vs canonical location linking vs geographic arrangement; scene knowledge vs asset custody; starting an Audio Review recording vs controlling a live supported player. Undo, colour selectors, zoom and save/retry variants are grouped into the related outcome. Export brief types remain distinct because their selected entities and author uses differ. Account/support/admin operations are included but should not become primary creative diagnoses.
Author benefit and problem/opportunity descriptions are proposed discoverability interpretation. They are not manuscript findings or a production questionnaire. No hundreds of diagnostic questions have been generated.
Edge semantics and direction
| Type | Stored direction | Interpretation |
|---|---|---|
| Requires | Producer → consumer | The consumer operation needs the referenced data fact. A producer is one way to establish it, not a mandatory prior visit to that screen. |
| BenefitsFrom | Helpful producer → consumer | The fact improves usefulness or is an optional enhancement; absence does not make the workspace technically unavailable. |
| ProducesDataFor | Data-maintaining capability → consumer | Records maintained by the source are consumed by the target. Other context, access and freshness requirements remain independent. |
| WorksWith | Stored pair, complementary in both directions | Two capabilities offer useful complementary perspectives. It is not a prerequisite arrow. |
The 1,418 exported links comprise510 Requires,195 BenefitsFrom,703 ProducesDataFor and10 WorksWith. These are typed links, not1,418 independent setup requirements. There are74 reusable condition definitions. Many edges inherit ordinary project/book/chapter context; most author views should collapse that background. Some source/target pairs legitimately have both Requires and ProducesDataFor semantics.
A condition may have multiple producer capabilities joined by OR. Distinct hard conditions on a consumer are joined by AND. Never interpret all incoming Requires producer links as mandatory tasks. A book may already satisfy the condition through existing, restored or externally completed work. Minimum quantities and association scope belong to the condition. A two-character condition may require two appropriate records, not two unrelated invocations of a particular screen.
Inline creation is another OR alternative. Floor-plan room creation can select an existing Location or create one within AddBlock. It does not require a separate Location-entry journey. Data readiness must distinguish these submission fields from missing prior story data.
Significant chains and alternatives
Structure and author intentions
projects.create → books.create → chapters.record → scenes.record → scenes.intentions/checklist/workflow.
Chapter/scene identities and associations are hard requirements for their mutations. Cast, geography, metrics and a manuscript are not universal prerequisites to manually creating a scene. Project/book context is not evidence that the author lacks a developed story. Chapter goals/scene purpose/outcome/checklists produce intentions consumed by Context/Intent and optional intention assessment.
Characters and relationships
characters.record × at least2 → relationships.baseline or relationships.workspace-edit → relationships.network.
The network can open empty. Existing links improve usefulness; recorded scene events enhance chronological inspection. Authors can create relationships in the visual workspace; an existing baseline relationship is not required merely to open it. Family and romantic/physical categories are supported by typed initial relationships; this is not a verified dedicated genealogical-tree renderer. Development lookup counts confirm Family and Romantic / Sexual categories and31 active relationship types.
scene + character → knowledge.record / attributes.events → knowledge.timeline / attributes.arc.
A character may exist globally without relevant scene appearances or knowledge rows. Readiness must check the consumed associations, not just a project character count. Knowledge may be privately developed but absent from the database; preparation must ask rather than diagnose incompetence.
Maps and real-world geography
project → maps.create → maps.pieces / areas / routes can begin with provisional pieces and no canonical Locations.
locations.record/hierarchy → geography.lookup → current candidate confirmation → maps.link-locations → maps.geographic-positioning is an optional geographic branch. Provider eligibility, recognised geographical ancestry, generation and explicit confirmation matter. Fictional settings should remain useful through manual map creation/placement. A geocoding failure must not lower diagnostic evidence or block all map use.
scene location + linked map feature + relevant participation → maps.story-scenes / maps.story-characters / maps.story-plot-time.
Journey annotations additionally require a projected character leg in the current narrative/scenario scope. Mention is not physical movement. The existing composer distinguishes physical appearances for legs. Directions/relative distances support explicit arrangement; measured distance does not silently dictate scale or imply a route-finding simulator.
Floor Plans
project → floorplans.create may establish a root Location and Ground Floor itself. floor + existing room OR inline room creation → rooms → valid placed endpoints → transitions/stairs.
Maps and Floor Plans complement one another; neither is a universal prerequisite of the other. Doors, entrances, stairs and secret passages have endpoint/floor/geometry validation. Background images are enhancements, not mandatory setup.
scene plan link + SceneFloorPlanOccupancy + placed room locations → floorplans.scene-occupancy is a verified read projection. The repository/SQL write exists, but no application caller of the write interface was found. floorplans.position-occupants remains partial; do not generate a journey promising an unverified placement editor. See gap-occupancy-write.
Narrative, chronology and experiments
plot line → thread → scene contribution events → plot workspace / health / thread lanes.
Project-wide and book-specific plot scopes differ. Events/targets are meaningful associations; shared table names alone do not create a dependency. Canonical scene order and dated story time are also distinct: Timeline can use order without Calendar-ready absolute dates. Calendar can open with unplaced scenes; placed dates improve its useful result.
scene records → alternate Scenario order → compare/validate → explicit apply to canonical order.
Validation is useful preparation, not author approval. Apply is destructive to canonical order and needs its existing confirmation. This should never be an automatic preparation action.
Manuscript, Word, Review and audio
correct manuscript binding + authenticated session → accepted paragraphs → canonical Reader / passage observations.
Chapter-level observations do not require accepted prose. Exact passage capture does require current original IDs/version/offsets. Chapter/scene intentions are recorded independently from observations and revision decisions.
current saved exact-document proof + accepted revision + advertised ack support → explicit Word handoff.
An authenticated installation is not necessarily Word-connected, a linked title is not identity, and a queued handoff is not acknowledged completion. AudioReview recording can start for an eligible chapter without supported playback. Playback additionally requires a fresh bound supported player. Display placement requires browser/window permission, not a database row.
Accepted paragraph snapshots and SceneManuscriptSources are distinct sources. Intent assessment reads scene sources; it also needs at least one author intention and entitled/configured AI. Do not claim every paragraph sync refreshes every scene-source consumer until that bridge is verified.
Optional analysis
owned core import/source → optional explicit consent/configured entitlement → current scene analysis → character identity gate → peer reviews → whole-book narrative synthesis/review → explicit materialisation.
Persisted candidate generations and canonical records are not interchangeable. Character resolution gates peer review; whole-book synthesis is the authoritative final narrative candidate generator. Normal review readiness must not silently run AI, regenerate candidates or parse raw scene results. Detailed batch handles are currently in memory; durable preparation plans should retain book/module/generation identity and resolve a current handle on resume.
Planning, activity and recovery
scoped writing plan + saved availability + eligible target work → schedule/activity preview → explicit allocation/completion.
Eligibility includes blocked policy, already scheduled/completed work and capacity. A completed task, a scene revision status and accepted manuscript change remain separate state. Activity baseline needs an accepted manuscript; recording/history uses owner/private settings and retained coverage.
owner + supported project/book graph → reviewed backup/restore point → validated package and reservation → explicit recovery.
Read-only accounts retain safety access to relevant export/recovery endpoints, while actual restore still checks resources and ownership. Restoring an archived root Project must not demand that the same Project already be active; archive selectors use a separate condition. Backups/restore/deletion/import are never silent graph-preparation steps.
Cycles and unresolved relationships
Static validation finds no strongly connected component in the exported Requires union or its single-producer subset. This is evidence about this snapshot, not a permanent DAG guarantee. The validator emits components for review as content changes. AND/OR conditions, inline alternatives and runtime selectors still need cycle-safe planning.
WorksWith is intentionally reciprocal; ProducesDataFor can be complementary or form maintenance loops. Such cycles are not invalid hard dependencies. Navigation from one workspace to another does not prove Requires. Avoid using a completed preparation task as proof of the data fact: another operation may subsequently remove/archive/change it.
Ten explicit coverage/contract issues are retained in Capability-Coverage.json. One prerequisite producer is unresolved: saved floor-plan occupancy. Subjective author understanding is intentionally not automatically verifiable. Publishing output, private backup coverage, scene-source bridging, in-memory batch handles, runtime platform proof and minimal read-only aggregates have explicit review notes. These are not filled with invented routes or unconditional readiness claims.