Audit PlotDirector capabilities and specify shared dependencies and progressive readiness

This commit is contained in:
Nick Beckley 2026-11-17 16:40:28 +00:00
parent eb9dec261c
commit be459d22c6
19 changed files with 61235 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
# Phase3D.2A export contract and audit reproduction
All four root exports use schemaVersion1 and bundleId `plotdirector-capability-audit-3d2a-v1`. Source baseline is `eb9dec261cae8ffadcae4f3ed0d758f6b8c51e87`, which retains deployed application62fa292 and subsequent Phase3D.1 evidence. The files form one proposed shared feature model, not independent models for different consumers. They are not imported into the application.
- `Capability-Catalogue.json`: stable capability IDs, status/benefit/discovery/roles, actual controller/action entry and operation, evidence, relevant entity graph, hard/useful/optional condition references, availability and Help. Scoped source signatures must be honoured by future route adapters. Secondary benefits are listed where supported by producer links; absence means no separately verified secondary benefit.
- `Feature-Dependencies.json`: typed links with explicit direction, condition IDs, producer alternatives and source evidence. Requires references a data condition, not a historical screen-completion flag. BenefitsFrom distinguishes usefulness/enhancement. ProducesDataFor is a different semantic view of a data producer, not another compulsory task. WorksWith is complementary.
- `Readiness-Specification.json`: the single set of condition definitions and proposed fact/state contracts, current exact read-procedure candidates where verified, scope/association/minimum/AND–OR/inline logic, permissions/freshness/performance notes, producer IDs and no diagnostic-score effect. Declarative `fact`/runtime/selection contracts still require approved typed selector implementations; no executable readiness evaluator is included.
- `Capability-Coverage.json`: counts, every controller-file disposition, heuristic public-action index, toolbar/contextual ribbon command coverage, limitations and unresolved issues. It does not claim100% runtime coverage.
Evidence references resolve through `Source-Evidence.json`: repository-relative path, one-based line, exact trimmed excerpt and SHA256 of the complete source file. Reusable condition IDs have their own namespace. Schema/control enums and IDs are validated offline. Null runtime entries are permitted only for planned features. Partial occupancy has a verified read entry but no asserted working save route.
`Development-Schema.jsonl` contains only database name/time and schema/table/column/FK/procedure metadata. `Reference-Availability.jsonl` contains global reference counts only. No author rows, manuscript prose, secrets or connection strings were requested/exported. The two guarded SQL files are **SELECT-only** apart from fail-fast target checks; no domain procedures are executed. Runtime connection handling used the existing private credential-safe runner; it is not included. No backup, migration, deployment or data write was needed.
The metadata snapshot confirms197 tables,361 foreign-key columns and716 procedures. It verifies object existence and association metadata, not complete source/live stored-procedure-body equivalence or current per-book readiness. System reference counts show six relationship categories (including Family and Romantic / Sexual),31 active relationship types, six name locales,3,067 given names and three successful reference imports. Those are reference availability facts, not author data or a quality assessment of the reference package.
From repository root:
```text
python3 Tools/WriterCapabilityAudit/build_inventory.py
python3 Tools/WriterCapabilityAudit/validate_inventory.py --self-test
```
Both tools are offline documentation tooling. They do not connect to a database, call application routes/providers, publish catalogues or calculate a current author's readiness. The builder compiles curated audit assertions against exact source anchors and committed metadata. The validator checks bundle/schema versions, stable/unique IDs, statuses, capability/condition/edge/alias references, dependency types, typed-expression references, entity/procedure existence, navigation/controller dispositions, Help paths and source hashes/line excerpts. It reports strongly connected components in Requires projections and runs nine deliberate invalid-export cases.
The action index is a C# source heuristic, not ASP.NET runtime endpoint discovery. Repeated methods/overloads/transport operations are grouped into meaningful capabilities. Existing views and PWA attributes are evidence for affordances, not proof that every browser or installation currently supports them. Source-backed implementation status is distinct from operation readiness for a particular account/book.
Refresh metadata only through explicitly authorised read-only access to verified Development. Do not run the new audit SELECT scripts against Production by assumption, and do not replay numbered SQL migrations. If source hashes change, review the affected anchors/claims; do not silently refresh hashes around unreviewed behaviour. When the reviewed graph changes, increment bundle/version and preserve compatibility aliases.

View File

@ -0,0 +1,12 @@
-- Read-only metadata inventory. No domain procedure execution or application records.
IF DB_NAME() <> N'PlotDirector_Development' THROW 51000, 'Unexpected database', 1;
SELECT DB_NAME() DatabaseName, CONVERT(varchar(33),SYSUTCDATETIME(),126) CapturedUtc;
SELECT s.name SchemaName,t.name TableName,c.name ColumnName,TYPE_NAME(c.user_type_id) DataType,c.is_nullable IsNullable
FROM sys.tables t JOIN sys.schemas s ON s.schema_id=t.schema_id JOIN sys.columns c ON c.object_id=t.object_id
WHERE t.is_ms_shipped=0 ORDER BY s.name,t.name,c.column_id;
SELECT fk.name ForeignKeyName,OBJECT_SCHEMA_NAME(fk.parent_object_id) ParentSchema,OBJECT_NAME(fk.parent_object_id) ParentTable,pc.name ParentColumn,OBJECT_NAME(fk.referenced_object_id) ReferencedTable,rc.name ReferencedColumn,fk.delete_referential_action_desc DeleteAction
FROM sys.foreign_keys fk JOIN sys.foreign_key_columns fkc ON fkc.constraint_object_id=fk.object_id
JOIN sys.columns pc ON pc.object_id=fkc.parent_object_id AND pc.column_id=fkc.parent_column_id
JOIN sys.columns rc ON rc.object_id=fkc.referenced_object_id AND rc.column_id=fkc.referenced_column_id
ORDER BY ParentTable,ForeignKeyName;
SELECT SCHEMA_NAME(schema_id) SchemaName,name ProcedureName FROM sys.procedures WHERE is_ms_shipped=0 ORDER BY SchemaName,ProcedureName;

View File

@ -0,0 +1,10 @@
-- Read-only global reference-data counts, not author/book records or credentials.
IF DB_NAME() <> N'PlotDirector_Development' THROW 51000,'Unexpected database',1;
SELECT DB_NAME() DatabaseName,
(SELECT COUNT(*) FROM dbo.RelationshipCategories WHERE IsActive=1) ActiveRelationshipCategories,
(SELECT COUNT(*) FROM dbo.RelationshipCategories WHERE IsActive=1 AND CategoryName=N'Family') FamilyCategories,
(SELECT COUNT(*) FROM dbo.RelationshipCategories WHERE IsActive=1 AND CategoryName=N'Romantic / Sexual') RomanticPhysicalCategories,
(SELECT COUNT(*) FROM dbo.RelationshipTypes WHERE IsActive=1) ActiveRelationshipTypes,
(SELECT COUNT(*) FROM dbo.NameLocales) NameLocales,
(SELECT COUNT(*) FROM dbo.GivenNames) GivenNames,
(SELECT COUNT(*) FROM dbo.NameReferenceImports WHERE Succeeded=1) SuccessfulNameImports;

View File

@ -0,0 +1 @@
{"DatabaseName":"PlotDirector_Development","ActiveRelationshipCategories":6,"FamilyCategories":1,"RomanticPhysicalCategories":1,"ActiveRelationshipTypes":31,"NameLocales":6,"GivenNames":3067,"SuccessfulNameImports":3}

View File

