745 lines
168 KiB
Python
745 lines
168 KiB
Python
#!/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()
|