12 KiB
12 KiB
| 1 | file | line | method | operation | tables | reason | proposed_procedure | compatibility | risk | status |
|---|---|---|---|---|---|---|---|---|---|---|
| 2 | PlotLine/Services/StoryIntelligenceDevelopmentResetService.cs | 21 | StoryIntelligenceDevelopmentResetService.ResetOwnedProjectsAndImportsAsync | DELETE/INSERT/SELECT/UPDATE | Books; ProjectUserAccess; Projects; StoryIntelligenceBookPipelines; StoryIntelligenceCharacterIllustrationAssignments; StoryIntelligenceIllustrationDemands; StoryIntelligenceRuns; StoryMemoryAssets; StoryMemoryCharacterAliases; StoryMemoryCharacterAttributes; StoryMemoryCharacters; StoryMemoryIllustrationAssignments; StoryMemoryIllustrationDemands; StoryMemoryImportPreferences; StoryMemoryLocations; StoryMemoryProcessedSceneResults; StoryMemoryRelationships | Runtime executable SQL outside stored procedure layer | dbo.StoryIntelligenceDevelopmentReset_Prepare | Separate migration and legacy-state/write/concurrency qualification | High: reset/runtime DDL | Deferred |
| 3 | PlotLine/Services/StoryIntelligenceDevelopmentResetService.cs | 30 | StoryIntelligenceDevelopmentResetService.ResetOwnedProjectsAndImportsAsync | SELECT | IllustrationLibraryItems; ProjectUserAccess; Projects; StoryIntelligenceBookPipelines; StoryIntelligenceRuns | Runtime executable SQL outside stored procedure layer | dbo.StoryIntelligenceDevelopmentReset_Verify | Separate migration and legacy-state/write/concurrency qualification | High: reset/runtime DDL | Deferred |
| 4 | PlotLine/Data/OnboardingRepository.cs | 72 | OnboardingRepository.ClearWritingSoftwareAsync | UPDATE | UserOnboardingState | Runtime executable SQL outside stored procedure layer | dbo.UserOnboarding_ClearWritingSoftware | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 5 | PlotLine/Data/StoryMemoryRepository.cs | 39 | StoryMemoryRepository.ClearDerivedStateAsync | DELETE | StoryMemoryAssets; StoryMemoryCharacterAliases; StoryMemoryCharacterAttributes; StoryMemoryCharacters; StoryMemoryIllustrationAssignments; StoryMemoryIllustrationDemands; StoryMemoryLocations; StoryMemoryProcessedSceneResults; StoryMemoryRelationships | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ClearDerivedState | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 6 | PlotLine/Data/StoryMemoryRepository.cs | 63 | StoryMemoryRepository.ListProcessedSceneResultIdsAsync | SELECT | StoryMemoryProcessedSceneResults | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListProcessedSceneResultIds | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 7 | PlotLine/Data/StoryMemoryRepository.cs | 77 | StoryMemoryRepository.MarkSceneResultProcessedAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryProcessedSceneResults | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_MarkSceneResultProcessed | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 8 | PlotLine/Data/StoryMemoryRepository.cs | 96 | StoryMemoryRepository.UpsertCharacterAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryCharacters | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertCharacter | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 9 | PlotLine/Data/StoryMemoryRepository.cs | 131 | StoryMemoryRepository.AddCharacterAliasAsync | INSERT/MERGE/SELECT | StoryMemoryCharacterAliases | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_AddCharacterAlias | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 10 | PlotLine/Data/StoryMemoryRepository.cs | 148 | StoryMemoryRepository.AddCharacterAttributeAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryCharacterAttributes | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_AddCharacterAttribute | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 11 | PlotLine/Data/StoryMemoryRepository.cs | 171 | StoryMemoryRepository.UpsertLocationAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryLocations | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertLocation | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 12 | PlotLine/Data/StoryMemoryRepository.cs | 198 | StoryMemoryRepository.UpsertAssetAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryAssets | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertAsset | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 13 | PlotLine/Data/StoryMemoryRepository.cs | 226 | StoryMemoryRepository.UpsertRelationshipAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryRelationships | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertRelationship | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 14 | PlotLine/Data/StoryMemoryRepository.cs | 252 | StoryMemoryRepository.ListCharactersAsync | SELECT | StoryMemoryCharacters | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListCharacters | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 15 | PlotLine/Data/StoryMemoryRepository.cs | 258 | StoryMemoryRepository.ListCharacterAttributesAsync | SELECT | StoryMemoryCharacterAttributes; StoryMemoryCharacters | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListCharacterAttributes | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 16 | PlotLine/Data/StoryMemoryRepository.cs | 272 | StoryMemoryRepository.ListLocationsAsync | SELECT | StoryMemoryLocations | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListLocations | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 17 | PlotLine/Data/StoryMemoryRepository.cs | 278 | StoryMemoryRepository.ListAssetsAsync | SELECT | StoryMemoryAssets | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListAssets | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 18 | PlotLine/Data/StoryMemoryRepository.cs | 284 | StoryMemoryRepository.ListAssignmentsAsync | SELECT | StoryMemoryIllustrationAssignments | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListAssignments | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 19 | PlotLine/Data/StoryMemoryRepository.cs | 290 | StoryMemoryRepository.GetAssignmentAsync | SELECT | StoryMemoryIllustrationAssignments | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_GetAssignment | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 20 | PlotLine/Data/StoryMemoryRepository.cs | 298 | StoryMemoryRepository.UpsertAssignmentAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryIllustrationAssignments | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertAssignment | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 21 | PlotLine/Data/StoryMemoryRepository.cs | 327 | StoryMemoryRepository.InvalidateAssignmentAsync | UPDATE | StoryMemoryIllustrationAssignments | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_InvalidateAssignment | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 22 | PlotLine/Data/StoryMemoryRepository.cs | 342 | StoryMemoryRepository.UpsertDemandAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryIllustrationDemands | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_UpsertDemand | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 23 | PlotLine/Data/StoryMemoryRepository.cs | 370 | StoryMemoryRepository.ListDemandsAsync | SELECT | StoryMemoryIllustrationDemands | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_ListDemands | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 24 | PlotLine/Data/StoryMemoryRepository.cs | 386 | StoryMemoryRepository.GetImportContextAsync | SELECT | StoryMemoryImportPreferences | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_GetImportContext | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 25 | PlotLine/Data/StoryMemoryRepository.cs | 407 | StoryMemoryRepository.SetImportContextAsync | INSERT/MERGE/SELECT/UPDATE | StoryMemoryImportPreferences | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_SetImportContext | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 26 | PlotLine/Data/StoryMemoryRepository.cs | 434 | StoryMemoryRepository.EnsureImportPreferenceContextColumnsAsync | ALTER | StoryMemoryImportPreferences | Runtime executable SQL outside stored procedure layer | Migration 283 only; runtime schema repair removed | Apply 283 column guards before caller deployment | Low, qualified | Fixed |
| 27 | PlotLine/Data/StoryMemoryRepository.cs | 454 | StoryMemoryRepository.GetDiagnosticsAsync | SELECT | StoryMemoryAssets; StoryMemoryCharacterAliases; StoryMemoryCharacterAttributes; StoryMemoryCharacters; StoryMemoryIllustrationAssignments; StoryMemoryIllustrationDemands; StoryMemoryImportPreferences; StoryMemoryLocations; StoryMemoryProcessedSceneResults; StoryMemoryRelationships | Runtime executable SQL outside stored procedure layer | dbo.StoryMemory_GetDiagnostics | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 28 | PlotLine/Data/IllustrationLibraryRepository.cs | 193 | IllustrationLibraryRepository.SupersedeRecoveredFailuresAsync | SELECT/UPDATE | IllustrationLibraryItems | Runtime executable SQL outside stored procedure layer | dbo.IllustrationLibrary_SupersedeRecoveredFailures | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 29 | PlotLine/Data/CharacterIntelligenceRepository.cs | 18 | CharacterIntelligenceRepository.ListProfilesAsync | SELECT | CharacterIntelligenceProfiles | Runtime executable SQL outside stored procedure layer | dbo.CharacterIntelligence_ListProfiles | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 30 | PlotLine/Data/CharacterIntelligenceRepository.cs | 32 | CharacterIntelligenceRepository.UpsertProfileAsync | INSERT/MERGE/SELECT/UPDATE | CharacterIntelligenceProfiles | Runtime executable SQL outside stored procedure layer | dbo.CharacterIntelligence_UpsertProfile | Separate migration and legacy-state/write/concurrency qualification | Moderate: compound mutation/identity/evidence/recovery semantics | Deferred |
| 31 | PlotLine/Data/CharacterIntelligenceRepository.cs | 63 | CharacterIntelligenceRepository.AddEvidenceAsync | INSERT | CharacterIntelligenceEvidenceEvents | Runtime executable SQL outside stored procedure layer | dbo.CharacterIntelligence_AddEvidence | 283 before caller deployment; contracts preserved | Low, qualified | Fixed |
| 32 | PlotLine/Data/StoryIntelligenceResultRepository.cs | 210 | StoryIntelligenceResultRepository.EnsureKnownCharacterQueueSupportAsync | ALTER | StoryIntelligenceRuns | Runtime executable SQL outside stored procedure layer | Forward-only column/procedure migration; remove runtime DDL | Separate migration and legacy-state/write/concurrency qualification | High: reset/runtime DDL | Deferred |
| 33 | PlotLine/Data/StoryIntelligenceResultRepository.cs | 218 | StoryIntelligenceResultRepository.EnsureKnownCharacterQueueSupportAsync | ALTER/CREATE/INSERT/SELECT | StoryIntelligenceRun_QueueAdminText; StoryIntelligenceRuns | Runtime executable SQL outside stored procedure layer | Forward-only column/procedure migration; remove runtime DDL | Separate migration and legacy-state/write/concurrency qualification | High: reset/runtime DDL | Deferred |
| 34 | PlotLine/Data/StoryIntelligenceResultRepository.cs | 261 | StoryIntelligenceResultRepository.EnsureKnownCharacterQueueSupportAsync | ALTER/CREATE/SELECT/UPDATE | StoryIntelligenceRun_ClaimNextPending; StoryIntelligenceRuns | Runtime executable SQL outside stored procedure layer | Forward-only column/procedure migration; remove runtime DDL | Separate migration and legacy-state/write/concurrency qualification | High: reset/runtime DDL | Deferred |