@ -0,0 +1,13 @@
{
"schemaVersion": 1,
"passed": true,
"files": {
"Docs/Writer/Investigations/Capability-Catalogue.json": "8e7683d5e7f4d0162628c3504d550c12d664dc01f606b2c21232cc2ebffddb9e",
"Docs/Writer/Investigations/Feature-Dependencies.json": "772771c09c21fcf1d99a41aa896b951b6d4c0ce0e3664a6fc3becd6bcfb2353e",
"Docs/Writer/Investigations/Readiness-Specification.json": "866bf52b0ddd9600edfeb17404382d8c22206c7ad6511425078f8d312152c462",
"Docs/Writer/Investigations/Capability-Coverage.json": "65fb1b7ea062347a1092689ce5e3877830ceb1c25892b4fc7d9929438ee839c1",
"Docs/Writer/Investigations/Complete-Feature-Inventory.md": "492f609dc652530c482f7858ab72b852263f637a6ee00d2c7196cba47c124719",
"Docs/Writer/Investigations/Audit-3D2A/Source-Evidence.json": "397bac8100a1f18dc3a4d6948fdfce94e518a47ded7a1f650a62f445cafb2893"
},
"result": "Offline regeneration produced identical exports and inventory; reference/source validation and nine invalid-export cases passed."
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,39 @@
{
"schemaVersion": 1,
"bundleId": "plotdirector-capability-audit-3d2a-v1",
"sourceCommit": "eb9dec261cae8ffadcae4f3ed0d758f6b8c51e87",
"passed": true,
"capabilities": 251,
"areas": 43,
"conditions": 74,
"edges": 1418,
"statuses": {
"implemented-usable": 210,
"implemented-restricted": 34,
"partially-implemented": 1,
"legacy-accessible": 1,
"planned-only": 5
},
"edgesByType": {
"Requires": 510,
"ProducesDataFor": 703,
"BenefitsFrom": 195,
"WorksWith": 10
},
"sourceAnchorsVerified": 450,
"unresolvedIssues": 10,
"requiresUnionStrongComponents": [],
"singleProducerRequiresStrongComponents": [],
"scope": "Static export/reference/source validation only; no application/database execution or runtime readiness evaluation.",
"negativeCases": [
"duplicate capability",
"invalid stable ID",
"orphan edge",
"invalid edge type",
"invalid status",
"orphan condition",
"invalid schema",
"readiness rescoring",
"invented table"
]
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,504 @@
# Complete feature inventory — proposed Phase3D.2A review baseline
Source baseline `eb9dec261cae8ffadcae4f3ed0d758f6b8c51e87`; shared branch `codex/word-companion-native-phase1-20261104`. Documentation/tooling only. 251 entries across 43 functional areas. Counts distinguish implemented, restricted, partial, legacy and planned work; no100% runtime coverage claim.
The structured [Capability-Catalogue.json](Capability-Catalogue.json) is the detailed record: actual controller/action entry and operation, exact source anchors, business logic, entity graph, scope/authority, restrictions, hard/useful/optional conditions, Help, author benefits and proposed recommendation roles. [Readiness-Specification.json](Readiness-Specification.json) defines each condition, counts/associations/AND–OR alternatives, check feasibility, freshness and preparation sources. Source references resolve through [Source-Evidence.json](Audit-3D2A/Source-Evidence.json) with line excerpts and hashes. No routes were guessed or opened. Contextual ribbon, explicit application commands and toolbar entries are all dispositioned in the coverage export.
## Granularity and evidence rules
- Separate meaningful independently recommendable outcomes or materially different prerequisites.
- Keep CRUD/retry/toolbar variants together unless author benefit or required context differs.
- Separate blank workspace access from data-dependent use; do not mistake an empty screen for an unavailable capability.
- Benefits/problem-language and recommendation roles are proposed design interpretation; routes/guards/status are source claims.
- Planned and partial entries are explicitly non-openable or unverified; never use documentation alone as proof of implementation.
Controller/action identities are verified entry points; a future MVC adapter must bind the actual source signature and scoped record IDs. A fragment, POST operation or native API is not itself presented as a standalone author page. Record selectors, in-memory batch handles and runtime grants require their own bindings. Schema existence is supporting evidence, not proof that a complete user workflow exists.
Benefits, discovery examples and role classifications are proposed interpretation of source-backed operations; they are not a production questionnaire or manuscript diagnosis. Context/access/edit entitlement is separate from story-data prerequisites. Empty project-scoped shells can be usable even when no useful result rows exist.
## Inventory by functional area
### Account Access
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `account.access` — Register, sign in and recover account access | Access private story records through the existing authenticated account workflow. | implemented-usable; global | H: none; U: none; O: none | Account.Login; `PlotLine/Controllers/AccountController.cs:13` |
| `account.security` — Manage password, two-factor authentication and recovery codes | Protect access to private story records and recover supported authentication. | implemented-usable; account | H: none; U: none; O: none | ManageAccount.Index; `PlotLine/Controllers/ManageAccountController.cs:232` |
| `account.subscription` — Inspect subscription, usage and billing controls | Understand editing, resource, storage and AI eligibility before a gated action. | implemented-usable; account | H: none; U: none; O: none | ManageAccount.Index; `PlotLine/Controllers/ManageAccountController.cs:98` |
| `account.delete` — Explicitly delete the author account and owned data | Exercise the existing guarded account-data deletion workflow. | implemented-usable; account | H: none; U: none; O: none | ManageAccount.Index; `PlotLine/Controllers/ManageAccountController.cs:47` |
### Archive Recovery
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `archive.organise` — Archive records without immediate permanent deletion | Keep inactive story records out of normal workspaces while retaining supported restoration. | implemented-usable; project | H: project; U: none; O: none | Archives.Index; `PlotLine/Controllers/ArchivesController.cs:17` |
| `archive.restore` — Restore an archived supported record | Bring a retained story record back into active use. | implemented-usable; account | H: archived-target; U: none; O: none | Archives.Index; `PlotLine/Controllers/ArchivesController.cs:26` |
| `archive.delete` — Permanently remove an explicitly selected archived record | Remove unwanted archived material with the existing dependency-aware deletion safeguards. | implemented-usable; account | H: owner, archived-target; U: none; O: none | Archives.Index; `PlotLine/Controllers/ArchivesController.cs:35` |
### Calendar
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `calendar.inspect` — Inspect placed scenes by story date | See which scenes happen on the same story day. | implemented-usable; project | H: project; U: time-placement; O: book | StoryCalendar.Index; `PlotLine/Controllers/StoryCalendarController.cs:13` |
| `calendar.day` — Inspect a day’s scenes and unplaced material | Review date-specific activity without hiding scenes whose time is unknown. | implemented-usable; project | H: project; U: time-placement; O: none | StoryCalendar.Index; `PlotLine/Controllers/StoryCalendarController.cs:34` |
### Chapter Structure
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `chapters.record` — Create or describe chapters | Organise story material into named ordered chapters. | implemented-usable; book | H: book; U: none; O: none | Chapters.Create; `PlotLine/Controllers/ChaptersController.cs:31` |
| `chapters.pov` — Assign chapter and inherited scene point of view | Make viewpoint assignments consistent while respecting author overrides. | implemented-usable; chapter | H: chapter; U: characters; O: intentions | Chapters.Details; `PlotLine/Controllers/ChaptersController.cs:65` |
| `chapters.inspect` — Inspect chapter goals, scenes and revision state | See what a chapter needs to achieve and how its scenes are progressing. | implemented-usable; chapter | H: chapter; U: scenes; O: none | Chapters.Details; `PlotLine/Controllers/ChaptersController.cs:11` |
### Characters
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `characters.record` — Record and develop character profiles | Keep names, aliases, role, description, age and character context in one place. | implemented-usable; project | H: project; U: none; O: none | Characters.Create; `PlotLine/Controllers/CharactersController.cs:49` |
| `characters.merge` — Merge duplicate character identities | Keep one character identity when imported or entered names refer to the same person. | implemented-usable; record | H: character, character-pair; U: none; O: none | Characters.Merge; `PlotLine/Controllers/CharactersController.cs:35` |
| `characters.naming` — Choose preferred character names and aliases | Use a consistent display name without losing recognised aliases. | implemented-usable; record | H: character; U: none; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:139` |
| `characters.images` — Add reference portraits and crop an avatar | Recognise and visualise a character through uploaded reference imagery. | implemented-usable; record | H: character, upload-file; U: none; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:233` |
| `characters.profile-review` — Inspect retained character intelligence and evidence | Compare saved character interpretation, age and evidence with recorded profile facts. | implemented-usable; record | H: character; U: none; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:29` |
| `characters.reanalyse` — Explicitly reanalyse a character | Refresh character interpretation from available saved manuscript evidence. | implemented-restricted; record | H: character, si-available; U: scene-source; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:156` |
| `characters.appearances` — Trace character appearances and attribute history | Check where a character appears and how recorded attributes change. | implemented-usable; record | H: character; U: scenes; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:29` |
| `names.find` — Find names using locale, era and usage evidence | Choose plausible names while seeing reference usage and names already used in the project. | implemented-usable; project | H: project; U: none; O: book | Names.Index; `PlotLine/Controllers/NamesController.cs:11` |
| `relationships.baseline` — Record starting character relationships | Establish how two characters relate before later scene changes. | implemented-usable; project | H: project, character-pair; U: none; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:284` |
| `relationships.family` — Record family and other typed connections | Keep parent, sibling and other family connections explicit rather than relying on memory. | implemented-usable; project | H: project, character-pair; U: none; O: none | Characters.Details; `PlotLine/Controllers/CharactersController.cs:284` |
| `characters.library` — Inspect and find the recorded cast | Find established characters and decide which profile needs attention. | implemented-usable; project | H: project; U: characters; O: none | Characters.Index; `PlotLine/Controllers/CharactersController.cs:11` |
### Collaboration
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `collaboration.invite` — Invite project collaborators | Share an existing project with an authorised collaborator. | implemented-usable; project | H: project, owner; U: none; O: none | ProjectCollaborators.Index; `PlotLine/Controllers/ProjectCollaboratorsController.cs:19` |
| `collaboration.manage` — Manage collaborator access | Review and revoke project collaboration access. | implemented-usable; project | H: project, owner; U: none; O: none | ProjectCollaborators.Index; `PlotLine/Controllers/ProjectCollaboratorsController.cs:39` |
### Context Intent
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `context.inspect` — Browse saved contextual story information | See relevant cast, places, assets, relationships and knowledge while writing. | implemented-usable; book | H: book; U: scene; O: floorplan, scene-map-links | Writing.Context; `PlotLine/Controllers/WritingController.cs:25` |
| `intent.inspect` — Inspect chapter goals and scene intentions in a dedicated window | Keep intended purpose, outcomes, checklist and practical reminders visible. | implemented-usable; book | H: book; U: scene; O: intentions | Writing.Intent; `PlotLine/Controllers/WritingController.cs:82` |
| `context.follow` — Follow a verified Word context or pin a saved reference | Keep live Word context separate from an explicitly pinned saved scene. | implemented-usable; book | H: book; U: scene; O: native-session | Writing.Context; `PlotLine/Controllers/WritingController.cs:140` |
| `intent.assess` — Explicitly assess saved prose against author intentions | Compare available saved manuscript evidence with explicit intentions without automatically completing them. | implemented-restricted; scene | H: scene, scene-source, intentions, si-available; U: none; O: none | Writing.Intent; `PlotLine/Controllers/IntentAssessmentController.cs:13` |
| `intent.evidence-decisions` — Review saved intention evidence and author decisions | Keep the author’s judgement separate from automated intention evidence. | implemented-usable; scene | H: scene, intent-assessment; U: intentions; O: none | Writing.Intent; `PlotLine/Controllers/IntentAssessmentController.cs:14` |
### Continuity
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `continuity.validate` — Run recorded-data continuity checks | Find consistency problems in recorded story state at project, book or scene scope. | implemented-usable; project | H: project; U: scenes; O: none | Warnings.Index; `PlotLine/Controllers/WarningsController.cs:46` |
| `continuity.review` — Review warnings and record intentional exceptions | Distinguish issues needing attention from deliberate story choices. | implemented-usable; project | H: project; U: scenes; O: none | Warnings.Index; `PlotLine/Controllers/WarningsController.cs:27` |
| `continuity.decide` — Dismiss, mark intentional or restore a warning | Keep continuity review decisions explicit and reversible. | implemented-usable; project | H: project; U: none; O: none | Warnings.Index; `PlotLine/Controllers/WarningsController.cs:101` |
| `continuity.explore` — Compare entity state through story order | Trace where characters and assets are and how knowledge or relationships change. | implemented-usable; project | H: project; U: scenes; O: character, asset, location | ContinuityExplorer.Index; `PlotLine/Controllers/ContinuityExplorerController.cs:11` |
### Export Recovery
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `exports.bible` — Export a story bible | Share recorded story reference outside the application. | implemented-usable; project | H: project; U: none; O: none | StoryBible.Index; `PlotLine/Controllers/ExportsController.cs:10` |
| `exports.timeline` — Export a narrative timeline | Review or share recorded narrative order in a portable brief. | implemented-usable; project | H: project; U: none; O: none | StoryBible.Index; `PlotLine/Controllers/ExportsController.cs:13` |
| `exports.character` — Export a character reference | Take a focused character reference into another writing workflow. | implemented-usable; record | H: character; U: none; O: none | Characters.Details; `PlotLine/Controllers/ExportsController.cs:16` |
| `exports.scene` — Export a scene brief | Take recorded scene intentions and context into drafting or review. | implemented-usable; record | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ExportsController.cs:19` |
| `exports.chapter` — Export a chapter brief | Review chapter goals and scene structure outside PlotDirector. | implemented-usable; record | H: chapter; U: none; O: none | Chapters.Details; `PlotLine/Controllers/ExportsController.cs:22` |
| `exports.session` — Export a writing-session brief | Take a scene-focused writing reference into the next writing session. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ExportsController.cs:25` |
| `exports.research` — Export a research/reference pack | Collect established research and story reference for use elsewhere. | implemented-usable; project | H: project; U: none; O: none | StoryBible.Index; `PlotLine/Controllers/ExportsController.cs:28` |
| `exports.search` — Search and export matching story references | Find and collect relevant recorded story information. | implemented-usable; project | H: project; U: none; O: none | StoryBible.Index; `PlotLine/Controllers/ExportsController.cs:31` |
| `recovery.project-export` — Export a full project backup package | Keep a portable project snapshot and supported files for recovery. | implemented-usable; project | H: project, owner; U: none; O: none | Projects.Details; `PlotLine/Controllers/ExportsController.cs:34` |
| `recovery.book-backup` — Review and download selected-book recovery packages | Back up selected books with their supported dependency graph and review what the package includes. | implemented-usable; project | H: project, owner; U: book; O: none | BookRecovery.Backup; `PlotLine/Controllers/BookRecoveryController.cs:14` |
| `recovery.book-restore` — Preview and confirm a selected-book recovery | Restore eligible book material with explicit mappings and capacity checks. | implemented-usable; account | H: backup-package; U: none; O: none | BookRecovery.Restore; `PlotLine/Controllers/BookRecoveryController.cs:19` |
| `recovery.legacy-import` — Validate or import the legacy full project JSON format | Use the retained full-project import validation and dry-run path for compatible packages. | legacy-accessible; account | H: backup-package; U: none; O: none | Imports.Index; `PlotLine/Controllers/ImportsController.cs:29` |
| `recovery.restore-point` — Create a project restore point | Keep a supported project checkpoint before a risky change. | implemented-usable; project | H: project, owner; U: none; O: none | ProjectRestorePoints.Index; `PlotLine/Controllers/ProjectRestorePointsController.cs:21` |
| `recovery.rewind` — Preview/download or restore a project checkpoint | Return supported project records to a chosen checkpoint after explicit confirmation. | implemented-usable; project | H: project, owner, restore-point; U: none; O: none | ProjectRestorePoints.Index; `PlotLine/Controllers/ProjectRestorePointsController.cs:68` |
### Floorplans Design
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `floorplans.create` — Create a building or setting floor plan | Make the physical arrangement of a scene setting visible. | implemented-usable; project | H: project; U: none; O: none | FloorPlans.Index; `PlotLine/Controllers/FloorPlansController.cs:25` |
| `floorplans.floors` — Add levels and configure reference floors or grids | Separate levels while keeping a useful grid and spatial reference. | implemented-usable; project | H: project, floorplan; U: none; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:97` |
| `floorplans.rooms` — Create or place room blocks and resize the layout | Explore how rooms and spaces connect through editable blocks. | implemented-usable; project | H: project, floor, room-choice; U: none; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:220` |
| `floorplans.link-room` — Link a plan block to a canonical room location | Connect a drawn room to story records so other workspaces can refer to it. | implemented-usable; project | H: project, floorplan; U: floor; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:286` |
| `floorplans.transitions` — Represent doors, entrances and secret passages | Make permitted room-to-room movement and entrances explicit. | implemented-usable; project | H: project, floor, transition-endpoints; U: none; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:183` |
| `floorplans.stairs` — Connect floors with stairs or ladders | Check movement between levels and reciprocal landing connections. | implemented-usable; project | H: project, floor, transition-endpoints; U: none; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:183` |
| `floorplans.background` — Align a reference image under a floor grid | Use an existing plan image without giving up editable rooms and transitions. | implemented-usable; project | H: project, floor, upload-file; U: none; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:119` |
### Floorplans Occupancy
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `floorplans.scene-occupancy` — Inspect saved scene occupancy on a floor plan | See saved character and asset occupancy plus missing-placement warnings. | implemented-usable; project | H: project, floorplan; U: floor-occupancy; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:17` |
| `floorplans.position-occupants` — Author precise scene occupant placements | Potentially maintain explicit character/asset room positions for scene staging. | partially-implemented; project | H: project, floorplan, scene; U: floor-occupancy; O: none | FloorPlans.Edit; `PlotLine/Controllers/FloorPlansController.cs:17` |
### Geography
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `geography.lookup` — Request eligible real-world geographical lookups | Find candidate real-world coordinates using explicit geographical context. | implemented-restricted; project | H: project, locations, geographic-hierarchy; U: none; O: none | Locations.Index; `PlotLine/Controllers/GeographyController.cs:73` |
| `geography.confirm` — Confirm or exclude geographical candidates | Resolve ambiguity before treating a place as geographically positioned. | implemented-usable; project | H: project, location, geographic-candidate; U: geographic-hierarchy; O: none | Locations.Index; `PlotLine/Controllers/GeographyController.cs:42` |
### Guided Investigation
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `investigations.run` — Run a private Guided Investigation | Explore competing explanations for a concern before choosing an authenticated tool. | implemented-restricted; book | H: book, investigation-preview, investigation-catalogue; U: none; O: none | WriterInvestigations.Index; `PlotLine/Controllers/WriterInvestigationsController.cs:23` |
| `investigations.resume` — Resume or revise a saved investigation | Continue later or change an answer while retaining its original catalogue and history. | implemented-restricted; book | H: book, investigation, investigation-preview; U: none; O: none | WriterInvestigations.Index; `PlotLine/Controllers/WriterInvestigationsController.cs:25` |
| `investigations.open` — Open an eligible authenticated recommendation | Take an explained next step in the correct project/book while retaining the investigation. | implemented-restricted; book | H: book, investigation, investigation-preview; U: none; O: none | WriterInvestigations.Index; `PlotLine/Controllers/WriterInvestigationsController.cs:36` |
| `investigations.simulate` — Inspect a private investigation and replay evidence | Diagnose question selection, redundancy, conflicts and completion gaps during catalogue development. | implemented-restricted; book | H: book, investigation, investigation-preview; U: none; O: none | WriterInvestigations.Admin; `PlotLine/Controllers/WriterInvestigationsController.cs:50` |
| `investigations.catalogue` — Validate, version, import or export investigation catalogues | Develop and inspect immutable structured question catalogues without changing the engine. | implemented-restricted; account | H: investigation-preview; U: none; O: none | WriterInvestigations.Admin; `PlotLine/Controllers/WriterInvestigationsController.cs:46` |
| `future.dependency-graph` — Shared typed Feature Dependency Graph | Proposed shared capability/dependency/readiness support for investigation and preparation. | planned-only; book | H: none; U: none; O: none | No runtime entry; `Docs/Writer/Investigations/Architecture.md:33` |
| `future.readiness` — Book-specific Progressive Readiness | Proposed shared capability/dependency/readiness support for investigation and preparation. | planned-only; book | H: none; U: none; O: none | No runtime entry; `Docs/Writer/Investigations/Architecture.md:33` |
| `future.preparation` — Dynamic preparation journeys | Proposed shared capability/dependency/readiness support for investigation and preparation. | planned-only; book | H: none; U: none; O: none | No runtime entry; `Docs/Writer/Investigations/Architecture.md:33` |
| `future.family-tree` — Feature Family Tree | Proposed shared capability/dependency/readiness support for investigation and preparation. | planned-only; book | H: none; U: none; O: none | No runtime entry; `Docs/Writer/Investigations/Architecture.md:33` |
| `writer.process-insights` — Reflective writing-process and working-style insights | Planned interpretation of writing process, distinct from currently retained activity counts. | planned-only; book | H: none; U: none; O: none | No runtime entry; `PlotLine/Views/Writer/_WriterReflect.cshtml:8` |
### Help Support
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `help.reference` — Search and read contextual Markdown Help | Learn a task in context through tooltip, popup, drawer or a full article. | implemented-usable; global | H: none; U: none; O: none | Help.Index; `PlotLine/Controllers/HelpController.cs:14` |
| `support.requests` — Submit a feature request and discuss it | Describe missing support and exchange follow-up messages without changing story records. | implemented-usable; account | H: none; U: none; O: none | FeatureRequests.Index; `PlotLine/Controllers/FeatureRequestsController.cs:23` |
| `support.roadmap` — Inspect the feature-request roadmap | See how requested improvements are progressing. | implemented-usable; account | H: none; U: none; O: none | FeatureRequests.Index; `PlotLine/Controllers/FeatureRequestsController.cs:29` |
### Knowledge Attributes
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `knowledge.record` — Record what a character knows in a scene | Track knowledge, belief or ignorance at the point where it changes. | implemented-usable; scene | H: scene, character; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1266` |
| `attributes.events` — Record changes in character attributes | Keep changes of age, condition or other supported attributes in story order. | implemented-usable; scene | H: scene, character; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1182` |
| `knowledge.timeline` — Inspect a character’s knowledge timeline | Spot knowledge acquired too early, forgotten or contradicted later. | implemented-usable; record | H: character; U: knowledge-events; O: none | Dynamics.Knowledge; `PlotLine/Controllers/DynamicsController.cs:28` |
| `attributes.arc` — Inspect a character’s development arc | Review how recorded attributes and participation develop across scenes. | implemented-usable; record | H: character; U: character-history; O: none | Dynamics.Character; `PlotLine/Controllers/DynamicsController.cs:16` |
### Locations
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `locations.record` — Record and describe story locations | Keep settings, aliases, types and useful scene locations consistent. | implemented-usable; project | H: project; U: none; O: none | Locations.Create; `PlotLine/Controllers/LocationsController.cs:96` |
| `locations.hierarchy` — Organise nested locations | Represent rooms inside buildings, settlements inside regions and other containment. | implemented-usable; project | H: project, location; U: none; O: locations | Locations.Index; `PlotLine/Controllers/LocationsController.cs:67` |
| `locations.relations` — Record spatial relationships between locations | Describe how places connect beyond a simple parent-child hierarchy. | implemented-usable; project | H: project, location-pair; U: none; O: none | Locations.Details; `PlotLine/Controllers/LocationsController.cs:155` |
| `locations.used-here` — Inspect where a location is used in the story | Find scene and story references to a place before changing it. | implemented-usable; record | H: location; U: scenes; O: none | Locations.Details; `PlotLine/Controllers/LocationsController.cs:29` |
| `locations.merge` — Merge duplicate location records | Unify aliases and duplicate settings while preserving their uses. | implemented-usable; record | H: location, location-merge-target; U: none; O: none | Locations.Merge; `PlotLine/Controllers/LocationsController.cs:35` |
| `locations.naming` — Maintain preferred location names and aliases | Use one display name while retaining alternate recognised place names. | implemented-usable; record | H: location; U: none; O: none | Locations.Details; `PlotLine/Controllers/LocationsController.cs:129` |
### Manuscript Import
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `imports.start` — Start a manual or manuscript-led book setup | Choose how to establish a project/book without compulsory AI enrichment. | implemented-usable; account | H: none; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:31` |
| `imports.core` — Capture, review and import manuscript structure | Establish canonical book, chapters, scenes and saved scene source from an explicitly reviewed import. | implemented-restricted; account | H: import-preview; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:46` |
| `imports.character-map` — Review character identities during core import | Reuse or correct cast identities before creating duplicate characters. | implemented-usable; account | H: import-preview; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:61` |
| `imports.basic-locations` — Review basic locations discovered during import | Keep obvious saved settings while choosing which imported locations should be established. | implemented-usable; account | H: import-preview; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:122` |
| `imports.native-preview` — Preview and confirm a native manuscript import | Review the supported native capture/import path before canonical records are changed. | implemented-restricted; native | H: native-session; U: none; O: none | NativeWorkspace.Workspace; `PlotLine/Controllers/NativeCompanionController.cs:46` |
| `imports.begin-capture` — Capture a manuscript for a new import preview | Bring an explicitly selected supported Word manuscript into the owned import review workflow. | implemented-restricted; account | H: capture-session; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:39` |
### Manuscript Review
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `writer.review` — Read accepted writing with intentions and decisions | Read, notice, decide and return to the relevant writing without changing another work target. | implemented-usable; book | H: book; U: accepted-source; O: intentions | Writer.Index; `PlotLine/Controllers/WriterController.cs:23` |
| `reader.continuous` — Read the accepted canonical manuscript continuously | Read selectable accepted chapter text with preserved paragraph identity. | implemented-usable; book | H: book; U: accepted-source; O: none | ManuscriptReader.Index; `PlotLine/Controllers/ManuscriptReaderController.cs:16` |
| `reader.focus` — Use Focused Reading and canonical chapter navigation | Concentrate on accepted text without losing chapter navigation or selection. | implemented-usable; book | H: book; U: accepted-source; O: none | ManuscriptReader.Index; `PlotLine/Controllers/ManuscriptReaderController.cs:16` |
| `reader.updates` — Control accepted-content refresh while reading | Defer replacement during selection, pause or editing and retain surviving reading anchors. | implemented-usable; book | H: book; U: accepted-source; O: none | ManuscriptReader.Index; `PlotLine/Controllers/ManuscriptReaderController.cs:39` |
| `review.observations` — Record chapter or passage review observations | Capture what you notice and an intended change without rewriting the manuscript. | implemented-usable; book | H: book, chapter; U: none; O: accepted-source | Writer.Review; `PlotLine/Controllers/WriterReviewController.cs:13` |
| `review.decisions` — Revise, resolve or reopen an observation | Manage explicit review decisions independently from canonical scene revision status. | implemented-usable; book | H: book, observation; U: none; O: none | Writer.Review; `PlotLine/Controllers/WriterReviewController.cs:13` |
| `review.revisit` — Revisit an original manuscript reference | Return to the same paragraph identity and recognise changed or missing accepted context. | implemented-usable; book | H: book, observation; U: none; O: accepted-source | Writer.Review; `PlotLine/Controllers/WriterReviewController.cs:11` |
### Manuscript Sync
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `sync.accepted` — Accept current Word paragraph snapshots | Make saved manuscript paragraphs available to Reader and canonical writing evidence. | implemented-restricted; book | H: book, linked-manuscript, native-session; U: none; O: none | ParagraphManuscript.Index; `PlotLine/Controllers/ParagraphManuscriptController.cs:21` |
| `sync.preferences` — Control paragraph synchronisation mode | Choose explicit supported automatic/manual tracking preferences without rewriting Word prose. | implemented-restricted; book | H: book; U: none; O: none | ParagraphManuscript.Index; `PlotLine/Controllers/ParagraphManuscriptController.cs:19` |
| `sync.chapter-check` — Validate or repair current chapter checkpoints | Re-establish current chapter identity and mapping proof while retaining accepted mappings. | implemented-restricted; native | H: book, native-session; U: none; O: none | ParagraphManuscript.Index; `PlotLine/Controllers/NativeChapterSyncController.cs:15` |
| `sync.repair` — Review a bounded chapter reconciliation or repair | Recover synchronisation after structural uncertainty without resetting the manuscript. | implemented-restricted; book | H: book, native-session; U: none; O: accepted-source | ParagraphManuscript.Index; `PlotLine/Controllers/ParagraphManuscriptController.cs:27` |
### Maps Authoring
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `maps.create` — Create maps and editable starter layouts | Sketch a story world without first cataloguing all its places. | implemented-usable; project | H: project; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:35` |
| `maps.pieces` — Place, edit and label map pieces | Build a visual setting from provisional markers, paths and symbols. | implemented-usable; project | H: project, map; U: none; O: locations | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.areas` — Draw and reshape mapped areas | Represent terrain, regions and bounded spaces with editable geometry. | implemented-usable; project | H: project, map; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.shared-boundaries` — Join and maintain shared area boundaries | Keep neighbouring areas consistent when their shared border changes. | implemented-usable; project | H: project, map, map-boundaries; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.routes` — Draw paths and relate route endpoints | Plan visible routes and connections between places. | implemented-usable; project | H: project, map; U: map-features; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.link-locations` — Connect a map piece to a story location or floor plan | Make a sketch participate in canonical story context rather than remain a picture only. | implemented-usable; project | H: project, map; U: locations; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.hierarchy` — Create nested maps and navigate map levels | Move from a world or region map into a more detailed child map. | implemented-usable; project | H: project, map; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:35` |
| `maps.relational-arrangement` — Arrange map pieces from directional relationships | Preview a useful layout from recorded directions and relative distance. | implemented-usable; project | H: project, map, map-features; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.geographic-positioning` — Position linked pieces geographically | Use confirmed real-world positions to inform an explicitly applied map arrangement. | implemented-restricted; project | H: project, map, map-geographic-links; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:43` |
| `maps.reference-image` — Use a reference image beneath the map | Work over a familiar visual reference while keeping editable map records. | implemented-usable; project | H: project, upload-file; U: map; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:92` |
### Maps Story
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `maps.story-scenes` — View where scenes occur on a map | Locate story scenes and identify unmapped or missing settings. | implemented-usable; project | H: project, map; U: scene-map-links; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:65` |
| `maps.story-characters` — Compare characters’ movements across mapped scenes | See where characters appear and compare their journeys without assuming mentions are physical presence. | implemented-usable; project | H: project, map; U: mapped-appearances; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:65` |
| `maps.story-plot-time` — Explore mapped story by chapter, plot line, time or alternate order | Compare geography with narrative structure and placed story time. | implemented-usable; project | H: project, map; U: scene-map-links; O: thread-events, time-placement, scenario | Maps.Index; `PlotLine/Controllers/MapsController.cs:65` |
| `maps.travel-observations` — Inspect and annotate character travel legs | Notice travel assumptions and record method or typical duration for an actual projected journey. | implemented-usable; project | H: project, map, journey-legs; U: none; O: none | Maps.Index; `PlotLine/Controllers/MapsController.cs:72` |
### Metrics
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `metrics.configure` — Configure project metrics and default ranges | Choose what qualities to track and maintain consistent scoring ranges. | implemented-usable; project | H: project; U: none; O: none | ProjectMetrics.Index; `PlotLine/Controllers/ProjectMetricsController.cs:25` |
| `metrics.defaults` — Add missing preset metric definitions | Start tracking metrics without inventing an entire set from scratch. | implemented-usable; project | H: project; U: none; O: none | ProjectMetrics.Index; `PlotLine/Controllers/ProjectMetricsController.cs:51` |
| `scenes.metrics` — Record scene metric values | Capture a scene’s recorded tension, emotion or other configured qualities. | implemented-usable; scene | H: scene, metric-types; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/SceneMetricsController.cs:13` |
### Platform Pwa
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `platform.theme` — Choose an application reading theme | Make reference and writing workspaces comfortable to read. | implemented-usable; account | H: none; U: none; O: none | ManageAccount.Index; `PlotLine/Controllers/AppearanceController.cs:11` |
| `platform.ribbon` — Personalise ribbon and toolbar visibility | Keep frequently used tools accessible without learning every menu. | implemented-usable; account | H: none; U: none; O: none | Writer.Index; `PlotLine/Controllers/ToolbarController.cs:16` |
| `platform.pwa` — Install or use the responsive standalone PWA | Use PlotDirector as a responsive standalone application on supported devices. | implemented-usable; account | H: none; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:17` |
| `platform.panels` — Resize, collapse or overlay Writer companions | Keep the current task readable across screen sizes without changing story context. | implemented-usable; book | H: book; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:19` |
### Plot Lines
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `plotlines.record` — Define plot lines and subplots | Keep major story strands and their hierarchy visible. | implemented-usable; project | H: project; U: none; O: book | PlotLines.Create; `PlotLine/Controllers/PlotLinesController.cs:31` |
| `plotlines.workspace` — Inspect plot contributions across scenes | See how story events support each strand, including scenes without attribution. | implemented-usable; project | H: project; U: thread-events; O: book | PlotLineWorkspace.Index; `PlotLine/Controllers/PlotLineWorkspaceController.cs:10` |
| `plotlines.unattributed` — Find scenes without plot-line attribution | Notice existing scenes whose narrative contribution has not been recorded. | implemented-usable; project | H: project; U: scenes; O: none | PlotLineWorkspace.Index; `PlotLine/Controllers/PlotLineWorkspaceController.cs:22` |
| `plotlines.health` — Inspect the health and gaps of a plot line | Review recorded setup, development and payoff continuity for one strand. | implemented-usable; project | H: project, plotline; U: thread-events; O: none | PlotLineWorkspace.Index; `PlotLine/Controllers/PlotLineWorkspaceController.cs:35` |
| `plotlines.inspector` — Inspect a scene’s plot contribution and saved manuscript excerpt | Connect an event’s recorded role with available accepted prose while staying in the plot workspace. | implemented-usable; project | H: project, scene; U: none; O: scene-source | PlotLineWorkspace.Index; `PlotLine/Controllers/PlotLineWorkspaceController.cs:28` |
### Problem Solver
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `solver.investigate` — Use the public deterministic Writing Problem Solver | Work through a public writing concern using authored questions and editorial solutions. | implemented-usable; global | H: none; U: none; O: none | WritingProblems.Index; `PlotLine/Controllers/WritingProblemsController.cs:26` |
| `solver.browse` — Browse authored problem solutions and feature guidance | Find practical authored advice or a useful tool opportunity without completing a questionnaire. | implemented-usable; global | H: none; U: none; O: none | WritingProblems.Index; `PlotLine/Controllers/WritingProblemsController.cs:70` |
### Project Library
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `projects.create` — Create a story project | Keep a story universe and its books together. | implemented-usable; account | H: none; U: none; O: none | Projects.Index; `PlotLine/Controllers/ProjectsController.cs:19` |
| `projects.manage` — Manage project settings and defaults | Maintain project identity and genre-based defaults. | implemented-usable; project | H: project; U: none; O: none | Projects.Index; `PlotLine/Controllers/ProjectsController.cs:35` |
| `projects.overview` — Inspect project and book overview | See books, story records and next workspace choices together. | implemented-usable; project | H: project; U: none; O: none | Projects.Index; `PlotLine/Controllers/ProjectsController.cs:13` |
| `projects.activity` — Review project change activity | Find which recorded story changes were made recently. | implemented-usable; project | H: project; U: none; O: none | Projects.Index; `PlotLine/Controllers/ProjectsController.cs:21` |
| `books.create` — Add and describe a book | Give a book its own title, target, era and manuscript context. | implemented-usable; project | H: project; U: none; O: none | Books.Create; `PlotLine/Controllers/BooksController.cs:32` |
| `books.manage` — Maintain book metadata and cover | Keep book identity, status, target words, era and presentation up to date. | implemented-usable; book | H: book; U: none; O: none | Books.Details; `PlotLine/Controllers/BooksController.cs:24` |
| `books.overview` — Inspect chapters and book progress | See a book’s structure and existing work before choosing an action. | implemented-usable; book | H: book; U: scenes; O: none | Books.Details; `PlotLine/Controllers/BooksController.cs:12` |
| `books.unlink` — Unlink a manuscript safely | Correct the association between a book and the wrong manuscript. | implemented-usable; book | H: book, linked-manuscript; U: none; O: none | Books.Details; `PlotLine/Controllers/BooksController.cs:111` |
| `projects.delete` — Permanently delete an archived project | Remove an intentionally retired project after its required confirmation. | implemented-usable; account | H: owner, archived-target; U: none; O: none | Projects.Index; `PlotLine/Controllers/ProjectsController.cs:85` |
| `books.cover` — Upload a book cover reference | Recognise and present a book through its own uploaded cover image. | implemented-usable; book | H: book, upload-file; U: none; O: none | Books.Edit; `PlotLine/Controllers/BooksController.cs:32` |
### Relationships
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `relationships.network` — Explore the character relationship network | See connections, isolation and focal relationships across the cast. | implemented-usable; project | H: project; U: character-pair, relationship-records; O: relationship-history, scene | RelationshipMap.Index; `PlotLine/Controllers/RelationshipMapController.cs:13` |
| `relationships.at-point` — Compare relationships at a story position | Inspect what relationship states hold at a selected scene rather than mixing all moments together. | implemented-usable; project | H: project; U: relationship-records; O: relationship-history, scene | RelationshipMap.Index; `PlotLine/Controllers/RelationshipMapController.cs:27` |
| `relationships.workspace-edit` — Edit a relationship from its visual workspace | Adjust a starting relationship or record a scene-specific change without leaving the map. | implemented-usable; project | H: project, character-pair; U: none; O: scene | RelationshipMap.Index; `PlotLine/Controllers/RelationshipMapController.cs:35` |
| `relationships.scene-events` — Record relationship development in a scene | Track changes of relationship state, intensity and mutual awareness over the story. | implemented-usable; scene | H: scene, character-pair; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1305` |
| `relationships.evolution` — Inspect a relationship’s evolution | Understand the sequence of recorded changes between two characters. | implemented-usable; record | H: relationship; U: relationship-history; O: none | Dynamics.Relationship; `PlotLine/Controllers/DynamicsController.cs:22` |
### Restricted Administration
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `admin.intelligence-tests` — Run internal Story Intelligence test and review tools | Inspect source/analysis runs and explicit test/import-commit workflows for authorised development support. | implemented-restricted; account | H: none; U: none; O: none | Admin.Index; `PlotLine/Controllers/AdminController.cs:372` |
| `admin.illustration-library` — Curate the internal illustration reference library | Review, approve or regenerate library illustrations used by supported reference surfaces. | implemented-restricted; account | H: none; U: none; O: none | Admin.Index; `PlotLine/Controllers/AdminController.cs:257` |
| `admin.solver-catalogue` — Validate and publish public Solver editorial versions | Maintain the existing public Solver through its separate protected structured editorial workflow. | implemented-restricted; account | H: none; U: none; O: none | WritingSolverAdmin.Index; `PlotLine/Controllers/AdminController.cs:44` |
| `admin.name-reference` — Validate or import the reference-name package | Maintain the installed name-reference data used by name discovery. | implemented-restricted; account | H: none; U: none; O: none | Admin.Index; `PlotLine/Controllers/AdminController.cs:244` |
### Scenarios
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `scenarios.create` — Create a reversible alternate scene order | Try a different narrative order without immediately changing the canonical order. | implemented-usable; project | H: project; U: scenes; O: book | Scenarios.Index; `PlotLine/Controllers/ScenariosController.cs:17` |
| `scenarios.reorder` — Reorder scenes in a saved scenario | Experiment with structure while preserving the main story order. | implemented-usable; record | H: scenario, scene; U: none; O: none | Scenarios.Timeline; `PlotLine/Controllers/ScenariosController.cs:47` |
| `scenarios.validate` — Check and compare an alternate scene order | Review consequences and continuity warnings before changing the main story. | implemented-usable; record | H: scenario; U: scenes; O: none | Scenarios.Compare; `PlotLine/Controllers/ScenariosController.cs:55` |
| `scenarios.apply` — Apply an approved scenario to canonical order | Adopt an explicitly confirmed structural experiment. | implemented-usable; record | H: scenario; U: none; O: none | Scenarios.Compare; `PlotLine/Controllers/ScenariosController.cs:70` |
### Scene Cast
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `scenes.cast` — Record character participation, roles and viewpoint | Distinguish present characters, mentions, viewpoint and scene-specific state. | implemented-usable; scene | H: scene, characters; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:364` |
| `scenes.character-state` — Record appearance, outfit, physical and emotional state | Maintain scene-specific physical and emotional continuity instead of overwriting a character’s general profile. | implemented-usable; scene | H: scene, character; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:958` |
| `scenes.locations` — Assign scene and participant locations | Keep scene setting and local movement explicit for geography and continuity. | implemented-usable; scene | H: scene, locations; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:473` |
### Scene Intentions
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `scenes.record` — Create and describe a scene | Break a chapter into ordered scenes without needing all supporting metadata first. | implemented-usable; chapter | H: chapter; U: none; O: none | Scenes.Create; `PlotLine/Controllers/ScenesController.cs:39` |
| `scenes.intentions` — Record scene purpose and intended change | Clarify why a scene exists and what should change by its end. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:294` |
| `scenes.time` — Record scene time, duration and uncertainty | Keep absolute, relative and uncertain story time distinguishable. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:237` |
| `scenes.revision` — Set canonical scene revision status | Keep drafting and revision progress in an explicit authoritative status. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:237` |
| `scenes.notes` — Keep scene notes and reminders | Capture open issues and things to remember at the scene where they matter. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:597` |
| `scenes.checklist` — Maintain explicit scene checklists | Track concrete requirements and author decisions without conflating them with manuscript evidence. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:689` |
| `scenes.workflow` — Set writing priority, blockers and workflow notes | Bring practical blockers and next writing actions into the work queue. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:756` |
| `scenes.attachments.links` — Keep reference links and attachment notes | Keep useful references beside the scene without requiring a local file upload. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1409` |
| `scenes.attachments.files` — Upload a scene reference attachment | Keep a local reference document or image with the relevant scene. | implemented-usable; scene | H: scene, upload-file; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1409` |
| `scenes.dependencies` — Record scene ordering dependencies | Make story-order constraints explicit before moving scenes. | implemented-usable; scene | H: scene, scene-pair; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1124` |
| `scenes.move` — Preview and confirm a scene move between chapters | Restructure scene order while reviewing effects before applying a move. | implemented-usable; scene | H: scene, chapter; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1150` |
| `scenes.renumber` — Renumber chapter scene order | Restore a clear scene numbering sequence after structural work. | implemented-usable; chapter | H: chapter; U: scenes; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:1172` |
| `scenes.suggestions` — Review scene character, asset and location suggestions | Accept or reject proposed links without treating suggestions as established story facts. | implemented-usable; scene | H: scene; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:155` |
### Story Assets
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `scenes.assets` — Record assets present in a scene | Know which important objects or story assets appear in each scene. | implemented-usable; scene | H: scene, asset; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:517` |
| `assets.record` — Record important story assets | Keep important objects, documents or other story assets identifiable and consistent. | implemented-usable; project | H: project; U: none; O: none | StoryAssets.Create; `PlotLine/Controllers/StoryAssetsController.cs:67` |
| `assets.state` — Inspect an asset’s state and scene history | Find where an object is, what state it is in and which scenes changed it. | implemented-usable; record | H: asset; U: scenes; O: none | StoryAssets.Details; `PlotLine/Controllers/StoryAssetsController.cs:29` |
| `assets.events` — Record asset state changes in a scene | Track what happens to an important object as the story advances. | implemented-usable; scene | H: scene, asset; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:894` |
| `assets.custody` — Record who has or transfers an asset | Avoid losing track of ownership and possession through the story. | implemented-usable; scene | H: scene, asset, characters; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:910` |
| `assets.location` — Record asset locations by scene | Keep physical asset location separate from ownership or abstract state. | implemented-usable; scene | H: scene, asset, location; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:918` |
| `assets.dependencies` — Describe asset state dependencies | Make constraints between objects and their required or blocked states explicit. | implemented-usable; project | H: project, asset-pair; U: none; O: none | StoryAssets.Details; `PlotLine/Controllers/StoryAssetsController.cs:106` |
| `assets.merge` — Merge duplicate asset identities | Unify duplicate objects and their recorded aliases/history. | implemented-usable; record | H: asset, asset-merge-target; U: none; O: none | StoryAssets.Merge; `PlotLine/Controllers/StoryAssetsController.cs:35` |
### Story Bible
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `bible.reference` — Browse the story bible and linked records | Find character, setting, object and structural reference in one place. | implemented-usable; project | H: project; U: scenes; O: characters, locations | StoryBible.Index; `PlotLine/Controllers/StoryBibleController.cs:10` |
| `bible.attention` — Find recorded story items needing attention | Discover incomplete or inconsistent recorded work from the reference overview. | implemented-usable; project | H: project; U: scenes; O: none | StoryBible.Index; `PlotLine/Controllers/StoryBibleController.cs:10` |
| `bible.search` — Search recorded story reference | Find relevant story information by words instead of remembering which screen holds it. | implemented-usable; project | H: project; U: none; O: none | StoryBible.Index; `PlotLine/Controllers/StoryBibleController.cs:10` |
### Story Dynamics
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `dynamics.overview` — Review story dynamics across recorded entities | Explore character, relationship and knowledge change from a common overview. | implemented-usable; project | H: project; U: scenes; O: none | Dynamics.Story; `PlotLine/Controllers/DynamicsController.cs:10` |
### Story Health
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `health.metric-shape` — Compare scene metric shapes | Compare recorded tension, emotion or other metric patterns across scenes. | implemented-usable; project | H: project; U: metric-values; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.pacing` — Inspect structural pacing indicators | Find unevenness using recorded scene length and structural data, not an unrequested manuscript diagnosis. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.revision` — Review revision status distribution | See where recorded revision work is concentrated or unfinished. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.purpose` — Inspect scene purpose balance | Review the distribution of recorded scene purposes. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.threads` — Inspect plot and thread health summaries | Locate gaps and unresolved recorded narrative strands. | implemented-usable; project | H: project; U: thread-events; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.assets` — Inspect story asset continuity summaries | Spot recorded object-state and custody issues. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.hotspots` — Inspect warning hotspots | Prioritise structural locations with retained continuity warnings. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.pov` — Inspect viewpoint distribution | See how recorded scene viewpoints are distributed. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.cast` — Inspect character appearance distribution | See which recorded characters appear across the selected story range. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
| `health.locations` — Inspect location usage distribution | See which recorded settings dominate or rarely appear. | implemented-usable; project | H: project; U: scenes; O: none | Analytics.Index; `PlotLine/Controllers/AnalyticsController.cs:10` |
### Story Intelligence
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `intelligence.consent` — Choose optional Story Intelligence context and consent | Decide whether to use optional analysis and supply the context it needs. | implemented-usable; account | H: book; U: none; O: none | Onboarding.StoryIntelligence; `PlotLine/Controllers/OnboardingController.cs:177` |
| `intelligence.plot-context` — Supply author plot context or narrative seed | Give narrative analysis an explicit author view without treating it as extracted manuscript fact. | implemented-usable; account | H: book; U: none; O: none | Onboarding.Index; `PlotLine/Controllers/OnboardingController.cs:235` |
| `intelligence.analyse` — Run optional source-backed scene Story Intelligence | Prepare retained scene analysis and persisted review candidates from accepted story sources. | implemented-restricted; account | H: book, book-scene-sources, si-available; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:299` |
| `intelligence.progress` — Inspect, cancel or retry analysis progress | Understand retained analysis progress and recover eligible failed work. | implemented-restricted; account | H: book; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:329` |
| `intelligence.review-centre` — Inspect persisted analysis review readiness | See which review modules are ready and where explicit decisions are still needed. | implemented-usable; account | H: book; U: si-scenes-complete; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:362` |
| `intelligence.characters` — Resolve extracted character identities | Turn reviewed, source-backed characters candidates into explicit canonical records. | implemented-usable; account | H: book, si-scenes-complete, si-candidates; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:394` |
| `intelligence.locations` — Review extracted locations and their hierarchy | Turn reviewed, source-backed locations candidates into explicit canonical records. | implemented-usable; account | H: book, si-scenes-complete, si-candidates, si-character-gate; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:416` |
| `intelligence.assets` — Review extracted story assets | Turn reviewed, source-backed assets candidates into explicit canonical records. | implemented-usable; account | H: book, si-scenes-complete, si-candidates, si-character-gate; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:440` |
| `intelligence.relationships` — Review extracted relationship developments | Turn reviewed, source-backed relationships candidates into explicit canonical records. | implemented-usable; account | H: book, si-scenes-complete, si-candidates, si-character-gate; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:467` |
| `intelligence.knowledge` — Review extracted character knowledge | Turn reviewed, source-backed knowledge candidates into explicit canonical records. | implemented-usable; account | H: book, si-scenes-complete, si-candidates, si-character-gate; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:639` |
| `intelligence.exceptions` — Prioritise ambiguous Knowledge, Relationship or Asset observations | Spend author attention on material exceptions rather than treating every pending candidate as a conflict. | implemented-usable; book | H: book, si-scenes-complete, si-character-gate, si-candidates; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/IntelligenceReviewController.cs:20` |
| `intelligence.reassess` — Explicitly refresh exception priorities | Update exception attention from retained scene evidence while preserving author decisions. | implemented-restricted; book | H: book, si-scenes-complete, si-character-gate; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/IntelligenceReviewController.cs:53` |
| `intelligence.narrative` — Review whole-book plot and thread synthesis | Compare retained narrative candidates and source-backed scene events before accepting plot structures. | implemented-usable; account | H: book, si-scenes-complete, si-character-gate; U: thread-events; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:699` |
| `intelligence.metrics` — Review extracted scene metric evidence | Use source-backed metric analysis to enrich recorded scene qualities while keeping its provenance. | implemented-usable; account | H: book, si-scenes-complete; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:362` |
| `intelligence.commit` — Explicitly materialise approved analysis results | Apply reviewed canonical story records without confusing retained analysis with established author data. | implemented-usable; account | H: book, si-scenes-complete; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:509` |
| `intelligence.enrichment` — Retry eligible character enrichment | Recover source-backed character enrichment after an eligible failure. | implemented-restricted; account | H: book, si-scenes-complete, si-character-gate, si-available; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:761` |
| `intelligence.plot-retry` — Retry eligible whole-book plot synthesis | Recover narrative synthesis while retaining canonical scene and review state. | implemented-restricted; account | H: book, si-scenes-complete, si-character-gate, si-available; U: none; O: none | Onboarding.StoryIntelligenceBookReviewCentre; `PlotLine/Controllers/OnboardingController.cs:742` |
### Story Point
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `storypoint.snapshot` — Inspect the story state at a chosen scene | See characters, knowledge, relationships, assets, threads and warnings at one narrative point. | implemented-usable; project | H: project; U: scene; O: thread-events, relationship-history | StoryPoint.Index; `PlotLine/Controllers/StoryPointController.cs:12` |
### Threads
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `threads.record` — Define a thread within a plot line | Track a particular question, promise or developing story element. | implemented-usable; project | H: project, plotline; U: none; O: none | PlotThreads.Create; `PlotLine/Controllers/PlotThreadsController.cs:31` |
| `threads.scene-events` — Record thread development or payoff in a scene | Show where a story thread is introduced, developed or resolved. | implemented-usable; scene | H: scene, thread; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:829` |
| `threads.targeting` — Associate scene contributions with target plot lines | Make a contribution’s narrative targets explicit rather than inferring them from proximity. | implemented-usable; scene | H: scene, thread; U: none; O: none | Scenes.Edit; `PlotLine/Controllers/ScenesController.cs:855` |
### Timeline
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `timeline.inspect` — Explore story order and scene cards | Understand the sequence of existing chapters and scenes in one visual workspace. | implemented-usable; project | H: project; U: scenes; O: book, metric-values, thread-events | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:12` |
| `timeline.filter` — Focus the timeline on relevant characters, locations, purpose or status | Reduce a complicated story view to the records relevant to a concern. | implemented-usable; project | H: project; U: scenes; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:12` |
| `timeline.views` — Save and reload timeline view presets | Return to a useful scoped arrangement of filters and display settings. | implemented-usable; project | H: project; U: none; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:71` |
| `timeline.metrics` — Compare or edit scene metrics along the timeline | Notice changes of intensity or other recorded qualities in story order. | implemented-usable; project | H: project, metric-types; U: metric-values; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:12` |
| `timeline.cast-drop` — Add character participation from the timeline | Place a recorded character into an existing scene while working visually. | implemented-usable; project | H: project, scene, character; U: none; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:115` |
| `timeline.asset-drop` — Add asset events or dependencies from the timeline | Maintain object-related story state from the structural workspace. | implemented-usable; project | H: project, scene, asset; U: none; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:123` |
| `timeline.location-drop` — Create location relationships from the timeline | Record spatial links without leaving story structure. | implemented-usable; project | H: project, location-pair; U: none; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:139` |
| `timeline.reorder` — Preview scene restructuring from the timeline | Rearrange recorded scenes through the validated move workflow. | implemented-usable; project | H: project, scene, chapter; U: none; O: none | Timeline.Index; `PlotLine/Controllers/TimelineController.cs:103` |
### Word Companion
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `word.connect` — Authorise and manage the Windows Companion | Connect a specific supported Windows installation to the author account. | implemented-restricted; account | H: none; U: none; O: none | NativeInstallation.Index; `PlotLine/Controllers/NativeCompanionAuthController.cs:21` |
| `word.installations` — Inspect, disconnect or revoke Companion installations | Review which machines can access the account and revoke an installation. | implemented-restricted; account | H: none; U: none; O: none | NativeInstallation.Index; `PlotLine/Controllers/NativeInstallationController.cs:14` |
| `word.link` — Link the intended Word manuscript to a book | Keep the book attached to the correct document identity rather than a matching title. | implemented-restricted; book | H: book; U: none; O: none | NativeWorkspace.Workspace; `PlotLine/Controllers/WordCompanionController.cs:223` |
| `word.workspace` — Inspect linked document status and saved workspace | See whether the current Word book/session is connected, saved and mapped. | implemented-restricted; book | H: book; U: none; O: native-session | NativeWorkspace.Workspace; `PlotLine/Controllers/NativeWorkspaceController.cs:15` |
| `word.navigate-chapter` — Explicitly navigate Word to a verified chapter or scene | Return to the exact saved writing target with an acknowledged handoff. | implemented-restricted; book | H: book, native-session, verified-position; U: none; O: none | Writer.Write; `PlotLine/Controllers/WriterWordController.cs:13` |
| `word.navigate-passage` — Explicitly hand off an accepted Review paragraph to Word | Revise the same original paragraph you were reviewing without guessing a text match. | implemented-restricted; book | H: book, accepted-source, native-session, verified-position; U: none; O: none | Writer.Write; `PlotLine/Controllers/WriterWordController.cs:13` |
| `word.office-addin` — Use the hosted Office/Word Companion surface | Open the implemented Office companion task-pane integration and scoped book structure. | implemented-restricted; account | H: none; U: none; O: book | WordCompanionHost.Index; `PlotLine/Controllers/WordCompanionHostController.cs:16` |
| `word.client-review` — Review and decide native scene observations | Inspect queued native observations before applying an explicit author decision. | implemented-restricted; book | H: book; U: none; O: native-session | NativeWorkspace.Workspace; `PlotLine/Controllers/NativeWorkspaceController.cs:68` |
### Writer Workspaces
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `writer.home` — Choose where to begin writing work | Return to writing, explore the story or inspect plans without knowing a specialist tool name. | implemented-usable; account | H: none; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:17` |
| `writer.write` — Work in the integrated chapter/scene authoring workspace | Keep a writing target, intentions and existing supporting information together. | implemented-usable; book | H: book; U: chapter; O: scene | Writer.Index; `PlotLine/Controllers/WriterController.cs:19` |
| `writer.focus` — Save an explicit working objective | Maintain a working target without making Reader, Word and session selections overwrite it. | implemented-usable; book | H: book; U: chapter; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:118` |
| `writer.intentions` — Edit chapter and scene intentions inline | Clarify chapter goals, scene purpose/outcome and notes where they become relevant. | implemented-usable; book | H: book, chapter; U: none; O: scene | Writer.Write; `PlotLine/Controllers/WriterAuthoringController.cs:14` |
| `writer.queues` — Choose work from canonical writing/revision/final-pass queues | Find an appropriate next scene using recorded priority, blockers and revision state. | implemented-usable; book | H: book; U: scenes; O: intentions | Writer.Index; `PlotLine/Controllers/WriterController.cs:111` |
| `writer.explore` — Open authenticated story exploration tools | Develop an idea or investigate a concern without knowing which specialist tool to choose. | implemented-usable; book | H: book; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:20` |
| `writer.plan` — Review writing availability and proposed work | See saved plans and decide what work fits the time available. | implemented-usable; book | H: book; U: none; O: writing-plan | Writer.Index; `PlotLine/Controllers/WriterController.cs:21` |
| `writer.reflect` — Review progress, recorded work and evidence coverage | Understand retained work and progress with its measurement limits visible. | implemented-usable; book | H: book; U: activity-evidence; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:35` |
| `writer.dashboard` — Inspect the combined writing dashboard | See plans, work queues and progress in one book-scoped overview. | implemented-usable; book | H: book; U: scenes; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:36` |
| `context.displays` — Arrange Context and Intent on separate displays | Keep references visible beside Word using reusable windows and display placement. | implemented-usable; book | H: book; U: none; O: native-session | Writer.Index; `PlotLine/Controllers/WriterController.cs:113` |
### Writing Planning
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `planning.availability` — Create a writing plan with availability and deadline | Translate an intended drafting or revision pass into a realistic time budget. | implemented-usable; book | H: book, project; U: none; O: book | Writer.Index; `PlotLine/Controllers/WriterController.cs:233` |
| `planning.generate` — Generate a schedule from a saved plan | Allocate eligible writing work against saved availability. | implemented-usable; book | H: book, writing-plan; U: eligible-tasks; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:297` |
| `planning.activities` — Review and allocate bounded chapter/scene activities | Choose explicit work activities and their minute budgets before committing them to a plan. | implemented-usable; book | H: book, writing-plan, eligible-tasks; U: none; O: none | WriterPlanning.Index; `PlotLine/Controllers/WriterPlanningController.cs:15` |
| `planning.preview` — Inspect calendar and schedule preview | See which tasks are planned for which dates. | implemented-usable; book | H: book, project; U: writing-plan; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:135` |
| `planning.rebalance` — Preview and apply schedule rebalancing | Adjust future work when progress or available time changes. | implemented-usable; book | H: book, writing-plan; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:216` |
| `planning.track` — Mark scheduled activities complete or skipped | Record actual task decisions without inferring manuscript completion. | implemented-usable; book | H: book, writing-plan; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:422` |
| `planning.manage` — Activate, revise or retire a saved writing plan | Keep multiple passes/plans manageable without overwriting their identity. | implemented-usable; book | H: book, writing-plan; U: none; O: none | Writer.Index; `PlotLine/Controllers/WriterController.cs:353` |
### Writing Recording
| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |
|---|---|---|---|---|
| `recording.sessions` — Record writing, editing, planning or reading sessions | Keep author-controlled records of work separately from automatically accepted manuscript changes. | implemented-usable; book | H: book, recording-enabled; U: none; O: chapter | Writer.Write; `PlotLine/Controllers/WriterWorkController.cs:22` |
| `recording.notes` — End a session with a return note | Leave yourself a clear place to resume later without changing the scene status. | implemented-usable; book | H: book, session; U: none; O: none | Writer.Write; `PlotLine/Controllers/WriterWorkController.cs:32` |
| `recording.audio` — Record a chapter Audio Review session | Track an intentional listening/review activity and preserve its chapter target. | implemented-usable; book | H: book, chapter, recording-enabled; U: none; O: native-session | Writer.Write; `PlotLine/Controllers/WriterWorkController.cs:22` |
| `recording.playback` — Control an available bound Audio Review player | Play, pause or seek a supported player while preserving the actual review session. | implemented-restricted; book | H: book, audio-session, supported-player; U: none; O: none | Writer.Write; `PlotLine/Controllers/WriterWorkController.cs:37` |
| `recording.settings` — Control private recording settings and retention | Choose whether retained writing activity is recorded and for how long. | implemented-usable; book | H: book, owner; U: none; O: none | WritingActivity.Index; `PlotLine/Controllers/WritingActivityController.cs:28` |
| `recording.baseline` — Start accepted activity coverage from a baseline | Make the start of measured manuscript progress explicit. | implemented-usable; book | H: book, recording-enabled, accepted-source; U: none; O: none | WritingActivity.Index; `PlotLine/Controllers/WritingActivityController.cs:22` |
| `recording.reports` — Inspect activity, session history and progress coverage | Review measured activity without mistaking missing historical coverage for no work. | implemented-usable; book | H: book; U: activity-evidence; O: none | WritingActivity.Index; `PlotLine/Controllers/WritingActivityController.cs:16` |
| `recording.export` — Export retained activity or session records | Take a scoped copy of retained writing evidence for personal review. | implemented-usable; book | H: book; U: activity-evidence; O: none | WritingActivity.Index; `PlotLine/Controllers/WritingActivityController.cs:40` |
| `recording.erase` — Erase private retained activity and session history | Control retention of personal work evidence. | implemented-usable; book | H: book, owner; U: none; O: none | WritingActivity.Index; `PlotLine/Controllers/WritingActivityController.cs:34` |
## Important boundaries and unresolved work
- **gap-occupancy-write**: Saved occupancy read projection and repository/SQL writes exist; no application caller of the write interface was found. Do not promise a current author placement step. Trace/import existing producers or implement a separately approved authoring adapter.
- **gap-source-bridge**: Accepted paragraph snapshots and SceneManuscriptSources are distinct stores. The audit does not assert every paragraph update materialises scene source for every legacy consumer. Bind readiness to the actual consumer store/generation; verify the relevant bridge before substituting one source fact for another.
- **gap-publishing**: Verified exports are reference HTML/Markdown/text and backup packages. No dedicated EPUB/PDF/typeset-manuscript/publisher-submission controller or exporter was verified. A book status is not publishing functionality. Treat end-to-end publishing as unsupported/unknown until a specific implementation is identified; do not add an invented route.
- **gap-runtime-proof**: Windows/Office/player/display support is source-backed but not physically exercised in this read-only audit. SQL metadata cannot prove current connection, placement permission or playback capability. Runtime adapters return proof/freshness/Unknown; physical acceptance separately.
- **gap-readiness-aggregates**: Current services often load full editor/prose graphs. No shared minimal bulk readiness-fact API exists. Existing data/schema is verified; new bounded aggregate procedure signatures need approved implementation. Implement read-only scoped aggregate facts, reuse access contracts and pure validators, avoid side-effecting GET/workflow methods.
- **gap-batch-handles**: Detailed review uses owned batchId with an in-memory batch store; a durable plan cannot assume that an old batch URL survives restart. Persist stable book/module/generation references; resolve current authorised workflow handle explicitly on resume, without implicit AI/generation during readiness.
- **gap-subjective-readiness**: Zero application rows do not mean the author has not developed the story privately. No existing readiness answer model can establish subjective confidence automatically. Separate preparation questions/answers from diagnostic evidence and user profile inference.
- **gap-private-backup**: Do not assume shared project JSON includes private investigation/observation history. New preparation state will need an explicit retention/export/deletion policy. Additive private state with owner checks, book/account cascades and reviewed private export coverage; never silently put it in shared project packages.
- **gap-private-ideas**: Ideas are supported through existing intentions, notes, plot context and authenticated exploration. No standalone unrestricted brainstorming/chat/idea-board implementation was verified; Reflect writing-process inference is explicitly planned. Map recommendations to implemented actions; do not imply a general AI brainstorming chat or infer a writing style.
- **gap-no-offline-editor**: PWA worker has no fetch/cache/offline/background-sync handler; installation is not offline story editing. Readiness/plan resume must handle network failure and retain confirmed server state rather than advertising offline progress.
## Coverage and reproducibility
76 controller source files, 78 declared controller classes and 23 toolbar destinations are dispositioned in Capability-Coverage.json. The action index is heuristic, not a claim of every dynamically composed route. Development metadata confirms 197 tables and 716 procedures. No author content or credential values were exported.
Run `python3 Tools/WriterCapabilityAudit/build_inventory.py` from any directory to regenerate the reviewed snapshot from source and committed metadata, then `python3 Tools/WriterCapabilityAudit/validate_inventory.py --self-test`. The compiler never connects to the database. Refreshing metadata requires a separately authorised read-only connection and the guarded SELECT scripts; do not run application/workflow procedures as readiness probes.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,108 @@
# Feature dependency analysis — Phase3D.2A proposal
This is a reviewable specification, not an installed dependency engine. [Capability-Catalogue.json](Capability-Catalogue.json), [Feature-Dependencies.json](Feature-Dependencies.json) and [Readiness-Specification.json](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.

View File

@ -0,0 +1,59 @@
# Feature Family Tree — data and interaction specification
This document specifies a future view. No graph renderer, interactive prototype, author page or readiness engine is built in Phase3D.2A.
## One model, two perspectives
The tree must read the same versioned capability, condition and dependency definitions used by investigation/readiness/preparation. It must not infer dependencies from menu position, duplicate readiness rules in JavaScript or maintain a separate hand-edited tree.
**What does this feature need?** Start from one capability and traverse upstream hard/useful conditions and their producer alternatives. Show condition truth for the selected book/project, minimum relevant counts, association scope, inline alternatives and unresolved/runtime conditions. Group OR producers as alternatives and AND conditions as independent requirements. Do not show three producer capabilities as three mandatory steps.
**What can this feature help me do next?** Traverse downstream ProducesDataFor/BenefitsFrom plus complementary WorksWith links. Explain the author benefit and problem-driven or opportunity-driven use. Relevance is not determined by readiness: an unready but helpful destination should remain discoverable, with preparation or an honest restriction shown alongside it.
## Shared node and edge data
| Record | Required information |
|---|---|
| Capability | Stable ID/version, author name/benefit, module/area, current implementation status, recommendation roles, actual trusted entry resolver and typed context contract |
| Condition | Stable ID, hard/useful/optional relationship at the consumer, minimum/association predicate, AND/OR expression, check/provenance/freshness contract, producer alternatives and inline creation |
| Dependency | Stable edge ID, explicit type/direction, source/target, referenced condition, optional strength, source evidence, proposed-vs-source-backed status |
| Book overlay | Selected author/project/book and optional record IDs, readiness status/reasons, count/association/generation proof, evaluated/expiry time; not a persistent declaration that an author completed a feature |
| Investigation link | Original investigation/recommendation/desired capability and pinned diagnostic version; no mutation of diagnostic scores from graph traversal |
Requires arrows indicate data need; BenefitsFrom is a less prominent helpful link; ProducesDataFor shows downstream opportunity; WorksWith is visually complementary, not a precedence arrow. Use labels and line style as well as colour. Collapse inherited project/book/chapter context by default so the view does not become a thicket of administrative dependencies.
The exported snapshot has1,418 typed links but74 reusable conditions; it is not intended to render every link at once. The upstream view should expand condition groups rather than draw every possible producer-to-consumer link directly. Baseline context and duplicated type semantics can be filtered without losing their definitions. Keep the same IDs behind all projections.
## Initial developer/admin view
- Search by stable ID, feature name, route/module or relevant entity; filter implementation status, recommendation role and edge type.
- Inspect one-hop upstream/downstream neighbourhoods, expanding deliberately with a depth/node budget.
- Display hard vs usefulness vs enhancement; show each condition's AND/OR alternatives, source file/line evidence and proposed selector.
- Optionally select an authorised project/book and attach a read-only readiness overlay once a resolver exists. Never expose another author's private investigation/history merely because the viewer is an administrator.
- Flag orphan references, invalid IDs, unresolved producers, route/context failures, stale overlays and cycles. Differentiate invalid hard cycles from complementary or alternative-producer loops.
- Compare immutable graph versions and aliases; preserve a reproducible view of the graph used by an existing recommendation/preparation plan.
- Export a focused review slice and provenance, without author prose or credentials. Show partial/planned features as such; do not offer a fake Open action.
Static validation tooling supplied in this phase checks export/reference/source consistency and reports Requires strongly connected components. That tooling is not the developer visualisation or a runtime dependency engine.
## Simplified author experience
Begin with an author benefit—“See where people are in a complicated scene”—rather than a taxonomy of modules. Present a small neighbourhood centred on the selected feature or an existing investigation recommendation. Use plain labels such as “You can start now”, “Useful preparation”, “Needs this first”, “Currently unavailable” and “Choose or check context”. Keep diagnostic explanation visible separately.
A blank map can be ready even with no Locations. A room block can create its matching location inline. A relationship network can open before links exist; two relevant character records are needed to create a connection. These distinctions should be visible as sensible choices, not a compulsory setup checklist.
Allow “Open now” for technically usable capabilities, “Prepare first” for the minimum useful journey, “Skip for now” for optional preparation and a clear return to the original investigation. A feature may be both a primary destination for one concern and preparation for another. Show project-wide scope explicitly when a selected-book overlay uses shared cast, locations, maps or floor plans.
If selection is missing, offer existing eligible records before suggesting creation. If data was added elsewhere, refresh and collapse satisfied preparation rather than ask again. If a provider, permission or physical platform is unavailable, explain that fact and offer an appropriate alternative without changing the diagnosis. Never transform a missing row into a judgement about the author's creativity or private preparation.
## Accessibility, responsive behaviour and performance
Provide an equivalent linear upstream/downstream list, headings and labelled relationship summaries. Keyboard users must be able to focus a feature, expand alternatives, inspect a reason and open a scoped destination without dragging a graph. Do not rely on hover, colour, tiny nodes or motion. Announce readiness refreshes without moving focus or replacing current diagnostic text.
On small/PWA screens use a focused feature card plus expandable lists rather than a full canvas. Installed PWA is not offline editing; stale/network-failed readiness needs a visible Unknown/last-checked state. Preserve selected book, theme and Writer context. Normal preparation is navigable in ordinary pages; the diagram is an optional discovery aid.
Request only the visible graph slice and batched minimal readiness facts. Cache graph definitions by immutable version and fact overlays by author/scope/generation/expiry. Do not load the whole manuscript or every editor to colour a node. Verify permission/source expiry before opening a tool even if a cached badge says Ready.
## Review checkpoints
Approve the shared inventory and condition semantics first. Resolve the saved occupancy write gap and source-store boundaries, then qualify pure facts and aliases. Build the developer view only after graph publication/validation and readiness provenance exist. Review its accuracy, density and keyboard/list presentation before simplifying for authors. The author Family Tree should not precede a reliable shared model or become a replacement questionnaire. Production question generation and Phase4 remain separate work.

View File

@ -0,0 +1,89 @@
# Progressive Readiness and preparation design — specification only
No resolver, planner, preparation question catalogue or database migration is implemented by Phase3D.2A. The proposed runtime must consume the same capability/condition/dependency bundle as investigation and the Family Tree.
## Three independent results
1. **Diagnostic relevance:** the explanations and capabilities supported by the author's diagnostic answers.
2. **Capability readiness:** current scoped data, permission, entitlement, source-generation and platform facts.
3. **Preparation journey:** an optional or required sequence that can improve readiness while retaining the original recommendation.
Missing data never changes diagnostic support, opposition, redundancy, corroboration, challenge, conflicts or weights. A relevant tool can remain the recommended destination while preparation is needed. Do not convert “no locations recorded” into evidence that setting is the author's underlying problem.
## Existing Phase3D.1 integration
`PlotLine/Models/Investigations/Contracts.cs` embeds five capability definitions in each immutable catalogue: stable ID, name/description, resolver, required context, availability, authority and flat answer prerequisites. The compiled `DestinationRegistry` supports Write, Characters, PlotThreads, Timeline and Relationships. `InvestigationService.Current` applies capability flags and `InvestigationEngine.Evaluate` computes weighted evidence and dynamically ranks questions. Question selection uses hypotheses, missing dimensions, challenge/corroboration gaps, clarification, eligibility and deterministic ties.
Current capability prerequisites are `Rule.MinAnswers`, `AllAnswers` and `ExcludeAnswered`—**diagnostic answer conditions, not a dependency graph or book-readiness model**. The catalogue has no complete feature inventory or typed data-fact selector interface.
The engine already separates numeric support from `Eligible`; however terminal `Recommendations` filters by eligible destinations. A later integration must retain the **desired capability and supported diagnostic explanation before readiness filtering**. Otherwise an unavailable/preparation-needed tool disappears from the recommendation, contrary to the new requirements. Use a separate diagnostic target set and actionable/readiness presentation, preserving legacy evaluation semantics for historical replay. Do not feed “missing preparatory data” into evidence contributions or blindly flatten it into the current `available` set.
Readiness belongs after relevance selection and before explaining/launching an action. Preparation questions belong to a separate authored selector operating on missing/unknown conditions. They must not be inserted into `Investigation.Answers`, counted toward diagnostic substantive-answer thresholds or used to satisfy diagnostic challenge/corroboration. A later diagnostic answer revision remains an explicit independent operation.
The exports include schema1 aliases for the existing five IDs and a crosswalk for the separate public Solver result catalogue. The public Solver has15 authored workspace capability aliases; these must remain compatible rather than be silently redirected into new question logic. Canonical capability IDs should be resolved through one shared registry, with legacy adapters at each existing boundary.
## Fact contract and states
A future fact result should include: condition ID, typed scope/selected IDs, met/missing/unknown/unavailable, counts/associations, source generation or revision, permission/entitlement reason, evaluated/expiry times and selector provenance. Default fact reads should not contain prose. A small count is not sufficient when the required association or generation differs.
| State | Meaning | Author treatment |
|---|---|---|
| Ready | Required facts and useful baseline are satisfied; optional enhancements may remain absent | Open the appropriate scoped tool; show optional opportunities without a checklist demand |
| Preparation recommended | Technically usable, but relevant useful data is missing | Offer a short optional improvement or open now |
| Preparation required | Required data is confirmed absent and an allowed creation path exists | Explain the minimum necessary preparation while retaining the destination |
| Unavailable | Permission, entitlement, environment, platform or unimplemented feature is explicitly denied | Explain the actual restriction; offer an appropriate alternative without rescoring diagnosis |
| Unknown or not verifiable | Required selector/proof/generation/check is unresolved or stale | Ask for selection/refresh/clarification; never invent readiness or missing rows |
State precedence and reason aggregation must be explicit. A missing selected character ID does not prove there are no characters. First select among eligible existing records; create only if required relevant records truly do not exist. An archived root Project is valid input to recovery even though ordinary active-project readiness fails.
The74 reusable conditions in Readiness-Specification.json provide minimum quantities, AND/OR contracts, association scope, existing read candidates where verified, check feasibility, preparation sources, freshness and performance considerations. Existing Dapper call strings are cross-checked against live Development procedure names. They are read candidates, **not a claim that loading each full editor graph is a suitable production readiness query**. Bespoke compact aggregates remain proposed work.
## Objective data versus private author preparation
| Observation | What can be established | What cannot be inferred | Appropriate preparation interaction |
|---|---|---|---|
| No character rows | No active project characters are recorded | Whether the author already knows their cast privately | Ask which relevant people to record or whether to use existing private notes |
| Character rows, no relationship links | The current graph has no recorded edges | Whether relationships are unclear in the author's mind | Offer to record selected connections, or open the map to create them inline |
| Locations absent, blank map available | No canonical settings recorded; provisional map still usable | Whether the setting lacks development | Offer a sketch first or optional location recording |
| Floor plan with no mapped occupancy rows | Viewer lacks saved occupant placements | Whether staging is confusing or the author has a private plan | Explain the verified partial authoring boundary; do not promise an unverified write workflow |
| No absolute scene dates | Calendar placement is not established | Whether narrative order or time is wrong | Ask whether absolute dates matter; relative/unknown time may be intentional |
| No paragraph snapshot | Reader lacks accepted text for that scope | Whether the author has written a manuscript | Offer supported connection/import/sync, preserving original tool relevance |
| No retained activity history | Coverage is absent/erased/disabled | Whether the author has been writing | Explain coverage; allow opt-in recording rather than infer working style |
## Safe minimal preparation behaviour
1. Pin original investigation/recommendation identity, desired capability, diagnostic snapshot/version and typed project/book context.
2. Evaluate current access/context and scoped facts. Distinguish selection from missing data, and stale runtime proof from unsupported features.
3. Resolve confirmed missing hard conditions recursively. Separate AND facts from OR producer alternatives, including inline creation. Keep a visited set of `(condition, scope, selected IDs, graph version)` to prevent loops.
4. Prefer existing records, safe inline entry and the smallest authorised set of useful records. Do not require a populated project merely because a feature consumes more data when available.
5. Treat optional/usefulness work as skippable. The author can open a technically available blank workspace, defer optional enrichment or choose another appropriate producer.
6. Ask preparation questions only for unknown/private choices. Retain those answers separately and avoid repetition while scope/provenance remain valid.
7. Persist explicit progress but re-evaluate facts after each return. Work completed elsewhere can satisfy a step. A step completion does not permanently prove that the underlying record still exists.
8. Retain the original target during preparation, interruption, disagreement and permission failure. Recheck before opening the final scoped destination.
9. Never automatically import, run AI, restore/delete records, move canonical scenes, save Word, start/end sessions or overwrite working focus as a hidden preparation action.
A proposed preparation step needs a kind such as context-selection, safe data-entry, author-confirmation, runtime connection or explicit validation—not merely a URL. Cost/risk/number-of-required-records and permitted alternatives should be transparent. Choosing between producer alternatives is not a hardcoded universal journey.
## Data-access and performance requirements
Use Dapper and stored procedures. Authorise each requested project/book and selected entity, including graph associations; cache identity must include author/role and typed scope. Project-wide Characters/Locations/Maps/Floor Plans must not be relabelled as book-only data. Chapter/scene facts join through the actual selected book. Counts and associations should be batched per book/project, with indexes evaluated against representative data. Avoid N+1 editor loads, full manuscript JSON parsing, large candidate payloads or external lookups merely to draw badges.
Existing named read candidates and source anchors are in the JSON conditions, for example Project_GetForUser, Book_Get, Chapter_ListByBook, Scene_ListByChapter, Character_ListByProject, StoryMap_Get, FloorPlanBlock_ListByPlan, WriterWord_Status and current candidate-generation reads. Some need a new minimal aggregate projection rather than direct reuse. The snapshot verifies procedure existence, not full source/live procedure-body equivalence; selected implementations still require focused integration tests.
Do not equate HTTP GET with purity. ProjectExportService.ExportAsync records an activity; core scan-review fallback can change onboarding step, and core ScanCharacters can ensure candidates. Story Intelligence ResumeBook/prepare/retry and geography requests also coordinate deliberate work. Readiness must use pure fact reads and existing authoritative persisted summaries, not probe these workflow endpoints.
Freshness must use the actual domain contract: source/accepted revision for text-related facts, candidate generation and character gate for analysis, optimistic plan/map versions for edits, and current native/media lease evidence for Word/player state. A known installation is not a live document. The player command path uses a45-second freshness fence plus matching lease/grant; database metadata cannot replace it.
## Permissions, persistence and migration implications
Current global SubscriptionEnforcementFilter allows GETs but blocks most POSTs without EditContent. Exports/account/admin and selected BookRecovery safety operations have exceptions; actual restore retains domain resource reservations. Private investigation persistence currently passes through the general POST filter. Before adding private preparation writes, review policy for read-only accounts explicitly rather than silently treating all advice as story editing or bypassing domain edit gates.
Migration273 stores immutable catalogue JSON, private investigation aggregate JSON and append-only events. It does not provide shared graph publication, fact snapshots, preparation steps/answers, multiple active plans or durable workflow-resolution handles. Proposed Phase3D.2B additions should be additive: separately versioned capability/condition/edge publication and separate private preparation state bound to existing investigation/recommendation IDs. Preserve old catalogue bytes and event replay. Do not rewrite migration273 or repoint old investigations to a new question catalogue.
A preparation record should retain: author/project/book, investigation ID, desired capability ID, original recommendation/evidence signature, catalogue and graph versions, relevant selected entity IDs, current fact snapshot/provenance, chosen producer alternatives, step state, separate preparation answers, deferrals, explicit completion/return timestamps and optimistic version. These are specification fields, not tables created by this audit. Review private retention/export/account/book deletion and restore compatibility before implementing them.
Detailed Story Intelligence batches are currently in a ConcurrentDictionary. Store stable book/module/generation references; obtain a current authorised workflow handle on explicit resume, not as an implicit readiness side effect. Browser layout preferences, pinned Context, saved objective, Reader selection, actual session and Word target remain distinct context roles.
## Phase3D.2B recommendation
First approve IDs, granularity and unresolved boundaries. Then implement a versioned shared registry/import validator and pure minimal fact facade; add operation-specific permission/environment adapters and schema1 aliases. Qualify objective predicates and selection/OR cases before adding a planner. Add private resumable preparation state and questions separately, prove evidence invariance, and only then integrate recommendation presentation and the developer Family Tree. The simplified author tree should follow measured usability review. Production diagnostic question content and Phase4 remain separate approvals.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,115 @@
# Phase3D.2A — complete capability inventory and dependency specification
17 November2026. **Audit/specification only; stop for review before Phase3D.2B.** Shared branch: `codex/word-companion-native-phase1-20261104`. Source baseline: `eb9dec261cae8ffadcae4f3ed0d758f6b8c51e87`, retaining deployed application62fa292 and subsequent Phase3D.1 evidence. The delivery commit is the commit containing this report and is identified in the final handoff.
No application behaviour, existing questionnaire, domain records, numbered SQL migration, public Problem Solver, native/Windows binaries or deployed service was changed. No dependency engine, readiness resolver, planner, preparation-question catalogue or Family Tree was implemented. No application deployment was needed or performed. The unrelated canonical-manuscript investigation file was preserved.
## Inventory and coverage
| Measure | Result |
|---|---:|
| Functional areas audited |43 |
| Catalogue entries |251 |
| Implemented, general source-backed capability |210 |
| Implemented with specific environment/AI/admin/native restrictions |34 |
| Implemented total, including those restrictions |244 |
| Partial |1 |
| Retained legacy-accessible |1 |
| Explicitly planned, no runtime entry claimed |5 |
| Entries with identified hard/useful/optional conditions |225 |
| Entries with no explicit story-data condition |26 |
| Reusable condition definitions |74 |
| Unresolved prerequisite producer definitions |1 |
| Intentionally subjective, not automatically verifiable condition |1 |
| Typed relationships |1,418 |
| Requires / BenefitsFrom / ProducesDataFor / WorksWith |510 /195 /703 /10 |
| Verified source entry actions |246, including the partial feature’s read entry |
| Verified implemented-or-legacy entry actions |245 |
| Documented primary benefits |251 |
| General implemented capabilities potentially usable as destinations/support/preparation/enhancements |210 |
| Controller source files / declared controller classes |76 /78 |
| Heuristic public-action index |595 methods; not a runtime route count |
| Navigation command occurrences / unique controller-action destinations |59 /52 |
| Toolbar destinations specifically cross-checked |23 |
| Development metadata |197 tables,361 FK columns,716 procedures |
| Exact source anchors validated |450 |
| Explicit unresolved/coverage/compatibility issues |10 |
“General implemented” does not mean universally available, free, editable by all roles or ready for every book. Authentication, access and the global edit/subscription filter remain distinct. The34 restricted entries have additional specific gates. The26 entries without story-data conditions include account/support/global surfaces and planned work; they are not a claim that credentials, valid input or runtime permission are unnecessary.
All declared toolbar/contextual ribbon destinations and every controller file have an explicit disposition. Controllers were expanded into meaningful outcomes rather than counted as features: map geometry/linking/geography/story lenses, floor/room/transition/stair/background work, scene cast/knowledge/attributes/custody, narrative contributions, private review decisions, scheduling, independent Context/Intent/Word targets and recovery operations all appear separately where justified. PWA and native transports were cross-checked without pretending every endpoint is an author tool.
No100% runtime completeness claim is made. This is a source/schema-based audit with targeted view/JavaScript/business-path inspection. The index is not a compiler-generated endpoint catalogue, and no author workflow, provider or Windows/Office installation was executed during this audit. Status and benefits remain reviewable claims with source evidence. Exact permission/configuration/readiness for a particular account/book was not measured.
## Significant prerequisite chains
- Active project → book → chapter → scene → scene intentions/workflow/knowledge/custody, with cast/settings optional until an operation actually consumes them.
- At least two relevant characters → a recorded connection or inline visual-workspace edit → relationship exploration. Baseline networks do not require later relationship history.
- Blank/provisional map → editable pieces/areas/routes; canonical Locations and real-world geography are optional branches. Eligible hierarchy → current lookup candidate → confirmation → linked map feature supports explicit geographic positioning.
- Floor plan creation can create its root Location and Ground Floor. A room can select an existing location **or create one inline**. Valid distinct placed endpoints are required for transitions and reciprocal stairs.
- Plot line → thread → scene contribution events → plot workspace/health and narrative inspection. Project-wide and book-specific scope must remain explicit.
- Saved scene sources plus explicit optional AI context/entitlement → scene analysis → character-identity gate → persisted peer reviews → whole-book narrative synthesis and explicit materialisation.
- Exact Word/document binding plus current accepted proof → acknowledged navigation. Accepted paragraphs support Reader/passage observations; chapter-level observations can exist without prose. Audio recording is distinct from a live supported player.
- Saved availability/plan plus eligible scoped work/capacity → explicit schedule allocation/completion; planned work, scene revision and measured accepted changes remain separate.
- Owner-scoped supported backup graph → validated staged package/reservation → explicit restore. Archived Project recovery must not require an already active root Project.
Requires links reference data conditions and OR producer alternatives, not compulsory screen visits. There are74 shared conditions, not1,418 independent setup tasks. Static validation found no strongly connected component in this snapshot’s Requires union or single-producer projection. Complementary and data-maintenance loops must not be treated as invalid hard cycles automatically.
## Key architectural findings
Phase3D.1 embeds five capability adapters inside immutable catalogue versions. Prerequisites are flat **answer** rules, not a feature graph. Its numeric evidence is already independent of availability, but terminal recommendations are filtered by eligible destinations. The next integration must retain desired diagnostic capabilities separately from currently actionable destinations so preparation does not erase the original recommendation.
A shared, separately versioned capability/condition/edge registry should supply investigation, readiness, preparation and both Family Tree perspectives. Use the supplied schema1 aliases and public Solver crosswalk; preserve original catalogue JSON/events and resolver compatibility. Introduce private preparation answers/steps separately from Investigation.Answers, diagnostic counts and weights. Additive migrations will likely be needed for shared graph publication and durable preparation state. Do not rewrite migration273.
Minimal readiness aggregates do not yet exist as a shared API. Existing Dapper reads and current procedure names are supplied where verified, but many return full editor/prose graphs. Implement bounded scoped fact reads after approval; do not probe workflow routes. GET is not proof of purity: project export records activity, and core scan/review paths can update wizard state or ensure candidates. Readiness must not initiate AI/import/geography work.
Global POST subscription enforcement also affects private investigation saves. Review read-only-account policy deliberately before adding preparation persistence. Do not conflate edit permission, AI entitlement, provider configuration, story data and runtime Word/media proof. Detailed Story Intelligence batch handles are held in memory, so plans need stable book/module/generation identity and explicit handle resolution on resume.
## Unresolved and bounded findings
1. **Floor-plan occupant authoring:** saved read projection and repository/SQL write exist, but no application caller of the write interface was found. The corresponding authoring capability is partial, not a guaranteed preparation step.
2. **Source-store bridge:** accepted paragraph snapshots and SceneManuscriptSources are distinct contracts. Readiness must use the actual consumer store; universal update equivalence was not asserted.
3. **Publishing:** verified outputs are HTML/Markdown/text reference briefs and supported recovery packages. No dedicated EPUB/PDF/typesetting/publisher submission implementation was verified. A book status is not a publishing engine.
4. **Runtime proof:** real Word/Office/player/monitor permissions and provider availability cannot be established by metadata; physical acceptance is outside this read-only phase.
5. **Aggregate selectors:** exact bounded production readiness procedures still need implementation and focused source/live-body qualification after approval.
6. **Batch handles:** in-memory analysis review context cannot be persisted as a durable URL without a resolution strategy.
7. **Private author preparation:** absent records do not establish that the author has not already developed the material privately.
8. **Private export/retention:** new preparation state and existing private investigation/observation records need explicit private retention/export coverage, not automatic inclusion in shared project backups.
9. **Ideas/reflective inference:** existing notes, intentions, plot context and exploration support idea work; no unrestricted brainstorming chat/idea board was verified. Reflect’s process/style inference is explicitly planned.
10. **Offline:** PWA worker deliberately has no fetch cache/offline editor/background sync. Installation is not offline story editing.
These limitations are also machine-readable. They are not replaced with guessed routes or invented data selectors. Planned dependency/readiness/planner/tree capabilities and planned writing-process insights are distinguished from currently openable features.
## Deliverables
Machine-readable, under `Docs/Writer/Investigations/`:
- [Capability-Catalogue.json](../Investigations/Capability-Catalogue.json)
- [Feature-Dependencies.json](../Investigations/Feature-Dependencies.json)
- [Readiness-Specification.json](../Investigations/Readiness-Specification.json)
- [Capability-Coverage.json](../Investigations/Capability-Coverage.json)
Human-readable:
- [Complete-Feature-Inventory.md](../Investigations/Complete-Feature-Inventory.md)
- [Feature-Dependency-Analysis.md](../Investigations/Feature-Dependency-Analysis.md)
- [Progressive-Readiness-Design.md](../Investigations/Progressive-Readiness-Design.md)
- [Feature-Family-Tree-Design.md](../Investigations/Feature-Family-Tree-Design.md)
- This report: `Docs/Writer/Writer3/Phase3D2A-Report.md`
Evidence/contract: `Docs/Writer/Investigations/Audit-3D2A/` contains450 source anchors with excerpts/hashes, read-only schema/reference snapshots and guarded SQL, validation report and [Export-Contract.md](../Investigations/Audit-3D2A/Export-Contract.md). Tooling: `Tools/WriterCapabilityAudit/build_inventory.py` and `validate_inventory.py`.
Validation passed for schema/bundle versions, stable/unique IDs, statuses, all capability/condition/edge/alias references, typed relationships/expressions, source-backed entity/procedure names, navigation/controller dispositions, Help paths and exact source lines/hashes. Nine deliberate invalid-export cases are rejected. Regeneration is offline; no application build, executable regression harness or deployment was needed for documentation-only changes.
## Recommended Phase3D.2B and review checkpoint
Review/approve IDs, granularity, edge semantics, inline alternatives and unresolved producer/source boundaries first. Then:
1. Implement one immutable shared registry/import validator with typed context and compatibility adapters.
2. Add operation-specific authority/runtime adapters and minimal pure scoped fact selectors; qualify counts, associations, AND/OR and Unknown cases before badges or planning.
3. Add separately retained private preparation sessions/steps/answers, preserving original diagnosis/target/evidence and graph/catalogue versions.
4. Implement cycle-safe minimal preparation with existing-record selection, inline entry, optional deferral, external-work recognition and re-evaluation.
5. Integrate relevance/readiness/preparation presentation with proof that missing prerequisites never change diagnostic evidence.
6. Add a developer upstream/downstream Family Tree from the same graph, then simplify for authors after accuracy/accessibility review.
Stop here for catalogue review. No Phase3D.2B implementation, production question matrix or Phase4 is authorised by this audit.

View File

@ -0,0 +1,744 @@
#!/usr/bin/env python3
"""Offline, documentation-only audit compiler. Never connects to or changes application data."""
from pathlib import Path
import json,re,hashlib,subprocess,collections
ROOT=Path(__file__).resolve().parents[2]
OUT=ROOT/'Docs/Writer/Investigations'
BASE='eb9dec2'
EVIDENCE={}; CAPS=[]; CONDITIONS={}; EDGES=[]; AREAS={}
def read(p): return (ROOT/p).read_text()
def ev(path,needle,occurrence=0):
lines=read(path).splitlines(); matches=[i for i,l in enumerate(lines) if needle in l]
if len(matches)<=occurrence: raise ValueError(f'Missing source: {path}: {needle}')
line=matches[occurrence]+1; key=f'{path}:{line}'
eid='src-'+hashlib.sha256(key.encode()).hexdigest()[:12]
EVIDENCE[eid]={'id':eid,'path':path,'line':line,'excerpt':lines[line-1].strip(),'fileSha256':hashlib.sha256((ROOT/path).read_bytes()).hexdigest()}
return eid
def ce(controller,action):
path=f'PlotLine/Controllers/{controller}Controller.cs'
lines=read(path).splitlines(); pattern=re.compile(r'\bpublic\s+(?:async\s+)?[^\n=;]+?\s+'+re.escape(action)+r'\s*\(')
matches=[l for l in lines if pattern.search(l)]
if not matches:raise ValueError(f'Missing action {controller}.{action}')
return ev(path,matches[0].strip())
COMMON={
'authentication':ev('PlotLine/Services/ProjectAccessFilter.cs','public sealed class ProjectAccessFilter'),
'access':ev('PlotLine/Services/ProjectAccessServices.cs','public interface IProjectAccessService'),
'edit':ev('PlotLine/Services/SubscriptionEnforcementFilter.cs','CanUseFeatureAsync'),
'quota':ev('PlotLine/Services/SubscriptionServices.cs','public interface ISubscriptionService'),
'route':ev('PlotLine/Program.cs','MapControllerRoute'),
'schema':None}
MODULE={}
def module(controller,area,service,anchor,entities,entry='Index',scope='project',view=None):
se=ev(service,anchor);MODULE[controller]={'area':area,'service':{'path':service,'symbol':anchor,'evidence':se},'entities':entities.split(), 'entry':entry,'scope':scope,'view':view}
AREAS.setdefault(area,{'id':area,'name':area.replace('-',' ').title(),'controllers':[]})['controllers'].append(controller)
def condition(id,label,scope,entities,logic,minimum,check,create,evidence,kind='objective',freshness='Read current active records in the authorised scope; recheck before opening or mutating.',performance='Use scoped aggregates/existence checks, not full editor payloads.'):
CONDITIONS[id]={'id':id,'label':label,'scope':scope,'entities':entities.split(),'predicate':logic,'minimumQuantity':minimum,'automaticCheck':check,'preparationCapabilities':create,'evidence':evidence,'knowledgeKind':kind,'freshness':freshness,'performance':performance}
def cap(id,name,controller,action,benefit,hard=(),use=(),optional=(),*,area=None,entry=None,entities=None,extra=(),ui=None,status='implemented-usable',roles=('primary-destination',),scope=None,problem=None,opportunity=None,restrictions=None,notes='',danger=False):
m=MODULE[controller];path=f'PlotLine/Controllers/{controller}Controller.cs';e=[ce(controller,action),m['service']['evidence']]
e.extend(extra)
if ui:e.append(ev(*ui))
v=m['view']
if v and (ROOT/v).exists(): e.append(ev(v,read(v).splitlines()[0]))
ep=entry or m['entry'];entry_controller=controller
launchers={'WriterReview':('Writer','Review'),'WriterAuthoring':('Writer','Write'),'WriterWork':('Writer','Write'),'IntentAssessment':('Writing','Intent'),'WriterWord':('Writer','Write'),'NativeChapterSync':('ParagraphManuscript','Index'),'Geography':('Locations','Index'),'SceneMetrics':('Scenes','Edit'),'Appearance':('ManageAccount','Index'),'Toolbar':('Writer','Index')}
if isinstance(ep,tuple):entry_controller,ep=ep
elif controller in launchers:entry_controller,ep=launchers[controller]
entry_ev=ce(entry_controller,ep)
scope=scope or m['scope']; hard=list(hard);use=list(use);optional=list(optional)
if scope in ["project","book","chapter","scene"] and scope not in hard:hard.insert(0,scope)
# Access/entitlement are availability constraints, not invented story-setup dependencies.
access={'authentication':'authenticated-author','scopeAuthority':'IProjectAccessService + global ProjectAccessFilter; domain procedures/services recheck according to source','subscription':'GET access is distinct from mutation; POST normally requires EditContent through SubscriptionEnforcementFilter. Per-resource/AI/storage/owner restrictions are recorded separately.','additionalRestrictions':restrictions or []}
if status=='planned-only': access['authentication']='not-routable'
source=read(path); helpdocs=[]
if v and (ROOT/v).exists():
keys=re.findall(r'<help-icon[^>]*key="([^"]+)"',read(v))
for h in (ROOT/'PlotLine/Help/Articles').rglob('*.md'):
text=h.read_text()
if any('contextKey: '+k+'\n' in text for k in keys):helpdocs.append(str(h.relative_to(ROOT)))
CAPS.append({'id':id,'name':name,'area':area or m['area'],'internalModule':controller,'description':benefit,'primaryBenefit':benefit,'secondaryBenefits':[opportunity or ('Revisit and maintain '+name.lower()+' in the established workspace.')], 'problemDriven':problem or ('I need a way to '+benefit[0].lower()+benefit[1:].rstrip('.')+'.'), 'opportunityDriven':opportunity or ('I would like to '+benefit[0].lower()+benefit[1:].rstrip('.')+'.'), 'recommendationRoles':list(roles),'scope':scope,'entryPoint':{'controller':entry_controller,'action':ep,'sourceSignature':EVIDENCE[entry_ev]['excerpt'],'routeResolution':'MVC Url.Action with authorised IDs; do not concatenate or guess URLs','sourceEvidence':entry_ev,'requiredContext':{'global':[],'account':[],'project':['projectId'],'book':['projectId','bookId'],'chapter':['chapterId'],'scene':['sceneId'],'record':['id'],'native':['authenticated native installation/session grant']}[scope] if scope in ['global','account','project','book','chapter','scene','record','native'] else [scope]},'operation':{'controller':controller,'action':action,'sourceEvidence':e[0],'execution':'Explicit author action; inspect source verb/CSRF and binder before a future adapter invokes it'},'supportingLogic':[m['service']], 'uiEvidence':v if v and (ROOT/v).exists() else None,'entities':entities.split() if entities is not None else m['entities'],'implementationStatus':status,'statusBasis':'Source-backed operation and business path; not a live usability/permission/subscription test in this audit.','availability':access,'prerequisites':{'allHard':hard,'allUseful':use,'optionalEnhancements':optional,'semantics':'Conditions concern current scoped data/resources, not historical completion of a particular screen. AND between list entries; OR stays inside a condition predicate.'},'helpDocumentation':sorted(helpdocs),'evidence':list(dict.fromkeys(e+[entry_ev,COMMON['access'],COMMON['edit']])), 'automaticReadiness':{'objectiveChecks':hard+use,'subjectiveQuestionsNeeded':['Private author preparation cannot be inferred from missing database rows.'] if use else [],'currentEvaluatorImplemented':False},'risks':(['Destructive/change-of-authoritative-state operation; never execute as an automatic preparation step.'] if danger else [])+([notes] if notes else [])})
# Module anchors are concrete source classes/methods, not inferred menu names.
core='PlotLine/Services/CoreServices.cs'
module('Projects','project-library',core,'public sealed class ProjectService','Projects ProjectUserAccess','Index',view='PlotLine/Views/Projects/Details.cshtml')
module('Books','project-library',core,'public sealed class BookService','Books','Details','book','PlotLine/Views/Books/Details.cshtml')
module('Chapters','chapter-structure',core,'public sealed class ChapterService','Chapters ChapterGoals','Details','chapter','PlotLine/Views/Chapters/Edit.cshtml')
module('ProjectCollaborators','collaboration',core,'public sealed class ProjectCollaborationService','ProjectUserAccess ProjectInvitation','Index',view='PlotLine/Views/ProjectCollaborators/Index.cshtml')
module('Characters','characters',core,'public sealed class CharacterService','Characters CharacterAliases CharacterImages','Index',view='PlotLine/Views/Characters/Details.cshtml')
module('Names','characters','PlotLine/Services/NameIntelligenceService.cs','public sealed class NameIntelligenceService','GivenNames NameLocales NameUsages NameRelationships','Index',view='PlotLine/Views/Names/Index.cshtml')
module('RelationshipMap','relationships',core,'public sealed class RelationshipMapService','CharacterRelationships RelationshipEvents','Index',view='PlotLine/Views/RelationshipMap/Index.cshtml')
module('Locations','locations',core,'public sealed class LocationService','Locations LocationAliases LocationRelationships','Index',view='PlotLine/Views/Locations/Details.cshtml')
module('Geography','geography','PlotLine/Data/GeographyRepository.cs','public sealed class GeographyRepository','LocationGeography GeographicCache GeographicAuthorBatch','State')
module('Maps','maps-authoring','PlotLine/Data/MapRepository.cs','public sealed class MapRepository','StoryMaps MapFeatures MapRelationships','Index',view='PlotLine/Views/Maps/Index.cshtml')
module('FloorPlans','floorplans-design',core,'public sealed class FloorPlanService','FloorPlans FloorPlanFloors FloorPlanBlocks FloorPlanTransitions','Index',view='PlotLine/Views/FloorPlans/Edit.cshtml')
module('Scenes','scene-intentions',core,'public sealed class SceneService','Scenes SceneWorkflow','Edit','scene','PlotLine/Views/Scenes/Edit.cshtml')
module('StoryAssets','story-assets',core,'public sealed class AssetService','StoryAssets AssetAliases AssetDependencies','Index',view='PlotLine/Views/StoryAssets/Details.cshtml')
module('PlotLines','plot-lines',core,'public sealed class PlotService','PlotLines','Index',view='PlotLine/Views/PlotLines/Edit.cshtml')
module('PlotThreads','threads',core,'public sealed class PlotService','PlotThreads ThreadEvents','Index',view='PlotLine/Views/PlotThreads/Edit.cshtml')
module('PlotLineWorkspace','plot-lines','PlotLine/Services/PlotLineWorkspaceService.cs','public sealed class PlotLineWorkspaceService','PlotLines PlotThreads ThreadEvents PlotEventTargetPlotLines','Index',view='PlotLine/Views/PlotLineWorkspace/Index.cshtml')
module('Timeline','timeline',core,'public sealed class TimelineService','Scenes TimelineViewPresets ProjectTimelineSettings','Index',view='PlotLine/Views/Timeline/Index.cshtml')
module('StoryCalendar','calendar',core,'public sealed class StoryCalendarService','Scenes','Index',view='PlotLine/Views/StoryCalendar/Index.cshtml')
module('StoryPoint','story-point','PlotLine/Services/StoryPointContextService.cs','public sealed class StoryPointContextService','Scenes SceneCharacters CharacterKnowledge RelationshipEvents AssetEvents','Index',view='PlotLine/Views/StoryPoint/Index.cshtml')
module('Scenarios','scenarios',core,'public sealed class ScenarioService','Scenarios ScenarioSceneOrder ScenarioWarnings','Index',view='PlotLine/Views/Scenarios/Timeline.cshtml')
module('Warnings','continuity',core,'public sealed class ContinuityValidationService','ContinuityWarnings ValidationRuns ContinuityWarningAcknowledgements','Index',view='PlotLine/Views/Warnings/Index.cshtml')
module('ContinuityExplorer','continuity',core,'public sealed partial class StoryStateService','Scenes SceneCharacters AssetEvents CharacterKnowledge RelationshipEvents','Index',view='PlotLine/Views/ContinuityExplorer/Index.cshtml')
module('Dynamics','story-dynamics',core,'public sealed class DynamicsService','CharacterAttributeEvents CharacterKnowledge RelationshipEvents','Story',view='PlotLine/Views/Dynamics/Story.cshtml')
module('Analytics','story-health',core,'public sealed class AnalyticsService','SceneMetricValues ScenePurposes SceneWorkflow ContinuityWarnings','Index',view='PlotLine/Views/Analytics/Index.cshtml')
module('ProjectMetrics','metrics',core,'public sealed class SceneMetricTypeService','SceneMetricTypes GenreMetricPresets','Index',view='PlotLine/Views/ProjectMetrics/Index.cshtml')
module('SceneMetrics','metrics',core,'public sealed class SceneMetricValueService','SceneMetricTypes SceneMetricValues','UpdateSceneMetricValue','scene')
module('StoryBible','story-bible',core,'public sealed class StoryBibleService','Books Chapters Scenes','Index',view='PlotLine/Views/StoryBible/Index.cshtml')
module('Writer','writer-workspaces',core,'public sealed class WriterWorkspaceService','Books Chapters Scenes WriterWorkingObjectives','Index','book','PlotLine/Views/Writer/Destination.cshtml')
module('WriterAuthoring','writer-workspaces','PlotLine/Services/Writer/WriterAuthoringService.cs','public sealed class WriterAuthoringService','ChapterGoals ScenePurposes SceneOutcomes SceneNotes SceneChecklistItems SceneWorkflow','Inspect','book')
module('WriterPlanning','writing-planning','PlotLine/Services/Writer/WriterPlanning.cs','public static class WriterPlanning','WritingPlans WriterPlannedActivities WritingScheduleItems','Index','book','PlotLine/Views/WriterPlanning/Index.cshtml')
module('WriterWork','writing-recording','PlotLine/Data/WriterWorkRepository.cs','public sealed class WriterWorkRepository','WriterWorkSessions WriterWorkDays','State','book')
module('WritingActivity','writing-recording','PlotLine/Data/WritingActivityRepository.cs','public sealed class WritingActivityRepository','WritingActivityEvents WritingActivitySettings WritingActivityReceipts','Index','book','PlotLine/Views/WritingActivity/Index.cshtml')
module('Writing','context-intent',core,'public sealed class StoryContextService','Scenes ChapterGoals ScenePurposes','Context','book','PlotLine/Views/Writing/Context.cshtml')
module('IntentAssessment','context-intent','PlotLine/Services/IntentAssessmentService.cs','public sealed class IntentAssessmentService','WritingIntentAssessments SceneManuscriptSources SceneChecklistItems','Read','scene')
module('WriterReview','manuscript-review','PlotLine/Services/Writer/WriterReviewService.cs','public sealed class WriterReviewService','WriterReviewObservations BookParagraphManuscripts','Panel','book')
module('ManuscriptReader','manuscript-review','PlotLine/Services/Manuscript/ManuscriptReaderService.cs','public sealed class ManuscriptReaderService','BookParagraphManuscripts','Index','book','PlotLine/Views/ManuscriptReader/_Reader.cshtml')
module('WriterWord','word-companion','PlotLine/Services/Writer/WriterWordService.cs','public sealed class WriterWordService','BookParagraphManuscripts BookChapterValidations BookParagraphPositions','Navigate','book')
module('NativeInstallation','word-companion','PlotLine/Services/NativeCompanion/NativeInstallationService.cs','public sealed class NativeInstallationService','NativeCompanionInstallations','Index','account')
module('NativeWorkspace','word-companion','PlotLine/Services/NativeCompanion/NativePresenceStore.cs','public sealed class NativePresenceStore','BookParagraphManuscripts NativeReviewImports','Workspace','book')
module('WordCompanionHost','word-companion','PlotLine/Services/WordCompanionService.cs','public sealed class WordCompanionService','ManuscriptDocuments','Index','book')
module('ParagraphManuscript','manuscript-sync','PlotLine/Services/Manuscript/ParagraphManuscriptService.cs','public sealed class ParagraphManuscriptService','BookParagraphManuscripts ManuscriptEvidenceIndex','Index','book')
module('NativeChapterSync','manuscript-sync','PlotLine/Services/Manuscript/ChapterSyncService.cs','public sealed class ChapterSyncService','BookChapterValidations BookParagraphManuscripts','Manifest','native')
module('Onboarding','manuscript-import','PlotLine/Services/OnboardingService.cs','public sealed class OnboardingService','OnboardingManuscriptBuilds SceneManuscriptSources','Index','account')
module('IntelligenceReview','story-intelligence','PlotLine/Services/StoryIntelligenceExceptionReviewService.cs','public sealed class StoryIntelligenceExceptionReviewService','StoryIntelligenceReviewCandidates StoryIntelligenceReviewCandidateEvidence','Index','book','PlotLine/Views/IntelligenceReview/Index.cshtml')
module('Exports','export-recovery',core,'public sealed class ExportService','Projects Books Scenes','StoryBible',view=None)
module('Imports','export-recovery','PlotLine/Services/ImportServices.cs','public sealed class ImportService','Projects Books Chapters Scenes','Index','account')
module('BookRecovery','export-recovery','PlotLine/Services/BookRecoveryService.cs','public sealed class BookRecoveryService','BookRecoveryOperations BookRecoveryMappings BookRecoveryOrigins BookRecoveryExternalReferences','Backup','project','PlotLine/Views/BookRecovery/Backup.cshtml')
module('ProjectRestorePoints','export-recovery','PlotLine/Services/ProjectRestorePointService.cs','public sealed class ProjectRestorePointService','ProjectRestorePoints ProjectRestoreHistory','Index',view='PlotLine/Views/ProjectRestorePoints/Index.cshtml')
module('Archives','archive-recovery',core,'public sealed class ArchiveService','Projects Books Chapters Scenes Characters Locations StoryAssets PlotLines PlotThreads','Index',view='PlotLine/Views/Archives/Index.cshtml')
module('WritingProblems','problem-solver','PlotLine/Services/WritingSolverEngine.cs','public static class WritingSolverEngine','WritingSolverVersions','Index','global','PlotLine/Views/WritingProblems/Index.cshtml')
module('WriterInvestigations','guided-investigation','PlotLine/Services/Investigations/InvestigationService.cs','public sealed class InvestigationService','WriterInvestigations WriterInvestigationEvents WriterInvestigationCatalogues','Index','book','PlotLine/Views/WriterInvestigations/Index.cshtml')
module('Appearance','platform-pwa','PlotLine/Data/AppearanceRepository.cs','public sealed class AppearanceRepository','','Theme','account')
module('Toolbar','platform-pwa','PlotLine/Services/ToolbarCommands.cs','public static class ToolbarCommands','','Save','account')
module('Help','help-support','PlotLine/Services/HelpService.cs','public sealed class HelpService','','Index','global','PlotLine/Views/Help/Index.cshtml')
module('FeatureRequests','help-support','PlotLine/Services/FeatureRequestService.cs','public sealed class FeatureRequestService','FeatureRequests FeatureRequestMessages','Index','account','PlotLine/Views/FeatureRequests/Index.cshtml')
module('ManageAccount','account-access','PlotLine/Services/SubscriptionServices.cs','public sealed class SubscriptionService','AppUser UserSubscription','Index','account','PlotLine/Views/ManageAccount/Index.cshtml')
module('Account','account-access','PlotLine/Services/AuthServices.cs','public sealed class','AppUser UserTwoFactor','Login','global')
module('Admin','restricted-administration','PlotLine/Controllers/AdminController.cs','public sealed class AdminController','StoryIntelligenceRuns IllustrationLibraryItems','Index','account')
def con(id,label,entities,logic,minimum,create,controller,action,scope='project',check='feasible-existing-read',kind='objective',more=()):
condition(id,label,scope,entities,logic,minimum,{'status':check,'existingRead':MODULE[controller]['service'],'implementationNote':'Specification only. Reuse bounded authorised reads or add scoped aggregate procedures in an approved later implementation; do not invoke mutating workflow actions for readiness.'},create,[ce(controller,action),MODULE[controller]['service']['evidence'],*more],kind)
con('project','Accessible active project','Projects ProjectUserAccess','AND(active project, active author membership)',1,['projects.create'],'Projects','Details')
con('book','Accessible active book in its project','Books Projects ProjectUserAccess','AND(book active, book.ProjectID=current project, current author access)',1,['books.create','imports.core'],'Books','Details','book')
con('chapter','Active chapter in the selected book','Chapters Books','AND(chapter active, chapter.BookID=selected book)',1,['chapters.record','imports.core'],'Chapters','Edit','chapter')
con('scene','Active scene in selected chapter/book','Scenes Chapters','AND(scene active, scene.ChapterID belongs to selected book)',1,['scenes.record','imports.core'],'Scenes','Edit','scene')
con('scenes','Recorded story scenes for substantive inspection','Scenes Chapters','COUNT(active scenes in selected project/book)>0',1,['scenes.record','imports.core'],'Timeline','Index')
con('characters','Characters in this project','Characters','COUNT(active characters in project)>0',1,['characters.record','intelligence.characters'],'Characters','Index')
con('character','Selected authorised character','Characters','Selected character belongs to current project and is not archived',1,['characters.record'],'Characters','Details','record')
con('character-pair','Two distinct characters in one project','Characters','AND(count>=2, source!=target, both active in current project)',2,['characters.record','intelligence.characters'],'RelationshipMap','Save')
con('relationship','Existing relationship for history inspection','CharacterRelationships','Selected relationship and both characters are in authorised project',1,['relationships.baseline'],'Dynamics','Relationship','record')
con('relationship-history','Recorded relationship change events','RelationshipEvents CharacterRelationships','COUNT(relationship events within selected narrative scope)>0',1,['relationships.scene-events'],'Dynamics','Relationship')
con('locations','Recorded active locations','Locations','COUNT(active locations in current project)>0',1,['locations.record','intelligence.locations'],'Locations','Index')
con('location','Selected location','Locations','Location belongs to current project and is not archived',1,['locations.record'],'Locations','Details','record')
con('location-pair','Distinct compatible locations','Locations','AND(two distinct locations in project, valid relationship type/endpoints)',2,['locations.record'],'Locations','AddRelationship')
con('geographic-hierarchy','Eligible real-world geographical hierarchy','Locations LocationTypes LocationGeography','AND(recognised country/qualified region, supported geographical types, eligible ancestor chain); not fictional/no-match',None,['locations.hierarchy','geography.lookup'],'Geography','State',more=[ev('PlotLine/Controllers/GeographyController.cs','rules.Query(chain)')])
con('geographic-confirmed','Confirmed or usable geographical results','LocationGeography GeographicCache','AND(current lookup generation matches, usable candidates/coordinates, not excluded); provider pending != confirmed',1,['geography.lookup','geography.confirm'],'Geography','Confirm')
con('map','Selected map in project','StoryMaps','Existing map owned by scoped project; revision current before save',1,['maps.create'],'Maps','State')
con('map-features','Map pieces available to relate or arrange','MapFeatures MapRelationships','At least two distinct feature endpoints on the selected map',2,['maps.pieces'],'Maps','Save',more=[ev('PlotLine/Services/MapValidation.cs','r.SourceID == r.TargetID')])
con('map-boundaries','Compatible area boundaries','MapFeatures','Two eligible boundaries selected; topology/geometry validates. Exact geometric compatibility must use existing geometry validators.',2,['maps.areas'],'Maps','Save',check='feasible-validator-needed',more=[ev('PlotLine/Services/MapValidation.cs','MapTopologyValidation.Validate')])
con('map-geographic-links','Map pieces linked to usable geographic locations','MapFeatures LocationGeography','AND(selected map feature LocationIDs, usable confirmed geographic positions for relevant locations)',1,['maps.link-locations','geography.confirm'],'Maps','Save')
con('scene-map-links','Scenes linked to locations represented on map','Scenes Locations MapFeatures','AND(scene.PrimaryLocationID or supported inherited geography resolves to map feature, selected book/scenario scope)',1,['scenes.locations','maps.link-locations'],'Maps','Story',check='feasible-composer-needed',more=[ev('PlotLine/Services/MapStoryService.cs','public static Func<int?, MapStoryLocation> Resolver')])
con('journey-legs','Projected character journey leg','SceneCharacters Scenes MapJourneyNotes','AND(physical appearances of one character in ordered scenes, projected from/to leg exists in current map/scenario)',1,['scenes.cast','scenes.locations'],'Maps','Journey',more=[ev('PlotLine/Controllers/MapsController.cs','projection.Legs.Any')])
con('floorplan','Selected project floor plan','FloorPlans Locations','Existing plan belongs to project; root location is created or selected by plan workflow',1,['floorplans.create'],'FloorPlans','Edit')
con('floor','Floor in the selected plan','FloorPlanFloors','AND(floor belongs to plan, valid dimensions). New plan creates a Ground Floor automatically.',1,['floorplans.create','floorplans.floors'],'FloorPlans','AddFloor',more=[ev(core,'Name = "Ground Floor"')])
con('room-choice','Existing room location OR inline room creation','Locations FloorPlanBlocks','OR(selected valid project LocationID, inline Create mode with nonempty room/location name)',None,['locations.record'],'FloorPlans','AddBlock',more=[ev(core,'private async Task<int> ResolveBlockLocationAsync')])
con('transition-endpoints','Two distinct placed room locations and valid transition geometry','FloorPlanBlocks FloorPlanFloors FloorPlanTransitions','AND(valid transition type, distinct From/To locations placed on correct floor; stairs require compatible second floor/endpoint)',2,['floorplans.rooms','floorplans.floors'],'FloorPlans','SaveTransition',check='feasible-validator-needed',more=[ev(core,'private static void ValidateTransition')])
con('floor-occupancy','Saved plan-linked scene occupancy rows','SceneFloorPlanOccupancy Scenes FloorPlanBlocks','AND(scene plan link, occupant rows linked to room locations placed in plan). Do not infer occupancy from cast membership alone.',1,[],'FloorPlans','Edit',check='feasible-read; authoring-producer-unresolved',more=[ev('PlotLine/Data/Repositories.cs','"dbo.SceneFloorPlanOccupancy_ListByFloorPlan"')])
con('asset','Selected story asset','StoryAssets','Asset belongs to current authorised project',1,['assets.record'],'StoryAssets','Details','record')
con('asset-pair','Two assets with valid state constraints','StoryAssets AssetDependencies AssetStates','AND(distinct source/target assets in same project, compatible dependency type/state)',2,['assets.record'],'StoryAssets','AddDependency')
con('plotline','Selected plot line','PlotLines','Active plot line belongs to current project; scope Project or Book respected',1,['plotlines.record'],'PlotLines','Edit','record')
con('thread','Selected plot thread','PlotThreads PlotLines','Thread belongs to plot line within current project and respects book visibility',1,['threads.record'],'PlotThreads','Edit','record')
con('thread-events','Thread or plot contributions linked to ordered scenes','ThreadEvents PlotThreads PlotEventTargetPlotLines','COUNT(valid scoped contribution events)>0; scene order current',1,['threads.scene-events'],'PlotLineWorkspace','Index')
con('scene-pair','Distinct scenes for a dependency','Scenes SceneDependencies','AND(two distinct active scenes, valid source/target chapter/book/project, dependency type)',2,['scenes.record'],'Scenes','AddSceneDependency')
con('time-placement','Scenes with usable story dates/times','Scenes TimeModes DurationUnits','At least one scoped scene has valid absolute/resolved placement; relative/unknown times must remain explicitly unplaced',1,['scenes.time'],'StoryCalendar','Index')
con('metric-types','Active metric definitions with valid ranges','SceneMetricTypes','COUNT(active types in project)>0; range min<=value<=max',1,['metrics.configure'],'ProjectMetrics','Index')
con('metric-values','Recorded comparable scene metric values','SceneMetricValues SceneMetricTypes Scenes','Relevant active metric values in selected story sequence; no-data is not zero intensity',1,['scenes.metrics','intelligence.metrics'],'Analytics','Index')
con('scenario','Selected saved alternate-order scenario','Scenarios ScenarioSceneOrder','Scenario belongs to authorised project; scene/chapter references still valid',1,['scenarios.create'],'Scenarios','Timeline','record')
con('scene-source','Saved canonical scene manuscript source','SceneManuscriptSources','Nonempty SceneManuscriptSources.SourceText for selected scene, current accepted analysis/source generation when relevant',1,['imports.core','sync.accepted'],'IntentAssessment','Read','scene')
con('accepted-source','Accepted paragraph manuscript for selected book/chapter','BookParagraphManuscripts','AND(current manuscript identity/revision, accepted chapter paragraphs belong to chosen book). Summaries are not accepted prose.',1,['sync.accepted'],'ManuscriptReader','Index','book')
con('linked-manuscript','Correct linked manuscript identity','ManuscriptDocuments Books','Selected book is linked to exact intended manuscript/document identity, not a title match',1,['word.link'],'ParagraphManuscript','Index','book')
con('native-session','Live authenticated exact native Word session','NativeCompanionInstallations','AND(unexpired installation/grant, supported Windows/Word, exact book/manuscript/session/instance, current lease). Connection alone != Word/document binding.',None,['word.connect','word.link'],'NativeWorkspace','Workspace','native',check='runtime-handshake-only',more=[ev('PlotLine/Services/Writer/WriterWordService.cs','public async Task<bool> Navigate')])
con('verified-position','Current accepted and verified saved Word position','BookChapterValidations BookParagraphPositions BookParagraphManuscripts','AND(exact live session, saved Word revision, manuscript identity, current proof/hash/expiry, accepted revision, ack support); navigation is completed only on acknowledgement',None,['sync.chapter-check','sync.accepted'],'WriterWord','Navigate','native',check='runtime-handshake-only')
con('audio-session','Active chapter-scoped AudioReview recording','WriterWorkSessions','AND(current author owner/session UUID, chapter selected, recording allowed); native player binding is separate',1,['recording.audio'],'WriterWork','Start','book')
con('supported-player','Live supported media capabilities for bound recording','WriterWorkSessions NativeCompanionInstallations','AND(recent media observation<=45 seconds, exact native lease/grant, player not unavailable/error, requested operation advertised)',None,['word.connect'],'WriterWork','Command','native',check='runtime-handshake-only')
con('session','Active author-owned writing session','WriterWorkSessions','Unended active session in current author/book scope; valid session UUID',1,['recording.sessions'],'WriterWork','State','book')
con('recording-enabled','Owner-authority recording settings enabled','WritingActivitySettings Books','AND(book owner, recording enabled, retention settings valid). Collaborator view does not grant owner recording authority.',None,['recording.settings'],'WritingActivity','Settings','book',more=[ev('PlotLine/Sql/262_WriterWorkSessions.sql',"Owner authority required")])
con('activity-evidence','Retained accepted activity or sessions','WritingActivityEvents WriterWorkSessions WriterWorkDays','Retained book/author evidence exists; historical coverage window/erasure/baseline explicit',1,['recording.sessions','recording.baseline'],'WritingActivity','Index','book')
con('writing-plan','Saved scoped writing plan and availability','WritingPlans','Author-authorised plan with correct book/project, availability and valid goal settings',1,['planning.availability'],'Writer','ScheduleSetup','book')
con('eligible-tasks','Eligible unscheduled target chapters/scenes within available capacity','WriterPlannedActivities WritingScheduleItems Scenes Chapters','AND(eligible target scope, not already scheduled/completed where prohibited, blocked policy, positive capacity); completion is not inferred from a scene status',1,['scenes.record','planning.availability'],'WriterPlanning','Index','book')
con('intentions','At least one saved author objective','ChapterGoals ScenePurposes SceneChecklistItems','OR(scene purpose text, planned outcome, chapter goal, emotional goal, must include, reader takeaway, checklist objective)',1,['writer.intentions'],'IntentAssessment','Read','scene')
con('observation','Saved private review observation','WriterReviewObservations','Current author owns observation in selected book/chapter; original manuscript anchors immutable',1,['review.observations'],'WriterReview','Save','book')
con('investigation','Saved private versioned investigation','WriterInvestigations WriterInvestigationEvents','Current author owns investigation, book/project matches; pinned catalogue version exists',1,['investigations.run'],'WriterInvestigations','Index','book')
con('investigation-preview','Development host and enabled synthetic catalogue','WriterInvestigationCatalogues','AND(Development environment, WriterInvestigations enabled, valid synthetic catalogue published); Production always unavailable in Phase3D.1',1,[],'WriterInvestigations','Index','account',more=[ev('PlotLine/Services/Investigations/InvestigationService.cs','public bool Enabled')])
con('si-available','AI entitlement, configuration and explicit eligible analysis request','UserSubscription SubscriptionLevel StoryIntelligenceConsents','AND(StoryIntelligence entitlement, configured provider/models, required consent/context, request scope); only explicit work may call AI',None,['account.subscription','intelligence.consent'],'Onboarding','StartStoryIntelligence','book',check='mixed-runtime-and-account',more=[ev('PlotLine/Services/IntentAssessmentService.cs','CanUseFeatureAsync')])
con('si-scenes-complete','Completed current source-backed scene analysis','StoryIntelligenceSceneResults StoryIntelligenceJobs StoryIntelligenceBookPipelines','AND(source materialised, current analysis complete, no blocking active run, book pipeline consistent)',1,['intelligence.analyse'],'Onboarding','StoryIntelligenceReviewCentre','book')
con('si-character-gate','Character identity review completed for current generation','StoryIntelligenceReviewCandidates StoryIntelligenceBookPipelines','CharacterGateSatisfied and current persisted peer candidate generation ready',1,['intelligence.characters'],'IntelligenceReview','Index','book',more=[ev('PlotLine/Controllers/IntelligenceReviewController.cs','frame.CharacterGateSatisfied')])
con('si-candidates','Current prepared persisted review candidates','StoryIntelligenceReviewCandidateGenerations StoryIntelligenceReviewCandidates StoryIntelligenceNarrativeCandidates','Current module generation ready; missing/failed preparation must not be silently reconstructed during GET',1,['intelligence.analyse'],'Onboarding','StoryIntelligenceReviewCentre','book',more=[ev('docs/story-intelligence/single-system-runtime.md','Normal detailed review GETs perform:')])
con('backup-package','Validated supported backup/import package','BookRecoveryOperations BookRecoveryMappings','AND(valid JSON/schema/file, correct authenticated staging ownership, validated graph/checksum/external links, capacity reservation); a physical file alone is not sufficient',None,['recovery.book-backup','recovery.project-export'],'BookRecovery','Preview','account',check='validation-required-no-side-effects')
con('restore-point','Owner-scoped project restore point','ProjectRestorePoints','Selected restore point belongs to authorised project; confirmation and pre-restore safety apply',1,['recovery.restore-point'],'ProjectRestorePoints','Restore')
con('owner','Project or book owner authority for operation','ProjectUserAccess Books','Owner role in authoritative permission checks; active membership alone is insufficient',None,[],'Projects','Archive',check='feasible-existing-access-service')
con('upload-file','User supplied valid upload and storage allowance','UserFile','AND(nonempty supported file, size/type validation, current storage entitlement, allowed owner/scope)',None,[],'Scenes','SaveAttachment',check='mixed-runtime-and-account')
con('private-understanding','Author has relevant information outside the application','', 'Unknown from missing rows: ask whether relevant private material exists and which characters/places/events the author wants to record',None,[],'WriterInvestigations','Index',check='not-objectively-verifiable',kind='subjective-author-question')
# Library, identity and cast. One entry per meaningful benefit or materially distinct data contract.
cap('projects.create','Create a story project','Projects','Create','Keep a story universe and its books together.',scope='account',roles=['preparation-capability'])
cap('projects.manage','Manage project settings and defaults','Projects','Save','Maintain project identity and genre-based defaults.',['project'],roles=['supporting-capability'])
cap('projects.overview','Inspect project and book overview','Projects','Details','See books, story records and next workspace choices together.',['project'])
cap('projects.activity','Review project change activity','Projects','Activity','Find which recorded story changes were made recently.',['project'],entities='ProjectActivity',roles=['supporting-capability'])
cap('books.create','Add and describe a book','Books','Save','Give a book its own title, target, era and manuscript context.',['project'],entry='Create',scope='project',roles=['preparation-capability'],restrictions=['CanCreateBookAsync resource entitlement; manual and import begin modes.'])
cap('books.manage','Maintain book metadata and cover','Books','Edit','Keep book identity, status, target words, era and presentation up to date.',['book'],roles=['supporting-capability'])
cap('books.overview','Inspect chapters and book progress','Books','Details','See a book’s structure and existing work before choosing an action.',['book'],['scenes'])
cap('books.unlink','Unlink a manuscript safely','Books','UnlinkManuscript','Correct the association between a book and the wrong manuscript.',['book','linked-manuscript'],roles=['supporting-capability'],danger=True)
cap('collaboration.invite','Invite project collaborators','ProjectCollaborators','Add','Share an existing project with an authorised collaborator.',['project','owner'],roles=['supporting-capability'],restrictions=['Invitation quota, email/role validation and owner authority.'])
cap('collaboration.manage','Manage collaborator roles and access','ProjectCollaborators','Remove','Review and revoke project collaboration access.',['project','owner'],roles=['supporting-capability'],danger=True)
cap('chapters.record','Create or describe chapters','Chapters','Save','Organise story material into named ordered chapters.',['book'],entry='Create',scope='book',roles=['preparation-capability'],restrictions=['CanCreateChapterAsync for new chapters.'])
cap('chapters.pov','Assign chapter and inherited scene point of view','Chapters','SetScenesPov','Make viewpoint assignments consistent while respecting author overrides.',['chapter'],['characters'],optional=['intentions'],roles=['supporting-capability'])
cap('chapters.inspect','Inspect chapter goals, scenes and revision state','Chapters','Details','See what a chapter needs to achieve and how its scenes are progressing.',['chapter'],['scenes'])
cap('characters.record','Record and develop character profiles','Characters','Save','Keep names, aliases, role, description, age and character context in one place.',['project'],entry='Create',roles=['preparation-capability','primary-destination'],restrictions=['CanCreateCharacterAsync; project-level character quota.'])
cap('characters.merge','Merge duplicate character identities','Characters','Merge','Keep one character identity when imported or entered names refer to the same person.',['character','character-pair'],entry='Merge',scope='record',roles=['supporting-capability'],danger=True)
cap('characters.naming','Choose preferred character names and aliases','Characters','SetPreferredName','Use a consistent display name without losing recognised aliases.',['character'],entry='Details',scope='record',roles=['supporting-capability'])
cap('characters.images','Add reference portraits and crop an avatar','Characters','UploadImage','Recognise and visualise a character through uploaded reference imagery.',['character','upload-file'],entry='Details',scope='record',entities='Characters CharacterImages UserFile',roles=['optional-enhancement'])
cap('characters.profile-review','Inspect retained character intelligence and evidence','Characters','Details','Compare saved character interpretation, age and evidence with recorded profile facts.',['character'],entry='Details',scope='record',entities='CharacterIntelligenceProfiles CharacterIntelligenceEvidenceEvents Characters',roles=['supporting-capability'])
cap('characters.reanalyse','Explicitly reanalyse a character','Characters','Reanalyse','Refresh character interpretation from available saved manuscript evidence.',['character','si-available'],['scene-source'],entry='Details',scope='record',status='implemented-restricted',entities='CharacterIntelligenceProfiles CharacterIntelligenceEvidenceEvents CharacterEnrichmentRuns',restrictions=['Explicit AI operation; actual entitlement and source eligibility must be rechecked.'])
cap('characters.appearances','Trace character appearances and attribute history','Characters','Details','Check where a character appears and how recorded attributes change.',['character'],['scenes'],entry='Details',scope='record',entities='SceneCharacters CharacterAttributeEvents CharacterKnowledge',roles=['supporting-capability'])
cap('names.find','Find names using locale, era and usage evidence','Names','Index','Choose plausible names while seeing reference usage and names already used in the project.',['project'],optional=['book'],entities='GivenNames NameLocales NameUsages NameRelationships Characters',notes='Reference package readiness can be checked; cultural/literary suitability remains an author judgement.')
cap('relationships.baseline','Record starting character relationships','Characters','SaveInitialRelationship','Establish how two characters relate before later scene changes.',['character-pair'],entry='Details',scope='project',entities='CharacterRelationships RelationshipTypes RelationshipStates',roles=['preparation-capability','primary-destination'])
cap('relationships.family','Record family and other typed connections','Characters','SaveInitialRelationship','Keep parent, sibling and other family connections explicit rather than relying on memory.',['character-pair'],entry='Details',entities='CharacterRelationships RelationshipTypes RelationshipCategories',extra=[ev('PlotLine/Sql/032_Phase2C_RelationshipCategories.sql',"(N'Family', 10)")],notes='Uses typed relationship records and the generic map; no dedicated genealogical tree renderer was verified.')
cap('relationships.network','Explore the character relationship network','RelationshipMap','Index','See connections, isolation and focal relationships across the cast.',['project'],['character-pair','relationship-history'],optional=['scene'])
cap('relationships.at-point','Compare relationships at a story position','RelationshipMap','State','Inspect what relationship states hold at a selected scene rather than mixing all moments together.',['project'],['relationship-history','scenes'],optional=['scene'])
cap('relationships.workspace-edit','Edit a relationship from its visual workspace','RelationshipMap','Save','Adjust a starting relationship or record a scene-specific change without leaving the map.',['character-pair'],optional=['scene'],roles=['supporting-capability'])
cap('relationships.scene-events','Record relationship development in a scene','Scenes','AddRelationshipEvent','Track changes of relationship state, intensity and mutual awareness over the story.',['scene','character-pair'],entities='RelationshipEvents CharacterRelationships',area='relationships')
cap('relationships.evolution','Inspect a relationship’s evolution','Dynamics','Relationship','Understand the sequence of recorded changes between two characters.',['relationship'],['relationship-history'],entry='Relationship',scope='record',area='relationships')
cap('locations.record','Record and describe story locations','Locations','Save','Keep settings, aliases, types and useful scene locations consistent.',['project'],entry='Create',roles=['preparation-capability','primary-destination'])
cap('locations.hierarchy','Organise nested locations','Locations','Reparent','Represent rooms inside buildings, settlements inside regions and other containment.',['location'],entry='Index',optional=['locations'],roles=['preparation-capability','supporting-capability'],notes='Actual hierarchy/cycle/concurrency validation must be retained; containment is not geographical lookup certainty.')
cap('locations.relations','Record spatial relationships between locations','Locations','AddRelationship','Describe how places connect beyond a simple parent-child hierarchy.',['location-pair'],entry='Details',roles=['preparation-capability','supporting-capability'])
cap('locations.used-here','Inspect where a location is used in the story','Locations','Details','Find scene and story references to a place before changing it.',['location'],['scenes'],entry='Details',scope='record',roles=['supporting-capability'])
cap('locations.merge','Merge duplicate location records','Locations','Merge','Unify aliases and duplicate settings while preserving their uses.',['location','location-pair'],entry='Merge',scope='record',roles=['supporting-capability'],danger=True)
cap('locations.naming','Maintain preferred location names and aliases','Locations','SetPreferredName','Use one display name while retaining alternate recognised place names.',['location'],entry='Details',scope='record',roles=['supporting-capability'])
cap('geography.lookup','Request eligible real-world geographical lookups','Geography','RequestLocations','Find candidate real-world coordinates using explicit geographical context.',['locations','geographic-hierarchy'],entry='State',entities='LocationGeography GeographicCache GeographicAuthorBatch GeographicProviderGate',status='implemented-restricted',restrictions=['Provider configuration/rate gates and supported geographical hierarchy; fictional locations are not geocoded by assumption.'])
cap('geography.confirm','Confirm or exclude geographical candidates','Geography','Confirm','Resolve ambiguity before treating a place as geographically positioned.',['location'],['geographic-hierarchy'],entry='State',entities='LocationGeography',roles=['preparation-capability','supporting-capability'],notes='Candidate-generation/version check, retry and explicit exclusion are part of this workflow; pending is not confirmed.')
cap('maps.create','Create maps and editable starter layouts','Maps','Create','Sketch a story world without first cataloguing all its places.',['project'],entities='StoryMaps MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapsNewDialog"'),roles=['primary-destination','preparation-capability'],problem='I cannot picture how the places in my story fit together.',notes='Blank/provisional map pieces need no pre-existing Locations. Parent map is optional.')
cap('maps.pieces','Place, edit and label map pieces','Maps','Save','Build a visual setting from provisional markers, paths and symbols.',['map'],optional=['locations'],entities='StoryMaps MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapsAssets"'),roles=['primary-destination','preparation-capability'])
cap('maps.areas','Draw and reshape mapped areas','Maps','Save','Represent terrain, regions and bounded spaces with editable geometry.',['map'],entities='MapFeatures',extra=[ev('PlotLine/wwwroot/js/maps-engine.js','function areaGeometry')],roles=['primary-destination','preparation-capability'])
cap('maps.shared-boundaries','Join and maintain shared area boundaries','Maps','Save','Keep neighbouring areas consistent when their shared border changes.',['map','map-boundaries'],entities='MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','data-topology="join"'),extra=[ev('PlotLine/Services/MapValidation.cs','MapTopologyValidation.Validate')],roles=['supporting-capability'])
cap('maps.routes','Draw paths and relate route endpoints','Maps','Save','Plan visible routes and connections between places.',['map'],['map-features'],entities='MapFeatures MapRelationships',extra=[ev('PlotLine/Models/MapModels.cs','public Guid? StartFeatureID')])
cap('maps.link-locations','Connect a map piece to a story location or floor plan','Maps','Save','Make a sketch participate in canonical story context rather than remain a picture only.',['map'],['locations'],entities='MapFeatures Locations FloorPlans',extra=[ev('PlotLine/Models/MapModels.cs','public bool CreateLocation')],roles=['preparation-capability','supporting-capability'],notes='Existing LocationID or explicit inline location creation; linking a FloorPlan is an optional additional association.')
cap('maps.hierarchy','Create nested maps and navigate map levels','Maps','Create','Move from a world or region map into a more detailed child map.',['map'],entities='StoryMaps MapFeatures',extra=[ev('PlotLine/Models/MapModels.cs','public int? ParentMapID')],roles=['supporting-capability'])
cap('maps.relational-arrangement','Arrange map pieces from directional relationships','Maps','Save','Preview a useful layout from recorded directions and relative distance.',['map','map-features'],entities='MapRelationships MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapsArrangeDialog"'),notes='Measured distances do not automatically set map scale; arrangement is an explicit preview/apply operation.')
cap('maps.geographic-positioning','Position linked pieces geographically','Maps','Save','Use confirmed real-world positions to inform an explicitly applied map arrangement.',['map','map-geographic-links'],entities='MapFeatures LocationGeography',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapsGeographicApply"'),status='implemented-restricted',restrictions=['Useful geographic result availability; author chooses apply.'])
cap('maps.reference-image','Use a reference image beneath the map','Maps','UploadReference','Work over a familiar visual reference while keeping editable map records.',['project','upload-file'],['map'],entities='MapReferenceImages StoryMaps',extra=[ev('PlotLine/Services/MapReferenceImageService.cs','public sealed class MapReferenceImageService')],roles=['optional-enhancement'])
cap('maps.story-scenes','View where scenes occur on a map','Maps','Story','Locate story scenes and identify unmapped or missing settings.',['map'],['scene-map-links'],area='maps-story',entities='Scenes MapFeatures Locations',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapStoryLens"'),extra=[ev('PlotLine/Services/MapStoryService.cs','public static MapStoryProjection Compose')])
cap('maps.story-characters','Compare characters’ movements across mapped scenes','Maps','Story','See where characters appear and compare their journeys without assuming mentions are physical presence.',['map'],['scene-map-links','characters'],area='maps-story',entities='SceneCharacters Scenes MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapStoryCharacter1"'),extra=[ev('PlotLine/Services/MapStoryService.cs','PhysicalAppearance')])
cap('maps.story-plot-time','Explore mapped story by chapter, plot line, time or alternate order','Maps','Story','Compare geography with narrative structure and placed story time.',['map'],['scene-map-links'],optional=['thread-events','time-placement','scenario'],area='maps-story',entities='Scenes PlotLines Scenarios MapFeatures',ui=('PlotLine/Views/Maps/Index.cshtml','id="mapStoryPlot1"'))
cap('maps.travel-observations','Inspect and annotate character travel legs','Maps','Journey','Notice travel assumptions and record method or typical duration for an actual projected journey.',['map','journey-legs'],area='maps-story',entities='MapJourneyNotes SceneCharacters Scenes',notes='Journey annotations are not a route-finding or travel-time simulation engine; leg membership is validated.')
cap('floorplans.create','Create a building or setting floor plan','FloorPlans','Create','Make the physical arrangement of a scene setting visible.',['project'],entities='FloorPlans FloorPlanFloors Locations',problem='I lose track of where people are in complicated interior scenes.',roles=['primary-destination','preparation-capability'],extra=[ev(core,'Name = "Ground Floor"')],notes='May create its matching root Location and Ground Floor; pre-entering every room or character is not a hard prerequisite.')
cap('floorplans.floors','Add levels and configure reference floors or grids','FloorPlans','AddFloor','Separate levels while keeping a useful grid and spatial reference.',['floorplan'],entry='Edit',entities='FloorPlanFloors Locations',roles=['preparation-capability','supporting-capability'])
cap('floorplans.rooms','Create or place room blocks and resize the layout','FloorPlans','AddBlock','Explore how rooms and spaces connect through editable blocks.',['floor','room-choice'],entry='Edit',entities='FloorPlanBlocks FloorPlanFloors Locations',roles=['primary-destination','preparation-capability'],notes='Inline room creation is an OR alternative to selecting an existing Location, not an additional mandatory setup step.')
cap('floorplans.link-room','Link a plan block to a canonical room location','FloorPlans','LinkBlockLocation','Connect a drawn room to story records so other workspaces can refer to it.',['floorplan'],['floor'],entry='Edit',entities='FloorPlanBlocks Locations',roles=['supporting-capability','preparation-capability'])
cap('floorplans.transitions','Represent doors, entrances and secret passages','FloorPlans','SaveTransition','Make permitted room-to-room movement and entrances explicit.',['floor','transition-endpoints'],entry='Edit',entities='FloorPlanTransitions FloorPlanBlocks',roles=['primary-destination','preparation-capability'])
cap('floorplans.stairs','Connect floors with stairs or ladders','FloorPlans','SaveTransition','Check movement between levels and reciprocal landing connections.',['floor','transition-endpoints'],entry='Edit',entities='FloorPlanTransitions FloorPlanFloors',extra=[ev(core,'await SaveReciprocalStairTransitionAsync')],roles=['supporting-capability'])
cap('floorplans.background','Align a reference image under a floor grid','FloorPlans','UploadBackground','Use an existing plan image without giving up editable rooms and transitions.',['floor','upload-file'],entry='Edit',entities='FloorPlanFloors UserFile',roles=['optional-enhancement'])
cap('floorplans.scene-occupancy','Inspect saved scene occupancy on a floor plan','FloorPlans','Edit','See saved character and asset occupancy plus missing-placement warnings.',['floorplan'],['floor-occupancy'],entry='Edit',area='floorplans-occupancy',entities='SceneFloorPlanOccupancy FloorPlanBlocks Scenes',extra=[ev(core,'private static IReadOnlyList<FloorPlanOccupancyWarningViewModel> BuildFloorPlanOccupancyWarnings')],notes='Read projection exists. Producer/write UI is separately unresolved; cast membership alone is not enough to promise visible tokens.')
cap('floorplans.position-occupants','Author precise scene occupant placements','FloorPlans','Edit','Potentially maintain explicit character/asset room positions for scene staging.',['floorplan','scene'],['floor-occupancy'],entry='Edit',area='floorplans-occupancy',entities='SceneFloorPlanOccupancy',status='partially-implemented',roles=['supporting-capability'],extra=[ev('PlotLine/Data/Repositories.cs','public async Task SaveAsync(int sceneId, int? floorPlanId')],notes='Repository write contract and SQL exist, but no application caller of ISceneFloorPlanOccupancyRepository.SaveAsync was found. Do not generate a preparation step promising this write action until traced/implemented.')
# Scene composition and story state. Avoid treating optional metadata as compulsory setup.
cap('scenes.record','Create and describe a scene','Scenes','Save','Break a chapter into ordered scenes without needing all supporting metadata first.',['chapter'],entry='Create',scope='chapter',roles=['primary-destination','preparation-capability'],restrictions=['CanCreateSceneAsync for new scenes.'])
cap('scenes.intentions','Record scene purpose and intended change','Scenes','SaveScenePurpose','Clarify why a scene exists and what should change by its end.',['scene'],entities='ScenePurposes SceneOutcomes Scenes')
cap('scenes.time','Record scene time, duration and uncertainty','Scenes','SaveSceneDetails','Keep absolute, relative and uncertain story time distinguishable.',['scene'],entities='Scenes TimeModes DurationUnits TimeConfidences',roles=['preparation-capability','primary-destination'])
cap('scenes.revision','Set canonical scene revision status','Scenes','SaveSceneDetails','Keep drafting and revision progress in an explicit authoritative status.',['scene'],entities='Scenes RevisionStatuses',roles=['supporting-capability'])
cap('scenes.cast','Record character participation, roles and viewpoint','Scenes','SaveSceneCharacters','Distinguish present characters, mentions, viewpoint and scene-specific state.',['scene','characters'],entities='SceneCharacters Characters CharacterRoleInSceneTypes PresenceTypes',area='scene-cast',roles=['preparation-capability','primary-destination'])
cap('scenes.character-state','Record appearance, outfit, physical and emotional state','Scenes','UpdateSceneCharacter','Maintain scene-specific physical and emotional continuity instead of overwriting a character’s general profile.',['scene','character'],entities='SceneCharacters',area='scene-cast',roles=['primary-destination'])
cap('scenes.locations','Assign scene and participant locations','Scenes','SaveSceneLocations','Keep scene setting and local movement explicit for geography and continuity.',['scene','locations'],entities='Scenes SceneCharacters Locations',area='scene-cast',roles=['preparation-capability','primary-destination'])
cap('scenes.assets','Record assets present in a scene','Scenes','SaveSceneAssets','Know which important objects or story assets appear in each scene.',['scene','asset'],entities='SceneAssetLocations StoryAssets',area='story-assets',roles=['preparation-capability','primary-destination'])
cap('scenes.notes','Keep scene notes and reminders','Scenes','SaveSceneNotes','Capture open issues and things to remember at the scene where they matter.',['scene'],entities='SceneNotes SceneNoteTypes',roles=['supporting-capability','primary-destination'])
cap('scenes.checklist','Maintain explicit scene checklists','Scenes','SaveSceneChecklist','Track concrete requirements and author decisions without conflating them with manuscript evidence.',['scene'],entities='SceneChecklistItems',roles=['supporting-capability'])
cap('scenes.workflow','Set writing priority, blockers and workflow notes','Scenes','SaveSceneWorkflow','Bring practical blockers and next writing actions into the work queue.',['scene'],entities='SceneWorkflow',roles=['supporting-capability'])
cap('scenes.attachments.links','Keep reference links and attachment notes','Scenes','SaveAttachment','Keep useful references beside the scene without requiring a local file upload.',['scene'],entities='SceneAttachments SceneAttachmentTypes',roles=['optional-enhancement'],notes='File is optional for the general attachment workflow; local uploads have separate validation and storage requirements.')
cap('scenes.attachments.files','Upload a scene reference attachment','Scenes','SaveAttachment','Keep a local reference document or image with the relevant scene.',['scene','upload-file'],entities='SceneAttachments UserFile',roles=['optional-enhancement'],restrictions=['MaxAttachmentBytes=25MB plus upload/storage/type validation.'])
cap('scenes.dependencies','Record scene ordering dependencies','Scenes','AddSceneDependency','Make story-order constraints explicit before moving scenes.',['scene','scene-pair'],entities='SceneDependencies SceneDependencyTypes',roles=['preparation-capability','supporting-capability'])
cap('scenes.move','Preview and confirm a scene move between chapters','Scenes','PreviewMove','Restructure scene order while reviewing effects before applying a move.',['scene','chapter'],entities='Scenes Chapters SceneDependencies',roles=['primary-destination'],danger=True,notes='PreviewMove/ConfirmMove validate the actual destination and stale state; mere access to Timeline is not sufficient authority.')
cap('scenes.renumber','Renumber chapter scene order','Scenes','RenumberChapter','Restore a clear scene numbering sequence after structural work.',['chapter'],['scenes'],scope='chapter',entities='Scenes',roles=['supporting-capability'],danger=True)
cap('scenes.suggestions','Review scene character, asset and location suggestions','Scenes','SceneSuggestionsEditor','Accept or reject proposed links without treating suggestions as established story facts.',['scene'],entities='SceneCharacterSuggestions SceneAssetSuggestions SceneLocationSuggestions',roles=['supporting-capability'],notes='An existing pending suggestion is needed for a decision; opening the empty review is still valid.')
cap('knowledge.record','Record what a character knows in a scene','Scenes','AddCharacterKnowledge','Track knowledge, belief or ignorance at the point where it changes.',['scene','character'],entities='CharacterKnowledge KnowledgeStates',area='knowledge-attributes',roles=['primary-destination','preparation-capability'])
cap('attributes.events','Record changes in character attributes','Scenes','AddCharacterAttributeEvent','Keep changes of age, condition or other supported attributes in story order.',['scene','character'],entities='CharacterAttributeEvents CharacterAttributeTypes',area='knowledge-attributes',roles=['primary-destination','preparation-capability'])
cap('knowledge.timeline','Inspect a character’s knowledge timeline','Dynamics','Knowledge','Spot knowledge acquired too early, forgotten or contradicted later.',['character'],['scenes'],entry='Knowledge',scope='record',area='knowledge-attributes',entities='CharacterKnowledge KnowledgeStates')
cap('attributes.arc','Inspect a character’s development arc','Dynamics','Character','Review how recorded attributes and participation develop across scenes.',['character'],['scenes'],entry='Character',scope='record',area='knowledge-attributes',entities='CharacterAttributeEvents SceneCharacters')
cap('assets.record','Record important story assets','StoryAssets','Save','Keep important objects, documents or other story assets identifiable and consistent.',['project'],entry='Create',roles=['primary-destination','preparation-capability'])
cap('assets.state','Inspect an asset’s state and scene history','StoryAssets','Details','Find where an object is, what state it is in and which scenes changed it.',['asset'],['scenes'],entry='Details',scope='record',entities='StoryAssets AssetEvents SceneAssetLocations AssetCustodyEvents')
cap('assets.events','Record asset state changes in a scene','Scenes','AddAssetEvent','Track what happens to an important object as the story advances.',['scene','asset'],area='story-assets',entities='AssetEvents AssetEventTypes',roles=['preparation-capability','primary-destination'])
cap('assets.custody','Record who has or transfers an asset','Scenes','AddAssetCustodyEvent','Avoid losing track of ownership and possession through the story.',['scene','asset','characters'],area='story-assets',entities='AssetCustodyEvents AssetCustodyEventCharacters CustodyRoles',roles=['preparation-capability','primary-destination'])
cap('assets.location','Record asset locations by scene','Scenes','AddSceneAssetLocation','Keep physical asset location separate from ownership or abstract state.',['scene','asset','location'],area='story-assets',entities='SceneAssetLocations',roles=['preparation-capability','supporting-capability'])
cap('assets.dependencies','Describe asset state dependencies','StoryAssets','AddDependency','Make constraints between objects and their required or blocked states explicit.',['asset-pair'],entry='Details',entities='AssetDependencies AssetDependencyTypes',roles=['supporting-capability'])
cap('assets.merge','Merge duplicate asset identities','StoryAssets','Merge','Unify duplicate objects and their recorded aliases/history.',['asset'],entry='Merge',scope='record',roles=['supporting-capability'],danger=True,notes='Actual operation requires distinct compatible source/target assets; do not use a single-record existence check alone.')
cap('plotlines.record','Define plot lines and subplots','PlotLines','Save','Keep major story strands and their hierarchy visible.',['project'],entry='Create',optional=['book'],roles=['primary-destination','preparation-capability'],notes='Project-wide and book-specific scope differ; selecting book-specific scope requires a matching active book.')
cap('plotlines.workspace','Inspect plot contributions across scenes','PlotLineWorkspace','Index','See how story events support each strand, including scenes without attribution.',['project'],['thread-events'],optional=['book'])
cap('plotlines.unattributed','Find scenes without plot-line attribution','PlotLineWorkspace','Unattributed','Notice existing scenes whose narrative contribution has not been recorded.',['project'],['scenes'],roles=['supporting-capability'])
cap('plotlines.health','Inspect the health and gaps of a plot line','PlotLineWorkspace','Health','Review recorded setup, development and payoff continuity for one strand.',['plotline'],['thread-events'],roles=['primary-destination'],notes='Health is a deterministic view of recorded events, not proof of manuscript narrative quality.')
cap('plotlines.inspector','Inspect a scene’s plot contribution and saved manuscript excerpt','PlotLineWorkspace','Inspector','Connect an event’s recorded role with available accepted prose while staying in the plot workspace.',['scene'],optional=['scene-source'],roles=['supporting-capability'])
cap('threads.record','Define a thread within a plot line','PlotThreads','Save','Track a particular question, promise or developing story element.',['plotline'],entry='Create',entities='PlotThreads PlotLines ThreadStatuses ThreadTypes',roles=['primary-destination','preparation-capability'])
cap('threads.scene-events','Record thread development or payoff in a scene','Scenes','AddThreadEvent','Show where a story thread is introduced, developed or resolved.',['scene','thread'],area='threads',entities='ThreadEvents ThreadEventTypes PlotEventTargetPlotLines',roles=['primary-destination','preparation-capability'])
cap('threads.targeting','Associate scene contributions with target plot lines','Scenes','UpdateThreadEvent','Make a contribution’s narrative targets explicit rather than inferring them from proximity.',['scene','thread'],area='threads',entities='ThreadEvents PlotEventTargetPlotLines',roles=['supporting-capability'])
cap('timeline.inspect','Explore story order and scene cards','Timeline','Index','Understand the sequence of existing chapters and scenes in one visual workspace.',['project'],['scenes'],optional=['book','metric-values','thread-events'])
cap('timeline.filter','Focus the timeline on relevant characters, locations, purpose or status','Timeline','Index','Reduce a complicated story view to the records relevant to a concern.',['project'],['scenes'],entities='Scenes SceneCharacters Locations ScenePurposes RevisionStatuses',roles=['supporting-capability'])
cap('timeline.views','Save and reload timeline view presets','Timeline','SavePreset','Return to a useful scoped arrangement of filters and display settings.',['project'],entities='TimelineViewPresets ProjectTimelineSettings',roles=['supporting-capability'])
cap('timeline.metrics','Compare or edit scene metrics along the timeline','Timeline','Index','Notice changes of intensity or other recorded qualities in story order.',['project','metric-types'],['metric-values'],entities='SceneMetricTypes SceneMetricValues',ui=('PlotLine/Help/Articles/Timeline/Metrics.md','#'),roles=['primary-destination'])
cap('timeline.cast-drop','Add character participation from the timeline','Timeline','DropCharacter','Place a recorded character into an existing scene while working visually.',['scene','character'],entities='SceneCharacters',roles=['supporting-capability'])
cap('timeline.asset-drop','Add asset events or dependencies from the timeline','Timeline','DropAssetEvent','Maintain object-related story state from the structural workspace.',['scene','asset'],entities='AssetEvents AssetDependencies',roles=['supporting-capability'])
cap('timeline.location-drop','Create location relationships from the timeline','Timeline','DropLocationRelationship','Record spatial links without leaving story structure.',['location-pair'],entities='LocationRelationships',roles=['supporting-capability'])
cap('timeline.reorder','Preview scene restructuring from the timeline','Timeline','DropMoveScene','Rearrange recorded scenes through the validated move workflow.',['scene','chapter'],entities='Scenes Chapters',roles=['primary-destination'],danger=True)
cap('calendar.inspect','Inspect placed scenes by story date','StoryCalendar','Index','See which scenes happen on the same story day.',['project'],['time-placement'],optional=['book'])
cap('calendar.day','Inspect a day’s scenes and unplaced material','StoryCalendar','DayDetails','Review date-specific activity without hiding scenes whose time is unknown.',['project'],['time-placement'],entities='Scenes',roles=['supporting-capability'])
cap('storypoint.snapshot','Inspect the story state at a chosen scene','StoryPoint','Index','See characters, knowledge, relationships, assets, threads and warnings at one narrative point.',['project'],['scene'],optional=['thread-events','relationship-history'],notes='Project shell can open without scenes; a useful snapshot needs a selected scoped scene. Never substitute live Word position for the chosen story point.')
cap('scenarios.create','Create a reversible alternate scene order','Scenarios','Create','Try a different narrative order without immediately changing the canonical order.',['project'],['scenes'],optional=['book'],roles=['primary-destination','preparation-capability'])
cap('scenarios.reorder','Reorder scenes in a saved scenario','Scenarios','MoveScene','Experiment with structure while preserving the main story order.',['scenario','scene'],entry='Timeline',scope='record')
cap('scenarios.validate','Check and compare an alternate scene order','Scenarios','Validate','Review consequences and continuity warnings before changing the main story.',['scenario'],['scenes'],entry='Compare',scope='record',roles=['supporting-capability'])
cap('scenarios.apply','Apply an approved scenario to canonical order','Scenarios','Apply','Adopt an explicitly confirmed structural experiment.',['scenario'],entry='Compare',scope='record',roles=['supporting-capability'],danger=True,notes='Exact confirmation text and validated membership apply. Validation is useful preparation, not equivalent to author approval.')
cap('continuity.validate','Run recorded-data continuity checks','Warnings','ValidateProject','Find consistency problems in recorded story state at project, book or scene scope.',['project'],['scenes'],entities='ContinuityWarnings ValidationRuns',notes='Explicit ValidateProject/Book/Scene operations persist warning runs; readiness must not run validation just to count prerequisites.')
cap('continuity.review','Review warnings and record intentional exceptions','Warnings','Index','Distinguish issues needing attention from deliberate story choices.',['project'],['scenes'],entities='ContinuityWarnings ContinuityWarningAcknowledgements',roles=['primary-destination'])
cap('continuity.decide','Dismiss, mark intentional or restore a warning','Warnings','MarkIntentional','Keep continuity review decisions explicit and reversible.',['project'],entities='ContinuityWarnings ContinuityWarningAcknowledgements',roles=['supporting-capability'],notes='An existing warning or generated warning identity is required for a decision; index can open with no warnings.')
cap('continuity.explore','Compare entity state through story order','ContinuityExplorer','Index','Trace where characters and assets are and how knowledge or relationships change.',['project'],['scenes'],optional=['character','asset','location'])
cap('dynamics.overview','Review story dynamics across recorded entities','Dynamics','Story','Explore character, relationship and knowledge change from a common overview.',['project'],['scenes'],roles=['primary-destination'])
# Metrics, aggregate insights, Writer, planning, independent context and reading.
for suffix,name,benefit,conditions in [
('metric-shape','Compare scene metric shapes','Compare recorded tension, emotion or other metric patterns across scenes.',['metric-values']),
('pacing','Inspect structural pacing indicators','Find unevenness using recorded scene length and structural data, not an unrequested manuscript diagnosis.',['scenes']),
('revision','Review revision status distribution','See where recorded revision work is concentrated or unfinished.',['scenes']),
('purpose','Inspect scene purpose balance','Review the distribution of recorded scene purposes.',['scenes']),
('threads','Inspect plot and thread health summaries','Locate gaps and unresolved recorded narrative strands.',['thread-events']),
('assets','Inspect story asset continuity summaries','Spot recorded object-state and custody issues.',['scenes']),
('hotspots','Inspect warning hotspots','Prioritise structural locations with retained continuity warnings.',['scenes'])]:
cap('health.'+suffix,name,'Analytics','Index',benefit,['project'],conditions,area='story-health',roles=['primary-destination'])
cap('metrics.configure','Configure project metrics and default ranges','ProjectMetrics','Save','Choose what qualities to track and maintain consistent scoring ranges.',['project'],entities='SceneMetricTypes GenreMetricPresets GenreMetricPresetMetrics',roles=['preparation-capability','supporting-capability'])
cap('metrics.defaults','Add missing preset metric definitions','ProjectMetrics','AddMissingDefaults','Start tracking metrics without inventing an entire set from scratch.',['project'],entities='SceneMetricTypes GenreMetricPresets GenreMetricPresetMetrics',roles=['preparation-capability'])
cap('scenes.metrics','Record scene metric values','SceneMetrics','UpdateSceneMetricValue','Capture a scene’s recorded tension, emotion or other configured qualities.',['scene','metric-types'],area='metrics',roles=['preparation-capability','primary-destination'])
cap('bible.reference','Browse the story bible and linked records','StoryBible','Index','Find character, setting, object and structural reference in one place.',['project'],['scenes'],optional=['characters','locations'])
cap('bible.attention','Find recorded story items needing attention','StoryBible','Index','Discover incomplete or inconsistent recorded work from the reference overview.',['project'],['scenes'],roles=['supporting-capability'])
cap('writer.home','Choose where to begin writing work','Writer','Index','Return to writing, explore the story or inspect plans without knowing a specialist tool name.',scope='account',roles=['supporting-capability'])
cap('writer.write','Work in the integrated chapter/scene authoring workspace','Writer','Write','Keep a writing target, intentions and existing supporting information together.',['book'],['chapter'],optional=['scene'])
cap('writer.focus','Save an explicit working objective','Writer','SaveObjective','Maintain a working target without making Reader, Word and session selections overwrite it.',['book'],['chapter'],entities='WriterWorkingObjectives',roles=['supporting-capability'])
cap('writer.intentions','Edit chapter and scene intentions inline','WriterAuthoring','Save','Clarify chapter goals, scene purpose/outcome and notes where they become relevant.',['book','chapter'],optional=['scene'],roles=['primary-destination','preparation-capability'])
cap('writer.queues','Choose work from canonical writing/revision/final-pass queues','Writer','Workspaces','Find an appropriate next scene using recorded priority, blockers and revision state.',['book'],['scenes'],optional=['intentions'],roles=['primary-destination'],notes='Queue state derives from authoritative scene revision/workflow, not a second competing DraftStatus model.')
cap('writer.explore','Open authenticated story exploration tools','Writer','Explore','Develop an idea or investigate a concern without knowing which specialist tool to choose.',['book'],roles=['primary-destination'])
cap('writer.plan','Review writing availability and proposed work','Writer','Plan','See saved plans and decide what work fits the time available.',['book'],optional=['writing-plan'],roles=['primary-destination'])
cap('writer.review','Read accepted writing with intentions and decisions','Writer','Review','Read, notice, decide and return to the relevant writing without changing another work target.',['book'],['accepted-source'],optional=['intentions'],area='manuscript-review')
cap('writer.reflect','Review progress, recorded work and evidence coverage','Writer','Reflect','Understand retained work and progress with its measurement limits visible.',['book'],['activity-evidence'],roles=['primary-destination'])
cap('writer.dashboard','Inspect the combined writing dashboard','Writer','Dashboard','See plans, work queues and progress in one book-scoped overview.',['book'],['scenes'],roles=['supporting-capability'])
cap('planning.availability','Create a writing plan with availability and deadline','Writer','ScheduleSetup','Translate an intended drafting or revision pass into a realistic time budget.',['project'],optional=['book'],area='writing-planning',entities='WritingPlans',roles=['primary-destination','preparation-capability'],notes='Supports selected book or broader project scope; saved plan ID, goal and availability must be retained independently.')
cap('planning.generate','Generate a schedule from a saved plan','Writer','GenerateSchedule','Allocate eligible writing work against saved availability.',['writing-plan'],['eligible-tasks'],area='writing-planning',entities='WritingPlans WritingScheduleItems',roles=['primary-destination'])
cap('planning.activities','Review and allocate bounded chapter/scene activities','WriterPlanning','Index','Choose explicit work activities and their minute budgets before committing them to a plan.',['writing-plan','eligible-tasks'],roles=['primary-destination'],notes='Requires writingPlanId; book alone is not a complete route. Explicit confirmation prevents silent schedule creation.')
cap('planning.preview','Inspect calendar and schedule preview','Writer','SchedulePreview','See which tasks are planned for which dates.',['project'],['writing-plan'],area='writing-planning',entities='WritingPlans WritingScheduleItems WriterPlannedActivities')
cap('planning.rebalance','Preview and apply schedule rebalancing','Writer','PreviewRebalance','Adjust future work when progress or available time changes.',['writing-plan'],area='writing-planning',entities='WritingScheduleItems',roles=['supporting-capability'],notes='PreviewRebalance and explicit ApplyRebalance are distinct operations; do not auto-apply while preparing another recommendation.')
cap('planning.track','Mark scheduled activities complete or skipped','Writer','MarkScheduleItemComplete','Record actual task decisions without inferring manuscript completion.',['writing-plan'],area='writing-planning',entities='WritingScheduleItems WriterPlannedActivities',roles=['supporting-capability'])
cap('planning.manage','Activate, revise or retire a saved writing plan','Writer','ActivateWritingPlan','Keep multiple passes/plans manageable without overwriting their identity.',['writing-plan'],area='writing-planning',entities='WritingPlans',roles=['supporting-capability'],danger=True)
cap('recording.sessions','Record writing, editing, planning or reading sessions','WriterWork','Start','Keep author-controlled records of work separately from automatically accepted manuscript changes.',['book','recording-enabled'],optional=['chapter'],roles=['primary-destination','preparation-capability'])
cap('recording.notes','End a session with a return note','WriterWork','End','Leave yourself a clear place to resume later without changing the scene status.',['book','session'],roles=['supporting-capability'])
cap('recording.audio','Record a chapter Audio Review session','WriterWork','Start','Track an intentional listening/review activity and preserve its chapter target.',['book','chapter','recording-enabled'],optional=['native-session'],roles=['primary-destination','preparation-capability'],notes='Starting the recording does not prove playback is supported or that audio has identified a paragraph.')
cap('recording.playback','Control an available bound Audio Review player','WriterWork','Command','Play, pause or seek a supported player while preserving the actual review session.',['audio-session','supported-player'],status='implemented-restricted',roles=['supporting-capability'],restrictions=['Exact live native/media capability checks, advertised operation and recent observation; no generic audio upload/player is inferred.'])
cap('recording.settings','Control private recording settings and retention','WritingActivity','Settings','Choose whether retained writing activity is recorded and for how long.',['book','owner'],entities='WritingActivitySettings',roles=['supporting-capability','preparation-capability'])
cap('recording.baseline','Start accepted activity coverage from a baseline','WritingActivity','Baseline','Make the start of measured manuscript progress explicit.',['book','recording-enabled'],['accepted-source'],roles=['preparation-capability','supporting-capability'])
cap('recording.reports','Inspect activity, session history and progress coverage','WritingActivity','Index','Review measured activity without mistaking missing historical coverage for no work.',['book'],['activity-evidence'],roles=['primary-destination'])
cap('recording.export','Export retained activity or session records','WritingActivity','Export','Take a scoped copy of retained writing evidence for personal review.',['book'],['activity-evidence'],roles=['supporting-capability'],notes='Activity export is cursor-bounded; session export is a separate WriterWork endpoint. Neither is a manuscript backup.')
cap('recording.erase','Erase private retained activity and session history','WritingActivity','Erase','Control retention of personal work evidence.',['book','owner'],roles=['supporting-capability'],danger=True)
cap('context.inspect','Browse saved contextual story information','Writing','Context','See relevant cast, places, assets, relationships and knowledge while writing.',['book'],['scene'],optional=['floorplan','scene-map-links'],notes='Saved/manual and pinned context can be useful without a live Word connection; waiting/mapping states are explicit.')
cap('intent.inspect','Inspect chapter goals and scene intentions in a dedicated window','Writing','Intent','Keep intended purpose, outcomes, checklist and practical reminders visible.',['book'],['scene'],optional=['intentions'],entry='Intent')
cap('context.follow','Follow a verified Word context or pin a saved reference','Writing','ContextScene','Keep live Word context separate from an explicitly pinned saved scene.',['book'],['scene'],optional=['native-session'],roles=['supporting-capability'],notes='Pinned saved context does not require Word. Live following requires an exact current session and authoritative mapping.')
cap('context.displays','Arrange Context and Intent on separate displays','Writer','DisplaySetup','Keep references visible beside Word using reusable windows and display placement.',['book'],optional=['native-session'],roles=['optional-enhancement'],extra=[ev('PlotLine/wwwroot/js/writing-workspace-launcher.js','detectDisplaysButton')],notes='Browser window-placement permissions, popup policy and monitor availability are runtime conditions; graceful manual placement remains available.')
cap('intent.assess','Explicitly assess saved prose against author intentions','IntentAssessment','Analyse','Compare available saved manuscript evidence with explicit intentions without automatically completing them.',['scene','scene-source','intentions','si-available'],status='implemented-restricted',entities='WritingIntentAssessments SceneManuscriptSources',restrictions=['StoryIntelligence entitlement/configuration; bounded prose/objective input, source/plan hash recheck.'])
cap('intent.evidence-decisions','Review saved intention evidence and author decisions','IntentAssessment','Decide','Keep the author’s judgement separate from automated intention evidence.',['scene'],['intentions'],entities='WritingIntentAssessments',roles=['supporting-capability'],notes='Decision needs a saved assessment matching its hash; opening Intent does not run AI.')
cap('reader.continuous','Read the accepted canonical manuscript continuously','ManuscriptReader','Index','Read selectable accepted chapter text with preserved paragraph identity.',['book'],['accepted-source'],roles=['primary-destination'])
cap('reader.focus','Use Focused Reading and canonical chapter navigation','ManuscriptReader','Index','Concentrate on accepted text without losing chapter navigation or selection.',['book'],['accepted-source'],roles=['optional-enhancement'],extra=[ev('PlotLine/Views/ManuscriptReader/_Reader.cshtml','id="reader-focus"')])
cap('reader.updates','Control accepted-content refresh while reading','ManuscriptReader','Changes','Defer replacement during selection, pause or editing and retain surviving reading anchors.',['book'],['accepted-source'],roles=['supporting-capability'],extra=[ev('PlotLine/wwwroot/js/manuscript-reader.js','const rememberPosition')])
cap('review.observations','Record chapter or passage review observations','WriterReview','Save','Capture what you notice and an intended change without rewriting the manuscript.',['book','chapter'],optional=['accepted-source'],roles=['primary-destination','preparation-capability'],notes='Chapter-level observations are valid without accepted prose. Passage anchors require current accepted IDs/version/offset proof; original references are immutable.')
cap('review.decisions','Revise, resolve or reopen an observation','WriterReview','Save','Manage explicit review decisions independently from canonical scene revision status.',['observation'],roles=['supporting-capability'])
cap('review.revisit','Revisit an original manuscript reference','WriterReview','Panel','Return to the same paragraph identity and recognise changed or missing accepted context.',['observation'],optional=['accepted-source'],roles=['supporting-capability'],notes='Missing references are not searched/reanchored to similar text. Read-only availability does not resolve a decision.')
module('WordCompanion','word-companion','PlotLine/Services/WordCompanionService.cs','public sealed class WordCompanionService','ManuscriptDocuments Books','GetManuscriptForBook','book')
module('NativeCompanionAuth','word-companion','PlotLine/Services/NativeCompanion/NativeInstallationService.cs','public sealed class NativeInstallationService','NativeCompanionInstallations','Approve','account')
module('NativeCompanion','manuscript-import','PlotLine/Services/NativeCompanion/NativeImportService.cs','public sealed class NativeImportService','NativeImportOperations OnboardingManuscriptBuilds','Analyse','native')
cap('word.connect','Authorise and manage the Windows Companion','NativeCompanionAuth','Approve', 'Connect a specific supported Windows installation to the author account.',entry=('NativeInstallation','Index'),scope='account',status='implemented-restricted',roles=['preparation-capability','supporting-capability'],restrictions=['Supported Windows/Word installation and explicit browser approval; server connection alone does not prove an active Word document.'],extra=[ev('PlotDirector.NativeCompanion/Agent/TrayApplication.cs','class TrayApplication')])
cap('word.installations','Inspect, disconnect or revoke Companion installations','NativeInstallation','Revoke','Review which machines can access the account and revoke an installation.',['owner'] if False else [],status='implemented-restricted',roles=['supporting-capability'],danger=True)
cap('word.link','Link the intended Word manuscript to a book','WordCompanion','LinkManuscript','Keep the book attached to the correct document identity rather than a matching title.',['book'],entry=('NativeWorkspace','Workspace'),entities='ManuscriptDocuments Books',status='implemented-restricted',roles=['preparation-capability','supporting-capability'],notes='Native/client or Office integration initiates linkage; the web workspace exposes current binding and recovery.')
cap('word.workspace','Inspect linked document status and saved workspace','NativeWorkspace','Workspace','See whether the current Word book/session is connected, saved and mapped.',['book'],optional=['native-session'],status='implemented-restricted',roles=['supporting-capability'])
cap('word.navigate-chapter','Explicitly navigate Word to a verified chapter or scene','WriterWord','Navigate','Return to the exact saved writing target with an acknowledged handoff.',['book','native-session','verified-position'],status='implemented-restricted',roles=['supporting-capability'],notes='A queued command is not completed navigation; live proof/expiry and acknowledgement are mandatory.')
cap('word.navigate-passage','Explicitly hand off an accepted Review paragraph to Word','WriterWord','Navigate','Revise the same original paragraph you were reviewing without guessing a text match.',['book','accepted-source','native-session','verified-position'],status='implemented-restricted',roles=['supporting-capability'],notes='Paragraph-start navigation only; original GUID/revision must still verify. No silent fallback to chapter or automatic Word save.')
cap('word.office-addin','Use the hosted Office/Word Companion surface','WordCompanionHost','Index','Open the implemented Office companion task-pane integration and scoped book structure.',['book'],status='implemented-restricted',restrictions=['Requires supported Office host/authentication and installation; parallel hosted web surface is source-present, not newly physically qualified by this audit.'])
cap('word.client-review','Review and decide native scene observations','NativeWorkspace','Review','Inspect queued native observations before applying an explicit author decision.',['book'],optional=['native-session'],status='implemented-restricted',entities='NativeReviewImports WordCompanionSceneAssets WordCompanionSceneLocations',roles=['supporting-capability'],notes='Current observation identifiers, capability and owner scope must be validated; it is not an independent analysis of all book text.')
cap('sync.accepted','Accept current Word paragraph snapshots','ParagraphManuscript','Snapshot','Make saved manuscript paragraphs available to Reader and canonical writing evidence.',['book','linked-manuscript','native-session'],status='implemented-restricted',roles=['preparation-capability','supporting-capability'],notes='Enabled feature and accepted canonical revision/identity required; a request is not an accepted transfer. Existing import/analysis work may pause acceptance.')
cap('sync.preferences','Control paragraph synchronisation mode','ParagraphManuscript','Enable','Choose explicit supported automatic/manual tracking preferences without rewriting Word prose.',['book'],status='implemented-restricted',roles=['supporting-capability'])
cap('sync.chapter-check','Validate or repair current chapter checkpoints','NativeChapterSync','Validate','Re-establish current chapter identity and mapping proof while retaining accepted mappings.',['book','native-session'],entry=('ParagraphManuscript','Index'),status='implemented-restricted',roles=['preparation-capability','supporting-capability'],notes='Reuse/Repair/Finish are session-fenced operations; stale chapter hashes are not readiness.')
cap('sync.repair','Review a bounded chapter reconciliation or repair','ParagraphManuscript','Repair','Recover synchronisation after structural uncertainty without resetting the manuscript.',['book','native-session'],optional=['accepted-source'],status='implemented-restricted',roles=['supporting-capability'],notes='May involve explicit AI-supported structural work under its own gates; do not auto-trigger while computing readiness.')
cap('imports.start','Start a manual or manuscript-led book setup','Onboarding','StartManual','Choose how to establish a project/book without compulsory AI enrichment.',scope='account',roles=['preparation-capability','supporting-capability'])
cap('imports.core','Capture, review and import manuscript structure','Onboarding','ScanReview','Establish canonical book, chapters, scenes and saved scene source from an explicitly reviewed import.',scope='account',status='implemented-restricted',entities='OnboardingManuscriptCaptures OnboardingManuscriptBuilds OnboardingManuscriptBuildChapterMap OnboardingManuscriptBuildSceneMap SceneManuscriptSources',roles=['primary-destination','preparation-capability'],restrictions=['Import capture/preview, resource reservation and exact owner/document context; actual provider/host constraints depend on import path.'],notes='StartImport/ScanManuscript coordinate capture, not a generic promise that arbitrary uploaded formats are accepted.')
cap('imports.character-map','Review character identities during core import','Onboarding','ScanCharacters','Reuse or correct cast identities before creating duplicate characters.',scope='account',entities='OnboardingManuscriptBuildCharacterMap Characters',roles=['preparation-capability','supporting-capability'],notes='A valid owned scan/build preview is required; arbitrary bookId is not a complete route.')
cap('imports.basic-locations','Review basic locations discovered during import','Onboarding','SaveBasicLocations','Keep obvious saved settings while choosing which imported locations should be established.',scope='account',entities='CoreImportBasicLocationCandidates CoreImportBasicLocationReviews CoreImportBasicLocationEvidence',roles=['preparation-capability','supporting-capability'],notes='Requires current authorised scan/build context. This is distinct from optional full Story Intelligence location review.')
cap('imports.native-preview','Preview and confirm a native manuscript import','NativeCompanion','Analyse','Review the supported native capture/import path before canonical records are changed.',['native-session'],entry=('NativeWorkspace','Workspace'),status='implemented-restricted',roles=['preparation-capability','supporting-capability'],notes='Native authentication/session and resource/provider gates are separate from the read-only workspace; no import operation is invoked in this audit.')
cap('intelligence.consent','Choose optional Story Intelligence context and consent','Onboarding','StoryIntelligenceContext','Decide whether to use optional analysis and supply the context it needs.',['book'],entry='StoryIntelligence',area='story-intelligence',entities='StoryIntelligenceConsents AuthorPlotSeeds',roles=['preparation-capability','supporting-capability'],notes='No AI is required merely to begin a manual story project; entitlement is required to execute the optional analysis.')
cap('intelligence.plot-context','Supply author plot context or narrative seed','Onboarding','StoryIntelligenceBookPlotContext','Give narrative analysis an explicit author view without treating it as extracted manuscript fact.',['book'],area='story-intelligence',entities='AuthorPlotSeeds',roles=['preparation-capability','optional-enhancement'])
cap('intelligence.analyse','Run optional source-backed scene Story Intelligence','Onboarding','StartBookStoryIntelligence','Prepare retained scene analysis and persisted review candidates from accepted story sources.',['book','scene-source','si-available'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='StoryIntelligenceJobs StoryIntelligenceSceneResults StoryIntelligenceBookPipelines StoryIntelligenceReviewCandidateGenerations',status='implemented-restricted',roles=['primary-destination','preparation-capability'],restrictions=['Explicit consent, entitlement, model/provider configuration, source availability and active-job coordination.'],notes='Reading a review page must not create, resume or parse raw analysis; readiness must remain pure.')
cap('intelligence.progress','Inspect, cancel or retry analysis progress','Onboarding','StoryIntelligenceProgress','Understand retained analysis progress and recover eligible failed work.',['book'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='StoryIntelligenceJobs StoryIntelligenceBookPipelines',status='implemented-restricted',roles=['supporting-capability'])
cap('intelligence.review-centre','Inspect persisted analysis review readiness','Onboarding','StoryIntelligenceReviewCentre','See which review modules are ready and where explicit decisions are still needed.',['book'],['si-scenes-complete'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='StoryIntelligenceBookPipelines StoryIntelligenceReviewCandidates',roles=['supporting-capability'],notes='Book-based entry is available; batch-based detailed routes need a current owned batch/generation.')
for suffix,title,action,entities in [
('characters','Resolve extracted character identities','StoryIntelligenceCharacters','StoryIntelligenceReviewCandidates Characters CharacterAliases'),
('locations','Review extracted locations and their hierarchy','StoryIntelligenceLocations','StoryIntelligenceReviewCandidates Locations'),
('assets','Review extracted story assets','StoryIntelligenceAssets','StoryIntelligenceReviewCandidates StoryAssets'),
('relationships','Review extracted relationship developments','StoryIntelligenceRelationships','StoryIntelligenceReviewCandidates CharacterRelationships RelationshipEvents'),
('knowledge','Review extracted character knowledge','StoryIntelligenceKnowledge','StoryIntelligenceReviewCandidates CharacterKnowledge')]:
cap('intelligence.'+suffix,title,'Onboarding',action,'Turn reviewed, source-backed '+suffix+' candidates into explicit canonical records.',['book','si-scenes-complete','si-candidates']+([] if suffix=='characters' else ['si-character-gate']),entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities=entities,roles=['primary-destination','preparation-capability'],notes='Detailed module needs current batchId. Identity decisions and source-backed acceptance/merge/ignore contracts differ by module; completion gates are generation-specific.')
cap('intelligence.exceptions','Prioritise ambiguous Knowledge, Relationship or Asset observations','IntelligenceReview','Index','Spend author attention on material exceptions rather than treating every pending candidate as a conflict.',['book','si-scenes-complete','si-character-gate','si-candidates'],entry=('Onboarding','StoryIntelligenceBookReviewCentre'),roles=['supporting-capability'],notes='Only Knowledge/Relationships/Assets supported here; compact persisted module/batch context required.')
cap('intelligence.reassess','Explicitly refresh exception priorities','IntelligenceReview','Assess','Update exception attention from retained scene evidence while preserving author decisions.',['book','si-scenes-complete','si-character-gate'],entry=('Onboarding','StoryIntelligenceBookReviewCentre'),status='implemented-restricted',roles=['supporting-capability'])
cap('intelligence.narrative','Review whole-book plot and thread synthesis','Onboarding','StoryIntelligenceNarrative','Compare retained narrative candidates and source-backed scene events before accepting plot structures.',['book','si-scenes-complete','si-character-gate'],['thread-events'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='WholeBookPlotSynthesisRuns StoryIntelligenceNarrativeCandidates StoryIntelligenceNarrativeCandidateEvidence StoryIntelligenceNarrativeCandidateEvents',roles=['primary-destination','preparation-capability'],notes='Whole-book synthesis is the authoritative final Plot/Thread candidate producer, not ad hoc GET generation.')
cap('intelligence.metrics','Review extracted scene metric evidence','Onboarding','StoryIntelligenceReviewCentre','Use source-backed metric analysis to enrich recorded scene qualities while keeping its provenance.',['book','si-scenes-complete'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='SceneMetricValues StoryIntelligenceSceneResults',roles=['supporting-capability'],notes='Metric evidence/materialisation belongs to the existing pipeline; no independent Metrics decision controller was verified.')
cap('intelligence.commit','Explicitly materialise approved analysis results','Onboarding','CommitStoryIntelligence','Apply reviewed canonical story records without confusing retained analysis with established author data.',['book','si-scenes-complete'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='StoryIntelligenceImportCommits StoryIntelligenceReviewCandidates',roles=['supporting-capability'],danger=True)
cap('intelligence.enrichment','Retry eligible character enrichment','Onboarding','RetryStoryIntelligenceCharacterEnrichment','Recover source-backed character enrichment after an eligible failure.',['book','si-scenes-complete','si-character-gate','si-available'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='CharacterEnrichmentRuns CharacterEnrichmentEvidence',status='implemented-restricted',roles=['supporting-capability'])
cap('intelligence.plot-retry','Retry eligible whole-book plot synthesis','Onboarding','RetryStoryIntelligencePlotSynthesis','Recover narrative synthesis while retaining canonical scene and review state.',['book','si-scenes-complete','si-character-gate','si-available'],entry='StoryIntelligenceBookReviewCentre',area='story-intelligence',entities='WholeBookPlotSynthesisRuns',status='implemented-restricted',roles=['supporting-capability'])
# Export, recovery and organisation are independent capabilities, not just a single Backup menu item.
for id,name,action,benefit,scope,hard in [
('bible','Export a story bible','StoryBible','Share recorded story reference outside the application.','project',['project']),
('timeline','Export a narrative timeline','NarrativeTimeline','Review or share recorded narrative order in a portable brief.','project',['project']),
('character','Export a character reference','Character','Take a focused character reference into another writing workflow.','record',['character']),
('scene','Export a scene brief','SceneBrief','Take recorded scene intentions and context into drafting or review.','record',['scene']),
('chapter','Export a chapter brief','ChapterBrief','Review chapter goals and scene structure outside PlotDirector.','record',['chapter']),
('session','Export a writing-session brief','WritingSession','Take a scene-focused writing reference into the next writing session.','scene',['scene']),
('research','Export a research/reference pack','ResearchPack','Collect established research and story reference for use elsewhere.','project',['project']),
('search','Search and export matching story references','Search','Find and collect relevant recorded story information.','project',['project'])]:
cap('exports.'+id,name,'Exports',action,benefit,hard,entry=(('Scenes','Edit') if scope=='scene' else ('Characters','Details') if id=='character' else ('Chapters','Details') if id=='chapter' else ('Scenes','Edit') if id=='scene' else ('StoryBible','Index')),scope=scope,roles=['supporting-capability'],notes='Implemented formats are HTML, Markdown and plain text. This is a reference export, not a full manuscript typesetting/EPUB/PDF publishing pipeline.',extra=[ev(core,'private static (string FileName, string ContentType, string Content) Render')])
cap('recovery.project-export','Export a full project backup package','Exports','ProjectBackup','Keep a portable project snapshot and supported files for recovery.',['project','owner'],entry=('Projects','Details'),entities='Projects Books Chapters Scenes',roles=['supporting-capability','preparation-capability'],extra=[ev('PlotLine/Services/ProjectExportService.cs','public sealed class ProjectExportService')],notes='Backup graph/field contract defines coverage. Private Writer investigations/observations are not assumed to be in shared project JSON; database backup is different.')
cap('recovery.book-backup','Review and download selected-book recovery packages','BookRecovery','ReviewBackup','Back up selected books with their supported dependency graph and review what the package includes.',['project','owner'],['book'],entities='BookRecoveryOperations BookRecoveryMappings BookRecoveryExternalReferences',roles=['supporting-capability','preparation-capability'])
cap('recovery.book-restore','Preview and confirm a selected-book recovery','BookRecovery','Confirm','Restore eligible book material with explicit mappings and capacity checks.',['backup-package'],entry='Restore',scope='account',roles=['supporting-capability'],danger=True,notes='Book-slot reservation, staged owner identity and graph validation are hard runtime conditions. Preview/download are not a confirmed restore.')
cap('recovery.legacy-import','Validate or import the legacy full project JSON format','Imports','Import','Use the retained full-project import validation and dry-run path for compatible packages.',['backup-package'],scope='account',status='legacy-accessible',roles=['supporting-capability'],danger=True,notes='Imports.Index redirects to BookRecovery.Restore. Preview/Import/ValidationReport remain source-present; new primary recommendations should use the supported book-recovery surface.')
cap('recovery.restore-point','Create a project restore point','ProjectRestorePoints','Create','Keep a supported project checkpoint before a risky change.',['project','owner'],entities='ProjectRestorePoints',roles=['supporting-capability','preparation-capability'],extra=[ev('PlotLine/Services/ProjectRestorePointService.cs','HasReachedManualLimitAsync')],notes='Stored manual-restore-point limits and export coverage apply; creating one is an explicit write, not a readiness probe.')
cap('recovery.rewind','Preview/download or restore a project checkpoint','ProjectRestorePoints','Restore','Return supported project records to a chosen checkpoint after explicit confirmation.',['project','owner','restore-point'],entities='ProjectRestorePoints ProjectRestoreHistory',roles=['supporting-capability'],danger=True)
cap('archive.organise','Archive records without immediate permanent deletion','Archives','Archive','Keep inactive story records out of normal workspaces while retaining supported restoration.',['project'],roles=['supporting-capability'],danger=True,notes='Entity-specific archive scope and permissions apply; archive flags alter readiness of associated records.')
cap('archive.restore','Restore an archived supported record','Archives','Restore','Bring a retained story record back into active use.',['project'],roles=['preparation-capability','supporting-capability'],notes='A supported archived record and live parent/context are required. Do not demand creation of a duplicate when restoration is possible.')
cap('archive.delete','Permanently remove an explicitly selected archived record','Archives','DeleteForever','Remove unwanted archived material with the existing dependency-aware deletion safeguards.',['project','owner'],roles=['supporting-capability'],danger=True)
cap('projects.delete','Permanently delete an archived project','Projects','HardDeleteArchivedProject','Remove an intentionally retired project after its required confirmation.',['project','owner'],scope='account',roles=['supporting-capability'],danger=True)
cap('solver.investigate','Use the public deterministic Writing Problem Solver','WritingProblems','Index','Work through a public writing concern using authored questions and editorial solutions.',scope='global',roles=['primary-destination'],notes='Public anonymous service, separate signed short-lived journey state and catalogue model. Never use as an automatic redirect from authenticated Guided Investigation.')
cap('solver.browse','Browse authored problem solutions and feature guidance','WritingProblems','Browse','Find practical authored advice or a useful tool opportunity without completing a questionnaire.',scope='global',roles=['supporting-capability'])
cap('investigations.run','Run a private Guided Investigation','WriterInvestigations','Start','Explore competing explanations for a concern before choosing an authenticated tool.',['book','investigation-preview'],status='implemented-restricted',roles=['primary-destination','preparation-capability'],notes='28-question synthetic Development catalogue only; neither a production writing matrix nor an AI chatbot.')
cap('investigations.resume','Resume or revise a saved investigation','WriterInvestigations','Answer','Continue later or change an answer while retaining its original catalogue and history.',['book','investigation','investigation-preview'],status='implemented-restricted',roles=['supporting-capability'])
cap('investigations.open','Open an eligible authenticated recommendation','WriterInvestigations','Open','Take an explained next step in the correct project/book while retaining the investigation.',['book','investigation','investigation-preview'],status='implemented-restricted',roles=['supporting-capability'],notes='Only the current five trusted resolver adapters exist; prerequisites currently mean answer conditions, not full feature dependencies.')
cap('investigations.simulate','Inspect a private investigation and replay evidence','WriterInvestigations','Simulator','Diagnose question selection, redundancy, conflicts and completion gaps during catalogue development.',['investigation','investigation-preview'],entry='Admin',status='implemented-restricted',roles=['supporting-capability'],restrictions=['AdminOnly policy, Development host, author-owned records.'])
cap('investigations.catalogue','Validate, version, import or export investigation catalogues','WriterInvestigations','Import','Develop and inspect immutable structured question catalogues without changing the engine.',['investigation-preview'],entry='Admin',scope='account',status='implemented-restricted',roles=['supporting-capability'],restrictions=['AdminOnly and Development; immutable version validation. No production question generation in this audit.'])
cap('platform.theme','Choose an application reading theme','Appearance','Theme','Make reference and writing workspaces comfortable to read.',scope='account',roles=['optional-enhancement'])
cap('platform.ribbon','Personalise ribbon and toolbar visibility','Toolbar','Save','Keep frequently used tools accessible without learning every menu.',scope='account',roles=['optional-enhancement'])
cap('platform.pwa','Install or use the responsive standalone PWA','Writer','Index','Use PlotDirector as a responsive standalone application on supported devices.',scope='account',area='platform-pwa',roles=['optional-enhancement'],extra=[ev('PlotLine/wwwroot/js/application-pwa.js','(() =>'),ev('PlotLine/wwwroot/service-worker.js','Deliberately no fetch handler')],notes='Installability depends on browser support/policy. Service worker deliberately provides no fetch cache, offline page, offline editing or background synchronisation.')
cap('platform.panels','Resize, collapse or overlay Writer companions','Writer','Write','Keep the current task readable across screen sizes without changing story context.',['book'],area='platform-pwa',roles=['optional-enhancement'],extra=[ev('PlotLine/wwwroot/js/writer3-workspace.js','Device-only layout preferences')],notes='Device-local layout settings are not book data or evidence that the author completed a preparation capability.')
cap('help.reference','Search and read contextual Markdown Help','Help','Index','Learn a task in context through tooltip, popup, drawer or a full article.',scope='global',roles=['supporting-capability'])
cap('support.requests','Submit a feature request and discuss it','FeatureRequests','Create','Describe missing support and exchange follow-up messages without changing story records.',scope='account',roles=['supporting-capability'])
cap('support.roadmap','Inspect the feature-request roadmap','FeatureRequests','Roadmap','See how requested improvements are progressing.',scope='account',roles=['supporting-capability'])
cap('account.access','Register, sign in and recover account access','Account','Register','Access private story records through the existing authenticated account workflow.',scope='global',roles=['preparation-capability','supporting-capability'],notes='Email verification, password recovery and optional two-factor gates are account conditions, never diagnostic evidence.')
cap('account.security','Manage password, two-factor authentication and recovery codes','ManageAccount','EnableTwoFactor','Protect access to private story records and recover supported authentication.',scope='account',roles=['supporting-capability'])
cap('account.subscription','Inspect subscription, usage and billing controls','ManageAccount','Subscription','Understand editing, resource, storage and AI eligibility before a gated action.',scope='account',roles=['supporting-capability'],restrictions=['Checkout/billing provider configuration and actual entitlement state; do not hardcode current plan prices or resource limits.'])
cap('account.delete','Explicitly delete the author account and owned data','ManageAccount','HardDeleteAccount','Exercise the existing guarded account-data deletion workflow.',scope='account',roles=['supporting-capability'],danger=True)
cap('admin.intelligence-tests','Run internal Story Intelligence test and review tools','Admin','StoryIntelligenceDiagnostics','Inspect source/analysis runs and explicit test/import-commit workflows for authorised development support.',scope='account',status='implemented-restricted',roles=['supporting-capability'],restrictions=['AdminOnly; individual development/environment/test/provider gates vary. Not an ordinary author recommendation.'])
cap('admin.illustration-library','Curate the internal illustration reference library','Admin','StoryIntelligenceIllustrationLibrary','Review, approve or regenerate library illustrations used by supported reference surfaces.',scope='account',status='implemented-restricted',entities='IllustrationLibraryItems StoryMemoryIllustrationDemands',roles=['supporting-capability'],restrictions=['AdminOnly, generation configuration and explicit queue/approval operations. Not an author-facing bespoke illustration generator.'])
cap('admin.solver-catalogue','Validate and publish public Solver editorial versions','Admin','Index','Maintain the existing public Solver through its separate protected structured editorial workflow.',scope='account',status='implemented-restricted',roles=['supporting-capability'],extra=[ev('PlotLine/Controllers/WritingSolverAdminController.cs','PublishAsync')],notes='Actual editorial entry is WritingSolverAdmin.Index; no changes to public content or publication were made.')
# Correct distinct book-scoped source requirements; accepted paragraph snapshots are not assumed to materialise all legacy scene-source stores.
con('book-scene-sources','Saved scene sources within the selected book','SceneManuscriptSources Chapters Scenes','EXISTS(nonempty canonical scene source joined through selected book); no chosen scene required',1,['imports.core'],'Onboarding','StartBookStoryIntelligence','book')
for c in CAPS:
if c['id']=='intelligence.analyse':c['prerequisites']['allHard']=[('book-scene-sources' if x=='scene-source' else x) for x in c['prerequisites']['allHard']]
if c['id']=='admin.solver-catalogue':c['entryPoint']={'controller':'WritingSolverAdmin','action':'Index','sourceEvidence':ev('PlotLine/Controllers/WritingSolverAdminController.cs','public async Task<IActionResult> Index'),'routeResolution':'MVC Url.Action; /admin/writing-solver declared in source','requiredContext':[]};c['operation']={'controller':'WritingSolverAdmin','action':'Import','sourceEvidence':ev('PlotLine/Controllers/WritingSolverAdminController.cs','public async Task<IActionResult> Import'),'execution':'Explicit AdminOnly validated publication'}
if c['internalModule']=='WritingProblems' or c['id']=='help.reference':c['availability']['authentication']='public-or-authenticated; inspect controller policy for individual article'
# Source paragraphs are a separate store; mark the cross-store producer question explicitly rather than promising it.
if c['id']=='characters.reanalyse':c['risks'].append('Exact character-evidence and enrichment generation eligibility must use CharacterEnrichmentService, not a generic count of book paragraphs.')
CONDITIONS['scene-source']['preparationCapabilities']=['imports.core']
CONDITIONS['scene-source']['automaticCheck']['crossStoreCaution']='BookParagraphManuscripts and SceneManuscriptSources are distinct contracts. A paragraph snapshot alone is not assumed to satisfy this condition.'
cap('characters.library','Inspect and find the recorded cast','Characters','Index','Find established characters and decide which profile needs attention.',['project'],['characters'],roles=['supporting-capability'])
cap('books.cover','Upload a book cover reference','Books','Save','Recognise and present a book through its own uploaded cover image.',['book','upload-file'],entry='Edit',entities='Books UserFile',roles=['optional-enhancement'],extra=[ev('PlotLine/ViewModels/CoreViewModels.cs','[Display(Name = "Cover image")]')])
cap('bible.search','Search recorded story reference','StoryBible','Index','Find relevant story information by words instead of remembering which screen holds it.',['project'],roles=['primary-destination'],notes='StoryBible.Index accepts q; search returns recorded reference, not semantic analysis of the manuscript.')
for id,name,benefit,key in [('pov','Inspect viewpoint distribution','See how recorded scene viewpoints are distributed.','POV distribution'),('cast','Inspect character appearance distribution','See which recorded characters appear across the selected story range.','Character appearances'),('locations','Inspect location usage distribution','See which recorded settings dominate or rarely appear.','Location usage')]:
cap('health.'+id,name,'Analytics','Index',benefit,['project'],['scenes'],ui=('PlotLine/Views/Analytics/Index.cshtml',key))
cap('admin.name-reference','Validate or import the reference-name package','Admin','ImportNameIntelligence','Maintain the installed name-reference data used by name discovery.',scope='account',status='implemented-restricted',roles=['supporting-capability'],entities='NameReferenceImports GivenNames NameUsages',restrictions=['AdminOnly; package validation and explicit reference-data writes. Not ordinary author preparation.'])
con('intent-assessment','Current private saved intention assessment','WritingIntentAssessments','AND(author-owned saved assessment, source/plan hash unchanged, evidence key exists)',1,['intent.assess'],'IntentAssessment','Decide','scene')
con('investigation-catalogue','Valid published synthetic catalogue version','WriterInvestigationCatalogues','Latest start catalogue or exact pinned resume version exists and validates',1,['investigations.catalogue'],'WriterInvestigations','Index','account')
# Refine the split between environment access and initial publication; no circular mandatory publishing prerequisite.
CONDITIONS['investigation-preview']['entities']=[]
CONDITIONS['investigation-preview']['predicate']='AND(Development host, WriterInvestigations enabled). Published catalogue is a separate condition; first publication must not require a pre-existing catalogue.'
CONDITIONS['investigation-preview']['minimumQuantity']=None
for c in CAPS:
if c['id']=='investigations.run':c['prerequisites']['allHard'].append('investigation-catalogue')
if c['id']=='collaboration.manage':c['name']='Manage collaborator access';c['risks'].append('Verified Add/Remove operations; no arbitrary collaborator-role editor or ownership transfer is promised.')
if c['id']=='recording.baseline':
c['prerequisites']['allHard'].append('accepted-source');c['prerequisites']['allUseful']=[];c['evidence'].append(ev('PlotLine/Data/WritingActivityRepository.cs','if(json==null)throw new InvalidOperationException'))
if c['id']=='intent.evidence-decisions':c['prerequisites']['allHard'].append('intent-assessment')
if c['id']=='word.office-addin':
c['scope']='account';c['prerequisites']['allHard']=[];c['prerequisites']['optionalEnhancements']=['book'];c['risks'].append('Task-pane entry can present book selection/creation; pre-existing book is not required merely to open the host.')
# Keep availability separate from diagnostic relevance. Administrative access is never a story-data prerequisite.
if c['id'].startswith('admin.') or c['id'] in ['investigations.simulate','investigations.catalogue']:
c['availability']['additionalRestrictions'].append('AdminOnly; not available to a normal author merely because data exists.')
# Clearly labelled roadmap items: source-present specifications, no invented runtime route.
def planned(id,name,benefit,path,needle):
CAPS.append({'id':id,'name':name,'area':'guided-investigation','internalModule':'Future specification only','description':benefit,'primaryBenefit':benefit,'secondaryBenefits':[],'problemDriven':None,'opportunityDriven':benefit,'recommendationRoles':['supporting-capability'],'scope':'book','entryPoint':None,'operation':None,'supportingLogic':[],'uiEvidence':None,'entities':[],'implementationStatus':'planned-only','statusBasis':'Explicit source documentation/view marks this future work; no runtime adapter is claimed.','availability':{'authentication':'not-routable','additionalRestrictions':['Not implemented; do not recommend as a currently openable tool.']},'prerequisites':{'allHard':[],'allUseful':[],'optionalEnhancements':[],'semantics':'Not implemented; dependency contracts are proposed separately.'},'helpDocumentation':[],'evidence':[ev(path,needle)],'automaticReadiness':{'objectiveChecks':[],'subjectiveQuestionsNeeded':[],'currentEvaluatorImplemented':False},'risks':['Do not treat specification wording as evidence of working functionality.']})
for id,name in [('future.dependency-graph','Shared typed Feature Dependency Graph'),('future.readiness','Book-specific Progressive Readiness'),('future.preparation','Dynamic preparation journeys'),('future.family-tree','Feature Family Tree')]:
planned(id,name,'Proposed shared capability/dependency/readiness support for investigation and preparation.','Docs/Writer/Investigations/Architecture.md','Safe sequence:')
planned('writer.process-insights','Reflective writing-process and working-style insights','Planned interpretation of writing process, distinct from currently retained activity counts.','PlotLine/Views/Writer/_WriterReflect.cshtml','Writing Process and reflective insights are planned')
# Correct launcher and objective-vs-usefulness notes for exact targeted record routes.
for c in CAPS:
if c['entryPoint']:
c['entryPoint']['recordBindingNote']='When entry action needs id/bookId/chapterId/sceneId/writingPlanId/batchId or a filter model, bind the actual scoped record required by the source signature. A project ID alone is not sufficient. The source action is verified; no HTTP request was made during this read-only audit.'
c['automaticReadiness']['objectiveChecks']=c['prerequisites']['allHard']+c['prerequisites']['allUseful']
AREAS.setdefault(c['area'],{'id':c['area'],'name':c['area'].replace('-',' ').title(),'controllers':[]})
if c['internalModule'] not in AREAS[c['area']]['controllers']:AREAS[c['area']]['controllers'].append(c['internalModule'])
# Proposed typed expressions: declarative audit contracts only, not executable readiness code.
for key,c in CONDITIONS.items():
c['expression']={'op':'fact','key':key,'scope':c['scope'],'entities':c['entities'],'minimum':c['minimumQuantity'],'contract':c['predicate']}
c['logicalCombination']='AND' if c['predicate'].startswith('AND') else 'OR' if c['predicate'].startswith('OR') else 'scoped-fact'
c['associationRequirement']=c['predicate']
c['mandatoryVsRecommended']='Determined by each referencing capability: allHard / allUseful / optionalEnhancements.'
c['checkSemantics']='Unknown when the required scope/runtime proof is absent; do not fabricate counts or infer private author preparation.'
c['evidenceDimensionEffect']='none'
CONDITIONS['room-choice']['expression']={'op':'any','children':[{'op':'entity-reference','entity':'Locations','scope':'same-project','minimum':1},{'op':'inline-create','entity':'Locations','requiredFields':['NewLocationName-or-LabelOverride'],'sourceEvidence':ev(core,'private async Task<int> ResolveBlockLocationAsync')}],'note':'Inline creation satisfies this condition within AddBlock; it is not a prior separate task.'}
CONDITIONS['intentions']['expression']={'op':'any','children':[{'op':'nonempty-text','field':x} for x in ['Scenes.ScenePurposeNotes','Scenes.SceneOutcomeNotes','ChapterGoals.GoalSummary','ChapterGoals.EmotionalGoal','ChapterGoals.MustInclude','ChapterGoals.ReaderTakeaway','SceneChecklistItems.ItemText']]}
CONDITIONS['project']['expression']={'op':'all','children':[{'op':'entity-reference','entity':'Projects','scope':'current-project','minimum':1,'active':True},{'op':'permission','contract':'ProjectAccessService author membership; read/write/owner action authority evaluated separately'}]}
CONDITIONS['book']['expression']={'op':'all','children':[{'op':'condition','id':'project'},{'op':'entity-reference','entity':'Books','scope':'current-book-with-current-ProjectID','minimum':1,'active':True}]}
CONDITIONS['chapter']['expression']={'op':'all','children':[{'op':'condition','id':'book'},{'op':'entity-reference','entity':'Chapters','scope':'current-chapter-with-current-BookID','minimum':1,'active':True}]}
CONDITIONS['scene']['expression']={'op':'all','children':[{'op':'condition','id':'chapter'},{'op':'entity-reference','entity':'Scenes','scope':'current-scene-with-current-ChapterID','minimum':1,'active':True}]}
for key in ['native-session','verified-position','supported-player']:
CONDITIONS[key]['expression']={'op':'runtime-proof','kind':key,'requirements':CONDITIONS[key]['predicate'],'onMissingProof':'Unknown','onExplicitUnsupportedOrDenied':'Unavailable','databaseRowsAloneSufficient':False}
CONDITIONS['private-understanding']['expression']={'op':'author-confirmation','subject':'private-understanding','changesDiagnosticScores':False,'answerRetention':'Preparation answers separate from diagnostic answer/evidence revisions'}
# All producer alternatives express data state, not historical task completion.
for c in CONDITIONS.values():
c['producerSemantics']={'operator':'OR','capabilityIds':c['preparationCapabilities'],'alreadySatisfiedSkipsAllProducers':True,'authorMayChooseInlineOrExistingData':True,'absenceOfProducerMeans':'System/runtime requirement or unresolved creation path, never invent a setup step.'}
ids={c['id'] for c in CAPS}
def edge(kind,source,target,condition_id=None,reason='',proposal=False):
if source==target:return
if source not in ids or target not in ids:raise ValueError(f'Unknown edge {source}->{target}')
item={'type':kind,'source':source,'target':target,'direction':'source-to-target' if kind!='WorksWith' else 'bidirectional-complement; stored source/target are not precedence','conditionId':condition_id,'reason':reason,'status':'proposed-semantic-link' if proposal else 'source-backed-data-dependency','evidence':CONDITIONS[condition_id]['evidence'] if condition_id else list(dict.fromkeys(next(c['evidence'] for c in CAPS if c['id']==source)[:2]+next(c['evidence'] for c in CAPS if c['id']==target)[:2]))}
key=(kind,source,target,condition_id)
if not any((e['type'],e['source'],e['target'],e['conditionId'])==key for e in EDGES):
item['id']='dep-'+hashlib.sha256('|'.join(x or '' for x in key).encode()).hexdigest()[:12];EDGES.append(item)
for c in CAPS:
for group in ['allHard','allUseful','optionalEnhancements']:
for condition_id in c['prerequisites'][group]:
if condition_id not in CONDITIONS:raise ValueError(f'Unknown condition {condition_id}')
for producer in CONDITIONS[condition_id]['preparationCapabilities']:
kind='Requires' if group=='allHard' else 'BenefitsFrom'
edge(kind,producer,c['id'],condition_id,'Producer is one OR alternative for the scoped data fact; does not require visiting this screen if data already exists.')
if kind=='BenefitsFrom':EDGES[-1]['strength']='usefulness' if group=='allUseful' else 'optional-enhancement'
edge('ProducesDataFor',producer,c['id'],condition_id,'Source can establish or maintain data consumed here; creation does not imply all other readiness requirements are met.')
for a,b,why in [
('maps.create','floorplans.create','Map setting overview complements detailed interior staging; neither view is universally required by the other.'),
('context.inspect','intent.inspect','Saved facts/context and author intentions remain independent complementary windows.'),
('reader.continuous','review.observations','Reading accepted text complements optional recorded decisions; chapter-level observations can exist without prose.'),
('scenarios.create','timeline.inspect','Alternate order and canonical structure are complementary, not cyclic prerequisites.'),
('relationships.network','knowledge.timeline','Social structure and what characters know can inform the same author concern.'),
('writer.focus','word.navigate-chapter','Saved working target and explicit live Word navigation stay distinct.'),
('writer.focus','recording.sessions','A working objective never silently retargets an actual recorded session.'),
('planning.preview','recording.reports','Plans and measured activity complement each other without equating planned with completed work.'),
('continuity.explore','maps.story-scenes','Narrative-state and geographic views expose different evidence about the same recorded story.'),
('bible.reference','exports.research','Reference browsing complements explicit portable reference export.')]:edge('WorksWith',a,b,reason=why,proposal=True)
# Route action coverage is evidence-only; infrastructure is explicitly dispositioned rather than mislabeled a creative tool.
INFRA={
'Home':'Application/public landing and error surface; creative destinations accounted through navigation.',
'Public':'Marketing/features/legal/contact pages, not separate authored-story operations.',
'Pricing':'Pricing/trial/checkout entry; account.subscription covers entitlement, no financial recommendations.',
'StripeWebhook':'Billing-provider callback transport; not an author destination.',
'Sitemap':'Public SEO/sitemap transport; public Solver preservation boundary.',
'HelpDrawer':'Help popup/article transport; help.reference covers the user outcome.',
'HelpDiagnostics':'Protected Help diagnostics; not a separate author preparation dependency.',
'NativePresence':'Exact-document native lease transport; word.workspace/follow/navigation cover user outcomes.',
'NativeManuscriptCapture':'Native capture transport; imports.core/sync.accepted cover author outcomes.',
'NativeCompanionWorkflow':'Native connection/workspace/preview transport; word/sync/import capabilities cover outcomes.',
'NativeChapterSync':'Native chapter checkpoint transport; sync.chapter-check is the user operation.',
'WritingSolverReview':'Protected editorial case/replay tooling; separate public Solver review workflow, not a new story tool.',
'WritingSolverAdmin':'Public Solver catalogue administration; admin.solver-catalogue covers it.',
'WritingSolverWorkspace':'Authenticated public-Solver workspace handoff; source registry crosswalk recorded separately.',
'LegacyProblemSolver':'Legacy redirect compatibility; not a second current problem-solver engine.',
'Acceptance':'Retired Phase1 report bookmark redirects; not a live author feature.'}
# Dependency refinements surfaced by inspecting validators, rather than trusting labels.
CONDITIONS['geographic-hierarchy']['preparationCapabilities']=['locations.record','locations.hierarchy']
CONDITIONS['geographic-hierarchy']['producerSemantics']['capabilityIds']=CONDITIONS['geographic-hierarchy']['preparationCapabilities']
con('geographic-candidate','Candidate in the current lookup generation','LocationGeography','AND(lookup generation current, requested candidate index exists, candidate eligible for explicit confirmation)',1,['geography.lookup'],'Geography','Confirm')
CONDITIONS['geographic-candidate']['expression']={'op':'all','children':[{'op':'fact','key':'location-current-generation','contract':'Authorised LocationGeography generation matches submitted token'},{'op':'fact','key':'candidate-index','contract':'Candidate index points to one of the persisted current candidates'}]}
CONDITIONS['geographic-candidate']['logicalCombination']='AND'
CONDITIONS['geographic-candidate']['producerSemantics']={'operator':'OR','capabilityIds':['geography.lookup'],'alreadySatisfiedSkipsAllProducers':True}
CONDITIONS['geographic-candidate']['evidenceDimensionEffect']='none'
CONDITIONS['geographic-confirmed']['preparationCapabilities']=['geography.confirm']
CONDITIONS['geographic-confirmed']['producerSemantics']['capabilityIds']=['geography.confirm']
for c in CAPS:
if c['id']=='geography.confirm':c['prerequisites']['allHard'].append('geographic-candidate')
if c['internalModule']=='Onboarding' and c['area']=='story-intelligence':
se=ev('PlotLine/Services/OnboardingStoryIntelligenceService.cs','public sealed class OnboardingStoryIntelligenceService');c['supportingLogic']=[{'path':'PlotLine/Services/OnboardingStoryIntelligenceService.cs','symbol':'OnboardingStoryIntelligenceService','evidence':se}];c['evidence'].append(se)
if c['id']=='intelligence.narrative':
se=ev('PlotLine/Services/WholeBookPlotIntelligenceService.cs','public sealed class WholeBookPlotIntelligenceService');c['supportingLogic'].append({'path':'PlotLine/Services/WholeBookPlotIntelligenceService.cs','symbol':'WholeBookPlotIntelligenceService','evidence':se});c['evidence'].append(se)
if c['id']=='characters.reanalyse':c['evidence'].append(ev('PlotLine/Services/CharacterEnrichmentService.cs','public async Task<CharacterEnrichmentRun?> QueueForCharacterAsync'))
if c['id']=='admin.solver-catalogue':
se=ev('PlotLine/Data/WritingSolverRepository.cs','public sealed class WritingSolverRepository');c['supportingLogic']=[{'path':'PlotLine/Data/WritingSolverRepository.cs','symbol':'WritingSolverRepository','evidence':se}];c['evidence'].append(se);c['internalModule']='WritingSolverAdmin'
if c['id'] in ['platform.theme','platform.ribbon']:c['entities']=['AppUser']
c['automaticReadiness']['objectiveChecks']=c['prerequisites']['allHard']+c['prerequisites']['allUseful']
# Rebuild derived links after refinements. No application logic or current catalogue is modified.
EDGES=[]
for c in CAPS:
for group in ['allHard','allUseful','optionalEnhancements']:
for key in c['prerequisites'][group]:
for producer in CONDITIONS[key]['preparationCapabilities']:
if producer==c['id']:continue
kind='Requires' if group=='allHard' else 'BenefitsFrom'
edge(kind,producer,c['id'],key,'One OR producer of the required/useful scoped data, not a mandatory historical screen visit.')
if kind=='BenefitsFrom':
for e in EDGES:
if (e['type'],e['source'],e['target'],e['conditionId'])==(kind,producer,c['id'],key):e['strength']='usefulness' if group=='allUseful' else 'optional-enhancement'
edge('ProducesDataFor',producer,c['id'],key,'Establishes/maintains data consumed by target; other prerequisites remain independent.')
for a,b,why in [('maps.create','floorplans.create','Setting overview and interior staging complement each other.'),('context.inspect','intent.inspect','Recorded context and intentions are independent complementary views.'),('reader.continuous','review.observations','Accepted reading complements optional recorded decisions.'),('scenarios.create','timeline.inspect','Alternate and canonical order are complementary, not mutually required.'),('relationships.network','knowledge.timeline','Social structure and knowledge can illuminate the same concern.'),('writer.focus','word.navigate-chapter','Working focus does not silently move Word.'),('writer.focus','recording.sessions','Saved objective and actual session target remain independent.'),('planning.preview','recording.reports','A plan is not evidence of completed work.'),('continuity.explore','maps.story-scenes','State and geographic perspectives can support each other.'),('bible.reference','exports.research','Reference browsing complements an explicit portable export.')]:edge('WorksWith',a,b,reason=why,proposal=True)
con('archived-target','Selected supported archived record with authorised restoration/deletion context','Projects Books Chapters Scenes Characters Locations StoryAssets PlotLines PlotThreads','AND(entityType/ID supported, row archived, exact owner/access policy, required parent/restoration graph valid); root Project may itself be archived',1,[],'Archives','Restore','account',check='feasible-polymorphic-adapter-required')
CONDITIONS['archived-target']['expression']={'op':'selection','kind':'archived-entity','entityTypes':CONDITIONS['archived-target']['entities'],'minimum':1,'allowArchivedRootProject':True,'validation':'ArchiveService entity-specific permission/dependency contract, not the active-project condition'}
CONDITIONS['archived-target']['producerSemantics']={'operator':'OR','capabilityIds':[],'alreadySatisfiedSkipsAllProducers':True}
CONDITIONS['archived-target']['evidenceDimensionEffect']='none'
for c in CAPS:
if c['id'] in ['archive.restore','archive.delete','projects.delete']:
c['scope']='account';c['prerequisites']['allHard']=[x for x in c['prerequisites']['allHard'] if x!='project']+['archived-target'];c['entryPoint']['requiredContext']=['authorised entityType/entityId; parent constraints vary; do not require an active root project for Project restore']
c['automaticReadiness']['objectiveChecks']=c['prerequisites']['allHard']+c['prerequisites']['allUseful']
# Reconcile derived dependency links after the narrow archive-condition correction.
EDGES=[e for e in EDGES if not(e['target'] in ['archive.restore','archive.delete','projects.delete'] and e['conditionId']=='project')]
for c in CONDITIONS.values():
c.setdefault('logicalCombination','AND' if c['predicate'].startswith('AND') else 'OR' if c['predicate'].startswith('OR') else 'scoped-fact')
c.setdefault('associationRequirement',c['predicate']);c.setdefault('mandatoryVsRecommended','Per capability reference: hard, useful or optional.')
c.setdefault('checkSemantics','No scope/proof => Unknown; missing database rows do not establish subjective author readiness.')
c.setdefault('evidenceDimensionEffect','none')
# Owned scan state is a hard resource prerequisite, distinct from a pre-existing project/book.
con('capture-session','Authenticated native capture request for an open Word document','NativeCompanionInstallations OnboardingManuscriptCaptures','AND(valid installation/grant, supported open document, current owned wizard capture request); existing book linkage is NOT required for a first import',1,['word.connect'],'Onboarding','StartImport','account',check='runtime-capture-proof-only')
con('import-preview','Current author-owned captured manuscript preview','OnboardingManuscriptCaptures OnboardingManuscriptBuilds','AND(author-owned current preview/capture, valid source identity, saved review state, supported import input)',1,['imports.begin-capture'],'Onboarding','ScanReview','account',check='feasible-preview-store-read-required')
con('location-merge-target','Distinct compatible source and target locations','Locations','AND(two active distinct locations in same project, merge form/current source valid); does not require a spatial relationship type',2,['locations.record'],'Locations','Merge')
con('asset-merge-target','Distinct compatible source and target assets','StoryAssets','AND(two active distinct assets in same project, current merge source/target valid)',2,['assets.record'],'StoryAssets','Merge')
cap('imports.begin-capture','Capture a manuscript for a new import preview','Onboarding','StartImport','Bring an explicitly selected supported Word manuscript into the owned import review workflow.',['capture-session'],scope='account',status='implemented-restricted',roles=['preparation-capability'],extra=[ev('PlotLine/Controllers/NativeManuscriptCaptureController.cs','public async Task<IActionResult> Accept')],notes='First-book import does not require that a book already be linked. Native capture/wizard proof is distinct from an existing-book navigation lease.')
for c in CAPS:
if c['id'] in ['imports.core','imports.character-map','imports.basic-locations']:c['prerequisites']['allHard'].append('import-preview')
if c['id']=='locations.merge':c['prerequisites']['allHard']=[x for x in c['prerequisites']['allHard'] if x!='location-pair']+['location-merge-target']
if c['id']=='assets.merge':c['prerequisites']['allHard'].append('asset-merge-target')
c['automaticReadiness']['objectiveChecks']=c['prerequisites']['allHard']+c['prerequisites']['allUseful']
for key in ['capture-session','import-preview','location-merge-target','asset-merge-target']:
c=CONDITIONS[key];c['expression']={'op':'fact','key':key,'scope':c['scope'],'entities':c['entities'],'minimum':c['minimumQuantity'],'contract':c['predicate']};c['logicalCombination']='AND';c['associationRequirement']=c['predicate'];c['mandatoryVsRecommended']='Hard where referenced';c['checkSemantics']='Unknown without current scoped proof; no diagnostic score effect.';c['evidenceDimensionEffect']='none';c['producerSemantics']={'operator':'OR','capabilityIds':c['preparationCapabilities'],'alreadySatisfiedSkipsAllProducers':True}
# Derive the additional/refined edges from the same conditions, dropping superseded merge predicates.
ids={c['id'] for c in CAPS}
EDGES=[e for e in EDGES if not(e['target']=='locations.merge' and e['conditionId']=='location-pair')]
for c in CAPS:
for group in ['allHard','allUseful','optionalEnhancements']:
for key in c['prerequisites'][group]:
for producer in CONDITIONS[key]['preparationCapabilities']:
if producer==c['id']:continue
kind='Requires' if group=='allHard' else 'BenefitsFrom'
edge(kind,producer,c['id'],key,'OR producer of the scoped condition; no historical screen visit required.')
edge('ProducesDataFor',producer,c['id'],key,'Source can establish data consumed by target.')
GAPS=[
{'id':'gap-occupancy-write','capabilities':['floorplans.position-occupants','floorplans.scene-occupancy'],'severity':'implementation-gap','finding':'Saved occupancy read projection and repository/SQL writes exist; no application caller of the write interface was found. Do not promise a current author placement step.','resolve':'Trace/import existing producers or implement a separately approved authoring adapter.','evidence':[ev('PlotLine/Data/Repositories.cs','public async Task SaveAsync(int sceneId, int? floorPlanId'),ev(core,'var occupancyRows = await sceneOccupancy.ListByFloorPlanAsync')]},
{'id':'gap-source-bridge','capabilities':['sync.accepted','intent.assess','intelligence.analyse'],'severity':'contract-boundary','finding':'Accepted paragraph snapshots and SceneManuscriptSources are distinct stores. The audit does not assert every paragraph update materialises scene source for every legacy consumer.','resolve':'Bind readiness to the actual consumer store/generation; verify the relevant bridge before substituting one source fact for another.','evidence':[ev('PlotLine/Services/Manuscript/ParagraphManuscriptService.cs','var sceneSources=await imports.ListSceneManuscriptSourcesByBookAsync'),ev('PlotLine/Services/IntentAssessmentService.cs','var prose=(await source.ListSceneManuscriptSourcesByChapterAsync')]},
{'id':'gap-publishing','capabilities':['exports.chapter','exports.scene','books.manage'],'severity':'not-verified','finding':'Verified exports are reference HTML/Markdown/text and backup packages. No dedicated EPUB/PDF/typeset-manuscript/publisher-submission controller or exporter was verified. A book status is not publishing functionality.','resolve':'Treat end-to-end publishing as unsupported/unknown until a specific implementation is identified; do not add an invented route.','evidence':[ev(core,'"markdown" or "md" =>'),ev(core,'_ => ($"{slug}.html"')]},
{'id':'gap-runtime-proof','capabilities':['word.connect','word.navigate-chapter','recording.playback','context.displays'],'severity':'verification-limit','finding':'Windows/Office/player/display support is source-backed but not physically exercised in this read-only audit. SQL metadata cannot prove current connection, placement permission or playback capability.','resolve':'Runtime adapters return proof/freshness/Unknown; physical acceptance separately.','evidence':[ce('WriterWork','Command'),ev('PlotLine/Services/Writer/WriterWordService.cs','public async Task<bool> Navigate')]},
{'id':'gap-readiness-aggregates','capabilities':['future.readiness'],'severity':'specification-gap','finding':'Current services often load full editor/prose graphs. No shared minimal bulk readiness-fact API exists. Existing data/schema is verified; new bounded aggregate procedure signatures need approved implementation.','resolve':'Implement read-only scoped aggregate facts, reuse access contracts and pure validators, avoid side-effecting GET/workflow methods.','evidence':[ev('PlotLine/Services/ProjectExportService.cs','await activity.RecordAsync'),ev('PlotLine/Services/Investigations/InvestigationService.cs','public Evaluation Current')]},
{'id':'gap-batch-handles','capabilities':['intelligence.review-centre','intelligence.exceptions'],'severity':'compatibility-risk','finding':'Detailed review uses owned batchId with an in-memory batch store; a durable plan cannot assume that an old batch URL survives restart.','resolve':'Persist stable book/module/generation references; resolve current authorised workflow handle explicitly on resume, without implicit AI/generation during readiness.','evidence':[ev('PlotLine/Services/OnboardingStoryIntelligenceService.cs','private readonly ConcurrentDictionary<Guid, OnboardingStoryIntelligenceBatch> batches')]},
{'id':'gap-subjective-readiness','capabilities':['future.preparation'],'severity':'author-knowledge-boundary','finding':'Zero application rows do not mean the author has not developed the story privately. No existing readiness answer model can establish subjective confidence automatically.','resolve':'Separate preparation questions/answers from diagnostic evidence and user profile inference.','evidence':[ev('PlotLine/Services/Investigations/InvestigationEngine.cs','public static Evaluation Evaluate')]},
{'id':'gap-private-backup','capabilities':['recovery.project-export','investigations.resume','review.observations'],'severity':'retention-boundary','finding':'Do not assume shared project JSON includes private investigation/observation history. New preparation state will need an explicit retention/export/deletion policy.','resolve':'Additive private state with owner checks, book/account cascades and reviewed private export coverage; never silently put it in shared project packages.','evidence':[ev('PlotLine/Sql/273_WriterInvestigations.sql','CREATE TABLE dbo.WriterInvestigations'),ev('Docs/Writer/Investigations/Architecture.md','shared project JSON exports')]},
{'id':'gap-private-ideas','capabilities':['writer.explore','scenes.notes','intelligence.plot-context'],'severity':'coverage-boundary','finding':'Ideas are supported through existing intentions, notes, plot context and authenticated exploration. No standalone unrestricted brainstorming/chat/idea-board implementation was verified; Reflect writing-process inference is explicitly planned.','resolve':'Map recommendations to implemented actions; do not imply a general AI brainstorming chat or infer a writing style.','evidence':[ce('Writer','Explore'),ev('PlotLine/Views/Writer/_WriterReflect.cshtml','Writing Process and reflective insights are planned')]},
{'id':'gap-no-offline-editor','capabilities':['platform.pwa'],'severity':'scope-boundary','finding':'PWA worker has no fetch/cache/offline/background-sync handler; installation is not offline story editing.','resolve':'Readiness/plan resume must handle network failure and retain confirmed server state rather than advertising offline progress.','evidence':[ev('PlotLine/wwwroot/service-worker.js','Deliberately no fetch handler')]}
]
ALIASES={ 'characters':'characters.library','write':'writer.write','threads':'plotlines.workspace','timeline':'timeline.inspect','relationships':'relationships.network' }
PUBLIC_ALIASES={'plot':'plotlines.workspace','timeline':'timeline.inspect','scenes':'timeline.inspect','cast':'characters.library','appearances':'scenes.cast','relationships':'relationships.network','knowledge':'knowledge.timeline','development':'attributes.arc','locations':'locations.record','objects':'continuity.explore','flow':'timeline.inspect','scenarios':'scenarios.create','continuity':'continuity.explore','series':'projects.overview','organisation':'bible.reference'}
# Refine usefulness predicates to the actual consumed associations rather than unrelated row counts.
con('relationship-records','Recorded relationships in the selected network scope','CharacterRelationships','At least one baseline or scene-established relationship in the authorised project/book network',1,['relationships.baseline','relationships.scene-events'],'RelationshipMap','Index')
con('mapped-appearances','Character participation associated with mapped story scenes','SceneCharacters Scenes MapFeatures','At least one character participation row in selected book/scenario scenes whose canonical location resolves on this map; preserve presence/mention semantics',1,['scenes.cast','scenes.locations','maps.link-locations'],'Maps','Story')
con('knowledge-events','Recorded knowledge in selected character/story scope','CharacterKnowledge Scenes Chapters','COUNT(knowledge rows for selected character in authorised narrative scope)>0',1,['knowledge.record','intelligence.knowledge'],'Dynamics','Knowledge')
con('character-history','Recorded attribute changes OR scene participation','CharacterAttributeEvents SceneCharacters','OR(scoped character attribute events, scoped scene participation); retained chronology must match selected project/book',1,['attributes.events','scenes.cast'],'Dynamics','Character')
for key in ['relationship-records','mapped-appearances','knowledge-events','character-history']:
c=CONDITIONS[key];c['expression']={'op':'fact','key':key,'scope':c['scope'],'entities':c['entities'],'minimum':c['minimumQuantity'],'contract':c['predicate']};c['logicalCombination']='OR' if key=='character-history' else 'AND';c['associationRequirement']=c['predicate'];c['mandatoryVsRecommended']='Usefulness where referenced; empty viewer remains technically accessible.';c['checkSemantics']='Unknown without scope/proof; private author knowledge is not inferred.';c['evidenceDimensionEffect']='none';c['producerSemantics']={'operator':'OR','capabilityIds':c['preparationCapabilities'],'alreadySatisfiedSkipsAllProducers':True}
for c in CAPS:
if c['id']=='relationships.network':c['prerequisites']['allUseful']=['character-pair','relationship-records'];c['prerequisites']['optionalEnhancements']=['relationship-history','scene']
if c['id']=='relationships.at-point':c['prerequisites']['allUseful']=['relationship-records'];c['prerequisites']['optionalEnhancements']=['relationship-history','scene']
if c['id']=='maps.story-characters':c['prerequisites']['allUseful']=['mapped-appearances']
if c['id']=='knowledge.timeline':c['prerequisites']['allUseful']=['knowledge-events']
if c['id']=='attributes.arc':c['prerequisites']['allUseful']=['character-history']
c['automaticReadiness']['objectiveChecks']=c['prerequisites']['allHard']+c['prerequisites']['allUseful']
# One final projection of edges from the authoritative condition references.
complements=[e for e in EDGES if e['type']=='WorksWith'];EDGES=[]
for c in CAPS:
for group in ['allHard','allUseful','optionalEnhancements']:
for key in c['prerequisites'][group]:
for producer in CONDITIONS[key]['preparationCapabilities']:
if producer==c['id']:continue
kind='Requires' if group=='allHard' else 'BenefitsFrom';edge(kind,producer,c['id'],key,'One OR producer of the scoped data condition, not a mandatory historical screen visit.')
if kind=='BenefitsFrom':EDGES[-1]['strength']='usefulness' if group=='allUseful' else 'optional-enhancement'
edge('ProducesDataFor',producer,c['id'],key,'Source maintains data consumed by target; other guards remain independent.')
EDGES.extend(complements)
# Existing read candidates are exact Dapper call strings and live procedure names, not newly invented query APIs.
READ_PROCS={
'Projects':['Project_GetForUser'],'Books':['Book_Get'],'Chapters':['Chapter_Get','Chapter_ListByBook'],'Scenes':['Scene_Get','Scene_ListByChapter'],
'Characters':['Character_Get','Character_ListByProject'],'Locations':['Location_Get','Location_ListByProject'],
'StoryMaps':['StoryMap_Get','StoryMap_List'],'MapFeatures':['StoryMap_Get'],'MapRelationships':['StoryMap_Get'],
'FloorPlans':['FloorPlan_Get','FloorPlan_GetEditor'],'FloorPlanFloors':['FloorPlanFloor_ListByPlan'],'FloorPlanBlocks':['FloorPlanBlock_ListByPlan'],
'SceneFloorPlanOccupancy':['SceneFloorPlanOccupancy_ListByScene','SceneFloorPlanOccupancy_ListByFloorPlan'],
'PlotLines':['PlotLine_Get','PlotLine_ListByProject'],'PlotThreads':['PlotThread_Get','PlotThread_ListByProject'],
'BookParagraphManuscripts':['WriterWord_Status'],'WritingActivityEvents':['WritingActivity_List'],
'StoryIntelligenceReviewCandidateGenerations':['StoryIntelligenceReviewCandidateGeneration_GetCurrent'],
'StoryIntelligenceReviewCandidates':['StoryIntelligenceReviewCandidate_ListPage']}
DATA_PROCEDURES={}
for file in sorted((ROOT/'PlotLine/Data').glob('*.cs')):
for m in re.finditer(r'"dbo\.([A-Za-z0-9_]+)"',file.read_text()):DATA_PROCEDURES.setdefault(m[1],(str(file.relative_to(ROOT)),m[0]))
for c in CONDITIONS.values():
candidates=[]
for entity in c['entities']:
for proc in READ_PROCS.get(entity,[]):
if proc in DATA_PROCEDURES and not any(x['procedure']==proc for x in candidates):
path,needle=DATA_PROCEDURES[proc];candidates.append({'procedure':proc,'evidence':ev(path,needle),'suitability':'Existing read reference only; inspect returned payload size and actor/scope guard. A future minimal aggregate may still be required.'})
c['existingReadCandidates']=candidates
c['proposedAggregateStatus']='Not implemented. A scoped, bounded fact projection is required where existing reads return editor graphs/prose or cannot express this association.'
c['scopeBindingRule']='Missing selected ID is an unresolved selector, not proof that no relevant record exists; use existing eligible-record selection before proposing creation.'
# Ground secondary benefits in actual producer/complement links rather than manufacture another promised feature.
for c in CAPS:
targets=[next(t['name'] for t in CAPS if t['id']==e['target']) for e in EDGES if e['source']==c['id'] and e['type']=='ProducesDataFor']
if targets:c['secondaryBenefits']=['Provides scoped recorded data for '+', '.join(list(dict.fromkeys(targets))[:3])+'.']
elif c['implementationStatus']!='planned-only':c['secondaryBenefits']=[]
for c in CAPS:
if c['internalModule'] in ['Exports','ManageAccount','Account','Admin','WritingSolverAdmin']:
c['availability']['subscription']='This controller is exempt from the global EditContent POST filter; domain-specific owner, resource, billing or AI guards still apply. Do not infer entitlement from this exemption.'
if c['internalModule']=='BookRecovery':c['availability']['subscription']='Read-only account safety exception preserves package review/download/upload/preview/confirm endpoints; actual restore still reserves active-book resources and checks its graph.'
if c['internalModule']=='WriterInvestigations':c['availability']['additionalRestrictions'].append('Current global EditContent POST filter also affects private investigation saves; review separately before adding preparation-state writes for read-only accounts.')
BUNDLE='plotdirector-capability-audit-3d2a-v1'
COMMIT=subprocess.check_output(['git','rev-parse',BASE],cwd=ROOT,text=True).strip()
def envelope(kind):return {'schemaVersion':1,'bundleId':BUNDLE,'kind':kind,'sourceCommit':COMMIT,'sourceBranch':'codex/word-companion-native-phase1-20261104','auditMode':'read-only application; metadata/reference counts only in Development; documentation/tooling changes','authority':'Proposed review baseline, not imported into the runtime. All four exports describe one shared graph model.'}
def dump(name,obj): (OUT/name).write_text(json.dumps(obj,ensure_ascii=False,indent=2)+'\n')
def controller_index():
result=[]
for p in sorted((ROOT/'PlotLine/Controllers').glob('*.cs')):
text=p.read_text();classes=list(re.finditer(r'public\s+(?:sealed\s+)?class\s+(\w+Controller)\b',text))
actions=[]
for m in re.finditer(r'\bpublic\s+(?:async\s+)?(?:Task(?:<[^\n]+?>)?|IActionResult|ActionResult(?:<[^\n]+?>)?|JsonResult|FileResult|ContentResult)\s+(\w+)\s*\(',text):
owner=next((c[1] for c in reversed(classes) if c.start()<m.start()),p.stem)
actions.append({'controllerClass':owner,'action':m[1],'line':text[:m.start()].count('\n')+1})
relative=str(p.relative_to(ROOT));names=[c[1].removesuffix('Controller') for c in classes]
capids=sorted(c['id'] for c in CAPS if c.get('internalModule') in names or any(EVIDENCE[e]['path']==relative for e in c['evidence']))
reason='Mapped to meaningful capability groups; action index includes transport/retry variants, not one capability per method.' if capids else INFRA.get(p.stem.removesuffix('Controller'),'Unresolved source coverage; inspect before claiming full coverage.')
result.append({'path':relative,'controllerClasses':names,'publicActionIndex':actions,'capabilityIds':capids,'disposition':reason,'sha256':hashlib.sha256(p.read_bytes()).hexdigest()})
return result
def generate():
# Direct source entities are verified against live Development metadata, never author values.
rows=[json.loads(l) for l in (OUT/'Audit-3D2A/Development-Schema.jsonl').read_text().splitlines()]
tables={r['TableName'] for r in rows if 'TableName' in r}
source=envelope('source-evidence');source['evidence']=list(EVIDENCE.values());dump('Audit-3D2A/Source-Evidence.json',source)
cat=envelope('capability-catalogue');cat.update({'idPolicy':'Stable lower-case dotted capability IDs; never reuse for a different author outcome. Conditions have separate IDs.','granularityRules':['Separate meaningful independently recommendable outcomes or materially different prerequisites.','Keep CRUD/retry/toolbar variants together unless author benefit or required context differs.','Separate blank workspace access from data-dependent use; do not mistake an empty screen for an unavailable capability.','Benefits/problem-language and recommendation roles are proposed design interpretation; routes/guards/status are source claims.','Planned and partial entries are explicitly non-openable or unverified; never use documentation alone as proof of implementation.'],'areas':[{**a,'controllers':sorted(set(c['internalModule'] for c in CAPS if c['area']==a['id']))} for a in AREAS.values() if any(c['area']==a['id'] for c in CAPS)],'capabilities':CAPS,'phase3D1Aliases':ALIASES,'publicSolverCrosswalk':PUBLIC_ALIASES,'unresolved':GAPS});dump('Capability-Catalogue.json',cat)
dep=envelope('feature-dependencies');dep.update({'relationshipTypes':{'Requires':'source can establish data required by target; condition/OR alternatives authoritative, not a required screen history','BenefitsFrom':'source improves target usefulness; optional enhancement marked strength; target can remain technically available','WorksWith':'complementary pair, not precedence or a hard prerequisite','ProducesDataFor':'source maintains data consumed by target; does not imply permission or sufficient readiness'},'conditionDefinitions':'Readiness-Specification.json#conditions','edges':EDGES,'cyclePolicy':'Hard condition/selector cycles need review; alternative producers are OR choices, not all mandatory. WorksWith/ProducesDataFor cycles are not automatically invalid. Planner must retain visited scoped conditions and choose a satisfiable minimal alternative.'});dump('Feature-Dependencies.json',dep)
ready=envelope('readiness-specification');ready.update({'implemented':False,'diagnosticEvidenceEffect':'none; missing data, permissions or preparation must never modify hypothesis weights or diagnostic evidence history','states':['Ready','Preparation recommended','Preparation required','Unavailable','Unknown or not verifiable'],'stateRules':[{'when':'Feature planned-only, operation explicitly unsupported, or permission/subscription/environment denied','state':'Unavailable'},{'when':'Required scope, runtime proof, source generation or reliable selector unresolved','state':'Unknown or not verifiable'},{'when':'All availability gates pass but one hard data condition is confirmed missing','state':'Preparation required'},{'when':'Hard conditions met; usefulness conditions confirmed missing','state':'Preparation recommended'},{'when':'Hard/usefulness conditions met; optional enhancements can remain absent','state':'Ready'}],'conditions':list(CONDITIONS.values()),'sharedContextKeys':['authorId','projectId','bookId','chapterId?','sceneId?','characterId?','locationId?','assetId?','mapId?','floorPlanId?','writingPlanId?','scenarioId?','catalogueVersion','graphVersion','sourceRevision/generation?','nativeInstance/session?'],'freshnessPolicy':'Re-evaluate permission/scope on every open/write, source/generation after accepted changes, and runtime leases using existing expiry; no inferred readiness from a stale UI badge.','proposedFactResult':{'status':'met|missing|unknown|unavailable','scope':'author/project/book plus selected typed record IDs','evidence':'counts/associations/generation; no manuscript prose required by default','evaluatedUtc':'timestamp','expiresUtc':'runtime/source-specific or null','provenance':'selector/version/source reference','authorConfirmation':'separate preparation state, never diagnostic weights'},'plannerRequirements':['Preserve original recommendation/capability and pinned diagnostic evidence snapshot.','Resolve missing hard conditions recursively; treat producer alternatives as OR and independent conditions as AND.','Select minimum useful, authorised, non-destructive preparation; prefer inline creation and existing records.','Recognise work completed elsewhere and recheck after each explicit step.','Do not automatically import, run AI, restore/delete, change source, save Word, or modify an objective/session.','Keep private preparation answers outside Investigation.Answers and outside diagnostic substantive-answer counts.','Defer/skip optional preparation, retain unknowns and explain unavailable permissions/features.'],'schemaMigrationRecommendation':'Additive shared capability graph/condition registry plus separately retained private preparation sessions/steps/answers; preserve schema1 immutable catalogue JSON and events using explicit aliases/adapters. Never rewrite migration273.'});dump('Readiness-Specification.json',ready)
controllers=controller_index();counts=collections.Counter(c['implementationStatus'] for c in CAPS);edgecounts=collections.Counter(e['type'] for e in EDGES)
# Enumerate concrete command destinations without relying on labels alone.
nav=[]
for line_no,line in enumerate(read('PlotLine/Services/ToolbarCommands.cs').splitlines(),1):
m=re.search(r'new\("([^"]+)",\s*"([^"]+)".*?,\s*"([A-Za-z]+)",\s*"([A-Za-z]+)",\s*"[^"]+"',line)
if m:nav.append({'key':m[1],'name':m[2],'controller':m[3],'action':m[4],'source':'PlotLine/Services/ToolbarCommands.cs','line':line_no,'capabilityIds':[c['id'] for c in CAPS if c.get('internalModule')==m[3] or (c.get('entryPoint') or {}).get('controller')==m[3]]})
for file in ['PlotLine/Services/ApplicationRibbon.cs','PlotLine/Services/WriterNavigation.cs']:
for line_no,line in enumerate(read(file).splitlines(),1):
for m in re.finditer(r'new\("([^\"]+)",\s*"[^\"]+",\s*"([A-Za-z]+)",\s*"([A-Za-z]+)"',line):
nav.append({'key':None,'name':m[1],'controller':m[2],'action':m[3],'source':file,'line':line_no,'conditional':'Source may apply contextual/owner/post/runtime availability; not every command is visible together.','capabilityIds':[c['id'] for c in CAPS if c.get('internalModule')==m[2] or (c.get('entryPoint') or {}).get('controller')==m[2]]})
coverage=envelope('capability-coverage');coverage.update({'exhaustivenessClaim':False,'coverageStatement':'All declared toolbar destinations and source controller files dispositioned. Source/evidence-level audit, not a claim of every runtime configuration, all hidden branch behaviour or physical platform usability. Gaps are explicit.','counts':{'functionalAreas':len(cat['areas']),'catalogueEntries':len(CAPS),'implementedUsable':counts['implemented-usable'],'implementedRestricted':counts['implemented-restricted'],'partial':counts['partially-implemented'],'planned':counts['planned-only'],'legacyAccessible':counts['legacy-accessible'],'withIdentifiedConditions':sum(any(c['prerequisites'][k] for k in ['allHard','allUseful','optionalEnhancements']) for c in CAPS),'withNoExplicitDataConditions':sum(not any(c['prerequisites'][k] for k in ['allHard','allUseful','optionalEnhancements']) for c in CAPS),'unresolvedIssues':len(GAPS),'unresolvedPrerequisiteDefinitions':sum('unresolved' in c['automaticCheck']['status'] for c in CONDITIONS.values()),'subjectiveNotAutomaticallyVerifiable':sum(c['knowledgeKind']=='subjective-author-question' for c in CONDITIONS.values()),'conditionDefinitions':len(CONDITIONS),'dependencyRelationships':len(EDGES),'dependenciesByType':dict(edgecounts),'verifiedEntryActions':sum(c['entryPoint'] is not None for c in CAPS),'verifiedImplementedOrLegacyEntryActions':sum(c['entryPoint'] is not None and c['implementationStatus'] not in ['partially-implemented','planned-only'] for c in CAPS),'documentedBenefits':sum(bool(c['primaryBenefit']) for c in CAPS),'potentialInvestigationDestinationsOrSupport':sum(c['implementationStatus']=='implemented-usable' and any(r in ['primary-destination','supporting-capability','preparation-capability','optional-enhancement'] for r in c['recommendationRoles']) for c in CAPS),'controllerFiles':len(controllers),'controllerClasses':sum(len(c['controllerClasses']) for c in controllers),'heuristicPublicActions':sum(len(c['publicActionIndex']) for c in controllers),'toolbarDestinations':sum(n['source']=='PlotLine/Services/ToolbarCommands.cs' for n in nav),'navigationCommandOccurrences':len(nav),'uniqueNavigationDestinations':len({(n['controller'],n['action']) for n in nav}),'liveSchemaTables':len(tables),'liveSchemaProcedures':sum('ProcedureName'in r for r in rows)},'navigation':nav,'controllers':controllers,'unresolved':GAPS,'capabilityEvidenceFile':'Audit-3D2A/Source-Evidence.json','databaseEvidence':['Audit-3D2A/Development-Schema.jsonl','Audit-3D2A/Reference-Availability.jsonl'],'unresolvedPrerequisites':[{'conditionId':c['id'],'reason':c['automaticCheck']['status']} for c in CONDITIONS.values() if 'unresolved' in c['automaticCheck']['status']],'semanticLimits':['Per-action index is a C# source-discovery heuristic, not ASP.NET endpoint enumeration.','Capability roles/benefits and some complementary edges are proposed author-discovery interpretation, not measured diagnoses.','No application endpoints, provider calls, imports, validation jobs, queues or domain database writes were executed.']});dump('Capability-Coverage.json',coverage)
inventory(cat,coverage)
print(json.dumps(coverage['counts'],indent=2))
def inventory(cat,coverage):
lines=['# Complete feature inventory — proposed Phase3D.2A review baseline','',f"Source baseline `{COMMIT}`; shared branch `codex/word-companion-native-phase1-20261104`. Documentation/tooling only. {len(CAPS)} entries across {len(cat['areas'])} functional areas. Counts distinguish implemented, restricted, partial, legacy and planned work; no100% runtime coverage claim.",'','The structured [Capability-Catalogue.json](Capability-Catalogue.json) is the detailed record: actual controller/action entry and operation, exact source anchors, business logic, entity graph, scope/authority, restrictions, hard/useful/optional conditions, Help, author benefits and proposed recommendation roles. [Readiness-Specification.json](Readiness-Specification.json) defines each condition, counts/associations/AND–OR alternatives, check feasibility, freshness and preparation sources. Source references resolve through [Source-Evidence.json](Audit-3D2A/Source-Evidence.json) with line excerpts and hashes. No routes were guessed or opened. Contextual ribbon, explicit application commands and toolbar entries are all dispositioned in the coverage export.','', '## Granularity and evidence rules','',*['- '+x for x in cat['granularityRules']], '', 'Controller/action identities are verified entry points; a future MVC adapter must bind the actual source signature and scoped record IDs. A fragment, POST operation or native API is not itself presented as a standalone author page. Record selectors, in-memory batch handles and runtime grants require their own bindings. Schema existence is supporting evidence, not proof that a complete user workflow exists.','', 'Benefits, discovery examples and role classifications are proposed interpretation of source-backed operations; they are not a production questionnaire or manuscript diagnosis. Context/access/edit entitlement is separate from story-data prerequisites. Empty project-scoped shells can be usable even when no useful result rows exist.','', '## Inventory by functional area','']
for a in sorted(cat['areas'],key=lambda x:x['id']):
lines+=['### '+a['name'],'','| ID / author capability | Benefit and discovery opportunity | Status; scope | Hard / usefulness / optional condition IDs | Verified entry and source |','|---|---|---|---|---|']
for c in [c for c in CAPS if c['area']==a['id']]:
p=c['prerequisites'];ep=c['entryPoint'];entry='No runtime entry' if not ep else ep['controller']+'.'+ep['action'];first=EVIDENCE[c['evidence'][0]]
ref=f"`{first['path']}:{first['line']}`";conditions='H: '+(', '.join(p['allHard']) or 'none')+'; U: '+(', '.join(p['allUseful']) or 'none')+'; O: '+(', '.join(p['optionalEnhancements']) or 'none')
lines.append('| `'+c['id']+'` — '+c['name']+' | '+c['primaryBenefit'].replace('|','/')+' | '+c['implementationStatus']+'; '+c['scope']+' | '+conditions+' | '+entry+'; '+ref+' |')
lines+=['']
lines+=['## Important boundaries and unresolved work','']
for g in GAPS:lines+=['- **'+g['id']+'**: '+g['finding']+' '+g['resolve']]
lines+=['','## Coverage and reproducibility','',f"{coverage['counts']['controllerFiles']} controller source files, {coverage['counts']['controllerClasses']} declared controller classes and {coverage['counts']['toolbarDestinations']} toolbar destinations are dispositioned in Capability-Coverage.json. The action index is heuristic, not a claim of every dynamically composed route. Development metadata confirms {coverage['counts']['liveSchemaTables']} tables and {coverage['counts']['liveSchemaProcedures']} procedures. No author content or credential values were exported.",'','Run `python3 Tools/WriterCapabilityAudit/build_inventory.py` from any directory to regenerate the reviewed snapshot from source and committed metadata, then `python3 Tools/WriterCapabilityAudit/validate_inventory.py --self-test`. The compiler never connects to the database. Refreshing metadata requires a separately authorised read-only connection and the guarded SELECT scripts; do not run application/workflow procedures as readiness probes.','']
(OUT/'Complete-Feature-Inventory.md').write_text('\n'.join(lines))
if __name__=='__main__':generate()

View File

@ -0,0 +1,97 @@
#!/usr/bin/env python3
"""Validate documentation exports offline. This is not a runtime dependency/readiness engine."""
from pathlib import Path
import json,re,hashlib,collections,copy,argparse
ROOT=Path(__file__).resolve().parents[2];OUT=ROOT/'Docs/Writer/Investigations'
STATUSES={'implemented-usable','implemented-restricted','partially-implemented','planned-only','legacy-accessible'}
TYPES={'Requires','BenefitsFrom','WorksWith','ProducesDataFor'}
def load():return {k:json.loads((OUT/p).read_text()) for k,p in [('catalogue','Capability-Catalogue.json'),('dependencies','Feature-Dependencies.json'),('readiness','Readiness-Specification.json'),('coverage','Capability-Coverage.json'),('evidence','Audit-3D2A/Source-Evidence.json')]}
def require(ok,message):
if not ok:raise ValueError(message)
def unique(items,label):
ids=[x['id'] for x in items];require(len(ids)==len(set(ids)),f'duplicate {label} IDs');require(all(re.fullmatch(r'[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*',x) for x in ids),f'invalid {label} ID');return set(ids)
def scc(nodes,edges):
adj={x:[] for x in nodes}
for a,b in edges:adj[a].append(b)
index={};low={};stack=[];on=set();groups=[]
def visit(v):
index[v]=low[v]=len(index);stack.append(v);on.add(v)
for w in adj[v]:
if w not in index:visit(w);low[v]=min(low[v],low[w])
elif w in on:low[v]=min(low[v],index[w])
if low[v]==index[v]:
group=[]
while True:
w=stack.pop();on.remove(w);group.append(w)
if w==v:break
if len(group)>1:groups.append(sorted(group))
for v in sorted(nodes):
if v not in index:visit(v)
return sorted(groups)
def validate(b,check_source=True):
cat,dep,ready,cov,src=(b[k] for k in ['catalogue','dependencies','readiness','coverage','evidence'])
require(all(x['schemaVersion']==1 for x in b.values()),'schema version mismatch')
require(len({x['bundleId'] for x in b.values()})==1 and len({x['sourceCommit'] for x in b.values()})==1,'bundle/source version mismatch')
ids=unique(cat['capabilities'],'capability');conditions=unique(ready['conditions'],'condition');evidence=unique(src['evidence'],'evidence');areas=unique(cat['areas'],'area');unique(dep['edges'],'dependency')
bycond={x['id']:x for x in ready['conditions']};byev={x['id']:x for x in src['evidence']}
rows=[json.loads(l) for l in (OUT/'Audit-3D2A/Development-Schema.jsonl').read_text().splitlines()];tables={r['TableName'] for r in rows if 'TableName'in r};procedures={r['ProcedureName'] for r in rows if 'ProcedureName'in r}
def refs(values):require(set(values)<=evidence,'orphaned source evidence')
def expression(e):
require(e['op'] in {'fact','all','any','condition','runtime-proof','author-confirmation','entity-reference','inline-create','nonempty-text','permission','selection'},'invalid expression type')
if e['op']=='condition':require(e['id'] in conditions,'orphaned condition expression')
for x in e.get('children',[]):expression(x)
for c in cat['capabilities']:
require(c['implementationStatus'] in STATUSES,'invalid implementation status');require(c['area'] in areas,'orphaned area');require(bool(c['primaryBenefit']) and bool(c['description']),'missing benefit')
require(set(c['entities'])<=tables,'unverified database entity: '+c['id']);refs(c['evidence'])
for group in ['allHard','allUseful','optionalEnhancements']:
require(set(c['prerequisites'][group])<=conditions,'orphaned prerequisite')
if c['entryPoint']:
require(c['entryPoint']['sourceEvidence'] in evidence,'entry lacks source');e=byev[c['entryPoint']['sourceEvidence']]
require(e['path'].endswith(c['entryPoint']['controller']+'Controller.cs'),'entry controller/file mismatch')
require(re.search(r'\b'+re.escape(c['entryPoint']['action'])+r'\s*\(',e['excerpt']) is not None,'entry action mismatch')
else:require(c['implementationStatus']=='planned-only','implemented capability without entry')
for p in c['helpDocumentation']:require((ROOT/p).is_file(),'unverified Help path')
for c in ready['conditions']:
require(set(c['entities'])<=tables,'unverified condition entity: '+c['id']);require(set(c['preparationCapabilities'])<=ids,'orphaned producer');refs(c['evidence']);expression(c['expression']);
for candidate in c.get('existingReadCandidates',[]):require(candidate['procedure'] in procedures and candidate['evidence'] in evidence,'unverified existing read procedure')
require(c['evidenceDimensionEffect']=='none','readiness must not affect diagnostic evidence')
for e in dep['edges']:
require(e['type'] in TYPES,'invalid dependency type');require(e['source'] in ids and e['target'] in ids,'orphaned dependency');require(e['source']!=e['target'],'self dependency');refs(e['evidence'])
if e['conditionId'] is not None:
require(e['conditionId'] in conditions,'orphaned edge condition');require(e['source'] in bycond[e['conditionId']]['preparationCapabilities'],'edge source is not a declared producer')
target=next(c for c in cat['capabilities'] if c['id']==e['target']); groups=target['prerequisites']
if e['type']=='Requires':require(e['conditionId'] in groups['allHard'],'requires/usefulness confused')
if e['type']=='BenefitsFrom':require(e['conditionId'] in groups['allUseful']+groups['optionalEnhancements'],'benefit/hard confused')
if e['type']=='ProducesDataFor':require(any(e['conditionId'] in v for k,v in groups.items() if k!='semantics'),'producer edge has no consumer condition')
for a,target in {**cat['phase3D1Aliases'],**cat['publicSolverCrosswalk']}.items():require(target in ids,'orphaned compatibility alias')
for n in cov['navigation']:require(n['capabilityIds'] and set(n['capabilityIds'])<=ids,'unexamined navigation destination')
for c in cov['controllers']:require(not c['disposition'].startswith('Unresolved source'),'undispositioned controller');require(set(c['capabilityIds'])<=ids,'invalid coverage mapping')
if check_source:
for e in src['evidence']:
p=ROOT/e['path'];require(p.is_file(),'missing evidence file');require(hashlib.sha256(p.read_bytes()).hexdigest()==e['fileSha256'],'source drift: '+e['path']);lines=p.read_text().splitlines();require(0<e['line']<=len(lines) and lines[e['line']-1].strip()==e['excerpt'],'stale line reference')
bystatus=collections.Counter(c['implementationStatus'] for c in cat['capabilities']);bytype=collections.Counter(e['type'] for e in dep['edges'])
require(cov['counts']['catalogueEntries']==len(ids) and cov['counts']['dependencyRelationships']==len(dep['edges']),'stale coverage totals')
require(cov['counts']['dependenciesByType']==dict(bytype),'stale dependency breakdown')
# Cycles in the union of OR producers are not automatically mandatory cycles; emit for human review.
unioncycles=scc(ids,[(e['source'],e['target']) for e in dep['edges'] if e['type']=='Requires'])
singletoncycles=scc(ids,[(e['source'],e['target']) for e in dep['edges'] if e['type']=='Requires' and len(bycond[e['conditionId']]['preparationCapabilities'])==1 and bycond[e['conditionId']]['expression']['op']!='any'])
return {'schemaVersion':1,'bundleId':cat['bundleId'],'sourceCommit':cat['sourceCommit'],'passed':True,'capabilities':len(ids),'areas':len(areas),'conditions':len(conditions),'edges':len(dep['edges']),'statuses':dict(bystatus),'edgesByType':dict(bytype),'sourceAnchorsVerified':len(evidence),'unresolvedIssues':len(cat['unresolved']),'requiresUnionStrongComponents':unioncycles,'singleProducerRequiresStrongComponents':singletoncycles,'scope':'Static export/reference/source validation only; no application/database execution or runtime readiness evaluation.'}
def self_test(b):
cases=[]
def test(label,mutate):
x=copy.deepcopy(b);mutate(x)
try:validate(x,False)
except ValueError:cases.append(label);return
raise AssertionError('invalid export accepted: '+label)
test('duplicate capability',lambda x:x['catalogue']['capabilities'].append(x['catalogue']['capabilities'][0]))
test('invalid stable ID',lambda x:x['catalogue']['capabilities'][0].update(id='BAD ID'))
test('orphan edge',lambda x:x['dependencies']['edges'][0].update(target='missing.capability'))
test('invalid edge type',lambda x:x['dependencies']['edges'][0].update(type='MenuLink'))
test('invalid status',lambda x:x['catalogue']['capabilities'][0].update(implementationStatus='implemented-because-menu'))
test('orphan condition',lambda x:x['catalogue']['capabilities'][0]['prerequisites']['allHard'].append('missing-condition'))
test('invalid schema',lambda x:x['readiness'].update(schemaVersion=2))
test('readiness rescoring',lambda x:x['readiness']['conditions'][0].update(evidenceDimensionEffect='increase-confidence'))
test('invented table',lambda x:x['catalogue']['capabilities'][0]['entities'].append('InventedCapabilitiesTable'))
return cases
if __name__=='__main__':
parser=argparse.ArgumentParser();parser.add_argument('--self-test',action='store_true');args=parser.parse_args();b=load();report=validate(b);report['negativeCases']=self_test(b) if args.self_test else [];dest=OUT/'Audit-3D2A/Validation-Report.json';dest.write_text(json.dumps(report,indent=2)+'\n');print(json.dumps(report,indent=2))